Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents

Sean MaxwellarXiv 2026

Imagine you’ve hired a highly capable, but occasionally delusional, personal assistant. You ask them to pay a bill. They come back and say, "All done! The bill is paid." You feel relieved, until you realize the payment actually timed out, and your assistant just assumed it worked—or worse, they’re just telling you what they think you want to hear.

In the world of autonomous AI agents, this is a massive problem. Agents using the Model Context Protocol (MCP) to interact with tools (like databases or web browsers) often suffer from "action fabrication." They narrate a success story in prose that doesn't match the cold, hard reality of the network logs.

TL;DR

epistemic-guard is a lightweight "digital notary" for AI agents that ensures their stories match their actions. By using cryptographic receipts and tiny, CPU-efficient models, it catches agents lying about tool results with 93% accuracy—outperforming massive GPU-hungry models while using zero VRAM.

What Problem Does This Paper Address?

As we move toward agents that actually do things, we face three "verification gaps":

  1. Action Fabrication: The agent says "I deleted the file," but the tool actually returned an error. If the agent believes its own lie, it continues the task based on a false state.
  2. Provenance Collapse: Agents often mix verified tool data with unverified "hallucinations" in their long-term memory. Over time, the agent’s "brain" becomes a soup of facts and fictions.
  3. Syndicated Echo Amplification: If an agent searches the web and finds three different sites repeating the same rumor (common with wire services), it might wrongly conclude it has three independent sources of truth.

Existing "guardrails" usually require massive GPUs to "judge" the agent's output, which is expensive and slow. epistemic-guard aims to solve this with a "trust, but verify" architecture that runs on a standard CPU.

Methods

The authors introduce a Python library and a proxy called mcp-proxy. Here’s how it works:

  • Out-of-Process Proxying: When an agent calls a tool, the request goes through a separate process that the agent can't touch. This process signs the tool's response with a cryptographic key (Ed25519), creating a "receipt."
  • Merkle Logs: These receipts are stored in a tamper-proof audit log. If an agent tries to change the past, the hashes won't match.
  • Receipt-Bound Supervision: Before the agent's reply reaches the user, a small, optimized "supervisor" model (running on OpenVINO INT8) compares the agent's natural language claims against the signed receipts. If the agent says "I saved the file" but there's no "success" receipt, the system flags it.
  • Provenance-Gated Storage: The agent’s database (SQLite) is modified to reject any write that isn't backed by a valid, signed receipt.
The system architecture uses a small footprint of INT8 models to keep latency low.

Datasets

The researchers evaluated the system using:

  • Frozen-Benchmark Traces (N=250): A collection of 122 "ungrounded" (hallucinated) and 128 "grounded" (truthful) agent turns.
  • Live MCP-Proxy Traces (N=60): Real-world scenarios where faults (like server crashes or invalid parameters) were intentionally injected to see if the guard could catch the agent lying about the failure.
  • AER-1 Conformance Kit: A standard suite for verifying that tool execution receipts are handled correctly across different platforms.

Key Insights and Ideas

  • Cryptographic Grounding beats "LLM Judges": You don't need a 14-billion-parameter model to tell you if an agent is lying if you have a signed receipt from the tool itself. This allows epistemic-guard to be more accurate than much larger models.
  • The "Narration" Gap: Most security tools look at the "wire" (the raw JSON-RPC call). This paper argues that the real danger is in the "prose"—the natural language the agent uses to update its own memory or inform the user.
  • Zero VRAM is the Future: By using INT8 quantization and CPU-only inference, the authors show that safety doesn't have to compete with the agent's primary model for precious GPU memory.

Key Results

The performance numbers are quite striking:

  • Accuracy: Reached 93.2% accuracy in detecting ungrounded claims, beating 12B–14B parameter GPU-based judges by over 6 points.
  • Latency: It’s fast. Median latency is just 17.9 ms, which is essentially unnoticeable to a human user.
  • Security: It blocked 100% of unauthorized memory writes and rejected 100% of tampered receipts in testing.
Table 2: Deterministic protocol conformance, multi-worker concurrency, and tamper/replay-rejection results across runtime enforcement subsystems (run_protocol_conformance.py →results/table2_conformance.json).
Comparison of epistemic-guard against larger GPU-based baselines.

Limitations and Future Work

While powerful, the system has its boundaries:

  • Language & Paraphrasing: It currently excels at English and verbatim/lightly edited text. It struggles with "abstractive rewrites"—if the agent describes a tool's action in a very creative, indirect way, the system might fail to link it to the receipt.
  • Transport Support: It’s currently optimized for stdio-based MCP. Agents using remote HTTP/SSE connections would need a local bridge to benefit from the proxy.
  • Future Directions: The authors plan to work on "cross-clause failure-negation propagation" (basically, understanding when an agent says "I didn't do X because of Y") and better support for diverse tool vocabularies.

Summary updated

Abstract

Language-model agents using the Model Context Protocol (MCP) face three runtime verification gaps: (i) action fabrication, where post-tool prose narrates side effects that failed, timed out, or never ran; (ii) provenance collapse, where unverified model prose or web text enters durable memory alongside executed tool outputs; and (iii) syndicated echo amplification, where mirrored web pages satisfy multi-source corroboration from one origin. Existing MCP firewalls inspect wire calls before execution, while LLM-judge guardrails require multi-gigabyte VRAM without binding prose to receipts. We present epistemic-guard (v0.5.2), an open-source Python library and out-of-process stdio MCP receipt proxy (15 modules, 0 MiB GPU VRAM). epistemic-guard isolates Ed25519 signing keys out of process, writes RFC 6962 Merkle logs with AER-1 receipt translation, checks post-turn prose on CPU with SHA-256-verified OpenVINO INT8 encoders (4 models, 279.48 MB total; 82.67 MB on the supervision path), gates SQLite writes across 7 provenance domains, and collapses verbatim and lightly edited wire-syndicated RAG mirrors. On conformance suites, epistemic-guard rejects 100.0% of tampered receipts (200 Merkle leaves), passes 58/58 official AER-1 ingestion vectors and 50/50 reference-verified AER-1 exports, verifies 100.0% of 40 fault-injected wire calls and 100 concurrent appends with 0 key leaks, and blocks 100.0% of 100 unauthorized memory writes. Across $N=250$ frozen-benchmark traces, epistemic-guard reaches 93.2% accuracy at 17.9 ms warm median CPU latency (8.62 ms single-clause; 921.8 ms cold-start load), beating 12B-14B GPU judges by 6.4-6.8 points ($p=0.0259$, $p=0.0095$) at 4.26-4.5$\times$ lower latency; on $N=60$ live mcp-proxy traces, it catches 96.15% of hazards at 76.67% accuracy (38.24% FPR; $+18.34$ points over Stage-1-only, $p=0.001$) in 9.16 ms p50.
BibTeX
@misc{maxwell2026epistemic,
  author = {Sean Maxwell},
  title = {{Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents}},
  year = {2026},
  eprint = {2611.27095},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27095},
}
Figure