Repository navigation
feat(runner-policy): approve liveness selector revision for melodic-software - #100
Conversation
…oftware Adds select-runner.yml@3415de3ff2fafee40e4d087eb6073d2f6952b595 (liveness routing: online runners queue through busy, rerun keeps route, online-runner-count output) to the melodic-software owner-scoped selector allowlist. The de50a08 revision stays approved until consumers migrate. Part of melodic-software/github-iac#79. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_e1c3252d-549e-479f-9eb1-aac6a08dbc20) |
|
Claude finished @kyle-sexton's task in 1m 21s —— View job PR Review
The change is targeted and correct. Here's my assessment across the three files: policy.jsonThe new SHA is correctly placed in README.mdThe prose accurately captures the liveness-routing behavior (queue-on-busy, no rerun-to-hosted fallback, runner-policy.test.mjsThe structural assertion at line 777–782 now pins both owner-scoped SHAs, and the new loop at line 795–807 exercises a functional audit pass for both — providing One minor coverage gap: The Verdict: Changes are correct, the security scope is appropriately constrained (owner-scoped, not global), and the test suite covers both the allowlist assertion and functional audit verification. Safe to merge as-is; the coverage gap above can be addressed as a follow-up if desired. |
## Summary Bumps the `select-runner` reusable-workflow pin in this repo's own CI to the liveness routing revision of the central selector (melodic-software/ci-workflows#86, commit `3415de3`). That revision was already approved owner-scoped in the runner policy by #100, so this PR changes only the single consumer pin line in `.github/workflows/ci.yml` — the `zizmor.yml` reference and `components/runner-policy/` are untouched. Part of melodic-software/github-iac#79 (epic #78). ## Verification - `node --test components/runner-policy/runner-policy.test.mjs`: 95 pass, 0 fail - `node --test components/lefthook-dotnet/dotnet-format-staged.test.mjs`: 12 pass, 0 fail - `GITHUB_REPOSITORY=melodic-software/standards npm run lint:runner-policy`: "Runner policy passed." - `git diff origin/main --stat`: only the single ci.yml line changed 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Single pinned SHA bump for CI runner selection only; policy approval for this ref is already owner-scoped, with no application or security logic changes. > > **Overview** > Updates the **`select-runner`** reusable workflow pin in `.github/workflows/ci.yml` from `de50a08` to **`3415de3`**, adopting the central selector’s **liveness routing** revision from `melodic-software/ci-workflows`. > > No other workflow pins, runner-policy files, or job wiring change—the same `with`/`secrets` contract and `ubuntu-24.04` fallback behavior stay as documented in the workflow header. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit df89fa1. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Fable 5 <[email protected]>
## What - **Collapse 4 selector jobs into 1**: `ci.yml` ran four identical per-lane `select-runner.yml` preflights (`select-hygiene`, `select-hook-utils-sync`, `select-plugin-gate`, `select-miro-plugin`). They are now one `select-runner` job with the exact same inputs and observer secret; every lane (`hygiene`, `zizmor`, `hook-utils-sync`, `plugin-gate`, `miro-plugin`, `runner-policy`) rewires to it with its existing `!cancelled() && result == 'success'` gate and `outputs.runner || 'ubuntu-24.04'` fallback unchanged. `ci-status` and triggers/concurrency are untouched. - **Pin bump de50a08 → 3415de3** in `ci.yml` and `pr-title.yml`: the liveness selector routes on fleet liveness (any online managed runner keeps the workload self-hosted; GitHub queues on a busy fleet) and drops the rerun-to-hosted branch (melodic-software/ci-workflows#86). The SHA is allowlisted owner-scoped for melodic-software in the synced runner policy (melodic-software/standards#100). - **Docs**: `docs/CI-RUNNER-ROUTING.md` now describes the one-preflight-per-workflow contract instead of one selector per workload. ## Not changed - `zizmor.yml@de50a08` stays pinned: de50a08 is the only zizmor contract SHA approved in the standards-distributed `policy.json`; bumping it would fail the runner-policy gate. ## Verification - `GITHUB_REPOSITORY=melodic-software/claude-code-plugins node .github/standards/runner-policy/runner-policy.mjs --root .` → `Runner policy passed.` - `actionlint` and `markdownlint-cli2` clean on the changed files. Part of melodic-software/github-iac#79, epic #78. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes how every CI lane picks runners and bumps the governed selector contract; mis-routing or selector failure would block workloads, though gates and fallbacks are unchanged. > > **Overview** > **Consolidates CI runner selection** so `ci.yml` runs one shared `select-runner` preflight instead of four duplicate per-lane selector jobs; all lanes (`hygiene`, `zizmor`, `hook-utils-sync`, `plugin-gate`, `miro-plugin`, `runner-policy`) still gate on selector success and use the same `outputs.runner || 'ubuntu-24.04'` expression. > > **Bumps** the pinned `select-runner.yml` reusable workflow from `de50a08` to `3415de3` in `ci.yml` and `pr-title.yml` (liveness-based routing; reruns can reuse a prior successful selector result). **`zizmor.yml` stays on `de50a08`** per runner-policy allowlisting. > > **Updates** `docs/CI-RUNNER-ROUTING.md` to document one selector per workflow rather than one per workload. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 600d4b5. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Fable 5 <[email protected]>


Summary
Adds
melodic-software/ci-workflows/.github/workflows/select-runner.yml@3415de3ff2fafee40e4d087eb6073d2f6952b595toapprovedSelectorReferencesByRepositoryOwner.melodic-softwareincomponents/runner-policy/policy.json.This is the liveness-routing selector revision (ci-workflows#86): routes to the managed fleet whenever a matching runner is
online(busy runners queue instead of falling back to hosted), removes the rerun-to-hosted branch so re-runs keep their original route, and reportsonline-runner-count.The
de50a08revision stays approved until all consumers migrate; it is removed in a follow-up once the consumer pin bumps land.Owner-scoped (not global) because the strict
self-hosted-onlypath schedules the selector control-plane job on the melodic-software runner group, which other owners cannot target.Ordering
Must merge before any consumer selector pin bump (Dependabot ci-workflows#88, standards#99, claude-code-plugins#167 and the #79 consumer PRs) — a pin bump without allowlist approval fails the runner-policy lane.
Part of melodic-software/github-iac#79 (W1), epic melodic-software/github-iac#78.
Test plan
node --test runner-policy.test.mjs: 95 pass, including new owner-scoped audit coverage for both approved melodic-software revisions.🤖 Generated with Claude Code
https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
Note
Medium Risk
Data-only policy allowlist change for CI runner routing; wrong SHA or merge ordering could break consumer pin bumps until aligned, but scope is limited to melodic-software owner evidence.
Overview
Approves the liveness-routing
select-runner.ymlpin3415de3…formelodic-softwareonly by adding it toapprovedSelectorReferencesByRepositoryOwnerinpolicy.json(alongside the existingde50a08…strict-scheduling revision).Documents that revision in
README.md: online-runner liveness routing (queue on busy self-hosted instead of falling back to hosted), no rerun-to-hosted branch,online-runner-countoutput, and five approved selector revisions total with owner-scoped strict revisions.Tests in
runner-policy.test.mjsassert the expanded owner allowlist and add audit coverage so both melodic-software–scoped SHAs pass whenGITHUB_REPOSITORYsupplies owner evidence.Reviewed by Cursor Bugbot for commit bd3e6cb. Bugbot is set up for automated code reviews on this repo. Configure here.