Skip to content

fix(runner-policy): admit pr-review-cli's generated-copies input - #940

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/runner-policy-generated-copies
Nov 2, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/runner-policy-generated-copies

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: melodic-software/claude-code-plugins#12354

Summary

Adds generated-copies 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#963 (merged) added the opt-in generated-copies 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-copies" (seen on claude-code-plugins#12436's lint-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

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T17:43:23.316596Z 0a39df4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

claude-review reviewed 0a39df4e080ad33fb5c77e7bf3f0b2631f0103d9: 0 finding(s), 0 as inline comments.

No findings. The PR adds one string, generated-copies, to the allowedInputs of pr-review-cli.yml in components/runner-policy/policy.json. It matches the existing entries in format. It doesn't touch allowedSecrets, routing, or fixedRunsOn, so it adds no secret and doesn't change runner routing. The PR body follows the contract: it uses Refs: and fills Summary, Fix, Verification and Related.

I read the diff and the surrounding policy block. I didn't run the tests. The PR's claim of 226/226 passing on runner-policy.test.mjs is the author's and is unverified by me. I didn't open ci-workflows#963, so whether the input is opt-in and carries no secret rests on the PR's description.

No closing issue applies, since the PR uses Refs:. The manifest, paved-path and security checks don't apply to this diff.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

claude-security-review reviewed 0a39df4e080ad33fb5c77e7bf3f0b2631f0103d9: 0 finding(s), 0 as inline comments.

Security review: PR #940 (head 0a39df4)

No security findings. critical-findings: 0

Change: one line in components/runner-policy/policy.json. It adds generated-copies to allowedInputs for melodic-software/ci-workflows/.github/workflows/pr-review-cli.yml (line 161).

What I checked:

  • The entry's other fields are untouched. routing stays hosted-only and fixedRunsOn stays ubuntu-24.04. allowedSecrets, approvedShas and allowedCallerPermissions are the same, so no secret, token scope, caller permission or pinned workflow SHA changes.
  • The new input name follows the existing path-style options docs-only-paths and hold-paths. I treated it as a caller-set string for the review workflow; I did not verify what it does in ci-workflows.
  • Only callers in this org's own workflows set the value, so this PR admits no new actor and no new untrusted-text path to a credentialed lane.
  • The reusable workflow and its use of the input are outside this repository and outside this diff, so I could not read them. This diff does not change who is trusted, token scope, the kill switch or a merge hold.
  • No other file in the repo references generated-copies.
  • It is not a manifest or instruction-surface change, so none of those lenses apply. I did not read the instruction exception register, because no instruction text is touched.

I did not dispatch subagents; the diff is a single allowlist entry.

@kyle-sexton
kyle-sexton merged commit a6bbeab into main Nov 2, 2026
22 checks passed
@kyle-sexton
kyle-sexton deleted the fix/runner-policy-generated-copies branch November 2, 2026 17:52
kyle-sexton added a commit that referenced this pull request Nov 3, 2026
…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]>
kyle-sexton added a commit that referenced this pull request Nov 3, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant