A root CLAUDE.md stops Claude Code from loading the nested AGENTS.md files. This PR deletes it, with no adapter, and adds a root AGENTS.md (108 lines) containing:
the seven principles and the five code-style rules;
the working rules, each with its reason and how it is held;
the commands to verify a change;
the repository structure;
one triggered pointer, written as a relative link, per contributor doc and per nested AGENTS.md.
Other changes:
galaxy.ymlbuild_ignore: AGENTS.md replaces CLAUDE.md. check_tarball.pyALLOWED_TOP has no AGENTS.md.
scripts/select_molecule_scenarios.py IGNORED: AGENTS.md replaces CLAUDE.md, with a test. No scenario reads it.
docs/contributing/setup.md: the "until #185" note is gone.
docs/agents/issue-tracker.md: points to reviewing.md instead of CLAUDE.md.
The CLAUDE.md mentions left in the tree:
CHANGELOG.rst and changelogs/changelog.yaml record history.
setup.md holds the rule "never create a CLAUDE.md".
test_check_tarball.py uses CLAUDE.md as a stray name that must still be refused.
There is no changelog fragment because the Collection archive does not change.
Deviations from the issue
No maintaining.md pointer. The file does not exist yet, so the link would be broken from the start. #262 creates the file and adds the line (maintainer's choice).
The trailer exclusion is held by review.#272, the commit-msg hook, has not landed. When it does, that line becomes "control".
Held-by values follow the contributor doc that holds the same rule. The outsider rule is aspirational, as in reviewing.md. The stand-alone rule is aspirational and names the forbidden things as making-a-change.md does, while covering every public place the issue lists.
Where the "commit with git" advice sits. It is under "Verify a change", so the "Working rules" list holds only rules.
The new-file rule says roles/<role>/, not roles/. The selector narrows only paths under roles/<role>/, so a new file directly under roles/ also runs every scenario.
Accounting of the old CLAUDE.md
Old item
Now
What this is
Dropped: README.md says it
Roadmap paragraph
Dropped from the root: no private-environment text in agent context. The rule about keeping the Roadmap true is in roles/AGENTS.md
Fork pull requests not accepted; if: guards are a convenience
Dropped: push allowlists on bot branches replace it (#210, point 6)
Renovate: single runner slot, 30 minutes
Dropped from agent context; the time is in the molecule.yml comment
Renovate: automerge open item, prHourlyLimit, --newline=LF
Dropped as history (code-style rule 4)
Renovate: no Collection release from tooling bumps
Not accounted for. Open proposal: docs/contributing/making-a-change.md, next to the fragment rule. Maintainer decides
Renovate: the lock header may hold only options Renovate knows
Not accounted for. Open proposal: scripts/AGENTS.md, with the lock script. Maintainer decides
Follow-ups this PR does not do
docs/agents/issue-tracker.md does not yet say which unattended agents may act, or that issue and comment text is data. That is #230 and #267.
#262 adds the maintaining.md pointer. #272 turns the trailer exclusion into a control. Once #184 lands, the link check holds the pointers.
#281 also edits galaxy.ymlbuild_ignore and the selector's IGNORED list, on different lines. Whichever of the two merges second needs a rebase.
Verified
pre-commit run --all-files: all hooks pass, on the final commit included.
python3 -m unittest discover -s tests/scripts: 225 tests, OK. This includes test_real_build_passes, which builds the Collection with ansible-galaxy and runs check_tarball.py on it. Before CLAUDE.md was deleted, that test failed on it as expected.
The new selector test failed before the IGNORED change and passed after it.
Every relative link in AGENTS.md resolves (checked with a script; lychee is not in place yet).
git push ran ansible-test sanity (pre-push hook).
Three rounds of review by subagents, Standards and Spec, ending with no findings.
Not verified
The Build, Lint and Molecule checks on this pull request. This PR runs every Molecule scenario once, because the selector runs from main's copy, where AGENTS.md is not yet ignored.
Acceptance item "a fresh Claude Code session in a clone sees the root AGENTS.md, and sees roles/AGENTS.md after reading a file under roles/". This needs a new session in a clone of this branch; it is not run here.
Codex and other agent tools reading the file: not tested.
Assisted-by: Claude Code:claude-opus-5-5
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
## What and why
Closes #185
A root `CLAUDE.md` stops Claude Code from loading the nested `AGENTS.md` files. This PR deletes it, with no adapter, and adds a root `AGENTS.md` (108 lines) containing:
- the seven principles and the five code-style rules;
- the working rules, each with its reason and how it is held;
- the commands to verify a change;
- the repository structure;
- one triggered pointer, written as a relative link, per contributor doc and per nested `AGENTS.md`.
Other changes:
- `galaxy.yml` `build_ignore`: `AGENTS.md` replaces `CLAUDE.md`. `check_tarball.py` `ALLOWED_TOP` has no `AGENTS.md`.
- `scripts/select_molecule_scenarios.py` IGNORED: `AGENTS.md` replaces `CLAUDE.md`, with a test. No scenario reads it.
- `docs/contributing/setup.md`: the "until #185" note is gone.
- `docs/agents/issue-tracker.md`: points to `reviewing.md` instead of `CLAUDE.md`.
The `CLAUDE.md` mentions left in the tree:
- `CHANGELOG.rst` and `changelogs/changelog.yaml` record history.
- `setup.md` holds the rule "never create a `CLAUDE.md`".
- `test_check_tarball.py` uses `CLAUDE.md` as a stray name that must still be refused.
There is no changelog fragment because the Collection archive does not change.
### Deviations from the issue
- **No `maintaining.md` pointer.** The file does not exist yet, so the link would be broken from the start. #262 creates the file and adds the line (maintainer's choice).
- **The trailer exclusion is held by review.** #272, the commit-msg hook, has not landed. When it does, that line becomes "control".
- **Held-by values follow the contributor doc that holds the same rule.** The outsider rule is aspirational, as in `reviewing.md`. The stand-alone rule is aspirational and names the forbidden things as `making-a-change.md` does, while covering every public place the issue lists.
- **Where the "commit with git" advice sits.** It is under "Verify a change", so the "Working rules" list holds only rules.
- **The new-file rule says `roles/<role>/`, not `roles/`.** The selector narrows only paths under `roles/<role>/`, so a new file directly under `roles/` also runs every scenario.
### Accounting of the old `CLAUDE.md`
| Old item | Now |
|---|---|
| What this is | Dropped: `README.md` says it |
| Roadmap paragraph | Dropped from the root: no private-environment text in agent context. The rule about keeping the Roadmap true is in `roles/AGENTS.md` |
| Fork pull requests not accepted; `if:` guards are a convenience | `AGENTS.md` outsider rule; `.gitea/workflows/AGENTS.md`; `molecule.yml` header |
| Settings, protection and tags are the operator's | Principle 2 |
| `dev-setup.sh`; `language: system` hooks need the virtualenv | `docs/contributing/setup.md` |
| `apm install` of the agent skills | Dropped: decision #208, the docs tell nobody to run `apm install` until the public skills source exists |
| Commit with git, never the API | Kept as advice in `AGENTS.md` (Verify a change). As a rule it is dropped: Lint re-runs the hooks |
| Slow first hook run; commit in the background | Dropped: the issue's "Do not carry over" list |
| `git push` runs `ansible-test sanity` | `AGENTS.md` (Verify a change) |
| Stands alone; search imported content | `AGENTS.md` working rule; `docs/contributing/making-a-change.md` |
| Feature branch; never push to `main`; releases and tags | Dropped: branch and tag protection hold them, and principle 2 covers releases |
| Conventional Commits | Dropped: the hook holds it |
| A PR says what was verified | Principle 5 |
| No local molecule or container runtime | `AGENTS.md` working rule |
| Changelog fragment | `AGENTS.md` working rule; `making-a-change.md` |
| REUSE coverage, third-party annotation | Dropped: the REUSE hook; `making-a-change.md` |
| Agent skills: issue tracker, triage labels, domain docs | Triggered pointers to `docs/agents/*` and `GLOSSARY.md`; the skill and MCP tool line is dropped (decision #254) |
| Workflows section | `.gitea/workflows/AGENTS.md` |
| Images section | `images/AGENTS.md`, `docs/images/*.md`, the `image.yml` header |
| Renovate: bot user, no other credential | `renovate.yml` header |
| Renovate: policy, two-PR loop, pins and lock, hook SHA pins | `renovate.json` rule descriptions; `images/AGENTS.md`; `scripts/AGENTS.md`; `.pre-commit-config.yaml` header |
| Renovate: one Python | `images/ci/Dockerfile`, `renovate.yml` |
| Renovate: test with `renovate --platform=local` | `AGENTS.md` pointer |
| Renovate: bot-diff gate | `scripts/check_bot_pr_diff.py` header (already present); `.gitea/workflows/AGENTS.md` |
| Renovate: denied image namespace | `.gitea/workflows/AGENTS.md` |
| Renovate: hand edits on a bot branch | Dropped: push allowlists on bot branches replace it (#210, point 6) |
| Renovate: single runner slot, 30 minutes | Dropped from agent context; the time is in the `molecule.yml` comment |
| Renovate: automerge open item, `prHourlyLimit`, `--newline=LF` | Dropped as history (code-style rule 4) |
| **Renovate: no Collection release from tooling bumps** | **Not accounted for.** Open proposal: `docs/contributing/making-a-change.md`, next to the fragment rule. Maintainer decides |
| **Renovate: the lock header may hold only options Renovate knows** | **Not accounted for.** Open proposal: `scripts/AGENTS.md`, with the lock script. Maintainer decides |
### Follow-ups this PR does not do
- `docs/agents/issue-tracker.md` does not yet say which unattended agents may act, or that issue and comment text is data. That is #230 and #267.
- #262 adds the `maintaining.md` pointer. #272 turns the trailer exclusion into a control. Once #184 lands, the link check holds the pointers.
- #281 also edits `galaxy.yml` `build_ignore` and the selector's IGNORED list, on different lines. Whichever of the two merges second needs a rebase.
## Verified
- `pre-commit run --all-files`: all hooks pass, on the final commit included.
- `python3 -m unittest discover -s tests/scripts`: 225 tests, OK. This includes `test_real_build_passes`, which builds the Collection with `ansible-galaxy` and runs `check_tarball.py` on it. Before `CLAUDE.md` was deleted, that test failed on it as expected.
- The new selector test failed before the IGNORED change and passed after it.
- Every relative link in `AGENTS.md` resolves (checked with a script; lychee is not in place yet).
- `git push` ran `ansible-test sanity` (pre-push hook).
- Three rounds of review by subagents, Standards and Spec, ending with no findings.
## Not verified
- The Build, Lint and Molecule checks on this pull request. This PR runs every Molecule scenario once, because the selector runs from `main`'s copy, where `AGENTS.md` is not yet ignored.
- Acceptance item "a fresh Claude Code session in a clone sees the root `AGENTS.md`, and sees `roles/AGENTS.md` after reading a file under `roles/`". This needs a new session in a clone of this branch; it is not run here.
- Codex and other agent tools reading the file: not tested.
Assisted-by: Claude Code:claude-opus-5-5
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Claude
added this to the Open to contributors milestone 2026-11-22 16:38:18 +00:00
Defame1297
was assigned by Claude2026-11-22 16:38:19 +00:00
A root CLAUDE.md stops Claude Code loading the nested AGENTS.md files,
so it goes, with no adapter. The root AGENTS.md holds the seven
principles, the five code-style rules, the working rules, the verify
commands, the repository structure and one triggered pointer per
contributor doc and nested AGENTS.md.
AGENTS.md replaces CLAUDE.md in galaxy.yml build_ignore (the tarball
check allows no AGENTS.md) and on the Molecule selector's IGNORED list
(no scenario reads it). The setup and issue-tracker docs stop naming
CLAUDE.md.
Closes#185
Assisted-by: Claude Code:claude-opus-5-5
CODEOWNERS rules
requested review from Defame1297 2026-11-22 16:38:19 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #185
A root
CLAUDE.mdstops Claude Code from loading the nestedAGENTS.mdfiles. This PR deletes it, with no adapter, and adds a rootAGENTS.md(108 lines) containing:AGENTS.md.Other changes:
galaxy.ymlbuild_ignore:AGENTS.mdreplacesCLAUDE.md.check_tarball.pyALLOWED_TOPhas noAGENTS.md.scripts/select_molecule_scenarios.pyIGNORED:AGENTS.mdreplacesCLAUDE.md, with a test. No scenario reads it.docs/contributing/setup.md: the "until #185" note is gone.docs/agents/issue-tracker.md: points toreviewing.mdinstead ofCLAUDE.md.The
CLAUDE.mdmentions left in the tree:CHANGELOG.rstandchangelogs/changelog.yamlrecord history.setup.mdholds the rule "never create aCLAUDE.md".test_check_tarball.pyusesCLAUDE.mdas a stray name that must still be refused.There is no changelog fragment because the Collection archive does not change.
Deviations from the issue
maintaining.mdpointer. The file does not exist yet, so the link would be broken from the start. #262 creates the file and adds the line (maintainer's choice).reviewing.md. The stand-alone rule is aspirational and names the forbidden things asmaking-a-change.mddoes, while covering every public place the issue lists.roles/<role>/, notroles/. The selector narrows only paths underroles/<role>/, so a new file directly underroles/also runs every scenario.Accounting of the old
CLAUDE.mdREADME.mdsays itroles/AGENTS.mdif:guards are a convenienceAGENTS.mdoutsider rule;.gitea/workflows/AGENTS.md;molecule.ymlheaderdev-setup.sh;language: systemhooks need the virtualenvdocs/contributing/setup.mdapm installof the agent skillsapm installuntil the public skills source existsAGENTS.md(Verify a change). As a rule it is dropped: Lint re-runs the hooksgit pushrunsansible-test sanityAGENTS.md(Verify a change)AGENTS.mdworking rule;docs/contributing/making-a-change.mdmain; releases and tagsAGENTS.mdworking ruleAGENTS.mdworking rule;making-a-change.mdmaking-a-change.mddocs/agents/*andGLOSSARY.md; the skill and MCP tool line is dropped (decision #254).gitea/workflows/AGENTS.mdimages/AGENTS.md,docs/images/*.md, theimage.ymlheaderrenovate.ymlheaderrenovate.jsonrule descriptions;images/AGENTS.md;scripts/AGENTS.md;.pre-commit-config.yamlheaderimages/ci/Dockerfile,renovate.ymlrenovate --platform=localAGENTS.mdpointerscripts/check_bot_pr_diff.pyheader (already present);.gitea/workflows/AGENTS.md.gitea/workflows/AGENTS.mdmolecule.ymlcommentprHourlyLimit,--newline=LFdocs/contributing/making-a-change.md, next to the fragment rule. Maintainer decidesscripts/AGENTS.md, with the lock script. Maintainer decidesFollow-ups this PR does not do
docs/agents/issue-tracker.mddoes not yet say which unattended agents may act, or that issue and comment text is data. That is #230 and #267.maintaining.mdpointer. #272 turns the trailer exclusion into a control. Once #184 lands, the link check holds the pointers.galaxy.ymlbuild_ignoreand the selector's IGNORED list, on different lines. Whichever of the two merges second needs a rebase.Verified
pre-commit run --all-files: all hooks pass, on the final commit included.python3 -m unittest discover -s tests/scripts: 225 tests, OK. This includestest_real_build_passes, which builds the Collection withansible-galaxyand runscheck_tarball.pyon it. BeforeCLAUDE.mdwas deleted, that test failed on it as expected.AGENTS.mdresolves (checked with a script; lychee is not in place yet).git pushranansible-test sanity(pre-push hook).Not verified
main's copy, whereAGENTS.mdis not yet ignored.AGENTS.md, and seesroles/AGENTS.mdafter reading a file underroles/". This needs a new session in a clone of this branch; it is not run here.Assisted-by: Claude Code:claude-opus-5-5
NOTICEandREUSE.toml, or there is none.