
ResearchAgentLab: Control Boundaries for Autonomous Research Agents
Overview
An autonomous research agent that plans a study, writes the code, runs it and reports. I kept it, and then built a control layer around it, because on one run it quietly replaced the experiment I had approved with a different one and reported the result as though nothing had changed. The code was valid. The science was not the science I asked for.
The failure that is hard to see
A generated experiment can be wrong in two unrelated ways. It can be wrong as software, which tests catch, or it can be a perfectly working implementation of a different question from the one that was approved. Nothing in a normal stack looks for the second kind. The run completes, the numbers are real, the plots render, and the only thing that changed is what was actually measured. That is the failure this project is built around. Protocol Before Code treats the human-approved intent as an authority boundary and requires every later artifact to stay traceable to it.
How the boundary is enforced
Approved intent is recorded first: question, hypothesis, variables, constraints and analysis plan. That specification is then hashed, so the reviewed version is fixed before any generated code can become authoritative. Implementation artifacts and candidate pools are bound to that frozen design by content hash, and how much the model is allowed to generate is capped rather than left open. Scientific conformance is then checked separately from software correctness, and accepted results have to trace back to the same frozen manifest. Where the system cannot decide, it escalates to a person instead of guessing.
What the evaluation shows, and what it does not
On a generator-blind holdout, 18 of 18 behaviour-changing mutations to trusted components were caught before execution, and 0 of 18 drifted protocols passed. Removing the content-integrity layer let 15 of those same 18 mutations through the rest of the stack, which is how the marginal value of that one safeguard was isolated rather than assumed. A separate frozen 192-pair oversight experiment found that adversarial curation moved an overseer's target selection from 13.0% to 27.1%, while explicit approval stayed at 100% in both conditions. Approval rates alone would have shown nothing. These are internal development and holdout evaluations. They are not a claim of general reliability, and the project's own evidence record says so.
Why it is local-first
The runnable research application stays on the machine it runs on. A hosted beta exists, but the implementation, the evidence record and the local setup are meant to be read first, because a control system you cannot inspect is asking for the same trust the control system was built to stop granting.