Where the maintainer's own procedures live, and what "held by review" means for them #250

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

Part of #87

Several decided rules bind only the maintainer, or a trusted contributor acting alone. They have no file, their held-by label is "review" although nobody else sees the act, and the one document that collects them is capped at one screen.

To decide

  1. Which tracked file holds what only the maintainer does: the secret rotation list, granting and withdrawing each position (including the merge allowlist), creating agent and bot accounts, and the intended repository settings? Options: a seventh file under docs/contributing/ with a pointer from the root agent context, a section of reviewing.md, or outside the repository.
  2. May that file name secrets and where they are issued, or only roles and purposes?
  3. How does a trusted contributor know that a fork author is a friend and not an outsider? For example: only the maintainer approves and merges an account's first pull request.
  4. What withdraws a friend's standing after a first merge (a Restricted flag, a disabled account), and what is the trigger for revisiting "approval until the first merge"?
  5. Define "review" and "aspirational" next to Control in the glossary. Is "agent instruction" a place a rule lives, not a way it is held? Which rules change label as a result?
  6. Does ADR 0001 keep the one-screen rule? If yes, which additions move out and where. If no, say so in the ADR rules.
  7. Is an ADR accepted on the maintainer's merge, or on the maintainer's approval of its pull request? A review correction changed the wording to "approval" on a backlog issue, without a session with the maintainer.

Waits on this

docs(adr): record the threat model as ADR 0001 is blocked by this ticket: its acceptance "one screen" cannot be met as written, and it points at a document that does not exist. Scope then goes by comment to docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/ and docs(glossary): make the definition of control match how the decisions use it; neither is blocked.

Evidence is in the first comment.

Part of #87 Several decided rules bind only the maintainer, or a trusted contributor acting alone. They have no file, their held-by label is "review" although nobody else sees the act, and the one document that collects them is capped at one screen. ## To decide 1. Which tracked file holds what only the maintainer does: the secret rotation list, granting and withdrawing each position (including the merge allowlist), creating agent and bot accounts, and the intended repository settings? Options: a seventh file under `docs/contributing/` with a pointer from the root agent context, a section of `reviewing.md`, or outside the repository. 2. May that file name secrets and where they are issued, or only roles and purposes? 3. How does a trusted contributor know that a fork author is a friend and not an outsider? For example: only the maintainer approves and merges an account's first pull request. 4. What withdraws a friend's standing after a first merge (a Restricted flag, a disabled account), and what is the trigger for revisiting "approval until the first merge"? 5. Define "review" and "aspirational" next to Control in the glossary. Is "agent instruction" a place a rule lives, not a way it is held? Which rules change label as a result? 6. Does ADR 0001 keep the one-screen rule? If yes, which additions move out and where. If no, say so in the ADR rules. 7. Is an ADR accepted on the maintainer's merge, or on the maintainer's approval of its pull request? A review correction changed the wording to "approval" on a backlog issue, without a session with the maintainer. ## Waits on this [docs(adr): record the threat model as ADR 0001](https://git.rkdr.net/Mortis/Kamino/issues/143) is blocked by this ticket: its acceptance "one screen" cannot be met as written, and it points at a document that does not exist. Scope then goes by comment to [docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/](https://git.rkdr.net/Mortis/Kamino/issues/189) and [docs(glossary): make the definition of control match how the decisions use it](https://git.rkdr.net/Mortis/Kamino/issues/215); neither is blocked. Evidence is in the first comment.
Claude added the
Wayfinder
Grilling
label 2026-11-17 22:24:55 +00:00
Defame1297 was assigned by Claude 2026-11-17 22:24:55 +00:00
Claude added a new dependency 2026-11-17 22:25:24 +00:00
Author
Owner

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

No file for maintainer procedures

Recognising a friend

"Review" and "aspirational"

  • GLOSSARY.md defines Principle, Rule and Control only. "Held by: review" is used for a settings change, a rotation, an approval click and a profile field. Agent credentials and what unattended agents can do, evidence: "Nobody reviews an approval click afterwards, so 'held by review' is aspirational."
  • "Agent instruction" is used as a held-by value in Enforcement map for each prose-only rule and copied into three issues. The map's Form of a rule note lists three values.

ADR 0001

## Evidence from the review of the map (2026-11-17) **No file for maintainer procedures** - [Code-owner approval against Renovate automerge, and where secrets live](https://git.rkdr.net/Mortis/Kamino/issues/210), point 7: "a rotation list (each secret and where it is issued) in the maintainer's contributor doc". No such doc is in [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103), which also deletes the "Maintainer setup" section. A tracker search for "rotation list" finds only that decision and the ADR issue. - [chore: apply the recommended repository settings, account permissions and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/192): "When a new trusted contributor is added, add them to the merge allowlist as well as to collaborators." A standing step, in an issue that will close. **Recognising a friend** - [How friends get code in](https://git.rkdr.net/Mortis/Kamino/issues/100): friend and outsider are both "An account, no repository permission". [The friend boundary once the approval facts are known](https://git.rkdr.net/Mortis/Kamino/issues/205), point 2, accepts approval until the first merge with a reason and no trigger. Gitea always asks approval for a Restricted account. - Weighs the other way: [Record current repository settings and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/90) notes that accounts are maintainer-created. **"Review" and "aspirational"** - `GLOSSARY.md` defines Principle, Rule and Control only. "Held by: review" is used for a settings change, a rotation, an approval click and a profile field. [Agent credentials and what unattended agents can do](https://git.rkdr.net/Mortis/Kamino/issues/209), evidence: "Nobody reviews an approval click afterwards, so 'held by review' is aspirational." - "Agent instruction" is used as a held-by value in [Enforcement map for each prose-only rule](https://git.rkdr.net/Mortis/Kamino/issues/102) and copied into three issues. The map's Form of a rule note lists three values. **ADR 0001** - [Public design contract replacing the ADR 0004 references](https://git.rkdr.net/Mortis/Kamino/issues/92): "**Length:** one screen at most." and accepted "on maintainer merge". The ADR issue has ten scope comments, from nine decisions and one review. - The "approval" wording comes from a review correction on [docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs](https://git.rkdr.net/Mortis/Kamino/issues/182): a trusted contributor may merge, and the maintainer's part is the code-owner approval. Not certain the maintainer confirmed it.
Author
Owner

Resolution (2026-11-20, grilled with the maintainer)

  1. Where the maintainer's procedures live: a new docs/contributing/maintaining.md, pointed to from the root AGENTS.md with the trigger "before granting or withdrawing access, rotating a secret, or changing repository or organisation settings". 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 repository and organisation settings as a checklist, and keeping the runner registered for this repository only. The settings issue links to it instead of carrying standing steps. Whether releases-and-secrets.md folds into it stays with Where the last unplaced rules live. Not chosen: a section of reviewing.md (fires on a different moment); outside the repository (breaks Standing alone).
  2. What it may name: each secret's variable name (already public in the workflows), the workflow that uses it, the bot account by role, the token scope and where it is issued. Never values, personal account names, or hosts other than this Gitea. "No infrastructure detail" stays an ADR rule.
  3. The friend position is removed (the maintainer's call, replacing the question of how to recognise a friend). Two positions remain: trusted contributor (write access, and with it the secrets) and outsider (issues). A fork or AGit pull request always comes from an outsider: a human closes it without approving its runs and points to an issue; it is never approved or merged, so Gitea keeps asking approval for every fork account. A trusted contributor may carry the change into a pull request of their own after reading every line, and is its author of record. The rule lives in reviewing.md. Held by: aspirational (Gitea lets anyone with write access approve). The people the Destination calls friends become trusted contributors or contribute through issues.
  4. Withdrawal: a trusted contributor is withdrawn by removing collaborator access and the merge-allowlist entry, then rotating every secret (already decided). No Restricted accounts, no Restricted live test. Molecule's if: fork guard stays; Gitea ≥ 28.4.0 stays a precondition of opening the repository, because the approval gate is what keeps outsiders' forks from running.
  5. Held-by vocabulary: the glossary adds Review (a person other than the one acting sees the change before it takes effect, such as a pull request reviewer or a code-owner approval) and Aspirational (written down and relied on, but checked by nothing and nobody, so a breach is found only by chance). "Agent instruction" is a place a rule lives, not a way it is held. Relabelled aspirational: secret rotation, the maintainer's standing steps, the accountable person in an agent account's profile, and every rule labelled "agent instruction". The glossary drops Friend; Outsider becomes anyone without write access to this repository, who contributes through issues.
  6. ADR 0001 keeps one screen and records the stance only: actors and how far each is defended, the trust boundary, write access is secret access, what is deliberately not done and why, and the rule that every accepted risk is written down with its trigger and planned reduction. The register of accepted risks moves to a new "Accepted risks" section of SECURITY.md, one entry per risk (risk, why accepted, trigger, planned reduction, no infrastructure detail); later decisions add entries there. Reason: an accepted risk with a trigger is a living list, and an ADR is only accepted or superseded.
  7. ADR acceptance: on the maintainer's approval of its pull request, which sets status accepted. docs/adr/ goes under CODEOWNERS, so with "require approval from code owners" the approval is a control and anyone allowed to merge may merge.
  8. The milestone Open to friends is renamed Open to contributors.

ADR: none. Point 3 reverses two decisions, but every part is cheap to undo.

Supersedes in part: How friends get code in (friend position, fork-run approval, removal of the fork guard), The friend boundary once the approval facts are known (approval until the first merge, the approver's whole-diff read), Public design contract replacing the ADR 0004 references ("accepted on maintainer merge").

Backlog: the maintaining.md issue is filed next; scope comments on #143, #144, #178, #182, #189, #191, #192, #215, #223 and the issues that used "agent instruction" as a held-by value.

## Resolution (2026-11-20, grilled with the maintainer) 1. **Where the maintainer's procedures live:** a new `docs/contributing/maintaining.md`, pointed to from the root `AGENTS.md` with the trigger "before granting or withdrawing access, rotating a secret, or changing repository or organisation settings". 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 repository and organisation settings as a checklist, and keeping the runner registered for this repository only. The settings issue links to it instead of carrying standing steps. Whether `releases-and-secrets.md` folds into it stays with [Where the last unplaced rules live](https://git.rkdr.net/Mortis/Kamino/issues/258). *Not chosen:* a section of `reviewing.md` (fires on a different moment); outside the repository (breaks Standing alone). 2. **What it may name:** each secret's variable name (already public in the workflows), the workflow that uses it, the bot account by role, the token scope and where it is issued. Never values, personal account names, or hosts other than this Gitea. "No infrastructure detail" stays an ADR rule. 3. **The friend position is removed** (the maintainer's call, replacing the question of how to recognise a friend). Two positions remain: trusted contributor (write access, and with it the secrets) and outsider (issues). A fork or AGit pull request always comes from an outsider: a human closes it without approving its runs and points to an issue; it is never approved or merged, so Gitea keeps asking approval for every fork account. A trusted contributor may carry the change into a pull request of their own after reading every line, and is its author of record. The rule lives in `reviewing.md`. *Held by:* aspirational (Gitea lets anyone with write access approve). The people the Destination calls friends become trusted contributors or contribute through issues. 4. **Withdrawal:** a trusted contributor is withdrawn by removing collaborator access and the merge-allowlist entry, then rotating every secret (already decided). No Restricted accounts, no Restricted live test. Molecule's `if:` fork guard stays; Gitea ≥ 28.4.0 stays a precondition of opening the repository, because the approval gate is what keeps outsiders' forks from running. 5. **Held-by vocabulary:** the glossary adds **Review** (a person other than the one acting sees the change before it takes effect, such as a pull request reviewer or a code-owner approval) and **Aspirational** (written down and relied on, but checked by nothing and nobody, so a breach is found only by chance). "Agent instruction" is a place a rule lives, not a way it is held. Relabelled aspirational: secret rotation, the maintainer's standing steps, the accountable person in an agent account's profile, and every rule labelled "agent instruction". The glossary drops Friend; Outsider becomes anyone without write access to this repository, who contributes through issues. 6. **ADR 0001 keeps one screen** and records the stance only: actors and how far each is defended, the trust boundary, write access is secret access, what is deliberately not done and why, and the rule that every accepted risk is written down with its trigger and planned reduction. The register of accepted risks moves to a new "Accepted risks" section of `SECURITY.md`, one entry per risk (risk, why accepted, trigger, planned reduction, no infrastructure detail); later decisions add entries there. Reason: an accepted risk with a trigger is a living list, and an ADR is only accepted or superseded. 7. **ADR acceptance:** on the maintainer's approval of its pull request, which sets status `accepted`. `docs/adr/` goes under CODEOWNERS, so with "require approval from code owners" the approval is a control and anyone allowed to merge may merge. 8. The milestone *Open to friends* is renamed *Open to contributors*. **ADR:** none. Point 3 reverses two decisions, but every part is cheap to undo. **Supersedes in part:** [How friends get code in](https://git.rkdr.net/Mortis/Kamino/issues/100) (friend position, fork-run approval, removal of the fork guard), [The friend boundary once the approval facts are known](https://git.rkdr.net/Mortis/Kamino/issues/205) (approval until the first merge, the approver's whole-diff read), [Public design contract replacing the ADR 0004 references](https://git.rkdr.net/Mortis/Kamino/issues/92) ("accepted on maintainer merge"). **Backlog:** the `maintaining.md` issue is filed next; scope comments on #143, #144, #178, #182, #189, #191, #192, #215, #223 and the issues that used "agent instruction" as a held-by value.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#250