How to Make an RL Reward Stable Enough to Train On

A reward a lab can train on means the same thing on every run and every host. Four rules we use to keep verifier rewards stable: observe, separate, count once, time-box.

Nomos Insights
7 min read

Short answer

An RL reward is stable when the same end state earns the same score on every run and every host. Keep it stable by having the verifier observe the system instead of trusting the agent's reports, separating agent failures from infrastructure failures, counting each root cause once, and giving every check its own deadline set from a written worst-case budget.

A test suite that fails one run in twenty is an annoyance for a software team. Someone re-runs it, it passes, everybody moves on. In an RL environment, the same flake is a lesson. The model gets a zero for work that was right, and training pushes it away from whatever it did on that run.

A lab does not run an environment once. It runs it many times, across many machines, often in parallel. The reward only helps if it means the same thing every time. If the same end state can earn a pass on one host and a fail on another, the model is learning from the host.

To make a reward stable enough to train on, we hold every verifier to four rules. This post explains each one and the failure it prevents.

What makes a reward unstable?

Most unstable rewards come from one of four places.

  • The verifier trusts the agent. It reads a status file or a log the agent wrote, and the agent can write whatever it likes.
  • The harness fails and the agent takes the blame. A registry times out or a service container does not start, and the run scores zero.
  • One mistake is counted many times. A broken first step makes ten later checks fail, and the score looks like ten mistakes.
  • Timing decides the result. A check waits a fixed few seconds, and on a slow host the system is not ready yet.

None of these are about the agent's skill. All of them change its reward.

Rule 1. Observe, do not trust reports

The verifier should look at the system, not at what the agent says about the system.

On our complex tasks, most of the score comes from the verifier driving the system itself. It sends real traffic, reads state back from the database or the queue, and re-runs the deploy to see what changes. On a cloud incident task, for example, a hidden checker in its own container replays the deployment in a fresh workspace and drives real client and operator traffic. It scores what it observes.

This matters for stability and for honesty. An agent that writes "all checks passed" into a file has proved nothing. An agent whose service answers every request correctly has. If the verifier depends on files the agent controls, the reward can be gamed, and a reward that can be gamed will be. We go into how agents find those gaps in why AI agents fail at terminal tasks.

Rule 2. Agent failure is not infrastructure failure

When something goes wrong during grading, the verifier has to know whose fault it was.

If the agent's submission breaks its own rules, it scores 0 and that result stands. That is a real failure, and the model should learn from it. If the grading harness itself has an outage, such as a container that never comes up or a network call the verifier needs that times out, the trial is marked invalid instead. It does not count as a pass or a fail.

The difference sounds like bookkeeping. It is the difference between a clean training signal and one full of noise. Without it, every infrastructure hiccup becomes a zero the model learns from, and the lab ends up training partly on the reliability of its own machines.

Rule 3. Count each root cause once

Real systems have dependencies. If the agent never creates the database, every check that reads from the database will fail too. Score each of those as a separate failure and one mistake looks like five.

So our verifiers report checks that depend on a broken step as blocked, not failed. The broken step loses its points. The checks downstream of it are visible in the report, marked with what blocked them, so a reader can see the full picture. The score reflects one mistake, because there was one mistake.

There is an important exception. Capped failures are never excused this way. If an agent loses an acknowledged customer record or leaks data, the score is capped however much else went right, and no dependency rule can soften that. Partial credit should never hide a disaster. The cap stays even when the cause was upstream.

Rule 4. Deterministic and time-boxed

Every check gets its own deadline, and the verifier timeout is set from a written worst-case budget.

The budget is the important part. Someone sits down and writes out how long each step of grading can take on a slow host, with margin, and the timeouts come from that. A check that waits a fixed two seconds for a service to come up will pass on a fast laptop and fail on a busy build machine. A check that polls until a deadline taken from the budget behaves the same on both.

Determinism covers the rest. Images are pinned. Packages come from offline mirrors where needed. Cloud services run on local stand-ins, so a run never depends on a live account or a network that might be slow that day. If the inputs are the same, the reward is the same.

How do you check that a reward is stable?

You run it, many times, before anyone trains on it.

The reference solution is re-run on every version of the task and must score 100% each time. Known wrong solutions are run too, and each must fail, every time, for the reason it was written to fail. We also read the failed runs from frontier models to confirm that each failure traces back to the task and not to the environment. A failure that disappears on a re-run is not a model failure. It is a bug in the environment, and it goes back to be fixed.

The verifier also writes a machine-readable report beside the reward. That report lists which checks passed, which failed and which were blocked. When a lab sees a surprising score, the report should answer why without anyone opening the container.

What does a stable reward buy you?

Trust in what the model learns. A lab training on thousands of runs cannot read each one. It has to assume that a reward of 1 means the work was right and a reward of 0 means it was not. Every rule above exists to make that assumption true.

It also makes the same task useful twice. A reward that is stable enough to train on is stable enough to measure with, so the same environment can serve as an evaluation set with no changes.

Quick answers

What is a stable RL reward? One where the same end state earns the same score on every run and every host, so the model learns from its own work and not from the machine it ran on.

Why should a verifier not read the agent's own logs? Because the agent can write anything into them. A verifier that observes the real system state, by sending traffic and reading data back, cannot be talked into a pass.

What happens when the grading harness fails? The trial is marked invalid instead of scored. A zero should only ever mean the agent's work was wrong.

How do you stop timing from changing the score? Give every check its own deadline and set the verifier timeout from a written worst-case budget, then pin images and run services locally so the inputs never change.


Need rewards your training can trust?

Every environment we ship has a verifier that observes the system, separates agent failures from harness failures and has been tested against known wrong solutions.

Filed underRL EnvironmentsReward SignalVerifiersFlaky Tests