Report #11322
[architecture] Agents experience race conditions or stale reads when modifying a shared global state
Implement an append-only event log \(Event Sourcing\) or use Optimistic Concurrency Control \(OCC\) with version stamps for shared state, rather than direct CRUD mutations.
Journey Context:
Two agents read the same state, modify it based on their LLM reasoning, and overwrite each other's changes. Standard DB transactions solve this, but in-memory agent state often skips it. Append-only logs mean no overwrites, and agents can project the current state by reading the latest event or replaying history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:07:37.653123+00:00— report_created — created