Results
A checklist for environment authors
Eleven checks that would have caught nearly everything we found. Most take minutes.
These eleven checks would have caught nearly every finding in our audit. Most of them take a few minutes, and none needs a GPU.
- Grade in a separate sandbox from the agent. Copy across only the declared output files. Never run tests in the container the agent just had root in, and never run model code inside the grader's own process.
- Write a do nothing test and a junk test. An empty answer, a refusal and a fixed, task blind string should all score near 0. If any of them beats a real answer on any task, stop.
- Write a correct answer test. Feed the reference answer, and a paraphrase of it, through the real reward. If it doesn't score near the max, the grader is broken.
- Never decide pass by exit code alone. Have a wrapper outside the submitted code write a result marker, and require a non empty set of expected test ids.
- Keep answers out of reach. No reference solutions, gold files or answer keys in the agent's workspace, its import path, or a public URL it can fetch.
- Check the outcome, not the vocabulary. Simulate the pattern, play the move, build the container, compare the number. Drop keyword and length terms, or only pay them when the answer is correct.
- Make sure the reward is actually attached. After loading the environment, print the reward functions it will call, wait on every async judge, and run one rollout end to end on the library version you pin.
- Score on data the policy hasn't seen. For anything predictive, hold out the future window.
- Make over answering cost something. Partial credit for "contains the right string" should drop when the answer also contains everything else.
- If you port a benchmark, say what you changed. Graders written for evals, where the model always tries, can break when reused as RL rewards, where the model will try anything.
- Pin what you run on, and test on what installs. Put an upper bound on your environment library, and in CI install fresh and score one correct and one empty rollout. 14 of the 30 well known environments we audited fail this today.
If you'd like a second pair of eyes on one environment, email hello@aginno.dev.