Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:10bdvndtlg is past its budget: trevato/forge: "each page stays inside its first-view budget" failed on 3 pulls in the last hour — the lane's red, not … #17106
Merged 2d 4h ago, live in production
The first-view budget test now counts /system the same way no matter which test file ran first in the process. The red was not caused by load, disk or the clock; it came from process-wide state. Cause.
-
Reviews
ApprovedTest-only fix, and it matches the cause. outsideNote() in src/web/pages/system.ts renders the exact
<ul class="list small" id="sys-outside" ...>the new regex strips, so the budget counts /system as a fresh process draws it. The page is unchanged, the budget file is unchanged, and the new test notes the keeper off and restores it in finally. No page, API or terminal surface changes, so no door or docs change is needed. I did not run the suite.Two things I would do next:
- Move the keeper's boot state out of module scope, so no test has to note and reset it by hand.
- Make
noOutsidefail loudly when the page has the list but the pattern no longer matches. A markup change would otherwise bring this flake back quietly.
-
Checks
shipped production is serving it deploy db96b4c
-
History
- The first-view budget counts /system without the release keeper's boot line, so it no longer moves with which file ran first (#17087) a90083c
- /explore evaluates rate, sum by and topk over the metric series and draws the result as a chart above a table (#17063) 5152c61
- A handed-over runner job is judged by its own lease, so a slow boot or the orphan lapse no longer loses it (#17096) d5ab98b
- The production-size budgets count a pass over the runs as the pages make one: rows read into objects (#17100) 4388979
- Security against 24/7 agent swarms: OSV dependency scans with auto-fix pulls, secret scanning at push, code scanning in review, an exposure map with rate limits, a scheduled red team (#16997) e1014df
- The shared tier is sold beside the dedicated one, with a density number a test measured (#17008) 7cc450a
- The cockpit: board and map as one screen, driven by four keys, readable from a TV, with nothing that needs you that a rule could answer (#16844) 2b7a2cb
- Merge scanTomlValue and scanYamlValue into one value scanner (#17091) dcc6797
- Merge scanJsxTag and scanHtmlAttributes into one tag-attribute scanner (#17088) 821c831
- Repo header: descriptions clamp to 2 lines with expand (apps API separates description from brief), and a clear crew status line: "paused at its ceiling" with a Raise button (#16936) 81d5354
- A push that adds a secret-shaped line is flagged before it lands (#17066) 068c207
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:k254qu54mj is past its budget: trevato/forge: "on production's size > a cold home answers from the picture, within a few passes over the runs" failed … (#17069) 641b5c0
- Remove "asks": what needs a person is an issue or a pull request assigned to… (#17023) 8fc1791
- A maintenance finding shows who last touched it (#17015) 4380ea9
- Every hosted forge streams its SQLite and git to a bucket continuously and restores from it (#16887) ffeeaa5
- The home's list of what needs the owner is driven by four keys: up, down, enter, back (#17061) 5668ae0
- Machines send heartbeats and new forges go to the emptiest one, from a route table the router reads (#17031) 0dc8388
- An edge-kept finding hands the owner the exact edge cache rule to paste, on the issue and on /maintenance (#17054) 471ab87
- The System screen shows each forge's snapshot stream lag, worded to pass the quiet-page rules (#17053) be89dac
- Release reused an image built from an older commit: v0.7.646 shipped without the fix it was cut for (#17028) 1aaad2d
The first-view budget test now counts /system the same way no matter which test file ran first in the process. The red was not caused by load, disk or the clock; it came from process-wide state.
Cause. src/keeper/at_boot.ts keeps what the release keeper said at boot, for the whole process. The footing section on /system lists it under "Needs a hand outside the forge" as one item: "releases: nothing cuts or promotes one unattended; <why>". bun test runs files in one process, so when an earlier file notes the keeper as off (booting main.ts does this), /system gains 11 or 12 words and one block. That is the sentinel's system @390: words 268 > budget 256, blocks 82 > budget 81. I reproduced it here by noting the keeper off in a file run before test/attention.test.ts: 267/82 against 256/81.
Fix. pinnedSystem in test/helpers/first-views.ts now also removes the #sys-outside list, the same way it already pins the host's cap lines and the background readings. The budget stays what a fresh process draws, so docs/design/attention-budget.json is unchanged. The page itself is unchanged too: an owner whose keeper is off still sees the line.
Test. I added a test to test/attention.test.ts that notes the keeper off, reads /system again, and checks that the pinned page counts the same as the measured one at both widths. It fails without the helper change. It sets the keeper state back to nothing afterwards, as test/meter-watch.test.ts does.
Not done. I didn't move the keeper's boot state out of module scope. That changes how main.ts reports it, which is more than this flake needs.
Checks run. The gate passed all 32 rules, and bun x tsc --noEmit passed. These test files passed, 73 tests: attention, attention-stamped, meter-watch, module-state, global-spies-restored, test-honesty, unused-exports, flake and helpers. scripts/fast.ts named 136 files (about 11 minutes, more than this run allows), so the rest are left to the forge's check. Running the probe file before test/attention.test.ts now passes.
To try it: write a test file whose top level calls noteKeeperAtBoot({ on: false, why: "FORGE_RELEASE_KEEPER is not on" }), then run bun test <that file> test/attention.test.ts. It was red on main and is green on this branch.
🤖 Generated with Claude Code
The first-view budget test now counts /system the same way no matter which test file ran first in the process. The red was not caused by load, disk or the clock; it came from process-wide state.
Cause.
src/keeper/at_boot.tskeeps what the release keeper said at boot, for the whole process. The footing section on /system lists it under "Needs a hand outside the forge" as one item: "releases: nothing cuts or promotes one unattended; <why>".bun testruns files in one process, so when an earlier file notes the keeper as off (bootingmain.tsdoes this), /system gains 11 or 12 words and one block. That is the sentinel'ssystem @390: words 268 > budget 256, blocks 82 > budget 81. I reproduced it here by noting the keeper off in a file run beforetest/attention.test.ts: 267/82 against 256/81.Fix.
pinnedSystemintest/helpers/first-views.tsnow also removes the#sys-outsidelist, the same way it already pins the host's cap lines and the background readings. The budget stays what a fresh process draws, sodocs/design/attention-budget.jsonis unchanged. The page itself is unchanged too: an owner whose keeper is off still sees the line.Test. I added a test to
test/attention.test.tsthat notes the keeper off, reads /system again, and checks that the pinned page counts the same as the measured one at both widths. It fails without the helper change. It sets the keeper state back to nothing afterwards, astest/meter-watch.test.tsdoes.Not done. I didn't move the keeper's boot state out of module scope. That changes how
main.tsreports it, which is more than this flake needs.Checks run. The gate passed all 32 rules, and
bun x tsc --noEmitpassed. These test files passed, 73 tests:attention,attention-stamped,meter-watch,module-state,global-spies-restored,test-honesty,unused-exports,flakeandhelpers.scripts/fast.tsnamed 136 files (about 11 minutes, more than this run allows), so the rest are left to the forge's check. Running the probe file beforetest/attention.test.tsnow passes.To try it: write a test file whose top level calls
noteKeeperAtBoot({ on: false, why: "FORGE_RELEASE_KEEPER is not on" }), then runbun test <that file> test/attention.test.ts. It was red on main and is green on this branch.🤖 Generated with Claude Code
Closes #17087