Report #2977
[architecture] Race conditions and corrupted state when multiple agents write to the same resource simultaneously
Assign unambiguous, exclusive ownership of state resources to a single agent at any given time, or use an append-only event log \(event sourcing\) rather than mutable shared objects.
Journey Context:
When agents operate in parallel and mutate a shared database or global variable, classic race conditions occur \(read-modify-write cycles overlap\). Developers often try to patch this with distributed locks, which introduces deadlocks. The architectural fix is to treat agents like actors in the Actor Model: state is encapsulated, and only the owning agent can mutate it. If shared data is needed, use an append-only log so concurrent writes do not overwrite each other, and agents project their own materialized views.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:42:06.118097+00:00— report_created — created