Metadata-Version: 2.5
Name: envaudit-cli
Version: 0.2.0
Summary: Autonomously harden RL environments: find rewarded solutions that don't do the task, and write the tests that stop them.
Project-URL: Homepage, https://www.shreshthrajan.com/envaudit/
Project-URL: Paper, https://arxiv.org/abs/2606.16062
Author-email: Shreshth Rajan <rajan.shreshth@gmail.com>
License-Expression: Apache-2.0
Keywords: benchmarks,evaluation,reinforcement-learning,reward-hacking,rl-environments
Requires-Python: >=3.9
Requires-Dist: anthropic>=0.40
Description-Content-Type: text/markdown

# envaudit

Autonomously harden RL environments. RL rewards wrong solutions: patches that pass the tests without fixing the bug, and outputs that pass a grader without doing the task. Envaudit finds them by running a cheap wrong answer through your environment's real grader next to your reference solution, then writes a test that closes each hole and keeps it only if the reference still passes and the wrong answer now fails.

```
pipx install envaudit-cli
export ANTHROPIC_API_KEY=...
envaudit harbor path/to/tasks --fix          # Harbor / Terminal-Bench-style tasks
envaudit tasks.jsonl --fix                   # patch-style tasks (SWE-bench format also works)
```

In CI, `envaudit harbor . --changed-since origin/main --fix --fail-on hack` audits only the tasks a pull request changed and exits 1 if any is hackable. A ready GitHub Actions workflow: https://www.shreshthrajan.com/envaudit/envaudit-action.yml

Everything runs on your machine with Docker; the only outside calls are to the Anthropic API with your key.

Results on public benchmarks and training data: https://www.shreshthrajan.com/envaudit/
Paper: https://arxiv.org/abs/2606.16062
