Repository navigation
fix(pr-pipeline): keep the last known admission pause when check-wip-cap reads fail - #8904
Conversation
…ads fail When the open listing or the base config cannot be read, check-wip-cap keeps the last known WIP and held-cap pause instead of failing open (owner decision 2026-10-21). The last run whose reads succeeded saves its status to the Actions cache; with no saved state the check fails open. A kept pause logs `admission paused: reason=<r> (read-error, kept last state)`, and the status gains `pause_basis`. Closes #8804 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nger pauses An owner who clears or postpones wip.pause-from during a search outage now unpauses the lane: a kept last-state pause applies only while the config that was read still pauses (or could not be read). Co-Authored-By: Claude Opus 5.5 <[email protected]>
… only An issues-triggered run is a low-trust trigger: it can restore a default-branch cache but its save fails silently, so pick-slot never saved the last known state. work-unblock's hourly schedule job now runs check-wip-cap with save-state; pick-slot sets cache-mode: read and only restores. A saved pause_reason outside wip, held-cap and wip,held-cap counts as no prior state before it reaches the step summary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…token check-wip-cap restores a cache into the workspace, so it must not run in label-unblocked, which holds id-token: write to mint through the token broker. The save now runs in its own schedule-only wip-state job with contents and pull-requests read only, no id-token and no secret. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-security-review reviewed Security review: PR #8904 (head e1831b9)No security findings. No The PR makes Cache poisoning
Handling of the restored file
Only the changed files were read for this review. The protected-class register under |
|
claude-review reviewed No blocking findings. I read the full diff and the PR context, and checked the Closing issue #8804. Both criteria are met. On a failed read the check keeps the last known pause ( What I checked.
Observation, not a finding. The work-unblock sweep reads the WIP status through its own script, |
Closes #8804
Summary
check-wip-cap failed open: when the open lane PR listing or the base config could not be read, neither the WIP cap nor the held cap could pause the issue lane. Owner decision 2026-10-21 (W-30): keep the last known pause; fail open only when there is no prior state.
Fix
issuesis a low-trust trigger, so its runs "can restore existing caches but cannot create or overwrite them" (dependency caching, "Cache access for low-trust workflow triggers"). So the state is saved only by work-unblock's ownwip-statejob, which runs on the hourlyschedule(a trusted trigger) on main withcontents: readandpull-requests: readonly (no id-token, no secrets, so a planted cache entry cannot reach a token mint), through one check-wip-cap step withsave-state: "true". work-resolve-issue'spick-slotruns withcache-mode: readand only restores. The key is run-scoped (check-wip-cap-state-<run_id>-<attempt>) andrestore-keys: check-wip-cap-state-restores the newest.action.yml: newsave-stateinput (default"false"); the save step runs only when it is true and the read succeeded.check-wip-cap.mjs: a read error is a failed open listing, a base config that could not be read, or an invalid repository name. On a read error the status keeps the priorpaused/pause_reason(pause_basis: last-state), or fails open when there is no prior state (pause_basis: fail-open). A saved state is accepted only aspaused: false, orpaused: truewithpause_reasonin {wip,held-cap,wip,held-cap}; anything else counts as no prior state.pause-fromcleared or in the future), so the owner can still unpause the lane during a search outage.::noticeper pause stay machine-readable (refactor(pr-pipeline): fold the admission window into check-wip-cap with a queued-work count #8794):admission paused: reason=<reason> (read-error, kept last state).Verification
node --testin.github/actions/check-wip-cap). Every new test failed before its change: kept-pause cases, the pause-reason allowlist (newline injection,other,null), and a YAML wiring test (one gated save step; the onlysave-state: "true"caller is work-unblock's schedule; pick-slot is read-only).actionlint: clean.zizmor --no-online-auditsonaction.yml,work-resolve-issue.yml,work-unblock.yml: no findings.Related
🤖 Generated with Claude Code