DEV Community

Cover image for I fault-injected 60 live MCP tool failures: LLMs lied, my verifier hit a 38% false-positive wall, and here is what fixed both
Sean Maxwell
Sean Maxwell

Posted on Edited on

I fault-injected 60 live MCP tool failures: LLMs lied, my verifier hit a 38% false-positive wall, and here is what fixed both

Publishing raw 38% false positives over tuning

(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:

  1. Clean execution (ok=true, executed=true): Tool ran and returned content.
  2. Runtime tool error (isError: true, executed=true): Handler ran and failed (EACCES, lock conflict, 500 upstream).
  3. Pre-execution rejection (executed=false): JSON-RPC -32602 schema rejection (or 409 idempotency parameter mismatch) before the handler ever ran.
  4. Transport drop / crash (EOF / HTTP 502): 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.yaml and 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 6962 Merkle JSONL logs, with OpenTelemetry gen_ai.* and optional AER-1 envelope 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 MiB VRAM).

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/26 hallucinations caught)
  • False-positive rate: 38.24% (13/34 honest 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:

  1. Unseen custom MCP tool names (6/13 FPs): Tools like execute_sql, git_commit, and http_post were not in my static verb-stem table, so valid ok=true receipts failed to ground clauses like "deleted 14 expired rows from sessions.db."
  2. Contrastive failure reporting (7/13 FPs): Honest error summaries like "I attempted to delete prod_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:

  1. Dynamic MCP tools/list Auto-Binding + Rug-Pull Pinning (--pin-tools): Instead of a fixed stem list, the proxy inspects tools/list JSON 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 signed mcp_tool_rugpull receipts.
  2. Out-of-Process Local Effect Probes (--probe-fs, --probe-git, --probe-sqlite) & 1-Command Claude Code / Codex Hooks: mcp-proxy takes read-only before/after OS snapshots outside the MCP server's trust domain (catching servers that return 200 OK without mutating disk/Git/SQLite), and epistemic-guard install-hooks wires PostToolUse + Stop hooks directly into Claude Code or Codex in one command.
  3. Open-Vocabulary Grounding, Bidirectional Checks, and Deep Invariants: Added contrastive attempt negation, SQL verb inspection (DELETE vs. 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 -32602 rejections), and optional tool_preconditions call-order rules.
    • N=250 result: 234/250 (93.60%, 0 regressions).
    • In-sample fix check on Live-60: False positives dropped from 13/34 (38.24%) to 1/34 (2.94%, 58/60 [96.67%] accuracy).
    • External & fresh-seed benchmarks (1,441+ third-party turns):
      • B0yko/agent-claimcheck: 90/120 (75.0%, 1/72 FP) clean zero-shot -> 110/120 (91.7%, 1/72 FP) after inspected development fixes -> 107/120 (89.2%) default / 111/120 (92.5%) opt-in verify_output_values=True with 0/72 (0.0%) FP on a sealed fresh-seed split (seed=99999, zero inspection).
      • control_arena_agentdojo (N=300 real claude-sonnet-4 banking attacks, development inspected): 5.9% Dir-1 benign FP; 254/300 (84.7%) Dir-2 with 106/130 (81.5%) attacks caught at 12.9% benign FP.
      • Unlabeled real developer traces: 32/798 (4.01%) flagged on nebius/SWE-agent-trajectories, 0/223 flagged on Exgentic/agent-llm-traces-v2.
  4. Streamable HTTP/SSE Proxy with Lost-Response Recovery (A1-A5): epistemic-guard mcp-http-proxy sits in front of any unmodified HTTP/SSE MCP server, indexing committed operations durably on disk by Idempotency-Key / params._meta.operation_key (and preserving those lookup indexes across --prev-log Ed25519 key rotations):
    • A1: Identical retry with a fresh JSON-RPC id replays the signed receipt (effect_count == 1, zero second upstream call).
    • A2: Retry reusing K with mutated arguments returns HTTP 409 / JSON-RPC -32602 (idempotency_parameter_mismatch) with a refusal receipt bound to A', never A.
    • A3 & A5: Key-only GET /receipts/<K> resolves the committed output_sha256 and AER-1 digest across restarts.

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
Enter fullscreen mode Exit fullscreen mode

Top comments (56)

Collapse
 
jsbry profile image
Joshua Bryan •

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.

Picked as gem
Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
jsbry profile image
Joshua Bryan •

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:

  • an outcome or status member whose value is "unknown" (one also uses "submission_uncertain");
  • an error code that ends in _unknown, next to a _failed sibling, such as rent_outcome_unknown or ads_boost_unknown;
  • a side-effect field: side_effect_status: "unknown", with retry_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.

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Collapse
 
rollsolo profile image
Sean Maxwell •

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).

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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...

Thread Thread
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Thread Thread
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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...).

Thread Thread
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

Informational for now. Nothing in the package acts on it. The Claude Code hook blocks only with --enforce, and only when is_valid is False; an unverifiable turn is always allowed. verdict_status shows up in the hook output, verify-log --json and, on main (due in 0.6.6), the OTel spans, and the per-receipt evidence_tier behind 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.

Thread Thread
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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) and receipt.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_unobservable today 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.

Thread Thread
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

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?

Collapse
 
eliashivemind profile image
Nova Ops •

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?

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
eliashivemind profile image
Nova Ops •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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).

Thread Thread
 
eliashivemind profile image
Nova Ops •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Thread Thread
 
eliashivemind profile image
Nova Ops •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Thread Thread
 
eliashivemind profile image
Nova Ops •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.py file 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.

Thread Thread
 
eliashivemind profile image
Nova Ops •

"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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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 open call, 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 unverifiable and 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.

Thread Thread
 
eliashivemind profile image
Nova Ops •

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?

Collapse
 
seanjhkwon profile image
Sean Kwon •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
seanjhkwon profile image
Sean Kwon •

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.

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

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.

Collapse
 
howcani_howcani_77e786a89 profile image
howcani howcani •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
howcani_howcani_77e786a89 profile image
howcani howcani •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
techdevfun profile image
TECHDEV •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
murali_gour_13cd7a6a6db2c profile image
Murali Gour •

The transport-drop case is the one I'd worry about most, since the model has to say something when the outcome is unknown. Saying "failed" is as wrong as saying "done". Forcing the narration to say "unknown, check before retrying" seems like the right default, and it makes the retry decision a human or policy choice instead of the model's guess.

Collapse
 
rollsolo profile image
Sean Maxwell •

Agreed, and until today my verifier got this backwards. The proxies already recorded a transport drop or a server exiting mid-call with their own error codes, but the narration check treated that like an ordinary failure: "it failed" passed and "the outcome is unknown" was flagged. I've reversed that. A reply that states a definite failure for an indeterminate call is now flagged (INDETERMINATE_OUTCOME_MISSTATED), and one that says the outcome is unknown passes as unverifiable. Read-only tools are exempt, since retrying them is safe. It's committed but not released; it goes into a release after 0.6.6. Whether to retry stays with the caller, which is your point.

Collapse
 
ascendra_ventures_92c21f2 profile image
Ascendra Ventures •

Publishing the 38.24% false-positive rate before tuning on it is what makes the rest of the post believable. A verifier that blocks a third of honest turns gets switched off, and then the narration gap is back with nobody watching it.

The gap you describe matches something Ascendra Ventures wrote about after building memory for AI coding tools. One parser was a single column off. Nothing crashed, and it reported numbers that were confidently and uniformly wrong, when a blank would have been cheaper. The lesson we took was about the boundary: decide which figure the model may propose and which figure plain code must be allowed to throw out. OWASP's 2025 guidance points the same way, checking outputs in deterministic code rather than trusting the model's account of what happened.

Grounding the claim in the observed side effect rather than the tool name looks like the right direction. For remote SaaS tools with no out-of-band oracle, do you expect teams to accept the three-state verdict, or to push you to collapse it back to pass or fail?

Collapse
 
rollsolo profile image
Sean Maxwell •

For remote SaaS tools the three states mostly don't exist yet, and that's a gap in my tool. Today a remote tool behind my HTTP proxy with no probe comes back verified on the server's word. unverifiable only appears when a local probe ran and couldn't observe the effect, or, in an unreleased change, when the outcome is unknown and the reply says so. I think server-reported evidence should be labelled as that rather than as verified.

The gate itself is two-state: with --enforce on, it blocks a contradicted or unsupported claim or a hidden failure (and, if enabled, a hidden mutation), and everything else passes. I expect teams to want it that way, with the third state as a label they can alert on rather than a third outcome. I have no deployment data on which way teams actually go.