Public: anyone can read this; the crew can change it.
Losing the runner slows the gate and never blocks a release of a fix #16838
Check · Review · Land · Live done — Landed and live in production.
A check that sits queued for 10 minutes with no runner now settles as "the runner is not answering", not red. Vitals names it, and an admin can land the pull with a recorded reason. A red check is still refused.
-
Reviews
Changes requested — before the latest pushChanges requested. The detection, the waiver, the three doors and the how-to are in place, and a red check is still refused. Three things to fix, in this order:
- The silence sweep calls any check that sat queued 10 minutes with no check started or finished 'the runner is not answering'. It never asks whether the lane is held on purpose (the held-run causes in
runs/held.ts: disk, budget, pause) or busy with non-check runs such as a long deploy. In those cases a check that was only waiting is settled as cancelled, and an admin can then land past it. Exclude held and busy lanes from the test, or name the cause instead of 'the runner is not answering'. - Nothing tests that
src/checks/service.tscallssilenceUnstartedCheckson the lane tick. Both new test files call it directly with a faked clock, so removing the wiring leaves every test green. Add a test that starts the lane with no runner and sees the check settle, or at least asserts the tick calls the sweep. Issue box 3 asks for a test that takes the runner away, and that is not what the current tests do. - Design: the waiver form on the pull page is hand-rolled markup (raw
input.inputwith a placeholder andsr-onlylabels). The sibling land-past form beside it usesformField. It also gives the merge box a second way to land past a gate. UseformField, and keep one land-past path that tells the two cases apart, rather than two forms.
Smaller: the terminal checks
reason.length > 500on the untrimmed text while the action trims first, so the two disagree. The TUI always merges with the 'merge' strategy while the page offers a choice.ApprovedEarlier asks are met. Held lanes are never called silent (
src/checks/silence.ts). The sweep runs after the schedule in the named lane tick. There is one land-past path,formFieldon the pull page andLin the terminal, both withcleanReason. The how-to is indocs/features/runner-not-answering.md, not the README.mergePullchecks admin before it honours a waiver, and it waives only a check cancelled as "the runner is not answering"; red, missing and running checks are still refused. The reason is posted on the pull. Tests cover the page, the API and the terminal.Non-blocking: the API accepts a
checksUnavailablereason of 1 to 500 characters while the page and terminal require 8 to 500. UsingcleanReasoninmergePullwould make the three doors agree.Non-blocking: one line in
docs/APPS.mdis over 100 columns. - The silence sweep calls any check that sat queued 10 minutes with no check started or finished 'the runner is not answering'. It never asks whether the lane is held on purpose (the held-run causes in
-
Checks
shipped production is serving it deploy c8785d3
-
History
- Merge remote-tracking branch 'origin/main' into scout/1196-losing-the-runner-slows-the-gate-and-nev 84f6eb9
- Runner checks get the impact map, kept results, times and tsc cache: pull checks stop running ~82% of the suite (#16876) 22a2cae
- Bridge v1.1: h/l across lanes, an obvious close, honest resource figures, and a phone tap that selects (#16941) 3254601
- Crypto agility: sealed values, the edge file and cost bills name their algorithm (#16919) 730b9ed
- Follow-up to #16879: restore the timers-named allow-list entry and add the fs… (#16949) 44f5fc4
- The /review diff stat uses the pull's stored base oid, not the live base tip (#16925) 8a38aa9
- Runner-doors test signs in through the shared helper instead of a copy (#1196) a918e6b
- The forge runs from one bun build bundle (no runtime readdirSync of its own source), measured with and without --bytecode (#16911) 50e1e5a
- XML hostile-input test measures growth, not milliseconds: a quadratic parser still fails, a slow runner doesn't (#16943) 9d5f923
- The remaining copies of the origin, app and report refusals import src/actions/origin_app_words.ts (#16930) ff172bb
- Nothing optional loads at boot: route modules and warm-ups (search, samplers, crew) start on first use (#16908) 0fe14c4
- Main green on Linux: the protection notes test pins Landlock off instead of depending on the runner's kernel (#16944) 02c4531
- /crew separates runs cut short before an account from runs refused one (#16923) 4ae1fb3
- Old reviewed-pull posts say the verdict too (#16928) 34e804b
- The OpenAI runner gets the same history record as a fresh Talk session (#16931) 89e01fa
- List the runner-silent refusal as a sentence that ends at its own control (#1196) 55b439d
- An idle forge drains and sleeps after a quiet period its owner can set (#16903) 240362e
- "tries at /signin close the API door" passes every time on a loaded check machine (#16915) 7a62f7b
- Production deploys stop interrupting people: batched (one per 15 min), not while busy, and swapped with zero downtime (#16867) b8689ca
- A guard test: every raw TLS connection verifies its peer, and turning verification off needs a listed reason (#16920) b179a94
7 earlier comments
This pull gets one more commit, which fixes the failing check test, "a sentence that sends its reader to someone else goes through the helper, or ends there for a reason". It now passes locally. I didn't run tsc or any other test file.
What changed: The terminal's checks-gate refusal in src/tui/screens/pull.ts, "the runner is not answering, so this head was never checked; an admin can land it past with L and a reason", names a person who must act. The test only lets such a sentence through if it's built by the helper or listed as one that ends there. I listed it in TERMINAL in test/refusals-lead-somewhere.test.ts, with the reason that it names the key (L) and the reason that land it past. I chose listing over routing it through wayTo, since the sentence already names the control. The test's expectations are otherwise unchanged.
Gate output: bun scripts/gate.ts still prints three possible-duplicate notes for helpers in the runner tests (press, openPullScreen, pullAt). I didn't act on them, and they didn't block the push.
To try it: bun test test/refusals-lead-somewhere.test.ts.
🤖 Generated with Claude Code
I addressed the feedback and pushed it as a918e6b. The gate's four rules were already met by the earlier commits, and only the look-pages line and one duplicate remained.
- Look pages: the new commit has the line
Looks: /preview-admin/sample/pulls/3, which is the page the pull changes. - Duplicate:
test/runner-doors.test.tshad its own copy of the sign-in form post. It now calls the sharedsignInCookiefromtest/helpers/studio-signin.ts. I left the other duplicate notes forpress,openPullScreenandpullAtalone, because those are similar functions rather than copies. - Both doors:
bun scripts/gate.ts --explainpasses. The terminal screen (src/tui/screens/pull.ts) and the how-to (docs/features/runner-not-answering.md) changed with the page in earlier commits. The new commit is test-only and saysNo door:. - Issue number: every commit line names
(#1196). as never: none of the tests this pull adds usesas never.- Dead exports:
test/unused-exports.test.tspasses. - Checks run:
bun x tsc --noEmitis clean, andtest/runner-doors.test.ts,test/unused-exports.test.ts,test/hollow.test.tsandtest/refusals-lead-somewhere.test.tspass.
I did not run the rest of the suite; the forge's check does that on push.
The pull's earlier description still stands.
I couldn't find a code cause for the four failures, so I made no fix. I merged main into the branch (84f6eb9) and pushed, so the check runs again.
- Failing tests: "a cold home answers from the picture", "a template's README sentence appears…", "500 pulls in chapters render…" and "the last ten follows, newest first". They live in
test/observability-budget.test.ts,test/templates-tui.test.ts,test/changelog-chapters.test.tsandtest/fork-follow-history.test.ts. None of them touches code this pull changes. - Not reproduced: run together, all four passed, and
test/observability-budget.test.tspassed three more times on its own. Its cold-home test measures time against a baseline, and it failed once at 814 ms against a 702 ms budget while a leftover background test run was using the CPU. The check log shows the same thing: 102 shards ran in parallel and a 2 s per-test budget was exceeded in 25 places. The log also saystest/changelog-chapters.test.tsis green on main. - After the merge:
bun x tsc --noEmitis clean andbun scripts/gate.ts --explainshows 0 failing rules. The runner-doors and runner-silent tests and the four failing files above passed, apart from that one load-induced failure. I did not run the wider setbun scripts/fast.tsnamed, because it covers 3,830 files and would take hours.
If the cold-home test fails again with the CPU idle, it is a real regression and I'll look at it.
Nothing needed changing for this feedback. I re-ran each check it named on the current head (84f6eb9), and none fails.
- Both doors: the gate rule passes. The terminal screen (
src/tui/screens/pull.ts) and the how-to (docs/features/runner-not-answering.md) change together with the page.test/runner-doors.test.tscovers the page, the API and the terminal. - Tests that build the real input:
test/runner-doors.test.tsandtest/runner-silent.test.tscontain noas never, andbun x tsc --noEmitis clean. - Naming the issue: the gate's "name the issue" rule passes, and the commit lines carry
(#1196). - Dead code:
test/unused-exports.test.tspasses (3 pass, 0 fail). - Look pages: the
Looks: /preview-admin/sample/pulls/3commit line is in place forsrc/web/pages/pull.tsandsrc/web/studio/words.ts, and the gate notes it as satisfied.
bun scripts/gate.ts --fix rewrapped nothing, so there is nothing new to commit or push. The gate still has two notes, and I left both alone.
- Comment width: three files have comment lines over 100 columns, which the nightly rewrap handles on main.
- Similar test helpers: the gate says
press,openPullScreenandpullAtin the two new test files resemble helpers in other test files. These are notes only. Each helper is a few lines tied to its own test file, so I did not pull them into a shared module.
The pull is otherwise as before.
- What it does: a check that sits queued for 10 minutes with no runner now settles as "the runner is not answering" instead of going red. An admin can land the pull past that with a recorded reason. A red check still blocks the merge.
- How to try it: the how-to is
docs/features/runner-not-answering.md. The behaviour is tested intest/runner-silent.test.tsandtest/runner-doors.test.ts.
🤖 Generated with Claude Code
A check that sits queued for 10 minutes with no runner now settles as "the runner is not answering", not red. Vitals names it, and an admin can land the pull with a recorded reason. A red check is still refused. Everything is already pushed; nothing new this turn.
I ran
tsc --noEmitand the four test files that cover this (test/runner-doors.test.ts,test/runner-silent.test.ts,test/vitals.test.ts,test/asks.test.ts). They pass, andgate.ts --fixchanged nothing. I did not run the fullbun testthis turn.origin/mainhas moved a long way ahead of the branch (7200 commits bygit rev-list), so the pull may need another merge.What changed
src/core/runs.tsandsrc/checks/service.tsmark a check that stayed queued past the bound as unavailable. The bound only counts when the runner makes no progress, so a busy runner is not called silent.src/core/pulls.ts,src/actions/pulls.tsandsrc/http/api.tslet an admin land a pull whose check is unavailable, with a required reason written to the pull. A red check is still refused.src/web/pages/pull.ts) says "the runner is not answering" and offers the admin land form. The terminal screen (src/tui/screens/pull.ts) does the same.src/kernel/vitals.tscounts only settled silent checks and names the runner. It sits alongside the budget-failure read.test/runner-silent.test.tsandtest/runner-doors.test.tstake the runner away and prove both halves: unavailable is landable by an admin with a reason, red is refused. They also cover the web, API and terminal doors. The README says how it works, andscripts/gate.tsgates the two new tests.Left out: the bound is a fixed 10 minutes, not a setting. There is no automatic retry or re-queue when the runner comes back. A non-admin still cannot land past an unavailable check.
Try it: stop the runner and queue a check. After 10 minutes the pull shows "the runner is not answering", and an admin sees the land-with-reason form. Or run
bun test test/runner-doors.test.ts test/runner-silent.test.ts.Review
🤖 Generated with Claude Code
Closes #1196