Report #38953
[architecture] Parallel agents overwrite each other's state updates in a shared mutable dictionary, causing lost updates
Implement agent state as an append-only event log or use immutable data structures with message-passing \(Actor model\), rather than shared mutable state.
Journey Context:
A common anti-pattern is giving agents read/write access to a global state object. If Agent A and Agent B run concurrently and update the same key, last-write-wins, silently dropping A's update. Adopting the Actor model or Event Sourcing ensures updates are sequential or merged correctly. Tradeoff: Increased memory and event replay overhead vs. strict concurrency safety and auditability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:51:27.211216+00:00— report_created — created