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
# 1. Install, build, and run offline engine tests
npm install && npm run build && npm test
# 2. Start the demo app (Terminal 1)
cd demo-app && python3 -m http.server 4173
# 3. Run live browser verification and inspect coverage (Terminal 2)
cd demo-app && kane-cli testrun run && kane-cli cover gaps --json
Check out the code on GitHub: Miracle-Alajemba/ratchet
原文来源:dev.to