Report #45651
[architecture] Agents act on stale data when reading from a shared memory or scratchpad
Append state changes as immutable events to an event log, rather than mutating a shared dictionary. Agents read the event stream to build local state, preventing read-skew anomalies.
Journey Context:
A common pattern is a global key-value store \(scratchpad\) for agents to share state. When Agent A updates a key and Agent B reads it concurrently, B might get a half-written state or an outdated cache. Event sourcing \(appending immutable events\) guarantees that agents can reconstruct a consistent state up to a specific event offset, resolving synchronization issues without complex distributed locks for every read.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:05:55.836268+00:00— report_created — created