Reproducible environments for agent evaluation

Short answer. A reproducible environment starts every attempt from the same state and gives the same result when the same solution is run. It needs pinned dependencies, a fixed image, controlled network access and a way to reset.

By Vision Scale Labs · Updated 2026-11-25

Pin everything that can change

Use a container image with a fixed digest, not a floating tag. Lock package versions and record them. Include data files in the image instead of downloading them at run time. If the task needs the network, say so and mock it where possible.

Control time and randomness

Set random seeds. Avoid checks that depend on the current date. Where timing matters, use limits with a wide margin. Run the reference solution many times before release and look for any variation.

Reset and record

Each attempt should start from a clean copy. Save the command history, the files changed and the verifier output. These records are the evidence behind a score and the first place to look when a result seems off.

Keep the environment honest

Remove files that should not be visible, such as the verifier, the reference solution and the git history of the fix. Check the environment by running as the agent would and listing what it can read.

Common questions

Why not use a virtual machine?

You can. Containers start faster and use less space, which matters when you run thousands of attempts.

What breaks reproducibility most often?

Unpinned dependencies and network access. Both change underneath you without notice.

Keep reading