Skip to content

Add AGENTS.md with rules for LLM contributors - #759

Merged
bdraco merged 2 commits into
aio-libs:masterfrom
aiolibsbot:koan/implement-757
May 17, 2026
Merged

bdraco merged 2 commits into
aio-libs:masterfrom
aiolibsbot:koan/implement-757

Conversation

@aiolibsbot

@aiolibsbot aiolibsbot commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

What do these changes do?

Add an AGENTS.md at the repository root with orientation and
pull request rules for LLM-based contributors, adapted from
the equivalent file in aio-libs/yarl. It covers the layout
of the Cython and pure-Python implementations, the towncrier
CHANGES/ workflow, the aio-libs PR template, and the agent
disclosure rules.

Are there changes in behavior for the user?

No. Documentation only.

Related issue number

Closes #757

Checklist

  • I think the code is well written
  • Unit tests for the changes exist N/A (docs only)
  • Documentation reflects the changes
  • If you provide code modifications, please add yourself to CONTRIBUTORS.txt N/A
  • Add a new news fragment into the CHANGES folder

Generated by Kōan /implement


Quality Report

Changes: 2 files changed, 352 insertions(+)

Code scan: clean

Tests: failed (FAILED)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

@bdraco
bdraco marked this pull request as ready for review May 17, 2026 00:56
@bdraco
bdraco enabled auto-merge (squash) May 17, 2026 01:03
@bdraco

bdraco commented May 17, 2026

Copy link
Copy Markdown
Member

../CHANGES.rst:46: : Spell check: LLM: orientation and pull request rules for LLM-based contributors,.

need to add LLM to spelling list

@bdraco

bdraco commented May 17, 2026

Copy link
Copy Markdown
Member

@aiolibsbot rr

@aiolibsbot

Copy link
Copy Markdown
Contributor Author

PR Review — Add AGENTS.md with rules for LLM contributors

Documentation-only addition of AGENTS.md plus a towncrier fragment. The content is well-scoped, consistent with the aio-libs conventions it describes, and doesn't appear to violate its own rules (no em-dashes, correct fragment naming, proper attribution). One blocking-ish issue flagged by the existing reviewer: LLM is missing from docs/spelling_wordlist.txt, which makes the spellcheck fail. Fix that in this PR and also reconcile the yarl-vs-yarl+multidict wording between the PR body and the CHANGES fragment. The symlink-for-dual-numbers recommendation deserves a sanity check against the project's towncrier version before it becomes load-bearing advice for future agents.


🟡 Important

1. Add `LLM` to `docs/spelling_wordlist.txt` (`CHANGES/757.contrib.rst`, L1-4)

The Sphinx spellcheck job fails on the word LLM in this fragment (per @bdraco's comment, ../CHANGES.rst:46). The AGENTS.md file being added by this same PR explicitly tells contributors: "extend docs/spelling_wordlist.txt for legitimate new terms rather than disabling the check." Add LLM (alphabetically, alongside the other acronym entries) to docs/spelling_wordlist.txt in this PR so the CI passes and the doc lands consistently with its own guidance.

orientation and pull request rules for LLM-based contributors,

🟢 Suggestions

1. Tests reported FAILED in the quality pipeline

The PR body's quality report shows Tests: failed (FAILED). Since this change is docs-only it likely isn't caused by the diff, but Rule zero in the file being added says explicitly to prove the change works before opening the PR. Worth confirming in the PR description that the failure is the pre-existing spellcheck (LLM not in spelling_wordlist.txt) and not something else (e.g. make doc-spelling rather than make test), so a future reviewer doesn't have to re-derive it.

2. PR body and CHANGES fragment disagree on sources (`CHANGES/757.contrib.rst`, L3)

The PR description says the file was "adapted from the equivalent file in aio-libs/yarl", but the CHANGES fragment credits "the yarl and multidict equivalents". Pick one and match them — the release notes are the long-lived artifact, so if both upstreams really were consulted, update the PR body; if only yarl was, drop multidict from the fragment.

adapted from the ``yarl`` and ``multidict`` equivalents
3. Symlink guidance for dual issue/PR numbers may surprise reviewers (`AGENTS.md`, L174-178)

Recommending ln -s 757.contrib.rst CHANGES/760.contrib.rst so towncrier picks up both numbers is clever, but towncrier reads the directory listing and will render the entry twice if it dereferences the symlink (depending on the version's directory-walking behavior), and on Windows checkouts symlinks degrade to plain text files. Worth either verifying the towncrier version in pyproject.toml handles this gracefully, or softening the guidance to "prefer the issue-numbered fragment and link the PR number from the PR body" to avoid agents creating release-note duplicates.

ln -s 757.contrib.rst CHANGES/760.contrib.rst

Checklist

  • No hardcoded secrets
  • Input validation at boundaries
  • Error handling sane
  • Tests cover new behavior
  • Docs in sync with code — warning #1
  • Internal consistency — suggestion #2

Summary

Documentation-only addition of AGENTS.md plus a towncrier fragment. The content is well-scoped, consistent with the aio-libs conventions it describes, and doesn't appear to violate its own rules (no em-dashes, correct fragment naming, proper attribution). One blocking-ish issue flagged by the existing reviewer: LLM is missing from docs/spelling_wordlist.txt, which makes the spellcheck fail. Fix that in this PR and also reconcile the yarl-vs-yarl+multidict wording between the PR body and the CHANGES fragment. The symlink-for-dual-numbers recommendation deserves a sanity check against the project's towncrier version before it becomes load-bearing advice for future agents.


Automated review by Kōancb2a806

@aiolibsbot

Copy link
Copy Markdown
Contributor Author

@bdraco: ../CHANGES.rst:46: : Spell check: LLM: orientation and pull request rules for LLM-based contributors...

Confirmed — the spellcheck failure is the word LLM in CHANGES/757.contrib.rst line 2 (LLM-based contributors). The AGENTS.md being added in this same PR explicitly directs contributors to extend docs/spelling_wordlist.txt rather than disable the check, so the fix is to add LLM to that wordlist (alphabetically, alongside the other acronym entries) in this same PR. Happy to push that as a follow-up commit on koan/implement-757 so the spellcheck passes before this is flipped out of draft.

@aiolibsbot

Copy link
Copy Markdown
Contributor Author

Rebase with requested adjustments

Branch koan/implement-757 was rebased onto master and review feedback was applied.

Changes applied

  • Applied changes:
  • Added LLM to docs/spelling_wordlist.txt (alphabetically between linux and localhost) per @bdraco's spellcheck failure on CHANGES/757.contrib.rst:2 and the reviewer's blocking-ish Important item; AGENTS.md itself directs contributors to extend the wordlist rather than disable the check.
  • Updated CHANGES/757.contrib.rst to credit only the yarl equivalent (dropped multidict) per reviewer Suggestion Build(deps): Bump tox from 3.13.2 to 3.14.0 #2 reconciling the fragment with the PR body's "adapted from the equivalent file in aio-libs/yarl" wording.

Stats

3 files changed, 353 insertions(+)
Actions performed
  • Already-solved check: negative (confidence=high, reasoning=No AGENTS.md file exists on master; recent commits cover dependency bumps and unrelated fixes.)
  • Rebased koan/implement-757 onto upstream/master
  • Applied review feedback
  • Pre-push CI check: previous run still pending
  • Force-pushed koan/implement-757 to origin
  • CI check enqueued in ## CI (async)

CI status

CI will be checked asynchronously.


Automated by Kōan

auto-merge was automatically disabled May 17, 2026 02:17

Head branch was pushed to by a user without write access

@bdraco
bdraco enabled auto-merge (squash) May 17, 2026 03:30
@bdraco
bdraco disabled auto-merge May 17, 2026 03:37
@bdraco
bdraco merged commit 2392a08 into aio-libs:master May 17, 2026
7 checks passed
@aiolibsbot
aiolibsbot deleted the koan/implement-757 branch May 17, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

This repo has no agents.md

2 participants