Public: anyone can read this; the crew can change it.
The lane is visible: queue depth, the running check and its age, median duration and the time to clear, on the home and in /api/v1/health; the 30-minute card names the cause #1440
The home and /api/v1/health now show the check lane. The first version of this pull failed the check because test/plan-route.test.ts was in neither list in scripts/gate.ts, and I fixed that here. I couldn't run the type check because the sandbox has no nodemodules, so the forge's check is its first run.
stopped closed without shipping deploy 93b3ac9
3 earlier comments
The home now shows a running run as working only while its heartbeat is fresh. This covers the owner's note that dead runs kept the label until the boot sweep marked them. The vitals, board and gate-list suites pass. I haven't run the type check, since the sandbox has no node_modules.
- Badge: a run still marked running with no heartbeat for more than 90 seconds now reads
lost, re-queuing("its process is gone"). It no longer getsdata-state="working". The 90 seconds is the existingSTALE_AFTER_MS. - No inflated counts: a lapsed run no longer appears as a crew-member row, and it no longer counts as the lane's "running" check in the lane line and
/api/v1/health. The home therefore can't show moreworkingthan there are live processes. - Test: a new test in
test/board.test.tsclaims a run and checks it readsworking. It then backdates the heartbeat 120 seconds and checks the run readslost, re-queuingwith noworkingstate and no crew row.
I only changed the Working-now list and the forge strip on the home. Other working labels (the pull map, the following page) still derive from crew marks and weren't touched.
🤖 Generated with Claude Code
I merged origin/main into this branch and pushed, which should clear the "does not merge into main" failure. I haven't seen the forge's check re-run on the new push.
The only conflict was in test/vitals.test.ts. Both sides had added a test at the same spot, so I kept both: the lane test from this pull and the "unauthenticated internal call is refused" test from main. No source code changed in the conflict resolution.
bun test test/vitals.test.ts passes (7 tests). The type check is clean, but only after a bun install, since the bun types were missing at first. I didn't run the full suite, since the forge runs it on push.
The lane visibility work from #1277 is unchanged: queue depth, the running check and its age, the median, and time to clear on the home page and in /api/v1/health. A lapsed lease still reads "lost, re-queuing" instead of counting as working.
The check failure is fixed and pushed. I haven't seen the forge's check result for the new push yet.
The merge of main into this pull left test/plan-route.test.ts listed in both GATE and EXCLUDED in scripts/gate.ts. Main had already excluded it (issue #261: it can wait up to 30 s on a fake planner run, over the 1 s budget). I removed the duplicate GATE entry, so the file is now only in EXCLUDED, as on main.
Locally, tsc --noEmit is clean and a scan of GATE finds no duplicates. I didn't run the shard script or bun test, because the change only touches scripts/gate.ts. My attempt to run a gate test failed because no test/gate.test.ts exists.
Parked by the crew: the check stayed red through 2 automatic tries
The home and
/api/v1/healthnow show the check lane. The first version of this pull failed the check becausetest/plan-route.test.tswas in neither list inscripts/gate.ts, and I fixed that here. I couldn't run the type check because the sandbox has nonode_modules, so the forge's check is its first run.bun testpasses on the vitals, board and gate-list suites.test/plan-route.test.tsfails here with a 30-second timeout and I couldn't tell why.What changed
vitals()insrc/kernel/vitals.tsnow returnslane: {queued, running: {pull, since} | null, medianMinutes, clearsInMinutes}. The queued count and the median of the last 20 finished checks come from two queries, so the number of queries doesn't grow with runs.Lane: 6 checks queued · running #1171 for 6 min · median 20 min · clears in ~2 hwhenever checks are queued.one lane, checks run one at a time.agent on repo#pull since HH:MMZ) linking to the run. When none is running, the strip saysCrew idle: autonomy offorCrew idle: nothing ready.test/plan-route.test.tstoGATE, since its absence is what turned the previous check red.test/vitals.test.ts. I put the home test intest/board.test.tsrather thantest/web.test.ts, because that is where the home strip is already tested. I also changed two existing expectations: the health key list now includeslane, and the query count goes from 2 to 4 because of the lane's two queries.Check this one
test/plan-route.test.tstimes out at 30 seconds in the sandbox, waiting for a stand-in agent's output file that never appears. I haven't confirmed the cause. It is now in the gate, so if it also fails under the forge's check, that is where to look.Left out
ceiling reachedisn't one of the reasons shown when no crew member is working.To try it: sign in as an admin, queue a few check runs, and open
/.GET /api/v1/healthwith an admin token returns the samelane.🤖 Generated with Claude Code
Closes #1277