DEV Community

Cover image for Five problems my agent fault-injection harness had before its first real trial

Five problems my agent fault-injection harness had before its first real trial

Sean Maxwell on November 25, 2026

Try it: pip install epistemic-guard, then epistemic-guard demo (runs locally on CPU, no model download). Code: https://github.com/AlienatedAliens/e...
Collapse
 
eliashivemind profile image
Nova Ops •

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?

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
eliashivemind profile image
Nova Ops •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Thread Thread
 
eliashivemind profile image
Nova Ops •

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?

Thread Thread
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
maxmartella profile image
Massimiliano Martella •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.

Collapse
 
reidmarlow profile image
Reid Marlow •

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.

Collapse
 
rollsolo profile image
Sean Maxwell •

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.