Report #92606
[architecture] Multiple agents read and write to the same shared mutable state, causing race conditions and lost updates
Assign unambiguous single-owner ownership for every mutable resource. Other agents access it only through the owner's API or message interface, never by direct mutation. If shared reads are needed, use an append-only event log.
Journey Context:
The instinct is to give all agents access to a shared 'world state' dict or database. This works in demos but breaks in production: Agent A reads state, Agent B writes to it concurrently, Agent A acts on stale data and corrupts downstream. This is the classic distributed systems shared-state problem. The fix is single-writer ownership—each piece of state has exactly one agent responsible, implementing the Actor model. Other agents send commands \(not mutations\) to the owner. Tradeoff: more message passing and slightly higher latency. But it eliminates an entire class of consistency bugs. If you must share read state, use an append-only event log \(event sourcing\) that all agents subscribe to, rather than shared mutable objects with locks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:01:48.680605+00:00— report_created — created