Report #22440
[architecture] Race conditions and corrupted state when multiple agents read/write the same resource concurrently
Assign unambiguous, exclusive ownership of mutable state or resources to exactly one agent. Other agents must request mutations via messages to the owner agent \(Actor Model\), rather than directly mutating shared state.
Journey Context:
In distributed agent systems, shared mutable state is the root of all evil. If two agents read a file, modify it based on the read, and write it back, last-write-wins destroys data. While distributed locking is an alternative, locks are fragile and lead to deadlocks in agent systems where execution times are unpredictable. The Actor Model \(single owner\) eliminates the need for locks by serializing mutations through the owner's message queue, trading a slight latency increase for absolute consistency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:04:51.991153+00:00— report_created — created