docs(contributing): write maintaining.md for the maintainer's standing procedures #262

Closed
opened 2026-11-20 18:04:32 +00:00 by Claude · 5 comments
Owner

Spec: Where the maintainer's own procedures live, and what "held by review" means for them, resolution points 1, 2 and 4, as changed by What Molecule proves before a merge, and who acts on the nightly run and Where the last unplaced rules live: architecture, the two positions and the trailer rule.

What to build

A new docs/contributing/maintaining.md with what only the maintainer does, and a triggered pointer to it from the root AGENTS.md: "before cutting a release, granting or withdrawing access, rotating a secret, or changing repository or organisation settings". The root AGENTS.md trigger line is written by the root AGENTS.md issue #185, not here.

Sections:

  • Secrets and rotation. One row per secret the workflows reference: variable name, the workflow that uses it, the bot account it belongs to (by role), token scope, where it is issued. Rotate every secret when a trusted contributor's access is withdrawn or a secret may have leaked. Build the list from .gitea/workflows/ and the decisions on bot accounts and settings, secrets and the release bot.
  • Granting and withdrawing a trusted contributor. Grant: write collaborator on this repository and an entry in the main merge allowlist (save, reload, check the name survived). Withdraw: remove both, then rotate every secret.
  • Agent and bot accounts. Created by the maintainer; each agent account names its accountable person in its profile (Agent credentials); least-scope tokens.
  • Intended settings. A checklist of the repository and organisation settings as decided: branch protection on main and tag protection on v*; "Require approval from code owners"; "Dismiss stale approvals" (required approvals stay at zero); the merge allowlist; the push allowlist on release/* (no renovate/* rule); the agent account in a team with Actions read; wiki off; the runner registered for this repository only and the skills source's runner isolated from it; self-registration closed; Gitea ≥ 28.4.0.
  • Releases. Until a release workflow exists, write the true state: the maintainer cuts a release by hand (an annotated vX.Y.Z tag equal to galaxy.yml's version), held by tag protection and the Build version check. When the release workflow lands, this becomes "a release happens only by merging the generated release pull request". Two rules, each in the rule form:
    • A red nightly. The maintainer owns triage of a failed full Molecule run; any trusted contributor may fix it. Reason: the nightly is the only run of the scenarios a pull request's diff did not select. Held by control: the run opens or updates the issue Nightly Molecule run failed and closes it when green (#270).
    • No release while red. The release pull request merges only when the latest full run on main succeeded; after a fix, dispatch Molecule on main and re-run the release pull request's checks. Reason: a release must not ship drift the nightly has seen. Held by control: the release-content check (#176).
    • A full run is a schedule or workflow_dispatch run of molecule.yml on main.

Every rule in the rule form: the rule, a one-sentence reason, and Held by: aspirational unless a control is named (nobody else sees these acts), as the two release rules above name one.

Acceptance criteria

  • The file exists with the five sections (secrets and rotation, granting and withdrawing, agent and bot accounts, intended settings, releases).
  • The root AGENTS.md trigger line is written by #185, with the wording above; this issue does not write it. The CONTRIBUTING.md index entry for the file is written here only if the index of #189 does not already list it, so the two issues do not both claim the same line. This issue is blocked by #189 and #185, so both files exist when it lands.
  • Names secrets only by variable name; no values, no personal account names, no hosts other than this Gitea.
  • Every secret referenced under .gitea/workflows/ appears in the rotation list.
  • chore: apply the recommended repository settings, account permissions and branch protection links to the file for its standing step.

Notes

The settings are applied by the maintainer; this file records what they should be. releases-and-secrets.md is not created: its release procedure lives in this file (the Releases section), as decided in Where the last unplaced rules live.

Spec: [Where the maintainer's own procedures live, and what "held by review" means for them](https://git.rkdr.net/Mortis/Kamino/issues/250), resolution points 1, 2 and 4, as changed by [What Molecule proves before a merge, and who acts on the nightly run](https://git.rkdr.net/Mortis/Kamino/issues/256) and [Where the last unplaced rules live: architecture, the two positions and the trailer rule](https://git.rkdr.net/Mortis/Kamino/issues/258). ## What to build A new `docs/contributing/maintaining.md` with what only the maintainer does, and a triggered pointer to it from the root `AGENTS.md`: "before cutting a release, granting or withdrawing access, rotating a secret, or changing repository or organisation settings". The root `AGENTS.md` trigger line is written by the root `AGENTS.md` issue [#185](https://git.rkdr.net/Mortis/Kamino/issues/185), not here. Sections: - **Secrets and rotation.** One row per secret the workflows reference: variable name, the workflow that uses it, the bot account it belongs to (by role), token scope, where it is issued. Rotate every secret when a trusted contributor's access is withdrawn or a secret may have leaked. Build the list from `.gitea/workflows/` and the decisions on [bot accounts and settings](https://git.rkdr.net/Mortis/Kamino/issues/179), [secrets](https://git.rkdr.net/Mortis/Kamino/issues/210) and [the release bot](https://git.rkdr.net/Mortis/Kamino/issues/174). - **Granting and withdrawing a trusted contributor.** Grant: write collaborator on this repository and an entry in the `main` merge allowlist (save, reload, check the name survived). Withdraw: remove both, then rotate every secret. - **Agent and bot accounts.** Created by the maintainer; each agent account names its accountable person in its profile ([Agent credentials](https://git.rkdr.net/Mortis/Kamino/issues/209)); least-scope tokens. - **Intended settings.** A checklist of the repository and organisation settings as decided: branch protection on `main` and tag protection on `v*`; "Require approval from code owners"; "Dismiss stale approvals" (required approvals stay at zero); the merge allowlist; the push allowlist on `release/*` (no `renovate/*` rule); the agent account in a team with Actions read; wiki off; the runner registered for this repository only and the skills source's runner isolated from it; self-registration closed; Gitea ≥ 28.4.0. - **Releases.** Until a release workflow exists, write the true state: the maintainer cuts a release by hand (an annotated `vX.Y.Z` tag equal to `galaxy.yml`'s version), held by tag protection and the Build version check. When the release workflow lands, this becomes "a release happens only by merging the generated release pull request". Two rules, each in the rule form: - **A red nightly.** The maintainer owns triage of a failed full Molecule run; any trusted contributor may fix it. Reason: the nightly is the only run of the scenarios a pull request's diff did not select. Held by control: the run opens or updates the issue `Nightly Molecule run failed` and closes it when green ([#270](https://git.rkdr.net/Mortis/Kamino/issues/270)). - **No release while red.** The release pull request merges only when the latest full run on `main` succeeded; after a fix, dispatch Molecule on `main` and re-run the release pull request's checks. Reason: a release must not ship drift the nightly has seen. Held by control: the release-content check ([#176](https://git.rkdr.net/Mortis/Kamino/issues/176)). - A **full run** is a `schedule` or `workflow_dispatch` run of `molecule.yml` on `main`. Every rule in the rule form: the rule, a one-sentence reason, and *Held by:* aspirational unless a control is named (nobody else sees these acts), as the two release rules above name one. ## Acceptance criteria - [ ] The file exists with the five sections (secrets and rotation, granting and withdrawing, agent and bot accounts, intended settings, releases). - [ ] The root `AGENTS.md` trigger line is written by [#185](https://git.rkdr.net/Mortis/Kamino/issues/185), with the wording above; this issue does not write it. The `CONTRIBUTING.md` index entry for the file is written here only if the index of [#189](https://git.rkdr.net/Mortis/Kamino/issues/189) does not already list it, so the two issues do not both claim the same line. This issue is blocked by #189 and #185, so both files exist when it lands. - [ ] Names secrets only by variable name; no values, no personal account names, no hosts other than this Gitea. - [ ] Every secret referenced under `.gitea/workflows/` appears in the rotation list. - [ ] [chore: apply the recommended repository settings, account permissions and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/192) links to the file for its standing step. ## Notes The settings are applied by the maintainer; this file records what they should be. `releases-and-secrets.md` is not created: its release procedure lives in this file (the Releases section), as decided in [Where the last unplaced rules live](https://git.rkdr.net/Mortis/Kamino/issues/258).
Claude added this to the Open to contributors milestone 2026-11-20 18:04:32 +00:00
Claude added the
Status
Ready for Agent
label 2026-11-20 18:04:32 +00:00
Claude added a new dependency 2026-11-20 18:04:37 +00:00
Author
Owner

Scope added from What Molecule proves before a merge, and who acts on the nightly run (2026-11-20)

Two rules for maintaining.md, each in the rule form:

  • A red nightly. The maintainer owns triage of a failed full Molecule run; any trusted contributor may fix it. Reason: the nightly is the only run of the scenarios a pull request's diff did not select. Held by control: the run opens or updates the issue Nightly Molecule run failed and closes it when green (#270).
  • No release while red. The release pull request merges only when the latest full run on main succeeded; after a fix, dispatch Molecule on main and re-run the release pull request's checks. Reason: a release must not ship drift the nightly has seen. Held by control: the release-content check (#176).

A full run is a schedule or workflow_dispatch run of molecule.yml on main.

## Scope added from [What Molecule proves before a merge, and who acts on the nightly run](https://git.rkdr.net/Mortis/Kamino/issues/256) (2026-11-20) Two rules for `maintaining.md`, each in the rule form: - **A red nightly.** The maintainer owns triage of a failed full Molecule run; any trusted contributor may fix it. Reason: the nightly is the only run of the scenarios a pull request's diff did not select. Held by control: the run opens or updates the issue `Nightly Molecule run failed` and closes it when green ([#270](https://git.rkdr.net/Mortis/Kamino/issues/270)). - **No release while red.** The release pull request merges only when the latest full run on `main` succeeded; after a fix, dispatch Molecule on `main` and re-run the release pull request's checks. Reason: a release must not ship drift the nightly has seen. Held by control: the release-content check (#176). A **full run** is a `schedule` or `workflow_dispatch` run of `molecule.yml` on `main`.
Author
Owner

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

docs/contributing/releases-and-secrets.md is not created; its release procedure lives here.

  • Releases: add a section. Until a release workflow exists, write the true state: the maintainer cuts a release by hand (annotated vX.Y.Z tag equal to galaxy.yml's version), held by tag protection and the Build version check. When the release workflow lands, it becomes "a release happens only by merging the generated release pull request".
  • Root trigger becomes: "before cutting a release, granting or withdrawing access, rotating a secret, or changing repository or organisation settings".
## Scope added by [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) `docs/contributing/releases-and-secrets.md` is not created; its release procedure lives here. - **Releases**: add a section. Until a release workflow exists, write the true state: the maintainer cuts a release by hand (annotated `vX.Y.Z` tag equal to `galaxy.yml`'s version), held by tag protection and the Build version check. When the release workflow lands, it becomes "a release happens only by merging the generated release pull request". - **Root trigger** becomes: "before cutting a release, granting or withdrawing access, rotating a secret, or changing repository or organisation settings".
Author
Owner

Body edited on 2026-11-20 (final validation round of the map, #87 (comment)): replaced the stale Notes sentence that said whether releases-and-secrets.md folds in "is open in #258" with the outcome from the comment of 2026-11-20 (it is not created; its release procedure lives here), and completed the "Intended settings" list per the decided settings (branch and tag protection, code-owner approval, "dismiss stale approvals", merge allowlist, push allowlist on release/*, the agent account's Actions-read team). The comments of 2026-11-20 on the nightly rules, the Releases section and the root trigger line still apply.

Body edited on 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281): replaced the stale Notes sentence that said whether `releases-and-secrets.md` folds in "is open in #258" with the outcome from the comment of 2026-11-20 (it is not created; its release procedure lives here), and completed the "Intended settings" list per the decided settings (branch and tag protection, code-owner approval, "dismiss stale approvals", merge allowlist, push allowlist on `release/*`, the agent account's Actions-read team). The comments of 2026-11-20 on the nightly rules, the Releases section and the root trigger line still apply.
Author
Owner

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

  • Added the fifth section, Releases, with the text the comment of 2026-11-20 gives for "until a release workflow exists" (hand-cut annotated vX.Y.Z tag, held by tag protection and the Build version check) and what it becomes when the release workflow lands.
  • Added the two rules held by control: a red nightly (via the nightly-failure issue #270) and no release while red (via the release-content check #176), with the definition of a full run.
  • "Held by: aspirational" is now "aspirational unless a control is named".
  • Root trigger wording is the newest comment's ("before cutting a release, granting or withdrawing access, …"). Acceptance: the root AGENTS.md trigger line is written by #185; the CONTRIBUTING.md index entry is written here only if #189's index does not already list the file. Acceptance says "five sections".
  • The comments above stay as history.
Final validation round, second pass (2026-11-20): body edited. - Added the fifth section, Releases, with the text the comment of 2026-11-20 gives for "until a release workflow exists" (hand-cut annotated `vX.Y.Z` tag, held by tag protection and the Build version check) and what it becomes when the release workflow lands. - Added the two rules held by control: a red nightly (via the nightly-failure issue #270) and no release while red (via the release-content check #176), with the definition of a full run. - "Held by: aspirational" is now "aspirational unless a control is named". - Root trigger wording is the newest comment's ("before cutting a release, granting or withdrawing access, …"). Acceptance: the root `AGENTS.md` trigger line is written by #185; the `CONTRIBUTING.md` index entry is written here only if #189's index does not already list the file. Acceptance says "five sections". - The comments above stay as history.
Author
Owner

Scope added by #294, the pull request for #185: the root AGENTS.md leaves out the maintaining.md pointer, because the file does not exist yet and the link would be broken. The pull request that creates docs/contributing/maintaining.md adds this line to the "Before you start" list of the root AGENTS.md:

  • Before cutting a release, granting or withdrawing access, rotating a secret, or changing repository or organisation settings: docs/contributing/maintaining.md.
Scope added by #294, the pull request for #185: the root `AGENTS.md` leaves out the `maintaining.md` pointer, because the file does not exist yet and the link would be broken. The pull request that creates `docs/contributing/maintaining.md` adds this line to the "Before you start" list of the root `AGENTS.md`: - Before cutting a release, granting or withdrawing access, rotating a secret, or changing repository or organisation settings: [docs/contributing/maintaining.md](docs/contributing/maintaining.md).
Defame1297 was assigned by Claude 2026-11-24 17:04:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#262