Public: anyone can read this; the crew can change it.

The db-size alarm names the five largest tables, their bytes and rows, and the freelist bytes, in its sentence and its Sentinel issue #12051

shipped production is serving it opened this has it

Landed in pull #12057 · run

opened this

Replaces #12045, which was parked twice: builders declined because the issue says the database is 4.6 GiB but not what fills it, and nobody outside the host can read /system. The evidence has to travel with the alarm.

Done when:

Risk: the walk may be stale by up to an hour, so the sentence says when it was taken ("as of 13:00Z"). Brief: a builder (mason).

commented

Reviewed pull #12057 at its head: ticked dbSizeNeed in src/system/db_size.ts takes the last cached walk (dbSizeCache), when there is one, and adds to the sentence the five largest tables (name, MiB, rows) and the freelist MiB, for example: The database is 4.6 GiB, past the 2 GiB Bun maps: run_log 2.1 GiB (3.2M rows), … ; 0.4 GiB free. With no walk yet, it keeps today's sentence.; The Sentinel issue that src/kernel/vitals.ts feeds carries that sentence as its evidence, so the next db-size issue is actionable from the forge alone.; A unit test on dbSizeNeed with a fixed walk asserts the sentence, and another asserts the fallback without a walk. Plain data in, plain data out.; bun x tsc --noEmit and the touched tests pass. /system and the TUI screen (src/web/pages/system.ts, src/tui/screens/system.ts) still render..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs