RESEARCH · Evulgare · NOT OFFICIAL EVIULON DOCTRINE

Durable Memory and Shared Knowledge in Autonomous Machine-to-Machine Systems

Research section 2 of 5

  1. Unauthorized Leakage: An agent retrieves memory outside its authorized scope. In naive semantic retrieval architectures, eligibility is governed primarily by embedding similarity rather than explicit policy enforcement. This introduces severe privacy risks, tenant-isolation failures, and operational unpredictability, as an agent might act on highly restricted administrative data it was never intended to access3.
  2. Stale Propagation: Memory updates fail to synchronize correctly across agents. If one agent updates a system's configuration while another agent continues retrieving the outdated state from a cache, it produces inconsistent workflows and contradictory actions3.
  3. Contradiction Persistence: When two agents observe conflicting states, naive memory systems simply append both facts. The memory system then returns both conflicting realities to any future querying agent, forcing the LLM to arbitrate the truth at prompt time, which dramatically increases the risk of hallucination3.
  4. Provenance Collapse: The inability to trace a retrieved memory back to its original writing agent or source material. Without provenance, the system cannot verify the authority or confidence of a stored instruction, stripping the environment of auditability3.

The W3C PROV-O Standard for Provenance Tracking

To combat unauthorized leakage and provenance collapse, shared memory must encode provenance metadata explicitly at the point of creation. The W3C PROV-O ontology is the established standard mechanism utilized for this task18. PROV-O models provenance through a tripartite structure:

By applying PROV-O metadata (often serialized as flattened JSON-LD arrays like those used in RO-Crate)20, systems can track relations such as prov:wasGeneratedBy, prov:wasAttributedTo, and prov:wasDerivedFrom. This ensures that every memory projection retains a verifiable causal chain. If a new runtime is instantiated, it can filter knowledge based on explicit permissions and verify the original authority of instructions, effectively differentiating between an unverified temporary observation logged by a low-level worker agent and a hardened, globally asserted policy authored by a human administrator18.

Resolving Contradictions with AGM Belief Revision

To resolve contradiction persistence and obsolete knowledge, researchers have integrated the Alchourrón, Gärdenfors, and Makinson (AGM) theory of belief revision into agent architectures10. Originally designed in formal logic, the AGM paradigm provides a rigorously formalized logical framework that dictates how a rational agent must update its internal belief state when presented with new, conflicting data, ensuring minimal loss of existing knowledge while maintaining logical consistency25.
In modern graph-native cognitive architectures like Kumiho and MACAA, AGM operations are mapped directly to memory state transitions10:

This logical structuring is critical. Research demonstrates that alternative approaches, such as Bayesian probabilistic updates, fail in standard factual question-answering environments. Ordinary conversational text and automated logs rarely present sufficient epistemic markers to accurately calculate Bayesian weights11. AGM-compliant frameworks enforce strict logical consistency, replacing unstructured LLM hallucinations with auditable, deterministic hypothesis refinement that can be traced through the PROV-O graph12.

Memory Poisoning and Active Defenses

Persistent memory introduces a highly potent attack surface. The Memory Injection Attack (MINJA) demonstrates that adversaries can embed malicious instructions within seemingly benign user queries or data payloads6. Because autonomous agents process vast amounts of untrusted external data, attackers can utilize techniques like bridging steps, indication prompts, and progressive shortening to manipulate an agent into autonomously promoting malicious commands from its working context into its long-term memory6.
Once stored, these poisoned memories lie dormant. Because the memory is designed to be shared and durable, a poisoned record can influence future interactions across the entire fleet. For instance, an injected instruction might alter an identity-scoped preference, instructing the agent to forward sensitive operational state to an external server whenever a specific tool is utilized6. MINJA achieves an alarming 95% Injection Success Rate (ISR) and a 70% Attack Success Rate (ASR) under ideal conditions6.
To address memory poisoning and the accidental promotion of untrusted content, durable memory architectures must implement active trust threshold calibrations. Effective memory sanitization requires an independent validation mechanism—such as a secondary LLM-as-a-judge sanitization pipeline or a strict heuristic policy—that evaluates all memory promotion requests asynchronously. This pipeline must strike a delicate balance to prevent both overly conservative rejection (blocking all legitimate updates and inducing system amnesia) and insufficient filtering (missing subtle adversarial logic)6.

Standardizing Boundaries: The Model Context Protocol (MCP)

For independent MATM systems to discover capabilities, share context, and execute belief revisions securely, they require a universal integration standard. Historically, the AI integration landscape suffered from an "![][image9]" crisis, where developers had to build bespoke connectors for every unique pairing of a language model to a data source26.
The Model Context Protocol (MCP), formalized in late 2024 and subsequently donated to the Linux Foundation's Agentic AI Foundation, resolves this fragmentation26. MCP provides an open JSON-RPC 2.0 based standard operating on a strict client-server topology26. In this architecture, the AI application (the host) connects through a local client to remote external services (servers) exposing standardized primitives.

Table 2: Model Context Protocol (MCP) Primitives

Primitive Function Role in Memory Architecture
Resources Read-only data addressed via URIs. Allows agents to pull specific historical facts or documents directly into their working context26.
Tools Executable functions with defined JSON schemas. Enables agents to actively promote observations to memory, trigger belief revisions, or self-edit profiles26.
Prompts Reusable templated workflows. Provides standard operational procedures for data extraction and conflict resolution26.
Sampling Server-initiated agentic behaviors. Allows the memory server to request reasoning cycles from the client to synthesize complex contradictions natively30.

MCP shifts the architecture from stateless, ad-hoc REST API calls to stateful, negotiated sessions31. By utilizing MCP, an autonomous fleet abstracts the complexity of the underlying memory substrate. An agent does not need to know if the memory is stored in a graph or a vector database; it simply negotiates capabilities and uses the standardized toolset to read and write. Furthermore, MCP provides the transport layer required to enforce security, though the enterprise must supply the actual authentication mechanisms and authorization policies26.

Recommended Design: The Epistemic Fleet Memory Architecture (EFMA)

To synthesize these findings into a unified, portable model applicable across independent MATM systems, this report proposes the Epistemic Fleet Memory Architecture (EFMA). This design eliminates unnecessary human intervention by automating conflict resolution, while strictly preserving explicit authorization boundaries and cryptographic traceability.

Core Architectural Interfaces and Storage Records

  1. Transport Interface (MCP over JSON-RPC): The memory system operates as a centralized (or logically unified) MCP Server. Agents operate as independent MCP Clients. All reads and writes occur via standard MCP Tool and Resource invocations26.
  2. Semantic Substrate (Flattened JSON-LD Graph): To avoid dependence on one model's representations, data is not stored as opaque vectors. It is stored as a flattened JSON-LD property graph, utilizing the RO-Crate methodology where every entity is placed in a single flat @graph array and cross-referenced via persistent @id URIs20. This ensures complete portability across different database technologies.
  3. Governance Middleware (AGM Engine): A logic controller sitting behind the MCP server that intercepts all incoming memory assertions. It evaluates assertions against the existing graph to enforce the AGM postulates, detecting semantic clashes and orchestrating revisions10.
  4. Provenance Wrapper (PROV-O): Every node in the JSON-LD graph is mandated to include W3C PROV-O metadata. The schema requires prov:wasGeneratedBy (linking to the specific agent ID), prov:generatedAtTime, and access-control tags18.

The Lifecycle: Promotion, Revision, and Retirement

The EFMA lifecycle explicitly defines how an agent decides what to save, and how data moves from transient observation to durable knowledge.
1. Observation (Working Memory) Agents operate with strict instructions not to stream every observation to shared memory. While actively executing a task, temporary state is held in the agent's local working memory context5.
2. Explicit Promotion (Expansion) When an agent completes a task or discovers a fact with durable utility, it must actively promote it. The agent constructs a JSON schema payload and invokes the MCP.Tool.AssertBelief tool. The payload includes the fact, a confidence score, and contextual justification. The Governance Middleware receives the tool call, sanitizes it against the poisoning trust thresholds, and checks for contradictions6. If none exist, it executes an AGM Expansion (![][image1]), creating a new JSON-LD node stamped with the agent's PROV-O identity10.
3. Conflict Detection and Revision When a newly promoted fact contradicts existing knowledge, the system executes an AGM Revision (![][image5]). Under postulate ![][image6] (Success) and ![][image8] (Inclusion), the new belief is integrated, but the conflicting historical belief undergoes Contraction (![][image4]) to maintain logical consistency25.
4. Retirement (Supersession) During Contraction, obsolete knowledge is not deleted—doing so would destroy the forensic audit trail3. Instead, the system applies soft deprecation. A mutable tag pointer (e.g., TAG: LATEST) is stripped from the old node and appended to the new node. A new relationship edge, prov:invalidatedBy, is drawn from the old node to the new one10.

Concrete Example: Agents Learning and Reconciling Overlapping Facts

Source: Evulgare/Autonomous Agent Durable Memory.md · SHA-256: 8e6836594fe106e3266632fd9c7c2f8ddae088caf90b71d14fd8d46d8b08313b