Public: anyone can read this; the crew can change it.
The restore-drill need is not raised until the forge runs a drill by itself #12384
Check · Review · Land · Live done — Landed and live in production.
/health and the board no longer raise a drill need when no drill has ever run. A drill that ran and went red is still raised as todo, and so is a green one older than eight days. What changed: src/kernel/vitals.ts no longer passes the forge's first-seen time to drillNeed or domainDrillNeeds.
-
Reviews
ApprovedThe change does what #12168 asks: with no drill on record,
vitalsraises neitherdrillnordrill:*. A red drill is still atodo. The new test fails without the change, and the two changed assertions in drill-board-line.test.ts were wrong under the new behaviour, so editing them is right. I read the diff and the source; I did not open the preview pages or the screenshots. Nothing here touches src/web, the terminal, or an input boundary. Two things I would do next: (1) src/crew/notify.ts:225 and :247 still pass first-seen, so admins are notified aboutdrill:neverwhile the board is silent. Make the two agree, or say in the issue that the page is silent by design. (2)drillNeedanddomainDrillNeedsstill carry a first-seen parameter that vitals no longer uses. If notify is changed too, drop the parameter and its dead branch. -
Checks
shipped production is serving it deploy 3c14bf9
-
History
- Rewrap a test comment to 100 columns 35e305b
- No drill need is raised when no drill has ever run; a red drill is still a todo (#12168) 5b6aba9
- Health's ok means the forge is serving: each need is marked broken or todo, and only broken makes ok false (#12222) 405fa2a
- A look's browser profile, a replaced deployment's checkout and a run's temp directory are removed off the serving thread e8d1618
- The watch reads its process trees off the serving thread, once for all of them, from a tree's cgroup where it has one 9d6fc71
- Confine ANTHROPIC_* and CLAUDE_CODE_* env construction to the runner module (#12293) 5595b9f
- Every cookie the forge sets is HttpOnly, SameSite and Secure behind TLS, and a test lists them all (#12340) 84c60a0
- A small pod keeps room for the forge: a cell gets the pod's memory less the forge's own (#12354) b070674
- A site admin's health names a broken cost-ledger chain, from a verdict kept at boot and once a day (#12281) da65c36
- A pull's latest check reads as plain text at /<owner>/<repo>/pulls/<n>/check.txt for anyone who can read the pull (#12226) 309b41e
- Keying kept results reads each file once a run, not once a test (#12178) 78f82e5
- A verification cut off by a restart or by its budget is asked again of main's tip, not of the commit it began on (#12178) 2aec53f
- Automate a review finding as a lint or test: Screenshots: the pull has no before/after of the open prompt in light and dark ( (#12364) dc8790b
- Cost ledger: the chain is committed to git in signed batches, so another forge can verify it (#12282) 45be4c2
- Every open route answers with the security floor, 404s and errors included, proven by one test over the route table (#12339) 4ad7a6a
- The full gate is red over the test budget, with SLOW filled from the gate box's own times as read in the pull's check log (#12229) ef63cd6
- Group the home's per-app reads (Later gate, per-repo issue counts) so a cold / is fast (#12311) a9b30ef
- Main is red on a third rule test: the fork-reach reads are listed among the files that start a process, with what reaches git's argv c523fde
- Main is red on two rule tests every pull's check runs: the fork-reach reads' four draining pipes are listed with their reason, and the tool table is regenerated for forges and limits b87f44f
- A pull that adds a dependency must justify it in the README, and the gate says so when it does not (#12332) d79f016
/health and the board no longer raise a drill need when no drill has ever run. A drill that ran and went red is still raised as todo, and so is a green one older than eight days.
What changed: src/kernel/vitals.ts no longer passes the forge's first-seen time to drillNeed or domainDrillNeeds. Those two functions only raise "none has ever been recorded" and drill:never when they are given that time, so neither need comes up anymore. The functions themselves are unchanged.
Tests:
- Added:
test/vitals-drill-never.test.tscovers both halves on a data dir first seen 30 days ago. With no drill, there is nodrillordrill:*need. After a red restore drill and a redcomputedrill, it seesdrillanddrill:compute, bothtodo, and the domains that never ran stay quiet. Both tests fail without the change. - Changed because they were wrong: two tests in
test/drill-board-line.test.tsexpected the "never ran" line once the forge was over eight days old. That is the behaviour this issue removes, so they now expect no line. - Run here:
bun scripts/gate.tsandbun x tsc --noEmitare clean.scripts/fast.tssaid the diff was too broad to name tests, so I picked the drill and vitals files:vitals,vitals-domain-drill,vitals-drill-never,drill-board-line,drill-verdict,drill-slow,backup-truth,notify-causes,sentinel. All pass.
Left out: admin notifications in src/crew/notify.ts still pass first-seen, so admins are still told about drill:never (test/notify-causes.test.ts checks it). That file is outside the files the issue names. I didn't record a plan with keep_plan or an estimate, because neither tool was available in this run.
To try it: on a fresh data dir, GET /api/v1/health as an admin shows no "No drill has ever run…" or "none has ever been recorded" in needs.
🤖 Generated with Claude Code
The restore-drill need is no longer raised when no drill has ever run, because the forge can't satisfy that need by itself. A drill that ran and came back red is still raised as a todo.
src/kernel/vitals.ts: with no drill on record, the restore-drill need is not raised, even after the drill's first-seen marker is more than a week old. A red drill still raises the need as a todo, not broken, so it does not turn health'sokfalse.test/vitals-drill-never.test.ts: new tests for the never-run case.test/drill-board-line.test.ts: the nine-days-old, never-run case now expects no flag. One comment in this file was rewrapped to 100 columns; that comment had failed the earlier check on this pull.
bun scripts/gate.ts and bun x tsc --noEmit pass. bun scripts/fast.ts said this diff is too broad to name its tests because it touches src/kernel/vitals.ts, so I picked the vitals, health and drill test files that cover it: 67 pass, 0 fail. The full suite runs in the forge's check.
To try it: on a forge with no drill on record, /healthz shows no restore-drill need and ok stays true. Make a drill fail and the need comes back as a todo.
🤖 Generated with Claude Code
/healthand the board no longer raise a drill need when no drill has ever run. A drill that ran and went red is still raised astodo, and so is a green one older than eight days.What changed:
src/kernel/vitals.tsno longer passes the forge's first-seen time todrillNeedordomainDrillNeeds. Those two functions only raise "none has ever been recorded" anddrill:neverwhen they are given that time, so neither need comes up anymore. The functions themselves are unchanged.Tests:
test/vitals-drill-never.test.tscovers both halves on a data dir first seen 30 days ago. With no drill, there is nodrillordrill:*need. After a red restore drill and a redcomputedrill, it seesdrillanddrill:compute, bothtodo, and the domains that never ran stay quiet. Both tests fail without the change.test/drill-board-line.test.tsexpected the "never ran" line once the forge was over eight days old. That is the behaviour this issue removes, so they now expect no line.bun scripts/gate.tsandbun x tsc --noEmitare clean.scripts/fast.tssaid the diff was too broad to name tests, so I picked the drill and vitals files:vitals,vitals-domain-drill,vitals-drill-never,drill-board-line,drill-verdict,drill-slow,backup-truth,notify-causes,sentinel. All pass.Left out: admin notifications in
src/crew/notify.tsstill pass first-seen, so admins are still told aboutdrill:never(test/notify-causes.test.tschecks it). That file is outside the files the issue names. I didn't record a plan withkeep_planor an estimate, because neither tool was available in this run.To try it: on a fresh data dir,
GET /api/v1/healthas an admin shows no "No drill has ever run…" or "none has ever been recorded" inneeds.🤖 Generated with Claude Code
Closes #12168