delivery: dry-run-gated role and multiple dry-run checks #218

Closed
opened 2026-11-25 08:28:27 +00:00 by Claude · 1 comment
Owner

Part of #166

Question

Build the delivery side of Pre-merge Ansible dry run without exposing production credentials (decision 9).

  • delivery-repo-doc references/format.md, section 2 (CI checks):
    • dry-run may appear on one or more items unless the section is - none.
    • Add the role dry-run-gated: a dry run that runs only after a human-allowlisted user adds a label.
    • Update the self-check list to match.
  • Consumers (delivery-ci-checks, qa, delivery-review, and the review and verify handling where relevant): treat a missing dry-run-gated status as "awaiting the human gate". It is not a failure and not a qa fail count, and it is noted in the Handoff. A failed or errored gated run is judged like any other check. Never set the gate label.
  • Bump delivery's version and record it in the marketplace. Audit with factory-audit.

Done when the format and its consumers accept the ansible-homelab-mono entry Ansible Dry Run / ansible_dry_run (pull_request_target): dry-run-gated next to the existing Flux dry-run.

Part of #166 ## Question Build the `delivery` side of [Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200) (decision 9). - [ ] `delivery-repo-doc` `references/format.md`, section 2 (CI checks): - [ ] `dry-run` may appear on **one or more** items unless the section is `- none`. - [ ] Add the role `dry-run-gated`: a dry run that runs only after a human-allowlisted user adds a label. - [ ] Update the self-check list to match. - [ ] Consumers (`delivery-ci-checks`, qa, `delivery-review`, and the review and verify handling where relevant): treat a **missing** `dry-run-gated` status as "awaiting the human gate". It is not a failure and not a qa fail count, and it is noted in the Handoff. A failed or errored gated run is judged like any other check. Never set the gate label. - [ ] Bump `delivery`'s version and record it in the marketplace. Audit with `factory-audit`. Done when the format and its consumers accept the `ansible-homelab-mono` entry `Ansible Dry Run / ansible_dry_run (pull_request_target)`: `dry-run-gated` next to the existing Flux `dry-run`.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-25 08:28:27 +00:00
Claude added the Wayfinder/Task label 2026-11-25 08:28:27 +00:00
Claude added a new dependency 2026-11-25 08:28:52 +00:00
Defame1297 was assigned by Claude 2026-11-25 08:31:27 +00:00
Author
Owner

Resolution

Built in PR 221, delivery 0.7.0.

  • Format. Section 2 allows dry-run on one or more items, plus any number of dry-run-gated items. A dry-run-gated workflow must run only on its one named gate label. For that role, a missing or skipped status means the check is still waiting for its label. The gathering steps confirm the label filter with the human. A gated check's name must come from a run the forge has reported; if none exists, it is listed as open, because a wrong name would stay awaiting-gate forever.
  • delivery-ci-checks. Adds a new state, awaiting-gate: a gated check with no pending, failure or success status on the head SHA. skipped statuses are ignored, so a later label event can't hide an earlier gated failure. awaiting-gate counts as passing for the verdict and is never waited on. The result gains an Awaiting gate: line.
  • Consumers.
    • qa: never a fail; it judges the output of every dry run that ran.
    • Implement lead: adds "awaiting human gate: <check>" under Handoff Open questions.
    • Review checklist §7: an awaiting-gate row gets a non-blocking finding linking the PR's files.
    • Verify: unchanged, because it passes its own post-merge list, which carries no roles.
    • Gate label: the lead, qa, the reviewer and delivery-handoff all treat the gated dry run's label as human-only.
  • Audit. factory-audit returned fix-first with three problems, all fixed in 42301cf:
    • a skipped gated check passed silently;
    • qa failed a check no commit could fix;
    • the implement lead had no rule against touching the gate label.
  • Deferred to the map's hardening fog. ci-checks reads delivery.md from the PR's checkout, not its base ref. A PR can therefore turn a missing dry run into awaiting-gate by relabelling it dry-run-gated.
## Resolution Built in [PR 221](https://git.rkdr.net/Mortis/Holocron/pulls/221), `delivery` 0.7.0. - **Format.** Section 2 allows `dry-run` on one or more items, plus any number of `dry-run-gated` items. A `dry-run-gated` workflow must run only on its one named gate label. For that role, a missing or `skipped` status means the check is still waiting for its label. The gathering steps confirm the label filter with the human. A gated check's name must come from a run the forge has reported; if none exists, it is listed as open, because a wrong name would stay `awaiting-gate` forever. - **`delivery-ci-checks`.** Adds a new state, `awaiting-gate`: a gated check with no `pending`, `failure` or `success` status on the head SHA. `skipped` statuses are ignored, so a later label event can't hide an earlier gated failure. `awaiting-gate` counts as passing for the verdict and is never waited on. The result gains an `Awaiting gate:` line. - **Consumers.** - qa: never a fail; it judges the output of every dry run that ran. - Implement lead: adds "awaiting human gate: `<check>`" under Handoff Open questions. - Review checklist §7: an `awaiting-gate` row gets a non-blocking finding linking the PR's files. - Verify: unchanged, because it passes its own post-merge list, which carries no roles. - Gate label: the lead, qa, the reviewer and `delivery-handoff` all treat the gated dry run's label as human-only. - **Audit.** `factory-audit` returned fix-first with three problems, all fixed in `42301cf`: - a skipped gated check passed silently; - qa failed a check no commit could fix; - the implement lead had no rule against touching the gate label. - **Deferred to the map's hardening fog.** ci-checks reads `delivery.md` from the PR's checkout, not its base ref. A PR can therefore turn a `missing` dry run into `awaiting-gate` by relabelling it `dry-run-gated`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#218