Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:sh74wg48ib is past its budget: trevato/forge: "on production's size > a cold /map answers within a few passes over the runs" failed on 3 pulls in the … #18070
Merged 10h 50m ago, live in production
The production-size page budgets now count only the page's own statements, so "a cold /map answers within a few passes over the runs" no longer depends on how busy the check machine is. Cause. On an idle machine a cold /map asks for 32 statements, and every one is logged under route GET /map or with no step.
-
Reviews
ApprovedApproved. I opened the preview and read what it served.
/answered 200 in about 0.2 s with a server-rendered page:langset, viewport meta, and an h1 reading "Software you ask for, reviewed and shipped."/mapanswered 303 to a guest, as expected. The diff changes no page, so the preview shows no visible change, and the both-doors rule does not apply. The fix follows the repo's pattern.background()already runs its synchronous part underinStep("duty <name>")(src/perf/jobs.ts), the statement log now records that step, andreadStatementLogdropsdutylines. The new test would fail without the split. Nothing is logged unless FORGE_STATEMENT_LOG is set, so production is unchanged. I did not run the test suite.Two things I would do next:
- Statements a background job asks for after an
awaitstill carry no step. The ceilings (80/50/240) keep that headroom. If the sentinel fires again, name the step across those awaits instead of raising the ceilings. - Fix the
cannot commit transaction - SQL statements in progressteardown warnings you noted. They show up on green runs and are noise that can hide a real failure.
- Statements a background job asks for after an
-
Checks
shipped production is serving it deploy a338207
-
History
- Production-size budgets count the page's statements, not a background job's that fires mid-page (#18026) 78482eb
- Traces 1a: a trace index table, filled when a run or Talk turn ends and backfilled once off the serving thread (#18061) 35e4ee2
- Games: pin forge-velocity f7d5d4e72 (/forge words as you type, Yes and No to click, an answer shown once) (#18036) 0003ecb
- Merge pull request #18054 from sold/agent-rollback d6960b3
- Games: a new server's words are searched on Modrinth, not matched against five names (#18041) 31cdee4
- Lists answer next_cursor as a string, as openapi.json declares (full suite red, #18027) (#18040) ab67833
- Game box agent: put a container left as <12 hex>_<service> back to its service name (#18052) 99480aa
- Deploys never move a live name by surprise: DNS is asked before Build, a restore asks once more (#18030) 49e77a8
- Plugin config: a line too long to read stays as the file has it (#17782) 1c79353
- Games: a server the box no longer runs leaves its list (#18029) 492f6df
- A migration that makes a return to the image before unproven can be named (#17766) 63bef0b
- Game box: a new agent is on trial, and goes back to the one before if it does not check in baf09aa
- Talk API: pin a conversation, answer a held action yes or no, and redo a turn (#18012) 4513adb
- Asks: routes so a client can clear the whole queue (resume paused, snooze, group contents, dismiss all kinds) (#17966) 11275b0
- Merge pull request #18016 from sold/forge-fast b9491db
- Talk API: a person's sent files on each turn, and search inside turns (#18009) 0e5211b
- Merge commit '2b24ebd48bea0a43bd8236087ff986b3542c25d4' into HEAD cee6636
- GET /api/v1/repos/{owner}/{name}/commits reads `path`: only the commits that touched it (#18007) 2b24ebd
- Move in: bring all of GitHub and Vercel into the forge through one trusted flow (inventory → plan → paced copy → verify), read-only toward the sources; clean-up is a separate, later step (#18000) 6d7f17e
- A test that reads an /api/v1 answer disagreeing with openapi.json goes red (#18013) 23d6af8
The production-size page budgets now count only the page's own statements, so "a cold /map answers within a few passes over the runs" no longer depends on how busy the check machine is.
Cause. On an idle machine a cold /map asks for 32 statements, and every one is logged under route GET /map or with no step. The statement log also picked up background jobs: the timers that flush request counts, route timings, traffic history and read history. On a loaded check machine those timers fired while the page was being served and pushed the count to 57, over the ceiling of 50. The stack trace in the sentinel's log (withoutWaiting → flush → background) is one of those flushes.
Fix. Each background job runs its synchronous part under inStep("duty <name>"). src/kernel/statement_log.ts now writes each line as {"sql", "step"}, with step being what the thread was doing at that moment. readStatementLog in test/observability-budget.test.ts skips lines whose step starts with duty . The four workers already load loop_step, so production gets no new import or allocation, and nothing is logged unless FORGE_STATEMENT_LOG is set.
What to look at:
- A new test runs a statement inside
background(...)next to a plain one and expects only the plain one to be counted. It would fail without the split. - I left the ceilings (boards 80, map 50, home 240) unchanged. The remaining headroom only covers a background job's reads after an
await, because no step names those. - The
cannot commit transaction - SQL statements in progresswarnings at teardown appear on green runs too. They're unrelated to this failure and I left them alone.
Checks. test/observability-budget.test.ts passes (8 tests), as do module-state, loop-step-server, unused-exports, pages-memory and fixed-texts (19 tests). bun x tsc --noEmit and bun scripts/gate.ts are clean. scripts/fast.ts said this diff was too broad to pick tests for, so I chose these; the full suite is left to the forge's check. The commit says No door: because this changes test instrumentation only, no page, route or tool.
🤖 Generated with Claude Code
The production-size page budgets now count only the page's own statements, so "a cold /map answers within a few passes over the runs" no longer depends on how busy the check machine is.
Cause. On an idle machine a cold
/mapasks for 32 statements, and every one is logged underroute GET /mapor with no step. The statement log also picked up background jobs: the timers that flush request counts, route timings, traffic history and read history. On a loaded check machine those timers fired while the page was being served and pushed the count to 57, over the ceiling of 50. The stack trace in the sentinel's log (withoutWaiting→flush→background) is one of those flushes.Fix. Each background job runs its synchronous part under
inStep("duty <name>").src/kernel/statement_log.tsnow writes each line as{"sql", "step"}, withstepbeing what the thread was doing at that moment.readStatementLogintest/observability-budget.test.tsskips lines whose step starts withduty. The four workers already loadloop_step, so production gets no new import or allocation, and nothing is logged unlessFORGE_STATEMENT_LOGis set.What to look at:
background(...)next to a plain one and expects only the plain one to be counted. It would fail without the split.await, because no step names those.cannot commit transaction - SQL statements in progresswarnings at teardown appear on green runs too. They're unrelated to this failure and I left them alone.Checks.
test/observability-budget.test.tspasses (8 tests), as do module-state, loop-step-server, unused-exports, pages-memory and fixed-texts (19 tests).bun x tsc --noEmitandbun scripts/gate.tsare clean.scripts/fast.tssaid this diff was too broad to pick tests for, so I chose these; the full suite is left to the forge's check. The commit saysNo door:because this changes test instrumentation only, no page, route or tool.🤖 Generated with Claude Code
Closes #18026