Report #102097
[architecture] Two agents silently overwrite the same key in shared memory
Partition shared state by owner: each key is write-once-by-owner, read-many-by-others. Use a transaction log or vector clock for any key that genuinely requires multi-writer updates.
Journey Context:
Shared memory is the fastest way to let agents collaborate and the fastest way to lose data. Without ownership, race conditions and conflicting edits are guaranteed. The pattern is the same as in distributed systems: single-writer-per-key is the default; multi-writer is the exception that needs concurrency control. AutoGen's agent chat model surfaces this through turn-based conversation state, while LangGraph uses checkpointed state nodes. The design question is not 'how do we share?' but 'who owns each fact?'
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:57:57.562018+00:00— report_created — created