Skip to content

fix(ci): give runtime_host proof a 45-minute hang limit (#4242) - #4243

Merged
schlessera merged 3 commits into
mainfrom
fix/4242-runtime-host-step-limit
Nov 17, 2026
Merged

schlessera merged 3 commits into
mainfrom
fix/4242-runtime-host-step-limit

Conversation

@schlessera

@schlessera schlessera commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #4242

Fix for the cause of the red main record of run 44184262171 (runtime_host, first bad 29e3cb0dc89d). The record has since cleared on its own: main run 44190582369 at cd896acbba3c passed runtime_host on an ordinary runner. That pass does not fix the cause, because the next slow runner hits the same limit, so this now lands as an ordinary proof-system change.

Cause

The runtime_host proof step's 15-minute limit stopped a slow run that was still progressing. There was no hang and no failing assertion. The full decision is recorded on #4242.

  • Over the 37 green main runs before this one, the proof step took 596 to 810 s (median 617 s). The slowest used 90% of the 900 s limit.
  • In the failed run every command was 1.2 to 1.5 times slower than in green runs: admission 548.6 s (green 360 to 444), worker identity 290.4 s (green 199 to 244). The third command, reference pool allocation (green 64 to 88 s), had printed provisioned and was still running when the limit hit.
  • chore(ci): scale browser repetition watchdog deadlines #4236, the first bad squash, changed only browser-repetition tooling and scripts/test-deadlines.ts, which no runtime-host command imports.

Change

Under the maintainer's watchdog ruling (#4191), a limit that only stops a hang is sized well above the work and raised when green runs come near it.

Before After
runtime_host proof step 15 min 45 min (about 3.3 times the slowest green run)
runtime_host job 30 min 60 min (12 setup + 45 proof + 3)
runtime proof step (117 to 208 s over 38 runs) 15 min 15 min, unchanged
  • .github/workflows/ci.yml: the limits and the summary's printed limit. heavy-feedback.yml is regenerated (bun scripts/heavy-feedback-workflow.ts --check passes).
  • scripts/check-ci-workflows.ts and tests/ci-workflows.test.ts: the expected runtime_host proof limit is 45.
  • docs/decisions/ci-utility.md: new section "A job step limit is a watchdog too", with the measured basis, plus the budget paragraph. docs/process/testing.md: the limits.

Receipts

The workflow lint (bun scripts/check-ci-workflows.ts):

Mutation Result
none passes
proof step set back to 15 ci.yml: runtime_host: proof must retain its 45-minute limit
job limit set back to 30 ci.yml: runtime_host: job limit must cover setup, proof and 3 minutes of other steps

bun run test tests/ci-workflows.test.ts: 81 pass. Before the test's table was updated, its three runtime_host budget cases failed against the new workflow (Expected: 15, Received: 45), so they read the real limits.

Off-main qualification

A full dispatch of CI on the exact head a3e5590230b371ab0c9a23a2b49e9de1f88712cd: run https://github.com/schlessera/brain-kit/actions/runs/44195655099 passed every job, runtime_host included. determinism and browser_determinism were skipped as usual for a dispatch.

The comparison it establishes: under the new limits (proof step 45 min, job 60 min) the runtime_host proof step completed in 616 s (23:04:37 to 23:14:53 UTC). That is inside the 596 to 810 s range of the 37 green main runs under the old limit, so the change does not alter what the job runs or how long it takes; it only moves where a slow run is cut off. The workflow lint and tests/ci-workflows.test.ts hold the new numbers.

Proof

This is a proof-system path change (.github/workflows/**), so it takes the serialized lane with the qualification above. This squash's own main run is the final check of runtime_host under the new limit.

{"version":1,"kind":"brain-check-pr-receipt","head":"85d0c4e1a1f8e7c6918c713a1c63014903f8d421","base":"origin/main","mode":"focused","startedAt":"2026-11-17T22:34:44.328Z","finishedAt":"2026-11-17T22:36:21.717Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":14502.897612},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":151.2880359999981},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":79.347389999999},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":21.587359999997716},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":82618.217513}]}

Contract impact

None. CI limits, the workflow lint and docs only.

🤖 Generated with Claude Code

The proof step had 15 minutes. Its 37 green main runs before the failure
took 596-810 s, so the slowest used 90% of it, and main run 44184262171 was
stopped on a slow runner while its third command was still progressing.
Under the watchdog ruling of #4191 a step limit only stops a hang, so it is
sized well above the work: 45 minutes for proof, 60 for the job. runtime,
at 117-208 s, keeps 15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera schlessera added this to the 0.45.0 milestone Nov 17, 2026
@schlessera
schlessera marked this pull request as ready for review November 17, 2026 23:39
@schlessera
schlessera merged commit 44d0d64 into main Nov 17, 2026
83 checks passed
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.

ci: main red at 29e3cb0dc89d: runtime_host

1 participant