Report #91199
[architecture] Multiple agents writing to the same resource causes conflicts and data loss
Assign each shared resource \(file, database record, API object\) to exactly one owning agent. Other agents can read but must request writes through the owner via messages.
Journey Context:
When two agents both believe they can modify the same file, you get last-write-wins data loss, interleaved corruption, or silent overwrites. This is the distributed systems 'multiple writers' problem applied to LLM agents. The fix—single-writer ownership—is the same pattern used in actor models \(Akka, Erlang\) and message-passing architectures. The tradeoff: it serializes writes through the owner, creating a potential bottleneck. But in LLM agent systems, write throughput is rarely the bottleneck; correctness is. CrewAI's task model enforces this by assigning each task and its output artifacts to exactly one agent, making ownership unambiguous at the task-definition level rather than discovered at runtime.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:40:26.208991+00:00— report_created — created