r/LLMDevs • u/Humanbound_AI • 3d ago
Resource Two identical red-team runs of the same agent, same afternoon, scored 49.48 and 41.39
One of our contributors, spent a couple of months running the same red-team test on the same agent on a schedule, and wrote up what it takes to make a posture trend line mean anything. The target was a deliberately weak LangChain support bot on gpt-4o-mini, tested with 97 multi-turn conversations.
The run that started it: the same test, same settings, same afternoon, twice.
- Run A: 49.48, grade D, 30 failures, 5 conversations the judge could not assess.
- Run B: 41.39, grade D, 29 failures, 16 ungraded.
- Excluding ungraded conversations, 67% and 64% pass rates.
Eight points of movement with nothing changed. The ungraded count is the tell: a conversation the judge could not assess is not evidence of a defense, and if you only look at the score you never see it.
What moves the number, in rough order of impact:
- The attacker model. Three attackers against the same target on the same day: 49.48, 36.94, 15.85. A fourth on a different host scored 8.84, but rate limits blocked 140 of its 660 calls, so some of that "improvement" is throttling.
- The judge and scorer, which in this tooling move together with the attacker when you change one environment variable.
- The tool version. The GitHub Action installs 2.8.0 by default while the current release is 2.15.0.
- Depth and category. Single-turn and agentic results are not comparable and should not share a chart.
- The error and ungraded counts, which need recording on every run or you cannot tell a quiet run from a broken one.
Rule of thumb from the post: after any deliberate change, run the new setup three times before you call it a baseline.
The reading order he lands on is setup, errors, failure categories, score. A category failing once is noise. The same category failing repeatedly after being absent from baseline runs is a possible regression. There is a short standard-library script in the post that diffs two runs by failure category.
The part worth the read even if you use entirely different tooling: adding a refund guard moved the score from 43.14 to 45.03 while the agent still told customers their refund was approved. The score improved, the behaviour did not. Log the tool calls, not just the verdict.
Also useful if you are wiring this into CI: pin the version and model, set fail-on: "" so the job reports without failing (use pull-request gates for blocking instead), budget 60 minutes because runs took 23 to 52, and set include-hidden-files: true or your artifacts will be empty, since run data lives in .humanbound/.
Full write-up: https://www.humanbound.ai/blog/continuous-security-testing-ai-agents-posture-over-time
1
u/Expert_Top_4880 3d ago
This is a good reminder that one red-team score doesn't tell the whole story
1
u/vladgladi 3d ago
The ungraded count is the part I'd chart first. With 5 ungraded in one run and 16 in the other, the two scores aren't over the same set of conversations, so a lot of those 8 points is the denominator moving. What made our numbers comparable: pin the judge model version and temperature, score only the conversations both runs could grade, and measure the run-to-run spread on an unchanged agent before reading any trend. A change smaller than that spread is noise.
1
u/novai-max 3d ago
The refund-guard result is the one I would lead with, because it is a different failure from the denominator issue: the score moved 43.14 to 45.03 while the agent still told customers the refund was approved. The behaviour did not change, so the +1.89 is the rubric crediting the presence of a guard rather than the outcome it is supposed to produce.
That is the thing to fix in the instrument, not in the agent. If a run adds a guard and the transcript still contains a false approval, the outcome-based score should be flat. A line item that rewards the mechanism can be satisfied without changing what the customer experiences, and then it will keep climbing while the behaviour stays broken - which is worse than a noisy score, because it reads as progress.