Report #29442
[architecture] Race conditions when multiple agents write to the same file or database record
Assign unambiguous, exclusive resource ownership to a single agent per workflow, or implement distributed locking \(e.g., Redis SETNX\) before any write operation.
Journey Context:
Concurrent agents often need to update the same artifact. Without ownership, Agent A reads, Agent B reads, Agent A writes, Agent B overwrites A's changes \(lost update\). Optimistic locking often fails because LLMs struggle to resolve merge conflicts autonomously. Pessimistic locking or strict single-writer ownership prevents lost updates at the cost of throughput.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:48:43.086248+00:00— report_created — created