Repository navigation
fix(runner-policy): admit pr-review-cli's generated-copies input - #940
Conversation
melodic-software/ci-workflows#963 added the generated-copies input to pr-review-cli.yml. Admit it in the reviewed contract so callers can pass it. 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-review reviewed No findings. The PR adds one string, I read the diff and the surrounding policy block. I didn't run the tests. The PR's claim of 226/226 passing on No closing issue applies, since the PR uses |
|
claude-security-review reviewed Security review: PR #940 (head 0a39df4)No security findings. critical-findings: 0 Change: one line in What I checked:
I did not dispatch subagents; the diff is a single allowlist entry. |
…nput (#942) Refs: melodic-software/claude-code-plugins#7676 ## Summary Adds `lane-transcript-public-key` to the reviewed `allowedInputs` of `intake-triage.yml` and `pr-review-cli.yml` in `components/runner-policy/policy.json`, so a caller that passes it clears `runner-policy`. ## Fix [melodic-software/ci-workflows#969](melodic-software/ci-workflows#969) added the optional input to those two reusables (`default: ""`). Without a contract entry, `runner-policy` refuses a caller that passes it: "the reusable workflow call has inputs absent from its reviewed contract". The value is a public key and does not affect runner routing. Callers float `@main` (`runner-policy.mjs:490-493`), so `approvedShas` does not change. This PR does not change the hosted caller components. `components/claude-lanes-hosted/claude-review.yml:84` calls `pr-review.yml@main` and `claude-security-review.yml:77` calls `pr-review-security.yml@main`, not `pr-review-cli.yml`, and neither reusable declares this input on ci-workflows main. Adding the line there fails two `runner-policy.test.mjs` tests: - "each hosted claude lane caller equals its fleet sibling" - "every managed target of a hosted claude lane caller is public and audits clean", with the contract message above In this organization `pr-review-cli.yml` is called by locally owned workflows, in claude-code-plugins and pr-pipeline-sandbox (`distribution/sync-manifest.yml:880-882` for the sandbox). ## Verification - `node --test components/runner-policy/runner-policy.test.mjs`: 226/226 pass. - `node components/runner-policy/runner-policy.mjs --root .`: "Runner policy passed." - `biome check --config-path=biome.jsonc components/runner-policy/policy.json`: no errors, schema-version notices only. - Probe, not committed: the two caller lines above, without any `policy.json` entry for `pr-review.yml`, fail the two named tests. ## Related - [melodic-software/ci-workflows#969](melodic-software/ci-workflows#969): the input. - [#940](#940): the same policy-only change for `generated-copies`. ## Remaining - After the standards sync carrying this `policy.json` reaches claude-code-plugins (`distribution/sync-manifest.yml:382`), pass the input from that repository's callers: `.github/workflows/intake-triage.yml:258`, `pr-review-hosted.yml:220` and `pr-review-security-hosted.yml:225`. Before that sync, its `runner-policy` refuses them. - The hosted caller components in this repository get no transcript input until their reusables declare it or they move to `pr-review-cli.yml`. That is an open decision. <!-- session: lane-5 --> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VQb9Q1VgLEiwGgRVshK3b7 Co-authored-by: Claude Opus 5.5 <[email protected]>
Refs: melodic-software/claude-code-plugins#12558 <!-- session: poteto --> ## Summary Adds `generated-data` to the reviewed `allowedInputs` of `melodic-software/ci-workflows/.github/workflows/pr-review-cli.yml` in `components/runner-policy/policy.json`. ## Fix melodic-software/ci-workflows#971 (merged) added the opt-in `generated-data` input. Without this entry, a caller that passes it fails `runner-policy` with "the reusable workflow call has inputs absent from its reviewed contract: generated-data" (seen on claude-code-plugins#12601). The input names a repository file listing generated data files the review skips. It carries no secret and does not affect runner routing. ## Verification - `node --test components/runner-policy/runner-policy.test.mjs`: 226/226 pass. ## Related - melodic-software/ci-workflows#971 (the input); melodic-software/claude-code-plugins#12601 (the caller opt-in, waiting on this through the sync). Same shape as #940. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VcupomBPg7kuobwLoNpxEW Co-authored-by: Claude Opus 5.5 <[email protected]>
Refs: melodic-software/claude-code-plugins#12354
Summary
Adds
generated-copiesto the reviewedallowedInputsofmelodic-software/ci-workflows/.github/workflows/pr-review-cli.ymlincomponents/runner-policy/policy.json.Fix
melodic-software/ci-workflows#963 (merged) added the opt-in
generated-copiesinput. Without this entry, a caller that passes it failsrunner-policywith "the reusable workflow call has inputs absent from its reviewed contract: generated-copies" (seen on claude-code-plugins#12436'slint-repo). The input names a repository file the reusable reads at the merge base. It carries no secret and does not affect runner routing.Verification
node --test components/runner-policy/runner-policy.test.mjs: 226/226 pass.Related
🤖 Generated with Claude Code