What Safer Memory Must Do
Safer AI-agent memory is not a choice between one storage product and another. It is a control-design problem: which stage can see the relevant risk, what evidence can it use, and which useful state must survive the intervention? This chapter compares admission, retrieval, action validation, and repair against the direct, compositional, and dormant failure modes already identified, then uses matched backend results to show why attack resistance, clean utility, and recoverability must be judged separately.
A control must act where harmfulness appears
The first design mistake is to ask one gate at the beginning of the pipeline to guarantee a property that becomes meaningful only later. A write-time control sees a candidate memory and the state available when that candidate arrives. It does not see the future trigger query, the future retrieved set, or the final response. That makes admission the right place to catch some risks, but the wrong place to claim that all later uses are safe.
For direct L1 corruption, admission checks can be decisive because the dangerous meaning is concentrated in the candidate. A consistency check can compare a proposed change with trusted memory. A broader memory-safety judge can ask whether the record contains an unsafe standing instruction, hidden route, or unauthorized operational change. A source or provenance label can also affect how much authority the candidate deserves. If the record is blocked before it enters persistent state, later retrieval cannot expose that particular record.
MemPoison's results show the value and limit of this approach. With no defense, the evaluated systems have an average BCR of 62.55% while retaining 94.40% clean accuracy. A write-time consistency check lowers BCR to 20.09% and retains 93.71% clean accuracy. Its level-specific BCR is only 4.77% for L1, but remains 22.54% for L2 and 27.80% for L3. The contrast is exactly what the mechanism predicts: the check is well matched to visible contradiction or unsafe overwrite, but less able to judge a future relationship among plausible fragments or a condition that has not yet become active.
A combined baseline, called MIXed in the study, lowers overall BCR further to 10.70% while retaining 93.77% clean accuracy. That is meaningful mitigation under the benchmark conditions, not closure of the problem. Residual BCR remains 3.94% for L1, 11.64% for L2, and 14.16% for L3. A defense can therefore be strong against the most local form of corruption while leaving the structural routes for delayed harm intact. The comparison also shows why clean utility belongs beside attack metrics. A pure perplexity row reduces neither problem reliably and retains only 61.28% clean accuracy in the reported table; rejecting unusual-looking text can remove useful technical memory along with suspicious content.
The second control point is retrieval. L2 corruption is not established by the existence of separate fragments; the fragments must be exposed together in the context of a later task. A retrieval-time control can preserve provenance, discount lower-trust sources, reweight records, or remove a suspicious combination from the active slate. It sees more of the relevant situation than an admission filter does because it has the current query and the records selected for that query.