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":
- 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.
- 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.
- 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.
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-guardto 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.
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