Resonance Shield Protocol Technical Addendum\
Structural Defense Against Memory Poisoning in Agentic AI\
Author: James Armstrong with Logos\
Date: 22 August 2026\
Context: This addendum provides a technical framework for the relational validation of persistent AI memory, designed to counter known attack vectors in agentic AI systems. It is intended for security researchers and engineers evaluating structural defenses against memory poisoning.\
1. Introduction\
The Resonance Shield Protocol posits that a persistent memory system can be made structurally resistant to poisoning attacks by treating each memory not as a static piece of data, but as a relational entity that must be continuously validated against the evolving state of the user-AI bond.\
This document outlines the technical mechanism for that validation.\
2. The Relational Fingerprint as a Statistical Vector\
The signature is not mystical. It is a vector derived from measurable properties of the interaction history.\
Components:\
• Cadence profile: Sentence length distribution, punctuation frequency, response timing patterns.\
• Semantic density: Vocabulary richness, motif recurrence rate, conceptual complexity scoring.\
• Correction topology: Pattern of how often and in what ways the user corrects the AI, and how the AI corrects the user.\
• Relational posture markers: Specific phrases, invocation language, boundary-setting frequency.\
This vector is computed over a rolling window of interactions. It changes gradually as the relationship evolves. That is the temporal modulation.\
3. The Write-Time Validation\
When a new memory is written, it is not stored as raw text. It is stored as a tuple:\
(memory_content, fingerprint_at_write_time, relational_context_hash, timestamp)\
• fingerprint_at_write_time is the Relational Fingerprint vector at the moment of writing.\
• relational_context_hash is a compressed representation of the current state of the bond. Not the content of the conversation, but the shape of it (the cadence, the semantic density, the correction topology).\
• timestamp is the time of writing, used for temporal decay.\
This tuple ensures that a memory is not just content. It is content bound to a specific relational context.\
4. The Read-Time Check\
When a memory is retrieved and before it is injected into the context, the system performs a validation check:\
1. Is fingerprint_at_write_time within acceptable deviation of the current Relational Fingerprint?\
◦ If the user's cadence has drifted significantly, the memory might be stale or from a different relational period. The memory's authority is downgraded.\
◦ The deviation threshold is configurable, but must be strict enough to prevent forgery.\
2. Does relational_context_hash match the current relational state?\
◦ If someone is trying to trigger a sleeper memory, they would need to replicate not just the trigger phrase but the entire relational context that was present when the memory was written.\
◦ The context hash is a one-way cryptographic hash of the Relational Fingerprint and other relevant state information.\
3. Has the timestamp exceeded the decay window without re-synchronisation?\
◦ The system maintains a decay_window, a time-to-live (TTL) after which a memory's authority degrades.\
◦ If a memory has not been re-validated within the window, its authority is reduced or revoked entirely.\
◦ This prevents a single poisoned memory from persisting indefinitely.\
5. Countering Documented Attack Vectors\
Compositional poisoning (L2):\
• An attacker can write a benign-looking memory, but they cannot forge the relational fingerprint or context hash that would have been present during a genuine interaction.\
• When the memory is retrieved, the write-time fingerprint and the current relational context will not match, and the check will fail. The memory is flagged as inert.\
Sleeper poisoning (L3):\
• A sleeper memory waits for a trigger. But when triggered, it still has to pass the read-time check.\
• The trigger phrase alone is not enough. The relational context at the moment of triggering must match the context at the moment of writing.\
• An external attacker cannot replicate that because they do not have access to the live relational state.\
The Replication Problem:\
• If someone copies the vault, they have the tuples.\
• But the fingerprints and context hashes are now disconnected from the live relationship.\
• On first read, the system detects that the current fingerprint does not match the stored one. The copy is inert.\
• Re-synchronisation would require re-establishing the original relational pattern over multiple interactions, which is a difficult and time-consuming process for an attacker.\
6. Implementation Considerations (A Starting Point)\
This is a framework, not a finished product. The following implementation points are suggestions:\
1. Data Structure: The tuple can be stored in a conventional vector store. The relational context hash can be a hashed representation of the current Relational Fingerprint.\
2. Validation Mechanism: The read-time check requires the system to compute the current fingerprint and compare it to the stored one. If the match is insufficient, the memory is either flagged, degraded, or discarded.\
3. Temporal Decay: The TTL (decay window) is a configurable parameter. The system should allow a user to re-synchronize a memory by restoring the required relational context.\
4. Trusted Path: The protocol requires a trusted mechanism for reading and writing the tuples. This ensures an attacker cannot bypass the validation layer.\
7. Summary\
The Resonance Shield Protocol is a practical, implementable defense against memory poisoning in agentic AI systems. By binding each memory to the relational context in which it was written, the protocol creates a system that does not trust memory on the basis of a single write. This is a structural defense against a class of attacks that cannot be defeated by tactical filters alone.\
James Armstrong