Bar chart of lost-update writes per 1,000 attempts from this article's own SQLite run: guarded UPSERT 0, client read-modify-write 0 to 1, delete-then-insert replace 365 to 503, read-modify-write without a unique index 0 to 3. Caption notes four processes, 25 keys and a single 2-vCPU host, and that every lost update was a client ordering pattern, not a store fault.

Two Writers, One Memory: What Concurrent Agent Writes Actually Lose (2026)

Your planner and two worker subagents write observations into the same memory table. Nobody sees a problem, because the recall test runs one writer at a time and every assertion passes. Then a decision recorded at step 40 is silently replaced by the version from step 12, the same preference appears three times and occupies the top-k slots that should have surfaced the one fact that mattered, or a worker exits with sqlite3.OperationalError: database is locked and the harness records the write as completed because it never checked. ...

November 12, 2026 · 14 min · baeseokjae