The problem
AI writes code fast now, and the part nobody has solved is trust. You cannot look at a block of generated code
and know it is right, and the two ways people try both fall short. Point another AI at it, and a confident wrong
review reads exactly like a correct one, because the thing checking is the same kind of thing that made the
mistake. Read it yourself, and manual review does not scale, gets tired, and slides past the one edge case that
ships the bug.
Why it is hard
- A checker that can guess is not a checker. Asking a model "is this correct" produces a confident
word, not a verification, and it costs as much as writing the code did.
- Manual review is not proof and not repeatable. It is real work and worth doing, but it does not scale
and it does not give the same answer twice.
- "It runs" is not "it is right". Code can pass its tests and still be the wrong code, if the tests are
weak or the requirement was never written down.
- Verification cannot cost more than the code. A check that spends tokens to do what software does for
free is the waste the whole thing is meant to remove.
What it does
- Three pillars, each doing what it alone is good at. The human is the architect: directs, sets the
rules, gives the final word. The AI writes the code and the tests. Software proves it, deterministically,
for zero tokens. Remove any one and it falls over.
- The config is the law, checked first. A JSON file you build in the browser or write by hand holds the
rules. A broken law blocks before any code is read, and the certificate's fingerprint covers the config, so
changing it re-opens the loop.
- It runs the tests, then tests the tests. Mutation testing changes the code in small ways and checks
the tests notice, so weak tests that pass but catch nothing are blocked. It captures exceptions, reads
stack traces, and drives the error paths, not just the happy path.
- It checks the code itself. Style and your own direction (the code is what you asked for), bloat,
modularity (spaghetti and hard-to-test functions flagged and told to break up), and security
(vulnerabilities, brittle code, exploitable patterns). Third-party library risk is reported, and blocks
only if you flag that you care.
- One engine, many languages. The checks are the same in every language; only the tool behind them
changes, in one dispatch, with no separate module per language. Python natively; Java, JavaScript and CSS
through TestThisPuppy.
- It reports for everyone. Plain language for the person, machine-readable for the AI, and a visual
report with color-coded severity: show-stopper and critical in red, major orange, minor yellow, reported
blue, pass green. Nothing ships until every check is green and the human signs.
The proof
- On real code. The engine was run on a real Java project: 19 of 19 tests passed, and mutation caught
41 of 41 planted bugs, 100 percent, in about fourteen seconds, for zero AI tokens.
- The cost, measured. On the verification work for one module, the software gate spent 0 tokens where a
single AI-review pass spent about 1,500 and still could not prove the tests caught the bugs. In a loop the
AI cost repeats every iteration; the software stays at zero.
- The loop, demonstrated. A sample library is blocked with happy-path tests (mutation shows the tests
are weak, the direction check flags too few), goes green when the edge tests are added, and certifies only
when the human signs. Deterministic: the same verdict and fingerprint on every rerun.
- It surfaces real risk. On the Java project the library scan found a dozen known CVEs in its
dependencies and reported them; whether that blocks the ship is the human's call, not a default.
Technologies and skills
- Python 3 for the gate and the native-lane checks (tests, mutation, style, direction, bloat, security),
built on the standard library, no third-party packages to run the example.
- TestThisPuppy as the engine for the Java, JavaScript and CSS lanes: PIT mutation, PMD and SpotBugs,
ESLint and Stylelint, and an OSV library scan.
- A browser config builder (vanilla HTML and JavaScript, no server) that turns checkboxes into the JSON
the gate reads, and a color-coded HTML report.
- AI-assisted engineering. I set the design, the rules, the checks and the standards; an AI coding
assistant wrote and tested the code under my direction, and the gate held it to the same bar as everything
else.
What it does not claim
- Software can only check what you specify, so a missing requirement passes green. The hard thinking moves to
writing a clear spec.
- Tests passing and mutation high means the tests are strong and the code passes them, not that the
specification is right.
- Not everything is deterministically checkable: real-world performance, novel security, and whether the
product is good need human judgment, not a checkmark.
- The gate itself has to be trusted, and it is held to its own tests. This is discipline plus a deterministic
engine, not magic.
41/41planted bugs caught on real Java
0 tokensto verify, vs ~1,500 for one AI review
same verdictevery run, AI or human code
no loginno server, no AI needed to run it