feat(delivery): add the dry-run-gated role and allow several dry runs #221

Merged
Defame1297 merged 3 commits from feat/delivery-dry-run-gated into main 2026-11-25 11:50:38 +00:00
Owner

Closes #218

Builds the delivery side of Pre-merge Ansible dry run without exposing production credentials (decision 9). delivery 0.6.0 → 0.7.0.

Changes

  • delivery-repo-doc format, section 2 (CI checks):
    • dry-run may now appear on one or more items.
    • New role dry-run-gated: a dry run whose workflow runs only on one named gate label, which a user on the human allowlist adds. For this role, a missing or skipped status means it is still waiting for that label.
    • The gathering steps now ask which dry runs are gated. A gated check's name must come from a run the forge has actually reported; if no run exists yet, it is listed as open.
  • delivery-ci-checks:
    • New state awaiting-gate. A gated check is in it when the head SHA has no pending, failure or success status for it. 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 the skill never re-reads (waits) because of one.
    • The result gains an Awaiting gate: line.
  • qa: an awaiting-gate check is never a fail. qa judges the output of every dry run (gated or not) that ran.
  • Implement lead: writes "awaiting human gate: <check>" under the Handoff's Open questions.
  • Review checklist §7: judges every dry-run row. An awaiting-gate row gets a non-blocking finding.
  • Gate label is human-only: delivery-handoff, the lead, qa and the reviewer now each say an agent never adds, removes or re-adds a gated dry run's label.
  • Marketplace: delivery 0.7.0 recorded in apm.yml and in marketplace.json, which was regenerated with apm pack.

Review

An independent factory-audit found three problems, fixed in 42301cf:

  • A gated workflow that posts skipped would have passed as if it had run.
  • qa would have failed that skipped check, and no commit could fix it.
  • The implement lead had no rule against touching the gate label.

Deferred to the map's delivery hardening fog: delivery-ci-checks reads delivery.md from the PR's checkout rather than its base ref. A PR could therefore relabel its own dry-run as dry-run-gated. That gap predates this change; this change widens it.

Checks

tests/run-tests.sh passes (22 passed, 0 failed), and so does the full local pre-push stage, which includes apm audit --ci, apm pack --check-clean and the version-bump check.

🤖 Generated with Claude Code

https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

Closes #218 Builds the `delivery` side of [Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200) (decision 9). `delivery` 0.6.0 → 0.7.0. ## Changes - **`delivery-repo-doc` format, section 2 (CI checks):** - `dry-run` may now appear on one or more items. - New role `dry-run-gated`: a dry run whose workflow runs only on one named gate label, which a user on the human allowlist adds. For this role, a missing or `skipped` status means it is still waiting for that label. - The gathering steps now ask which dry runs are gated. A gated check's name must come from a run the forge has actually reported; if no run exists yet, it is listed as open. - **`delivery-ci-checks`:** - New state `awaiting-gate`. A gated check is in it when the head SHA has no `pending`, `failure` or `success` status for it. `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 the skill never re-reads (waits) because of one. - The result gains an `Awaiting gate:` line. - **qa:** an `awaiting-gate` check is never a fail. qa judges the output of every dry run (gated or not) that ran. - **Implement lead:** writes "awaiting human gate: `<check>`" under the Handoff's Open questions. - **Review checklist §7:** judges every dry-run row. An `awaiting-gate` row gets a non-blocking finding. - **Gate label is human-only:** `delivery-handoff`, the lead, qa and the reviewer now each say an agent never adds, removes or re-adds a gated dry run's label. - **Marketplace:** `delivery` 0.7.0 recorded in `apm.yml` and in `marketplace.json`, which was regenerated with `apm pack`. ## Review An independent `factory-audit` found three problems, fixed in `42301cf`: - A gated workflow that posts `skipped` would have passed as if it had run. - qa would have failed that `skipped` check, and no commit could fix it. - The implement lead had no rule against touching the gate label. Deferred to the map's `delivery` hardening fog: `delivery-ci-checks` reads `delivery.md` from the PR's checkout rather than its base ref. A PR could therefore relabel its own `dry-run` as `dry-run-gated`. That gap predates this change; this change widens it. ## Checks `tests/run-tests.sh` passes (22 passed, 0 failed), and so does the full local pre-push stage, which includes `apm audit --ci`, `apm pack --check-clean` and the version-bump check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude added 3 commits 2026-11-25 11:11:21 +00:00
A repo's CI checks may now list one or more dry-run checks and any
number of dry-run-gated ones: a dry run that posts its status only
after an allowlisted human adds a label. delivery-ci-checks classifies
a gated check with no status on the pinned SHA as awaiting-gate, which
passes the verdict, is never waited on, and is reported on its own
Awaiting gate line. qa never fails on it, the implement lead notes it
in the Handoff's Open questions, and the review records it as a
non-blocking finding for the approver. No agent sets the gate label.

Refs: #218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The guard hook is unchanged; the executables.allow key and the
regenerated marketplace.json follow the package version bump.

Refs: #218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
A gated workflow whose job-level label condition is unmet posts
skipped, and a later label event on the same SHA posts a newer skipped
that would mask an earlier gated failure. delivery-ci-checks now
ignores skipped statuses for a dry-run-gated check and takes the latest
of the rest, reading none as awaiting-gate. The format exempts
dry-run-gated from the skipped-passes rule and requires the workflow
to run only on its named gate label; the gatherer confirms that filter
and takes a gated check's name from the forge or lists it as open.

The review's awaiting-gate finding links the PR's files view, the
implement lead and delivery-handoff name the gated dry run's label as
human-only, and qa's and the lead's restatements are trimmed.

Refs: #218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 approved these changes 2026-11-25 11:50:34 +00:00
Defame1297 merged commit 1f24556833 into main 2026-11-25 11:50:38 +00:00
Defame1297 deleted branch feat/delivery-dry-run-gated 2026-11-25 11:50:39 +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/Holocron#221