claude-memory/graph/edges/pattern-parallel-simplify-agen--CAUSES--fix-sqlx-in-memory-sqlite-pool-090ec7.md
2026-03-01 20:20:43 -06:00

14 lines
816 B
Markdown

---
id: 090ec7e1-c8fc-40f5-8d60-4b2aef56bcbd
type: CAUSES
from_id: d75e2afd-8348-4fe6-9ea1-731604505aa6
from_title: "Pattern: Parallel /simplify agents with isolated worktrees for large refactors"
to_id: 1b71b163-b56f-4226-9731-a76ef245e532
to_title: "Fix: sqlx in-memory SQLite pool requires max_connections=1"
strength: 0.9
created: "2026-03-02T02:20:43.812285+00:00"
updated: "2026-03-02T02:20:43.812285+00:00"
---
The parallel /simplify sweep's schema.rs agent wrapped create_tables() in a transaction for atomicity. This broke all 5 integration tests because in-memory SQLite with max_connections>1 gives each connection its own database — the transaction committed on one connection, but test queries ran on another that had no tables. Discovered and fixed by limiting in-memory pools to max_connections=1.