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:
1 parent
e3d4219323
commit
244f4de1bd
9 files changed
+56
-41
No files matched your search
@@ -119,11 +119,12 @@ with blocking findings. On a PR, the issue is the one its body's `Closes #<n>` n
|
||||
- `stop` → Stop with its reason: a missing or malformed check is not the implementer's to fix.
|
||||
9. Run `delivery-handoff` Step 5: one Handoff comment on the PR, Decisions and Rejected taken from
|
||||
the role agents' reports and every step 6 and step 7 verdict, Evidence linking the PR, the
|
||||
commits and the CI runs QA cited, and Open questions one line "awaiting human gate: `<check>`"
|
||||
per name on QA's last `awaiting-gate` line (else `none`). Then remove the `WIP:` prefix from
|
||||
the PR title with `gitea-prs`, which makes the PR eligible for the review stage. The comment
|
||||
goes first so a crash between the two leaves a recorded hand-off on a PR still in `WIP:`, never
|
||||
a review-eligible PR with no Handoff comment for the reviewer's Required inbound check.
|
||||
commits and the CI runs QA cited, and Open questions one line "human gate: `<check>` —
|
||||
`<state>`", plus ": `<cause>`" for a `gated-failure`, per name on QA's last `human-gate` line
|
||||
(else `none`). Then remove the `WIP:` prefix from the PR title with `gitea-prs`, which makes the
|
||||
PR eligible for the review stage. The comment goes first so a crash between the two leaves a
|
||||
recorded hand-off on a PR still in `WIP:`, never a review-eligible PR with no Handoff comment for
|
||||
the reviewer's Required inbound check.
|
||||
|
||||
## Output
|
||||
|
||||
|
||||
@@ -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>
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user