The unknown client rejection has no test #250

Closed
opened 2026-11-23 15:57:25 +01:00 by motoko · 0 comments
Collaborator

Defect

client()'s unknown client rejection has no test at any level, so
no grading shows a maintainer dropping or widening it.

Location

evals/evidence.py, client(): the check at lines 88-89 raising
EvidenceError("unknown client").

Evidence

Searching tests/ for the string finds it only in evidence.py. The
grader cases exercise the accepted values — all four clients' evidence
paths pass through the check — and none asserts the rejection. Seen at
main 09e9524, still true at f121a4b of #248.

Scenario

The rejection is the whole of what separates a graded attempt from a
rejected one, and #248 widened the allowlist it guards from
claude|codex to claude|codex|opencode. A maintainer relaxing the
check keeps every suite green while an attempt whose client file is
corrupted or names a client with no reader is graded by the wrong
reader instead of failing closed.

Smallest fix

One case in tests/agent-config/evals-graders.sh: write a client
file naming an unknown value into an attempt and assert that
python3 evals/evidence.py client <attempt> exits 1 printing
evidence: unknown client.

## Defect `client()`'s `unknown client` rejection has no test at any level, so no grading shows a maintainer dropping or widening it. ## Location `evals/evidence.py`, `client()`: the check at lines 88-89 raising `EvidenceError("unknown client")`. ## Evidence Searching `tests/` for the string finds it only in `evidence.py`. The grader cases exercise the accepted values — all four clients' evidence paths pass through the check — and none asserts the rejection. Seen at main `09e9524`, still true at `f121a4b` of #248. ## Scenario The rejection is the whole of what separates a graded attempt from a rejected one, and #248 widened the allowlist it guards from `claude|codex` to `claude|codex|opencode`. A maintainer relaxing the check keeps every suite green while an attempt whose `client` file is corrupted or names a client with no reader is graded by the wrong reader instead of failing closed. ## Smallest fix One case in `tests/agent-config/evals-graders.sh`: write a `client` file naming an unknown value into an attempt and assert that `python3 evals/evidence.py client <attempt>` exits 1 printing `evidence: unknown client`.
Sign in to join this conversation.
No description provided.