Skip to content

feat(runner-policy): register pr-issue-linkage@d7734df exempt-authors contract - #217

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/runner-policy-pr-issue-linkage-exempt-authors
Jul 20, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/runner-policy-pr-issue-linkage-exempt-authors

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

Registers the approved reusable-workflow contract for
melodic-software/ci-workflows/.github/workflows/pr-issue-linkage.yml@d7734df8c557084edc2df7cf578cf62ad2f261e4
— the just-merged ci-workflows#171, which adds the opt-in exempt-authors
input to the pr-issue-linkage reusable (comma-separated exact author logins
that skip body validation; fail-closed empty default preserves existing
behavior).

The entry mirrors the existing pr-issue-linkage runner-input contracts:
routing: runner-input, runnerInput: runner,
selectorResultInput: prerequisite-result, empty allowedSecrets, and
extends allowedInputs to ["runner", "prerequisite-result", "exempt-authors"].
Additive — the existing pr-issue-linkage SHA entries are untouched.

Verification

  • Input surface transcribed from the reusable at the pinned SHA (review
    basis, since the static lint does not fetch the workflow): the
    workflow_call inputs at d7734df are exactly runner,
    prerequisite-result, exempt-authors — three inputs, no secrets. Contract
    carries no allowedSecrets and no allowedCallerPermissions, so it does not
    trip privilegedHostedRequirement or the write-permission rule.
  • npm run lint:runner-policy → "Runner policy passed."
  • npm run test:runner-policy → 227/227 pass.
  • Diff is one file, +7 lines, components/runner-policy/policy.json only.

No README change (intentional): the README's only counts are the
"eight … contracts at [90f1c54]" batch narrative and "ten selector revisions";
neither goes stale — this adds no selector reference and d7734df is a
distinct revision from 90f1c54. This matches the single-contract-registration
precedent (#160, which added a pr-issue-linkage entry touching only
policy.json); #203 touched the README solely because it completed the
90f1c54 batch the README narrates.

Operator momentum delegation: opened under operator momentum delegation
(cite + veto window). Held for the operator veto window; not to be merged by
the agent. Merge to main auto-fires standards-sync, so hold until the
window elapses.

No linked issue.

Related

… contract

Registers the reusable-workflow contract for
`pr-issue-linkage.yml@d7734df8c557084edc2df7cf578cf62ad2f261e4`
(ci-workflows#171), the revision that adds the opt-in `exempt-authors`
input. The entry mirrors the existing pr-issue-linkage runner-input
shape (runnerInput `runner`, selectorResultInput `prerequisite-result`,
empty `allowedSecrets`) and extends `allowedInputs` with `exempt-authors`.

The input surface was transcribed from the reusable at the pinned SHA:
`runner`, `prerequisite-result`, `exempt-authors` — three inputs, no
secrets. Additive: existing pr-issue-linkage SHA entries are unchanged.
The contract set is fail-closed, so registration must precede any caller
pin bump to this revision.

Runner-policy lint and full suite pass locally (227/227).

Co-authored-by: Claude Fable 5 <[email protected]>
@claude

claude Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 5s —— View job


PR Review

  • Gather context (REVIEW.md, CLAUDE.md, changed files)
  • Analyze policy.json diff against existing contracts
  • Verify contract fields are correct and consistent
  • Post review findings

Scope: components/runner-policy/policy.json +7/-0 — single new contract entry.

Verdict: ✅ Looks correct. No blocking issues, no nits.

Contract field-by-field comparison

All three prior pr-issue-linkage SHA entries carry the same field set:

Field @f7e94a80 @ec91c3433 @90f1c54 @d7734df (this PR)
routing runner-input runner-input runner-input runner-input ✓
runnerInput runner runner runner runner ✓
selectorResultInput prerequisite-result prerequisite-result prerequisite-result prerequisite-result ✓
allowedInputs [runner, prerequisite-result] [runner, prerequisite-result] [runner, prerequisite-result] [runner, prerequisite-result, exempt-authors] ✓
allowedSecrets {} {} {} {} ✓
allowedCallerPermissions absent absent absent absent ✓

The new entry is the minimum additive delta: identical to its predecessors except for exempt-authors appended to allowedInputs, which directly corresponds to the new workflow_call input added in ci-workflows#171.

Security checks (REVIEW.md "always check")

  • Secrets/credentials in tracked source: allowedSecrets: {} — nothing introduced. ✓
  • Privileged escalation: No allowedCallerPermissions — does not grant write permissions or id-token; does not trigger privilegedHostedRequirement. ✓
  • exempt-authors trust boundary: The PR body notes this input is comma-separated author logins that bypass body validation, with a fail-closed empty default. The contract correctly reflects that this is an ordinary input (not a secret), consistent with its low-privilege nature — the workflow at d7734df is responsible for interpreting it safely.
  • All other REVIEW.md "always check" criteria (object-level authorization, tenant scoping, injection, audit log, atomicity) are not applicable to a static JSON policy registration.

JSON structure

Valid JSON; the new object terminates correctly at line 400 and the outer contracts object closes at line 401. No trailing-comma issues introduced.

@kyle-sexton
kyle-sexton merged commit 7082d62 into main Jul 20, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the feat/runner-policy-pr-issue-linkage-exempt-authors branch July 20, 2026 20:02
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