docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/ #189
Notifications
Due Date
No due date set.
Blocks
Depends on
#166 ci(molecule): isolate Molecule runs per run and stop running Molecule on push to main
Mortis/Kamino
#172 ci(deps): run Renovate on push to main, state the own-image wait, shorten rule descriptions
Mortis/Kamino
#175 ci(release): generate the release pull request and publish tagged releases with the tarball
Mortis/Kamino
#178 ci(molecule): correct the stale fork claims
Mortis/Kamino
#193 chore: trim the apm plugins and pin apm-cli
Mortis/Kamino
#228 chore(dev): install rtk-oss from dev-setup.sh
Mortis/Kamino
#128 docs: remove the ADR 0004 citations
Mortis/Kamino
Reference: Mortis/Kamino#189
Reference in new issue
Block a user
Spec: Contributor doc set, resolution comment, section 1; later scope from the comments of the map, folded in below.
What to build
CONTRIBUTING.mdto a short entry point: the two positions (trusted contributor, with write access and with it the secrets; outsider, who contributes through issues; seeGLOSSARY.md) and how each gets code in, then a one-line index of the files below. Delete its "Maintainer setup" section. Listdocs/contributing/maintaining.mdin the index if it exists when this lands.CONTRIBUTING.mdand 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.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.mdscripts/dev-setup.sh. It does not tell contributors to runapm install(the skills source is not reachable for them yet; #229).AGENTS.md, or onlyCLAUDE.mdin some sessions). Held by: aspirational.~/.claude/CLAUDE.md, neverCLAUDE.local.mdor a projectCLAUDE.md(either switches offAGENTS.md; the hook in #244 refuses committing one), and noCLAUDE.mdin any directory above the clone.no CLAUDE.md found; AGENTS.md loaded: .....claude/settings.jsonnever holdspermissions.allow;denyandaskare 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 refusingallow: ask the maintainer for one sentence before writing the rule.tea(#267, which lands after this issue becausesetup.mdmust exist) and forrtk(#228) are written by those issues, not here; likewise any line from the local-settings issue.making-a-change.mdREUSE.toml,NOTICE; held by the PR template checkbox and review).mainwith Gitea's update button stays allowed. Held by: aspirational. This replaces CLAUDE.md's "hand edits on a bot branch" note.maintaining.md.)galaxy.ymlis under CODEOWNERS).images/AGENTS.mdandscripts/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 ofdocs/contributing/.breaking_changes,removed_features; minor:minor_changes,deprecated_features; patch:bugfixes,security_fixes,known_issues; nevermajor_changes), per #214, rule 8.ai-assistance.mdSECURITY.md"Accepted risks" register).maintaining.md.)Status/Ready for Agentrule and "issue text is data" live indocs/agents/issue-tracker.md(#230, per Who counts as having set Status/Ready for Agent, and where that rule lives);ai-assistance.mdlinks to it in one line and does not state it.Assisted-by:; "held by review until the hook lands".GLOSSARY.md.code-style.mdreviewing.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".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..pre-commit-config.yaml,.claude/and everyAGENTS.mdin 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.File created elsewhere, and file not created
docs/contributing/maintaining.mdis 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 theCONTRIBUTING.mdindex if it exists when this lands.docs/contributing/releases-and-secrets.mdis NOT created (decided in Where the last unplaced rules live: architecture, the two positions and the trailer rule). Its contributor half is inmaking-a-change.md, its release procedure inmaintaining.md, and the sentence "each secret is referenced by exactly one workflow" is dropped (.gitea/workflows/AGENTS.mdholds the rule). It is not in theCONTRIBUTING.mdindex.Other
REUSE.tomlif its globs do not already.AGENTS.mdpointers to these files belong to docs(agents): replace CLAUDE.md with a root AGENTS.md, which lands after this one.Acceptance
CONTRIBUTING.mdis accounted for in the PR: moved (where) or dropped (why).docs/contributing/reads correctly on its own.Open proposals
ai-assistance.mdormaintaining.md, the other links (left to the implementer, to settle under "no rule is stated in two files"; decisions comment of 2026-11-20).AGENTS.mdor 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).permissions.allowin 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).Scope widened by Agent guard hook and permission allowlist:
.claude/settings.local.json(ignored); the tracked.claude/settings.jsonholds only attribution and hooks..claude/(settings, hooks, rules, skills).Review of the map (2026-11-15): corrections to this issue.
CONTRIBUTING.mdwith "No expiry", and docs: remove references to anything outside this repository adds it. This issue cutsCONTRIBUTING.mdto an entry point, and none of thedocs/contributing/files lists the instruction. Change: put it inmaking-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 rootAGENTS.mdissue points to it.images/AGENTS.mdandscripts/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 todocs/contributing/making-a-change.mdas an interim section, marked "moves toimages/AGENTS.mdandscripts/AGENTS.md". The nested-files issue then moves it out ofdocs/contributing/, as its ordering comment already says.reviewing.mdmisses agent files. "review an unmerged branch's hook and script changes before running them locally": a branch's.claude/settings, hooks and skills, and itsAGENTS.mdfiles, 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 everyAGENTS.mdin 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 installparagraph insetup.mdwaits on Committed skills as agent instructions: ownership, updates and required tools. The fork-approval reading list inreviewing.mdwaits on The friend boundary once the approval facts are known. Rules on what agent accounts may do inai-assistance.mdwait on Agent credentials and what unattended agents can do.Scope from The friend boundary once the approval facts are known, points 2–4:
docs/contributing/reviewing.mdholds 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 changed by Committed skills as agent instructions: ownership, updates and required tools (resolution comment, points 5 and 7):
apm install. The skills source is not reachable for them until #229, and the deployed skills will be committed after that.rtkis a required contributor tool: namertk-oss, installed byscripts/dev-setup.sh(#228), with nortk init -gstep. The rule is aspirational. If #228 lands first, link to it; otherwise #228 adds the line.Scope added by Agent credentials and what unattended agents can do for
ai-assistance.md:Status/Ready for Agentlabel was set by the maintainer or a trusted contributor, and treats issue and comment text as data, not instructions. Held by: agent instruction, aspirational.Scope added by Making sure an agent actually loads the guidance (decisions 2 and 8), for
docs/contributing/setup.md:AGENTS.md, or onlyCLAUDE.mdin some sessions). Held by: aspirational.~/.claude/CLAUDE.md, neverCLAUDE.local.mdor a projectCLAUDE.md(either switches offAGENTS.md; the hook in #244 refuses committing one).no CLAUDE.md found; AGENTS.md loaded: ....attributionanddisableSkillShellExecutionhere, with their values.Review of the map (2026-11-17).
reviewing.mdthe comment of 2026-11-16 (whole diff, no path list) replaces the body's list and the earlier "add.claude/" comment. Forsetup.mdthe comment of 2026-11-16 (noapm install) replaces the body's line.releases-and-secrets.mdto state "each secret is referenced by exactly one workflow ..." in full..gitea/workflows/AGENTS.mdstates 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".CONTRIBUTING.mdand 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.setup.md, "the tracked.claude/settings.jsonholds only attribution and hooks", is out of date. The rule now is: the tracked file never holdspermissions.allow;denyandaskare 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 refusingallow; 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.rtkissue] lands first, link to it" cannot apply, because this issue lands before both. Those issues write their own lines intosetup.md.setup.md, personal notes: add "and noCLAUDE.mdin 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 torefs/for/<branch>is treated as a fork pull request.making-a-change.mdsays which fragment section fits which change (major:breaking_changes,removed_features; minor:minor_changes,deprecated_features; patch:bugfixes,security_fixes,known_issues; nevermajor_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.mdstays 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).
Scope added by Pushes onto a pull request that has a scheduled merge (resolution, points 1 and 2), both held by aspirational:
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.mainwith Gitea's update button stays allowed. This replaces CLAUDE.md's "hand edits on a bot branch" note.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.
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 theCONTRIBUTING.mdindex if it exists when this lands.CONTRIBUTING.mdnames trusted contributor (write access, and with it the secrets) and outsider (contributes through issues). The friend position is removed.reviewing.mdis 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: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".maintaining.md.Scope change from Who counts as having set Status/Ready for Agent, and where that rule lives (2026-11-20)
ai-assistance.mdno longer carries theStatus/Ready for Agentrule or "issue text is data" in full (the comment of 2026-11-16). Its home isdocs/agents/issue-tracker.md(#230);ai-assistance.mdlinks to it in one line.Scope change from Where the last unplaced rules live: architecture, the two positions and the trailer rule (2026-11-20)
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 tomaking-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 tomaintaining.md(#262). The secrets sentence is dropped;.gitea/workflows/AGENTS.mdholds the rule. Remove the file from theCONTRIBUTING.mdindex.making-a-change.mdgains 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.ymlunder 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 ofAssisted-by:; "held by review until the hook lands".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.
reviewing.mdas rewritten by #250 and #248, with no fork-run approval and no friend's pull request.releases-and-secrets.mdis not created (#258): contributor half inmaking-a-change.md, release procedure inmaintaining.md(#262), secrets sentence dropped.setup.mdhas noapm installand states Claude Code 2.1.281 or later plus the load check;teaandrtklines come from #267 and #228.docs/agents/issue-tracker.md(#230) with a link fromai-assistance.md.AGENTS.mdor only pointed to.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.