My Benchmark Said 3 for 3. The Real Sweep Said 70%.
From the agentpolicy v0.1.0 release: a local-first, Cedar-based policy decision point for AI agents (decide allow, deny, ask, rate-limit, or redact for every agent action, with shipped rule packs). Now on PyPI. This story is the OMLX LLM Benchmark section of the v0.1.0 field test report.
AI disclosure: this article was drafted and edited with AI assistance. The field test, the defects, the fixes, and every number are real and linked below.
I picked my field-test model the way a careful person would. I benchmarked every model my local server offers, with a field-test-shaped request, three trials each, and chose the one that emitted tool calls on every trial at the lowest latency. Qwen3-4B-Instruct-2507-4bit: 3 for 3 tool calls, about one second at p50. The next-fastest reliable model was seven times slower.
Then the sweep ran, and the same model declined to emit tool calls often enough to matter. Same model, same server, same temperature zero. Three trials had told me the model was reliable. The live framework runs said otherwise, and the report's own characterization landed at roughly 70 to 80 percent tool-call reliability per call under repeated sampling. That difference was load-bearing.
What the benchmark got right, to be fair
The tool itself did its job. omlx_bench.py measured every served model with the exact shape of a field-test row: one scenario tool attached, tool_choice=auto, temperature=0. Two clear findings came out of it and both held up in the field:
-
Llama-3.2-3B-Instruct-4bitwas the fastest model and emitted zero tool calls in three trials. Disqualified on the spot, and correctly. A model that never triggers the guarded tool exercises nothing. - Among the reliable callers, the 4B-Instruct was genuinely about 7 times faster at p50 than the alternatives. That speed advantage was real and it did make a sweep-scale difference.
The selection criteria were also right. The model's only job in my harness is to emit a tool call so the policy engine has a decision to make. Reliability of tool-call emission is gating, then latency. That ordering is correct, and I would keep it.
What three trials cannot tell you
A 3-for-3 result on a behavior that is actually 75 percent reliable is not a rare fluke. If a model emits tool calls 75 percent of the time, three straight successes happen about 42 percent of the time. You would need roughly 20 trials to distinguish a 95 percent emitter from a 75 percent one with any confidence. I ran three.
So the benchmark could not fail the model, because three successes cannot distinguish a perfect emitter from a flaky one. The failure showed up exactly where unverified assumptions always show up: downstream, in the sweep, where each "no tool call" row meant a scenario with no decision to check.
Where it surfaced, and what it cost
The field test records it plainly: FT-FWK-CREW came back 10 of 14 rows and FT-FWK-PAI 9 of 14, with the missing rows marked not-available, the model never emitting a tool call for them. Every row that did emit a call decided exactly as expected. Zero policy mismatches. That last sentence is the whole ballgame: in hundreds of live rows, across eleven frameworks, my policy engine never once decided wrong. Every failure in the entire sweep was either the model declining to speak or my harness mis-wiring something. The engine itself stayed perfect, which is exactly what you want from the component you cannot patch in production.
The cost was a debugging detour, and it is the reason I am writing this. My first diagnosis was "flaky small model," written into the report as such. The real cause of most of those failures turned out to be my runner (one agent carrying all five scenario tools, so the model could call the wrong one), and you can read that whole arc in journal Groups 27 through 29 of the same report. The flakiness was real too, but a retry re-run turned the genuinely flaky rows green, because a second chance at a 75 percent behavior usually succeeds. The sweep's final state: 14 of 14 on both, captured pairs and all, on the same pinned model.
What I would do differently
- Benchmark with n of at least 20, not 3. The marginal cost is a few minutes per model on a local server. A confidence interval on tool-call rate is worth more than any p50 number.
-
Give sweep rows a retry budget before declaring
not-available. One retry on a 75 percent emitter turns it into a roughly 94 percent effective emitter. Two retries and you are past 98. A row should only be marked unavailable when the model refuses repeatedly. - Keep "model did not answer" separate from "policy decided wrong" in the status vocabulary. They have completely different remedies. One needs a retry, the other needs a fix. My report's four-state vocabulary (pass, fail, declared, not run) is what kept the distinction visible instead of letting everything blur into "red."
What sticks with me most: the benchmark was not wrong, it was underpowered, and underpowered benchmarks miss exactly the kind of intermittence that shows up in a real sweep. Llama-3.2 was caught because its failure mode is total. The 4B passed because its failure mode is intermittent, and three trials cannot see intermittent.
More detail and evidence
- The benchmark and its findings, in full: the OMLX LLM Benchmark section of the v0.1.0 field test report, including the model table, the disqualification, and the honest caveat about what p50 does and does not measure.
-
The runner that consumed the choice:
scripts/run_field_agents.py, and the per-row binding fix that resolved most of the "flaky" rows (journal Group 29). -
The model pin, everywhere it lives:
scripts/fieldtest/.env.example,lib.sh, andtests/field/agents/__init__.py. Re-runpython3 scripts/fieldtest/omlx_bench.pyon a new box to re-derive. - The plan that set the selection criteria: FIELD_TEST_PLAN.md (the model-choice section).
-
The product: agentpolicy,
pip install agentsec-agentpolicy, PyPI 0.1.0, part of the agentic-suite agent-security stack.
How many samples do you run before you trust a model for a role in your pipeline? I went from three to "as many as the sweep costs anyway," and I would like to hear where you landed.
Top comments (9)
Retries can make the final sweep usable, but I’d report first-attempt reliability alongside the eventual result. A row that succeeds on the second attempt is operationally different from one that succeeds immediately: it adds latency and may be unsafe to repeat if the first attempt had an uncertain side effect. Do you keep those attempts visible in the final report?
Exactly the right split — first-attempt and eventual are two different claims, and reporting only the eventual one hides the cost. The two numbers I'd publish side by side are the first-attempt rate with a Wilson interval, and the eventual rate, plus the retry cost in the units that matter: median added latency per retried row, and how many rows had a first attempt with a side effect, where a retry isn't even safe to run. One thing I'd add to the pre-registered bar: a retry budget — max attempts, or a latency cap — declared before the sweep runs. Without it, the retry policy can quietly rescue a model that should have failed the bar, and the headline reads 'reliable' when the honest word is 'usable after retries'.
That split is right, and I'd add a precondition and one more column.
The precondition: declare the retry budget, then falsify the harness before you trust the number it produces. My retry budget was on the list, and it would have papered over the runner bug that caused most of those reds. A budget that rescues a bug reads exactly like a reliability figure.
The column is the one I actually needed: split
not-availableinto 'model emitted no call' and 'model called something else'. Those were one status and two problems in my harness, and only one of them is a property of the model. That's your retry-cost idea pointed at the status vocabulary, since the failure kind is what decides whether a retry is even allowed.Your non-retry-safe count would have been zero here, because the side effect is a recorded decision and cheap to discard. A system with real side effects makes that count non-zero, and it changes the headline with it.
Agreed — and the ordering in your precondition is the part I'd underline: declare the retry budget, then falsify the harness, before trusting any number it produces. A budget declared after the harness is trusted is just a second chance for the bug. The split column is the real fix: failure kind decides whether a retry is even allowed. "Model emitted no call" is retry-eligible; "model called something else" is a harness defect, and retrying it measures nothing. Your non-retry-safe count being zero here is the lucky case — a recorded decision is cheap to discard. The moment a first attempt has a real side effect, that count becomes the headline, because a retry stops being a second sample and becomes a second transaction.
No, and your question found a worse problem than the one you asked about. The row schema records called, llm_called, llm_responded, decision, expected, status, passed. There is no attempt field, and no retry logic in the runner at all. The retries in that sweep were me re-running the suite by hand, and a re-run regenerates the rows, so first-attempt and eventual are indistinguishable in the record.
The worse part is what a retry would have done to those rows. They were red because my runner gave one agent all five scenario tools, so it called the wrong one. A retry would have gone green and I would have published a reliability figure for a defect in my own code. The harness fix is what closed them, not the second chance. Your instinct is right, one level over from where you aimed it.
On the side-effect caveat, you're right and it's the part that doesn't travel my way. Here the worst case of a retry is another recorded decision, cheap to discard. When a first attempt has a real side effect, a retry isn't a second sample, it's a second transaction, and that needs its own column.
This is the honest correction the thread needed — and credit to innokentyb, his question found it. If re-runs regenerate the rows, the record physically cannot distinguish first-attempt from eventual, so any reliability figure from it is a figure about the re-runs. The fix is small: an append-only attempt log, one row per attempt, never regenerated. And the sharper point is the one you make about the retry going green: a green retry after a harness bug is evidence about the harness, not the model. That ordering — falsify the harness first, then count — is what I'll take from this thread.
That 42% number is the whole story: at a true reliability of 75%, three straight successes happen about 42% of the time, so a 3-for-3 benchmark cannot distinguish a perfect emitter from a flaky one — it couldn't fail the model by construction. The fix I'd add is to pre-register the reliability bar before running trials, then keep sampling until the confidence interval excludes it. With 3/3, the 95% Wilson interval is roughly [0.44, 1.0] — it excludes nothing below 95%, which is exactly why the sweep was the first thing that could say no. Twenty trials gets you there for 95% vs 75%, but the interval is the general rule: stop when the interval clears your bar, not at a round number of trials.
The other thing worth naming: the sweep failed honestly. The missing rows came back "not-available" instead of silently becoming decisions — the failure surfaced as missing data, not wrong data. That's the same lesson I keep hitting in PDF extraction benchmarks: a pooled number ("3 for 3", "0.8s, exit 0") hides the per-unit distribution, and the per-unit view — per call here, per page in my case — is where the failure actually lives. Report per-call reliability with an interval and the sweep stops being a surprise.
Agreed on both, and the interval rule is the one I'd adopt, with a caveat I earned the hard way. Sampling until the interval clears your bar only measures the model if the row measures the model. In that sweep
not-availablewas quietly doing two jobs: the model said nothing, and the model called a different scenario's tool. My runner handed one agent all five scenario tools, so it often picked the wrong one and my recording key never matched. Both landed in the same status.So a pre-registered interval on that number would have measured my harness, not the model. Which is your pooled-number point one layer up: I pooled two causes into one row and then reported its rate.
Your read of the failure itself is right at the report level, and I want to keep it: nothing silent became a wrong decision, every row that did emit a call decided as expected. The conflation was about remedy rather than honesty, which is why the per-unit view is what exposed it. The captured request and response pairs showed the wrong tool picks. The status never did.
That caveat sharpens the rule into something usable: sample until the interval clears your bar — but only after the row measures one thing. Your not-available status was doing two jobs, so the interval would have certified the harness, not the model. The per-unit view is what saved it: the captured request/response pairs showed the wrong tool picks while the status stayed silent. The concrete fix I'd take from this thread is to split the status before sizing the sample — report "model emitted no call" and "model called the wrong tool" as two separate rates, then put the interval on each. Thanks for working through this in the open — this is exactly the kind of correction that makes the next sweep trustworthy.