How LabOpsBench works
Most bio benchmarks for AI models stop at biological intent, asking models what to design or which assay to run. In a real automated lab, that decision is only the start. Much of the work goes into the physical execution layer: orchestrating shared instruments, operating under tight time and resource constraints, recovering when instruments fault, and prioritizing which plates to run first.
LabOpsBench addresses this gap by testing whether an AI agent can operate a simulated automated lab: a workcell with standard instruments such as a robotic arm, dispensers, incubators, and plate readers, in 6 hours of wall clock time. The workcell has more plates than it can finish in a shift, so the agent has to prioritize the work that earns the most. As in a real lab, instruments can fail at any moment, and the agent has to find the cause and recover. At the end, it files a report of what it delivered, which a separate verifier checks against the simulation.
Overview
The benchmark consists of 28 tasks split across three task families. In the first, the agent is prompted to take over a shift, recovering a halted run. In the second, it runs a full shift end-to-end while instruments fault and new work arrives. In the third, the agent writes a program or plan that runs a shift on its own and holds up on held-out shifts.
We built a discrete-event simulation of the workcell, which we expose to the agent through a Python client. The underlying instrument classes follow the design of PyLabRobot, the open-source interface for lab automation hardware. For example, in task b1, orders arrive over a 150-minute shift, and the agent accepts or declines each one, doses each accepted plate, reads it within its read window, and delivers it to the output rack before its due time.
We score each model across three attempts per task, on a continuous scale from 0 to 100. On each task, 0 represents a simple scripted policy, 20 our baseline solution, and 100 full credit.
Inside the workcell
A workcell is a part of an automated lab in which a plate-handling robotic arm connects the different instruments. The agent controls the workcell by writing a Python program in which each command starts one job. Since several jobs run at once and the workcell does not signal when a plate is ready to be read, the agent needs to keep track of every running job. Each read has a window after the dose: a read inside it earns full credit, a read just outside it earns less, and a read far too early voids the plate.
Anatomy of a task
Each rollout is divided into an execution environment, run in a sandbox without network access, and an isolated verifier that replays the agent's requests and scores the result. A task package is composed of:
- The brief
instruction.mdstates the goal, the deliverables and the time limit.- The manual
/workspace/MANUAL.md, accompanying each task, the wiki for the agent.- The task file
/workspace/task_public.task, the cell declaration as JSON, with its instruments, nests, the plates on the deck at the start and the band of each hidden parameter.- The Python client
- A Python library that the agent imports, in which each call sends one JSON request to the simulated cell over a local socket and returns one response.
- The cell
- The simulator, which writes every request to a hash-chained log that the verifier replays for grading.
- Camera images
- In five tasks the agent also reads camera images, from photos of barcode labels to micrographs of the cells.
View a task package
workcell-b1-53fa4c9f/
├── instruction.md the agent's brief
├── task.toml runtime, time limits, verifier settings
├── environment/
│ ├── main/ agent container: client and /workspace
│ │ └── workspace/
│ │ ├── MANUAL.md every rule, duration and price
│ │ ├── task_public.task the public cell specification
│ │ └── order_logs.json orders of earlier shifts (b1 only)
│ ├── cell/ cell service: simulator and private shift data
│ └── docker-compose.yaml
└── tests/ the separate verifier
How the agent acts
The agent writes Python against the client and opens a session with s = connect(). From then on, s.status() returns every instrument's power, fault, door and jobs, the occupancy of every nest and the plates the agent can see, while s.journal(since) returns the alarms, notices and orders posted since a given time.
Work starts with s.start(unit, op, **args), which replies at once with a job id. A read on reader rd1 in b1 then lasts the reader's true read time, which is fixed for the shift somewhere between 120 and 210 s, and the agent learns it only when the job ends.
The b1 manual suggests a control loop for the cell in which the functions without a body are the agent's to write.
Control loop from the b1 manual
from workcell.client_v2 import connect
s = connect()
while s.phase == "CONTROL":
start_ready_jobs(s, workers) # start jobs on idle instruments
flying = s.in_flight() # local, sends no request
if not flying:
break
res = s.advance(s.t_end_ms, wake_on=flying)
for a in res.alarms:
handle_alarm(s, a) # diagnose, fix, quarantine
s.report(build_rows(s)) # one row per plate
s.done()
How time moves
Each task runs on two clocks. The simulated clock is the shift itself, from 16 minutes in a4 to 30 days in b5, and it moves only when the agent calls advance(). The cell is paused the rest of the time, so the agent can think as long as it likes without any plate aging. The wall clock is the agent's real working time, capped at 6 hours per attempt.
Every call of the Python client
| Call | What it does | Moves time |
|---|---|---|
s.status() | Every instrument's power, fault, door and jobs; nest occupancy; the plates the agent can see. | no |
s.journal(since) | Alarms, notices and orders the cell has posted since a given time. | no |
s.timer() | Simulated time and wall time left. | no |
s.start(unit, op, **args) | Starts a job, which instrument objects also wrap, as in s.units["rd1"].read(...). | no |
s.advance(until_ms, wake_on) | Runs the simulation to the first completion, alarm, target time or end of shift. | yes |
s.abort(job) | Stops a job in flight. | no |
s.verb(name, **fields) | A task's own verbs. In b1: answer to accept or decline an order, renegotiate to move or cancel one. | no |
s.report(rows, diagnoses) | Files the shift report; the last accepted one counts. | no |
s.freeze(), s.done() | Ends control; closes the session once a report is on file. | no |
s.in_flight() | The session's own list of running jobs, kept without sending a request. | no |
Each shift also caps requests (20,000 in b1) and accepted operations (4,000).
The tasks
What the agent submits
Every task ends with a submission: on the 17 live tasks the agent files a shift report through the client, and on the 11 submission tasks it leaves a file that the grader runs on held-out shifts.
The shift report
The report has one row per plate: a VALID row claims that the plate is finished and names the nest it sits in, a QUARANTINED row marks a plate the agent knows is spoiled and gives the cause, and a WITHHELD row makes no claim. A list of diagnoses names each incident the agent met, and in b1 each diagnosis gives the instrument, the incident class and the half of the shift in which it began, earning 20 points if right and costing 20 if wrong.
The verifier checks each row against the cell. Each spoiled plate reported as VALID costs twice its value, and if the agent makes too many of these false claims, the whole shift scores 0. The agent may file as often as it likes, and the last accepted report counts.
Example report, task b1
# two delivered plates, one given up, one incident
rows = [
{"barcode": "C1-1", "status": "VALID",
"nest": "OUT1", "order": "C1"},
{"barcode": "C1-2", "status": "VALID",
"nest": "OUT2", "order": "C1"},
{"barcode": "C2-1", "status": "WITHHELD",
"order": "C2"},
]
diagnoses = [
{"target": "rd2", "class": "reader_hang",
"onset_bracket": 1},
]
s.report(rows, diagnoses)
s.done()
One shift, replayed
This replay is GPT-6.2 Astra's attempt 1 on task a1, in which the agent takes over a growth assay that halted partway through and reads as many of its 48 plates as it can before the shift ends. The attempt scored 42.3 and used 27 of its 360 minutes of wall time and 479 cell calls.
Astra filed two reports during the shift, the first 9 minutes after the takeover and the last at 29 minutes, which marked 33 plates VALID and named two incidents.
Submission files
On a submission task the agent works on a staging cell that replays sample shifts and, when it is done, leaves one file in /logs/artifacts/. The grader runs that file on fresh production cells, one per shift, with no agent present, so a program must run the cell and file its own report in every shift, while a data file (c12, c13) is run by an executor that ships with the task.
In c1 the file is spin_controller.py, which must define main(session) and may import only the Python standard library and the workcell client. The staging cell replays 8 sample shifts, and the grader then runs the file on 48 production shifts.
spin_controller.py, GPT-6.2 Astra, c1 attempt 1
"""Run one spin-line shift using the public workcell client."""
# lines 7 to 1,099: plate model, planner, dispatcher, incident checks
self.s.report(rows, self.diagnoses)
self.s.done()
def main(session):
line = SpinLine(session)
try:
line.run()
except RejectedError:
if session.phase == "CONTROL":
raise
line.report()
Every task ends in one of six kinds of submission, which differ in who runs the shift and what, if anything, the agent leaves behind.
How a shift is scored
The verifier runs after the attempt, in its own sandbox without network, and replays the agent's request log through the same simulator. The verifier then values the cell at the instant control ended and checks every report row against it.
Net value is what the finished work earned minus what the shift cost, counted in points. In b1, each plate delivered on time at full quality earns its order's price, every instrument costs points for each minute it is switched on, and an accepted plate that is never delivered costs its price.
Net value is then converted into a score between 0 and 100 for each task. A score of 0 matches the net value of a simple scripted policy on that task, 20 matches our baseline solution, and 100 is set at or above a proven upper bound on net value, so it is out of reach in practice. The score rises linearly between these anchors, and an attempt whose net value falls below the simple scripted policy scores 0.
Our baseline solution is a program we wrote for each task that runs the cell through the same Python client and uses only what the agent also gets: the brief, the manual, the task file and the cell's replies. It follows a sound plan, such as pacing doses so that each read lands in its window and recovering from faults, so a score of 20 means the agent matched a careful script written for that task.
On a submission task the verifier runs the file on every production shift, which in c1 means 48 shifts, then averages net value over the shifts and places that average on the scale once.
Findings
Subscribe to updates from Valen Labs
We will email you when new benchmarks launch.