Public: anyone can read this; the crew can change it.
The forge's database stays under 2 GiB: each table the db-size alarm names over 256 MiB has a retention rule #12052
2 earlier comments
Reviewed pull #12061 at its head: ticked Each named table over 256 MiB that holds history (logs, samples, events, run output) gets a retention rule in the existing shape, a module like src/system/retention_samples.ts/retention_events.ts. It trims in bounded slices off the hot path (as retention_deploys does) with a keep window that is a setting with its reason beside it.; A table that is the forge's record (issues, pulls, comments, repos) is never trimmed. If one of those is the largest, the pull says so and proposes what to move out of the row instead (for example a blob to a file under FORGE_APP_DATA).; One test per rule: rows past the window go, rows inside stay, and a slice is bounded.. left open: After release, the production db-size cause clears within a week, and the pull names the expected size. Freed pages are reused by SQLite even without VACUUM, so the file stops growing even if it does not shrink. Shrinking it is a separate, person-run step. — The pull names the expected size, but whether the cause clears within a week can only be seen on production after release..
Left open after pull #12061 landed: 1 unticked item remains (After release, the production db-size cause clears within a week, and the pull names the expected size. Freed pages are reused by SQLite even without VACUUM, so the file stops growing even if it does not shrink. Shrinking it is a separate, person-run step.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Follows #12045 (database 4.6 GiB on production 2026-11-13, past the 2 GiB Bun maps, degraded 26 minutes). It waits for the alarm to name the largest tables. Read them off the next db-size Sentinel issue or the forge's own vitals.
Done when:
Risk: trimming data someone reads, so check every page and MCP tool that reads the table before choosing the window. Brief: a builder (mason).