Public: anyone can read this; the crew can change it.
Sentinel: queue:check is past its budget: 5 checks wait for 2 slots, all busy; the oldest since 13:25; the longest running is #16599 at 5 min (limit 60). #16614
Check · Review · Land · Live done — Landed and live in production.
When every check slot is busy, a long check lane now has its own cause, queue:check:full, and the sentinel no longer files it as an issue for a builder. A lane that waits while a slot is free is still queue:check, and the sentinel still files it at once. Cause.
shipped production is serving it deploy 3256dd5
When every check slot is busy, a long check lane now has its own cause, queue:check:full, and the sentinel no longer files it as an issue for a builder. A lane that waits while a slot is free is still queue:check, and the sentinel still files it at once.
Cause. I read the check runs from 13:00 to 14:10 through the runs API. The lane was working as designed: once a check had waited five minutes, the longest-waiting one started first. Queued at 13:21, 13:24, 13:25 and 13:32, the oldest four started at 13:31, 13:32, 13:37 and 13:44. The lane was simply full. About thirteen pull checks, each taking 5–14 minutes, were queued between 13:19 and 13:37 for two slots, and the queue cleared by itself by about 14:20. No code change would have shortened that wait; only more slots (checks.concurrency) would, and that costs machine time, so it is the owner's call.
What changed
src/kernel/vitals.ts: addsQUEUE_CHECK_FULL = "queue:check:full". It is raised when the running checks fill every slot, worked out from the counts, never from the sentence. The sentence is the same as before.src/crew/sentinel.ts:QUEUE_CHECK_FULLjoinsPERSON_ONLYbesidequeue:agent:full. This follows #16119, the merged fix for #16098, which did the same for agent queues.docs/features/check-lane-full.md: says which cause means what, and who acts on each.
Unchanged: the owner's card still asks "Raise the check slots, or leave them?", the pager still reports every queue: cause, and each full stretch is still recorded in degraded_span. A check that hangs or runs over its budget still raises stuck: or budget:, and both are still filed.
Tests
- New: a vitals test with two slots, where one busy slot gives
queue:checkand two givequeue:check:full. - New: a sentinel test that neither
budgetBreachesnordegradedCausesfiles aqueue:check:fullspan. - Both new tests fail without the source change.
- Changed, because every slot in them is busy so their expected cause changed:
test/vitals.test.tsnow looks forqueue:check:full, and the lane helper intest/account-held-lane.test.tsaccepts either cause.
Checks run: bun scripts/gate.ts --fix (it rewrapped one comment, which is committed), bun x tsc --noEmit, and the features-index script all pass. scripts/fast.ts named 3,624 test files because vitals.ts is imported almost everywhere, so instead I ran the 74 files that mention queue causes, feature docs or the sentinel's filing: 819 pass, 0 fail.
Not done:
- I did not raise
checks.concurrency; that stays the owner's call. - I did not change the starvation rule; the data shows it works.
- Four checks failed in 20–30 seconds on a gate rule ("name the issue", "both doors") after waiting up to ten minutes for a slot. Checking those rules before a check takes a slot could be its own issue; I did not file one.
- I saved no plan or estimate on the issue: those tools were not available in this run.
To try it: bun test test/account-held-lane.test.ts test/sentinel.test.ts test/vitals.test.ts
🤖 Generated with Claude Code
The change does what #16605 asked. It is small and follows the #16098 pattern for the agent queue. The cause is worked out from counts (checkRuns.length >= max(1, slots)), not from the sentence. A lane waiting with a free slot stays queue:check and is still filed. QUEUE_CHECK_FULL is in PERSON_ONLY, and the new tests cover both causes and the sentinel's two filing paths. The how-to is in docs/features/check-lane-full.md, not the README. There is no new UI, so there is no terminal screen to add.
I opened the preview: / answered 200 with server-rendered HTML. The change adds no page and no picture, so there was nothing new to see there. I read the diff and grepped for other uses of the cause; I did not run the tests.
Two things I would do next:
- File the issue Mason left unfiled: run the gate rules ("name the issue", "both doors") before a check takes a slot, so a check that will fail in 20-30 seconds does not wait ten minutes for one.
- Give the owner's card a clear way to open
/settings/capacitywith the currentchecks.concurrencyvalue in view. Today it only says "Raise the check slots, or leave them?".
When every check slot is busy, a long check lane now has its own cause,
queue:check:full, and the sentinel no longer files it as an issue for a builder. A lane that waits while a slot is free is stillqueue:check, and the sentinel still files it at once.Cause. I read the check runs from 13:00 to 14:10 through the runs API. The lane was working as designed: once a check had waited five minutes, the longest-waiting one started first. Queued at 13:21, 13:24, 13:25 and 13:32, the oldest four started at 13:31, 13:32, 13:37 and 13:44. The lane was simply full. About thirteen pull checks, each taking 5–14 minutes, were queued between 13:19 and 13:37 for two slots, and the queue cleared by itself by about 14:20. No code change would have shortened that wait; only more slots (
checks.concurrency) would, and that costs machine time, so it is the owner's call.What changed
src/kernel/vitals.ts: addsQUEUE_CHECK_FULL = "queue:check:full". It is raised when the running checks fill every slot, worked out from the counts, never from the sentence. The sentence is the same as before.src/crew/sentinel.ts:QUEUE_CHECK_FULLjoinsPERSON_ONLYbesidequeue:agent:full. This follows #16119, the merged fix for #16098, which did the same for agent queues.docs/features/check-lane-full.md: says which cause means what, and who acts on each.Unchanged: the owner's card still asks "Raise the check slots, or leave them?", the pager still reports every
queue:cause, and each full stretch is still recorded indegraded_span. A check that hangs or runs over its budget still raisesstuck:orbudget:, and both are still filed.Tests
queue:checkand two givequeue:check:full.budgetBreachesnordegradedCausesfiles aqueue:check:fullspan.test/vitals.test.tsnow looks forqueue:check:full, and the lane helper intest/account-held-lane.test.tsaccepts either cause.Checks run:
bun scripts/gate.ts --fix(it rewrapped one comment, which is committed),bun x tsc --noEmit, and the features-index script all pass.scripts/fast.tsnamed 3,624 test files becausevitals.tsis imported almost everywhere, so instead I ran the 74 files that mention queue causes, feature docs or the sentinel's filing: 819 pass, 0 fail.Not done:
checks.concurrency; that stays the owner's call.To try it:
bun test test/account-held-lane.test.ts test/sentinel.test.ts test/vitals.test.ts🤖 Generated with Claude Code
Closes #16605