Skip to content

chore(ci): reduce Blacksmith load with guarded hosted checks - #153876

Closed
steipete wants to merge 3 commits into
mainfrom
ci-burden/r1-hybrid-routing
Closed

steipete wants to merge 3 commits into
mainfrom
ci-burden/r1-hybrid-routing

Conversation

@steipete

@steipete steipete commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Hybrid CI spends Blacksmith capacity on independent checks with enough measured slack to tolerate standard hosted runners.

User Impact

Reduces CI runner cost without changing test coverage, worker limits, timeouts, critical-path runner labels, or the configured backend. This is a routing trial; no user-visible runtime change. A prospective health snapshot cannot rescue jobs already queued or guarantee against a later hosted assignment wave.

Why This Change Was Made

Move five 16-class checks to ubuntu-24.04 only on canonical main pushes and trusted automatic hybrid PRs selecting the two fixed Windows lanes: dependencies, core test-types 1 and 2, extension package boundaries, and runtime topology architecture. Every sample satisfies 1.4 × duration + 180 seconds <= slack. The existing UI/security offload decision keeps priority; these five consume only remaining capacity within the unchanged 45-row hosted limit.

Keep compact Node jobs, extension test envelopes, UI E2E, preflight, builds, lint, central test types, QA, Android, and Windows on their current routes. The lighter 8-class compact bins remain excluded even when they have slack. Docs, i18n, security reevaluation, and admitted security-fast already use hosted runners, so there is no additional saving to claim there.

Preflight samples recent canonical main CI attempts using read-only Actions access. Assignment wait excludes the preflight dependency. Any observed wait of at least 180 seconds, missing fresh assigned evidence, malformed data, or an API error retains the new five rows on Blacksmith for this run and records a warning/summary. At most four requests share a ten-second deadline. There is no service, new repository variable, variable mutation, retry policy, or new job. Existing retry/fallback routing stays intact. Documentation covers the existing operator backend switch for sustained incidents and the inability to migrate already queued jobs.

Evidence

Baseline: six successful main runs on September 20, 35518231054, 35518255065, 35518791853, 35518915535, 35520028134, 35520044205; all pages reconciled to total_count. Exclude skipped pseudojobs: including them produced the original 37/14/6/5/25.5 class summary and distorted runtime medians (some skipped durations are negative).

Executed class Jobs/run before → predicted after (median) Duration median Slack median Hosted prediction
Blacksmith 32 Linux 36 → 36 7.17 min 8.17 min 19.35 min (×2.7; retained)
Blacksmith 16 Linux 10 → 5 4.61 min 10.86 min 6.45 min (×1.4)
Blacksmith 8 Linux 4 → 4 3.75 min 9.29 min 5.25 min (×1.4; retained)
Blacksmith 4 Linux 5 → 5 5.72 min 9.00 min 8.00 min (×1.4; retained)
Blacksmith Windows 0 → 0 (range 0–2) 12.28 min 3.27 min unchanged
Hosted Ubuntu 18 → 23 2.15 min 12.77 min unchanged
macOS no executed samples — — unchanged
New hosted row Duration median Slack median Hosted prediction Worst residual after prediction +3 min
dependencies 3.66 min 11.80 min 5.12 min 178 sec
core test-types 1 4.51 min 10.97 min 6.31 min 47 sec
core test-types 2 4.10 min 11.45 min 5.74 min 112 sec
extension package boundary 3.21 min 12.22 min 4.49 min 214 sec
runtime topology architecture 2.16 min 13.15 min 3.02 min 378 sec

The modeled job-envelope wall remains 16m18s median, 15m32s–16m54s range in all six samples. Definition: first job creation through aggregate-gate completion; the captures contain jobs, not workflow lifecycle timestamps. This prediction excludes the new health-read overhead. The PR run must measure that overhead, hosted cache/setup cost, actual waits, and overall completion. A broad PR selects more test jobs than these main runs, so its wall is observational rather than a controlled same-workload comparison. Executed hosted jobs in the baseline waited 5.5 seconds median / 99 seconds maximum from job creation to start (the earlier 2-second median included skipped entries).

Blacksmith Linux minutes: median 371.37 → 353.22. List-rate estimate: $19.609 → $19.045/main run; median paired saving 17.64 minutes/$0.565. Medians do not subtract linearly. Rates per minute: 4/8/16/32-class = $0.008/$0.016/$0.032/$0.064 (now verified against the provider pricing page); This paragraph reports Linux only; all-platform figures below include Windows. Billing rounding is excluded. Rounded-per-job saving would be approximately $0.672, not verified invoicing. Public-repository hosted Linux minutes are free. An eligible Windows-selected PR has the same modeled saving; other PRs retain these checks on Blacksmith because precise Node plans do not establish enough critical-path slack. There is no separate measured PR baseline in this sample and scoped PR savings depend on selected rows.

Local proof: 41 focused routing/health guard cases passed; 332 planner cases passed (330 initially, with both new-file inventory cases passing after staging); node scripts/check-changed.mjs, workflow lint/security checks, type-aware oxlint, formatting, docs listing/MDX checks, and git diff --check passed. The lint canary correctly rejected an unknown-valued template expression. Codex local review found no actionable P0–P2 findings. Candidate head: 33becc81fde48807835ebd59f62f94a79f200c81.

The initial PR CI run 35526323851 failed before fanout because the sparse .ci-harness export did not contain the new helper. The correction reads the current checkout on automatic current-revision jobs; an executable workflow-step regression reproduced ERR_MODULE_NOT_FOUND before the fix and passes afterward. The correction passed changed checks and fresh P0–P2 review. Workflow validation reused the installed hook at its exact configured revision when a repeated Python virtualenv bootstrap stalled.

The full local workflow guard invocation was interrupted after an existing cache fixture stalled for over five minutes in native pnpm initialization on macOS. Its failing bootstrap was sampled, and the later routing-specific run passed. The PR CI run supplies the complete Linux guard proof. Exact-head branch review and native CI measurements will be appended before handoff. Not for landing as part of this task.

Native offload trial

Run 35527301597, head 6c875c5fece748aabc5953de60629f67e3d4d625, admitted all five rows to ubuntu-24.04. Preflight sampled seven fresh hosted jobs, maximum assignment wait 3 seconds; its health step took 5 seconds. The manifest recorded 19 base / 29 total hosted rows, below the unchanged 45-row cap.

Moved check Hosted prediction Measured Wait Remaining slack
dependencies 5.12 min 6m36s 5s 8m13s
core test-types 1 6.31 min 7m46s 3s 7m05s
core test-types 2 5.74 min 8m16s 5s 6m33s
extension package boundary 4.49 min 5m56s 3s 8m55s
runtime topology architecture 3.02 min 3m23s 3s 11m28s

All five passed. Hosted durations exceeded the CPU-only prediction, but none became critical. This evidence prompted the final cohort guard: short or unknown PR plans retain Blacksmith placement and do not run the health probe. Main and the fixed Windows workload are the measured headroom cohorts; fast Node-only scopes also skip the probe.

The run executed 66 jobs: 1 Linux 32-class, 21 16-class, 1 8-class, 12 4-class, 2 Windows 8-class, and 29 hosted Ubuntu. Under the prior routing, this same selection would have 26 16-class and 24 hosted rows; the other counts stay unchanged. Hosted waits were 3s median / 5s maximum, versus 5.5s / 99s in the executed-job baseline. The job-envelope wall was 16m01s, compared with 16m18s median in the six-main cohort; Windows part 2 was the tail. This is an observational comparison across different workloads, not a paired speedup claim. The 5-second guard cost is visible and no zero-overhead guarantee is claimed.

Using current list rates, including Windows 8-class at $0.032/min, the six-run main model is 371.37 → 353.30 Blacksmith minutes and $19.68 → $19.10 (medians, including a 5-second probe allowance). Median paired saving is about 17.56 minutes/$0.56. The trial measured 175.68 minutes/$5.41 across Linux and Windows. Applying the main sample's old-route check durations to this PR selection estimates 193.24 minutes/$5.97 before; this counterfactual is not a measured matched PR baseline. Hosted Linux minutes are free for this public repository; invoice rounding/discounts are not modeled.

The only job failure was control-ui-performance, with startup JS 364,920 B > 364,806 B, plus the aggregate gate reflecting that failure. R1 modifies no UI runtime source or performance baseline and retains that job's existing hosted route. No baseline was raised. The final cohort refinement passed 41 focused guard cases, including before/after regressions for non-main pushes and PRs without Windows. Workflow, docs, formatting, and type-aware lint checks passed; its P0–P2 review is scoped-clean. Final exact-head whole-branch review is scoped-clean through P2. CI results are recorded below.

Final-head guard and CI status

Head 33becc81fde48807835ebd59f62f94a79f200c81, run 35529486045: preflight reported no-fresh-hosted-evidence (zero usable samples), retained the five checks on Blacksmith, and emitted 19 base / 24 total hosted rows. This is live proof of conservative fallback; the preceding native trial above supplies the admitted-row timing evidence. Unit fixtures cover the explicit three-minute assignment-stall boundary.

The run has an unrelated type-check blocker at src/infra/update-triage-resolution.ts:92: TS2345, because an env?: ProcessEnv formatter is passed directly as an Array.map callback, whose second argument is a number. The same diagnostic appears in retained hosted production types and Blacksmith core test types. This branch changes no src/ files. R1 does not alter that code or weaken its checks.

The completed final-head run executed 66 jobs. Its job-envelope wall was 19m35s versus the six-main median 16m18s. Workload jobs finished at 16m37s; the unchanged always-hosted aggregate gate then waited 174 seconds for a runner (3 seconds of execution). Hosted waits were 2s median / 174s maximum. This existing gate remains outside the new offload safeguard; a flat whole-run wall is not established under hosted assignment delays.

Executed class Healthy offload trial Final-head fallback
Blacksmith Linux 32 1 1
Blacksmith Linux 16 21 26
Blacksmith Linux 8 1 1
Blacksmith Linux 4 12 12
Blacksmith Windows 8 2 2
Hosted Ubuntu 29 24

The fallback run used 185.15 Blacksmith minutes / approximately $5.68 at list rates including Windows; it moved zero rows. Failed compiler checks ended early, so this is a billed-work estimate, not a steady-state comparison to the healthy offload trial. The run failed six check jobs plus the aggregate gate. All remaining jobs passed, including control-ui-performance; the earlier UI size failure is therefore historical trial evidence, not the final blocker.

Final head 33becc81fde48807835ebd59f62f94a79f200c81 is pushed; whole-branch Codex review is scoped-clean through P2. The local worktree is clean. The PR is open and not merged. The separate update-triage type error blocks green CI; no source repair, baseline expansion, backend-variable change, or critical-path runner-label change was made outside R1.

Every executed job family in the six-run baseline
Job Hybrid label Samples Duration median (min) Slack median/min (min) Hosted predicted median (min) Fits every sample +3min Move
build-artifacts blacksmith-16vcpu-ubuntu-2404 6 4.87 10.68/9.37 6.81 False False
check-additional-extension-package-boundary blacksmith-16vcpu-ubuntu-2404 6 3.21 12.22/11.30 4.49 True True
check-additional-runtime-topology-architecture blacksmith-16vcpu-ubuntu-2404 6 2.16 13.15/12.38 3.02 True True
check-dependencies blacksmith-16vcpu-ubuntu-2404 6 3.66 11.81/10.97 5.12 True True
check-lint blacksmith-16vcpu-ubuntu-2404 6 7.53 7.92/6.55 10.53 False False
check-test-types blacksmith-16vcpu-ubuntu-2404 6 5.80 9.57/8.90 8.12 False False
check-test-types-core-1 blacksmith-16vcpu-ubuntu-2404 6 4.51 10.96/10.03 6.31 True True
check-test-types-core-2 blacksmith-16vcpu-ubuntu-2404 6 4.10 11.45/10.57 5.74 True True
checks-node-compact-small-24 blacksmith-16vcpu-ubuntu-2404 6 8.38 7.20/6.08 11.74 False False
checks-ui-e2e (1/13) blacksmith-16vcpu-ubuntu-2404 1 5.77 9.93/9.93 8.07 False False
checks-ui-e2e (10/13) blacksmith-16vcpu-ubuntu-2404 1 5.12 10.58/10.58 7.16 True False
checks-ui-e2e (11/13) blacksmith-16vcpu-ubuntu-2404 1 5.25 10.45/10.45 7.35 True False
checks-ui-e2e (12/13) blacksmith-16vcpu-ubuntu-2404 1 4.85 10.85/10.85 6.79 True False
checks-ui-e2e (2/13) blacksmith-16vcpu-ubuntu-2404 1 5.18 10.52/10.52 7.26 True False
checks-ui-e2e (3/13) blacksmith-16vcpu-ubuntu-2404 1 5.30 10.40/10.40 7.42 False False
checks-ui-e2e (4/13) blacksmith-16vcpu-ubuntu-2404 1 5.45 10.25/10.25 7.63 False False
checks-ui-e2e (5/13) blacksmith-16vcpu-ubuntu-2404 1 4.48 11.22/11.22 6.28 True False
checks-ui-e2e (6/13) blacksmith-16vcpu-ubuntu-2404 1 8.77 6.93/6.93 12.27 False False
checks-ui-e2e (7/13) blacksmith-16vcpu-ubuntu-2404 1 4.63 11.07/11.07 6.49 True False
checks-ui-e2e (8/13) blacksmith-16vcpu-ubuntu-2404 1 5.85 9.85/9.85 8.19 False False
checks-ui-e2e (9/13) blacksmith-16vcpu-ubuntu-2404 1 5.52 10.18/10.18 7.72 False False
preflight blacksmith-16vcpu-ubuntu-2404 6 0.77 15.68/14.63 1.07 True False
checks-node-compact-large-10 blacksmith-32vcpu-ubuntu-2404 6 6.17 9.23/0.07 16.67 False False
checks-node-compact-large-11 blacksmith-32vcpu-ubuntu-2404 6 5.61 9.73/8.85 15.14 False False
checks-node-compact-large-12 blacksmith-32vcpu-ubuntu-2404 6 7.40 8.11/7.07 19.98 False False
checks-node-compact-large-13 blacksmith-32vcpu-ubuntu-2404 6 7.02 8.55/7.58 18.95 False False
checks-node-compact-large-14 blacksmith-32vcpu-ubuntu-2404 6 8.02 7.55/6.28 21.64 False False
checks-node-compact-large-15 blacksmith-32vcpu-ubuntu-2404 6 4.09 11.48/10.08 11.05 False False
checks-node-compact-large-16 blacksmith-32vcpu-ubuntu-2404 6 14.04 1.64/0.12 37.91 False False
checks-node-compact-large-2 blacksmith-32vcpu-ubuntu-2404 6 6.83 8.72/7.37 18.43 False False
checks-node-compact-large-3 blacksmith-32vcpu-ubuntu-2404 6 5.88 9.57/8.75 15.88 False False
checks-node-compact-large-4 blacksmith-32vcpu-ubuntu-2404 6 7.14 8.35/7.45 19.28 False False
checks-node-compact-large-5 blacksmith-32vcpu-ubuntu-2404 6 4.32 11.28/10.08 11.65 False False
checks-node-compact-large-6 blacksmith-32vcpu-ubuntu-2404 6 7.53 8.07/6.67 20.34 False False
checks-node-compact-large-7 blacksmith-32vcpu-ubuntu-2404 6 7.96 7.53/6.75 21.49 False False
checks-node-compact-large-8 blacksmith-32vcpu-ubuntu-2404 6 5.08 10.26/9.40 13.72 False False
checks-node-compact-large-9 blacksmith-32vcpu-ubuntu-2404 6 7.07 8.35/7.47 19.08 False False
checks-node-compact-small-10 blacksmith-32vcpu-ubuntu-2404 6 8.22 7.28/6.12 22.21 False False
checks-node-compact-small-11 blacksmith-32vcpu-ubuntu-2404 6 6.80 8.82/7.38 18.36 False False
checks-node-compact-small-12 blacksmith-32vcpu-ubuntu-2404 6 12.37 3.19/2.03 33.39 False False
checks-node-compact-small-13 blacksmith-32vcpu-ubuntu-2404 6 7.53 7.96/7.10 20.34 False False
checks-node-compact-small-14 blacksmith-32vcpu-ubuntu-2404 6 6.33 9.20/8.10 17.10 False False
checks-node-compact-small-15 blacksmith-32vcpu-ubuntu-2404 6 8.82 6.63/5.73 23.80 False False
checks-node-compact-small-16 blacksmith-32vcpu-ubuntu-2404 6 8.54 7.00/5.97 23.06 False False
checks-node-compact-small-17 blacksmith-32vcpu-ubuntu-2404 6 7.04 8.49/7.20 19.01 False False
checks-node-compact-small-18 blacksmith-32vcpu-ubuntu-2404 6 9.18 6.42/4.83 24.77 False False
checks-node-compact-small-19 blacksmith-32vcpu-ubuntu-2404 6 6.99 8.51/7.22 18.88 False False
checks-node-compact-small-20 blacksmith-32vcpu-ubuntu-2404 6 6.32 9.13/8.25 17.05 False False
checks-node-compact-small-21 blacksmith-32vcpu-ubuntu-2404 6 8.38 7.12/5.48 22.63 False False
checks-node-compact-small-22 blacksmith-32vcpu-ubuntu-2404 6 4.87 10.54/9.77 13.14 False False
checks-node-compact-small-23 blacksmith-32vcpu-ubuntu-2404 6 7.84 7.60/6.68 21.17 False False
checks-node-compact-small-3 blacksmith-32vcpu-ubuntu-2404 6 6.61 8.93/7.93 17.84 False False
checks-node-compact-small-4 blacksmith-32vcpu-ubuntu-2404 6 10.05 5.37/4.58 27.13 False False
checks-node-compact-small-5 blacksmith-32vcpu-ubuntu-2404 6 5.28 10.22/9.20 14.24 False False
checks-node-compact-small-6 blacksmith-32vcpu-ubuntu-2404 6 11.13 4.41/3.18 30.06 False False
checks-node-compact-small-7 blacksmith-32vcpu-ubuntu-2404 6 5.96 9.41/8.57 16.09 False False
checks-node-compact-small-8 blacksmith-32vcpu-ubuntu-2404 6 11.80 3.76/2.37 31.86 False False
checks-node-compact-small-9 blacksmith-32vcpu-ubuntu-2404 6 5.97 9.32/8.60 16.11 False False
checks-ui-e2e-real-gateway blacksmith-32vcpu-ubuntu-2404 1 11.87 3.83/3.83 32.04 False False
checks-node-compact-small-1 blacksmith-4vcpu-ubuntu-2404 6 4.93 9.66/8.95 6.91 False False
checks-node-compact-small-2 blacksmith-4vcpu-ubuntu-2404 6 4.56 10.30/9.83 6.38 True False
checks-node-compact-small-25 blacksmith-4vcpu-ubuntu-2404 6 5.72 9.08/8.25 8.00 False False
checks-node-compact-small-26 blacksmith-4vcpu-ubuntu-2404 6 6.01 8.51/7.02 8.41 False False
checks-node-compact-small-27 blacksmith-4vcpu-ubuntu-2404 6 6.36 8.57/6.63 8.90 False False
android-ktlint blacksmith-8vcpu-ubuntu-2404 1 1.40 0.58/0.58 1.96 False False
android-test-play blacksmith-8vcpu-ubuntu-2404 1 13.60 2.23/2.23 19.04 False False
android-test-third-party blacksmith-8vcpu-ubuntu-2404 1 13.83 2.00/2.00 19.37 False False
android-test-wear blacksmith-8vcpu-ubuntu-2404 1 1.97 0.25/0.25 2.75 False False
checks-node-compact-large-1 blacksmith-8vcpu-ubuntu-2404 6 12.54 2.27/1.33 17.56 False False
checks-node-compact-large-17 blacksmith-8vcpu-ubuntu-2404 6 5.72 9.12/8.67 8.01 False False
checks-node-compact-large-18 blacksmith-8vcpu-ubuntu-2404 6 1.02 13.79/13.37 1.42 True False
checks-node-compact-large-19 blacksmith-8vcpu-ubuntu-2404 6 1.45 13.48/12.77 2.03 True False
checks-windows-node-test-1 blacksmith-8vcpu-windows-2025 1 11.27 4.12/4.12 11.27 False False
checks-windows-node-test-2 blacksmith-8vcpu-windows-2025 1 13.28 2.42/2.42 13.28 False False
check-additional-boundaries ubuntu-24.04 6 3.32 12.05/10.68 3.32 True False
check-bundled-channel-config-metadata ubuntu-24.04 6 1.48 13.78/12.73 1.48 True False
check-guards ubuntu-24.04 6 2.19 13.06/12.22 2.19 True False
check-lint-core-1 ubuntu-24.04 6 6.67 8.88/7.48 6.67 False False
check-lint-core-2 ubuntu-24.04 6 7.16 8.03/6.83 7.16 False False
check-npm-lock ubuntu-24.04 6 0.92 14.38/13.23 0.92 True False
check-prod-types ubuntu-24.04 6 3.83 11.51/9.48 3.83 True False
check-prompt-snapshots ubuntu-24.04 6 1.04 14.10/13.27 1.04 True False
check-source-contracts ubuntu-24.04 6 1.77 13.68/12.52 1.77 True False
checks-fast-baseline-ratchets ubuntu-24.04 6 2.50 13.04/12.05 2.50 True False
checks-fast-bun-launcher ubuntu-24.04 6 1.73 13.85/12.73 1.73 True False
checks-fast-bundled-protocol ubuntu-24.04 6 2.73 12.78/11.75 2.73 True False
checks-fast-coercion-helpers ubuntu-24.04 6 0.88 14.27/13.58 0.88 True False
checks-fast-contracts-channels ubuntu-24.04 6 4.15 11.28/10.78 4.15 True False
checks-fast-contracts-plugins ubuntu-24.04 6 3.24 12.15/11.23 3.24 True False
checks-ui (1/3) ubuntu-24.04 1 4.93 10.87/10.87 4.93 True False
checks-ui (2/3) ubuntu-24.04 1 6.85 8.93/8.93 6.85 False False
checks-ui (3/3) ubuntu-24.04 1 5.28 10.50/10.50 5.28 True False
checks-ui-e2e (13/13) ubuntu-24.04 1 3.87 11.92/11.92 3.87 True False
control-ui-performance ubuntu-24.04 3 1.62 14.23/12.70 1.62 True False
native-i18n ubuntu-24.04 1 0.57 15.13/15.13 0.57 True False
openclaw/ci-gate ubuntu-24.04 6 0.06 0.00/0.00 0.06 False False
security-fast ubuntu-24.04 6 0.70 14.82/13.78 0.70 True False

Unexecuted classes retain their existing routes; no measured duration or cost is assigned to skipped placeholders. Security Review reevaluation is a separate already-hosted workflow.

@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 20, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 20, 2026, 3:14 PM ET / 19:14 UTC (Revision 3).

ClawSweeper review

What this changes

Moves five CI checks from Blacksmith to GitHub-hosted runners when workload headroom, recent assignment health, and the existing capacity budget permit.

Merge readiness

⛔ Blocked before merge - 1 item remains

The PR remains useful and is not implemented on current main. No actionable patch defect remains: the earlier helper-loading finding is fixed, and completed native measurements satisfy the previous review’s timing request.

Priority: P2
Reviewed head: 33becc81fde48807835ebd59f62f94a79f200c81

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with credible native admission and fallback evidence and no remaining actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): Native Actions evidence exercises the changed preflight and runner-routing owners: all five hosted checks passed in the earlier trial, and final-head execution retained Blacksmith placement when fresh evidence was unavailable. The final refinement only narrows admission; completed setup, assignment, and timing records satisfy the prior proof request.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Native Actions evidence exercises the changed preflight and runner-routing owners: all five hosted checks passed in the earlier trial, and final-head execution retained Blacksmith placement when fresh evidence was unavailable. The final refinement only narrows admission; completed setup, assignment, and timing records satisfy the prior proof request.
Evidence reviewed 8 items Introduced scope: Reviewed the pinned merge-base-to-head delta across all six introduced files. The stale test-merge candidate was not used to infer removal of current-main behavior.
Conservative admission: The helper limits reads to three recent main attempts after one run-list request, shares a ten-second deadline, excludes preflight dependency time, and retains Blacksmith placement on missing evidence, API errors, or observed assignment waits of at least 180 seconds.
Still necessary on main: Fetched main retains the existing UI/security offload decision but lacks the additional check admission and health helper. Tree inspection also found no health helper at the supplied latest-release commit; no shipped implementation was established.
Findings None None.
Security None None.

How this fits together

CI preflight selects checks and assigns their runners before validation starts. This change uses recent GitHub Actions assignment evidence to choose hosted capacity or retain Blacksmith placement.

flowchart TD
  A[Selected CI workload] --> C[Preflight admission]
  B[Recent main job assignments] --> D[Bounded health check]
  D --> C
  E[Existing hosted capacity budget] --> C
  C -->|Eligible and healthy| F[Five checks on hosted runners]
  C -->|Otherwise| G[Existing Blacksmith routes]
  F --> H[CI results]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - Hosted congestion beginning after the health snapshot can delay the newly offloaded checks; the completed trial establishes workable placement, not a whole-run latency guarantee.
Agent review details

Security

None.

PR surface

Tests +315, Docs +70, Config +41, Other +153. Total +579 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 317 2 +315
Docs 2 72 2 +70
Config 1 47 6 +41
Generated 0 0 0 0
Other 1 153 0 +153
Total 6 589 10 +579

Review metrics

Metric Value Why it matters
Admission envelope Up to 5 additional hosted rows; existing 45-row limit retained The new checks consume only capacity left after the existing UI/security decision.
Health-read budget At most 4 requests within one 10-second deadline The probe adds bounded work to preflight, which precedes downstream validation.
Production versus test growth Production/tooling net +194 lines; tests net +315 lines Production growth implements the bounded Actions probe and admission wiring; tests cover failure fallback and actual workflow expansion.

Merge-risk options

Maintainer options:

  1. Accept the bounded routing trial (recommended)
    Retain the measured cohort and monitor native CI timing with the documented backend switch available for sustained incidents.
  2. Pause additional hosted placement
    Defer the additional offload if variable hosted assignment latency outweighs the demonstrated reduction in Blacksmith usage.

Technical review

Best possible solution:

Retain the bounded, measured cohort and existing fallback, using native assignment and completion measurements to guide any later expansion.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a product bug reproduction; native Actions records demonstrate both hosted placement and final-head Blacksmith fallback. No target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes. Extending the existing preflight admission owner preserves coverage, capacity limits, retry behavior, and operator controls without adding another scheduler.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c9b2f93dd65b.

Labels

Label justifications:

  • P2: This is a bounded CI cost and capacity improvement without an urgent product regression.
  • merge-risk: 🚨 automation: Moving checks onto hosted capacity can lengthen CI when assignment conditions deteriorate after preflight.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Native Actions evidence exercises the changed preflight and runner-routing owners: all five hosted checks passed in the earlier trial, and final-head execution retained Blacksmith placement when fresh evidence was unavailable. The final refinement only narrows admission; completed setup, assignment, and timing records satisfy the prior proof request.
  • proof: sufficient: Contributor real behavior proof is sufficient. Native Actions evidence exercises the changed preflight and runner-routing owners: all five hosted checks passed in the earlier trial, and final-head execution retained Blacksmith placement when fresh evidence was unavailable. The final refinement only narrows admission; completed setup, assignment, and timing records satisfy the prior proof request.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-20T17:41:05.653Z sha bcf2d13 :: blocked before merge. :: [P1] [P1] Include the health helper in the trusted preflight harness
  • reviewed 2026-09-20T18:01:09.175Z sha 6c875c5 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 20, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #154471 (2d3dd99), which is on current main.

I checked the complete PR diff against current main: preflight invokes the hosted-assignment health owner, and dependencies, both core test-type rows, extension package boundaries, and runtime topology all consume its budgeted admission decision. The 180-second assignment threshold, 30-minute evidence freshness, shared 10-second request deadline, and three-attempt sample bound remain. Main also adds a 24-hour server-side history bound and requires measured serial Node headroom for eligible PRs.

The intended guarded offload is implemented, including the workflow wiring and its owner tests/docs. There is no remaining implementation change to land from this PR; its trial measurements remain here as historical evidence.

@steipete steipete closed this Sep 22, 2026
@RomneyDa
RomneyDa deleted the ci-burden/r1-hybrid-routing branch October 22, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant