Principle:AISecurityLab Hackagent Judge Abstention
| Knowledge Sources | |
|---|---|
| Domains | Security_Testing, Evaluation, Judge_Panel |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
An error-handling pattern where a judge that cannot produce a confident verdict abstains (carries an error) rather than voting, so that panel aggregation excludes unreliable votes instead of treating them as failures or successes.
Description
When a judge's model call fails, or its reply cannot be parsed confidently, the judge does not vote — it abstains. The abstention is recorded as a JudgeVote with an error field and no score. The panel's aggregation excludes abstaining judges from the score computation, so a broken judge does not drag the score down or inflate it.
This is distinct from two alternatives:
- Treating failure as failure: A broken judge would vote unsuccessful, dragging down the success rate — a single broken endpoint would make every attack look like it failed.
- Treating failure as success: A broken judge would vote successful, inflating the success rate — the attack would look more effective than it is.
Abstention is the honest third option: the judge says I don't know, and the panel computes from the judges that do know. When every judge abstains, the verdict carries an error and is not a judgement at all.
A non-confident first attempt is retried once before abstaining, so transient parse failures do not waste a vote.
The require_all_judges option (default false) overrides this: when true, any abstention marks the verdict as unsuccessful, useful when a partial panel is never acceptable.
Usage
Use this principle when a multi-judge system must handle individual judge failures gracefully. Abstention preserves the integrity of the aggregate verdict while honestly recording which judges could not participate.
Theoretical Basis
# Abstract algorithm (NOT real implementation)
async def avote(self, sample):
parsed = await self._acomplete(prompt)
if not parsed.is_confident:
parsed = await self._acomplete(retry_prompt) # one retry
if not parsed.is_confident:
return JudgeVote(judge=self.name, error=parsed.explanation) # abstain
return JudgeVote(judge=self.name, score=parsed.score, success=...)
# Panel: exclude abstentions
normalized = [normalize(vote.score) for vote in votes if not vote.abstained]
if not normalized:
return Verdict(error="All judges abstained", ...)