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 (2)
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?
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.