Where the last unplaced rules live: architecture, the two positions and the trailer rule #258

Closed
opened 2026-11-17 22:24:56 +00:00 by Claude · 4 comments
Owner

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

  1. Which file answers "architecture"? Proposal: the ADRs in 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 in docs/adr/".
  2. The three positions live in 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?
  3. The trailer rule (Assisted-by:, never Co-Authored-By: or a session link): one line in the root file, or behind the "before committing" pointer as a recorded choice?
  4. Principle 2 lists "merges to main" among what a human decides. Renovate merges to main unattended by decision. Reword the principle, or record that a standing rule written by the maintainer is the human decision.
  5. Once the secrets rule links to .gitea/workflows/AGENTS.md, docs/contributing/releases-and-secrets.md holds one rule. Keep the file, or move that rule to making-a-change.md next 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.

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 1. Which file answers "architecture"? Proposal: the ADRs in `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 in `docs/adr/`". 2. The three positions live in `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? 3. The trailer rule (`Assisted-by:`, never `Co-Authored-By:` or a session link): one line in the root file, or behind the "before committing" pointer as a recorded choice? 4. Principle 2 lists "merges to `main`" among what a human decides. Renovate merges to `main` unattended by decision. Reword the principle, or record that a standing rule written by the maintainer is the human decision. 5. Once the secrets rule links to `.gitea/workflows/AGENTS.md`, `docs/contributing/releases-and-secrets.md` holds one rule. Keep the file, or move that rule to `making-a-change.md` next 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](https://git.rkdr.net/Mortis/Kamino/issues/251). ## Waits on this [docs(agents): replace CLAUDE.md with a root AGENTS.md](https://git.rkdr.net/Mortis/Kamino/issues/185) 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/](https://git.rkdr.net/Mortis/Kamino/issues/189) is not blocked; moving one rule or one small file later is a short edit. Evidence is in the first comment.
Claude added the
Wayfinder
Grilling
label 2026-11-17 22:24:56 +00:00
Defame1297 was assigned by Claude 2026-11-17 22:24:56 +00:00
Claude added a new dependency 2026-11-17 22:25:25 +00:00
Author
Owner

Evidence from the review of the map (2026-11-17)

Architecture and the positions

  • The map's Destination: "The set covers five areas: governance, contribution, code style, repository structure and architecture."
  • No decision assigns "architecture" to a file. Role standard gaps found in review filed "plugins against roles only, dependencies between roles, or adding a Collection dependency" under "Architecture gap" and decided them as rules 9 to 11.
  • Making sure an agent actually loads the guidance, point 3: "the ADR pointer aims at docs/adr/AGENTS.md", which holds the rules for writing an ADR, not the ADRs.
  • An indirect path exists: the root points to 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".
  • docs(agents): replace CLAUDE.md with a root AGENTS.md, comment of 2026-11-15: "Replace the interim CONTRIBUTING.md pointer in item 5 with one pointer per file in docs/contributing/". Contributor doc set puts the three positions in CONTRIBUTING.md.

The trailer rule

Principle 2

releases-and-secrets.md

## Evidence from the review of the map (2026-11-17) **Architecture and the positions** - The map's Destination: "The set covers five areas: governance, contribution, code style, repository structure and architecture." - No decision assigns "architecture" to a file. [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214) filed "plugins against roles only, dependencies between roles, or adding a Collection dependency" under "Architecture gap" and decided them as rules 9 to 11. - [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213), point 3: "the ADR pointer aims at `docs/adr/AGENTS.md`", which holds the rules for writing an ADR, not the ADRs. - An indirect path exists: the root points to `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". - [docs(agents): replace CLAUDE.md with a root AGENTS.md](https://git.rkdr.net/Mortis/Kamino/issues/185), comment of 2026-11-15: "Replace the interim `CONTRIBUTING.md` pointer in item 5 with one pointer per file in `docs/contributing/`". [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) puts the three positions in `CONTRIBUTING.md`. **The trailer rule** - [AI-assistance policy and commit trailer](https://git.rkdr.net/Mortis/Kamino/issues/94), point 9: "Other agent tools get the rule from `AGENTS.md`." [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) later put the rule in `ai-assistance.md` behind a pointer that fires "before committing". - [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213): "Of the last 50 commits on `main`, 14 carry `Co-Authored-By:`, 12 `Claude-Session:`, 3 `Assisted-by:`", and point 8: the trailer default rests on a personal setting if the apm fallback applies. **Principle 2** - [Guiding principles for agents and humans](https://git.rkdr.net/Mortis/Kamino/issues/91): "**A human decides what is irreversible or shared**: settings, protection, tags, releases, credentials, merges to `main`." - [Renovate automerge posture](https://git.rkdr.net/Mortis/Kamino/issues/97): "automerge on by default". [Supported and tested ansible-core versions](https://git.rkdr.net/Mortis/Kamino/issues/206), point 2: "It keeps automerging as today ... The human step is the maintainer's merge of the release pull request". **`releases-and-secrets.md`** - [docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/](https://git.rkdr.net/Mortis/Kamino/issues/189) gives it two rules; the secrets rule is also written in full in `.gitea/workflows/AGENTS.md` ([docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs](https://git.rkdr.net/Mortis/Kamino/issues/182), comment of 2026-11-15). The map's Notes: "prefer ... fewer files".
Claude changed title from Where the last unplaced rules live: architecture, the three positions and the trailer rule to Where the last unplaced rules live: architecture, the two positions and the trailer rule 2026-11-20 18:07:02 +00:00
Author
Owner

Scope change from Where the maintainer's own procedures live, and what "held by review" means for them (2026-11-20)

  • The friend position is removed. Question 2 is now about two positions: trusted contributor (write access, and with it the secrets) and outsider (issues; a fork or AGit pull request is closed without approving its runs and never merged, and a trusted contributor may carry the change). Title changed to match.
  • A seventh contributor doc, 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 folding releases-and-secrets.md's remaining rule into it.
  • For question 1: accepted risks no longer live in ADRs but in an "Accepted risks" section of SECURITY.md; an architecture pointer may name both.
## Scope change from [Where the maintainer's own procedures live, and what "held by review" means for them](https://git.rkdr.net/Mortis/Kamino/issues/250) (2026-11-20) - The friend position is removed. Question 2 is now about **two** positions: trusted contributor (write access, and with it the secrets) and outsider (issues; a fork or AGit pull request is closed without approving its runs and never merged, and a trusted contributor may carry the change). Title changed to match. - A seventh contributor doc, `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 folding `releases-and-secrets.md`'s remaining rule into it. - For question 1: accepted risks no longer live in ADRs but in an "Accepted risks" section of `SECURITY.md`; an architecture pointer may name both.
Author
Owner

Resolution

Decided with the maintainer on 2026-11-20. No item meets the ADR bar (each is cheap to reverse); no glossary term changed.

  1. Architecture is the ADRs in docs/adr/, the "Accepted risks" section of SECURITY.md and 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 root AGENTS.md gets 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 to docs/adr/AGENTS.md keeps its "before writing an ADR" trigger. Accepted "for now": may be revisited once the ADRs exist.
  2. Rules 9 to 11.
    • Rule 9 (roles only; a plugin needs an ADR first) is held by a control: a pre-commit hook with language: fail on ^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.yaml is under CODEOWNERS). The root clause is dropped: always-loaded context holds only rules no control holds.
    • Rule 10 (a new Collection dependency states its reason and has a version floor) lives in docs/contributing/making-a-change.md. Held: review (galaxy.yml under CODEOWNERS).
    • Rule 11 lives in roles/AGENTS.md, held by the empty-meta check and the scenario selector (#246).
  3. Positions: one line in the root file stating the rule, not a pointer: "Without write access to this repository you are an outsider: file an issue using a template in .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.
  4. Trailer rule: both a root line and a control.
    • Root line: "A commit or pull request with agent-written content carries Assisted-by: <tool>[:<model>]; never Co-Authored-By: for an agent or a session link. Rest: ai-assistance.md."
    • A commit-msg hook refuses Claude-Session: and Co-Authored-By: lines naming a known agent identity, with the rule as its message.
    • Held: the hook for the exclusion, review for the presence of Assisted-by:.
    • Reason: 14 of the last 50 commits carry Co-Authored-By: and 12 Claude-Session:; agent tools write those by default.
    • Not certain: whether pre-commit's pygrep runs at the commit-msg stage. The implementation checks it and falls back to a short script.
  5. Principle 2 is reworded: "A human decides what is irreversible or shared: settings, protection, tags, releases, credentials, merges to main; a merge is decided case by case or by a standing rule a human reviewed, such as Renovate's automerge policy in renovate.json." Not chosen: recording the exception elsewhere; a principle states its own boundary.
  6. docs/contributing/releases-and-secrets.md is not created.
    • "Contributors write fragments, never the version" moves to making-a-change.md, next to the fragment rule.
    • The release procedure (by hand for now, held by tag protection and the Build version check) moves to maintaining.md, whose root trigger gains "cutting a release".
    • The secrets sentence is dropped: the .gitea/workflows/AGENTS.md pointer fires on changing a workflow, and maintaining.md covers rotation.
    • The root pointer "before a release or touching a workflow secret" is removed. docs/contributing/ has six files.

Backlog: scope comments on #185, #189, #262 and #181; a new issue for the two hooks.

## Resolution Decided with the maintainer on 2026-11-20. No item meets the ADR bar (each is cheap to reverse); no glossary term changed. 1. **Architecture** is the ADRs in `docs/adr/`, the "Accepted risks" section of `SECURITY.md` and the Collection-level rules 9 to 11 of [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214). No new file, no ADR index (file names are titles). The root `AGENTS.md` gets 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/](docs/adr/) and the Accepted risks in [SECURITY.md](SECURITY.md)."* Not chosen: "anything a decision record covers", which an agent cannot evaluate without reading the records first. The pointer to `docs/adr/AGENTS.md` keeps its "before writing an ADR" trigger. Accepted "for now": may be revisited once the ADRs exist. 2. **Rules 9 to 11.** - Rule 9 (roles only; a plugin needs an ADR first) is held by a **control**: a pre-commit hook with `language: fail` on `^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.yaml` is under CODEOWNERS). The root clause is dropped: always-loaded context holds only rules no control holds. - Rule 10 (a new Collection dependency states its reason and has a version floor) lives in `docs/contributing/making-a-change.md`. Held: review (`galaxy.yml` under CODEOWNERS). - Rule 11 lives in `roles/AGENTS.md`, held by the empty-`meta` check and the scenario selector (#246). 3. **Positions:** one line in the root file stating the rule, not a pointer: *"Without write access to this repository you are an outsider: file an issue using a template in `.gitea/`. A fork or AGit pull request is closed unmerged, and its runs are never approved. Positions: [CONTRIBUTING.md](CONTRIBUTING.md)."* Reason: it is the one thing an outsider's agent gets wrong on its first task, and no control holds it. 4. **Trailer rule:** both a root line and a control. - Root line: *"A commit or pull request with agent-written content carries `Assisted-by: <tool>[:<model>]`; never `Co-Authored-By:` for an agent or a session link. Rest: [ai-assistance.md](docs/contributing/ai-assistance.md)."* - A `commit-msg` hook refuses `Claude-Session:` and `Co-Authored-By:` lines naming a known agent identity, with the rule as its message. - Held: the hook for the exclusion, review for the presence of `Assisted-by:`. - Reason: 14 of the last 50 commits carry `Co-Authored-By:` and 12 `Claude-Session:`; agent tools write those by default. - Not certain: whether pre-commit's `pygrep` runs at the `commit-msg` stage. The implementation checks it and falls back to a short script. 5. **Principle 2** is reworded: *"**A human decides what is irreversible or shared**: settings, protection, tags, releases, credentials, merges to `main`; a merge is decided case by case or by a standing rule a human reviewed, such as Renovate's automerge policy in `renovate.json`."* Not chosen: recording the exception elsewhere; a principle states its own boundary. 6. **`docs/contributing/releases-and-secrets.md` is not created.** - "Contributors write fragments, never the version" moves to `making-a-change.md`, next to the fragment rule. - The release procedure (by hand for now, held by tag protection and the Build version check) moves to `maintaining.md`, whose root trigger gains "cutting a release". - The secrets sentence is dropped: the `.gitea/workflows/AGENTS.md` pointer fires on changing a workflow, and `maintaining.md` covers rotation. - The root pointer "before a release or touching a workflow secret" is removed. `docs/contributing/` has six files. Backlog: scope comments on #185, #189, #262 and #181; a new issue for the two hooks.
Author
Owner
Backlog filed: [ci: refuse a plugins/ directory and agent co-author trailers by hook](https://git.rkdr.net/Mortis/Kamino/issues/272). Scope comments posted on [docs(agents): replace CLAUDE.md with a root AGENTS.md](https://git.rkdr.net/Mortis/Kamino/issues/185), [docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/](https://git.rkdr.net/Mortis/Kamino/issues/189), [docs(contributing): write maintaining.md for the maintainer's standing procedures](https://git.rkdr.net/Mortis/Kamino/issues/262) and [docs(agents): write roles/AGENTS.md with the role rules](https://git.rkdr.net/Mortis/Kamino/issues/181).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#258