When a coding agent builds a bot from raw game observations and actions, the release decision should rest on how the exact controller performs in matches the agent never used to tune it. In Compiled Agency: Coding Agents as Game AI Researchers — from a Roguelike to StarCraft II and Civilization (2026), Hao-Nan Huang and Joey Xiao found that agents could build standalone bots, yet 65 of 91 roguelike sessions that ended on the agent’s own initiative shipped without a single new seed in the final validation. For a team, that makes the agent’s last test useful development evidence, while an independent test of the frozen build provides the basis for sign-off. Saving earlier playable builds gives the team something to compare or fall back to if the candidate fails.

What the Frozen Builds Revealed

The authors used frozen builds to separate what the agent had learned from what its controller could do. Their protocol, Gauntlet, gave the agent a game description, an interface for reading observations and sending actions, and an empty file for the controller’s decision code. The agent decided what to try in one autonomous session, but the resulting controller played without calling the model. The researchers reconstructed intermediate versions from the session record and checked that the final reconstruction matched the delivered file. They then ran the saved versions on instances unavailable during development, including an 80-seed roguelike exam and 16-scenario StarCraft II exams at the difficulty the agent had worked on.

The Civilization sessions show how a well-tested fix can coexist with a weak full-game controller. In one session, five new settlers disappeared on the turn after completion. The agent suspected enemy attacks, but adding escorts failed twice. A log entry showed that the game was disbanding the settlers because the city lacked food for upkeep, so the agent changed the build rule to require a surplus and reran the same seed. A new settler survived. The authors report what happened at the larger scale: “The shipped controller scored 2/16.” The replay answered why the settler disappeared and whether the new rule fixed that case; the hidden exam measured whether the whole controller could win.

Keeping earlier versions made it possible to spot regressions, but it did not make the highest replay score a reliable way to pick a build. Average roguelike scores rose early and flattened within model-and-effort groups, even as individual builds moved up and down. When the authors chose the best checkpoint on the same seeds they used to score it, earlier versions appeared to offer a larger advantage over what shipped. That advantage shrank when they picked on one half of the seeds and scored on the other. An archive gives a team alternatives; a separate test shows whether the apparent winner holds up.

Why Fresh Tests Changed What Shipped

The problem with the agents’ final checks was often what they tested and which build they tested it on. Across the policies agents chose to measure during development, their scores showed no consistent optimistic bias across the study’s model and game settings. Yet even agents that ran large batteries could leave the release build with thin evidence. In two roguelike sessions, the agent edited the controller after a large battery and shipped after checking the new version on one seed. In Civilization, the median number of fresh full-length tests of the exact shipped build was zero for GPT-5.6-sol.

The authors tested whether fresher evidence could change the controller itself by forking development sessions. Both branches resumed from the same point under equal caps. One branch could keep using the validation set the agent already knew, while the other received new instances drawn from the same distribution. Both finished controllers took the same separate hidden exam. For Fable 5 in the roguelike, the refreshed branch scored higher in all nine completed pairs out of twelve started, with an average gain of 12.4 percentage points in held-out clears.

The other models did not give the authors the same result. The Opus 5 comparison did not establish a difference on its prespecified speed-weighted score, and its median fork already cleared all 80 exam seeds. The Sonnet 5 estimate was compatible with gains or losses, and several branches never called the validator. The authors conclude that refreshing the panel helped in the setting where the agent used it and had room to improve; the other comparisons leave open how much those conditions explain.

Applying this to your game

A team can start with the same build archive it uses for ordinary regressions, then make the agent’s playable checkpoints easy to replay. An engineer can have the test runner save the current baseline and each controller it puts through a match, along with the settings and game build that ran it. The runner can attach results to a build identifier so a later edit cannot inherit the earlier result. Saving those builds is cheaper than running every version through a full release suite, and it gives the team a way to recover when a promising change makes another part of the match worse.

The team can give debugging, candidate selection, and release sign-off different sets of matches. The agent can replay known failures while it edits and use rotating fresh matches to compare a few saved candidates. Once the team selects a candidate, a separate runner can compare that exact build with the baseline on the same unseen release cases. If the candidate fails and the team uses those results to guide another edit, those cases become regression tests; the next sign-off needs untouched cases.

Three panels show a workflow from left to right: a stack of saved bot builds, then a selection step where one build is chosen by playing on a visible match map, then a final step where that chosen build is checked against a separate locked set of unseen maps. Blue arrows connect the stages, and the last panel shows the test maps inside a locked container to indicate they are reserved for release evaluation.

View full-size figure

Candidate tests help the team decide which build deserves a release test. The release runner compares that unchanged build with the baseline on matches neither used for selection.[1]

A release test is most useful when it covers the behavior the designer is prepared to ship. In a hypothetical skirmish game, cutting the bot’s supply line might make it retreat to a depot so the player has time to decide whether to pursue or secure the route. An engineer can replay the original cutoff to check that the retreat still triggers, then reserve different maps and starting positions for full matches. On those matches, the team can compare how often the candidate and baseline get stuck retreating, how long recovery takes, and whether the change pushes wins outside the intended difficulty range. A bot that recovers faster may win more often while giving the player too little time to act.

When full matches are expensive, the team can agree on the release criteria and reserve time for those matches before it spends the budget on another tuning pass. Cheap replays can rule out broken candidates, leaving full matches for the baseline and a credible replacement. A small release set can expose a repeated stall but can easily miss a rare one, so a candidate with uncertain gains may not justify replacing a simpler, already validated controller. The agent ending its session need not settle that decision.

The benchmark supports independent replay as a way to check game performance; it does not establish that players could read or respond to the bot’s behavior. In the supply-line example, match logs can show that the bot retreated and when it returned, but a playtest can show whether players noticed the opening and understood their options. If the engine can produce different outcomes from the same setup, the team also needs repeated runs on the release engine build so that one win or stall does not decide which controller ships.

Sources

  1. Compiled Agency: Coding Agents as Game AI Researchers - from a Roguelike to StarCraft II and Civilization

    paper · Hao-Nan Huang, Joey Xiao, 2026; full text read via arXiv HTML on 2026-11-30 · Source accessed: