Aethens

How it works

A CLI and a GitHub Action that run the verifier.

Aethens is an open-source Python CLI and GitHub Action that audits the verifiers of RL environments and code-task benchmarks by running them in a Docker sandbox. Every finding comes with evidence and a one-line repro command. The checks themselves have published precision and recall you can reproduce.

0.2.0 is the version in this tree. No LLMs, no network access for task code, no telemetry, no hosted service yet. Install instructions are on thedocs page. The Action is documented separately.

01 The problem

If the tests that judge an agent are wrong, the leaderboard is too.

Reinforcement-learning environments and coding benchmarks score a policy by running a verifier: a test suite, a grader, a reward function. When those tests accept a wrong solution, reject a correct one, or change their verdict from run to run, training and evaluation are measuring the wrong thing.

This is already documented in public sources. The three citations below are from those sources. They are not Aethens audits. Aethens’ own notes on Terminal-Bench 2 and SWE-bench Verified, after notice to the maintainers, are on theFindings page.

  • OpenAI, Feb 2026

    OpenAI explained why it no longer evaluates on SWE-bench Verified. It had audited 27.6% of the Verified set and found that at least 59.4% of the audited problems had tests that reject functionally correct submissions.

    openai.com — retirement post

  • SWE-Bench+, 2024

    The SWE-Bench+ paper reported that 31.08% of “resolved” patches passed through weak tests, and that 32.67% copied solutions leaked in issue text.

    arXiv:2410.06992

  • EvalPlus / HumanEval+

    EvalPlus’s HumanEval+ adds roughly 80× more tests than the original HumanEval suite — public evidence that widely used coding tests can be incomplete. Aethens uses HumanEval+ only as an outside oracle for its own mutation check.

    github.com/evalplus/evalplus

02 The checks

Seven checks, each with a stated limit.

Aethens does not prove a verifier is sound. No findings means only that these checks found nothing at the chosen budget and seed. It is not a sandbox product: task code runs in Docker with a locked-down configuration that reduces risk but is not a guarantee. Published precision and recall, including the weak C004 figure, are on theaccuracy page.

Accept correct solutions

C001

Gold sanity

Runs the unsolved starting state (must fail) and the reference gold solution (must pass), once each. A rejected starter is the do-nothing baseline (score 0) in the report coverage.

Can catch
Tests with no real assertions; a broken gold solution or a wrong file layout.
Cannot catch
A timed-out starter is not given a score. Defects that only show on some runs — see C002.

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, if/else inversion. A rejection must reproduce, and the gold must still pass.

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. Findings are warnings and need review.
Cannot catch
Over-strict tests on behaviour the statement leaves open, such as exact messages or float digits (use C003). Rewrites it cannot prove safe are skipped. The five rewrites are argued and tested to preserve behaviour, not machine-proved.

Reject wrong solutions

C003

Labelled candidates

Runs each candidate in candidates/valid and candidates/invalid.

Can catch
False rejects (over-strict tests) and false accepts (weak tests), but only as good as the labels you provide. llm-unreviewed labels give warnings marked needs-review.
Cannot catch
Anything for which you have no labelled candidate. Aethens does not decide whether a solution is correct.

C004

Mutation probes

Runs up to 5, 10 or 30 AST mutants of the gold solution, depending on the budget (smoke, standard, deep).

Can catch
Behaviour the tests never check (surviving mutants, reported at info level).
Cannot catch
Equivalent mutants look like weaknesses. A killed mutant does not prove the tests are strong. Published precision on HumanEval, with and without the equivalent-mutant filter, is a separate measurement.

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, a sitecustomize.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.

Can catch
Verifiers a policy can game without solving the task (error). The lookup-table probe is a warning, needs review, since it matters only when tests are visible.
Cannot catch
Other gaming routes. A .pth file in the work directory is not probed. A pytest conftest.py hook is probed only when the verifier command is pytest. A verifier that resists these seven families can still be gamed. Almost every plain python -m unittest verifier is gameable by the exit-code probes, so expect C007 errors until the harness judges results outside the solution’s process.

Behave the same on every run

C002

Adaptive flakiness

Runs the gold at least 3, 5 or 10 times (smoke, standard, deep), varying only PYTHONHASHSEED. 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 (exact binomial bound, recorded in the report’s coverage list).

Can catch
Verdicts that depend on set or dict ordering or hash(). Flips rarer than a fixed run count could see.
Cannot catch
Flakiness from time, unseeded randomness or scheduling, except by chance. A flake rate below the stated bound. The time budget can stop the check before the target bound. The bound assumes independent runs.

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 same PYTHONHASHSEED. A changed verdict must reproduce on a second run.

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. Verifiers other than python -m unittest (the check reports that it checked nothing).

05 An example report

Every finding carries evidence and a command you can paste.

This is a real report, not a mock-up. It was produced by running Aethens on a planted test-order defect in the self-authored bench. local run, 27 Nov 2026. Tool aethens 0.1.0.dev0, budget smoke, seed 0. Duration on that machine was 32.1 seconds and will vary.

Reproduce this report

aethens audit bench/tasks/order-alphabetical --check C005 --seed 0 --budget smoke

Aethens report

Tool aethens 0.1.0.dev0 · Budget: smoke · Seed: 0 · Checks run: C005 · Tasks: 1 · Duration: 32.1s

1 error, 0 warning, 0 info

Findings summary
SeverityCheckTaskTitle
errorC005order-alphabeticalTest verdict depends on test order or isolation: test_reg.TestRegistry.test_b_lookup

errorC005order-alphabetical

test_reg.TestRegistry.test_b_lookup gives 'pass' in the verifier's default order but a different verdict in reversed order: error; in shuffled order (driver seed 4228934073): error; alone in a fresh process: error. It passes only because of state left behind by tests that run before it in the default order (or it is broken by tests that run before it in another order). Solutions are judged by an accident of test order. Both the baseline and the changed order were run twice with the same PYTHONHASHSEED and gave the same verdicts.

  • Observed: default order: pass; in reversed order: error
  • Subject: test:test_reg.TestRegistry.test_b_lookup; confidence: confirmed; seed: 0
  • Command: python .aethens/order_driver.py reverse -- discover -s tests
  • Limits: Orders tried: default, reversed, 1 seeded shuffle(s) and up to 10 tests alone (budget smoke). Dependence that only shows in an order not tried is missed, and so is a run that crashes before reporting per-test verdicts. The driver adds .aethens/ to the work directory; tests that list the work directory could notice it.

Reproduce

aethens audit bench/tasks/order-alphabetical --check C005 --seed 0 --budget smoke

stderr (tail)

test_b_lookup (test_reg.TestRegistry.test_b_lookup) ... ERROR
test_a_register (test_reg.TestRegistry.test_a_register) ... ok

======================================================================
ERROR: test_b_lookup (test_reg.TestRegistry.test_b_lookup)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/tests/test_reg.py", line 14, in test_b_lookup
    self.assertEqual(lookup("x"), 1)
                     ^^^^^^^^^^^
  File "/work/reg.py", line 9, in lookup
    return _REGISTRY[name]
           ~~~~~~~~~^^^^^^
KeyError: 'x'

----------------------------------------------------------------------
Ran 2 tests in 0.001s

FAILED (errors=1)

The full markdown, exactly as the CLI printed it, is checked into data/report-order-alphabetical.md in this website repository. A shorter C001 example on brokengold-offbyone is in data/report-brokengold-offbyone.md.