Report #12100
[architecture] Concurrent agent steps overwriting each other's memory writes, leading to lost updates
Implement append-only memory writes with vector DB upserts based on unique IDs, or use a centralized state manager for working memory rather than distributed writes.
Journey Context:
In multi-agent or parallel tool-execution architectures, two branches might try to update the agent's memory simultaneously. If memory is treated as a mutable state object, last-write-wins, causing silent data loss. Vector stores are naturally append-only, which helps, but updating a specific 'fact' requires careful ID-based upserting. For working memory \(the context window\), parallel mutation is impossible. The fix is to centralize working memory updates in a single sequential loop, while allowing parallel reads. The tradeoff is slightly slower state updates, but it guarantees consistency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:08:36.634988+00:00— report_created — created