Where the last unplaced rules live: architecture, the two positions and the trailer rule #258
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#258
Reference in new issue
Block a user
Part of #87
The Destination says a contributor's agent, with nothing but this repository, finds what it needs in five areas. These questions are about where a rule lives, not what it says.
To decide
docs/adr/plus the Collection-level rules of the role standard. With what root trigger? Proposal: "before changing CI images, the release path, repository access or anything a decision record covers: read the ADR titles indocs/adr/".CONTRIBUTING.md, and the root file no longer points there. Does the root get a pointer ("before pushing a branch or opening a pull request: which position are you in"), or one line per position?Assisted-by:, neverCo-Authored-By:or a session link): one line in the root file, or behind the "before committing" pointer as a recorded choice?main" among what a human decides. Renovate merges tomainunattended by decision. Reword the principle, or record that a standing rule written by the maintainer is the human decision..gitea/workflows/AGENTS.md,docs/contributing/releases-and-secrets.mdholds one rule. Keep the file, or move that rule tomaking-a-change.mdnext to the fragment rule?Where the unattended-agent rule lives is in Who counts as having set Status/Ready for Agent, and where that rule lives.
Waits on this
docs(agents): replace CLAUDE.md with a root AGENTS.md is blocked by this ticket: questions 1 to 4 decide lines of the root file. docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/ is not blocked; moving one rule or one small file later is a short edit.
Evidence is in the first comment.
Evidence from the review of the map (2026-11-17)
Architecture and the positions
docs/adr/AGENTS.md", which holds the rules for writing an ADR, not the ADRs.docs/agents/domain.md"before naming a domain concept or writing an ADR", and that file says "read ADRs that touch the area you're about to work in".CONTRIBUTING.mdpointer in item 5 with one pointer per file indocs/contributing/". Contributor doc set puts the three positions inCONTRIBUTING.md.The trailer rule
AGENTS.md." Contributor doc set later put the rule inai-assistance.mdbehind a pointer that fires "before committing".main, 14 carryCo-Authored-By:, 12Claude-Session:, 3Assisted-by:", and point 8: the trailer default rests on a personal setting if the apm fallback applies.Principle 2
main."releases-and-secrets.md.gitea/workflows/AGENTS.md(docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs, comment of 2026-11-15). The map's Notes: "prefer ... fewer files".Where the last unplaced rules live: architecture, the three positions and the trailer ruleto Where the last unplaced rules live: architecture, the two positions and the trailer ruleScope change from Where the maintainer's own procedures live, and what "held by review" means for them (2026-11-20)
docs/contributing/maintaining.md, now exists in the plan with its own root trigger ("before granting or withdrawing access, rotating a secret, or changing repository or organisation settings"). Question 5 may also weigh foldingreleases-and-secrets.md's remaining rule into it.SECURITY.md; an architecture pointer may name both.Resolution
Decided with the maintainer on 2026-11-20. No item meets the ADR bar (each is cheap to reverse); no glossary term changed.
docs/adr/, the "Accepted risks" section ofSECURITY.mdand the Collection-level rules 9 to 11 of Role standard gaps found in review. No new file, no ADR index (file names are titles). The rootAGENTS.mdgets one pointer with an action trigger: "before adding a new kind of thing (a plugin, a Collection dependency, a workflow, an image, a secret) or changing how CI, releases or access work: read the file names in docs/adr/ and the Accepted risks in SECURITY.md." Not chosen: "anything a decision record covers", which an agent cannot evaluate without reading the records first. The pointer todocs/adr/AGENTS.mdkeeps its "before writing an ADR" trigger. Accepted "for now": may be revisited once the ADRs exist.language: failon^plugins/, whose message is the rule. The ADR that admits plugins removes the hook in the same pull request, a reviewed edit (.pre-commit-config.yamlis under CODEOWNERS). The root clause is dropped: always-loaded context holds only rules no control holds.docs/contributing/making-a-change.md. Held: review (galaxy.ymlunder CODEOWNERS).roles/AGENTS.md, held by the empty-metacheck and the scenario selector (#246)..gitea/. A fork or AGit pull request is closed unmerged, and its runs are never approved. Positions: CONTRIBUTING.md." Reason: it is the one thing an outsider's agent gets wrong on its first task, and no control holds it.Assisted-by: <tool>[:<model>]; neverCo-Authored-By:for an agent or a session link. Rest: ai-assistance.md."commit-msghook refusesClaude-Session:andCo-Authored-By:lines naming a known agent identity, with the rule as its message.Assisted-by:.Co-Authored-By:and 12Claude-Session:; agent tools write those by default.pygrepruns at thecommit-msgstage. The implementation checks it and falls back to a short script.main; a merge is decided case by case or by a standing rule a human reviewed, such as Renovate's automerge policy inrenovate.json." Not chosen: recording the exception elsewhere; a principle states its own boundary.docs/contributing/releases-and-secrets.mdis not created.making-a-change.md, next to the fragment rule.maintaining.md, whose root trigger gains "cutting a release"..gitea/workflows/AGENTS.mdpointer fires on changing a workflow, andmaintaining.mdcovers rotation.docs/contributing/has six files.Backlog: scope comments on #185, #189, #262 and #181; a new issue for the two hooks.
Backlog filed: ci: refuse a plugins/ directory and agent co-author trailers by hook. Scope comments posted on docs(agents): replace CLAUDE.md with a root AGENTS.md, docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/, docs(contributing): write maintaining.md for the maintainer's standing procedures and docs(agents): write roles/AGENTS.md with the role rules.