A tool-use library checks claims against signed records
Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents · arXiv:2611.27095
In plain words
An assistant may say it completed an action even when a tool failed or never ran. Epistemic-guard is a Python library that records tool calls outside the assistant and checks its claims against those records. It also gates saved memories by signed provenance and filters copied web pages.
In a test with 60 live tool traces, its checker caught 25 of 26 labeled hazards, but also flagged 13 of 34 grounded cases. These results describe that test, not every tool-using agent.
The research
A tool's failure can be hidden by a confident reply, and an unsupported claim can persist in memory or appear corroborated by copied pages.
Epistemic-guard makes those mismatches checkable at the tool, reply and storage boundaries, so the reported results help clarify what such checks catch and where they still produce errors.
Epistemic-guard records tool outcomes outside an agent, then checks action claims and memory writes against signed records and provenance.
The frozen test checked whether replies claimed side effects unsupported by tool records; its score is the share of cases classified correctly against recorded labels. On 250 cases, epistemic-guard scored 93.2%, while a version without receipt matching scored 84.8%.
A separate live test found 25 of 26 labeled hazards among 60 MCP traces, but also flagged 13 of 34 grounded cases. The results support receipt matching in these cohorts while showing that some grounded replies were still misclassified.
The reply checks were evaluated on one frozen set and 60 live traces, with English replies on one workstation; labels were not checked in a multi-human study. The mirror filter also failed to collapse the tested moderate and heavy rewrites.
What the evidence shows
- Check claims against tool records
Epistemic-guard is an open-source Python runtime verification library for tool-using agents. Its out-of-process proxy records whether tool calls ran and succeeded, and its reply checker compares claims about side effects with valid records from the current turn.
The design addresses a specific gap: an assistant's description of an action can diverge from what the tool actually did.
- Receipt matching helps on frozen cases
On the frozen set, receipt matching improved the share of cases the checker classified correctly compared with detecting action claims alone. This supports a contribution from receipt matching in this cohort, but does not establish its effect on live traces.
- Live traces reveal both strengths and errors
On the live traces, adding receipt matching improved overall classification compared with detecting action claims alone, but the checker still flagged some grounded cases.
This shows both an improvement and remaining false alarms in these 60 traces labeled from wire state, not general live performance.
- Storage checks have their own boundary
A further conformance test checked a different part of the system: the SQLite gate blocked all 100 unauthorized write attempts in its local workload. That supports the specified storage check under those tested conditions, not a claim about all memory systems.
The web filter also has a clear coverage limit: it failed to collapse the tested moderate and heavy rewrites.
Deep
- Original paper authors
- Sean Maxwell
- Submitted to arXiv
- License
- CC BY 4.0