Skip to content

ci: route status reports through live light capacity - #34849

Merged
teamleaderleo merged 2 commits into
feat-cmux-nextfrom
codex/light-status-routes
Nov 4, 2026
Merged

teamleaderleo merged 2 commits into
feat-cmux-nextfrom
codex/light-status-routes

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Status-report workflows were still choosing hosted or paid fallback routes even when the live fleet had capacity. The pr-red-checks-comment and ci-guards report consumers now use the same portable placement snapshot as light job execution, so an idle fleet Linux runner or owned mini is tried first for the current attempt.

This PR is stacked on #34615 (codex/light-routing) and should be retargeted to feat-cmux-next after that PR lands.

What changed

  • Added portable-placement bootstraps for pr-red-checks-comment#comment and ci-guards#guard-status.
  • Reused CI_RUNNER_STATE with contents: read; no App token, secret, or workflow permission was added.
  • Kept fork branches first and existing hosted/paid fallbacks intact.
  • Added CI_PORTABLE_LIGHT_JOBS_OFF=1 as an emergency kill switch; default behavior is on.
  • Guard bootstrap waits for the five guard jobs before rollup execution.
  • Declared both consumers and their bootstraps in the runner registry.

The placement snapshot is intentionally fail-open for long-running workflows: a stale snapshot falls through to the existing fallback instead of blocking a report.

Performance

Metric Before After Delta Harness
Idle-mini status-report coverage 0/2 2/2 +2 jobs Wiring.test_status_reports_consume_live_capacity_without_a_routing_app

Leo asked, “how’s CI? we still have bigger wins we can get? what’s the state of it all? more things we can skip/do better”. This slice removes avoidable hosted/paid placement for status reports while preserving a one-line rollback switch.

Validation

  • router-review (gpt-6-astra high): SHIP at abed44b8af99e8bb24ff14b5546de6b8a1b18d6a.
  • Scoped placement, routing-table, fork-routing, runner-set and shell-guard checks passed.
  • Fleet fast-checks reached setup/admission for this exact head; terminal job logs were unavailable after the shared API quota floor, so no fleet green is claimed here.

🤖 Generated with Codex

Agent session: agent session


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Moves pr-red-checks-comment and ci-guards status reports to use live light capacity so an idle fleet Linux runner or owned mini is placed before hosted or paid fallbacks.

  • Adds portable-placement bootstraps that read CI_RUNNER_STATE with contents: read; no App token, secret, or new workflow permission, plus a wiring test asserting both reports consume an idle mini without secrets.
  • Falls back to the existing hosted/paid route when the snapshot is stale or CI_PORTABLE_LIGHT_JOBS_OFF=1 is set.
  • Keeps forks on ephemeral runners; guard-status waits for the five guard jobs before placement, and the comment bootstrap runs only on feat-cmux-next base PRs.

Written for commit 4ccf327. Summary will update on new commits.

View guided diff Turn on auto-fix

@cursor

cursor Bot commented Nov 4, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (codex gpt-6-astra high): SHIP at abed44b

Visual verdict: unchanged by this CI-only diff; no product UI is affected.

Checked workflow wiring, runner declarations, YAML parsing, portable-placement tests, current-attempt guards, fork precedence, permissions, and kill-switch behavior. No correctness or regression findings.

Follow-ups: none

@teamleaderleo
teamleaderleo force-pushed the codex/light-status-routes branch from abed44b to 8b04512 Compare November 4, 2026 05:48
Base automatically changed from codex/light-routing to feat-cmux-next November 4, 2026 05:52
teamleaderleo and others added 2 commits November 4, 2026 05:53
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-11af0abc73e245862c06
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-11af0abc73e245862c06
@teamleaderleo
teamleaderleo force-pushed the codex/light-status-routes branch from 8b04512 to 4ccf327 Compare November 4, 2026 05:53
@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 4ccf327: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr34849 -f ref=codex/light-status-routes -f platform=macos -f backend_mode=local

Shipped in:

@blacksmith-sh

blacksmith-sh Bot commented Nov 4, 2026

Copy link
Copy Markdown

Found 6 test failures on Blacksmith runners:

Failures

Test View Logs
/tmp/tmp1np6ktfs/summary-missing.json (live):/summary-missing.json (live): View Logs
/tmp/tmpzuzanhsy/summary-fail.json (live):/summary-fail.json (live): View Logs
[new_workspaces] debug.new_workspace timed 0 of 50 new workspace rows/
[new_workspaces] debug.new_workspace timed 0 of 50 new workspace rows
View Logs
[new_workspaces] the window draws no frames/[new_workspaces] the window draws no frames View Logs
[tabs] debug.tab_switch timed 0 of 40 switches/
[tabs] debug.tab_switch timed 0 of 40 switches
View Logs
[tabs] the window draws no frames/[tabs] the window draws no frames View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (codex gpt-6-astra high): SHIP at 4ccf327

Visual verdict: unchanged by this CI-only diff.

Focused placement and routing tests pass. No correctness or regression findings.

Follow-ups: none

@teamleaderleo
teamleaderleo merged commit 6fef0f8 into feat-cmux-next Nov 4, 2026
129 of 136 checks passed
@teamleaderleo
teamleaderleo deleted the codex/light-status-routes branch November 4, 2026 06:05

This branch was previously deployed

1 inactive deployment
ci-routing-agent — 4ccf327c Deployed Nov 4, 2026 by teamleaderleo via wait for same-key tree publisher #109937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant