Skip to content

fix(ci): route compatible checks to local fleet - #143

Merged
kyle-sexton merged 1 commit into
mainfrom
codex/self-hosted-budget-recovery
Jul 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
codex/self-hosted-budget-recovery

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

What changed

  • pin all local-compatible selector callers to the owner-scoped immutable de50a08b… revision
  • route native Zizmor and runner-policy enforcement through the selected local runner
  • keep the required ci-status and pr-title / pr-title gateways hosted and fail-closed so selector/fleet failures cannot become successful skipped checks
  • skip privileged Claude review and link-check jobs only during emergency self-hosted-only mode; both remain enabled for adaptive/hosted policies
  • declare the reviewed melodic-software repository owner for the scoped selector contract

Why

The former strict policy still required GitHub-hosted compute for ordinary compatible Linux lanes, and billing lockout made selector/control jobs go red. This change moves compatible work to the local fleet while preserving tiny independent required gateways that must materialize even when selector or fleet health fails.

Validation

  • independent review: PASS, including fail-closed required-gateway re-review
  • synced Standards owner-scoped analyzer: zero findings
  • Actionlint: PASS
  • git diff --check: PASS
  • signed commit directly based on Standards sync main

Note

Medium Risk
Changes CI control-plane routing and required-check behavior during fleet outages; misconfiguration could block merges or run security tooling on self-hosted runners without Docker where zizmor expects it.

Overview
Moves compatible Linux CI lanes onto the governed self-hosted fleet by pinning select-runner (and zizmor) to immutable owner-scoped revision de50a08, and wiring zizmor and runner-policy through select-hygiene with runs-on / runner from the selector instead of fixed GitHub-hosted runners.

.github/runner-policy.json now declares repositoryOwner: melodic-software and drops hosted exceptions for zizmor and runner-policy; required ci-status and pr-title / pr-title stay explicitly hosted with updated fail-closed wording so selector or fleet failures surface as failing required checks, not benign skips.

claude-review and link-check gain if: vars.CI_RUNNER_POLICY != 'self-hosted-only' so privileged hosted lanes pause only during strict local-only emergency mode.

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

@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_8fb47b83-ddad-4e5a-b2ee-8a79d21112c5)

@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. Not approving: the present Cursor Bugbot check completed in a skipped (non-success) state and left no review comment. Human review is needed for this CI runner-routing change; no reviewers were assigned because no non-author human contributors are available on this repository.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit be78e7a into main Jul 13, 2026
4 checks passed
@kyle-sexton
kyle-sexton deleted the codex/self-hosted-budget-recovery branch July 13, 2026 03:04

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e386185495

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
Comment on lines +339 to +341
needs: select-hygiene
if: ${{ !cancelled() && needs.select-hygiene.result == 'success' }}
runs-on: ${{ needs.select-hygiene.outputs.runner || 'ubuntu-24.04' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep runner-policy independent of the selector

When select-hygiene fails or is miswired, this job is now skipped before it can run the policy audit because it both needs that selector and gates on its success. That removes the independent diagnostics the repo contract still requires for this lane (docs/CI-RUNNER-ROUTING.md:76-79 says runner-policy must audit routing independently of the fleet), so a bad selector pin/config in self-hosted-only mode collapses into only a generic ci-status failure instead of the actionable runner-policy finding. Keep this enforcement job hosted, or otherwise make it independent of the selector it is responsible for auditing.

Useful? React with 👍 / 👎.

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