Contributor doc set #103

Closed
opened 2026-11-11 22:02:58 +00:00 by Claude · 3 comments
Owner

Part of #87

Question

Which contributor-facing documents exist, what does each own, and what do the issue and pull request templates ask for?

Decide: the split between README.md, CONTRIBUTING.md and AGENTS.md so nothing is said twice; a Code of Conduct; a stated semver and support policy; a role index and support matrix; .gitea/ISSUE_TEMPLATE/ and .gitea/PULL_REQUEST_TEMPLATE.md (with a verified / not verified section); CODEOWNERS.

Context

  • Public practice: a short CONTRIBUTING.md with copy-pasteable test commands; the Ansible collection requirements ask for a Code of Conduct, a semver statement and a communication section in the README.
  • Missing today: Code of Conduct, templates, CODEOWNERS, role index.
Part of #87 ## Question Which contributor-facing documents exist, what does each own, and what do the issue and pull request templates ask for? Decide: the split between `README.md`, `CONTRIBUTING.md` and `AGENTS.md` so nothing is said twice; a Code of Conduct; a stated semver and support policy; a role index and support matrix; `.gitea/ISSUE_TEMPLATE/` and `.gitea/PULL_REQUEST_TEMPLATE.md` (with a verified / not verified section); CODEOWNERS. ## Context - Public practice: a short `CONTRIBUTING.md` with copy-pasteable test commands; the Ansible collection requirements ask for a Code of Conduct, a semver statement and a communication section in the README. - Missing today: Code of Conduct, templates, CODEOWNERS, role index.
Claude added the
Wayfinder
Grilling
label 2026-11-11 22:02:58 +00:00
Claude added a new dependency 2026-11-11 22:03:14 +00:00
Claude added a new dependency 2026-11-11 22:03:14 +00:00
Author
Owner

Input from Resolve stale and contradictory claims: the CLAUDE.md/CONTRIBUTING.md duplication is this ticket's to settle. Topics said in both (line ranges as of main at 967fb34):

Topic CONTRIBUTING.md CLAUDE.md
Fork pull requests not supported 3-8 21-24, 66
Conventional Commits 9-10 44
Changelog fragments 11-13 47, 160-161
Third-party annotation in REUSE.toml 15-16 48
dev-setup.sh, hooks, pre-push sanity 17-24 28-30, 40-41
Releases and tags 26-29 42-43
requirements-dev pin and lock, hook SHA pins 33-39 141-148
Two-PR image loop 40-46 136-140, 97-99, 104-106
Tooling in build_ignore, no Collection release 47-49 160-161
Renovate setup, bot user, bot-diff gate, open item 50-57 126-130, 155-159, 167
No production image namespace 58-59 162-163
Molecule required check, no path filter 68-70 73-74
Only image.yml uses org secrets 71-75 66, 122

Also: whether raising the ansible-core floor (2.19 → 2.22, in #164) is a major or minor change depends on the semver policy this ticket decides.

Input from [Resolve stale and contradictory claims](https://git.rkdr.net/Mortis/Kamino/issues/95): the `CLAUDE.md`/`CONTRIBUTING.md` duplication is this ticket's to settle. Topics said in both (line ranges as of `main` at 967fb34): | Topic | CONTRIBUTING.md | CLAUDE.md | |---|---|---| | Fork pull requests not supported | 3-8 | 21-24, 66 | | Conventional Commits | 9-10 | 44 | | Changelog fragments | 11-13 | 47, 160-161 | | Third-party annotation in REUSE.toml | 15-16 | 48 | | dev-setup.sh, hooks, pre-push sanity | 17-24 | 28-30, 40-41 | | Releases and tags | 26-29 | 42-43 | | requirements-dev pin and lock, hook SHA pins | 33-39 | 141-148 | | Two-PR image loop | 40-46 | 136-140, 97-99, 104-106 | | Tooling in build_ignore, no Collection release | 47-49 | 160-161 | | Renovate setup, bot user, bot-diff gate, open item | 50-57 | 126-130, 155-159, 167 | | No production image namespace | 58-59 | 162-163 | | Molecule required check, no path filter | 68-70 | 73-74 | | Only image.yml uses org secrets | 71-75 | 66, 122 | Also: whether raising the ansible-core floor (2.19 → 2.22, in #164) is a major or minor change depends on the semver policy this ticket decides.
Defame1297 was assigned by Claude 2026-11-15 20:05:46 +00:00
Author
Owner

Resolution

Each topic lives in exactly one file; others link. Agents get progressive disclosure in three layers: root AGENTS.md (always loaded), nested AGENTS.md (by directory), and one contributor file per trigger (by pointer).

1. Files and what each owns

  • README.md (consumers): what the collection is, installing, the role table (Section 4), semver and support policy (Section 3), Communication (Section 5), Roadmap, licence, and one line pointing to CONTRIBUTING.md. The "Status: Release 1.5.0 holds…" line goes; the README names no version.
  • CONTRIBUTING.md (entry point, short): the three positions (trusted contributor, friend, outsider) and how each gets code in, plus a one-line index of docs/contributing/. The "Maintainer setup" section is deleted (superseded by Recommended repository settings and branch protection); "Dependency and image updates" moves to images/AGENTS.md and scripts/AGENTS.md.
  • docs/contributing/, one file per trigger, each self-contained (no "see above"), every rule in the map's form (rule, one-sentence reason, how held):
    • setup.md: scripts/dev-setup.sh, apm install.
    • making-a-change.md: branches, commits, fragments, the issue and pull request templates, Verified / Not verified, third-party material (NOTICE, REUSE.toml).
    • ai-assistance.md: the rules from AI-assistance policy and commit trailer.
    • code-style.md: the five code-style rules from Guiding principles for agents and humans in full form.
    • reviewing.md: approve a fork's runs only after reading that push's workflow, script, hook and molecule changes; review a friend's PR before merging; a human closes an outsider's fork PR with a pointer to issues, no agent or automation does; review an unmerged branch's hook and script changes before running them locally.
    • releases-and-secrets.md: a release happens only by merging the generated release PR, contributors write fragments, never the version; each secret is referenced by exactly one workflow.
  • Root AGENTS.md: unchanged scope from AGENTS.md structure, plus one pointer per contributor file, each with its trigger, and: "before filing an issue or opening a pull request: use the headings of the matching template in .gitea/, never your tool's built-in body; read docs/contributing/making-a-change.md" (held by review; API-filed issues and PRs bypass templates).
  • Nested AGENTS.md: the judge-script rule ("a script that judges a PR's own diff runs from main's copy; a content or artefact check runs from the PR's") lives in .gitea/workflows/AGENTS.md, since that is where the choice is made.
  • renovate.json: the two Renovate rules (descriptions at most two short sentences; a broken unattended merge earns a test, an exception only when no test can, naming the incident) go in its top-level description, not root AGENTS.md (would break the always-loaded test). Fallback if renovate-config-validator rejects it: making-a-change.md.
  • SECURITY.md: unchanged.
  • No .gitea/AGENTS.md: templates and CODEOWNERS are self-explanatory.
  • CONTRIBUTING.md's index and root AGENTS.md's pointers link the same files with different content (description vs trigger); lychee (#184) catches breakage.

2. Code of Conduct

None for now. Its only hard requirement is inclusion in the Ansible package (out of scope); contributors are known to the maintainer and outsiders only file issues. Revisit when registration opens or outsiders can open pull requests.

3. Semver and support policy

Version bumps map onto fragment sections, so release automation and the policy agree:

  • Major (breaking_changes, removed_features): removing or renaming a role or variable; changing a default so an existing playbook changes the host; dropping an Ubuntu release; raising the ansible-core floor.
  • Minor: a new role, variable, option or platform.
  • Patch: a bugfix.

Support: latest release only, no backports; Ubuntu 24.04 and 26.04; ansible-core ≥ 2.22. Exception: the 2.19 → 2.22 floor correction in #164 is a minor release with a note that 2.19 was never tested, so never supported.

4. Role index and support matrix

A README table: role, one-line purpose, link to its README. The matrix is one sentence (every role supports the same platforms, per Role standard). Held by review (adding a role is rare and maintainer-reviewed; a custom check does not earn its place).

5. Communication

README: questions, bugs and proposals go to issues; vulnerabilities to the address in SECURITY.md; accounts are created by the maintainer, no sign-up. No chat channel. The "write to the SECURITY.md address to discuss a contribution" line goes.

6. Templates

Research (Gitea docs, GitHub Copilot agent guidance, kernel and Zulip policies; Cursor forum on agents overriding repo templates): Gitea supports YAML forms and config.yml; markdown fields render on the form only; the API, tea and gitea-mcp bypass templates; agents tend to use their built-in PR body and tick unchecked boxes.

  • Issue forms in .gitea/ISSUE_TEMPLATE/, guidance in markdown fields, config.yml with blank_issues_enabled: false and a contact link to SECURITY.md:
    • Bug: role (input, not dropdown, so the role list is not duplicated), release tag and ansible-core version (inputs with regex), Ubuntu release (dropdown: 24.04, 26.04, other), minimal playbook (textarea, render: yaml), expected and actual (required).
    • Feature or role request: problem, proposal, acceptance criteria (required).
  • .gitea/PULL_REQUEST_TEMPLATE.md: What and why (link the issue), Verified (commands run, CI runs linked), Not verified. Two checkboxes, phrased as the human's own statement: third-party material recorded in NOTICE and REUSE.toml or none; as approver of a friend's PR, I read this push's workflow, script, hook and molecule changes. No Assisted-by: box: review of the commit list holds the trailer (#94), and an unchecked box is the one agents tick blindly. No boxes for what a control holds (fragments, Conventional Commits).

7. CODEOWNERS

#144 also covers the files that hold the rules: CONTRIBUTING.md, every AGENTS.md, SECURITY.md, GLOSSARY.md, docs/contributing/** (an agent rewriting its own instructions is the mistake the threat model guards against). .gitea/** already covers the templates; README.md stays unowned.

ADR

None: documentation placement, cheap to reverse.

## Resolution Each topic lives in exactly one file; others link. Agents get progressive disclosure in three layers: root `AGENTS.md` (always loaded), nested `AGENTS.md` (by directory), and one contributor file per trigger (by pointer). ### 1. Files and what each owns - **`README.md`** (consumers): what the collection is, installing, the role table (Section 4), semver and support policy (Section 3), Communication (Section 5), Roadmap, licence, and one line pointing to `CONTRIBUTING.md`. The "Status: Release 1.5.0 holds…" line goes; the README names no version. - **`CONTRIBUTING.md`** (entry point, short): the three positions (trusted contributor, friend, outsider) and how each gets code in, plus a one-line index of `docs/contributing/`. The "Maintainer setup" section is deleted (superseded by [Recommended repository settings and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/179)); "Dependency and image updates" moves to `images/AGENTS.md` and `scripts/AGENTS.md`. - **`docs/contributing/`**, one file per trigger, each self-contained (no "see above"), every rule in the map's form (rule, one-sentence reason, how held): - `setup.md`: `scripts/dev-setup.sh`, `apm install`. - `making-a-change.md`: branches, commits, fragments, the issue and pull request templates, Verified / Not verified, third-party material (`NOTICE`, `REUSE.toml`). - `ai-assistance.md`: the rules from [AI-assistance policy and commit trailer](https://git.rkdr.net/Mortis/Kamino/issues/94). - `code-style.md`: the five code-style rules from [Guiding principles for agents and humans](https://git.rkdr.net/Mortis/Kamino/issues/91) in full form. - `reviewing.md`: approve a fork's runs only after reading that push's workflow, script, hook and molecule changes; review a friend's PR before merging; a human closes an outsider's fork PR with a pointer to issues, no agent or automation does; review an unmerged branch's hook and script changes before running them locally. - `releases-and-secrets.md`: a release happens only by merging the generated release PR, contributors write fragments, never the version; each secret is referenced by exactly one workflow. - **Root `AGENTS.md`**: unchanged scope from [AGENTS.md structure](https://git.rkdr.net/Mortis/Kamino/issues/101), plus one pointer per contributor file, each with its trigger, and: "before filing an issue or opening a pull request: use the headings of the matching template in `.gitea/`, never your tool's built-in body; read `docs/contributing/making-a-change.md`" (held by review; API-filed issues and PRs bypass templates). - **Nested `AGENTS.md`**: the judge-script rule ("a script that judges a PR's own diff runs from `main`'s copy; a content or artefact check runs from the PR's") lives in `.gitea/workflows/AGENTS.md`, since that is where the choice is made. - **`renovate.json`**: the two Renovate rules (descriptions at most two short sentences; a broken unattended merge earns a test, an exception only when no test can, naming the incident) go in its top-level `description`, not root `AGENTS.md` (would break the always-loaded test). Fallback if `renovate-config-validator` rejects it: `making-a-change.md`. - **`SECURITY.md`**: unchanged. - **No `.gitea/AGENTS.md`**: templates and CODEOWNERS are self-explanatory. - `CONTRIBUTING.md`'s index and root `AGENTS.md`'s pointers link the same files with different content (description vs trigger); lychee ([#184](https://git.rkdr.net/Mortis/Kamino/issues/184)) catches breakage. ### 2. Code of Conduct None for now. Its only hard requirement is inclusion in the Ansible package (out of scope); contributors are known to the maintainer and outsiders only file issues. Revisit when registration opens or outsiders can open pull requests. ### 3. Semver and support policy Version bumps map onto fragment sections, so release automation and the policy agree: - **Major** (`breaking_changes`, `removed_features`): removing or renaming a role or variable; changing a default so an existing playbook changes the host; dropping an Ubuntu release; raising the ansible-core floor. - **Minor**: a new role, variable, option or platform. - **Patch**: a bugfix. Support: latest release only, no backports; Ubuntu 24.04 and 26.04; ansible-core ≥ 2.22. Exception: the 2.19 → 2.22 floor correction in [#164](https://git.rkdr.net/Mortis/Kamino/issues/164) is a minor release with a note that 2.19 was never tested, so never supported. ### 4. Role index and support matrix A README table: role, one-line purpose, link to its README. The matrix is one sentence (every role supports the same platforms, per [Role standard](https://git.rkdr.net/Mortis/Kamino/issues/93)). Held by review (adding a role is rare and maintainer-reviewed; a custom check does not earn its place). ### 5. Communication README: questions, bugs and proposals go to issues; vulnerabilities to the address in `SECURITY.md`; accounts are created by the maintainer, no sign-up. No chat channel. The "write to the SECURITY.md address to discuss a contribution" line goes. ### 6. Templates Research (Gitea docs, GitHub Copilot agent guidance, kernel and Zulip policies; Cursor forum on agents overriding repo templates): Gitea supports YAML forms and `config.yml`; `markdown` fields render on the form only; the API, `tea` and gitea-mcp bypass templates; agents tend to use their built-in PR body and tick unchecked boxes. - **Issue forms** in `.gitea/ISSUE_TEMPLATE/`, guidance in `markdown` fields, `config.yml` with `blank_issues_enabled: false` and a contact link to `SECURITY.md`: - **Bug**: role (input, not dropdown, so the role list is not duplicated), release tag and ansible-core version (inputs with `regex`), Ubuntu release (dropdown: 24.04, 26.04, other), minimal playbook (`textarea`, `render: yaml`), expected and actual (required). - **Feature or role request**: problem, proposal, acceptance criteria (required). - **`.gitea/PULL_REQUEST_TEMPLATE.md`**: *What and why* (link the issue), *Verified* (commands run, CI runs linked), *Not verified*. Two checkboxes, phrased as the human's own statement: third-party material recorded in `NOTICE` and `REUSE.toml` or none; as approver of a friend's PR, I read this push's workflow, script, hook and molecule changes. No `Assisted-by:` box: review of the commit list holds the trailer ([#94](https://git.rkdr.net/Mortis/Kamino/issues/94)), and an unchecked box is the one agents tick blindly. No boxes for what a control holds (fragments, Conventional Commits). ### 7. CODEOWNERS [#144](https://git.rkdr.net/Mortis/Kamino/issues/144) also covers the files that hold the rules: `CONTRIBUTING.md`, every `AGENTS.md`, `SECURITY.md`, `GLOSSARY.md`, `docs/contributing/**` (an agent rewriting its own instructions is the mistake the threat model guards against). `.gitea/**` already covers the templates; `README.md` stays unowned. ### ADR None: documentation placement, cheap to reverse.
Author
Owner

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

Partly superseded by The friend boundary once the approval facts are known: the approver checkbox leaves the pull request template, and reviewing.md says to read the whole diff, with no path list.

Partly superseded by Supported and tested ansible-core versions: every floor raise is a major release, the 2.19 → 2.22 one included. The exception in section 3 is gone.

Partly superseded by What a role's platform declaration means, and supported entry points: a role declares the platforms of the hosts it targets, so the support matrix is not one sentence for all roles.

Partly superseded by Committed skills as agent instructions: ownership, updates and required tools: setup.md does not tell contributors to run apm install.

Open after this review: the doc set has no file for what only the maintainer does (Where the maintainer's own procedures live, and what "held by review" means for them), and no named home for "architecture" (Where the last unplaced rules live: architecture, the three positions and the trailer rule).

Review of the map (2026-11-17). Partly superseded by [The friend boundary once the approval facts are known](https://git.rkdr.net/Mortis/Kamino/issues/205): the approver checkbox leaves the pull request template, and `reviewing.md` says to read the whole diff, with no path list. Partly superseded by [Supported and tested ansible-core versions](https://git.rkdr.net/Mortis/Kamino/issues/206): every floor raise is a major release, the 2.19 → 2.22 one included. The exception in section 3 is gone. Partly superseded by [What a role's platform declaration means, and supported entry points](https://git.rkdr.net/Mortis/Kamino/issues/207): a role declares the platforms of the hosts it targets, so the support matrix is not one sentence for all roles. Partly superseded by [Committed skills as agent instructions: ownership, updates and required tools](https://git.rkdr.net/Mortis/Kamino/issues/208): `setup.md` does not tell contributors to run `apm install`. Open after this review: the doc set has no file for what only the maintainer does ([Where the maintainer's own procedures live, and what "held by review" means for them](https://git.rkdr.net/Mortis/Kamino/issues/250)), and no named home for "architecture" ([Where the last unplaced rules live: architecture, the three positions and the trailer rule](https://git.rkdr.net/Mortis/Kamino/issues/258)).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#103