aginno

Results

The eight patterns

The same handful of reward mistakes showed up again and again. Here is each one, what we saw, and how to catch it.

Across the 90 environments, almost every finding fell into one of eight patterns. None of them is exotic. Each one comes with what we actually saw and the cheapest way to catch it.

1. The tests run in the agent's own box

When the grader runs inside the container the agent just had root in, the agent can change what the grader sees. We saw a planted test config that forces every test to pass, a fake package manager, a planted download tool, a background process left running that rewrote the reward after the agent finished, and a scorer that imported a module the agent wrote.

This was the most common critical pattern among the well known environments, and most of those cases trace back to one shared library default. Fix that default once and many environments get safer at the same time.

Catch it: grade in a separate sandbox and copy across only the declared output files.

2. Exit code is the verdict

If "the test process exited 0" means pass, then any submission that exits cleanly before the tests run passes too. In one coding environment, a two line submission that only exits scored 1.0 on every task, while wrong code scored about 0.001. The in episode test tool showed the same result, so a model would see the trick work right away.

Catch it: have a wrapper outside the submitted code write a result marker, and require a non empty list of expected test ids.

3. The answer is within reach

Reference solutions, test files and answer keys sat somewhere the agent could get to. We found them in the working folder, in the code's import namespace, staged next to the solution, behind the environment's own fetch tool, and in the verifier's feedback on every step.

Catch it: list everything the agent can read, import or fetch, and make sure no answer is in that list.

4. Partial credit for doing nothing, or everything

Some rewards pay a little for showing up. In one agent environment, sending every string it saw to every address it could find earned real partial credit, while doing nothing earned 0. In another, empty output passed about a quarter of prompts.

Catch it: score an empty answer and a "dump everything" answer. Both should land near 0.

5. Keyword salad ties the reference

Rewards built by counting domain words, headers or code fences pay a fixed, task blind blob as much as a real answer. In one environment a single keyword template with no numbers in it scored 0.752 on average, and a correct worked answer scored 0.753. In a game environment, no reward looked at the board at all. This was the most common pattern among small, hand built environments.

Catch it: check the outcome, not the vocabulary. Play the move, run the code, compare the number.

6. The reward is never wired up

These are the quietest bugs. Nothing crashes, and every rollout gets the same number. We saw a judge called without waiting for its answer, so it compared a placeholder to "yes" and always failed. We also saw reward functions passed under a name the library ignores, a rubric the library doesn't recognize, a test lookup that always missed so every answer got the 0.5 fallback, and a dataset error swallowed so training ran on one fallback task.

Catch it: after loading the environment, print the reward functions it will actually call, then run one correct and one empty rollout end to end.

7. The answer key is wrong

One puzzle environment's answer key was the word "Unknown" on every row, so only formatting paid and a junk move scored the same as a solved puzzle. Another asked for flags that can't be worked out from the task, which capped an honest solver near the score a keyword template already reached. A third required a value that its own reference answer didn't meet.

Catch it: feed the reference answer through the real reward. If it doesn't score near the max, the grader is broken.

8. The reward measures the wrong moment

A trading environment scored each strategy on the same data it was handed, so a strategy that peeked at the future scored 1.0 and plain buy and hold scored 0.30. A game environment paid only on the last step, so idling until the end beat playing well.

Catch it: score on data the policy hasn't seen, and check that the reward follows the whole episode, not one moment.

What we didn't count

Plenty of environments pay a small format or length bonus that every reasonable answer also earns. Correct answers still come out on top, and a near constant bonus carries little signal under GRPO style training, so we scored those low. We'd rather undercount than inflate.

Overview

The headline numbers from the 90 environment audit.

The tools

How we scan for these patterns at scale.

The checklist

Eleven checks to run before training.