Repository navigation
fix(ci): end a check-mode kill-switch refusal as a stop, not a failure - #12759
Conversation
No related issue: hub-reported 2026-11-03, 28 of 29 failed work-resolve-issue runs near the 04:34Z trip were kill-switch refusals Ledger row L94. request-lane-token takes kill-switch-ok in check mode: a broker 403 kill-switch ends the step green with a lane-check-stopped notice and skip-reason kill-switch, and an allow now sets allowed=true. Every other denial still fails red, and so does the kill-switch refusal without the input. pr-run-activity-read.yml's broker-check passes it and reads its allow from that output, so a stop never reads as an allow. The run job, and with it every model, scan, issue-fields and summary job, skips on the stop; no lease is claimed; the report job posts no lane run report comment and posts the check neutral kill-switch. The read file exposes the stop as skip-reason. work-unblock reads a green broker ask whose lease step skipped, with the lane-check-stopped notice in its log, as a check-stage breaker trip, so a stopped issue is still re-fired. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE
…-switch-check-neutral
Codex Review SummaryThis 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-review reviewed No findings. I read all of every hunk in the 9 changed files. What the PR changes. When the lanes broker refuses a check-mode request because a kill switch is on (403 What I checked against the code at head:
Unverified. I have no shell in this lane, so I did not run any tests. The PR description reports Other notes:
|
|
claude-security-review reviewed Security review: PR #12759, a check-mode kill-switch refusal now ends as a green stopNo security issues found. critical-findings: 0 I read every hunk of all 9 changed files. Two of them are trusted paths: Trust controls checkedKill switch: it still stops the lane, and nothing new gets through. The change makes a 403
Lane token scope: unchanged. Check mode still mints nothing. No permissions, effect or grant inputs changed. Callers of the read workflow. When broker-check stops, the reusable call now ends Merge holds: none changed. Other checks
|
No related issue: ledger L94. A check-mode kill-switch refusal ended every lane run red. 28 of 29 failed work-resolve-issue runs around the 2026-11-03 04:34Z trip were this designed stop (e.g. run 41576258964:
lane-check-denied: the broker answered 403 with reason kill-switch), which inflated every raw failure view.Summary
When the broker refuses a check-mode ask with
kill-switch, broker-check now ends green as a stop. Every write and model step is still skipped, so the change is to the run's colour and nothing else. Every other denial still fails red, and nothing changes while the switch is off.Fix
.github/actions/request-lane-token/action.yml(+ README):kill-switch-okis now valid in check mode. A 403kill-switchexits 0 with::notice::lane-check-stopped, andskip-reason=kill-switch.allowedoutput istrueonly on a real allow, so a green stop never reads as an allow.[[ $KILL_SWITCH_OK == false || $MODE == token ]] || fail "kill-switch-ok needs token mode"..github/workflows/pr-run-activity-read.yml:kill-switch-ok: trueand exposesskip-reason.allowednow also needs the step'sallowed == 'true'.if:addsskip-reason == '', which skips run, issue-fields, scan, scan-refusal, summary and broker-allowed.Skipped: kill-switch, and the lane report comment is not posted..github/scripts/work-unblock/label-unblocked.mjsstill counts the green stop as a check-stage breaker trip (broker step success + lease step skipped + thelane-check-stoppednotice in thebroker.requestlog section), so work-unblock re-fires those issues as before.docs/conventions/pr-pipeline/pr-run-activity.md: the contract text is updated to match. A changelog fragment is added.Verification
request-lane-token.test.mjs:kill-switch-okexits 0 with the stop output;workflow-modified, 500kill-switch) still fails;kill-switch-okit still fails red with run 41576258964's text;allowed=true.callers.test.mjswalks the workflow YAML inneedsorder, evaluating eachif:. On a stop (PR and issue mode),allowedisfalse, every job and step listed above skips, the head step outputsnot-run-reason=kill-switch, anddecide()returns neutral. Controls: an allow runs everything. No caller job with a write grant runs on a stop, except the jobs named below. Removing each new guard in turn failed these tests.label-unblocked.test.mjs: a green stop is a trip and is re-fired. A lookalike or missing notice is a failed mint. An allow reads no log.node --testover callers, request-lane-token, label-unblocked and decide: 674/674.scripts/check-affected.sh --base origin/main --no-fetch: 11 passed, 4 skipped.check-read-caller-keys.sh --check,check-killswitch-hoist.shandcheck-line-citations.py: exit 0.Related
kill-switch-okmint, and fix-ci-unreported posts only onallowed == 'true'. The caller test pins these three.handoff-evidence.shallowed($c)falls back to the broker step's success when broker-allowed is not yet settled. A skipped broker-allowed settles at once.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE