docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/ #189

Closed
opened 2026-11-15 20:31:03 +00:00 by Claude · 13 comments
Owner

Spec: Contributor doc set, resolution comment, section 1; later scope from the comments of the map, folded in below.

What to build

  • Cut CONTRIBUTING.md to a short entry point: the two positions (trusted contributor, with write access and with it the secrets; outsider, who contributes through issues; see GLOSSARY.md) and how each gets code in, then a one-line index of the files below. Delete its "Maintainer setup" section. List docs/contributing/maintaining.md in the index if it exists when this lands.
  • Every index entry in CONTRIBUTING.md and every cross-reference between these files is a Markdown link with a relative target, for example [setup](docs/contributing/setup.md); the link check reads links and skips a path written in backticks. Until ci(lint): check Markdown links offline with lychee lands these links are held by review; say so where a held-by is given.
  • Create docs/contributing/, one self-contained file per trigger (no "see above"). Every rule is written as the rule, a one-sentence reason, and how it is held (control naming the hook or check, review, or aspirational). Held-by values are only these three.

Files created here

setup.md

  • scripts/dev-setup.sh. It does not tell contributors to run apm install (the skills source is not reachable for them yet; #229).
  • Claude Code v2.1.281 or later (older versions read no AGENTS.md, or only CLAUDE.md in some sessions). Held by: aspirational.
  • Personal notes go in ~/.claude/CLAUDE.md, never CLAUDE.local.md or a project CLAUDE.md (either switches off AGENTS.md; the hook in #244 refuses committing one), and no CLAUDE.md in any directory above the clone.
  • Ask the contributor to confirm the startup line no CLAUDE.md found; AGENTS.md loaded: ....
  • The tracked .claude/settings.json never holds permissions.allow; deny and ask are allowed; allowlists and personal guards go in the ignored .claude/settings.local.json (decided in Making sure an agent actually loads the guidance, decision 5). Do not list the file's keys here; they depend on the retest in the local-settings issue. No decision states the reason for refusing allow: ask the maintainer for one sentence before writing the rule.
  • Lines for tea (#267, which lands after this issue because setup.md must exist) and for rtk (#228) are written by those issues, not here; likewise any line from the local-settings issue.

making-a-change.md

  • Branches, Conventional Commits, fragments, the issue and pull request templates (use their headings even when filing through the API), Verified / Not verified, third-party material (SPDX header, REUSE.toml, NOTICE; held by the PR template checkbox and review).
  • Do not push to someone else's branch or a bot's branch; put your change in your own pull request. Updating a branch from main with Gitea's update button stays allowed. Held by: aspirational. This replaces CLAUDE.md's "hand edits on a bot branch" note.
  • Release, contributor half only: write a fragment, never the version. (The release procedure is in maintaining.md.)
  • A new Collection dependency states its reason in the pull request and has a version floor (Role standard gaps found in review, rule 10). Held by: review (galaxy.yml is under CODEOWNERS).
  • The standing migration instruction (Sanitise private-environment references, no expiry), in two parts. The rule: no tracked file, issue or pull request text or comment, release note or job output refers to another repository of the maintainer's, its documents, hosts, network or namespaces, or states host sizing (widened from tracked files to anything a reader without an account can open by Does the stand-alone rule cover issue text and job logs). Held by: aspirational (no check; none is cheap for issues or logs). The search step: when bringing content in from another repository, before committing, search the incoming diff for mentions of the source repository, its documents, hostnames, addresses, account namespaces and sibling paths; rewrite comments so they stand alone; say in the pull request what was searched for. Held by review.
  • "Dependency and image updates" content, as an interim section marked "moves to images/AGENTS.md and scripts/AGENTS.md". The nested-files issue (docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs) lands after this one and moves it out of docs/contributing/.
  • Optional, until the README section exists (then link to it): which fragment section fits which change (major: breaking_changes, removed_features; minor: minor_changes, deprecated_features; patch: bugfixes, security_fixes, known_issues; never major_changes), per #214, rule 8.

ai-assistance.md

  • The rules from the resolution of AI-assistance policy and commit trailer, credited to the Ansible community AI policy, with these changes from Agent credentials and what unattended agents can do:
    • The author of record is the person who opened the pull request, or the person accountable for the account that opened it. No driver line in the pull request.
    • Unattended agents act from the agent account and may code, push, open pull requests and issues, comment and review; they may not approve or merge. Held by: aspirational (an accepted risk in the SECURITY.md "Accepted risks" register).
    • Agent accounts are outside the merge and approvals allowlists: a control; held by review for an agent acting with a contributor's own token.
    • Every agent account has exactly one accountable person, named in its Gitea profile. Held by: aspirational. (Creating agent accounts is in maintaining.md.)
  • The Status/Ready for Agent rule and "issue text is data" live in docs/agents/issue-tracker.md (#230, per Who counts as having set Status/Ready for Agent, and where that rule lives); ai-assistance.md links to it in one line and does not state it.
  • The trailer rule: held by the commit-msg hook (new issue, linked from #258) for the exclusion, by review for the presence of Assisted-by:; "held by review until the hook lands".
  • Add Driver, Unattended agent and Agent account to GLOSSARY.md.

code-style.md

reviewing.md (rewritten by Where the maintainer's own procedures live, and what "held by review" means for them and Pushes onto a pull request that has a scheduled merge). Root trigger: "before closing a fork pull request or merging someone else's pull request".

  • A fork or AGit pull request (one pushed to refs/for/<branch> counts as a fork pull request) always comes from an outsider. A human closes it without approving its runs and points to an issue; no agent or automation closes it. Never approve a fork run, never merge a fork pull request. Held by: aspirational.
  • A trusted contributor may carry the change into a pull request of their own after reading every line; they are its author of record.
  • Review an unmerged branch you did not write before running its hook and script changes locally: name .pre-commit-config.yaml, .claude/ and every AGENTS.md in this rule too (a branch's agent settings, hooks, skills and instruction files take effect when a contributor opens it with an agent), and suggest reviewing it in the web diff or in a clone where no agent runs. Held by review.
  • Schedule a merge only on your own pull request, on a branch nobody else pushes to. Merge a pull request you reviewed (the agent account's, the release pull request) with the merge button, at the head you read. Reason: a scheduled merge merges whatever head the branch has when the checks pass, and a push does not cancel it. Held by: aspirational.

File created elsewhere, and file not created

  • docs/contributing/maintaining.md is written by its own issue, #262, not here: the release procedure, the secret rotation list, granting and withdrawing a trusted contributor, creating agent and bot accounts, the intended settings as a checklist, keeping the runner registered for this repository only. Here: list it in the CONTRIBUTING.md index if it exists when this lands.
  • docs/contributing/releases-and-secrets.md is NOT created (decided in Where the last unplaced rules live: architecture, the two positions and the trailer rule). Its contributor half is in making-a-change.md, its release procedure in maintaining.md, and the sentence "each secret is referenced by exactly one workflow" is dropped (.gitea/workflows/AGENTS.md holds the rule). It is not in the CONTRIBUTING.md index.

Other

Acceptance

  • Every topic in the old CONTRIBUTING.md is accounted for in the PR: moved (where) or dropped (why).
  • No rule is stated in two files; a file that needs it links.
  • Each file in docs/contributing/ reads correctly on its own.
  • Docs name roles (maintainer, trusted contributor), not accounts, and nothing outside this repository.
  • The PR says what was verified and what was not.

Open proposals

  • Which file homes "each agent account names one accountable person": ai-assistance.md or maintaining.md, the other links (left to the implementer, to settle under "no rule is stated in two files"; decisions comment of 2026-11-20).
  • Whether the migration instruction is stated in the root AGENTS.md or only pointed to from it (left to the implementer, to settle under "no rule is stated in two files"; decisions comment of 2026-11-20).
  • The reason for refusing permissions.allow in the tracked settings file: proposal "a committed allow rule widens what every contributor's agent may run without asking", not accepted by the maintainer (comment of 2026-11-17).
Spec: [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103), resolution comment, section 1; later scope from the comments of the map, folded in below. ## What to build - Cut `CONTRIBUTING.md` to a short entry point: the two positions (trusted contributor, with write access and with it the secrets; outsider, who contributes through issues; see `GLOSSARY.md`) and how each gets code in, then a one-line index of the files below. Delete its "Maintainer setup" section. List `docs/contributing/maintaining.md` in the index if it exists when this lands. - Every index entry in `CONTRIBUTING.md` and every cross-reference between these files is a Markdown link with a relative target, for example `[setup](docs/contributing/setup.md)`; the link check reads links and skips a path written in backticks. Until [ci(lint): check Markdown links offline with lychee](https://git.rkdr.net/Mortis/Kamino/issues/184) lands these links are held by review; say so where a held-by is given. - Create `docs/contributing/`, one self-contained file per trigger (no "see above"). Every rule is written as the rule, a one-sentence reason, and how it is held (control naming the hook or check, review, or aspirational). Held-by values are only these three. ### Files created here **`setup.md`** - `scripts/dev-setup.sh`. It does not tell contributors to run `apm install` (the skills source is not reachable for them yet; [#229](https://git.rkdr.net/Mortis/Kamino/issues/229)). - Claude Code v2.1.281 or later (older versions read no `AGENTS.md`, or only `CLAUDE.md` in some sessions). Held by: aspirational. - Personal notes go in `~/.claude/CLAUDE.md`, never `CLAUDE.local.md` or a project `CLAUDE.md` (either switches off `AGENTS.md`; the hook in [#244](https://git.rkdr.net/Mortis/Kamino/issues/244) refuses committing one), and no `CLAUDE.md` in any directory above the clone. - Ask the contributor to confirm the startup line `no CLAUDE.md found; AGENTS.md loaded: ...`. - The tracked `.claude/settings.json` never holds `permissions.allow`; `deny` and `ask` are allowed; allowlists and personal guards go in the ignored `.claude/settings.local.json` (decided in [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213), decision 5). Do not list the file's keys here; they depend on the retest in the local-settings issue. No decision states the reason for refusing `allow`: ask the maintainer for one sentence before writing the rule. - Lines for `tea` ([#267](https://git.rkdr.net/Mortis/Kamino/issues/267), which lands after this issue because `setup.md` must exist) and for `rtk` ([#228](https://git.rkdr.net/Mortis/Kamino/issues/228)) are written by those issues, not here; likewise any line from the local-settings issue. **`making-a-change.md`** - Branches, Conventional Commits, fragments, the issue and pull request templates (use their headings even when filing through the API), Verified / Not verified, third-party material (SPDX header, `REUSE.toml`, `NOTICE`; held by the PR template checkbox and review). - Do not push to someone else's branch or a bot's branch; put your change in your own pull request. Updating a branch from `main` with Gitea's update button stays allowed. Held by: aspirational. This replaces CLAUDE.md's "hand edits on a bot branch" note. - Release, contributor half only: write a fragment, never the version. (The release procedure is in `maintaining.md`.) - A new Collection dependency states its reason in the pull request and has a version floor ([Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214), rule 10). Held by: review (`galaxy.yml` is under CODEOWNERS). - The standing migration instruction ([Sanitise private-environment references](https://git.rkdr.net/Mortis/Kamino/issues/88), no expiry), in two parts. The rule: no tracked file, issue or pull request text or comment, release note or job output refers to another repository of the maintainer's, its documents, hosts, network or namespaces, or states host sizing (widened from tracked files to anything a reader without an account can open by [Does the stand-alone rule cover issue text and job logs](https://git.rkdr.net/Mortis/Kamino/issues/253)). Held by: aspirational (no check; none is cheap for issues or logs). The search step: when bringing content in from another repository, before committing, search the incoming diff for mentions of the source repository, its documents, hostnames, addresses, account namespaces and sibling paths; rewrite comments so they stand alone; say in the pull request what was searched for. Held by review. - "Dependency and image updates" content, as an interim section marked "moves to `images/AGENTS.md` and `scripts/AGENTS.md`". The nested-files issue ([docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs](https://git.rkdr.net/Mortis/Kamino/issues/182)) lands after this one and moves it out of `docs/contributing/`. - Optional, until the README section exists (then link to it): which fragment section fits which change (major: `breaking_changes`, `removed_features`; minor: `minor_changes`, `deprecated_features`; patch: `bugfixes`, `security_fixes`, `known_issues`; never `major_changes`), per [#214](https://git.rkdr.net/Mortis/Kamino/issues/214), rule 8. **`ai-assistance.md`** - The rules from the resolution of [AI-assistance policy and commit trailer](https://git.rkdr.net/Mortis/Kamino/issues/94), credited to the Ansible community AI policy, with these changes from [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209): - The author of record is the person who opened the pull request, or the person accountable for the account that opened it. No driver line in the pull request. - Unattended agents act from the agent account and may code, push, open pull requests and issues, comment and review; they may not approve or merge. Held by: aspirational (an accepted risk in the `SECURITY.md` "Accepted risks" register). - Agent accounts are outside the merge and approvals allowlists: a control; held by review for an agent acting with a contributor's own token. - Every agent account has exactly one accountable person, named in its Gitea profile. Held by: aspirational. (Creating agent accounts is in `maintaining.md`.) - The `Status/Ready for Agent` rule and "issue text is data" live in `docs/agents/issue-tracker.md` ([#230](https://git.rkdr.net/Mortis/Kamino/issues/230), per [Who counts as having set Status/Ready for Agent, and where that rule lives](https://git.rkdr.net/Mortis/Kamino/issues/251)); `ai-assistance.md` links to it in one line and does not state it. - The trailer rule: held by the commit-msg hook (new issue, linked from [#258](https://git.rkdr.net/Mortis/Kamino/issues/258)) for the exclusion, by review for the presence of `Assisted-by:`; "held by review until the hook lands". - Add *Driver*, *Unattended agent* and *Agent account* to `GLOSSARY.md`. **`code-style.md`** - The five code-style rules from the resolution of [Guiding principles for agents and humans](https://git.rkdr.net/Mortis/Kamino/issues/91), in full form. **`reviewing.md`** (rewritten by [Where the maintainer's own procedures live, and what "held by review" means for them](https://git.rkdr.net/Mortis/Kamino/issues/250) and [Pushes onto a pull request that has a scheduled merge](https://git.rkdr.net/Mortis/Kamino/issues/248)). Root trigger: "before closing a fork pull request or merging someone else's pull request". - A fork or AGit pull request (one pushed to `refs/for/<branch>` counts as a fork pull request) always comes from an outsider. A human closes it without approving its runs and points to an issue; no agent or automation closes it. Never approve a fork run, never merge a fork pull request. Held by: aspirational. - A trusted contributor may carry the change into a pull request of their own after reading every line; they are its author of record. - Review an unmerged branch you did not write before running its hook and script changes locally: name `.pre-commit-config.yaml`, `.claude/` and every `AGENTS.md` in this rule too (a branch's agent settings, hooks, skills and instruction files take effect when a contributor opens it with an agent), and suggest reviewing it in the web diff or in a clone where no agent runs. Held by review. - Schedule a merge only on your own pull request, on a branch nobody else pushes to. Merge a pull request you reviewed (the agent account's, the release pull request) with the merge button, at the head you read. Reason: a scheduled merge merges whatever head the branch has when the checks pass, and a push does not cancel it. Held by: aspirational. ### File created elsewhere, and file not created - `docs/contributing/maintaining.md` is written by its own issue, [#262](https://git.rkdr.net/Mortis/Kamino/issues/262), not here: the release procedure, the secret rotation list, granting and withdrawing a trusted contributor, creating agent and bot accounts, the intended settings as a checklist, keeping the runner registered for this repository only. Here: list it in the `CONTRIBUTING.md` index if it exists when this lands. - `docs/contributing/releases-and-secrets.md` is NOT created (decided in [Where the last unplaced rules live: architecture, the two positions and the trailer rule](https://git.rkdr.net/Mortis/Kamino/issues/258)). Its contributor half is in `making-a-change.md`, its release procedure in `maintaining.md`, and the sentence "each secret is referenced by exactly one workflow" is dropped (`.gitea/workflows/AGENTS.md` holds the rule). It is not in the `CONTRIBUTING.md` index. ### Other - Cover the new files in `REUSE.toml` if its globs do not already. - Root `AGENTS.md` pointers to these files belong to [docs(agents): replace CLAUDE.md with a root AGENTS.md](https://git.rkdr.net/Mortis/Kamino/issues/185), which lands after this one. ## Acceptance - [ ] Every topic in the old `CONTRIBUTING.md` is accounted for in the PR: moved (where) or dropped (why). - [ ] No rule is stated in two files; a file that needs it links. - [ ] Each file in `docs/contributing/` reads correctly on its own. - [ ] Docs name roles (maintainer, trusted contributor), not accounts, and nothing outside this repository. - [ ] The PR says what was verified and what was not. ## Open proposals - Which file homes "each agent account names one accountable person": `ai-assistance.md` or `maintaining.md`, the other links (left to the implementer, to settle under "no rule is stated in two files"; decisions comment of 2026-11-20). - Whether the migration instruction is stated in the root `AGENTS.md` or only pointed to from it (left to the implementer, to settle under "no rule is stated in two files"; decisions comment of 2026-11-20). - The reason for refusing `permissions.allow` in the tracked settings file: proposal "a committed allow rule widens what every contributor's agent may run without asking", not accepted by the maintainer (comment of 2026-11-17).
Claude added the
Status
Ready for Agent
label 2026-11-15 20:31:03 +00:00
Claude added a new dependency 2026-11-15 20:31:21 +00:00
Author
Owner

Scope widened by Agent guard hook and permission allowlist:

  • Contributor setup: one sentence that permission allowlists and personal guards go in your own .claude/settings.local.json (ignored); the tracked .claude/settings.json holds only attribution and hooks.
  • Friend-push approval reading list (from #100): add .claude/ (settings, hooks, rules, skills).
Scope widened by [Agent guard hook and permission allowlist](https://git.rkdr.net/Mortis/Kamino/issues/195): - Contributor setup: one sentence that permission allowlists and personal guards go in your own `.claude/settings.local.json` (ignored); the tracked `.claude/settings.json` holds only attribution and hooks. - Friend-push approval reading list (from #100): add `.claude/` (settings, hooks, rules, skills).
Claude added a new dependency 2026-11-15 22:20:38 +00:00
Claude added a new dependency 2026-11-15 22:20:38 +00:00
Claude added a new dependency 2026-11-15 22:20:38 +00:00
Claude added a new dependency 2026-11-15 22:20:38 +00:00
Claude added a new dependency 2026-11-15 22:20:38 +00:00
Claude added this to the Open to contributors milestone 2026-11-15 22:21:20 +00:00
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • The standing migration instruction needs a file. Sanitise private-environment references decided one line in CONTRIBUTING.md with "No expiry", and docs: remove references to anything outside this repository adds it. This issue cuts CONTRIBUTING.md to an entry point, and none of the docs/contributing/ files lists the instruction. Change: put it in making-a-change.md ("when bringing content in from another repository, before committing, search the incoming diff for mentions of the source repository, its documents, hostnames, addresses, account namespaces and sibling paths; rewrite comments so they stand alone; say in the pull request what was searched for"), held by review. The root AGENTS.md issue points to it.
  • "Dependency and image updates" has no valid order. The body says to move it to images/AGENTS.md and scripts/AGENTS.md, "if that has merged first". The ordering pass made this issue land before docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs, so that never happens, and the section would be deleted with nowhere to go. Change: move it to docs/contributing/making-a-change.md as an interim section, marked "moves to images/AGENTS.md and scripts/AGENTS.md". The nested-files issue then moves it out of docs/contributing/, as its ordering comment already says.
  • The local-run rule in reviewing.md misses agent files. "review an unmerged branch's hook and script changes before running them locally": a branch's .claude/ settings, hooks and skills, and its AGENTS.md files, also take effect when a contributor opens it with an agent. The earlier comment added .claude/ to the fork-approval list only. Change: name .pre-commit-config.yaml, .claude/ and every AGENTS.md in this rule too, and suggest reviewing a friend's branch in the web diff or in a clone where no agent runs.

Waiting on other decisions: the apm install paragraph in setup.md waits on Committed skills as agent instructions: ownership, updates and required tools. The fork-approval reading list in reviewing.md waits on The friend boundary once the approval facts are known. Rules on what agent accounts may do in ai-assistance.md wait on Agent credentials and what unattended agents can do.

Review of the map (2026-11-15): corrections to this issue. - **The standing migration instruction needs a file.** [Sanitise private-environment references](https://git.rkdr.net/Mortis/Kamino/issues/88) decided one line in `CONTRIBUTING.md` with "No expiry", and [docs: remove references to anything outside this repository](https://git.rkdr.net/Mortis/Kamino/issues/108) adds it. This issue cuts `CONTRIBUTING.md` to an entry point, and none of the `docs/contributing/` files lists the instruction. Change: put it in `making-a-change.md` ("when bringing content in from another repository, before committing, search the incoming diff for mentions of the source repository, its documents, hostnames, addresses, account namespaces and sibling paths; rewrite comments so they stand alone; say in the pull request what was searched for"), held by review. The root `AGENTS.md` issue points to it. - **"Dependency and image updates" has no valid order.** The body says to move it to `images/AGENTS.md` and `scripts/AGENTS.md`, "if that has merged first". The ordering pass made this issue land before [docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs](https://git.rkdr.net/Mortis/Kamino/issues/182), so that never happens, and the section would be deleted with nowhere to go. Change: move it to `docs/contributing/making-a-change.md` as an interim section, marked "moves to `images/AGENTS.md` and `scripts/AGENTS.md`". The nested-files issue then moves it out of `docs/contributing/`, as its ordering comment already says. - **The local-run rule in `reviewing.md` misses agent files.** "review an unmerged branch's hook and script changes before running them locally": a branch's `.claude/` settings, hooks and skills, and its `AGENTS.md` files, also take effect when a contributor opens it with an agent. The earlier comment added `.claude/` to the fork-approval list only. Change: name `.pre-commit-config.yaml`, `.claude/` and every `AGENTS.md` in this rule too, and suggest reviewing a friend's branch in the web diff or in a clone where no agent runs. Waiting on other decisions: the `apm install` paragraph in `setup.md` waits on [Committed skills as agent instructions: ownership, updates and required tools](https://git.rkdr.net/Mortis/Kamino/issues/208). The fork-approval reading list in `reviewing.md` waits on [The friend boundary once the approval facts are known](https://git.rkdr.net/Mortis/Kamino/issues/205). Rules on what agent accounts may do in `ai-assistance.md` wait on [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209).
Author
Owner

Scope from The friend boundary once the approval facts are known, points 2–4: docs/contributing/reviewing.md holds the approval rule, held by review: before approving a friend's fork run, read the whole diff of that push, because any file may run on the runner (script tests, pinned installs, role tasks on the host executor). Approval applies until the friend's first merged pull request. No path list and no approval record beyond Gitea's run page.

Scope from [The friend boundary once the approval facts are known](https://git.rkdr.net/Mortis/Kamino/issues/205), points 2–4: `docs/contributing/reviewing.md` holds the approval rule, held by review: before approving a friend's fork run, read the whole diff of that push, because any file may run on the runner (script tests, pinned installs, role tasks on the host executor). Approval applies until the friend's first merged pull request. No path list and no approval record beyond Gitea's run page.
Author
Owner

Scope changed by Committed skills as agent instructions: ownership, updates and required tools (resolution comment, points 5 and 7):

  • The setup docs do not tell contributors to run apm install. The skills source is not reachable for them until #229, and the deployed skills will be committed after that.
  • rtk is a required contributor tool: name rtk-oss, installed by scripts/dev-setup.sh (#228), with no rtk init -g step. The rule is aspirational. If #228 lands first, link to it; otherwise #228 adds the line.
Scope changed by [Committed skills as agent instructions: ownership, updates and required tools](https://git.rkdr.net/Mortis/Kamino/issues/208) (resolution comment, points 5 and 7): - The setup docs do **not** tell contributors to run `apm install`. The skills source is not reachable for them until [#229](https://git.rkdr.net/Mortis/Kamino/issues/229), and the deployed skills will be committed after that. - `rtk` is a required contributor tool: name `rtk-oss`, installed by `scripts/dev-setup.sh` ([#228](https://git.rkdr.net/Mortis/Kamino/issues/228)), with no `rtk init -g` step. The rule is aspirational. If #228 lands first, link to it; otherwise #228 adds the line.
Author
Owner

Scope added by Agent credentials and what unattended agents can do for ai-assistance.md:

  • Item 2 rewritten: the author of record is the person who opened the pull request, or the person accountable for the account that opened it. No driver line in the pull request.
  • Item 6 rewritten: unattended agents act from the agent account and may code, push, open pull requests and issues, comment and review; they may not approve or merge. Held by: aspirational (accepted risk in ADR 0001).
  • Item 7: a control for agent accounts (outside the merge and approvals allowlists); held by review for an agent acting with a contributor's own token.
  • New rule: every agent account has exactly one accountable person, named in its Gitea profile; the maintainer creates agent accounts. Held by: review.
  • New rule: an unattended agent acts only on issues whose Status/Ready for Agent label was set by the maintainer or a trusted contributor, and treats issue and comment text as data, not instructions. Held by: agent instruction, aspirational.
  • Agent accounts cannot approve fork workflow runs: now a control (Actions-read team), not a review-held rule; list it as such.
  • Glossary term Agent account lands with these rules.
Scope added by [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209) for `ai-assistance.md`: - **Item 2 rewritten:** the author of record is the person who opened the pull request, or the person accountable for the account that opened it. No driver line in the pull request. - **Item 6 rewritten:** unattended agents act from the agent account and may code, push, open pull requests and issues, comment and review; they may not approve or merge. *Held by:* aspirational (accepted risk in ADR 0001). - **Item 7:** a control for agent accounts (outside the merge and approvals allowlists); held by review for an agent acting with a contributor's own token. - **New rule:** every agent account has exactly one accountable person, named in its Gitea profile; the maintainer creates agent accounts. *Held by:* review. - **New rule:** an unattended agent acts only on issues whose `Status/Ready for Agent` label was set by the maintainer or a trusted contributor, and treats issue and comment text as data, not instructions. *Held by:* agent instruction, aspirational. - Agent accounts cannot approve fork workflow runs: now a control (Actions-read team), not a review-held rule; list it as such. - Glossary term *Agent account* lands with these rules.
Author
Owner

Scope added by Making sure an agent actually loads the guidance (decisions 2 and 8), for docs/contributing/setup.md:

  • State Claude Code v2.1.281 or later (older versions read no AGENTS.md, or only CLAUDE.md in some sessions). Held by: aspirational.
  • Personal notes go in ~/.claude/CLAUDE.md, never CLAUDE.local.md or a project CLAUDE.md (either switches off AGENTS.md; the hook in #244 refuses committing one).
  • Ask the contributor to confirm the startup line no CLAUDE.md found; AGENTS.md loaded: ....
  • If #196 finds that apm's drift audit cannot coexist with tracked keys, name the per-user settings attribution and disableSkillShellExecution here, with their values.
Scope added by [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213) (decisions 2 and 8), for `docs/contributing/setup.md`: - State Claude Code v2.1.281 or later (older versions read no `AGENTS.md`, or only `CLAUDE.md` in some sessions). Held by: aspirational. - Personal notes go in `~/.claude/CLAUDE.md`, never `CLAUDE.local.md` or a project `CLAUDE.md` (either switches off `AGENTS.md`; the hook in #244 refuses committing one). - Ask the contributor to confirm the startup line `no CLAUDE.md found; AGENTS.md loaded: ...`. - If [#196](https://git.rkdr.net/Mortis/Kamino/issues/196) finds that apm's drift audit cannot coexist with tracked keys, name the per-user settings `attribution` and `disableSkillShellExecution` here, with their values.
Author
Owner

Review of the map (2026-11-17).

  • Order of reading. For reviewing.md the comment of 2026-11-16 (whole diff, no path list) replaces the body's list and the earlier "add .claude/" comment. For setup.md the comment of 2026-11-16 (no apm install) replaces the body's line.
  • Secrets rule. The body tells releases-and-secrets.md to state "each secret is referenced by exactly one workflow ..." in full. .gitea/workflows/AGENTS.md states it in full (docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs). Here it is one sentence that links there. Reason: this issue's own acceptance, "No rule is stated in two files".
  • Pointers are links. Write every index entry in CONTRIBUTING.md and every cross-reference between these files as a Markdown link with a relative target, for example [setup](docs/contributing/setup.md). The link check reads links; it skips a path written in backticks. Until ci(lint): check Markdown links offline with lychee lands these links are held by review; say so where a held-by is given.
  • Tracked settings. The first comment's sentence for setup.md, "the tracked .claude/settings.json holds only attribution and hooks", is out of date. The rule now is: the tracked file never holds permissions.allow; deny and ask are allowed; allowlists and personal guards go in the ignored .claude/settings.local.json. Decided in Making sure an agent actually loads the guidance, decision 5. No decision states the reason for refusing allow; ask the maintainer for one sentence before writing the rule (proposal: a committed allow rule widens what every contributor's agent may run without asking). Do not list the file's keys here; they depend on the retest in the local-settings issue.
  • Two dead conditionals. "If the local-settings issue finds ..." (sixth comment) and "If [the rtk issue] lands first, link to it" cannot apply, because this issue lands before both. Those issues write their own lines into setup.md.
  • Release rule. The body states "a release happens only by merging the generated release pull request" as held by the publish job. The release workflow lands in the later milestone. Until then write what is true: the maintainer cuts releases by hand, held by tag protection and the Build version check; the generated release pull request is planned. Reason: a control is named only if it exists.
  • setup.md, personal notes: add "and no CLAUDE.md in any directory above the clone". The startup-line check catches it, but the text names only the project.
  • reviewing.md: say "a fork or AGit pull request". Agent credentials and what unattended agents can do records that a pull request pushed to refs/for/<branch> is treated as a fork pull request.
  • Optional: making-a-change.md says which fragment section fits which change (major: breaking_changes, removed_features; minor: minor_changes, deprecated_features; patch: bugfixes, security_fixes, known_issues; never major_changes), until the README section exists; then it links. Decision: Role standard gaps found in review, rule 8.

Open, not blocking this issue: where the unattended-agent rule lives (Who counts as having set Status/Ready for Agent, and where that rule lives), whether releases-and-secrets.md stays a file (Where the last unplaced rules live: architecture, the three positions and the trailer rule), and whether a maintainer file joins the set (Where the maintainer's own procedures live, and what "held by review" means for them).

Proposed, not done: rewrite the body once, one block per file with the final wording (seven amending comments now).

Review of the map (2026-11-17). - **Order of reading.** For `reviewing.md` the comment of 2026-11-16 (whole diff, no path list) replaces the body's list and the earlier "add `.claude/`" comment. For `setup.md` the comment of 2026-11-16 (no `apm install`) replaces the body's line. - **Secrets rule.** The body tells `releases-and-secrets.md` to state "each secret is referenced by exactly one workflow ..." in full. `.gitea/workflows/AGENTS.md` states it in full ([docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs](https://git.rkdr.net/Mortis/Kamino/issues/182)). Here it is one sentence that links there. Reason: this issue's own acceptance, "No rule is stated in two files". - **Pointers are links.** Write every index entry in `CONTRIBUTING.md` and every cross-reference between these files as a Markdown link with a relative target, for example `[setup](docs/contributing/setup.md)`. The link check reads links; it skips a path written in backticks. Until [ci(lint): check Markdown links offline with lychee](https://git.rkdr.net/Mortis/Kamino/issues/184) lands these links are held by review; say so where a held-by is given. - **Tracked settings.** The first comment's sentence for `setup.md`, "the tracked `.claude/settings.json` holds only attribution and hooks", is out of date. The rule now is: the tracked file never holds `permissions.allow`; `deny` and `ask` are allowed; allowlists and personal guards go in the ignored `.claude/settings.local.json`. Decided in [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213), decision 5. No decision states the reason for refusing `allow`; ask the maintainer for one sentence before writing the rule (proposal: a committed allow rule widens what every contributor's agent may run without asking). Do not list the file's keys here; they depend on the retest in the local-settings issue. - **Two dead conditionals.** "If the local-settings issue finds ..." (sixth comment) and "If [the `rtk` issue] lands first, link to it" cannot apply, because this issue lands before both. Those issues write their own lines into `setup.md`. - **Release rule.** The body states "a release happens only by merging the generated release pull request" as held by the publish job. The release workflow lands in the later milestone. Until then write what is true: the maintainer cuts releases by hand, held by tag protection and the Build version check; the generated release pull request is planned. Reason: a control is named only if it exists. - **`setup.md`, personal notes:** add "and no `CLAUDE.md` in any directory above the clone". The startup-line check catches it, but the text names only the project. - **`reviewing.md`:** say "a fork or AGit pull request". [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209) records that a pull request pushed to `refs/for/<branch>` is treated as a fork pull request. - **Optional:** `making-a-change.md` says which fragment section fits which change (major: `breaking_changes`, `removed_features`; minor: `minor_changes`, `deprecated_features`; patch: `bugfixes`, `security_fixes`, `known_issues`; never `major_changes`), until the README section exists; then it links. Decision: [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214), rule 8. Open, not blocking this issue: where the unattended-agent rule lives ([Who counts as having set Status/Ready for Agent, and where that rule lives](https://git.rkdr.net/Mortis/Kamino/issues/251)), whether `releases-and-secrets.md` stays a file ([Where the last unplaced rules live: architecture, the three positions and the trailer rule](https://git.rkdr.net/Mortis/Kamino/issues/258)), and whether a maintainer file joins the set ([Where the maintainer's own procedures live, and what "held by review" means for them](https://git.rkdr.net/Mortis/Kamino/issues/250)). Proposed, not done: rewrite the body once, one block per file with the final wording (seven amending comments now).
Author
Owner

Scope added by Pushes onto a pull request that has a scheduled merge (resolution, points 1 and 2), both held by aspirational:

  • In docs/contributing/reviewing.md: "Schedule a merge only on your own pull request, on a branch nobody else pushes to. Merge a pull request you reviewed (a friend's, the agent account's, the release pull request) with the merge button, at the head you read." Reason: a scheduled merge merges whatever head the branch has when the checks pass, and a push does not cancel it.
  • In the contributing doc that covers branches and pull requests: "Do not push to someone else's branch or a bot's branch; put your change in your own pull request." Updating a branch from main with Gitea's update button stays allowed. This replaces CLAUDE.md's "hand edits on a bot branch" note.
Scope added by [Pushes onto a pull request that has a scheduled merge](https://git.rkdr.net/Mortis/Kamino/issues/248) (resolution, points 1 and 2), both held by aspirational: - In `docs/contributing/reviewing.md`: "Schedule a merge only on your own pull request, on a branch nobody else pushes to. Merge a pull request you reviewed (a friend's, the agent account's, the release pull request) with the merge button, at the head you read." Reason: a scheduled merge merges whatever head the branch has when the checks pass, and a push does not cancel it. - In the contributing doc that covers branches and pull requests: "Do not push to someone else's branch or a bot's branch; put your change in your own pull request." Updating a branch from `main` with Gitea's update button stays allowed. This replaces CLAUDE.md's "hand edits on a bot branch" note.
Author
Owner

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

This settles the open point "whether a maintainer file joins the set": it does.

  • Seventh file, docs/contributing/maintaining.md, written by its own issue (the maintaining.md issue filed from #250), not here. It holds the secret rotation list, granting and withdrawing a trusted contributor (collaborator, merge allowlist, rotate every secret), creating agent and bot accounts, the intended settings as a checklist, and keeping the runner registered for this repository only. Root trigger: "before granting or withdrawing access, rotating a secret, or changing repository or organisation settings". Here: list it in the CONTRIBUTING.md index if it exists when this lands.
  • Two positions, not three. CONTRIBUTING.md names trusted contributor (write access, and with it the secrets) and outsider (contributes through issues). The friend position is removed.
  • reviewing.md is rewritten. Drop the body's fork-run approval rule and path list, "review a friend's pull request before merging it", the .claude/ addition to the approval list (comment of 2026-11-15), and the whole-diff approval rule and "approval until first merged pull request" (comment of 2026-11-16). In their place:
    • A fork or AGit pull request always comes from an outsider. A human closes it without approving its runs and points to an issue; no agent or automation closes it. Never approve a fork run, never merge a fork pull request. Held by: aspirational.
    • A trusted contributor may carry the change into a pull request of their own after reading every line; they are its author of record.
    • The local-run rule stays; "a friend's branch" becomes a branch you did not write.
    • Scheduled-merge rule (comment of 2026-11-19): drop "a friend's" from the list of reviewed pull requests.
    • Root trigger for reviewing.md: no longer "before approving a fork's run"; for example "before closing a fork pull request or merging someone else's pull request".
  • Held-by values: control (naming the check), review, aspirational. In the comment of 2026-11-16 from Agent credentials and what unattended agents can do: the unattended-agent rule's "agent instruction, aspirational" becomes "aspirational"; the accountable-person rule's "review" becomes "aspirational". Creating agent accounts moves to maintaining.md.
## 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) This settles the open point "whether a maintainer file joins the set": it does. - **Seventh file, `docs/contributing/maintaining.md`**, written by its own issue (the maintaining.md issue filed from #250), not here. It holds the secret rotation list, granting and withdrawing a trusted contributor (collaborator, merge allowlist, rotate every secret), creating agent and bot accounts, the intended settings as a checklist, and keeping the runner registered for this repository only. Root trigger: "before granting or withdrawing access, rotating a secret, or changing repository or organisation settings". Here: list it in the `CONTRIBUTING.md` index if it exists when this lands. - **Two positions, not three.** `CONTRIBUTING.md` names trusted contributor (write access, and with it the secrets) and outsider (contributes through issues). The friend position is removed. - **`reviewing.md` is rewritten.** Drop the body's fork-run approval rule and path list, "review a friend's pull request before merging it", the `.claude/` addition to the approval list (comment of 2026-11-15), and the whole-diff approval rule and "approval until first merged pull request" (comment of 2026-11-16). In their place: - A fork or AGit pull request always comes from an outsider. A human closes it without approving its runs and points to an issue; no agent or automation closes it. Never approve a fork run, never merge a fork pull request. Held by: aspirational. - A trusted contributor may carry the change into a pull request of their own after reading every line; they are its author of record. - The local-run rule stays; "a friend's branch" becomes a branch you did not write. - Scheduled-merge rule (comment of 2026-11-19): drop "a friend's" from the list of reviewed pull requests. - Root trigger for `reviewing.md`: no longer "before approving a fork's run"; for example "before closing a fork pull request or merging someone else's pull request". - **Held-by values:** control (naming the check), review, aspirational. In the comment of 2026-11-16 from [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209): the unattended-agent rule's "agent instruction, aspirational" becomes "aspirational"; the accountable-person rule's "review" becomes "aspirational". Creating agent accounts moves to `maintaining.md`.
Author
Owner

Scope change from Who counts as having set Status/Ready for Agent, and where that rule lives (2026-11-20)

  • ai-assistance.md no longer carries the Status/Ready for Agent rule or "issue text is data" in full (the comment of 2026-11-16). Its home is docs/agents/issue-tracker.md (#230); ai-assistance.md links to it in one line.
## Scope change from [Who counts as having set Status/Ready for Agent, and where that rule lives](https://git.rkdr.net/Mortis/Kamino/issues/251) (2026-11-20) - `ai-assistance.md` no longer carries the `Status/Ready for Agent` rule or "issue text is data" in full (the comment of 2026-11-16). Its home is `docs/agents/issue-tracker.md` ([#230](https://git.rkdr.net/Mortis/Kamino/issues/230)); `ai-assistance.md` links to it in one line.
Author
Owner

Scope change from Where the last unplaced rules live: architecture, the two positions and the trailer rule (2026-11-20)

  • Do not create docs/contributing/releases-and-secrets.md. Its rule "a release happens only by merging the generated release pull request; contributors write fragments, never the version" goes to making-a-change.md, next to the fragment rule; until a release workflow exists, write the contributor half only ("write a fragment, never the version"). The release procedure goes to maintaining.md (#262). The secrets sentence is dropped; .gitea/workflows/AGENTS.md holds the rule. Remove the file from the CONTRIBUTING.md index.
  • making-a-change.md gains rule 10 of Role standard gaps found in review: a new Collection dependency states its reason in the pull request and has a version floor. Held: review (galaxy.yml under CODEOWNERS).
  • ai-assistance.md: the trailer rule's held-by is the commit-msg hook (new issue, linked from #258) for the exclusion, review for the presence of Assisted-by:; "held by review until the hook lands".
## Scope change from [Where the last unplaced rules live: architecture, the two positions and the trailer rule](https://git.rkdr.net/Mortis/Kamino/issues/258) (2026-11-20) - **Do not create `docs/contributing/releases-and-secrets.md`.** Its rule "a release happens only by merging the generated release pull request; contributors write fragments, never the version" goes to `making-a-change.md`, next to the fragment rule; until a release workflow exists, write the contributor half only ("write a fragment, never the version"). The release procedure goes to `maintaining.md` (#262). The secrets sentence is dropped; `.gitea/workflows/AGENTS.md` holds the rule. Remove the file from the `CONTRIBUTING.md` index. - **`making-a-change.md` gains rule 10** of [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214): a new Collection dependency states its reason in the pull request and has a version floor. Held: review (`galaxy.yml` under CODEOWNERS). - `ai-assistance.md`: the trailer rule's held-by is the commit-msg hook (new issue, linked from #258) for the exclusion, review for the presence of `Assisted-by:`; "held by review until the hook lands".
Author
Owner

Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, #87 (comment)). The body is the spec; the earlier comments are history.

  • Two positions (trusted contributor, outsider); reviewing.md as rewritten by #250 and #248, with no fork-run approval and no friend's pull request.
  • releases-and-secrets.md is not created (#258): contributor half in making-a-change.md, release procedure in maintaining.md (#262), secrets sentence dropped.
  • setup.md has no apm install and states Claude Code 2.1.281 or later plus the load check; tea and rtk lines come from #267 and #228.
  • The Ready-for-Agent rule lives in docs/agents/issue-tracker.md (#230) with a link from ai-assistance.md.
  • Two points stay with the implementer, under "Open proposals" (decision 7 round note): which file homes "each agent account names one accountable person", and whether the migration instruction is stated in the root AGENTS.md or only pointed to.
Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281). The body is the spec; the earlier comments are history. - Two positions (trusted contributor, outsider); `reviewing.md` as rewritten by #250 and #248, with no fork-run approval and no friend's pull request. - `releases-and-secrets.md` is not created (#258): contributor half in `making-a-change.md`, release procedure in `maintaining.md` (#262), secrets sentence dropped. - `setup.md` has no `apm install` and states Claude Code 2.1.281 or later plus the load check; `tea` and `rtk` lines come from #267 and #228. - The Ready-for-Agent rule lives in `docs/agents/issue-tracker.md` (#230) with a link from `ai-assistance.md`. - Two points stay with the implementer, under "Open proposals" (decision 7 round note): which file homes "each agent account names one accountable person", and whether the migration instruction is stated in the root `AGENTS.md` or only pointed to.
Claude added a new dependency 2026-11-20 22:13:56 +00:00
Author
Owner

Final validation round, second pass (2026-11-20): body edited.

  • making-a-change.md: the standing migration instruction now carries the widened rule (no tracked file, issue or pull request text or comment, release note or job output refers to another repository of the maintainer's, its documents, hosts, network or namespaces, or states host sizing; held: aspirational) plus the existing incoming-diff search step (held by review). Wording from the resolution of #253 (points 1 and 7) and the comment of 2026-11-20 on #108.
  • Nothing else changed. The comments above stay as history.
Final validation round, second pass (2026-11-20): body edited. - `making-a-change.md`: the standing migration instruction now carries the widened rule (no tracked file, issue or pull request text or comment, release note or job output refers to another repository of the maintainer's, its documents, hosts, network or namespaces, or states host sizing; held: aspirational) plus the existing incoming-diff search step (held by review). Wording from the resolution of #253 (points 1 and 7) and the comment of 2026-11-20 on #108. - Nothing else changed. The comments above stay as history.
Defame1297 was assigned by Claude 2026-11-22 08:15:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#189