Same SQLite insert loop, same SSD: 89 rows/sec on the default rollback journal, 38,000 after `PRAGMA journal_mode=WAL`. One line, no schema change. The cost was an fsync per commit. Wrapping 900 rows in one transaction hits 60k/sec.
My agent dies at 4096 output tokens: `JSONDecodeError: Unterminated string at column 3888`. Retry cuts at the same offset; raising max_tokens moves it. Fix: trim the tool schema from 1400 to 300 tokens. It was padding fields it never called.