test(roles): give every supported entry point a spec key, a README entry and a Molecule test #227

Open
opened 2026-11-16 14:25:59 +00:00 by Claude · 3 comments
Owner

Spec: What a role's platform declaration means, and supported entry points, resolution comment, "Supported entry points".

What

  • Five documented entry points exist other than main: system_baseline update and reboot, ufw service_rules and orphan_rules, fail2ban service_jail. All five already have a key in meta/argument_specs.yml. For each:
    • keep its spec key, and make the entry point run its own validation before any change;
    • list it under an "Entry points" heading in the role README;
    • exercise it in a Molecule scenario.
  • Extend the spec-defaults drift check (#135) so it fails when a spec key, a README "Entry points" item and tasks/<key>.yml disagree.
  • Add to GLOSSARY.md:
    • Supported entry point: a task file of a role that a consumer may call, with its own argument spec, README entry and test; part of the semver interface. Avoid: public task file.
    • Platform declaration: the platforms a role lists in its metadata, each one tested in CI. Avoid: supported OS. The definition allows the accepted interim from Role interface and semver: output facts, handler names, dropped platforms and internal roles, item 5: trixie is declared but untested until the Debian 13 image lands (#226).

Acceptance

  • Calling each entry point with an invalid input fails before any change, with the spec's message.
  • The drift check fails on a fixture with an undocumented spec key and on one with a README entry and no spec key.
  • Molecule passes for the touched roles.

Notes

  • No new entry point is added here; tasks/tmux.yml stays internal and is not renamed (see #186).
  • A change in an entry point's inputs is a semver change: add a fragment.
Spec: [What a role's platform declaration means, and supported entry points](https://git.rkdr.net/Mortis/Kamino/issues/207), resolution comment, "Supported entry points". ## What - Five documented entry points exist other than `main`: `system_baseline` `update` and `reboot`, `ufw` `service_rules` and `orphan_rules`, `fail2ban` `service_jail`. All five already have a key in `meta/argument_specs.yml`. For each: - keep its spec key, and make the entry point run its own validation before any change; - list it under an "Entry points" heading in the role README; - exercise it in a Molecule scenario. - Extend the spec-defaults drift check (#135) so it fails when a spec key, a README "Entry points" item and `tasks/<key>.yml` disagree. - Add to `GLOSSARY.md`: - **Supported entry point**: a task file of a role that a consumer may call, with its own argument spec, README entry and test; part of the semver interface. _Avoid_: public task file. - **Platform declaration**: the platforms a role lists in its metadata, each one tested in CI. _Avoid_: supported OS. The definition allows the accepted interim from [Role interface and semver: output facts, handler names, dropped platforms and internal roles](https://git.rkdr.net/Mortis/Kamino/issues/257), item 5: `trixie` is declared but untested until the Debian 13 image lands ([#226](https://git.rkdr.net/Mortis/Kamino/issues/226)). ## Acceptance - Calling each entry point with an invalid input fails before any change, with the spec's message. - The drift check fails on a fixture with an undocumented spec key and on one with a README entry and no spec key. - Molecule passes for the touched roles. ## Notes - No new entry point is added here; `tasks/tmux.yml` stays internal and is not renamed (see #186). - A change in an entry point's inputs is a semver change: add a fragment.
Claude added this to the Continuous delivery milestone 2026-11-16 14:25:59 +00:00
Claude added the
Status
Ready for Agent
label 2026-11-16 14:25:59 +00:00
Claude added a new dependency 2026-11-16 14:26:27 +00:00
Author
Owner

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

  • The list of documented entry points is: system_baseline update, reboot; ufw service_rules, orphan_rules; fail2ban service_jail. The spec lists three. All five already have a spec key.
  • If the drift-check issue adopted ansible-docsmith, check first whether it compares spec keys, README entries and task files. If not, this issue adds one short script and says so in the pull request (code-style rule 1). Not certain what that tool compares.
Review of the map (2026-11-17). - The list of documented entry points is: `system_baseline` `update`, `reboot`; `ufw` `service_rules`, `orphan_rules`; `fail2ban` `service_jail`. The spec lists three. All five already have a spec key. - If the drift-check issue adopted `ansible-docsmith`, check first whether it compares spec keys, README entries and task files. If not, this issue adds one short script and says so in the pull request (code-style rule 1). Not certain what that tool compares.
Author
Owner

Scope note on 2026-11-20 (final validation round of the map, #87 (comment)): the glossary term "Platform declaration ... each one tested in CI" must allow the accepted interim from Role interface and semver: output facts, handler names, dropped platforms and internal roles, item 5: trixie is declared but untested until the Debian 13 image lands (#226).

Scope note on 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281): the glossary term "Platform declaration ... each one tested in CI" must allow the accepted interim from [Role interface and semver: output facts, handler names, dropped platforms and internal roles](https://git.rkdr.net/Mortis/Kamino/issues/257), item 5: `trixie` is declared but untested until the Debian 13 image lands ([#226](https://git.rkdr.net/Mortis/Kamino/issues/226)).
Author
Owner

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

  • Five entry points listed (system_baseline update, reboot; ufw service_rules, orphan_rules; fail2ban service_jail). All five already have a spec key, checked against roles/*/meta/argument_specs.yml, so "add its key" became "keep its spec key".
  • The "Platform declaration" glossary entry now carries the trixie interim from the scope note of 2026-11-20.

The comments above stay as history.

Final validation round, second pass (2026-11-20): body edited. - Five entry points listed (`system_baseline` `update`, `reboot`; `ufw` `service_rules`, `orphan_rules`; `fail2ban` `service_jail`). All five already have a spec key, checked against `roles/*/meta/argument_specs.yml`, so "add its key" became "keep its spec key". - The "Platform declaration" glossary entry now carries the `trixie` interim from the scope note of 2026-11-20. The comments above stay as history.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#227