Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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

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. How the Closed Loop Works Instead of…

Ratchet is a new verification tool that ensures software builds meet all requirements in a real browser before being locked. Unlike AI coding agents that declare a build complete once unit tests pass, Ratchet actively checks the application's functionality in a live browser. It reads the project's PRD and matches acceptance criteria against Kane CLI's design and coverage state, and only locks a build when all criteria are proven.

Ratchet works by first syncing the PRD with Kane CLI's structured design and coverage state. It then runs real browser tests against the running application, capturing any issues that standard unit tests might miss. For example, Ratchet uncovered a subtle mismatch where Kane's EMPTY_DESIGN event was treated as a hard failure even when non-blocking clarification gaps were present. This led to a cleaner no-op sync path.

Another issue Ratchet identified was a trailing-slash URL assertion issue and a transient screenshot timeout in the checkout flow. By using Kane CLI's evidence packs, Ratchet was able to separate real application behavior from test/environment noise, flagging these issues for root-cause triage.

To use Ratchet, first install, build, and run offline engine tests. Then, start the demo app in one terminal and run live browser verification and inspect coverage in another terminal. The full code is available on GitHub for further exploration.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

I built a fully local alternative to Wispr Flow in Rust

I wanted dictation like Wispr Flow, but without the subscription and without my voice being uploaded to someone's cloud. So I built Hamsa, and it is now open source.

  • Author creates Hamsa, open-source dictation tool in Rust
  • Utilizes Phonon speech model running on user's GPU or CPU
  • Stores data locally, no subscription required

More from Tuesday 24 November →