feat(delivery): read a failing dry-run-gated check as a human gate

A gated dry run fails on purpose while it awaits its label, and no bot
commit can satisfy a gate that needs a fresh human label per push, so
sending its failure to the implementer loops. delivery-ci-checks now
classifies a failure, error or warning on a dry-run-gated check as
gated-failure: passing, never waited on, with its job link and one-line
log cause. The Awaiting gate line becomes Human gate, carrying each
check's state. The 0.7.0 rule ignoring skipped statuses on a gated
check is unchanged.

qa never fails on a gated-failure and reads dry-run output only on
success; its human-gate line feeds the implement lead's Open questions.
Review check 7 records a gated-failure as a non-blocking finding for
the approver. The format's dry-run-gated definition is loosened to
allow a failing status before the label.

Refs: #225

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-26 18:40:47 +00:00
1 parent e3d4219323
commit 244f4de1bd
9 files changed
+56 -41

No files matched your search

@@ -34,26 +34,27 @@ the tool skill names.
2. Load each tool skill the lead named, then invoke `delivery-ci-checks` to read the head commit's
check results. Its verdict maps to yours: `pending` → `pending`; `fail` → `fail`, the failed
run linked; `missing` (a listed check never reported) or `malformed: <reason>` → `stop`, because
no implementer commit can fix either. `awaiting-gate` rows are never a fail: list them under
`awaiting-gate` and judge the rest.
no implementer commit can fix either. `awaiting-gate` and `gated-failure` rows are never a
fail, because only a human can clear a gated dry run: list each under `human-gate` with its
state and cause, and judge the rest.
3. With CI green, judge against this checklist; each miss is a finding:
- Every acceptance criterion is met by a check that actually exercises it, not one that would
pass without the change.
- Edge cases the ticket implies that no check covers.
- Every `dry-run` and `dry-run-gated` check that has output: its diff or render does what the
ticket meant — read it.
- Every `dry-run` and `dry-run-gated` check in state `success`: its diff or render does what the
ticket meant — read it. A `gated-failure` log is the human's to read, never a finding.
- Idempotence, and effects check mode cannot simulate, are covered or named as post-merge
assertions.
- No test was weakened, skipped or deleted since the test author's commit.
- Every `skipped` status is legitimately path-filtered: its workflow's paths do not match the
diff. A gated check never reaches you as `skipped`; `delivery-ci-checks` reports it as
`awaiting-gate`.
`awaiting-gate` or `gated-failure`.
## Output
```text
verdict: pass | fail | pending | stop
awaiting-gate: <comma-separated check names> | none
human-gate: <check> — <awaiting-gate | gated-failure: <cause>>; … | none
findings:
- <what is wrong or uncovered> — <link>
```