Skip to content

feat(runner-policy): approve liveness selector revision for melodic-software - #100

Merged
kyle-sexton merged 1 commit into
mainfrom
ci/approve-liveness-selector
Jul 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci/approve-liveness-selector

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds melodic-software/ci-workflows/.github/workflows/select-runner.yml@3415de3ff2fafee40e4d087eb6073d2f6952b595 to approvedSelectorReferencesByRepositoryOwner.melodic-software in components/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 reports online-runner-count.

The de50a08 revision 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-only path 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.yml pin 3415de3… for melodic-software only by adding it to approvedSelectorReferencesByRepositoryOwner in policy.json (alongside the existing de50a08… 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-count output, and five approved selector revisions total with owner-scoped strict revisions.

Tests in runner-policy.test.mjs assert the expanded owner allowlist and add audit coverage so both melodic-software–scoped SHAs pass when GITHUB_REPOSITORY supplies owner evidence.

Reviewed by Cursor Bugbot for commit bd3e6cb. Bugbot is set up for automated code reviews on this repo. Configure here.

…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
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

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


PR Review

  • Gather context and read guidelines
  • Read changed files and git diff
  • Analyze correctness, security, and test coverage
  • Post review findings

The change is targeted and correct. Here's my assessment across the three files:

policy.json

The new SHA is correctly placed in approvedSelectorReferencesByRepositoryOwner.melodic-software rather than the global approvedSelectorReferences list. This is the right call — strict-scheduling revisions that target the melodic-software runner group cannot be globally approved since other owners cannot target that group. JSON structure is valid and the existing de50a08 entry is preserved for backward compatibility during the consumer migration window.

permalink

README.md

The prose accurately captures the liveness-routing behavior (queue-on-busy, no rerun-to-hosted fallback, online-runner-count output). The count update from "Four" to "Five" is correct (3 global + 2 owner-scoped). The sentence "these two strict-scheduling revisions are approved only for melodic-software" correctly groups both de50a08 and 3415de3 under the owner-scoped restriction.

runner-policy.test.mjs

The 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 githubRepository: "melodic-software/standards" to supply the external owner evidence required by the policy engine. This is the right shape.

One minor coverage gap: The owner-scoped selector approval requires external repository identity test at line 810 tests LOCAL_SELECTOR_SHA for the kyle-sexton rejection path (line 829–842), but does not add a parallel assertion for LIVENESS_SELECTOR_SHA. Since both SHAs live in the same approvedSelectorReferencesByRepositoryOwner.melodic-software list, the policy engine applies the same rejection logic to both — so this is not a correctness risk — but explicit coverage would be more defensive. Not a blocker.

permalink to gap


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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Cursor Bugbot did not complete successfully (check skipped), so automated review is incomplete and I am not approving. Human review is needed; no non-author reviewers were available to assign.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit fe69969 into main Jul 13, 2026
4 checks passed
@kyle-sexton
kyle-sexton deleted the ci/approve-liveness-selector branch July 13, 2026 21:30
kyle-sexton added a commit that referenced this pull request Jul 13, 2026
## 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]>
kyle-sexton added a commit to melodic-software/claude-code-plugins that referenced this pull request Jul 13, 2026
## 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]>
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