Skip to content

chore(claude-lanes): re-pin callers to ci-workflows v0.14.0 - #374

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/repin-claude-lanes-v0140
Aug 12, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/repin-claude-lanes-v0140

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Re-pins the Claude lane caller components (and this repo's own review caller) from ci-workflows v0.12.0 to v0.14.0 (62bef7ba), and completes the runner-policy half the automated lockstep deferred to a human.

Carried by hand because claude-lanes-repin cannot open this PR for itself: its App installation lacks workflows: write, so the job now reaches its token step and fails with The permissions requested are not granted to this installation (#373). The caller half here is the script's own output — produced by running repin-callers.sh apply v0.14.0 62bef7ba, not by editing pins by hand.

Delivery matters right now because v0.14.0 carries the allowed_bots fix (melodic-software/ci-workflows#442) that unblocks claude-security-review on every cursor[bot]-triggered PR; until this lands, consumers stay pinned to v0.12.0 and keep failing that required check.

Fix

Five files, matching the automated job's add-paths plus the README record it leaves to a human:

  • components/claude-lanes/claude-review.yml, components/claude-lanes/claude-security-review.yml — selector and lane pins to 62bef7ba (script output)
  • .github/workflows/claude-review.yml — this repo's own caller pin
  • components/runner-policy/policy.json — selector allowlist entry, selector input contract, and both lane contracts at the new SHA
  • components/runner-policy/runner-policy.test.mjs — BILLING_AWARE_ROUTING_LANE_SHA constant plus its two allowlist assertions
  • components/runner-policy/README.md — rollout record

Why the policy half needed a human, and what I concluded

The lockstep script deferred with:

::warning::`select-runner.yml` changed between revisions;
claude-review.yml inputs changed between revisions;
claude-security-review.yml inputs changed between revisions
 — policy lockstep deferred to a human.

This is the first revision in the sequence whose selector is not byte-identical, so it does not get the copy-forward reasoning the previous records used:

  • select-runner.yml gains one optional input, billing-minutes-state (default empty), and a prefer-hosted-while-free policy value that routes the selector job onto the managed runner and treats an empty selection as an error instead of silently falling back to hosted (ci-workflows#439). Neither reaches a caller here: the components' with: blocks are unchanged, and billing-minutes-state appears in neither canonicalSelectorInputs nor optionalCanonicalSelectorInputs, so no caller can start passing it without its own review.
  • Both lane contracts copy forward unchanged. The lanes gain only additive optional inputs — plugins, plugin-marketplaces, plugin-command, pr-number — none required, none passed by the components. Secret key sets, allowedCallerPermissions, and routing surface (runs-on: ${{ inputs.runner }} in both) are identical.

No privilege widens in this revision.

Verification

Run locally in this worktree — these are commands I ran, not a description of what CI will do:

  • npm run test:runner-policy -> 264 pass, 0 fail (includes the two allowlist assertions this PR extends)
  • CI_REPOSITORY_VISIBILITY=public npm run lint:runner-policy -> Runner policy passed.
  • npm run lint:md -> 0 issues in 0 files across 112 files
  • Caller diff confirmed to be script output, not hand edits: repin-callers.sh apply reported changed=true, old-sha=734158c…, old-tags=v0.12.0, and the version note Same major version as the pin it replaces (v0.12.0 to v0.14.0)

Not verified here, and cannot be from this PR: that a cursor[bot]-triggered event actually gets reviewed on a consumer. That needs this merged, standards-sync to cascade, the consumer PRs merged, and one bot-triggered run. I will record that proof on melodic-software/ci-workflows#441.

Related

No linked issue — this is the routine re-pin the claude-lanes-repin job would have opened on its own; it closes nothing. Refs #373, the App grant that stops that job opening it.

Merging this fires standards-sync on push to main, which opens the caller re-pin PRs across the consuming repositories.

Carries by hand what claude-lanes-repin cannot open for itself: its App
installation lacks workflows:write, so the job now reaches its token step
and fails there (#373). The caller half is byte-identical to the script's
own output — produced by running `repin-callers.sh apply v0.14.0
62bef7ba` rather than editing the pins by hand.

The runner-policy half is the human one the lockstep step deferred:

    ::warning::`select-runner.yml` changed between revisions;
    claude-review.yml inputs changed; claude-security-review.yml inputs
    changed — policy lockstep deferred to a human.

Reviewed, and approved on a narrower basis than the copy-forwards before
it, because this is the first revision in the sequence whose selector is
NOT byte-identical:

- select-runner.yml gains one optional input (`billing-minutes-state`,
  default empty) and a `prefer-hosted-while-free` policy value. Neither
  reaches a caller: the components' `with:` blocks are unchanged, and the
  new input is absent from canonicalSelectorInputs and its optional
  sibling, so no caller can pass it without its own review.
- Both lane contracts copy forward unchanged. The lanes gain only
  additive optional inputs (plugins, plugin-marketplaces, plugin-command,
  pr-number) — none required, none passed by the components — with secret
  key sets, allowedCallerPermissions, and routing surface identical.

Verified locally, not asserted: `npm run test:runner-policy` (264 pass, 0
fail), `CI_REPOSITORY_VISIBILITY=public npm run lint:runner-policy`
("Runner policy passed"), and `npm run lint:md` (0 issues).

Refs #373

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019HbUs7Pnukq4rrLWw2Y25z
@cursor

cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@kyle-sexton
kyle-sexton merged commit 5edf222 into main Aug 12, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the chore/repin-claude-lanes-v0140 branch August 12, 2026 18:08
kyle-sexton added a commit to melodic-software/claude-code-plugins that referenced this pull request Aug 12, 2026
## Summary

Re-pins this repository's `claude-review` and `claude-security-review`
callers from ci-workflows v0.12.0 to **v0.14.0**
(`62bef7bab01e8532fedfa739879034a210e9e67d`).

Needed by hand because this repo holds **both** callers as
`locally-owned` in the standards sync manifest, so the fleet cascade
cannot re-pin them — it delivered only
`.github/standards/runner-policy/policy.json` (#2495). dotfiles,
github-iac, medley, and provisioning each got their `claude-review.yml`
pin bumped automatically; this repo did not, and it is the one where the
failure is visible.

v0.14.0 carries the `allowed_bots` fix
(melodic-software/ci-workflows#442, delivered through
melodic-software/standards#374) that admits `cursor[bot]` to both lanes.

## What this fixes

`anthropics/claude-code-action` rejects any non-`User` actor absent from
`allowed_bots`. Both lanes named only `dependabot[bot]`, so every event
whose `github.actor` is `cursor[bot]` hit:

```
Workflow initiated by non-human actor: cursor (type: Bot).
Add bot to allowed_bots list or use '*' to allow all bots.
```

The security caller in this repo already predicted the consequence in
its own comment:

> for an actor the reusable's `allowed_bots` does not permit, the action
throws and this lane's fail-closed mapping turns that into a RED
required check no push can fix — a merge block, not an extra review

Measured, not assumed: **15 of the last 100 `pull_request` runs** of
`claude-security-review` failed, every one with a `cursor[bot]` actor,
each on `Verify security-review execution evidence` reporting `succeeded
in 25s (<45s) with no execution evidence` (#2337). The `claude-review`
lane failed silently over the same window — its action step is
`continue-on-error`, so the job read green while no review ran.

## What is deliberately NOT changed

`skip-actors` stays as it is. `cursor[bot]` should be **reviewed**, not
skipped, and the two levers are different: `allowed_bots` (upstream, in
the reusable) decides whether the action runs at all; `skip-actors`
(here) decides whether this repo wants a review for that actor. Only the
former was wrong. Per the standing comment on that line, removing a name
there is never a one-line change.

## Verification

- Ordering verified rather than assumed: with these pins applied against
the **pre-sync** `policy.json`, `CI_REPOSITORY_VISIBILITY=public node
.github/standards/runner-policy/runner-policy.mjs --root .` fails both
jobs with `runner-target-contract: the reusable workflow path@SHA has no
reviewed runner-input contract`. After #2495 merged and this branch was
rebased onto it, the same command reports `Runner policy passed.` That
is why this PR is sequenced after #2495 rather than opened alongside it.
- The v0.14.0 contracts it validates against were reviewed in
melodic-software/standards#374: both lane contracts copy forward
unchanged (the new lane inputs `plugins`, `plugin-marketplaces`,
`plugin-command`, `pr-number` are optional and unpassed), and no secret,
caller permission, or routing surface changes.

**Not verified here, and cannot be from this PR:** that a
`cursor[bot]`-triggered event now actually gets reviewed. That needs
this merged and one bot-triggered run afterwards. I will record that
proof on melodic-software/ci-workflows#441.

## Related

No linked issue — fleet re-pin delivering
melodic-software/ci-workflows#442; this repo has no tracking issue of
its own for it.

Co-authored-by: Claude Opus 5 (1M context) <[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