A TypeScript gauntlet that takes an untrusted AI-generated patch through seven gates and ends in one release decision with evidence: PASS, FAIL, ESCALATE, or PASS with explicitly accepted risk. No agent reviews its own output.
By Mike Rodgers · 1 file

Coding agents write patches fast and grade their own homework. They delete a failing test, weaken an assertion, loosen a budget, or claim a live integration works when only a mock ran. The gauntlet treats every AI-written patch as untrusted until it earns a release dec
Every patch is risk-classified first (R0 cosmetic to R3 irreversible; disagreement resolves to the higher class), then runs seven gates: intent, containment, deterministic checks, independent review, behavior and UX, non-functional, and an adversarial grill. Each gate emits a typed, hash-chained packet, so the decision can be audited
Anti-gaming is mechanical: retries are recorded as failures, mock-only evidence cannot prove a live integration, a repair re-enters as a fresh patch, and test deletion or assertion weakening is flagged as high
Verified from a clean copy on 2026-09-28: 316 of 316 tests pass across 14 test files, including a golden corpus of 12 patch classes where the 3 adversarial ones (test deletion, assertion weakening, a leaked secret) are all
Inside: the engine, router, gate lanes, packet chain, CLI, JSON Schemas, an example gates file, and a START-HERE guide. Requires Node 20+ and pnpm. Licensed for use in your own and your clients' projects; not for resale.
You get a file Mike Rodgers made, exactly as Mike Rodgers uses them. Open them here, download the originals, or add them to your own Eden workspace and make them yours.
When Mike Rodgers updates them, your copy updates too. Nothing to set up, nothing to install.
The files listed on this page, made by Mike Rodgers. You can read them here, download the originals, or add them to your own Eden workspace.
A free Eden account, so your files are always where you left them, on web and phone. It takes a moment and there is nothing to install.
It opens in your Eden account right away. You keep it. When Mike Rodgers updates the files, your copy updates too.
Mike Rodgers
Made by Mike Rodgers, who stopped trusting "LGTM" from the same model that wrote the code.