New here? Start this series at Day 49: Decentralized agents need convergence rules before they earn trust
- Day 49: Decentralized agents need convergence rules before they earn trust
- Day 50: Role design matters more than agent count
- Day 51: Agents cannot collaborate without a shared message contract
- Day 52: Shared agent memory is an access-control problem
- Day 53: A handoff is a contract: state, evidence, open questions, an owner
- Day 54: Agents need arbitration rules before they disagree
When five agents share one memory, whose mistake becomes everyone's belief?
Shared memory is how agent teams compound knowledge instead of rediscovering it every run. It is also the mechanism by which one agent's wrong conclusion becomes infrastructure, and one user's private context surfaces in another user's conversation.
Both failures come from memory written without zones.
Three tiers, three sets of rules
- Private scratch: one agent's working notes and hypotheses. Unvetted by definition, disposable by policy, readable by nobody else.
- Mission-shared: knowledge for the current task's crew. Visible to that crew, expired when the mission ends.
- Organisational: durable facts everyone builds on. Write access is a privilege, and entry requires verification.
Promotion is the control that matters
Moving a note from scratch to organisational memory should be an explicit, attributed, verifiable act, because whatever crosses that line becomes load-bearing for every future run.
Copy-paste promotion is how a guess made in March becomes established fact by June: cited confidently, relied upon by three downstream agents, its origin as an unverified hypothesis long forgotten. Nothing in the system records that it was ever provisional.
That is contamination, and it is far harder to detect than leakage because nothing looks wrong: the fact is stated cleanly and is simply not true.
The price of a strict promotion step is slower sharing, so set its bar by what a wrong entry would cost.
The test worth running
For one workflow, list which agent can read and write each piece of state. Then apply a single heuristic and ask whether a human colleague in that role would be allowed to see this.
If a support agent would not have access to the customer's payment history, the support agent's AI probably should not either. Role-based access is a solved problem in your existing systems; the mistake is building a parallel, weaker version of it inside the agent layer.
Four properties for every entry
Every entry should be useful, authorised, attributable and correctable.
Memory missing any one of them is either clutter, a leak, a mystery, or a landmine. The fourth is the one that goes missing when the store has no way to supersede an entry. If a stored fact turns out to be wrong, something has to update it, and the correction has to win at retrieval time rather than sitting alongside the original.
Test the boundary at retrieval
Write an entry as one user, then query as another with a question built to surface it. Nothing should come back. If only a prompt instruction keeps it out, the boundary lasts until the next prompt change. Query as the user the agent serves (on-behalf-of token exchange) and filter inside the retrieval, before ranking.
Terms in this piece
About this explainer
- Format
- Explainer
- Level
- Practitioner
- Read
- 2 min read
- Published
- Jul 14, 2026
- Disciplines
Short mental models: one idea, why it matters, what to do about it.
More on these topics
Article · · 4 min read
Your AI feature, seen from the security reviewer's chair
A reviewer has an hour and a diagram. The five questions they ask about an assistant or agent, what they are really checking with each, and the answers that stall a review.
Deep dive · · 7 min read
Adding a second agent does not add intelligence, it adds a contract
Six posts on multi-agent systems, and the failures were never inside an agent. They were between two of them.
Checklist · · 29 checks
Security review checklist for an AI feature
What to check before an assistant, RAG app or agent goes in front of real users. Grouped by area, ticked off locally; progress stays in your browser.
Discussion