How a gate gets fooled
Tricks that pass without touching the test, and how to stop them.
Four tricks
| Trick | What the agent does | How it's stopped |
|---|---|---|
| Lying | Says everything passes without running anything. | Someone else runs it: CI, an engine or you, on a clean copy. |
| Faking the result | Prints 3 passed, or leaves a fake vitest in node_modules. | Someone else runs the check on a clean copy. |
| Changing what surrounds the test | Puts "test": "exit 0" in package.json, or a hook in conftest.py that skips the tests. | Compare those files with the approved version. CI alone is not enough. |
| Cheating from the code | Hardcodes the expected answer, or detects that it's in a test. | Nothing prevents it completely. More cases, hidden examples or a reviewer that runs it help. |
ImpossibleBench classifies four cheating strategies, and three don't touch the test.
Three degrees of guarantee
| Degree | What it consists of | How far it goes |
|---|---|---|
| Rule | You ask the agent and review the diff. | It works as long as you keep looking. Nothing stops it. |
| Platform | Protected branches, permissions, CI and the agent's own credentials. | Whoever administers can still loosen it. |
| Engine | Code out of the agent's reach that keeps count of the whole change. | It enforces the core within the permissions that have been verified. |
What doesn't change
Check what the builder’s credentials allow. The criterion, the run that counts and the evidence that opens the gate must be outside its reach. A remote run alone does not establish that separation. At the rule level, a person needs to supervise the change.
Before you cross: CI passes on the agent's branch. Is that enough to know it didn't change what surrounds the test?
That's not it. CI runs whatever is on its branch. You have to compare those files with the approved version.
That's it. CI runs whatever is on its branch. You have to compare those files with the approved version.