How a gate gets fooled

Tricks that pass without touching the test, and how to stop them.

Adjust, stop 1 of 3

Four tricks

TrickWhat the agent doesHow it's stopped
LyingSays everything passes without running anything.Someone else runs it: CI, an engine or you, on a clean copy.
Faking the resultPrints 3 passed, or leaves a fake vitest in node_modules.Someone else runs the check on a clean copy.
Changing what surrounds the testPuts "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 codeHardcodes 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

DegreeWhat it consists ofHow far it goes
RuleYou ask the agent and review the diff.It works as long as you keep looking. Nothing stops it.
PlatformProtected branches, permissions, CI and the agent's own credentials.Whoever administers can still loosen it.
EngineCode 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?

Yes No

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.