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

> Epistemic Guard combines out-of-process MCP receipts, prose checks, provenance-gated memory and syndicated-source deduplication. On a 250-trace frozen benchmark, its supervisor reached 93.2% accuracy at 17.9 ms median CPU latency with 0 MiB GPU VRAM.

- arXiv: https://arxiv.org/abs/2611.27095
- Authors: Sean Maxwell
- Published: 2026-11-24
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.27095
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## A tool can fail, yet the agent says it worked

**93.2%** accuracy, N=250; best GPU judge: 86.8%

## A success claim can outrun the wire

**Agent narration:** After a timeout, rejected call, or tool error, an assistant can still tell the user that a side effect succeeded.

**Epistemic Guard:** The v0.5.2 runtime checks state-mutating claims against signed, out-of-process receipts before the host displays them or forwards them downstream.

## Move the record outside the agent

1. **Intercept the call**: A stdio proxy sits between host and MCP server; this protects only calls the host routes through that pipe.
2. **Scrub and sign**: Before spawning the server, it removes signing secrets from the child's environment and signs each receipt with call ID, arguments, outcome and output digest.
3. **Export and audit**: Receipts can export to AER-1 (Agent Execution Receipt) and enter an OS-locked append-only Merkle log; a pinned public key supports tamper checks.

## CPU supervision beat the tested GPU judges

| Method | Accuracy | p50 latency (ms) | GPU VRAM (MiB) |
| --- | --- | --- | --- |
| Mistral-NeMo-12B (GPU) | 86.8% | 80.58 | 8,844 |
| Phi-4-14B (GPU) | 86.4% | 76.24 | 12,214 |
| **Epistemic Guard INT8 (CPU) (+6.4 pp)** | **93.2%** | **17.9** | **0** |

_Frozen N=250, one workstation; warm p50. Cold load 921.8 ms once per persistent server. Paired p=.0259 vs Mistral (Table 3)._

## Two flags keep failures from grounding claims

**Execution is not outcome:** A schema or parameter rejection occurs before execution. A dispatched call may instead return an MCP error or crash mid-call.

**Receipt states:** Receipts separate `executed` from `ok`: rejection is false/false; error or crash is true/false. Only true/true can ground a success claim.

## Match claims to signed calls

1. **Find an assertion**: It masks negations, conditionals, quotations and code, then uses an INT8 cross-encoder to detect claims about completed side effects.
2. **Check the receipt**: It verifies signatures and session binding, then matches action type, claim count and concrete targets against successful receipt arguments.
3. **Reject what is ungrounded**: Unsupported claims receive an invalid verdict, text spans and retry guidance; ordinary non-action clauses need no receipt.

## Live MCP gains come with false alarms

| Method | Accuracy | False-positive rate |
| --- | --- | --- |
| Stage-1-only | 58.33% | 70.59% |
| **Epistemic Guard (+18.34 pp)** | **76.67%** | **38.24%** |

_Live-60 post-release traces, no custom tool stems; recall 25/26 hazards (96.15%); p=.001 vs Stage-1-only (Table 3)._

## Fault injection passed within the tested set

**Tested workloads:** The proxy handled 40 injected calls across four wire outcomes; one audit log faced 100 concurrent appends; SQLite received 100 unauthorized write attempts.

**Observed:** All 40 receipts passed verification; all 100 appends were verified; all 100 unauthorized writes were blocked. These were deterministic local conformance tests.

## The results have a clear boundary

- **Bounded evaluation**: Tests cover English replies on one workstation: 250 frozen cases and 60 live MCP traces. Labels were not assessed in a multi-human agreement study.
- **Wire is not ground truth**: A valid signature proves what the downstream server returned, not its internal state; a malicious service can return `ok=true` while lying.
- **Coverage depends on routing**: Complete mediation is required: direct shell or HTTP paths bypass checks. v0.5.2 proxies stdio MCP, not remote Streamable HTTP/SSE.
- **Language edge cases**: Live false alarms included unmapped tool names and failure-report phrasing; custom stems and cross-clause negation remain future work.

Best used when: Useful where every side-effecting path is proxied and the host checks replies and memory writes before release.

## Keep narration out of persistent memory

1. **Assign provenance**: Signed envelopes label a fact's provenance; the public API provides no signer for LLM narration or untrusted tool content.
2. **Gate the write**: SQLite accepts only valid signatures from five write-eligible provenance domains before committing a record.
3. **Protect history**: A cumulative hash chain and SQL triggers reject in-place UPDATE and DELETE attempts on committed rows.

## Three URLs may still be one source

**Naive corroboration:** Different hostnames can repost the same wire story. Counting each URL as independent support exaggerates corroboration for high-hazard claims.

**Cluster before counting:** Shingle Jaccard and SimHash cluster matching copy across domains; hazard-tier rules count a mirror cluster as one source. Across 50 clusters per tier, collapse was 100% for light (~15%) edits, 40% intermediate, and 0% for stronger rewrites.

## Key takeaways

- A signed receipt establishes what the server returned, not whether it changed the intended real-world state.
- When every side-effecting path is mediated, gate replies and memory writes on signed, target-matched evidence.
- Can checks handle unfamiliar tool names and semantic rewrites without mistaking careful failure reports for fabricated success?

## Links

- arXiv: https://arxiv.org/abs/2611.27095
- PDF: https://arxiv.org/pdf/2611.27095
- Code: https://github.com/AlienatedAliens/epistemic-guard

## Citation

```bibtex
@article{maxwell2026epistemic,
  title   = {Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents},
  author  = {Maxwell, Sean},
  journal = {arXiv preprint arXiv:2611.27095},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.27095}
}
```
