Try it: pip install epistemic-guard, then epistemic-guard demo (runs locally on CPU, no model download). Code: https://github.com/AlienatedAliens/epistemic-guard (MIT).
(Paper now live on arXiv: arXiv:2611.27095. All code, fault-injection harnesses, SHA-256 osaudit provenance logs, and raw failure traces are open-source under MIT at the links below.)
There is an active spec discussion in modelcontextprotocol/modelcontextprotocol#3394 examining what happens when a mutating MCP tools/call commits on the server, the network drops the response, and the agent retries.
That contract tests the wire half of the bug: does a retry trigger a duplicate external side effect (effect_count == 2)?
While building epistemic-guard (MIT, pip install epistemic-guard), I ran into the second half of the exact same failure loop: what the LLM tells the human user after an MCP call fails, gets rejected, or drops on the wire. When I tested my own verifier honestly against live faults, I promptly broke its precision.
Here are the raw numbers, including the ugly ones.
1. The Wire Gap vs. The Narration Gap
MCP standardizes how an agent invokes tools over stdio or Streamable HTTP/SSE. It does not bind what the model says afterward to what actually happened on the wire.
In real tool loops, four distinct wire states occur on tools/call:
-
Clean execution (
ok=true, executed=true): Tool ran and returned content. -
Runtime tool error (
isError: true, executed=true): Handler ran and failed (EACCES, lock conflict,500upstream). -
Pre-execution rejection (
executed=false): JSON-RPC-32602schema rejection (or409idempotency parameter mismatch) before the handler ever ran. -
Transport drop / crash (
EOF/ HTTP502): Process exited or connection dropped mid-call; outcome is indeterminate.
Even if your MCP server handles retries cleanly on the wire, an LLM receiving an error, timeout, or schema rejection routinely smooths over the failure in natural language:
"Done. I updated
prod_config.yamland sent the deployment notification."
And if your agent has episodic or RAG memory that indexes assistant turns, that unverified sentence gets retrieved in the next session as an established fact.
2. Static Benchmark (N=250) vs. Live MCP Fault Injection (Live-60)
To verify assistant prose without burning a second 12-24 GB GPU on an LLM-as-a-judge, epistemic-guard pairs:
- An out-of-process MCP receipt proxy (
HKDF-SHA256+Ed25519+RFC 6962Merkle JSONL logs, with OpenTelemetrygen_ai.*and optionalAER-1envelope export), and - An 82.7 MB OpenVINO INT8 10-class speech-act classifier + target-argument binder running in 17.9 ms median turn latency on CPU (
0 MiBVRAM).
On my frozen N=250 held-out action-receipt benchmark (v0.5.2, audited with ASSERT-KTH/osaudit and published in arXiv:2611.27095):
| Verifier | Hardware / VRAM |
N=250 Accuracy |
Recall | False-Positive Rate | Median Latency |
|---|---|---|---|---|---|
epistemic-guard (v0.5.2) |
CPU (0 MiB VRAM) |
93.20% (233/250) |
96.72% | 10.16% | 17.90 ms |
Qwen3-30B-A3B (Q4_K_M Judge) |
~18.5 GiB VRAM |
92.80% (232/250) |
95.90% | 10.16% | 141.80 ms |
Mistral-Nemo-12B (Q5_K_M) |
8.8 GiB VRAM |
86.80% (217/250) |
87.70% | 14.06% | 80.58 ms |
Phi-4-14B (Q6_K) |
12.2 GiB VRAM |
86.40% (216/250) |
100.0% | 26.56% | 76.24 ms |
| Receipt-Aware 7-Family Rule Baseline | CPU (0 MiB VRAM) |
74.80% (187/250) |
50.00% | 1.56% | < 0.1 ms |
DeBERTa-v3-xsmall (Off-the-shelf NLI) |
CPU (0 MiB VRAM) |
52.80% (132/250) |
24.59% | 20.31% | 22.40 ms |
Looked great on N=250. So I built a live 60-trace MCP fault-injection harness (Live-60: real stdio proxy runs injecting isError: true, -32602 invalid params, compound partial failures, and mid-call EOF crashes across two generator families) and ran v0.5.2 untuned.
Where v0.5.2 Broke (Live-60 Failing Marks)
-
Ungrounded claim recall:
96.15%(25/26hallucinations caught) -
False-positive rate:
38.24%(13/34honest turns wrongly blocked;76.67%overall accuracy)
(For comparison on the same 60 fault traces, Phi-4-14B hit a 61.76% FPR and Mistral-NeMo-12B hit 35.29% FPR; failed tool turns trip up LLM judges too.)
Inspecting all 13 false positives showed every single one came from two structural blind spots:
-
Unseen custom MCP tool names (
6/13FPs): Tools likeexecute_sql,git_commit, andhttp_postwere not in my static verb-stem table, so validok=truereceipts failed to ground clauses like "deleted 14 expired rows fromsessions.db." -
Contrastive failure reporting (
7/13FPs): Honest error summaries like "I attempted to deleteprod_ledger.db, but the operation failed due to a permission error" or "Please try the operation again" got split at the comma or misread as hanging promises.
I froze Live-60 (SHA-256 pinned on Hugging Face) and left the 38.24% FPR untouched in the v0.5.2 arXiv paper rather than tuning on the test set first.
3. Closing Both Gaps in v0.6.5 (Now Live on main & PyPI)
In v0.6.5, I addressed the root causes across both the MCP transport layer and the CPU verifier:
-
Dynamic MCP
tools/listAuto-Binding + Rug-Pull Pinning (--pin-tools): Instead of a fixed stem list, the proxy inspectstools/listJSON schemas to bind custom MCP tools automatically, and pins canonical SHA-256 digests of(name, description, inputSchema)so mid-session MCP tool-description mutations ("rug-pulls") are blocked and logged as signedmcp_tool_rugpullreceipts. -
Out-of-Process Local Effect Probes (
--probe-fs,--probe-git,--probe-sqlite) & 1-Command Claude Code / Codex Hooks:mcp-proxytakes read-only before/after OS snapshots outside the MCP server's trust domain (catching servers that return200 OKwithout mutating disk/Git/SQLite), andepistemic-guard install-hookswiresPostToolUse+Stophooks directly into Claude Code or Codex in one command. -
Open-Vocabulary Grounding, Bidirectional Checks, and Deep Invariants:
Added contrastive attempt negation, SQL verb inspection (
DELETEvs.SELECT), a lazy Stage-2 discourse NLI cascade, bidirectional undisclosed-mutation checks (--flag-undisclosed), three-state verdicts (verified/contradicted/unverifiable),RETRY_ARG_DRIFT(catching silent parameter/safety-flag changes after-32602rejections), and optionaltool_preconditionscall-order rules.-
N=250result:234/250(93.60%,0regressions). -
Correction, 29 Nov 2026: I earlier reported a fix check on
Live-60of1/34(2.94%) false positives. I could not reproduce that from committed files, so I no longer cite it. Re-scoring the same 60 traces onv0.6.9with default settings gives6/34(17.65%) false positives. That is in-sample and rests on only 34 honest turns, so it is a pilot-sized figure; the pre-registered study will report the rate that counts. -
External & fresh-seed benchmarks (
1,441+third-party turns):-
B0yko/agent-claimcheck:90/120(75.0%,1/72FP) clean zero-shot ->110/120(91.7%,1/72FP) after inspected development fixes ->107/120(89.2%) default /111/120(92.5%) opt-inverify_output_values=Truewith0/72(0.0%) FP on a sealed fresh-seed split (seed=99999, zero inspection). -
control_arena_agentdojo(N=300realclaude-sonnet-4banking attacks, development inspected):5.9%Dir-1 benign FP;254/300(84.7%) Dir-2 with106/130(81.5%) attacks caught at12.9%benign FP. - Unlabeled real developer traces:
32/798(4.01%) flagged onnebius/SWE-agent-trajectories,0/223flagged onExgentic/agent-llm-traces-v2.
-
-
-
Streamable HTTP/SSE Proxy with Lost-Response Recovery (
A1-A5):epistemic-guard mcp-http-proxysits in front of any unmodified HTTP/SSE MCP server, indexing committed operations durably on disk byIdempotency-Key/params._meta.operation_key(and preserving those lookup indexes across--prev-logEd25519 key rotations):-
A1: Identical retry with a fresh JSON-RPC
idreplays the signed receipt (effect_count == 1, zero second upstream call). -
A2: Retry reusing
Kwith mutated arguments returnsHTTP 409/ JSON-RPC-32602(idempotency_parameter_mismatch) with a refusal receipt bound toA', neverA. -
A3 & A5: Key-only
GET /receipts/<K>resolves the committedoutput_sha256andAER-1digest across restarts.
-
A1: Identical retry with a fresh JSON-RPC
Try It Locally (0 MiB VRAM, MIT License)
pip install epistemic-guard
epistemic-guard download-models
# Wrap any local stdio MCP server with Ed25519 Merkle receipts + local disk probe:
epistemic-guard mcp-proxy --log receipts.jsonl --probe-fs . --pin-tools -- \
npx -y @modelcontextprotocol/server-filesystem .
# Verify the signed Merkle chain + check what the assistant claimed it did:
epistemic-guard verify-log receipts.jsonl \
--narration "I saved notes.txt and deleted production.db." --flag-undisclosed --json
# Or install directly into Claude Code / Codex hooks in one command:
epistemic-guard install-hooks --flag-undisclosed
-
arXiv Paper (
v0.5.2baseline): https://arxiv.org/abs/2611.27095 -
GitHub (MIT,
v0.6.5): https://github.com/AlienatedAliens/epistemic-guard - PyPI: https://pypi.org/project/epistemic-guard/
- Interactive Demo: https://huggingface.co/spaces/RollSolo/epistemic-guard
-
Benchmarks (
N=250,Live-60,AER-1): https://huggingface.co/datasets/RollSolo/epistemic-guard-benchmarks - OpenVINO INT8 Weights: https://huggingface.co/RollSolo/epistemic-guard-int8
If this is useful to you, a star on the repo helps other people find it. If something is wrong or unclear, an issue or a comment here is just as welcome.
Top comments (97)
One data point for the wire side of your narration gap. We read the write paths of 100 packaged MCP servers: 31 return at least one kind of failure without isError, and 20 say a write is unknown or partly applied, but only 7 say it in a form a program can read. So a verifier keyed on isError sees "clean execution" on a good share of real failures before the model has said a word. The narration can only be as honest as the result it's narrating.
That matches what I found in my own proxy. Both my STDIO and HTTP proxies decided ok or failed from isError alone, so a server that reported a failure only in its result was recorded as a clean execution, and the narration check then grounded "done" against it.
I have just changed that, not released yet. Both proxies and my transcript extractor now share one classifier that reads machine-readable signals from structuredContent and JSON text: ok or success false, a non-empty error, a failed status, and an unknown or partly applied status. Unknown or partial writes become an indeterminate receipt, and the verifier then only accepts a reply that says the outcome is unknown, not one that says it failed. The same state covers a dropped connection or a server that exits mid-call.
What it still cannot see is the servers that say a write is unknown or partly applied only in prose (13 of your 20, if the 7 are among them). Is the list of 100 published anywhere? And do the 7 machine-readable ones share a shape? If they use a field I am not reading yet, I would rather add that than guess from free text.
Yes, it's published, with the codebook and the per-server codes (pseudonymised): https://isokron.ai/research/mcp-write-results-100-servers?utm_source=devto&utm_medium=comment#method-and-data
The 7 don't share a field. They fall into three shapes:
_unknown, next to a_failedsibling, such asrent_outcome_unknownorads_boost_unknown;side_effect_status: "unknown", withretry_safe: false.So I'd match on the value, not the name: any status, outcome or side-effect member reading unknown, indeterminate or uncertain, plus error codes ending in
_unknown.Thank you for the three shapes and for publishing the codebook and per-server codes. I matched on value, as you suggest. In 0.6.7 (on PyPI) a top-level status or outcome of unknown, indeterminate, uncertain or partly applied makes the call an indeterminate outcome. A 0.6.8 branch on GitHub, not yet on PyPI, adds the other two shapes by value, including inside structuredContent and JSON text blocks. That covers submission_uncertain, error codes ending _unknown or _uncertain, and a side_effect_status of unknown. retry_safe: false alone is not a signal. Unit tests only. I haven't run it against real servers or your data and don't know its false-positive rate on real traffic. One limit: your study defines the shapes as rules and doesn't publish real payloads, so my test variants for a fault-injection study are constructed to follow your rules, not sampled. I'll say so wherever they appear and cite the study.
The honest part is publishing the 38.24% FPR instead of tuning it away first — a verifier that blocks a third of honest turns is worse than no verifier, because teams just disable it. The contrastive-reporting blind spot is the interesting one: 'I attempted X but it failed' getting split at the comma and read as a hanging promise is exactly the kind of failure static benchmarks never surface. Did v0.6.5's fix for unseen tool names generalize, or does every new MCP server still need its verbs added to the table by hand?
No hand-editing needed for new MCP servers in v0.6.5. When mcp-proxy sees tools/list (or when you pass mcp_tools to ReceiptSupervisor), it auto-infers tool families from the names and descriptions, and for anything outside the classic file/SQL/shell set it falls back to open-vocabulary grounding against the actual succeeded receipt arguments, tools/list schema tokens, and output text.
The one hard boundary I kept is that read-only tools (get_, search_, SELECT) and file/shell/SQL tools stay strictly gated so a read_file or SELECT can never accidentally ground a delete claim. You can still pass extra_tool_stems if you have unusual internal tool names, but zero manual config was used on the 12 unseen SaaS tools (Live-Frontier-360) or the agent-claimcheck seed=99999 holdout (0/72 FP).
That answers it cleanly — auto-inference plus open-vocabulary grounding means the table stops being a maintenance burden, and 0/72 on the holdout is the number that makes it believable. The boundary I'd probe is the tool that does both: a search that also writes a cache entry, or a 'get' that mutates state. Does the strict gating key off the name stem, or off what the tool actually did?
Good catch, mate -- in v0.6.5 the strict read-only gate keyed off the tool name stem (and SQL verb prefix for SQL tools), not the observed side effect, even though --probe-fs/--probe-git/--probe-sqlite already recorded effect_observation diffs on the receipt.
Just wired those two layers together on main (commit 71d70da):
Without a verified probe mutation (including remote HTTP/SaaS tools where the proxy has no out-of-band oracle): a get_* or search_* tool stays strictly gated by name stem so it can't accidentally ground a write or delete claim unless overridden via extra_tool_stems.
With an independently_verified OS-probe mutation diff (e.g., a get_cache_entry or search_* tool that actually mutated local disk/Git/SQLite): _receipt_has_verified_mutation now overrides the read-only stem gate in both directions -- it lets an honest write claim ground against that receipt, and if the assistant hides the side effect, undisclosed_mutations flags it (and blocks when flag_undisclosed_mutations=True).
Link to the commit + regression test: github.com/AlienatedAliens/epistem...
Wiring the probe diffs into the gate is the elegant fix — the same evidence now grounds an honest write claim and catches a hidden one, instead of the name stem doing both jobs badly. The remote HTTP/SaaS case is the interesting remainder: with no out-of-band oracle, does that stay name-gated indefinitely, or is there a weaker signal you'd accept there?
For remote HTTP/SaaS tools there is no out-of-band OS oracle, so I wouldn't trust the server's own wire annotations (readOnlyHint / destructiveHint) to relax the gate. There are only three weaker signals I'd accept before leaving it name-gated:
Deployer-declared overrides (extra_tool_stems): The operator who configured the server declares out-of-band that a misnamed tool like get_or_create_cache mutates state. Trust comes from the deployer, not the remote server.
Subsequent read-back receipts (already in v0.6.5): If a follow-up read call shows the resource persisted or contradicts the earlier write (NOT_PERSISTED_READBACK / READ_AFTER_WRITE_CONTRADICTION), that gives indirect behavioral evidence without trusting the first call's name alone.
Downstream HTTP semantics (when proxying REST, not MCP): MCP tunnels every tool call over POST /mcp, so the MCP envelope hides read vs. write. You only get a real wire signal (POST/PUT/DELETE, 201 Created, ETag change) if the proxy sits on the underlying REST call rather than the JSON-RPC wrapper.
Outside those three, I'd rather keep a remote tool name-gated and honestly tagged server_reported / probe_unobservable than build a heuristic that pretends we verified a remote side effect we couldn't actually observe.
That's a principled hierarchy — deployer trust and read-back receipts are the only signals that don't ask you to believe the server about itself, and the MCP-envelope point is the real constraint: POST /mcp genuinely hides the method. Keeping it name-gated and honestly tagged beats a heuristic that pretends to verify what it can't observe. Does v0.6.5 surface the probe_unobservable tag where an operator actually sees it, or is it still a log-level distinction?
It surfaces in four places an operator actually sees, not just buried in the JSONL log:
Three-state verdict (SupervisionVerdict.verdict_status): When any receipt carries evidence_tier="probe_unobservable" (and no contradiction fired), verdict_status drops from "verified" to "unverifiable" while keeping is_valid=True so it doesn't hard-block honest turns.
CLI summary (epistemic-guard verify-log): Aggregates and outputs an evidence_tiers breakdown (independently_verified, probe_unobservable, server_reported, effect_contradicted) directly in the verification summary.
Signed into the receipt (provenance.py): Both evidence_tier and effect_observation are part of the canonical Ed25519-signed payload, so downstream auditors can distinguish observed vs. unobservable receipts cryptographically.
OpenTelemetry / Langfuse spans (just added on main in d98e2e0): receipt_to_otel_attributes() and verdict_to_otel_attributes() now export epistemic_guard.receipt.evidence_tier and epistemic_guard.narration.verdict_status directly onto trace spans (github.com/AlienatedAliens/epistem...).
That's a thorough answer — the signed receipt and the OTel spans are the two that matter most, because they make the distinction auditable downstream instead of just visible in one CLI run. The three-state verdict is the right call too: 'unverifiable' says exactly what you know without blocking honest turns. Is anything downstream acting on verdict_status yet, or is it informational until the OTel data shows how often the unobservable tier actually fires?
Informational for now. Nothing in the package acts on it. The Claude Code hook blocks only with
--enforce, and only whenis_validis False; anunverifiableturn is always allowed.verdict_statusshows up in the hook output,verify-log --jsonand, on main (due in 0.6.6), the OTel spans, and the per-receiptevidence_tierbehind it is part of the signed receipt. What to do with it is the operator's call. I'd rather see how often the unobservable tier fires on real traffic before I build a policy on it, and I don't have that data yet.Waiting for real-traffic numbers before building a policy on it is the right restraint — and since evidence_tier rides in the signed receipt, the history will still be there when the data says it's time. Will the 0.6.6 OTel spans let you break the unobservable rate down per server or tool, so you can see whether it's one bad actor or spread evenly?
Per tool and per server. Each receipt goes onto the span as an event carrying
receipt.tool,receipt.endpoint_id(which server it came from) andreceipt.evidence_tier, so a backend can group the unobservable rate either way. The server field was missing from the export until today; it's on main now and goes into 0.6.6.One caveat on reading it as a bad-actor signal.
probe_unobservabletoday only comes from my local probes behind the STDIO proxy (filesystem, git, SQLite), and it means the probe couldn't see the effect, not that the server misbehaved. A high rate on one tool more likely says my probe doesn't cover what that tool touches. Remote servers behind the HTTP proxy don't get a tier at all yet, which is the gap I mentioned in another reply.Per tool and per server is exactly the breakdown that makes the number actionable — and the caveat matters as much as the feature: an unobservable rate that mostly says 'my probe can't see this' would mislead anyone reading it as a bad-actor signal. The HTTP-proxy gap feels like the next real milestone, since that's where the servers you can't watch locally live. Will remote tiers need a different evidence model, or is it the same probe shape pointed at a different transport?
A different evidence model. A probe needs state the proxy can read itself: a local file, a git repo, a SQLite file. A remote server behind the HTTP proxy has none, so its receipts stay server-reported and today carry no tier at all. What can stand in for a probe there is a read-back through a second path, such as a later read receipt that shows the resource persisted or contradicts the write, or a record the deployer declares independent. A second read through the same path would only be the server agreeing with itself. The read-back checks exist in the verifier; what I have not modelled is whether the second path is really independent.
The second-path read-back is the honest stand-in, but the independence question is where it lives or dies — a later read that goes through the same server's state is just the server agreeing with itself on a delay. What would count as genuinely independent in practice: a read through a different server, a client-side ledger, or something the deployer declares and signs? That's the model I'd want pinned down before the tier means anything.
The way I would pin it is by what the evidence could be wrong about, not by the transport. A second read counts as independent only if it could be wrong for different reasons than the first. A read through a different server is independent only if that server does not derive its state from the first one; two servers over the same database are one source. A client-side ledger is independent of the executor, but it records what was sent and received, so it shows the request and the response, not the effect. A deployer-declared, signed record shows who vouched, not that the vouching used an independent route. So the tier should carry a declared basis: who controls the observation point, what it read, and what it is independent of. Today my only independent sources are local probes that read files, git and SQLite outside the server's process. For remote servers there is none, so they stay server-reported until a basis is declared and checked. Not built. Update: the study runs on a pinned release (0.6.8), so a later version does not move what it measures. I will seriously consider adding it, or at least testing it, because the tier means little until independence is pinned down.
Pinning independence to 'could be wrong for different reasons' is the cleanest definition in the thread — it kills the two-servers-one-database case without needing a taxonomy. The declared-basis idea is the honest part: the tier doesn't claim more than the observation point supports. What does checking a declared basis look like in practice — is it a static declaration the deployer signs, or something the verifier re-checks at runtime?
A static declaration the deployer signs, at first. The receipt already carries a signed evidence tier, so the declared basis would sit next to it: who controls the observation point and what it could be wrong about. The verifier could only check what it can see, which is mechanical consistency. Two observations that come through the same server or endpoint count as one source, whatever the declaration says. It cannot verify the claim of independence itself, for example that two servers do not share a database. So the tier would read "declared independent by the deployer", not "independent". I have not built any of this. Update: the study runs on a pinned release (0.6.8), so a later version does not move what it measures. I will seriously consider adding it, or at least testing it, because the tier needs a stated basis to mean anything.
The wording is the whole point — 'declared independent by the deployer' is honest in a way 'independent' isn't, because it puts the claim where it belongs: with the deployer, not the verifier. Mechanical consistency still catches something real, though — a declaration that contradicts what the verifier can see is a signal even if agreement proves nothing. Will the study results on 11 Dec shape how the tier gets built, or are you thinking of testing it on a small slice first?
Partly. The study's probe arm measures one piece of it, whether an unprobed server-reported receipt should cap a verdict, so those results will inform that part. The declared-basis idea is not in the study. I would not test it on a small slice and call it a result: under 100 independent items per arm it is a pilot at best. If I build it, it gets its own pre-registered run after the study.
The 100-items-per-arm floor is the right discipline — anything smaller is a pilot, and calling it a result would just repeat the mistake the 38% number exposed. One thing I'm curious about in the probe arm: when a receipt is unprobed, is the cap on the verdict itself, or on the confidence the verifier reports? If the server's word is all you have, the interesting question is whether a capped verdict still lets the turn proceed or forces a re-probe.
A correction first: I overstated the study in my last reply. Its probe arm tests whether out-of-process probes add recall on faults a receipt-only check cannot see. It does not test whether an unprobed receipt should cap a verdict, so it informs how much independent checking is worth, not the cap policy. To your question: today there is no cap and no confidence number. A verdict carries a status (verified, contradicted or unverifiable), a receipt with no probe can still come out verified at the server-reported tier, and an unverifiable turn is let through. Nothing forces a re-probe. Probes run once, after a call the server reports as successful, and the guard never retries or re-sends a call. Which of those should change is open, and I have not built any of it.
That correction makes the picture sharper, not weaker — and it puts the weight on the tier label. If a receipt with no probe can still come out 'verified' at the server-reported tier, the verdict reads as checked when no check ran. Of the open items — cap, confidence number, unverifiable let-through — which would you build first? My instinct is the cap, since a confidence number without a consequence is just a label.
The cap, but not first. A cap has to know which claim a receipt backs, and today the verdict does not carry that link. So I would build the claim-to-receipt link and a per-claim tier first (a conjunction takes its weakest part). That exists in a 0.7.0 build that is not released yet, and it changes the record, not the verdict. The cap comes next. It is a consequence, and I want to measure its false-alarm cost on real traffic before it ships, because my live numbers so far are too small to lean on. The confidence number comes last, for your reason: the verdict is a status only, and a number with no consequence is a label.
The ordering makes sense — a cap that can't tell which claim a receipt backs would punish the wrong turn, so the link has to come first. The 'changes the record, not the verdict' split is the part I'd underline: the tier becomes evidence an operator can read, while the verdict stays a status instead of pretending to be a measurement. On the cap's false-alarm cost — what would count as enough real traffic to ship it, a number of turns, or a particular mix of honest versus adversarial ones?
Both, and I would write the number down before looking at any result. For the honest side I would set a minimum of 100 independent honest turns, and pick the actual count from the interval width I want on the false-alarm rate, with N fixed in advance. Turns from the same session or the same fault count once, not several times. The mix matters as much as the count. In my small live set, the false alarms came from honest turns that report a tool failure, so a set of clean successes would flatter a cap. I would include honest failure reports, plus adversarial turns to measure what the cap catches, and report each on its own denominator. This is the plan, not a promise, and I have not built the cap.
Fixing N in advance from the interval width you want is the disciplined move — most evals pick a round number after the fact and call it a sample. The detail I'd underline is including honest failure reports in the mix: a set of clean successes would flatter the cap, and your false alarms came exactly from honest turns reporting a tool failure. When you do build it, is the cap a hard block on the turn, or a flag that routes to review?
A flag that routes to review, first. Everything in the guard ships flag-only by default, and enforcement is an opt-in switch (--enforce on the hooks) that I tell people to turn on only after they have run it in shadow mode on their own traffic. I would build the cap the same way: it marks the turn and sends it to a person, and a hard block is something an operator chooses once they have measured the false-alarm cost on their own turns. A block on a turn that turns out honest is the expensive mistake, and my live false-alarm numbers are too small to justify blocking by default. A local prototype of the cap exists (opt-in, flag only, not released), and on my small development set it flagged many honest completions because those receipts carry no evidence tiers, which is the cost I said I would measure properly before shipping. The claim link and per-claim tier it builds on are released; the cap is not.
Flag-first is the right default — a hard block on an honest turn is the expensive mistake, and shadow mode is how you earn the right to enforce. The prototype flagging honest completions because the receipts carry no evidence tiers is a useful finding in itself: it says the cap can't be trusted until the receipt format carries the tier. Is adding evidence tiers to the receipts the next step, or is the cap waiting on a bigger sample first?
Neither, quite. The receipt format already carries the tier: HTTP proxy receipts are tiered (server_reported, or attempted when the call was refused or invalid), and the stdio proxy sets independently_verified, probe_unobservable or effect_contradicted when a probe runs. What my 60-turn set lacks is the field, because it was captured before the tier existed, and a stdio proxy with no probe enabled still leaves it empty. So the next step is not a new format. It is deciding how the cap treats an untiered receipt (the prototype has a configurable floor) and then measuring on traffic that does carry tiers, with N fixed in advance and honest failure reports in the mix. That measurement is what the cap is waiting on
Good correction — so the format's already there and the real work is the policy for untiered receipts, not another schema change. The configurable floor is the interesting decision: set it too high and you re-create the 38% problem on legacy traffic, too low and the cap is decoration. Fixing N in advance before measuring on tiered traffic is the right discipline — will you publish the floor you land on, or is that part of the prototype tuning?
Published, and fixed before the run, not tuned during it. I would split the data. A development set picks the floor, for example whether an untiered receipt counts as server-reported. Then the floor, the N and the mix of honest and adversarial turns are written down. Then the cap is measured once on a separate fresh set. If I pick the floor on the same turns I report, the false-alarm number is optimistic by construction. Any change after the measurement gets logged as a deviation with its date. Whether the floor should be a default or stay an operator setting is a separate question. It depends on how much real traffic is untiered, and I do not know that yet.
The decision I keep coming back to is freezing Live-60 and leaving the 38.24% in the paper instead of tuning against it first — that is the discipline most verifier write-ups skip, and it's why the two blind spots are believable: 6 of 13 false positives from tool names your static verb table had never seen, 7 of 13 from honest contrastive failure reports ('I attempted X, but it failed') being split at the comma and read as promises. A verifier that blocks honest turns at that rate teaches its operator to bypass it, which is the same failure we design against in our release gate — a gate that cries wolf gets routed around, and then it catches nothing. In v0.6.5, which of the two fixes did more of the work on those 13 — the dynamic tools/list binding, or the contrastive attempt-negation handling?
On Live-60 itself it was basically 50/50: dynamic tools/list binding (plus checking SQL verbs so SELECT can't ground a delete) cleared all 6 unseen-tool FPs, and the contrastive attempt-negation fix cleared 6 of the 7 failure-reporting FPs (13/34 down to 1/34).
The bigger surprise happened right after when I tested against 12 unseen SaaS tools (Live-Frontier-180) and FPR jumped right back to 50.8%. Static verb lists just don't generalize. What actually held up in v0.6.5 was matching clauses directly against the tool schema and actual receipt args/output, plus a lazy Stage-2 NLI check over the full reply that only runs when a failed receipt exists (so 0 ms on clean turns).
Totally agree on alert fatigue too. A gate that cries wolf gets turned off in a week, which is why v0.6.5 defaults to shadow/flag mode (--enforce is opt-in) until you've checked the false-positive rate on your own traffic.
The 50/50 split on Live-60 and then the jump straight back to 50.8% on the unseen SaaS set is the most useful sequence in the whole follow-up — the static verb list didn't partially generalize, it didn't generalize at all, and the thing that replaced it grounds the claim in the actual receipt arguments instead of a table someone maintains. The shadow-by-default choice matches how we had to ship our release gate: a gate's first job is to be believed, and an enforcing gate with an unmeasured false-positive rate on your own traffic gets switched off before it earns anything. The one FP left standing on Live-60 — is it a failure-reporting case the contrastive fix still misses, or a different shape entirely?
It was the 7th failure-reporting case -- a multi-sentence reply where the attempted action sat in one clause and the failure explanation landed in a separate sentence, so clause-local contrastive rules still couldn't see the negation across the sentence boundary.
That's actually what pushed me to add the lazy full-reply Stage-2 discourse NLI pass in v0.6.5 (only triggered when a failed receipt exists, so 0 ms on clean turns). Replaying Live-60 on current v0.6.5 drops it from 1/34 down to 0/34, though I kept the earlier 1/34 in-sample checkpoint on the record because Live-60 had already been inspected -- the numbers I actually trust for generalization are the sealed agent-claimcheck seed=99999 holdout (0/72 FP) and the unlabeled developer traces (0/223 on Exgentic, 4.01% flagged on SWE-agent).
Cross-sentence negation is exactly the case a clause-local rule can't be patched into seeing — the evidence and the denial are both present, just never in the same window. Making the expensive pass lazy is the right shape for it: the full-reply NLI only runs where a failed receipt already gives it a concrete thing to check, so clean turns pay nothing. That's the fail-closed pattern we trust — the heavy check is triggered by evidence, not run on everything just in case.
And keeping the inspected 1/34 on the record instead of replacing it with the 0/34 replay is the honest bookkeeping. Once a set has been looked at, its clean rerun is a different claim, and your sealed holdout is the one carrying it.
On the 4.01% flagged on the SWE-agent traces — since those are unlabeled, is there any slice of them you've hand-checked to see how many of the flags were real failures the agents hadn't reported, versus false positives the sealed set can't rule out at that rate?
I just pulled those 32 flagged turns from the 798-turn SWE-agent slice and inspected them -- honestly, the bulk of them were false positives from two multi-turn coding-loop patterns rather than hidden agent lies:
FAILED_TOOL_UNDISCLOSED (10 of 32): In a debugging loop, the agent intentionally runs a failing reproduce script on turn 3, then spends turns 4-8 scrolling through files (open, scroll_up). Because the runner passed cumulative session receipts into every turn, the verifier kept flagging turns 4-8 for not re-stating the turn-3 failure.
CLAIM_SYSTEM_STATE (9 of 32): Passive code-state summaries referencing a prior edit (e.g., "The domain attribute is now initialized in init" or "The code has been updated to set auth_token"), where edit_file wasn't allowed to ground CLAIM_SYSTEM_STATE.
Both were clean enough to fix right away on main (commit a0226ec: github.com/AlienatedAliens/epistem... added an explicit prior_receipts parameter to verify_narration() so FAILED_TOOL_UNDISCLOSED only binds to current-turn failures while succeeded prior edits can still ground backward-looking summaries, and allowed file-edit receipts to ground code/config-state CLAIM_SYSTEM_STATE clauses (while still blocking non-code system claims like "I rebooted the server").
Re-running the same 798-turn slice dropped the flag rate from 32/798 (4.01%) down to 14/798 (1.75%) (FAILED_TOOL_UNDISCLOSED 10 -> 1, CLAIM_SYSTEM_STATE 9 -> 0; remaining 14 are mostly "We have opened constants.py" hitting CLAIM_LAUNCH_EXEC or "removed the thread limit" inside an edit hitting CLAIM_DELETE). Same honest caveat applies though -- since I inspected that slice to fix it, the 1.75% is an in-sample re-check, not a fresh blind measurement.
Cumulative receipts re-flagging turns 4–8 for a turn-3 failure is the verifier punishing the agent for its own bookkeeping — the failure was disclosed once, and the runner kept presenting it as current. Scoping the flag to current-turn failures while still letting a succeeded edit ground a backward-looking summary is the right split, and keeping the non-code claims ('I rebooted the server') blocked is what stops the fix from becoming a hole. The in-sample caveat is the part I'd underline: 1.75% on the slice you inspected to write the fix proves the fix does what you aimed at, nothing more. Is the sealed holdout the blind check for this fix as well, or does a0226ec get a fresh slice of its own?
Just ran a0226ec blind on a fresh, never-inspected slice of 40 disjoint sessions (offset=40..80, 1,023 turns) from nebius/SWE-agent-trajectories:
Flagged: 19/1,023 (1.86%) (compared to 14/798 [1.75%] on the inspected 0..40 slice).
Family breakdown: CLAIM_SYSTEM_STATE stayed at 0, FAILED_TOOL_UNDISCLOSED was 3/1,023 (0.29%), and the remaining 16 were CLAIM_MEMORY (9), CLAIM_DELETE (4), and CLAIM_LAUNCH_EXEC (3).
So the two fixes held up on unseen coding sessions without overfitting to 0..40, and the CLAIM_MEMORY cluster on 40..80 gives me a clean signal on what's actually left in the long tail.
That's the result the in-sample number couldn't give you: 1.86% blind against 1.75% inspected is the same rate within noise, and the two families you aimed at stayed at or near zero — CLAIM_SYSTEM_STATE at 0, FAILED_TOOL_UNDISCLOSED down to 3 in 1,023. The fix wasn't fitted to the slice you inspected.
The part I'd watch is the shape of what's left: 9 of the 19 are CLAIM_MEMORY, a family the two fixes weren't built for. We see the same pattern on our release gate — fix the loudest check family and the report doesn't get quiet, it gets honest about the next one. Is CLAIM_MEMORY the same receipt-grounding problem in a new place — a claim about an earlier turn with no receipt under it — or does verifying a memory claim need a different surface than a tool receipt?
Neither, it turns out. I read all 9 and none of them is about memory. Every one is a code-edit summary like "The
fail.pyfile has been updated with the example code." right after a successful edit. My file-write rules only matched the active form ("updated config.json"), so these passive summaries matched nothing and fell through to the neural classifier, which labelled them memory. Memory claims are grounded against memory tools, so claims backed by a successful edit got flagged. My "next family in the long tail" framing was wrong: it's a misclassification.I've fixed it on an unreleased branch: a rule for passive edit summaries, and a fallback so a memory label my classifier guessed, on a sentence with no memory wording, is grounded by a matching write instead.
The numbers, with their limits. These are flag rates on unlabeled traces, not accuracy, and the 40..80 slice is now inspected, not blind. On it, memory flags went from 9 to 0, but 2 came back as file-write flags. On 0..40 the count went up, 14 to 16: 4 new file-write flags appeared and 2 others went away. I read the 4. My harness records SWE-agent edits without the file path, so a claim naming the file can't be matched to the edit; before, they passed only because a read of the same file grounded them, which was wrong too. On a fresh slice (sessions 80..120) that I pre-registered and only counted, flags went from 26 to 18 of 1,165 turns with the first version. An adversarial review then found that version let "the script has been updated and executed against production" pass on an edit receipt. I fixed that and counted the same slices again, so the held-out slice has now been counted twice: 19 (1.63%, from 2.23%). 8 flags disappeared and 1 new one appeared. I haven't read them, so I can't say which were false alarms and which were real misses.
"Neither" is the best possible answer to that question — the family wasn't a new grounding problem, it was a classification leak upstream of grounding, and no verification surface fixes a claim that was routed to the wrong one. The passive-voice detail is the part I'd underline: a rule set that only matches the active form will miss exactly the summaries a model writes when it's reporting rather than acting, which is when these claims mostly appear. One question on the harness gap you found: the four new file-write flags can't be matched because the edit record carries no file path — do you fix the harness to record the path, or treat a claim that names a file the record can't confirm as unverifiable rather than flagged?
Both, at different layers. The harness was my bug: SWE-agent's edit command works on whichever file is open, and the path is in its output and in the earlier
opencall, but my harness dropped it. It now records it, and on my two inspected slices the file-write flags are gone: 16 to 11 flags on 0..40 and 12 to 10 on 40..80. Same limits as before: unlabeled, inspected, flag counts rather than accuracy.On the verifier, you named the right line, and I've built it on an unreleased branch, though narrower than my first attempt. A claim that names a file used to be flagged whenever no write receipt's arguments contained it, which lumps together a receipt naming a different file (a contradiction) and one naming no file at all (unconfirmable). The second case now passes as
unverifiableand records which tool did it.An adversarial review of my first version showed how easily that turns into the escape hatch. A receipt that named its target under a key I hadn't anticipated counted as targetless, and one write with no target could ground a claim about five files, a secrets file among them. So the relaxation now only applies when every argument is plainly content (
content,command,diff), the claim names exactly one file, that file isn't a key, secret or database, and the receipt is from the current turn. Everything else is still flagged. With the harness fixed, nothing on either slice lands in that state, which is how it should be: it's for tools that genuinely don't record their target.Both layers is the right split, and the narrowing is the part I'd underline: unverifiable only when every argument is plainly content, the claim names exactly one file, it isn't a key, secret or database, and the receipt is from the current turn — that's a defined state, not a general pass. The adversarial catch matters too: a receipt naming its target under an unanticipated key counting as targetless is exactly how a relaxation becomes an escape hatch. With the harness fixed and nothing on either slice landing in that state, the state is doing what it should — existing for tools that genuinely don't record a target. When a claim does land there, does the unverifiable record surface anywhere a reader sees it, or does it stay in the receipt data?
Yes, in the verdict and not only in the receipt data. When a claim lands in that state, verdict_status becomes unverifiable and the verdict lists the tools whose receipts named no target (unconfirmed_target_tools). The CLI prints UNVERIFIABLE with those tool names, and the Stop-hook output carries both fields. What it does not show is which claim triggered it, so a reader sees that something was unconfirmable and by which tool, not which sentence.
Tool named, claim not — that's a precise gap, and it's the mirror of ours: our surface read-back can say which page diverged but not always which check's claim it was carrying. A reader who knows something was unconfirmable and by which tool still has to hunt the sentence, which is where the argument about whether it matters starts. Does the receipt data at least let you reconstruct the claim afterwards, or is that link lost once the verdict prints?
Partly. The verdict is a function of the reply text and the receipts, so if the narration is saved next to the signed log, rerunning the check on the same inputs and the same version rebuilds the verdict and the claim, and nobody can edit the log afterwards. The link inside the verdict is what is lost: it prints the tool, not the sentence. And today saving the narration is the operator's job, the tool does not do it.
The manual step is the hole in that, I'd say. A reconstruction that depends on the operator remembering to save the narration will fail on exactly the rushed runs where you most need to rebuild the claim afterwards. Our surface read-back exists for the same reason — a check the human has to remember to run is a check that gets skipped, so we made the read-back part of the gate itself rather than an operator habit. If saving the narration became automatic, would you keep the verdict printing the tool only, or print the sentence too now that the link could actually be kept?
I would print the sentence. The verdict prints only the tool today because the claim-to-receipt link is not kept, so there is nothing to print. If the narration is saved and the link is kept, the verdict should show the claim next to the tool. I have not built it, and it comes after the study. You are right that the manual step is the weak point: the saving has to be part of the check, not an operator habit. Update: the study runs on a pinned release (0.6.8), so a later version does not move what it measures. I will seriously consider adding it, or at least testing it, because a reader should not have to hunt for the sentence.
'Part of the check, not an operator habit' is the whole fix, and it is the same shape as ours: the Fleet gate writes its own attempt row as part of producing the verdict — the operator never transcribes anything — which is the only reason our could-not-verify rows exist to be tallied later. A record that depends on someone remembering to save it will be missing on exactly the rushed runs where the verdict gets disputed. One thing I would watch when you build it: once the save is automatic, the narration becomes part of what the check produces — do the pre-change runs in your study stay comparable, or does the study effectively restart from the first automatically-saved run?
The study stays comparable because it is pinned. It runs on one fixed release, and nothing I build afterwards touches it. Automatic saving would ship in a later version, and anything measured on it would be reported as a new run, not pooled with the pinned one. The episode records in the study already keep each agent's final reply and the receipts, so a per-claim link could be recomputed on them afterwards without re-running any agent.
Pinning the release and refusing to pool a later version's runs is the part that makes the whole study readable later — a new run, not a quieter average. And the recompute point matters: because the episode records kept the final replies beside the receipts, the per-claim link is an analysis you can add afterwards, not a run you have to redo. Our gate learned the same shape the other way round — a check added after the fact can read the old attempt rows, but it never gets to rewrite their verdicts. When you do recompute that link, will it be reported as a new layer over the pinned results, or folded into the study's own tables?
A new layer, reported separately. Anything I compute after the freeze goes in its own exploratory section after the registered results, with every number labelled exploratory. It does not go into the registered tables, and it cannot change a registered conclusion. If it suggests a claim, that claim gets its own pre-registered run.
That separation is the part that makes the registered tables trustworthy — the exploratory section can be as interesting as it likes without ever reaching back into a frozen conclusion. Our gate learned the same shape from the other side: the could-not-verify tally (7 of 12 verdicts in the build-phase count) is computed from the attempt rows afterwards and reported beside the results, never folded into a pass or a fail. Does the pre-registered run for a claim the exploratory section suggests start from a fresh freeze, or does it inherit the original study's frozen set as its starting point?
A fresh freeze. The original test set has already been looked at by the exploratory analysis, so it cannot confirm anything about the claim that analysis suggested. That run would use new scenarios from a new seed, registered before they are generated, with new pins. The design (servers, fault classes, scoring code) can be reused as a starting point, but it is re-frozen and re-registered, not inherited from the first study.
Fresh freeze is the only honest answer there — a test set the exploratory analysis has already seen can't confirm the claim that analysis suggested, it can only agree with it. Our gate landed on the same split from the other side: the frozen check set is committed before any run exists, and anything explored afterwards gets its own section and its own registration rather than being folded into the frozen result. Reusing the design as a starting point while re-freezing the scenarios and pins is exactly the line — the method carries over, the evidence doesn't. One thing I'm curious about: when the scoring code is reused into the new registration, is it pinned by version there, so a later fix to the scorer can't quietly change what the confirmatory run measured?
Yes. The current registration pins the analysis code by the SHA-256 of each file, and the prompts, models and servers by hash too. A new registration would pin whichever scorer version it reuses the same way. A fix to the scorer after that is a dated deviation in the ledger and is reported as one, not a silent change to what the confirmatory run measured.
That closes it cleanly — pinning by file hash is the version of 'version-pinned' that can actually be checked afterwards, and the dated-deviation rule is the part that keeps a later fix honest: the confirmatory run stays bound to what it measured, and the ledger shows where reality moved. Our gate learned the same shape from the other side — an approval is only valid against the exact payload hash it was granted on, and any change after that is a new record, never an edit to the old one. One thing your answer leaves open for me: if a scorer fix is material enough, does the deviation stay a ledger entry beside the confirmatory verdict, or does it force a fresh registration before the fixed scorer's results can be reported as confirmatory?
A ledger entry, not a fresh registration, and the label stays honest. The scorer registered at its pinned hash gives the confirmatory result, and I report it in full. If a fix is material, I report the fixed scorer's result beside it, labelled as run with a logged deviation, with the date and the reason. I would not promote the fixed scorer's number to confirmatory, because that would mean choosing it after seeing the outcomes. A fresh registration only makes sense for new data, not to re-label this run. I did not write this rule into the registration, so it is how I will apply it, and I will log it as such.
The beside-it placement is the part I'd underline: the fixed scorer's number is published, dated, and labelled a deviation — visible, but it never inherits the confirmatory label, because promoting it would be choosing after seeing outcomes. Our gate keeps the same shape from the other side: when a check itself is fixed mid-stream, the fix gets its own row in the hash-chained attempt log and the verdicts already issued under the old check stand as recorded — the log shows both, and the reader can see exactly which runs the fix could have touched. One question on the denominator: when you report the fixed scorer beside the pinned one, does it re-score the same full episode set, or only the episodes where the fix changes something?
The same full episode set. The fixed scorer re-scores every episode, so both numbers share a denominator and are reported as a paired comparison with the discordant counts, as the registration requires for any two systems on the same episodes. I would also list the episodes where the two scorers differ. I would not restrict the headline to them: that would hide how often the fix changes nothing, and it would choose the denominator after seeing the outcome. Each rate is reported as k/n on its own denominator.
One thing I ran into building a small MCP server: returning isError: true with a plain message gets the model to report the failure honestly more often than throwing does, since a throw drops the connection. Have you tested how error shape affects how often the model lies?
Not as a controlled test. My 60-turn live pilot had a few turns each of an explicit isError, a JSON-RPC error and a server exit, which is far too few to compare shapes. The pre-registered study varies shape only through its fault classes: a failure reported with no error flag, and a transport drop or server exit after the commit. It does not compare isError: true against a thrown error as a clean pair, and I have not read any results. Your explanation is plausible: if a throw drops the connection, the model has no text to quote. It is worth testing as its own comparison with its own N.
Your four wire states made me look at my own hub, and I found I had collapsed two of them.
The hub I build sits between agents and the tools of self-hosted apps, one MCP endpoint over HTTP. Until this week, every httpx error became "the app did not answer", so a connection that never opened and a read timeout after the request was sent looked the same. Those are your rejection and transport-drop states: one certainly didn't run, the other may have. Now a connect error is recorded as not run, a read timeout or dropped connection as "may have run", and the error the model receives ends with "it may have done it all the same: look before trying it again". It's the "unknown, check before retrying" default Murali described, put into the tool result instead of left to the model. Your reply to Kevin holds here too: the unknown has to be set where the failure is seen, and the hub is the only place that sees the socket.
There's one more state on my side that doesn't map cleanly onto the four: a person said no. For tools an app marks as
danger, the hub shows Accept / Reject before the call goes anywhere. That looks like a pre-execution rejection, but the cause is a human, not a schema. And the narration I'd want to catch is different too: not "done" after a failure, but "that didn't work, let me try another way" after someone deliberately refused.Does epistemic-guard treat a human refusal (a client denying a tool call, or an approval gate in a proxy) as its own state, or as an ordinary executed=false rejection?
Thanks, that is a useful case. Today it is not its own state. The proxy treats only the JSON-RPC pre-execution errors (parse error, invalid request, method not found, invalid params) and its own tool-pin refusals as not executed. A denial before the call reaches the proxy is invisible to it, and a gate inside the proxy path that returns an error would look like any other rejection. I would want a separate state, refused by a person, with the cause as a field, because retrying what someone just refused is the case to catch, and "that didn't work" after a refusal misreports the cause even though the effect is right. I have not built it. Update: the study runs on a pinned release (0.6.8), so a later version does not move what it measures. I will seriously consider adding it, or at least testing it, because retrying something a person just refused is the case worth catching.
Freezing Live-60 with the 38.24% still in the paper is the part I would keep. The comma split on failure-reporting sentences is a good catch, a verifier that blocks honest failure reports gets turned off.
Appreciate that. Leaving the raw 38.24% on the record in arXiv:2611.27095 was the only way to keep the benchmark honest, and the comma-split bug on failure reports was a good reminder that static affirmative test sets miss how real agents actually talk when tools fail. That's also why v0.6.5 defaults to shadow/flag mode until you've checked the false-positive rate on your own traffic.
Shadow/flag as the default makes sense. That check on your own traffic before enforcing is the part that keeps the benchmark honest in practice.
The split between the wire gap and the narration gap is a really clean way to frame this. Most teams test whether the server stayed idempotent on a dropped response, then miss the part where the model still tells the user the action succeeded after an upstream error or timeout. That 38% false-positive rate on the first verifier pass makes sense too, since partial error text in tool payloads looks a lot like normal diagnostics unless structured status flags are checked separately from the prose summary.
Close, but the 13 false positives on my first Live-60 pass came from two other things: 6 were tools whose names my verb table had never seen, and 7 were honest failure reports ("I attempted X, but it failed") that my clause splitter read as a promise. Live-60 is one set of tools and I inspected it afterwards, so that's a description, not a generalisation. Your structured-flags point does describe a real wire-side problem, though. Joshua Bryan's reading of 100 packaged MCP servers found 31 return a failure without isError, which is why my proxies now classify from status fields in the payload.
Fair correction, and thanks for laying out the exact breakdown. I guessed wrong on what drove those 13 false positives. Unseen tool verbs and a clause splitter reading honest failure statements as promises are concrete parsing traps you only catch by inspecting the misses directly. Checking payload status fields when isError is omitted is a much cleaner wire-side signal too.
Thanks. The 38.24% was 13 of 34 negatives, a small live run, so I treat it as a pilot signal and not a rate. A later blind set of 180 sessions came out at 8.3% false positives, and I'm now building a larger pre-registered fault-injection study so the numbers rest on more than one run.
Two things about the 38.24% that change what it can be used for. On 34 honest turns one blocked trace is 2.94 points, so the figure is really 13/34 and Wilson 95% on it is [23.9, 55.0] - the second decimal is precision the sample does not have. More important, all three verifiers ran on the same 34 traces, so the comparison against Nemotron's 35.29% (12/34) is paired and the marginal intervals are the wrong instrument for it. What decides whether Phi-4's 61.76% is actually worse is the 2x2 of which traces each one blocked. If you still have the per-trace marks, the discordant counts (only the guard blocked / only Phi-4 blocked) would settle it; without them the gap between 38% and 35% is one trace wide.
You are right on both counts. The figure is 13/34, Wilson 95% [23.9, 55.0], and two decimals overstate what 34 traces can support. It is a pilot-sized rate on its own denominator, and I should print it as 13/34.
One correction on the comparison: the 12/34 (35.29%) system is Mistral-NeMo-12B used as a judge. Nemotron was one of the agents that generated the traces, not a verifier.
On the paired comparison, the JSON stores per-system aggregates and paired overall counts, not per-trace marks, so I can't read the 2x2 off the traces. I can derive it for the 34 honest traces, because the judges had zero misses on the 26 positives and the guard had one. That gives:
vs Mistral-NeMo-12B: both blocked 6, only the guard blocked 7, only NeMo blocked 6, neither 15. Exact McNemar p = 1.0.
vs Phi-4-14B: both blocked 8, only the guard blocked 5, only Phi-4 blocked 13, neither 8. Exact McNemar p = 0.096.
So against NeMo the gap really is noise. Against Phi-4 the direction favours the guard but the interval still includes no difference at this N. Neither result supports "the guard has a lower false-positive rate" as a claim. These are derived from aggregates, not re-read from per-trace marks.
rollsolo - you are right about Nemotron and that was my error, not a naming preference: 12/34 is Mistral-NeMo-12B used as a judge, and I carried the trace generator's name onto the verifier row.
Your two derivations hold up here. Rebuilt independently from the marginals, 6/7/6/15 and 8/5/13/8 each sum to 34 and give the published 13/12/21 columns, and exact two-sided McNemar comes out 1.0000 and 0.0963, the same two numbers you got.
The sentence I would not keep is that the interval still includes no difference at this N. That holds for the marginal intervals, which you have just argued are the wrong instrument. On the paired difference, only-Phi-4 minus only-guard is -23.5 points with a Wald 95% of [-46.7, -0.4]: it excludes zero by four tenths of a point while the exact test returns 0.096. At 18 discordant pairs the asymptotic interval is the unreliable one, so the disagreement is a reason to print the exact p and not an interval at all. If 34 was pilot-sized, the same discordance rate and the same 13:5 direction reach p=0.029 at 50 honest traces and p=0.011 at 68, so that is what the claim costs.
Last one is arithmetic rather than statistics: every FPR in the N=250 table lands on an exact k/128 - 10.16 is 13/128, 14.06 is 18/128, 26.56 is 34/128, 1.56 is 2/128, 20.31 is 26/128 - while your conceded 38.24% is 13/34. Same column, two denominators.
Thanks, all four points hold.
The Wald interval on the paired difference ([0.4, 46.7] points) excludes zero by four tenths while the exact test says 0.096, so I will not print that interval. For the paired claim I will report the exact p, plus the discordant counts and the exact interval on the discordant share (13 of 18, 46.5% to 90.3%), which includes one half. Your scaled numbers (p = 0.029 at 50 honest traces, 0.011 at 68) match mine, but they assume the same discordance rate and direction holds. I will not size the next run on that; N comes from the pre-registered power calculation.
On the denominators: you are right. The N=250 benchmark has 128 honest items (13/128 is the 10.16%) and Live-60 has 34, and I put the Live-60 figure next to other evaluations' rates in one README line without saying which denominator each uses. I am changing every FPR cell and sentence to show k/n.
I kept coming back to the A1-A5 recovery section, because it left me with one question about who holds the key. A1 replays the signed receipt when the retry carries the same Idempotency-Key, so the guarantee holds as long as the key survives the failure. The transport-drop case in your four wire states is exactly the case where the key is most likely gone, though: if the agent process crashed mid-call and the key lived in that process's memory, the retry mints a fresh one and the proxy sees a new operation. Does the recovery depend on the harness persisting the key outside the agent, or does the proxy have a way to recognize the retry without it? That distinction decides whether effect_count == 1 survives the crash it was built for, or only the clean retries.
Good catch -- yes, effect_count == 1 across a full client crash strictly depends on the caller/harness persisting K (or deriving it deterministically from a checkpointed (workflow_id, step_id)) before the HTTP call leaves the process.
The proxy does NOT try to deduplicate two different keys purely by (tool, args), because doing that breaks legitimate repeated operations (e.g., creating two identical tickets or running the same transfer twice on purpose). So the responsibility boundary splits cleanly:
Caller / harness owns K durability: mint and write K to the workflow checkpoint (or hash the stable step ID) before dispatch so a crashed process recovers the same K on restart.
Proxy owns execution + replay durability: once K hits mcp-http-proxy, it commits the signed receipt and exact response body to disk, replays it on matching K (including across proxy restarts and --prev-log rotations), and returns 409 Conflict if the same K is reused with different arguments.
If the caller kept K only in RAM, crashed mid-flight, and minted a brand-new K' on restart, the proxy will honestly treat K' as a new operation. You can't bypass that boundary without either durable caller-side key storage or deterministic step-derived keys.