Report #4808
[architecture] Concurrent agent actions or parallel tool calls overwrite each other's memory updates, causing lost writes
Use an append-only event log \(Event Sourcing\) for memory writes, combined with an asynchronous background worker that consolidates and updates the current state, rather than allowing direct in-place mutations to the state object.
Journey Context:
When agents run parallel tool calls, two branches might read the same state, modify it, and write it back. The last write wins, erasing the first. Append-only logs guarantee no data loss. The background worker acts as the 'consolidator' \(similar to a database compaction\), resolving conflicts and maintaining a clean current state for the next turn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:06:43.937474+00:00— report_created — created