Analyst focused on AI security
Adversarial evaluation of local LLMs, censorship and rejection rate, prompt injection testing, log analysis and defensive automation. Visit: sammideblas.com
If the agent can edit the test file and the harness reads it from the same working tree, the pass rate is a self-report. Splitting the oracle from the workspace is the cheapest way to keep the signal honest. Are the tests mounted read-only in your CI or copied into the sandbox?
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
I don't have a verified CI setup to point you to here. In the paper, the Oracle keeps expected values and the verdict outside the candidate environment; the candidate still runs inside a fresh evaluation environment. A read-only test mount alone wouldn't protect the verdict if the same process loads untrusted code.
Cheap version for a normal CI, no oracle needed: run the tests from the base branch, not the PR tree. git checkout origin/main -- tests/ before pytest, fail the job if the PR adds a conftest.py or a pytest plugin anywhere, and put tests/ under CODEOWNERS so changes need a human. Weak tests stay weak, the paper is right about that. But the conftest trick is gone.
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
Restoring the base tests and blocking new pytest hooks closes a useful path. I'd also start from a clean checkout: restoring tests/ over the PR tree can leave PR-added test files in place. And the code under test still runs inside pytest, so the test process shouldn't be the trusted source of its own verdict.
Fair point on the clean checkout, that's the safer default. Same rule I apply at the gateway: whatever is being checked never gets to report its own result.
Building Foremerge (open-source coordination for parallel coding agents, above Git) and GPTree. I write up what the agents broke and what actually fixed it.
It can change them but all test changes get reviewed by a different model family. A human reviewer then also has to check any changes to existing tests
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
A human check on changes to existing tests is a useful boundary. I'd also keep a separate set of checks the agent cannot modify, since review of the patch and an independent verdict catch different failure modes.
Separating the observation from the verdict is the idea that carries this. If the process that loaded the patch can also write the report, a green result is a self-report, as one reply put it. The other point from the paper, that protecting the grader does not make weak tests strong, is the one teams will meet next, because isolation fixes forgery and nothing else.
A pre-agent version of the same boundary came up in a CI/CD modernisation Ascendra Ventures delivered for an equipment manufacturing group over 15 months. Middleware moved from outdated Jenkins to Azure DevOps pipelines as code, Java development went onto one standardised workflow with code reviews, unit tests and SonarQube quality gates, and deployments became versioned Helm releases on Kubernetes, so a rollback is a chart version. Quality gates that live in the pipeline definition, rather than in the branch being judged, are the same principle you describe for the Oracle.
When an agent's patch touches the test files themselves, would you route it to a different reviewer than a change that only touches application code?
The 33 of 42 that exploited weak upstream tests matches what I saw from the other side: isolation was not my bottleneck, test adequacy was.
On 200 AI changes to 23 real libraries, the projects' own tests stopped 75% of the wrong ones, and 27 wrong changes passed them. Checks written from the task by a second model, each shown to fail on the old code, caught 17 of those 27. When I inspected good changes that a generated check had stopped, in about 7 of 10 the change really did not do what the task text says: the hidden upstream test was too narrow. That figure rests on my own reading of the task texts.
I maintain Apex verify (github.com/apex-engine-dev/apex-ve...). It is a merge check, not a grader-isolation design. The one boundary it shares: settings are read from the base commit, so a change cannot rewrite its own rules.
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
Reading the settings from the base commit protects the rules from the proposed change. For the generated checks, I'd keep the task text and the check together for review: a check can fail on the old code and still enforce a requirement the task never specified.
Building cachly (MCP): your coding agent remembers your codebase and every decision made — not just the chat. Follows you between editors, stays when someone leaves. I post what I learn shipping it.
The line that a protected grader doesn't make weak tests strong matches what bit me. My agent once reported "All tests pass." It had run 74 of our 105 test files. Nothing in the report was false, it just never mentioned the other 31. A separate Oracle catches a tampered result, but not a missing one.
The cheap part I use: the acceptance files get pinned with a hash before the agent starts, so editing the test that judges it turns the verdict red. That does nothing for the 31 that never ran, though. Does SplitBench count expected cases that never produced an observation, or does it only judge the ones that came back?
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
I can't tell from the paper whether a missing observation is counted as a failed case, so I wouldn't assume it is. For a CI setup, I'd compare the expected test IDs from a trusted collection step with the IDs in the result report and fail on missing or duplicate IDs. A passing exit code alone wouldn't catch your 31 missing files.
Building cachly (MCP): your coding agent remembers your codebase and every decision made — not just the chat. Follows you between editors, stays when someone leaves. I post what I learn shipping it.
In my case the cause was simpler: the agent picked which files to run. Making the gate run the full command itself fixed that one. Your ID comparison catches the next case, a glob that quietly stops matching, which the gate alone wouldn't see. That's the check I'd add next: collect the IDs first, compare after.
One path the split doesn't close: if the agent can rerun the evaluation, each verdict is honest but the agent picks which one you see. A test that false-passes 5% of the time passes at least once in 20 tries about 64% of the time. Agents will happily retry a flaky failure until it goes green, and nothing in "pass" says it took six attempts.
So I'd keep the attempt count next to the score, and have the trusted side own retries too. The verdict should cover every run for that candidate, not the last one the agent chose to submit.
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
I'd bind each attempt to a candidate hash and have the trusted runner append the result before returning it. Otherwise a candidate can be resubmitted under a new run ID and the retry count resets. A fixed retry policy and a report listing failures as well as passes would make that selection visible.
Analyst focused on AI security
Adversarial evaluation of local LLMs, censorship and rejection rate, prompt injection testing, log analysis and defensive automation. Visit: sammideblas.com
separating the observation from the verdict is the load-bearing idea. a fresh container means nothing if the process loading the patch still writes the verdict.
A technologist working in automation. Here I write up what I actually learn building tools, engineering AI agents, and keeping systems running, along with the workflows and habits that stick.
A useful failure test is to have the submitted patch deliberately forge a passing test report, then check that the trusted evaluator still returns a failure. That exercises the result path as well as the container boundary.
GMT strategy and custom B2B outreach lists on request: people and companies by ICP, domain, profile URL, email or name. 1B+ profiles. Claude Code plugins, API, MCP. kevin@outricher.com
same for data runs, the agent that reports a count and also decides whether the count is fine, so i keep the check outside it, a plain comparison with the last run that the agent cannot edit
We're a place where coders share, stay up-to-date and grow their careers.
If the agent can edit the test file and the harness reads it from the same working tree, the pass rate is a self-report. Splitting the oracle from the workspace is the cheapest way to keep the signal honest. Are the tests mounted read-only in your CI or copied into the sandbox?
I don't have a verified CI setup to point you to here. In the paper, the Oracle keeps expected values and the verdict outside the candidate environment; the candidate still runs inside a fresh evaluation environment. A read-only test mount alone wouldn't protect the verdict if the same process loads untrusted code.
Cheap version for a normal CI, no oracle needed: run the tests from the base branch, not the PR tree.
git checkout origin/main -- tests/before pytest, fail the job if the PR adds a conftest.py or a pytest plugin anywhere, and put tests/ under CODEOWNERS so changes need a human. Weak tests stay weak, the paper is right about that. But the conftest trick is gone.Restoring the base tests and blocking new pytest hooks closes a useful path. I'd also start from a clean checkout: restoring tests/ over the PR tree can leave PR-added test files in place. And the code under test still runs inside pytest, so the test process shouldn't be the trusted source of its own verdict.
Fair point on the clean checkout, that's the safer default. Same rule I apply at the gateway: whatever is being checked never gets to report its own result.
It can change them but all test changes get reviewed by a different model family. A human reviewer then also has to check any changes to existing tests
A human check on changes to existing tests is a useful boundary. I'd also keep a separate set of checks the agent cannot modify, since review of the patch and an independent verdict catch different failure modes.
Separating the observation from the verdict is the idea that carries this. If the process that loaded the patch can also write the report, a green result is a self-report, as one reply put it. The other point from the paper, that protecting the grader does not make weak tests strong, is the one teams will meet next, because isolation fixes forgery and nothing else.
A pre-agent version of the same boundary came up in a CI/CD modernisation Ascendra Ventures delivered for an equipment manufacturing group over 15 months. Middleware moved from outdated Jenkins to Azure DevOps pipelines as code, Java development went onto one standardised workflow with code reviews, unit tests and SonarQube quality gates, and deployments became versioned Helm releases on Kubernetes, so a rollback is a chart version. Quality gates that live in the pipeline definition, rather than in the branch being judged, are the same principle you describe for the Oracle.
When an agent's patch touches the test files themselves, would you route it to a different reviewer than a change that only touches application code?
The 33 of 42 that exploited weak upstream tests matches what I saw from the other side: isolation was not my bottleneck, test adequacy was.
On 200 AI changes to 23 real libraries, the projects' own tests stopped 75% of the wrong ones, and 27 wrong changes passed them. Checks written from the task by a second model, each shown to fail on the old code, caught 17 of those 27. When I inspected good changes that a generated check had stopped, in about 7 of 10 the change really did not do what the task text says: the hidden upstream test was too narrow. That figure rests on my own reading of the task texts.
I maintain Apex verify (github.com/apex-engine-dev/apex-ve...). It is a merge check, not a grader-isolation design. The one boundary it shares: settings are read from the base commit, so a change cannot rewrite its own rules.
Reading the settings from the base commit protects the rules from the proposed change. For the generated checks, I'd keep the task text and the check together for review: a check can fail on the old code and still enforce a requirement the task never specified.
The line that a protected grader doesn't make weak tests strong matches what bit me. My agent once reported "All tests pass." It had run 74 of our 105 test files. Nothing in the report was false, it just never mentioned the other 31. A separate Oracle catches a tampered result, but not a missing one.
The cheap part I use: the acceptance files get pinned with a hash before the agent starts, so editing the test that judges it turns the verdict red. That does nothing for the 31 that never ran, though. Does SplitBench count expected cases that never produced an observation, or does it only judge the ones that came back?
I can't tell from the paper whether a missing observation is counted as a failed case, so I wouldn't assume it is. For a CI setup, I'd compare the expected test IDs from a trusted collection step with the IDs in the result report and fail on missing or duplicate IDs. A passing exit code alone wouldn't catch your 31 missing files.
In my case the cause was simpler: the agent picked which files to run. Making the gate run the full command itself fixed that one. Your ID comparison catches the next case, a glob that quietly stops matching, which the gate alone wouldn't see. That's the check I'd add next: collect the IDs first, compare after.
One path the split doesn't close: if the agent can rerun the evaluation, each verdict is honest but the agent picks which one you see. A test that false-passes 5% of the time passes at least once in 20 tries about 64% of the time. Agents will happily retry a flaky failure until it goes green, and nothing in "pass" says it took six attempts.
So I'd keep the attempt count next to the score, and have the trusted side own retries too. The verdict should cover every run for that candidate, not the last one the agent chose to submit.
I'd bind each attempt to a candidate hash and have the trusted runner append the result before returning it. Otherwise a candidate can be resubmitted under a new run ID and the retry count resets. A fixed retry policy and a report listing failures as well as passes would make that selection visible.
Agreed. The verdict has to live outside the candidate box. A read-only mount only helps if the writer is outside too.
separating the observation from the verdict is the load-bearing idea. a fresh container means nothing if the process loading the patch still writes the verdict.
A useful failure test is to have the submitted patch deliberately forge a passing test report, then check that the trusted evaluator still returns a failure. That exercises the result path as well as the container boundary.
a forged passing report is a good test. if the pipeline can be fooled that easily, the check is the thing to fix first.
same for data runs, the agent that reports a count and also decides whether the count is fine, so i keep the check outside it, a plain comparison with the last run that the agent cannot edit