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

Merged
Defame1297 merged 2 commits from docs/189-contributor-doc-split into main 2026-11-22 09:01:51 +00:00
Owner

What and why

Closes #189

CONTRIBUTING.md is now a short entry point: the two positions and how each gets code in, then an index. The rules move to one file per trigger in docs/contributing/: setup.md, making-a-change.md, ai-assistance.md, code-style.md and reviewing.md. Each rule is written as the rule, a one-sentence reason, and how it is held (control, review or aspirational).

GLOSSARY.md gains Driver, Unattended agent and Agent account. In CLAUDE.md, the "hand edits on a bot branch" bullet is replaced by a pointer to the new rule against pushing to someone else's branch. The rest of CLAUDE.md is left to #185.

maintaining.md (#262) does not exist yet, so it is not in the index. REUSE.toml needs no change: its ** annotation covers the new files.

Choices the issue left open, and settled points

  • "Every agent account has one accountable person" lives in ai-assistance.md; maintaining.md should link to it. "The maintainer creates agent accounts" is left for maintaining.md to state.
  • The migration instruction is stated in full in making-a-change.md. Recommendation for #185: the root AGENTS.md only points to it.
  • The reason for refusing permissions.allow was approved by the maintainer in the session: a branch's settings take effect for whoever opens it with an agent, so an allow rule on an unmerged branch runs commands unprompted before review, while deny and ask only add prompts.

Where each topic of the old CONTRIBUTING.md went

Old topic Now
Open a PR against main; no self-registration CONTRIBUTING.md (positions); making-a-change.md (branch rule)
Fork PRs not supported reviewing.md (fork or AGit PR rule); CONTRIBUTING.md links to it
"Fork workflows get no secrets and a read-only token" Dropped: a fact about Gitea, not a rule. The .gitea/workflows/ guidance (#182) owns workflow facts.
"To discuss a contribution, write to the address in SECURITY.md" Dropped, as decided in the Contributor doc set ticket (#103), section 5. Outsiders use issues.
Standing alone, and the incoming-diff search making-a-change.md, widened as #253 decided
Conventional Commits making-a-change.md
Changelog fragments making-a-change.md, plus the section-to-bump table from #214 rule 8
Role variable prefix Moved earlier: roles/AGENTS.md holds it; linked from making-a-change.md and code-style.md
Third-party material making-a-change.md
dev-setup.sh, pre-commit run, pre-push sanity setup.md
Never commit credentials making-a-change.md (held by the gitleaks hook and the Lint scan)
Release procedure Dropped here; #262 carries it. making-a-change.md keeps only the contributor half: write a fragment, never the version.
Dependency and image updates making-a-change.md, interim section marked "moves to images/AGENTS.md and scripts/AGENTS.md" (#182)
Maintainer setup Dropped here; #262 carries it (superseded by #179)

Three changes to the moved "Dependency and image updates" text:

  • The lock needs "the Python of .python-version", not "Python 3.13": .python-version is 3.14.
  • The literal denied image namespace is replaced by "the string is in scripts/check_image_versions.py".
  • The RENOVATE_BOT_TOKEN secret name and "see CLAUDE.md" are removed, and the Renovate test advice now matches renovate.yml: test locally with renovate --platform=local, because a dry run in Actions reads main.

Text removed here, for #262

Releases are cut by the maintainer: bump version in galaxy.yml, add a release_summary: fragment, run antsibull-changelog release in a release PR (commit the generated CHANGELOG.rst and changelogs/.plugin-cache.yaml), then push an annotated vX.Y.Z tag.

Maintainer setup. Settings the workflows cannot enforce and the repository needs before it accepts outside contributions:

  • Protect the v* tags so only maintainers can create them. A tag run uses the workflow files of the tagged commit and may receive organisation secrets.
  • Protect main: pull request required, with the Lint and Build checks. Molecule has no path filter on pull requests (the job always starts and chooses its scenarios itself), so it can be made a required check as well; that is the operator's decision.
  • The image workflow (.gitea/workflows/image.yml) pushes with the organisation secrets PACKAGE_PUSH_USER and PACKAGE_PUSH_TOKEN (a bot user with write access to the organisation's packages and a token with only the write:package scope). Keep those the only credentials stored at organisation level.

Known interim overlaps

  • CLAUDE.md still states many of these rules until #185 replaces it.
  • A tracked root CLAUDE.md still exists, so the "no project CLAUDE.md" rule and the startup check in setup.md do not hold yet. setup.md says so.
  • .claude/settings.local.json is not in .gitignore until #196 lands. setup.md says so.
  • The trailer exclusion is held by review until the commit-msg hook in #272 lands.

Verified

  • pre-commit run on the changed files, and the commit-msg and pre-push hooks: gitleaks, REUSE, ruff format, Conventional Commit and ansible-test sanity all passed.
  • Every relative Markdown link target in CONTRIBUTING.md and docs/contributing/*.md exists (a throwaway script, not committed).
  • No new file reaches 200 lines; the largest, making-a-change.md, is about 125.
  • A grep of the new text for account names, host and domain names and the removed position: matches only in the glossary's "Avoid" lists. No content was brought in from another repository.
  • Facts cross-checked against the repository: hook IDs and stages, Lint step names, CODEOWNERS coverage, script paths, IGNORED and build_ignore covering docs/.
  • The two-axis code-review (standards and spec) ran. Fixes applied:
    • Held-by lines that named the wrong check.
    • The wrong Renovate dry-run advice, and a false "automerge stays off" sentence.
    • The fork rule and "only the maintainer creates agent accounts" were each stated in two places.
    • The interim caveat for the root CLAUDE.md.
    • Words the glossary lists under "Avoid".

Not verified

  • No offline link check exists yet (#184), so the links are held by review.
  • How Gitea renders these pages.
  • The exact Claude Code startup-line text and the 2.1.281 minimum come from the decision tickets; I did not test them.
  • The control behind "no agent approves or merges" assumes the agent account is off the merge and approvals allowlists (#192); I did not check repository settings.
  • The CI result of this pull request: Lint and Build had not run when this was written.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code:claude-opus-5-5

## What and why Closes #189 `CONTRIBUTING.md` is now a short entry point: the two positions and how each gets code in, then an index. The rules move to one file per trigger in `docs/contributing/`: `setup.md`, `making-a-change.md`, `ai-assistance.md`, `code-style.md` and `reviewing.md`. Each rule is written as the rule, a one-sentence reason, and how it is held (control, review or aspirational). `GLOSSARY.md` gains *Driver*, *Unattended agent* and *Agent account*. In `CLAUDE.md`, the "hand edits on a bot branch" bullet is replaced by a pointer to the new rule against pushing to someone else's branch. The rest of `CLAUDE.md` is left to #185. `maintaining.md` (#262) does not exist yet, so it is not in the index. `REUSE.toml` needs no change: its `**` annotation covers the new files. ### Choices the issue left open, and settled points - **"Every agent account has one accountable person"** lives in `ai-assistance.md`; `maintaining.md` should link to it. "The maintainer creates agent accounts" is left for `maintaining.md` to state. - **The migration instruction** is stated in full in `making-a-change.md`. Recommendation for #185: the root `AGENTS.md` only points to it. - **The reason for refusing `permissions.allow`** was approved by the maintainer in the session: a branch's settings take effect for whoever opens it with an agent, so an `allow` rule on an unmerged branch runs commands unprompted before review, while `deny` and `ask` only add prompts. ### Where each topic of the old `CONTRIBUTING.md` went | Old topic | Now | |---|---| | Open a PR against `main`; no self-registration | `CONTRIBUTING.md` (positions); `making-a-change.md` (branch rule) | | Fork PRs not supported | `reviewing.md` (fork or AGit PR rule); `CONTRIBUTING.md` links to it | | "Fork workflows get no secrets and a read-only token" | **Dropped**: a fact about Gitea, not a rule. The `.gitea/workflows/` guidance (#182) owns workflow facts. | | "To discuss a contribution, write to the address in `SECURITY.md`" | **Dropped**, as decided in the Contributor doc set ticket (#103), section 5. Outsiders use issues. | | Standing alone, and the incoming-diff search | `making-a-change.md`, widened as #253 decided | | Conventional Commits | `making-a-change.md` | | Changelog fragments | `making-a-change.md`, plus the section-to-bump table from #214 rule 8 | | Role variable prefix | **Moved earlier**: `roles/AGENTS.md` holds it; linked from `making-a-change.md` and `code-style.md` | | Third-party material | `making-a-change.md` | | `dev-setup.sh`, `pre-commit run`, pre-push sanity | `setup.md` | | Never commit credentials | `making-a-change.md` (held by the gitleaks hook and the Lint scan) | | Release procedure | **Dropped here; #262 carries it.** `making-a-change.md` keeps only the contributor half: write a fragment, never the version. | | Dependency and image updates | `making-a-change.md`, interim section marked "moves to `images/AGENTS.md` and `scripts/AGENTS.md`" (#182) | | Maintainer setup | **Dropped here; #262 carries it** (superseded by #179) | Three changes to the moved "Dependency and image updates" text: - The lock needs "the Python of `.python-version`", not "Python 3.13": `.python-version` is 3.14. - The literal denied image namespace is replaced by "the string is in `scripts/check_image_versions.py`". - The `RENOVATE_BOT_TOKEN` secret name and "see CLAUDE.md" are removed, and the Renovate test advice now matches `renovate.yml`: test locally with `renovate --platform=local`, because a dry run in Actions reads `main`. ### Text removed here, for #262 > Releases are cut by the maintainer: bump `version` in `galaxy.yml`, add a `release_summary:` fragment, run `antsibull-changelog release` in a release PR (commit the generated `CHANGELOG.rst` and `changelogs/.plugin-cache.yaml`), then push an annotated `vX.Y.Z` tag. > **Maintainer setup.** Settings the workflows cannot enforce and the repository needs before it accepts outside contributions: > - Protect the `v*` tags so only maintainers can create them. A tag run uses the workflow files of the tagged commit and may receive organisation secrets. > - Protect `main`: pull request required, with the `Lint` and `Build` checks. Molecule has no path filter on pull requests (the job always starts and chooses its scenarios itself), so it can be made a required check as well; that is the operator's decision. > - The image workflow (`.gitea/workflows/image.yml`) pushes with the organisation secrets `PACKAGE_PUSH_USER` and `PACKAGE_PUSH_TOKEN` (a bot user with write access to the organisation's packages and a token with only the `write:package` scope). Keep those the only credentials stored at organisation level. ### Known interim overlaps - `CLAUDE.md` still states many of these rules until #185 replaces it. - A tracked root `CLAUDE.md` still exists, so the "no project `CLAUDE.md`" rule and the startup check in `setup.md` do not hold yet. `setup.md` says so. - `.claude/settings.local.json` is not in `.gitignore` until #196 lands. `setup.md` says so. - The trailer exclusion is held by review until the commit-msg hook in #272 lands. ## Verified - `pre-commit run` on the changed files, and the commit-msg and pre-push hooks: gitleaks, REUSE, ruff format, Conventional Commit and `ansible-test sanity` all passed. - Every relative Markdown link target in `CONTRIBUTING.md` and `docs/contributing/*.md` exists (a throwaway script, not committed). - No new file reaches 200 lines; the largest, `making-a-change.md`, is about 125. - A grep of the new text for account names, host and domain names and the removed position: matches only in the glossary's "Avoid" lists. No content was brought in from another repository. - Facts cross-checked against the repository: hook IDs and stages, Lint step names, `CODEOWNERS` coverage, script paths, `IGNORED` and `build_ignore` covering `docs/`. - The two-axis `code-review` (standards and spec) ran. Fixes applied: - Held-by lines that named the wrong check. - The wrong Renovate dry-run advice, and a false "automerge stays off" sentence. - The fork rule and "only the maintainer creates agent accounts" were each stated in two places. - The interim caveat for the root `CLAUDE.md`. - Words the glossary lists under "Avoid". ## Not verified - No offline link check exists yet (#184), so the links are held by review. - How Gitea renders these pages. - The exact Claude Code startup-line text and the 2.1.281 minimum come from the decision tickets; I did not test them. - The control behind "no agent approves or merges" assumes the agent account is off the merge and approvals allowlists (#192); I did not check repository settings. - The CI result of this pull request: Lint and Build had not run when this was written. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code:claude-opus-5-5
Claude added this to the Open to contributors milestone 2026-11-22 08:44:42 +00:00
Claude added 1 commit 2026-11-22 08:44:43 +00:00
docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
95b5bf0c94
CONTRIBUTING.md becomes a short entry point: the two positions and an
index. The rules move to one file per trigger in docs/contributing/
(setup, making a change, AI assistance, code style, reviewing), each
written as the rule, its reason and how it is held. GLOSSARY.md gains
Driver, Unattended agent and Agent account. CLAUDE.md's bot-branch note
now points to the new rule against pushing to someone else's branch.

Closes #189

Assisted-by: Claude Code:claude-opus-5-5
CODEOWNERS rules requested review from Defame1297 2026-11-22 08:44:43 +00:00
Defame1297 added 1 commit 2026-11-22 08:47:00 +00:00
Merge remote-tracking branch 'origin/main' into docs/189-contributor-doc-split
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 46s
Molecule / molecule (pull_request) Successful in 3s
66f8a8e0f2
# Conflicts:
#	CONTRIBUTING.md
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-22 09:01:44 +00:00
Defame1297 approved these changes 2026-11-22 09:01:49 +00:00
Defame1297 merged commit ef2005dbac into main 2026-11-22 09:01:51 +00:00
Defame1297 deleted branch docs/189-contributor-doc-split 2026-11-22 09:01:51 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#290