Repository navigation
feat(runner-policy): register the v0.65.16 review contracts with the fallback secret - #893
Conversation
…fallback secret Both review contracts copy their v0.65.14 entries forward and allow the FALLBACK_CLAUDE_CODE_OAUTH_TOKEN secret, mapped to the org secret of that name, plus the fallback-credential-name input (ci-workflows#897). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 No security issues found in PR #893 at 6774904. The PR adds two
manifest fields: not hit by this diff. |
|
claude-review reviewed No findings. What I checked
Not verified
|
…iption (#894) No related issue: gives the fleet review lanes the central fallback subscription the owner approved ## Summary Repins `pr-review` and `pr-review-security` to ci-workflows v0.65.16 and maps the central fallback subscription in the review callers, so the 12 fleet repos' review lanes keep reviewing when their subscription token hits a usage limit. Contracts were registered in #893. Scope of the fallback: the review retries once on `FALLBACK_CLAUDE_CODE_OAUTH_TOKEN` after a usage limit (class `rate-limit`) only. A credit stop or a revoked token (401) does not fall back in these lanes. ## Fix In `components/claude-lanes/`, `components/claude-lanes-hosted/` (`claude-review.yml`, `claude-security-review.yml`) and standards' own `.github/workflows/pr-review.yml` and `pr-review-security.yml`: - pin `b26e355fe98c372f02a13d74c10a785ad8c9ce2d # v0.65.16` (was v0.65.14); - add `FALLBACK_CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.FALLBACK_CLAUDE_CODE_OAUTH_TOKEN }}` (an org secret, visibility all); - add `fallback-credential-name: FALLBACK_CLAUDE_CODE_OAUTH_TOKEN`, so the lane-outcome record names the fallback attempt. ## Verification - `bash components/claude-lanes/claude-lanes.test.sh`: 0 failures (materializes and lints every fleet target). - `bash components/claude-lanes/repin-callers.test.sh`: pass. - `node components/runner-policy/runner-policy.mjs --root .`: passed; runner-policy and trusted-actors tests pass. - `actionlint` on both standards callers: clean. ## Related - #893 - melodic-software/ci-workflows#897 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…contract (#902) Refs: melodic-software/claude-code-plugins#10782 ## Summary Registers the reviewed `pr-review-cli.yml@20a822d73b6e2d7e21d48e609a01b427e0e161e7` (v0.66.1) contract. The claude-code-plugins repin fails `runner-target-contract` because surface-diff auto-approval declines: `jobPermissions changed since the previously reviewed ...pr-review-cli.yml@3180217076b19bbdfccc43026c7f91c604da673d`. ## Fix - `policy.json`: the new entry copies the v0.65.14 (`3180217`) entry forward unchanged. From `3180217` to `20a822d`, the workflow changes in three non-comment lines, all from melodic-software/ci-workflows#904: the `status` job adds `actions: read` and `checks: read` (the hold step reads this workflow's earlier runs and their check-run cost notices), and that step takes a `STATUS_JOB` env built from the `lane` input. No input, secret, write scope or routing change. A hosted-only contract records no job permissions and checks no caller permissions, so the callers' existing read grants need no entry. - `README.md`: a v0.66.1 paragraph that names ci-workflows#904 and the permission change. - `runner-policy.test.mjs`: pins the new entry as equal to its v0.65.14 entry. ## Verification - `node --test components/runner-policy/runner-policy.test.mjs`: 371 pass, 0 fail. - `npm run lint:runner-policy` on this repo: `Runner policy passed.` - On the claude-code-plugins repin branch `ci/repin-pr-review-cli-v0.66.1`: - before (its synced policy): both review callers fail `runner-target-contract` with the auto-approval decline above, exit 1. - after (`--policy` pointed at this branch's `policy.json`): `Runner policy passed.`, exit 0. ## Related - melodic-software/claude-code-plugins#10782 (the repin this unblocks) - melodic-software/ci-workflows#904 (the permission change) - #893 (precedent) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
No related issue: registers the ci-workflows v0.65.16 review contracts so fleet review lanes can map the central fallback subscription
Summary
ci-workflows v0.65.16 (ci-workflows#897) renames the review lanes' optional fallback secret slot to
FALLBACK_CLAUDE_CODE_OAUTH_TOKEN, so a caller can map the org secret under its own name, which runner-policy requires for contracts withallowedCallerPermissions(runner-policy.mjs:239-255). The owner approved giving the fleet's review lanes the central fallback token.The review lanes retry once on the fallback after a usage limit (class
rate-limit) only; a credit stop or a 401 does not fall back there.Fix
policy.json:pr-review.ymlandpr-review-security.ymlatb26e355fe98c372f02a13d74c10a785ad8c9ce2d(v0.65.16) copy their v0.65.14 entries and add theFALLBACK_CLAUDE_CODE_OAUTH_TOKENsecret and thefallback-credential-nameinput. No permission or routing change.The caller repin and mapping follow in a separate PR after this syncs.
Verification
node --test components/runner-policy/runner-policy.test.mjs: 370 pass, 0 fail.node components/runner-policy/runner-policy.mjs --root .: passed.v0.65.16resolves tob26e355fe98c372f02a13d74c10a785ad8c9ce2d.Related
🤖 Generated with Claude Code