From a5889364ccfcc3548773c8f0e9d54f7447af4b63 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 1 Mar 2026 20:20:43 -0600 Subject: [PATCH] relate: d75e2afd --CAUSES--> 1b71b163 --- ...CAUSES--fix-sqlx-in-memory-sqlite-pool-090ec7.md | 13 +++++++++++++ ...-sqlite-pool-requires-max-connections1-1b71b1.md | 7 ++++++- ...ify-agents-with-isolated-worktrees-for-d75e2a.md | 7 ++++++- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 graph/edges/pattern-parallel-simplify-agen--CAUSES--fix-sqlx-in-memory-sqlite-pool-090ec7.md diff --git a/graph/edges/pattern-parallel-simplify-agen--CAUSES--fix-sqlx-in-memory-sqlite-pool-090ec7.md b/graph/edges/pattern-parallel-simplify-agen--CAUSES--fix-sqlx-in-memory-sqlite-pool-090ec7.md new file mode 100644 index 00000000000..05e31cd2f14 --- /dev/null +++ b/graph/edges/pattern-parallel-simplify-agen--CAUSES--fix-sqlx-in-memory-sqlite-pool-090ec7.md @@ -0,0 +1,13 @@ +--- +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. diff --git a/graph/fixes/fix-sqlx-in-memory-sqlite-pool-requires-max-connections1-1b71b1.md b/graph/fixes/fix-sqlx-in-memory-sqlite-pool-requires-max-connections1-1b71b1.md index d5f994956f7..edf65cf907a 100644 --- a/graph/fixes/fix-sqlx-in-memory-sqlite-pool-requires-max-connections1-1b71b1.md +++ b/graph/fixes/fix-sqlx-in-memory-sqlite-pool-requires-max-connections1-1b71b1.md @@ -6,7 +6,7 @@ tags: [sba-scouting, rust, sqlx, sqlite, testing, fix, in-memory] importance: 0.8 confidence: 0.8 created: "2026-03-02T02:08:46.895029+00:00" -updated: "2026-03-02T02:09:32.246976+00:00" +updated: "2026-03-02T02:20:43.812285+00:00" relations: - target: e5ec55be-ced4-4c30-8390-940b45dc2ed5 type: RELATED_TO @@ -33,6 +33,11 @@ relations: direction: incoming strength: 0.8 edge_id: 7d49db13-70e0-46d9-8707-fc0ddfe2df85 + - target: d75e2afd-8348-4fe6-9ea1-731604505aa6 + type: CAUSES + direction: incoming + strength: 0.9 + edge_id: 090ec7e1-c8fc-40f5-8d60-4b2aef56bcbd --- # sqlx In-Memory SQLite Pool: max_connections Must Be 1 diff --git a/graph/workflows/pattern-parallel-simplify-agents-with-isolated-worktrees-for-d75e2a.md b/graph/workflows/pattern-parallel-simplify-agents-with-isolated-worktrees-for-d75e2a.md index cf32fa73cb3..23d783bf98f 100644 --- a/graph/workflows/pattern-parallel-simplify-agents-with-isolated-worktrees-for-d75e2a.md +++ b/graph/workflows/pattern-parallel-simplify-agents-with-isolated-worktrees-for-d75e2a.md @@ -6,7 +6,7 @@ tags: [sba-scouting, rust, claude-code, workflow, refactoring, parallel, worktre importance: 0.6 confidence: 0.8 created: "2026-03-02T02:08:58.862746+00:00" -updated: "2026-03-02T02:09:35.007795+00:00" +updated: "2026-03-02T02:20:43.812285+00:00" relations: - target: 9e502d2b-bf95-4161-8190-ba153b9961d0 type: RELATED_TO @@ -33,6 +33,11 @@ relations: direction: outgoing strength: 0.8 edge_id: ec429a7a-f8ec-452e-a8ab-0defc5d5ca9f + - target: 1b71b163-b56f-4226-9731-a76ef245e532 + type: CAUSES + direction: outgoing + strength: 0.9 + edge_id: 090ec7e1-c8fc-40f5-8d60-4b2aef56bcbd --- # Parallel /simplify with Isolated Worktree Agents