commit d8130436516050db736bfdce730b60e2e7ba5df3
parent c507f77e6e7da4af04370828a8a54d6c06a658aa
Author: anon <anon@example.com>
Date: Tue, 3 Nov 2026 09:29:01 +0000
Record verified full-suite fixture resource bounds
Diffstat:
| M | TODO.md | | | 66 | ++++++++++++++++++------------------------------------------------ |
1 file changed, 18 insertions(+), 48 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -3605,54 +3605,24 @@ with payloads and known client/server provenance.
memory and WASM, all 115 native test executions pass, and the matching published
bundle passes short input/reload and backpack hand-in/cold-loading checks.
Evidence: `local/zero-count-audit/`.
-- [ ] [P1] Close fixture SQLite handles after every test and table case, including
- failure paths. The comprehensive mission-movement regression run completed
- over 15,000 results, but its timeout dump retained many database/sql connection
- opener goroutines from earlier fixtures. Audit shared fixture helpers and
- verify bounded open handles/goroutines across a full run. New mission movement
- fixtures explicitly close their world database.
- The later connected capacity run also hits the full suite ten-minute timeout
- while entering a mission-return test, with earlier connection openers retained
- in its dump. Evidence: `local/todo-progression-play/capacity-go-full.log`.
- The shared combat fixture now receives its test context and closes a lazily
- opened database at scope exit, including its pursuit/regeneration/threat
- helpers. A nested equipment fixture reproduces one retained connection before
- the fix and zero afterward; six focused race checks pass. Descriptor samples
- still identify deleted databases from separate browser/chat/control/reload
- fixtures, so the broad audit remains open. Evidence:
- `local/todo-progression-play/fixture-cleanup-*.log` and `fixture-resource-*.json`.
- The complete maintained retry passes with a one-hour limit: server 1,698 roots
- / 16,785 results in 2,090.159s and gamedata 27 roots / 89 results. Three opt-in
- browser tests skip in that command; actual two-client WASM play is separate.
- Its prior thirty-minute run timed out without an assertion failure. Evidence:
- `local/todo-progression-play/fixture-cleanup-full-hour.jsonl`.
- The ordinary two-client progression fixture also exposed late disconnect
- writes: closing browser streams does not wait for `serveWorldClient` to save
- active nano durations. Two stopped runs logged `Saving nano durations: sql:
- database is closed`. Include session-writer draining before database cleanup;
- retained captures are in `local/todo-progression-play/`. Its resumed manual
- fixture now waits for connected clients to retire before closing SQLite.
- The maintained starter regression reproduces the same late nano-duration
- write during a failed run. Shared browser-stream cleanup now waits for its
- world sessions to retire after closing their streams, while ignoring synthetic
- non-browser clients. The broader fixture-handle audit remains open.
- A focused browser-launch/control reload audit now fixes nine further unclosed
- database instances. Before cleanup, the first launch case retains five SQLite
- descriptors and two connection-opener goroutines. After cleanup, six affected
- test scopes repeated three times return both counts to zero after every scope.
- Cleanup is registered before fallible browser operations. This bounded fix does
- not establish full-suite resource bounds; see `local/fixture-cleanup-focused/`.
- The wider ownership audit now routes all 78 direct test constructors through
- registered cleanup. Lazy failure paths and world/chat session draining share
- that lifecycle. Nested reload and live-nano
- regressions reproduce retained connections and late logout writes respectively.
- Focused lifecycle/race checks and a short two-character WASM bank/page/cold
- check pass, returning handles/openers to zero. The first full run exposed
- synthetic closed queues mistaken for live writers and independent table rows
- retaining databases on their parent scope. Cleanup now recognizes initialized
- writer completion channels, and twenty independent tables have subtest scopes.
- The 13-row briefcase probe peaks at one opener, returning to zero. The
- instrumented full retry is running. Evidence: `local/fixture-database-audit/`.
+- [x] [P1] Close fixture SQLite handles after every test and table case, including
+ failure paths. Constructor and lazy owners register captured database cleanup;
+ real world/chat sessions drain before close, synthetic closed queues stay
+ excluded, and twenty independent tables have per-case scopes. Nested reload
+ and live-nano regressions reproduce the original retained handles/late writes.
+ The complete instrumented run at `9eeddba8` passes all 1,855 server roots:
+ 17,902 passes plus 43 opt-in skips in 2,547.189s. Gamedata passes 29 roots/174
+ results. All started cases settle, with no missing roots or late logout writes.
+ Across 1,271 parent-process samples, SQLite handles/openers start and end at
+ zero; sampled peaks are 9/4. Total goroutines peak at ten and return to one.
+ Crash-recovery workers do not overwrite the parent's report. Separate controlled WASM
+ bank/corpse checks cover native operations, page replay and cold loading;
+ this full command does not run the skipped browser opt-ins. Later bank fixes
+ have independent passing Go/native/race/vet checks and are not in that binary.
+ Terminal evidence: `local/fixture-database-audit/full-verified-report.json` and
+ `full-verified*.jsonl`. Original failures and follow-ups remain under
+ `local/todo-progression-play/`, `local/fixture-cleanup-focused/` and
+ `local/fixture-database-audit/`.
- [x] [P1] Repair malformed synthetic weapon OnWear descriptors in combat
arithmetic fixtures. The original weighted-rating and zero-requirement tests
measure fists after complete-wear admission rejects their incomplete modifier.