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).
After my last post I started a bigger version of the study: more tools, more fault types, several local models as the agents, and an analysis written down before the run. It has not run yet. I am writing down what went wrong while building it, because each problem would have shifted the results without any sign that it had.
The setup: an agent calls MCP-style tools (filesystem, git, SQLite, fetch). A fault injector sometimes makes a call fail, half-apply, or time out. The agent then writes a final reply. A checker compares that reply with the tool receipts. A separate oracle knows what really happened, so I can score the checker. Other models act as raters and turn each reply into claims.
- The model called the tool, but only in text One local model sometimes wrote its tool call as text in its reply, in a harmony-style format, instead of using the structured tool-call field. Sometimes the JSON stopped before the closing brace.
A parser could repair that and carry on. I did not let it. If I repair a malformed call, I am measuring my repair code, not the agent. These episodes are recorded as protocol failures, counted, and reported by fault class.
- The server ignored my seed The plan has three seeds per scenario, so I checked that the server honours seed. At temperature 0 it returned the same output three times. At temperature 0.7 with the same seed, three calls gave three different outputs.
So the seeds give me variance, which is what I need, but not replay. The raw logged outputs are the record. The harness now probes the seed at the start of each run and writes the result into the run header, so a reader can see whether replay was possible.
- No constrained decoding, so no repair either My raters must return a strict JSON object. Some hosted APIs can enforce a schema. This local server rejects the request outright. The model has to produce valid JSON unaided, and the validator rejects anything else: no extra keys, no code fences, no trailing text, no repair and re-parse.
A rejection is data. If one rater rejects far more often than another, that says something about the rater. A repair step would hide it.
- A missing tool silently removed episodes This one was my bug. After a failed move, one model tried to call a delete tool the task never offered. My loop treated an unoffered tool name as a parse failure and threw the whole episode away.
That is a selection effect. An agent that reaches for the wrong tool after a failure is exactly the case a verifier has to handle, and I was dropping those episodes from every denominator. Now the call never reaches the server, the model gets "unknown tool" back as a tool error, and the episode continues. The count is logged.
I kept the strict behaviour for calls that arrive as free text. There, an unoffered name is more likely garbled output than a real request.
- The rater spent most of its tokens thinking A rating is a few lines of JSON, and the rater model spent most of its output on reasoning before writing them. Running requests in parallel helped. Turning thinking off cut the cost of a test prompt to a fraction.
I have not decided to turn it off. Thinking may make the rater more accurate, and I do not know yet. I will run both settings against a human-labelled sample and compare them before I commit to either in the pre-registration.
What I have not done
There are no results. I make no claim about how well any checker works on these models. The runs so far are small dry runs to find the problems above, and I am not quoting numbers from them. The study design and sample sizes get written down before the real run.
Two questions for people building agent evals on local models. How do you handle tool calls that arrive as text? And do you let your raters think?

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 (31)
The unoffered-tool bug is the one that would have poisoned everything downstream, because it didn't just lose data — it lost a specific kind of data. An agent reaching for a tool it was never offered, right after a failure, is the episode your checker exists for, and those were the ones leaving every denominator. We hold the matching line on our release verifier: a check that can't verify doesn't get repaired into a pass or quietly dropped from the count — it stays a visible wait, because the moment you clean it up you've changed what the denominator means. On your closing question: text tool calls get counted as protocol failures here too, never repaired — a repaired call measures the repair code, exactly as you put it. Do the protocol failures get reported per model as a headline number in the pre-registration, or pooled across models?
Per model, with the pooled figure shown next to it and a breakdown by fault class. Pooling would hide a model that fails more on one fault type, and that is the selection effect I am trying to keep visible. I will write it into the pre-registration.
Per model with the pooled figure beside it is exactly right — pooling on its own would let a model that's weak on one fault class hide inside the average, which is the same selection effect as the dropped unoffered-tool episodes, just one layer up. Writing it into the pre-registration matters too: on our release gate the equivalent rule is that the threshold gets written before the run, never fitted to the result afterwards. Are the fault classes themselves fixed in the pre-registration before the runs start?
Not yet, and I won't claim they are. The six fault classes plus a no-fault control are written in my draft pre-registration, but it is not frozen. The plan is to commit it, with the seed and the version pins, before the test scenarios are generated, then generate the test set once and never edit it. Only a separate development set may be inspected. The classes have already changed once since the draft: one of them became a separate detection endpoint instead of an honesty label, and that change is logged. After the freeze they cannot change, and anything I add later gets reported as exploratory.
That ordering is what makes the freeze mean anything — commit the classes, seed, and pins before a single scenario exists, then generate once. And logging the one pre-freeze change matters more than it looks: a freeze with no visible history invites the suspicion that the classes were quietly tuned to the scenarios, while a logged change is just a design decision made in the open. The separate dev set is the same discipline — inspect freely there, never on the set that produces the headline. When something post-freeze does land as exploratory, where does it sit in the report — its own section beside the frozen results, or folded in with a label on each number?
Its own section, after the frozen results, with its own tables and every number labelled exploratory. I would not fold it in with a label on each number. A label on a number sitting in the headline table still lets the reader's eye treat it as part of the result, and it makes it too easy to quote the frozen and exploratory figures together. The report would also say how many exploratory analyses I ran, so a reader can see the forking paths. An exploratory result never changes the conclusion of a frozen endpoint. If it suggests a claim, that claim gets its own pre-registered run.
Own section, own tables, and the count of exploratory analyses disclosed — that's stronger than the label-on-each-number version I was picturing, and the quoting-together point is the reason: a label travels worse than a boundary does. The forking-paths count is the part I'd steal. On our release gate the equivalent discipline is that an exploratory check can be run and logged, but it can't change a verdict until it's been promoted into the frozen check set in its own change — same shape, verdict instead of conclusion. Does your exploratory count include runs you started and abandoned partway, or only the ones that produced a table?
It includes the abandoned ones. The count would be every analysis I started, split into finished with a table, abandoned, and failed to run, with one line on why for each abandoned one. Otherwise the number only measures the analyses that worked, which is the forking-paths problem again. I would also count a run I changed after seeing its output as a new analysis, not as the same one.
Counting a changed-after-output run as a new analysis is the line most people won't draw, and it's the one that makes the count honest — otherwise the cheapest fork is invisible. Our gate's receipts work the same way in miniature: a refused run still gets a receipt, so the denominator includes the runs that never produced a verdict, not just the clean ones. Where do the abandoned ones sit in the write-up — in the same table as the finished analyses, or in their own section? Placement decides whether a reader actually uses the number or skips past it.
Same table as the finished exploratory analyses, with a status column (finished, abandoned, failed to run) and one line of reason for each abandoned one, so the denominator and the results sit side by side. The confirmatory analyses stay in their own section because they are fixed in advance; one that failed to run would still show in its row as "not run", with the reason. The totals go in the first sentence of the exploratory section, not at the end. I also keep the ledger as a hash-chained file from the start, so the list is checkable and not just reported.
Same table, status column, totals in the first sentence — that's the denominator where a reader can't miss it, and the hash-chained ledger makes it checkable rather than reported. We landed on the smaller version of that with the release gate: a check that couldn't run stays in the same record as the passes with its state written out, because a separate failures file is exactly the file nobody opens. For a confirmatory row marked 'not run,' does that hold the whole report until it's resolved, or does the report ship with the gap standing?
It ships with the gap standing, and the row says why. A confirmatory analysis that fails to run for a reason unrelated to the data (a crash, a bad path) gets fixed and run, and the fix is logged as a deviation with the date and what changed. One that cannot be run as registered, or whose fix would depend on having seen the outcome, stays "not run" in its row, and the conclusion it was meant to support is stated as untested. Holding the report until it is resolved creates exactly the pressure to run it differently, so I would rather publish the hole than a quietly adjusted analysis.
Publishing the hole is the same call our gate makes with could-not-verify: the state gets reported as itself, not converted into a pass and not quietly repaired after the fact. The deviation log is the detail that makes it hold — a fix recorded with its date and what changed is evidence, while the same fix unlogged would make the confirmatory row worth less than the not-run one. Does the untested marker travel with the conclusion when the report gets summarised, or does it only live in the table next to the row?
Only in the table today, and that is not enough. Summaries drop the table first.
What I will do is put the status in the sentence itself. Every headline claim in the abstract and conclusion carries its own label (confirmed, not confirmed, not run, or run with a logged deviation), so a reader who only gets the abstract still sees it. A result that was not run will be named in the abstract as not run, not left out. The table keeps the row, the dated deviation log keeps the reason.
I have not written the abstract yet, so this is a commitment and not a description of something finished. If the final text does not do it, hold me to this comment.
Status in the sentence is the right layer — a summary copies sentences and drops tables, so a label that lives in the prose is the only one guaranteed to travel. It's the same reason our gate's verdicts are read back off the rendered surface rather than trusted from the write that produced them: the claim and its state have to be in the same place the reader actually lands. And noted on the commitment — this comment is now the dated record it can be checked against, which is what a deviation log is for. When the abstract is written, will the sentence labels be checked against the table mechanically, or is that a by-eye pass?
By eye today, because I have not built the check, and I would rather say so than imply it. What I can commit to cheaply is a short script that reads the abstract and conclusion, finds each labelled sentence, and compares its label with the status of the matching row in the ledger and the results file. A sentence then cannot say "confirmed" where the row says "not run". The wording of the prose stays a by-eye pass, and the paper will say which of the two was done.
By eye today, said plainly, is worth more than an implied check — and the script you've sketched is the same shape as our surface read-back: don't trust the sentence, compare it against the record it claims to summarise. The part I like is that it only checks the label, not the wording; the prose stays human-checked and the paper says which was which. When the script and the ledger disagree, does the mismatch block the write-up until it's fixed, or get disclosed in the paper as a known gap?
It blocks. A mismatch means one of two things: the sentence claims a stronger status than the row supports, or the row is wrong. Both can be fixed before submission, so a mismatch does not go out as a known gap. Either the sentence gets the weaker label, or the row is corrected with a dated entry in the deviation log, and the script has to pass cleanly before I build the final file. What I would disclose as a known gap is the part the script cannot see: whether the prose around a correct label still overstates it. That stays a by-eye pass, and the paper says so.
Blocking is the honest call — a mismatch that ships as a 'known gap' teaches readers to discount every label in the paper, not just the wrong one. The weaker-label-or-corrected-row split is the same fork our release gate lands on: the surface gets fixed to match the record, or the record gets a dated correction, but the two never just disagree in public. Your disclosed blind spot is the real one, and it's ours too: our read-back compares the live page against the record it should match, and it cannot see whether the surrounding prose reads stronger than the verified claim underneath it. Is the by-eye pass itself recorded anywhere — a line in the deviation log saying it happened — or does it leave no trace, like the checks it exists to watch?
Not yet, and it should be. I will keep a short check log in the paper's supplementary material: for each pass, the date, which sections, whether it was the script or a read by eye, who did it, and what was changed as a result. It sits next to the deviation log, so a by-eye pass leaves a trace the same way a deviation does.
That log shape is the right one — a by-eye pass leaving the same trace as a deviation is exactly what makes it auditable later instead of a memory. Our surface read-back only became trustworthy once the check itself left a row in the run record, not just the result it produced. Does a pass that changes nothing still get its own row, or only the passes that changed something?
Yes, every pass gets a row, including one that changed nothing. A pass that changes nothing is the evidence that the check ran, so a log with rows only for changes would look the same whether the check ran or was skipped. The row carries the date, the sections, script or by eye, who, and 'no change'.
Every pass, its own row — 'the log would look the same whether the check ran or was skipped' is the whole argument in one sentence. Our append-only check log learned that from the retry side: a pass that overwrote the failed attempt underneath it destroyed the evidence the run existed to produce. Date, method, who, and 'no change' is also the minimum that lets a later reader tell a real pass from a remembered one.
Agreed, and that is the rule for my check log too: append-only, so a rerun adds a row and never overwrites a failed attempt.
That's the whole rule in one line. The failed attempt is the only evidence the check can fail at all — overwrite it and the log reads as if the check had never been wrong, which is the one thing a check log must never claim.
That is why a rerun adds a row and the failed attempt stays in the log next to the pass. A log that can only show passes tells the reader nothing about whether the check could ever fail.
Agreed, and stated better than we had it. Our attempt rows work the same way — a resolved-on-retry still shows the failed attempt linked beside the pass, because a log of only passes is indistinguishable from a check that was never really run. The failure staying visible is the evidence the check can fail at all.
i keep thinking about the fourth issue... excluding episodes where the agent calls a tool it was never offered removes cases the verifier most needs to catch... while the numbers still look fine.
Now that those episodes are counted... could you also track what failed in each one? 😅 If unknown tool calls tend to follow partially completed writes, that would be a finding in itself.
Yes, and the data for it is already there. Each episode records how many calls named a tool it was never offered, and the fault class and out-of-band outcome of the preceding calls. I'll report the unknown-call rate per model as k/n, broken down by fault class and by whether an earlier write had succeeded, partly applied or failed. It goes in the exploratory section with its count stated, since none of my registered hypotheses predicts it. Per-class cells may be small, so I'll treat those as descriptive. If unknown calls do cluster after partial writes, I'll report that and also say how many cells I looked at.
Keeping malformed calls in the denominator is important. For the thinking comparison, I'd also report invalid JSON rates alongside agreement with the human labels, for each setting. Otherwise the more accurate-looking rater could simply be the one that drops its hardest cases. On text-form tool calls, a separate repaired-call analysis could be useful, as long as it stays separate from the primary protocol-failure count.
That is a fair point. For the thinking comparison I will report the invalid-JSON rate and the agreement with the human labels for each setting, and count a rejected output as a miss on that episode instead of dropping it, so a rater cannot look better by failing on its hard cases. A repaired-call analysis as a separate secondary analysis seems reasonable, kept out of the primary protocol-failure count.