Skip to content

feat(runner-policy): allow pr-review-cli's dispatcher-actor-ids input - #954

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/pr-review-cli-dispatcher-actor-ids
Nov 6, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/pr-review-cli-dispatcher-actor-ids

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

Summary

This lets callers of the ci-workflows reusable pr-review-cli.yml pass the new optional input dispatcher-actor-ids that melodic-software/ci-workflows#1001 adds. The input lets the actor of a workflow_dispatch caller start the review model jobs, and grants nothing else. Under the README's "Contract revision lockstep" rule 1, the input enters the contract and the sync before any caller passes it.

Fix

components/runner-policy/policy.json: dispatcher-actor-ids is appended to the pr-review-cli.yml entry's allowedInputs, after the four inputs that #953 added.

Verification

  • node --test components/runner-policy/runner-policy.test.mjs: 232 of 232 pass.
  • node components/runner-policy/runner-policy.mjs --root <worktree>: "Runner policy passed."
  • The commit is signed, and gitleaks found no leaks.

Related

🤖 Generated with Claude Code

ci-workflows#1001 adds an optional dispatcher-actor-ids input that lets a
workflow_dispatch caller's actor start the model jobs and grants nothing
else. Callers must be allowed to pass it before they do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T17:22:54.745612Z
We couldn’t complete this review. Comment @codex review to try again.
2f5aad0 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

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

No findings. The PR adds dispatcher-actor-ids to the pr-review-cli.yml entry's allowedInputs in components/runner-policy/policy.json. It is a one-line allowlist addition, placed after the four inputs from #953. The input is a plain string input, so it adds no secret and changes no fixedRunsOn, allowedSecrets or approvedShas. No other file in the repo mentions the neighboring event-action input, so no doc or fixture needs reconciling.

I read the diff and PR context and checked the surrounding policy block. I did not run the test suite. The PR's reported 232/232 test pass and "Runner policy passed." are author-claimed and unverified by me.

The PR cites no closing issue, only Refs:, so there were no acceptance criteria to check. The body follows the PR contract: Refs: line, ## Summary, ## Fix, ## Verification, ## Related. I did not check whether the ci-workflows input from #1001 exists.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

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

Security review: PR #954, head 2f5aad0

No security findings.

critical-findings: 0

The diff is one line. It adds dispatcher-actor-ids to the allowedInputs of the pr-review-cli.yml contract in components/runner-policy/policy.json (line 170).

What I checked

  • Admission only. No workflow or caller in this repository passes the input. grep finds it only in policy.json. The contract's secrets (allowedSecrets), SHA pins (approvedShas) and fixedRunsOn are unchanged, so no token or secret scope grows.
  • Sensitive mount. The change does not touch standards-ref or the STANDARDS_REVIEW_APP_* secrets, so the README's public-repository invariant for these contracts is unaffected.
  • A later caller change is still gated. Because the contract is shared, any governed repository may now pass the input. A caller that sets it must still do so in a with: block, which goes through its own pull request and the runner-policy gate. The input has no effect until someone sets it.
  • The input does widen who can start the model jobs. Per the PR text it lets one listed github.event.sender.id start the secret-bearing review jobs on a workflow_dispatch. That behaviour is implemented in melodic-software/ci-workflows#1001, not here, and I could not review that code from this checkout.
    • The ci-workflows PR text says the input is optional with an empty default, is honored only on workflow_dispatch with pr-number set, and is not added to allowed-bot-sender-ids.
    • That text is data, not evidence I verified. A caller that passes a broad id list would widen the trigger, so the review of each caller PR should check the value.
  • Precedent. allowed-bot-sender-ids and allowed-author-ids are already admitted for this contract the same way (policy.json lines 156-157).
  • Threat-model lens. The file is not on the trusted-path list. It is a caller-input admission, not a change to the trusted-actor list, the kill switch, a token broker or a merge hold. No .claude-plugin manifest or instruction surface changes.

The PR body also asks for nothing outside its scope, and I found no embedded instructions in it.

@kyle-sexton
kyle-sexton merged commit 3b6a49c into main Nov 6, 2026
22 checks passed
@kyle-sexton
kyle-sexton deleted the feat/pr-review-cli-dispatcher-actor-ids branch November 6, 2026 17:29
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