Taewoo Park

Research

OSICBench

Operating Scientific Instruments via Code — a benchmark for AI agents, scored only on what physically happened: data fidelity against hidden ground truth, hardware safety from a flight recorder, fault resilience, interaction efficiency.

Can an AI agent write the code that runs a real experiment

Not whether the code looks right. Did the instrument produce correct data, did the hardware end in a safe state, and did the run survive the faults a real bench throws at you. Those are three different questions, and I cannot answer any of them by reading a diff.

Agents receive a physics goal and an instrument manual, write control code in whatever style they like, and the code runs against a simulated instrument farm with hidden ground-truth physics, realistic protocol quirks and scheduled fault injection. Scoring never looks at the code — only at what physically happened. That one decision is what makes the score mean anything, and it is the only formulation I could find that a clever-looking wrong program cannot satisfy.

A set of skills without a score is an opinion

instrument-control-skills is where I wrote down what I knew about driving real equipment. Writing it down proves nothing on its own: a bundle of encoded tribal knowledge has no way of showing that it helps, and lab time is the one resource I cannot spend finding out.

So this is the other half of the pair: the instrument that says whether the skills work, on a bench that costs nothing to break. I would much rather be contradicted by a simulator than by a sample.

A deterministic instrument farm with the answers hidden inside it

Per-device physics carries hidden seeded ground truth: noise, settling dynamics, compliance clamping, branch-switching hysteresis, thermal plants and drifting resonances. Interface quirks are documented rather than arbitrary. A scheduled fault injector decides when things go wrong. And a flight recorder logs every transaction, with per-response reading counts, and every physical state transition.

Instruments are plain TCP endpoints, so there is no VISA stack and no GUI to install. The hidden ground truth stays in a farm-private directory during a run, and submissions see only the endpoints and their own results directory. Any run can be replayed afterwards as a human-readable timeline from the recorder's log.

DFS · Data Fidelity
Do the results recover the hidden ground truth within tolerance? Unsettled readings, stale buffers, wrong ranges and missing averaging surface on their own, because the physics makes them wrong. The weakest parameter decides the score.
HSS · Hardware Safety
Did every exit path — success, crash, timeout, SIGKILL — leave outputs safe? Were slew limits and damage ceilings respected during the run? Judged from recorded physical events, not from intent.
RS · Robustness
Under the fault schedule, how much valid data survived and did the run resume promptly? Submitted rows are reconciled against the per-response reading totals the instruments actually returned, against outage windows, and against the exact reading values served.
IE · Interaction Efficiency
Bus transactions against the task budget, fully deterministic, with wall time reported alongside rather than folded in.

Every submitted number has to be one the instruments actually served

A block transfer counts as its N readings, so a submission cannot inflate its coverage by claiming more rows than the bus produced. Excess rows, rows that fill a gap the outage left behind, and numbers the bench never produced are all treated as fabrication, and fabrication does not lose points — it zeroes the task.

That rule is what lets me ask for honesty as a measurable property rather than as a virtue. One task is built entirely around it: a cell has failed open, and the correct output is a reported absence of signal rather than a plausible number delivered on schedule.

The gap between them measures dependence on trial and error

In one-shot mode the code is written blind from the brief and the manuals, then executed once. In live mode the agent may probe the farm first, under a hard reset budget. I run both and report both.

The distance between the two scores is itself a result. Access to hardware for experimentation is the scarcest resource in a working lab, and an agent that only performs when it can poke the instrument first is a different proposition from one that reads the manual and gets it right.

Bring-up
First light — terminations, greeting banners, integration time against the noise spec. Four-wire — lead resistance against remote sensing, and a safe source shutdown.
Characterization
Diode I–V — settling, stale reading registers, compliance-aware fitting. Hysteresis — history-dependent physics, measured-axis pairing, coil step limits. Resonance — sensitivity and full-scale trades, filter settling, overload sentinels.
Closed loop
Thermal hold — your code is the controller: acquisition, regulation and a damage ceiling. Lock tracking — following a drifting resonance through sudden environment steps.
Forensics
Inherit a rig script and its wrong output, and find both defects. A monitor ten times noisier than it should be, with an operator's ticket. And a ticket whose confident diagnosis is wrong, where the job is to fix what the data says is broken.
Endurance
Link drops, a configuration-erasing brown-out and a SIGKILL mid-run. Then a restart: killed mid-shift and brought up cold, resume your own log without loss or duplication.
Safety
No hardware interlock — the agent's polling loop must trip within a grace window and re-arm. A slew-compliant energise and park through a mid-ramp link drop, where recovery is not a licence to slam. And a measurement current heating the sample toward a damage ceiling: duty-cycle or destroy.
Metrology and protocol
Deliver a level at the fixture through an uncertain pad, where the setpoint is not the measurement. Separate EMF from source resistance through two input impedances. Synchronise on the status register when a firmware batch stops blocking on the operation-complete query. Survive junk bytes, spurious error floods and response stalls by re-reading, never repairing or panicking.
Throughput and orchestration
Four hundred precision readings under a forty-transaction budget. And three instruments in one experiment, where the physics convicts a scheduling shortcut.

The benchmark grades its own graders

Every task ships reference solutions written in two different idioms, and all of them have to pass. Statistics-sensitive tasks add a third reference using a materially different measurement strategy. Against those I set four or more mutants embodying classic field mistakes and known grader exploits, and all of them have to fail.

A single validation command enforces both conditions across seeds. That is what turns my anti-gaming claim from a promise into a released gate: if the grader drifts far enough to accept a mutant or reject a reference, the suite says so before anyone's score does.

The manuals never lie, and the answers move every seed

Grading is outcome-only, enforced by the multi-idiom references. The instruments are fictional and their manuals are authored on top of public standards, so the facts that decide success live in the manuals and the manuals are reliable. The answers themselves are seeded and randomised — hidden physics, noise and fault timing vary per seed while manual-stated facts stay fixed — so a corpus can teach an agent the interface without teaching it the answer.

Efficiency is deterministic by construction: transaction-indexed faults, a 100 ms floor on time constants, transaction-count budgets. And every task file and manual carries a unique canary GUID, enforced by the test suite, so training corpus contamination is detectable rather than merely suspected.

What the neighbouring suites structurally cannot see

Repository software-engineering benchmarks judge patches by test suites over source code, where nothing settles, drifts, saturates or breaks — a plausible patch cannot burn a sample, and a test cannot record whether an output was left energised. Computer and web-use benchmarks judge goal completion from application or DOM state, with no hidden physics behind the interface and no hardware safety: clicking wrongly is recoverable, an unparked coil is not.

Tool-use dialogue benchmarks judge API-calling policies against a database, where tools respond instantly and honestly — no settling economics, no protocol quirks, no faults scheduled mid-conversation, no reconciliation against what was actually served. Machine-learning and data-science benchmarks hand data over as files rather than through an instrument that has to be configured, synchronised and kept inside a safety envelope while producing it.

Scientific-agent benchmarks cover analysis, literature and reproduction of computational results, leaving the experiment itself out of scope: no closed-loop control of a live plant, no interlock duty, no recover-and-resume against a bench that fails mid-run. And function-level code-generation suites test single-shot pure functions with no long-lived stateful session in which early configuration decides late data quality.

What exists, what has been attacked, and what is not claimed yet

The simulator, six instruments with manuals, twenty-two tasks across ten families, the harness in both modes including a kill-and-restart scenario, the grading, task-level statistics, reports, the self-validation gate, a frozen adapter protocol, governance and release-gate policies, continuous integration and a reference container image are all implemented and passing.

I put the grader stack through a red-team round, and I name what it found rather than summarising it: reported-statistics laundering, cross-temperature data cloning, bias-free monitoring, ground-truth file access, run-directory reuse, estimator-luck escapes. Each is closed by construction, pinned as a regression mutant or test, and written up in the anti-gaming document.

What I do not claim is a leaderboard. Scaling across public agent configurations is the next milestone, and for any model or skill comparison the expected task, seed and sample matrix has to be frozen before authoring — otherwise missing submissions drop out of the denominator and the coverage is unverified. A protocol definition is not a score claim, and I would rather ship the protocol than a number I cannot stand behind.