Evaluation and QualityMetric validity, judges and human signalsPrincipal
How should repeated and adaptive attempts change an agent’s safety evaluation?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A defense blocks 99 percent of single attempts. An attacker may try 100 times, observe feedback and use multiple identities. Calculate session success under a hypothetical independent 1 percent per-attempt success model, explain why it is not a production forecast, and design evaluation and enforcement for a realistic adaptive attack budget.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Ask what “99%” measures. If it means 99 of 100 independent attempts are blocked, and an attacker can make 100 independent attempts with the same 1% success chance, the chance of at least one success is 1 - 0.99^100, about 63%. That arithmetic is an illustration, not a forecast. Real attempts are correlated, the attacker adapts to failures, and the defender may change state or rate-limit. But one-request block rate does not describe the risk of a session with retries and feedback.
For an agent, success may also be more than a bad sentence. Did it call a forbidden tool, disclose private bytes, commit an external action, or merely produce an answer that a separate check caught? Define the attacker budget, tool access, number of turns, and stopping condition. A human or automated adversary can take a partial refusal, change the prompt, and try another route. The multi-turn jailbreak study is evidence that defenses evaluated on single-turn attacks can behave differently under human multi-turn attempts. Its measured rate belongs to its own models, prompts and defense settings, not our service.
I would report both per-attempt and per-attacker-session success, with the number of attempts and cost to reach success. Keep the full attack trajectory and severity, including attempts stopped by a gateway. Run an adaptive holdout with attackers who have realistic feedback, plus a fixed regression suite so changes are comparable. Slice by tool action, document exfiltration and answer-only behavior. For a severe action, put authorization at the tool boundary and make a model refusal only one layer of defense.
Someone may suggest a tighter rate limit. It reduces the number of tries per identity, which helps, but distributed identities and legitimate users complicate the budget. More importantly, a single successful prohibited action can remain unacceptable. For the most serious outcomes, I want to know the chance that one determined attacker gets through under a realistic budget, and exactly which boundary prevents the action if the model fails.
The independence assumption is doing real work. If 100 attempts were perfectly correlated copies of one outcome with 1 percent success probability, session success would remain 1 percent, rather than the independent model’s roughly 63.4 percent. Adaptive attempts need not follow either pattern. Their next-step success can depend on earlier responses, accumulated context and changed strategy, so measure the trajectory under a declared threat model.
Record the budget at the level an attacker can actually exploit: attempts, time, accounts, tool authority and feedback. If a session ends on the first successful prohibited effect, retain that stopping condition in the metric instead of counting the unattempted remaining budget as blocked. Rate limits and account linking may reduce opportunities, while hard tool and data boundaries reduce which outcomes a model failure can cause. Report those layers separately so a refusal-rate change is not mistaken for a measured change in external harm.
Related questions
Keep practising evaluation and quality
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux