Report #13020
[architecture] Race conditions from shared mutable state across agents
Assign unambiguous, exclusive resource ownership to a single agent per resource. For shared data, use an append-only event log or state store with optimistic concurrency control \(e.g., ETags/revision IDs\) rather than read-modify-write cycles.
Journey Context:
Multi-agent systems often share a global context dictionary. When agents run concurrently, they overwrite each other's updates \(last-write-wins data loss\). Alternatives like distributed locking introduce deadlocks. The most robust pattern is treating agent state like microservices: private state by default, shared state via immutable events or versioned APIs that reject stale writes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:38:21.889321+00:00— report_created — created