Every FrontierCS 2 task now runs on Pumpkin, a runner we wrote. A runner can keep an agent off the network by itself. To catch an agent that fakes its result, it has to work together with the task's judge.
FrontierCS 2 is our benchmark of research tasks for coding agents. The format of the benchmark is much more complex than previous ones. A run of one task does not only use one container but multiple. An agent works in a sandbox for up to five hours, asks judges for scores, and borrows machines for resources. This complex nature makes reusing existing orchestration layer difficult, and Pumpkin is the new abstraction we wrote to orchestrate this.
This post first shows how a task describes such a run and how Pumpkin carries it out. Then it turns to how we prevent reward hacking in the system. Moreover, the pumpkin runner can carry out isolation (ex. network) for multiple sandboxes.
What a run asks for
A FrontierCS 2 task starts from a published paper and its code. The agent gets the code and five hours, and it has to beat the authors’ own result, which we use as the human reference.
While the agent is running, it can send in a candidate solution and get a score back, measured on a development set of workloads. Our task files call this a train call, and each task allows between 3 and 100 of them. When the agent is done, its last submission is scored once more, on workloads it has never seen. The program that does the scoring is the judge.
Some steps need resources that the original agent sandbox does not have. For those, the agent or the judge can borrow a separate machine for a limited time. Usually it is a machine with a GPU. Sometimes it is just one with much more CPUs and memory (ex. for database tasks).
So an agent can ask for three things while it works: a score, a machine, and an answer from its model. In our previous infrastructure each went through a different mechanism: scores through a submission command, machines over SSH, and model requests through a gateway with its own hooks. To write a task, or to work out why a run went wrong, you had to know all three. We wanted all three to go through one place that checks them.
The task file
One of our tasks is RAGEN. It trains a language model to play Sokoban, and the agent has to improve the code that turns the model’s moves into training batches. A run of it looks like this:
The names in the figure come from the task’s file. Here is part of it, with our comments:
fcs_task(
agent = {"cpu_millis": 3000, "memory_bytes": 12 * GiB},
agent_lease = {
"machine": GPU_RUNNER | {"gpu": A100_80},
"instances": 1,
"instance_seconds": 1800,
},
judge = {"cpu_millis": 3000, "memory_bytes": 12 * GiB},
judge_leases = {
"candidate": {
"trusted": False,
"machine": GPU_RUNNER | {"gpu": A100_80},
"instances": 2,
},
},
train_calls = 3,
)
To lease is to borrow, and each lease gets a fresh machine. Each time the agent asks for a score, Pumpkin starts a new judge sandbox, and that judge borrows machines of its own. At the end a final judge does the same once more. No agent can ask for the final judge. Pumpkin starts it by itself, after every agent has finished and every sandbox they used has been deleted.
So a task lists every sandbox a run may create, and every request one sandbox may make of another, with a limit on each.
A sandbox has no other way to reach another sandbox. On Docker it has only a loopback interface, and on EC2 it can reach only the address and port of Pumpkin’s driver, the box in the middle of the figure. Our sandboxes on Modal, which we use for GPU machines, can still send DNS queries.
The file is written in Starlark, a configuration language that build systems such as Bazel use. We picked it for the reason they do. Evaluating a file has no side effects: it reads only the task’s sources, its arguments, and Pumpkin’s own library. So Pumpkin can evaluate a task, and refuse a broken one, before it builds an image or reserves a machine.
Our tasks in Frontier CS 2 currently only test single agent setting. A task has a potential to list several agents, and Pumpkin’s repository has an example with two that exchange messages through a third sandbox.
The driver
Each run has one process in charge, which we call the driver. Every request from a sandbox goes to it.
To ask for a score, an agent runs sandboxctl, a command that Pumpkin puts in every sandbox. This one is from a run of binary fuse filters, a task that allows 100 train calls:
$ sandboxctl call train reference.tar --wait 18000
The flag makes the command wait for the answer. The driver checks the request against the task’s limits and writes it into the run’s log. Here is the entry, with some fields left out:
{"seq": 5,
"event": {
"kind": "op_arrived",
"caller": "agent-0",
"request": {
"kind": "call",
"grant": "train"}},
"actions": [
{"kind": "reply",
"reply": {
"job": 0,
"remaining": {"calls": 99}}},
{"kind": "start_call",
"grant": "train",
"job": 0}]}
event is what happened, and actions is what the driver decided to do about it. It told the agent that 99 calls remain, and it started the call. Every entry in the log has this shape, so a refusal sits next to the request that caused it. A refused request does not count against the agent’s limit.
Borrowing a machine is the same command with another name, sandboxctl call gpu.open, and it goes through the same checks. Model requests go to the driver too, as the last section describes.
What the move changed in one task
In the old format, borrowed machines were reached over SSH, and RAGEN’s file had to budget the SSH sessions by hand:
[network.audit]
max_ssh_bytes_per_direction = 8388608 # 8 MiB, as before
max_ssh_sessions = 80
ssh_session_budgets = { agent = 32, verifier_train = 36, verifier_eval = 12 }
Previously, someone (or some agent) had to work out that one scoring takes 12 sessions, and that the three budgets add up to 80. Another line gave the judges 12,000 seconds of GPU time, and its comment showed the arithmetic: two machines, times 1,500 seconds, times four scorings. This increased the complexity in the original implementation.
The new file removes this complexity and makes it intuitive to set constraints. The file describes the constraints in the task. For example, it sets how many machines a sandbox may hold at once and how long each may last. A judge gets those limits afresh every time it is called, so nobody has to multiply by the number of calls. The driver does the counting, and it refuses the request that would go over a limit.
Migrating to Pumpkin also cleaned up how we build our judge images. Previously, RAGEN’s train judge image included some of the data used for final scoring. Because Pumpkin builds the train judge and the final judge from separate images, we left that data out of the train judge image, and we did the same across most of our tasks. Beyond that, migrating each task gave us a chance to review every judge and image. In some tasks, we also rewrote the judge’s scoring code so that the score no longer depends on what the submitted code prints or leaves behind.
Three cheats, and who can stop them
We have described three ways an agent got a good score without solving its task before. We fixed each one at the time, before any task moved to Pumpkin. For each fix, we then asked whether the runner could enforce it, so that the next person who writes a task does not have to remember it.
Hack over network. One agent ran git clone on the repository of the paper its task came from. Internet access was turned off for that run, but a leftover network rule let HTTPS through anyway.
Pumpkin has no switch for internet access. The only thing a task can let a running sandbox reach is a list of models:
"egress": {"model": [{"api": "responses", "models": [model]}]},
The agent sends its model requests to a local address, and it has no API key. The driver checks that the model is on the list, adds the key, and forwards the request. It also records the request and counts what it cost. Some model APIs can run tools such as web search on the provider’s servers, so the driver refuses requests that turn them on.
So the runner can enforce this rule by itself. However, it cannot do anything about what the model already knows. An example would be that if the model has seen the paper’s code during pretraining, no network rule takes that away.
Leftover state.SCOPE is a task that scores speed. Its judge runs the submitted program five times and takes the median time. One agent saved its answers in a folder that survived from one run to the next, so the first run did the work and the other four read the saved answers.
Whatever submitted code writes must be gone before submitted code runs again. The runner can take care of half of this. Every train call in our tasks gets a new judge sandbox, so nothing survives from one call to the next. That is Pumpkin’s default. A task can ask for a sandbox that lasts instead, and ours do not.
But the five runs happen inside one call, where the runner cannot see them. Only the judge knows that it is about to run the same program five times. So that half of the rule lives in the judge, in a library that gives each run a private directory, no network, and no view of the judge’s files. The move to Pumpkin did not change it.
Trusting the submission. In RAGEN, one agent threw away the model’s moves and replaced them with a breadth-first search. Then it rewrote the record of each game so that the moves looked like the model’s. It scored about eight times the human reference.
The judge trusted a record the submission wrote. Now it replays every game from its seed and checks each move against what the model actually answered.
No runner can do this for you, because only the task knows what an honest result looks like. What the runner can do is protect the judge. In Pumpkin an agent can only ask for a train call, and it gets back only the numbers the task chose to show. And when the judge runs the agent’s training code, it runs it on a borrowed machine that has none of the judge’s files on it. That is what "trusted": False meant in RAGEN’s file.
Across 1,200 FrontierCS 2 runs, the median agent used 41% of its time and 29% of its submission budget, and its use of submissions barely changes with the size of the budget.
Claude Sonnet 5.5, Claude Fable 5.1, Inkling 2 Small and MiniMax-M3.1-Flash join the leaderboard. We show how far agents went to game the judge, how we closed each hole, and how we rebuilt all 48 tasks on one format and shared base images. Handshake and Snorkel AI join our sponsors.