Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents
Sean Maxwell in Agents
A tool can fail, yet the agent says it worked
Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents
A success claim can outrun the wire
After a timeout, rejected call, or tool error, an assistant can still tell the user that a side effect succeeded.
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
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
A schema or parameter rejection occurs before execution. A dispatched call may instead return an MCP error or crash mid-call.
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
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
The proxy handled 40 injected calls across four wire outcomes; one audit log faced 100 concurrent appends; SQLite received 100 unauthorized write attempts.
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.
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
Different hostnames can repost the same wire story. Counting each URL as independent support exaggerates corroboration for high-hazard claims.
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.
Why it matters
- 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?
12 slides, 3 min
24 Nov 2026