Repository navigation
feat(ci): record why the pr-verify capture is blocked - #16459
Conversation
The capture stays key-only on both legs. A capture the key cannot make now records its cause, credit-stop, empty-key or probe-handoff, each with its own reason, in place of the fixed "subscription token cannot go behind the proxy (R41)" text. The cause comes only from the credit read and the next-leg call; the collect step drops any cause from the driven session's summary, and write-verdict accepts one only on a blocked capture and only from that list. While the credit gate holds the key off, the job still skips the resolver and every GitHub read, and now uploads the blocked capture, named from the event's pull request and head. The verdict's evidence carries the cause, and the verdict step annotates the capture outcome and cause. A credit stop on the probe's key raises the handoff warning naming the pr-verify role's key and the run, also in the run summary. Closes #16193 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #16459, incremental since
|
|
claude-review reviewed Code review (incremental, blocking only): #16459, record why the pr-verify capture is blockedNo blocking findings. This lane already reviewed an earlier head ( What I checked
Notes
Verifier dropped 0 of 0 candidates. |
…green Security review fixes for the capture's blocked cause: - The collect step strips `cause` from the top level as well as from `capture`, and write-verdict admits a cause only in the nested shape the job writes, so a driven session cannot forge one through the flat summary shape. - The gate-held reason names the credit-stop marker that held the key off, since a same-repository workflow can forge that marker. - A next-leg reason outside the known three records the cause `unrecognized` and keeps the job green; the reason itself is printed nowhere. - The header and the README call the cause advisory: the strip runs after the head checkout, so it informs an operator and gates nothing. - The strip removes its temporary file when jq fails. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Closes #16193
Summary
The pr-verify capture stays on pr-verify's API key for both its driver legs and its driven session (the owner's option A on #16193). What changes is what a capture the key cannot make says:
credit-stop,empty-key,probe-handofforunrecognized, each with its own reason. The cause informs an operator and gates nothing: the strip that keeps it the job's own runs after the head checkout. The fixed "subscription token cannot go behind the proxy (R41)" reason is gone.verdict.jsonevidence) carries thatcause, and the verdict step annotatespr-verify capture::pr=<n> capture=blocked cause=<cause>.Fix
.github/workflows/pr-verify-capture.ymlcredit-stop, with a reason that names the credit-stop marker (forgeable by a same-repository workflow) and the run it names;credit-stop→credit-stop;no-key→empty-key;auth→probe-handoff;unrecognized, job green, the value printed nowhere.writtenoutput.causefrom the driven session's summary withjq, at the top level and insidecapture, and removes its temporary file ifjqfails.upstream-apply-changelog.ymland the other lanes raise on a key's credit stop, and the probe leg's lane-outcome record still carries the class. No new service, secret or permission..github/scripts/pr-verify/write-verdict.mjscauseonly in run-e2e's nested shape, the one the job writes, on ablockedcapture and fromCAUSES. A cause in the flat shape, or anything else off-schema, records the capture unreadable (blocked).causewhen the capture recorded one.captureLineprints the outcome and cause from the closed lists only, never the reason text.docs/conventions/pr-pipeline/README.md(Verifier verdict) and a.changes/pr-pipeline/fragment describe the above.Credential separation is unchanged
permissions:block, or which credential any leg uses.steps.credit.outputs.next-leg,origin-run) and the next-leg call (steps.next.outputs.next-reason). Both run before any head checkout, and each value is matched against a fixed list or a digit pattern before use.$GITHUB_OUTPUT/$GITHUB_ENV, or interpolated. The collect step reads the sandbox summary as data withjqafter the existing symlink and regular-file checks.Verification
node --test --test-concurrency=4 ".github/scripts/pr-verify/*.test.mjs": 406 tests, 406 pass, 0 fail.shellcheckon the three changed run blocks: clean.actionlintstops on the pre-existingcache-modejob key, so it was not usable here.pull_requests[0].numberon a gate-held run;Related
🤖 Generated with Claude Code