agent-ready-repo / tests
AGENTS.md24 starsChanged 2 months agoApache-2.0View on GitHub
Applies to tests/. Inherits the root AGENTS.md. Scope-specific deltas only. packages/AGENTS.md owns the table of which assertion belongs in which tree. This file owns what living here obliges you to do, and why the boundary is not merely a convention. packages/agentbundle/tests/ is packaged into the agentbundle sdist and re-run against an extracted workspace holding only the package — no contracts/, no packs/, no docs/, no catalogue.toml. A test there that reads a repository path passes locally and fails the sdist…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- docs-site/AGENTS.mdAGENTS.md
- guides/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- packs/AGENTS.mdAGENTS.md
- profiles/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- docs-site/CLAUDE.mdCLAUDE.md
- guides/CLAUDE.mdCLAUDE.md
- packages/CLAUDE.mdCLAUDE.md
- packs/CLAUDE.mdCLAUDE.md
- profiles/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- tools/CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- adapt-to-projectSkill
- assimilate-primitiveSkill
- assimilate-repoSkill
- author-briefSkill
- author-delivery-briefSkill
- author-product-docsSkill
- bug-fixSkill
- capture-workSkill
- close-workSkill
- compile-okfSkill
- contract-acquisitionSkill
- explain-diffSkill
- init-projectSkill
- intake-intentSkill
- new-adrSkill
- new-rfcSkill
- new-specSkill
- operational-safetySkill
- project-knowledgeSkill
- propose-catalogue-packSkill
- receive-briefSkill
- rfc-statusSkill
- security-checklists-referenceSkill
- security-checklistsSkill
- work-intakeSkill
- work-loopSkill
- workspace-statusSkill
- adapt-to-projectSkill
- assimilate-primitiveSkill
- assimilate-repoSkill
- author-briefSkill
- author-delivery-briefSkill
- author-product-docsSkill
- bug-fixSkill
- capture-workSkill
- close-workSkill
- compile-okfSkill
- contract-acquisitionSkill
- explain-diffSkill
- init-projectSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Put the repository-level half in tests/roster/, anchored at Path(__file__).resolve().parents[2].
- Distinctive: line 24
Check the reach before relocating one — a test whose paths all sit inside the pack is pack-local and should re-anchor at the pack instead …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — tests/
Applies to tests/. Inherits the root AGENTS.md. Scope-specific deltas only.
packages/AGENTS.md owns the table of which assertion belongs in which tree.
This file owns what living here obliges you to do, and why the boundary is not
merely a convention.
A repository-level assertion cannot live in a package test tree
packages/agentbundle/tests/ is packaged into the agentbundle sdist and re-run
against an extracted workspace holding only the package — no contracts/, no
packs/, no docs/, no catalogue.toml. A test there that reads a repository
path passes locally and fails the sdist artifact gate, which is what
gate-export-boundary, build-and-smoke and make build-check are reporting
when they raise FileNotFoundError on a path that plainly exists.
Put the repository-level half in tests/roster/, anchored at
Path(__file__).resolve().parents[2]. Leave the package-level behaviour in the
package suite, exercised against fixtures rather than the real tree.
The same boundary applies downward: a test under packs/<pack>/tests/ may not
read above its own pack, and tools/test-lint-pack-test-boundary.py enforces it.
Check the reach before relocating one — a test whose paths all sit inside the
pack is pack-local and should re-anchor at the pack instead of moving.
Roster steps are named and placed by hand
gate-main collects every roster module through one bulk
python -m pytest tests/ -q step (.github/workflows/build-check.yml), so a new
file does run on a pull request — but that step reports the failure as its own.
Adding tests/roster/test_x.py obliges three further edits, each guarded
separately:
- a step in
.github/workflows/build-check.ymlnaming the file, placed above that bulk step. Every roster step carries anif: "!cancelled() && steps.python.conclusion == 'success'"guard, so a step below the bulk step does run — it just reports the same failure a second time against a broad target instead of the named one. Placement decides attribution, not whether the step executes; - a matching
STEP_DISPOSITIONentry intools/lint-ci-parity.py.LOCAL("test-after-build-check")is the right value for roster, because that target'srun-test-suiteincludespytest tests/ -q; - an entry in
.workspace-prune-protected.tomlwhen the test names adocs/specs/<slug>path as a literal.
Moving a test out of a suite also orphans the imports only it used. Run
ruff check . afterwards: the repository lint targets do not cover it.
Essential commands
python3 -m pytest tests/roster/ -q # ~15 min, and targeted runs never reach it
python3 -m pytest tests/conformance/ -q
python3 tools/test-lint-pack-test-boundary.pyDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

