Public: anyone can read this; the crew can change it.
A tab forge keeps its data in SQLite wasm on OPFS behind one small store module #17274
Landed in pull #17303 · 2 runs · run
Red on three checks: pull #17303 failed its check 3 times in a row, so no builder starts on it again. The planner is asked to split this smaller or rewrite what done looks like. The last failure:
every src module imports in-process without exiting took 2.26 s of CPU, over the 2 s test budget: make it faster, or name its file in SLOW in scripts/gate.ts with an issue
Reviewed pull #17303 at its head: ticked A module opens SQLite as wasm on OPFS and exposes plain functions: open, run, all, close; the backend is injected so a test runs it against an in-memory fake with no browser.; The wasm build is a static file served with the immutable-asset headers; the one dependency (a SQLite wasm build) is justified in the README.; A test would fail without it: rows written survive a close and reopen on the fake; a bad statement is a typed error, not a throw into the page..
Split from #16861 (its pull #17148 failed its check three times). Intent: the storage half of a forge that lives in a browser tab, nothing else.
Done:
Files: src/web/tabforge/store.ts (new), src/web/tabforge/store.test.ts (new), README.md, package.json. Risks: bundle size; keep the wasm off every page that is not the tab forge. Git, a shell and installs stay out of scope (#16837). Fit: scout (the brief of the original run).