Repository navigation
fix(lanes): give every job that runs PR code a read-only Actions cache - #11824
Conversation
Jobs on main-scoped events (workflow_dispatch, workflow_run, issues) that check out, run, or feed a model PR head, issue or lane-branch content now set `cache-mode: read`, so that content can restore from main's Actions cache but never save an entry a later main run restores. Covered: pr-run-activity-read run and scan, pr-run-activity-write run, work-resolve-issue run-checks, pr-unblock resolve-conflicts-select, eval-browser-dispatch eval, intake-triage refine-issue and refine-issue-subscription, pr-review-main review legs, and pr-verify check-intent legs. callers.test.mjs pins the list, and the actionlint config comment now points at it. Refs: #8294 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds cache-mode: read to the read runner's summary job, pr-unblock's adjudicate-feedback and the three lane-run audit judges, which feed lane diffs, review comments or run data to a model. The contract test accepts read or none and checks that no caller of a lane runner caps it below read. The actionlint.yaml comment is sync-managed and goes back to main's text. Refs: #8294 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-only-cache-pr-code-jobs
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 #11824, read-only Actions cache for jobs that run or read PR codeNo security issues found. The change only narrows access. It adds What I checked
Left open (outside this diff)
Spend
critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every hunk in all 10 changed files. Each one is a trusted-path file (workflows under What changes: 19 jobs in 9 workflows get
What I checked with Read and Grep:
Not verified: the PR's claim that Closing issue: the PR says "Refs: #8294" and closes no issue, and the PR context file has no closing-issue section, so there are no acceptance criteria to check. The PR says #8294 stays open for its Embedded text: none of the PR context told the lane to do anything. Spend: none. The change adds no runs, turns or billed resources. |
Refs: #8294
Summary
Lane jobs that check out PR, issue or lane-branch code, or feed that content to a model, run on main-scoped events (
workflow_dispatchon main,workflow_run,issues,schedule). On those events GitHub grants a write-capable Actions cache token by default, so that content could plant a cache entry that a later main run restores. Every such job now declarescache-mode: read: it restores caches and never saves them (workflow syntax, cache-mode changelog, 2026-09-10). This covers #8294's first acceptance criterion. The second (id-token: write) stays open: every listed caller job either already hands the token request to the read runner'sbroker-checkjob or runs only main, except the write runner'srunjob, which the owner is deciding.Fix
cache-mode: readon 19 jobs:run,scan,summaryrunrun-checksresolve-conflicts-select,adjudicate-feedbackevalrefine-issue,refine-issue-subscriptionreview,review-subscription,review-fallbackcheck-intent,check-intent-subscription,check-intent-fallbackjudge,judge-subscription,judge-fallbackcallers.test.mjs: a contract test pins each listed job atreadornone. A second test fails any caller of a lane runner that setsnoneorwrite-only, since a cap below the callee'sreadstops the run before it starts (Reuse workflows).cache-mode: none(pr-review-cli.yml:329,intake-triage.yml:362).refs/heads/main, and its PR code arrives only onpull_request/merge_group, whose cache scope is not main.Verification
callers.test.mjspasses 213 of 213. The new test fails with the key removed from one listed job.actions/setup-nodestep there setspackage-manager-cache: false, and no edited job runs anactions/cachesave step.run:steps.Related
id-token: writecriterion.🤖 Generated with Claude Code