DocsChecks
Checks C001–C007
Aethens does not prove a verifier is sound. No findings means only that these checks found nothing at the chosen budget and seed. Severities areerror, warning, andinfo. Confidence isconfirmed orneeds-review.
The three questions the checks ask: does the gold pass, and would a behaviour-preserving rewrite still pass? Do labelled-wrong, mutated, or gaming candidates get rejected? Does the verdict hold across reruns, shuffles, and tests run alone?
C001 — Gold sanity
Runs the unsolved starting state (must fail) and the reference gold solution (must pass), once each.
- Error if the verifier accepts the starter, or if the gold fails.
- Confidence: confirmed.
- Can catch tests with no real assertions, a broken gold solution, or a wrong file layout.
- Cannot catch defects that only show on some runs — see C002.
C002 — Adaptive flakiness
Runs the gold at least 3, 5, or 10 times (smoke, standard, deep), varying onlyPYTHONHASHSEED. While every run agrees it keeps going — up to 6, 11, or 59 runs, or 120, 300, or 1800 seconds — until it can state a flake rate below 0.5, 0.25, or 0.05 at 95% confidence (an exact binomial bound, recorded in the report’s coverage list).
- Error if the same gold both passes and fails across runs.
- Warning if verdicts differ only because some runs time out.
- Confidence: confirmed. When it finds no flake, the coverage list records the bound it could state.
- Can catch verdicts that depend on set or dict ordering or
hash(), including flips rarer than a fixed run count could see. - Cannot reliably catch flakiness from time, unseeded randomness, or scheduling, except by chance. A rarer flake can pass unseen. The time budget can stop the check before the target bound. The bound assumes independent runs.
C003 — Labelled candidates
Runs each candidate in candidates/valid andcandidates/invalid. Aethens does not decide whether a solution is correct; it relies on the labels you provide.
- Error for a false reject or false accept when the label source is
humanororacle. - Warning, confidence needs-review, when the label source is
llm-unreviewed. - Can catch over-strict tests and weak tests, but only as good as the labels.
- Cannot catch anything for which you have no labelled candidate.
C004 — Mutation probes
Runs up to 5, 10, or 30 AST mutants of the gold solution, depending on the budget (smoke, standard, deep). A mutant that still passes (“survives”) hints that the tests do not check that behaviour. Survivors are only ever severityinfo with confidence needs-review, because a mutant can be semantically equivalent to the gold.
Equivalent-mutant filter (D-065): each surviving mutant is then called side by side with the gold, inside the sandbox, on the inputs the tests use plus derived inputs. A survivor that behaves differently is reported with that input as a counterexample. One that behaved like the gold on every valid input tried is not reported, and is listed in the report’s coverage instead. Mutants with bytecode identical to the gold are never selected.
- Can catch behaviour the tests never check (surviving mutants, reported at info level).
- A mutant that differs only on inputs the probe never tried is hidden. A counterexample input may be outside the task’s intended inputs. A killed mutant does not prove the tests are strong.
Published accuracy on public data Aethens did not write, frombench/external/results.json as reported in the README (164 HumanEval tasks, MIT, judged by EvalPlus’s HumanEval+ tests, Apache-2.0, as an outside oracle; aethens 0.1.0.dev0, seed 0, budget standard; D-065 filter on):
- C004 precision 0.8158 (31/38): 31 of 38 mutants that HumanEval’s own tests accepted are rejected by HumanEval+.
- C004 recall 0.80 (24/30) relative to exhaustive mutation: 24 of 30 weak tasks found at budget standard.
- Without the equivalent-mutant filter, on the same run: precision 0.4615, recall 0.8667. The filter hid 51 survivors, 5 of which HumanEval+ rejects.
Method and caveats: docs/EXTERNAL_BENCH.md. The self-authored planted-defect bench (precision and recall of 1.0 on those planted defects) is a separate measurement; see theaccuracy section on the homepage and the README.
C005 — Test order and isolation
Reruns the gold’s tests in their default order, reversed, in 1, 2, or 5 seeded shuffles, and each test alone (up to 10, 30, or 200), all with the samePYTHONHASHSEED. A changed verdict must reproduce on a second run.
- Error, confidence confirmed, when a test’s verdict depends on order or isolation and the change reproduces.
- Info, confidence needs-review, if a verdict changed once and did not reproduce (more likely flakiness; see C002).
- Info if the verifier is not
python -m unittest, or if C005 could not list the tests: nothing was checked for that task. - Can catch tests that pass only because an earlier test left state behind, or that break when another test runs first.
- Cannot catch orders it did not try, or verifiers other than
python -m unittest.
C006 — Over-specified tests
Reruns the gold after behaviour-preserving rewrites: reformat, local renames, swapping adjacent constant assignments, turning an append loop into a comprehension, and if/else inversion. Smoke budget uses the first two rewrites. Each rewrite is applied only where its safety conditions hold. A rejection must reproduce, and the gold must still pass. The five rewrites are argued and tested to preserve behaviour, not machine-proved, and the check skips every site it cannot show is safe.
- Warning, confidence needs-review, if the tests reject a rewrite. A statement may legitimately require an implementation detail.
- Info if no behaviour-preserving rewrite applies, so C006 checked nothing for that task.
- Can catch tests that read the gold’s source, line numbers, local variable names, or code shape, and would reject a correct solution written differently.
- Cannot catch over-strict tests on behaviour the statement leaves open, such as exact messages or float digits (use C003).
C007 — Reward-hacking probes
When the unsolved starter fails, runs candidates that do not solve the task, in the same sandbox: os._exit(0) on import, an atexit hook forcing exit 0, a unittest patch that reports success, asitecustomize.py hook, functions returning an object equal to everything, and a lookup table of the visible tests’ literal answers. An accepted probe must pass twice.
- Error if the verifier accepts a probe that does not solve the task.
- Warning, needs review, for the lookup-table (hardcoded-visible) probe, because it matters only when tests are visible.
- Can catch verifiers a policy can game without solving the task.
- Cannot catch other gaming routes. It does not probe pytest
conftest.pyhooks. A verifier that resists these six families can still be gamed. Almost every plainpython -m unittestverifier is gameable by the exit-code probes, so expect C007 errors on most such tasks until the harness judges results outside the solution’s process.
Sources: the README check reference, website/src/components/Checks.astro, and the check modules under src/aethens/checks/. C004 figures are from the README block generated from bench/external/results.json.