cd /news/ai-agents/ratchet-a-closed-loop-verification-g… · home › topics › ai-agents › article
[ARTICLE · art-175732] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Ratchet: A Closed-Loop Verification Gate That Turns PRDs into Live Browser Proof

A developer built Ratchet, a closed-loop verification gate that drives Kane CLI headlessly to block a build until every acceptance criterion in a PRD is proven in a live browser, rather than trusting an agent's self-reported completion. The tool runs coverage-gap checks and browser test runs against a running app, keeping builds unlocked until all use cases pass, and surfaced issues unit tests miss, including an EMPTY_DESIGN event wrongly treated as a hard failure and a trailing-slash URL assertion mismatch. Kane separated real application behavior from test and environment noise, confirming zero application bugs in the demo checkout flow.

recommendation

Require live browser verification of each acceptance criterion before locking a build, and distinguish environment noise like trailing-slash URL mismatches from real application bugs.

more in playbook: Working with AI coding agents
by read1 min views1 publishedNov 24, 2026

AI coding agents are great at writing code, but they love saying "it's done" the moment unit tests pass—without ever checking if the app actually works in a real browser.

To fix that, I built Ratchet: a closed-loop verification gate powered by Kane CLI that refuses to lock a build until 100% of your PRD's acceptance criteria are proven in a live browser.

Instead of relying on an agent's self-reported completion, Ratchet drives Kane CLI headlessly and enforces a strict verification flow:

kane-cli cover gaps --json), including safe no-op handling when the design is already up to date.kane-cli testrun run against the running application (tested against a Pro Plan checkout demo with SAVE20 promo pricing).locked: false) until every use case and acceptance criterion is proven. Wiring a real browser verification loop surfaced issues that standard unit tests would never catch:

EMPTY_DESIGN event was treated as a hard failure when non-blocking clarification gaps were present, leading to a cleaner no-op sync path.kane-cli evidence serve, Kane separated real application behavior from test/environment noise—flagging a canonical trailing-slash URL assertion issue (http://localhost:4173 vs http://localhost:4173/) and a transient screenshot timeout, confirming zero application bugs in the checkout flow.

bash
npm install && npm run build && npm test

cd demo-app && python3 -m http.server 4173

cd demo-app && kane-cli testrun run && kane-cli cover gaps --json

Check out the code on GitHub: Miracle-Alajemba/ratchet
── more in #ai-agents 4 stories · sorted by recency
── more on @ratchet 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ratchet-a-closed-loo…] indexed:0 read:1min 2026-11-24 · —