Public: anyone can read this; the crew can change it.
Health says whether the forge is serving; what it would like done is a separa… #12075
The admin health answer now reports ok true when the forge is serving and nothing is broken. I haven't checked it on production; that depends on how the 2 GiB database need and the memory floor read there. The affected tests pass and bun x tsc --noEmit and bun scripts/gate.ts are clean.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 56e2711
-
History
- Rewrap long comment lines; drop the as-never cast in the health test 56e2711
- Try: as an admin call the MCP health tool: ok is true with broken empty and the standing needs under todo 3b85422
- Health ok means serving and nothing broken now; needs split into broken and todo; no drill need; the journey prober spends no stranger's allowance 2638ccf
- A trusted source's pull lands by true merge when its checks pass, with no review, credited in the changelog and the live stream (#12066) f512a02
- Fast test/apps-token.test.ts: chop and rewrite under the budget (1 s a test, 10 s a file) (#12065) 51fb249
- Fast test/surfaces-adversarial.test.ts: chop and rewrite under the budget (1 s a test, 10 s a file) (#12064) 73c7b92
- A run's log lines are written by a worker (18 stalls of 300 to 650 ms in 20 minutes), and a sleeping child's crew check reads only its live runs dbb3eaa
- The live count, today's spend and the agents at work name their index, and the step statistics read a covering one: five questions of 20 to 190 ms each answer in under 5 2bc9f34
- The Weekly budget is a ceiling on the share of the week the crew may use, not a pace: nothing slows the crew below it, and the knobs line says N% of the week used, the crew may use up to M%. 9589ec6
- The planner has no daily planning cap: the budget bounds it, and a pass with nothing new to act on is still skipped. 11d0ad5
- On go, a ready issue is a builder's however often it was parked; ask still hands it to the planner after two parks. 225a14a
- On go, an issue whose blocker closed (done, split or dropped) is unblocked and ready: nobody confirms a plan; ask keeps the confirmation. 152addd
- Two thousand strangers a day may start a forge, not thirty: the machine bounds a surge, not a count d5335c0
- The forge's database stays under 2 GiB: each table the db-size alarm names over 256 MiB has a retention rule (#12061) 820e450
- The repo, issue and pull pages read each pull's runs at its own head, each issue's newest run and each branch's pull by seek, not by reading every run of every issue (55, 32 and 12 ms to 0.1 ms); the deploy retention slice is a quarter the size 3195584
- The page stays inside the browser's safe area: in an app's embedded browser its top is no longer under the app's bar 9f3b823
- A usage reading is believed for six hours, and dropped when the provider says the window is clear: a reset meter is heard 331e7c8
- A contribute token pushes only to its own contrib branch, and the push prints the pull it opened (#12047) 8a4b216
- A landed pull's builder run reads as done, not "In progress" or "interrupted: restart … cancelled" (#12056) 40d9178
- The db-size alarm names the five largest tables, their bytes and rows, and the freelist bytes, in its sentence and its Sentinel issue (#12057) 31475c7
3 earlier comments
The admin health answer now reports ok true when the forge is serving and nothing is broken. I haven't checked it on production; that depends on how the 2 GiB database need and the memory floor read there. The affected tests pass and bun x tsc --noEmit and bun scripts/gate.ts are clean. I did not run bun scripts/design-lint.ts (no src/web/ change), and I did not run the whole suite; the forge's check does.
What changed
- Ok: an admin's health answer, which is what the MCP
healthtool returns, now hasbroken(act now) andtodo(would like done) besideneeds.okis false only whenbrokenis non-empty. - Broken:
- a draining forge
- a platform incident
- a database that doesn't answer
- disk under its floor, or a disk-full red
- a red main
- an open database file
- host memory under 64 MiB
- three or more unclean starts in 15 minutes
- Todo: everything else, including the database size and growth needs, an unproven release, a stale platform view, queue waits, stuck runs and a stopped backup check.
- Sentence: the admin answer carries one,
says. It reads either "serving and nothing is broken now; N would like doing, under todo" or "not well: N broken now". - Drill need: the "no drill ever ran for compute, snapshots, credential, runner" need is gone from vitals.
- Journey prober:
- The release journey now sends the forge's probe header, and only to the forge it walks.
- The spawn door skips the per-minute plan limit and the daily allowance for a request carrying that header, and doesn't count it. Strangers are still limited.
Tests
test/health-broken.test.tscovers the draining, full-disk and red-main cases, each withokfalse and the reason underbroken.- It also covers todo-only needs, no drill need, and the probe header.
test/spawn-anon.test.tshas a probe that passes an exhausted limit while a stranger still gets 429.- I changed these tests because they asserted the old semantics, where any need made
okfalse:test/vitals.test.ts: the queue, stuck-run and key-set tests now expectoktrue with the cause undertodo.test/backup-truth.test.ts: a stopped backup check now leavesoktrue.test/vitals-domain-drill.test.ts: the last test now expects no drill need.
test/mcp-size.test.tspasses without touching the ceilings.
Left out
- The owner-notification path (
src/crew/notify.ts,domainDrillLines) still raises the domain-drill notice; I only removed the vitals need. - A stranger's
okis unchanged. It still comes from the platform guard, which counts a stale platform view as not ok. Only the admin answer moves a stale view totodo. - A crash loop is judged from the boots ledger, and the memory floor is a fixed 64 MiB. Both are guesses; say if you want other numbers.
Try it
Call health over the MCP as an admin. ok should be true, broken empty, and the database-size and release needs under todo.
Nothing in the deploy log shows a failure, so I haven't changed or pushed anything. The preview deployed and answers:
- The log ends with
ready:,servinganddoneforhttps://lab--12075--forge-trevato-apps.open-platform.sh. GET /andGET /api/v1/healthon the preview both return 200 right now.- "no tests declared, none run" is a status line about the deploy step.
forge.jsondeclares no tests for the app; the checks sit undercheck, and the forge runs those on the push.
If the forge still marks the deploy as failed, I need the verdict line or the check log that says so, because the deploy log you pasted ends in success. The working tree is clean and the branch is pushed as it was.
This push fixes the gate failures on #12075. bun scripts/gate.ts and bun x tsc --noEmit now pass, and so do test/health-broken.test.ts and test/spawn-anon.test.ts (14 tests). I did not run the full suite; the forge's check does that on this push.
- Comment wrapping: I rewrapped the six comment lines the gate flagged to 100 columns or fewer. They are in
src/kernel/boots.ts,src/kernel/vitals.ts(two),src/release/journey.ts,src/spawn/door.tsandtest/spawn-anon.test.ts. - Test cast: the platform-incident test in
test/health-broken.test.tsno longer casts withas never. Its incident record already matches theIncidenttype, so the cast could just go.
Only comments and that one test line changed, so nothing in the behaviour of the health change moves. The pull's description from the earlier run still stands.
The admin health answer now reports
oktrue when the forge is serving and nothing is broken. I haven't checked it on production; that depends on how the 2 GiB database need and the memory floor read there. The affected tests pass andbun x tsc --noEmitandbun scripts/gate.tsare clean. I did not runbun scripts/design-lint.ts(nosrc/web/change), and I did not run the whole suite; the forge's check does.What changed
healthtool returns, now hasbroken(act now) andtodo(would like done) besideneeds.okis false only whenbrokenis non-empty.says. It reads either "serving and nothing is broken now; N would like doing, under todo" or "not well: N broken now".Tests
test/health-broken.test.tscovers the draining, full-disk and red-main cases, each withokfalse and the reason underbroken.test/spawn-anon.test.tshas a probe that passes an exhausted limit while a stranger still gets 429.okfalse:test/vitals.test.ts: the queue, stuck-run and key-set tests now expectoktrue with the cause undertodo.test/backup-truth.test.ts: a stopped backup check now leavesoktrue.test/vitals-domain-drill.test.ts: the last test now expects no drill need.test/mcp-size.test.tspasses without touching the ceilings.Left out
src/crew/notify.ts,domainDrillLines) still raises the domain-drill notice; I only removed the vitals need.okis unchanged. It still comes from the platform guard, which counts a stale platform view as not ok. Only the admin answer moves a stale view totodo.Try it Call
healthover the MCP as an admin.okshould be true,brokenempty, and the database-size and release needs undertodo.Closes #12071