docs(roles): bring every role README to the fixed heading set #136

Open
opened 2026-11-14 21:50:50 +00:00 by Claude · 4 comments
Owner

Spec: Role standard, resolution comment, "README".

What

The scope is every role under roles/ (ten today: the eight older roles plus traefik and _binary_update).

Every public role README has these headings, in this order:

  1. Supported platforms: the platforms the role passes Molecule on and, when any, one "Untested platforms" line. A role covering fewer than noble, resolute and trixie says why in one line.
  2. Requirements and run order: lists role dependencies.
  3. Role variables (a hand-written table)
  4. Entry points (only when there are several): lists every supported entry point. Five exist today: system_baseline update, reboot; ufw service_rules, orphan_rules; fail2ban service_jail.
  5. Variables set by the role (only when there are any): the facts a consumer reads. Keep the three documented today.
  6. Tags
  7. Example play
  8. Tests: what the scenario verifies and the platforms this role's scenario runs on.
  9. Notes, including a line "Idempotent: yes" or "Idempotent: no"

There is no licence or author heading. Today only docker has Tests, and no README carries the "Idempotent" line.

Role-specific sections have a place in the set; nothing is deleted. Entry-point sections (for example service_rules and orphan_rules in ufw) become subsections (###) under "Entry points". Other role-specific sections (for example "tmux on SSH login", "Skipping the package update" and "Unattended-upgrades origins" in system_baseline) become subsections under "Notes", or under the heading they explain.

The fixed heading set applies to public roles only. An internal role's README (_binary_update) opens with the internal-role statement and otherwise keeps its own headings; a line every README must carry goes in the nearest fitting section there.

Acceptance

Every public role README matches the list; the internal role's README opens with the internal-role statement. The Tests section says what the scenario verifies and names the platforms this role's scenario runs on.

Spec: [Role standard](https://git.rkdr.net/Mortis/Kamino/issues/93), resolution comment, "README". ## What The scope is every role under `roles/` (ten today: the eight older roles plus `traefik` and `_binary_update`). Every public role README has these headings, in this order: 1. Supported platforms: the platforms the role passes Molecule on and, when any, one "Untested platforms" line. A role covering fewer than noble, resolute and trixie says why in one line. 2. Requirements and run order: lists role dependencies. 3. Role variables (a hand-written table) 4. Entry points (only when there are several): lists every supported entry point. Five exist today: `system_baseline` `update`, `reboot`; `ufw` `service_rules`, `orphan_rules`; `fail2ban` `service_jail`. 5. Variables set by the role (only when there are any): the facts a consumer reads. Keep the three documented today. 6. Tags 7. Example play 8. Tests: what the scenario verifies and the platforms this role's scenario runs on. 9. Notes, including a line "Idempotent: yes" or "Idempotent: no" There is no licence or author heading. Today only `docker` has Tests, and no README carries the "Idempotent" line. Role-specific sections have a place in the set; nothing is deleted. Entry-point sections (for example `service_rules` and `orphan_rules` in `ufw`) become subsections (`###`) under "Entry points". Other role-specific sections (for example "tmux on SSH login", "Skipping the package update" and "Unattended-upgrades origins" in `system_baseline`) become subsections under "Notes", or under the heading they explain. The fixed heading set applies to public roles only. An internal role's README (`_binary_update`) opens with the internal-role statement and otherwise keeps its own headings; a line every README must carry goes in the nearest fitting section there. ## Acceptance Every public role README matches the list; the internal role's README opens with the internal-role statement. The Tests section says what the scenario verifies and names the platforms this role's scenario runs on.
Claude added the
Status
Ready for Agent
label 2026-11-14 21:50:50 +00:00
Claude added this to the Continuous delivery milestone 2026-11-15 22:21:20 +00:00
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • Role-specific sections have no place in the fixed heading set. The list allows nine headings and nothing else. Today roles/system_baseline/README.md also has "tmux on SSH login", "Skipping the package update" and "Unattended-upgrades origins", and roles/ufw/README.md has "service_rules entry point" and "orphan_rules entry point". These hold real usage detail. As written, an agent must either delete them or break the rule. Change: say where they go. Entry-point sections become subsections (###) under "Entry points"; other role-specific sections become subsections under "Notes", or under the heading they explain. Nothing is deleted.
  • No README has the "Idempotent" line yet. Besides Tests (only docker has it), none of the seven READMEs carries "Idempotent: yes" or "Idempotent: no". Change: add that to the "Today ..." sentence, so the PR covers every README for both.

Waiting on another decision: which entry points a role may document as supported (the system_baseline tmux entry point among them) waits on What a role's platform declaration means, and supported entry points.

Review of the map (2026-11-15): corrections to this issue. - **Role-specific sections have no place in the fixed heading set.** The list allows nine headings and nothing else. Today `roles/system_baseline/README.md` also has "tmux on SSH login", "Skipping the package update" and "Unattended-upgrades origins", and `roles/ufw/README.md` has "`service_rules` entry point" and "`orphan_rules` entry point". These hold real usage detail. As written, an agent must either delete them or break the rule. Change: say where they go. Entry-point sections become subsections (`###`) under "Entry points"; other role-specific sections become subsections under "Notes", or under the heading they explain. Nothing is deleted. - **No README has the "Idempotent" line yet.** Besides Tests (only `docker` has it), none of the seven READMEs carries "Idempotent: yes" or "Idempotent: no". Change: add that to the "Today ..." sentence, so the PR covers every README for both. Waiting on another decision: which entry points a role may document as supported (the `system_baseline` tmux entry point among them) waits on [What a role's platform declaration means, and supported entry points](https://git.rkdr.net/Mortis/Kamino/issues/207).
Author
Owner

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

The decision this issue waited on has closed. From What a role's platform declaration means, and supported entry points and Role standard gaps found in review:

  • "Supported platforms" lists the platforms the role passes Molecule on and, when any, one "Untested platforms" line. A role covering fewer than noble, resolute and trixie says why in one line.
  • "Entry points" lists every supported entry point. Five exist today: system_baseline update, reboot; ufw service_rules, orphan_rules; fail2ban service_jail.
  • "Requirements and run order" lists role dependencies.
  • Tests names the platforms this role's scenario runs on, not "both releases".
  • Eight READMEs, user_management included.

"Variables set by the role" documents facts a consumer reads. Whether those are part of the interface is open in Role interface and semver: output facts, handler names, dropped platforms and internal roles; keep the heading and the three facts documented today.

Review of the map (2026-11-17). The decision this issue waited on has closed. From [What a role's platform declaration means, and supported entry points](https://git.rkdr.net/Mortis/Kamino/issues/207) and [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214): - "Supported platforms" lists the platforms the role passes Molecule on and, when any, one "Untested platforms" line. A role covering fewer than noble, resolute and trixie says why in one line. - "Entry points" lists every supported entry point. Five exist today: `system_baseline` `update`, `reboot`; `ufw` `service_rules`, `orphan_rules`; `fail2ban` `service_jail`. - "Requirements and run order" lists role dependencies. - Tests names the platforms this role's scenario runs on, not "both releases". - Eight READMEs, `user_management` included. "Variables set by the role" documents facts a consumer reads. Whether those are part of the interface is open in [Role interface and semver: output facts, handler names, dropped platforms and internal roles](https://git.rkdr.net/Mortis/Kamino/issues/257); keep the heading and the three facts documented today.
Author
Owner

Body edited on 2026-11-20 (final validation round of the map, #87 (comment)): scope is every role under roles/ (ten today, traefik and _binary_update included), not eight; decision 7: the fixed heading set applies to public roles only, an internal role's README opens with the internal-role statement and keeps its own headings.

Body edited on 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281): scope is every role under `roles/` (ten today, `traefik` and `_binary_update` included), not eight; decision 7: the fixed heading set applies to public roles only, an internal role's README opens with the internal-role statement and keeps its own headings.
Author
Owner

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

  • Tests now names the platforms this role's scenario runs on, not "both releases" (comment of 2026-11-17).
  • Heading contents for Supported platforms, Requirements and run order, Entry points (five listed) and Variables set by the role folded in (2026-11-17).
  • Where role-specific sections go (subsections under "Entry points" or "Notes"; nothing deleted) and the missing "Idempotent" line folded in (2026-11-15).
  • The internal-role exemption is unchanged.

The comments above stay as history.

Final validation round, second pass (2026-11-20): body edited. - Tests now names the platforms this role's scenario runs on, not "both releases" (comment of 2026-11-17). - Heading contents for Supported platforms, Requirements and run order, Entry points (five listed) and Variables set by the role folded in (2026-11-17). - Where role-specific sections go (subsections under "Entry points" or "Notes"; nothing deleted) and the missing "Idempotent" line folded in (2026-11-15). - The internal-role exemption is unchanged. The comments above stay as history.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#136