<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Miracle Alajemba</title>
    <description>The latest articles on DEV Community by Miracle Alajemba (@miracle_alajemba_6b425827).</description>
    <link>https://dev.to/miracle_alajemba_6b425827</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1490641%2F76ec6f80-047f-4844-bdbc-4dd94ec6853c.png</url>
      <title>DEV Community: Miracle Alajemba</title>
      <link>https://dev.to/miracle_alajemba_6b425827</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miracle_alajemba_6b425827"/>
    <language>en</language>
    <item>
      <title>Ratchet: A Closed-Loop Verification Gate That Turns PRDs into Live Browser Proof</title>
      <dc:creator>Miracle Alajemba</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:06:57 +0000</pubDate>
      <link>https://dev.to/miracle_alajemba_6b425827/ratchet-a-closed-loop-verification-gate-that-turns-prds-into-live-browser-proof-13j3</link>
      <guid>https://dev.to/miracle_alajemba_6b425827/ratchet-a-closed-loop-verification-gate-that-turns-prds-into-live-browser-proof-13j3</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  How the Closed Loop Works
&lt;/h2&gt;

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

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Spec Sync:&lt;/strong&gt; Reads the project's PRD and syncs acceptance criteria against Kane CLI's structured design and coverage state (&lt;code&gt;kane-cli cover gaps --json&lt;/code&gt;), including safe no-op handling when the design is already up to date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Browser Verification:&lt;/strong&gt; Executes real browser tests via &lt;code&gt;kane-cli testrun run&lt;/code&gt; against the running application (tested against a Pro Plan checkout demo with &lt;code&gt;SAVE20&lt;/code&gt; promo pricing).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence-Backed Lock:&lt;/strong&gt; Parses Kane's coverage rollup and evidence packs, failing closed (&lt;code&gt;locked: false&lt;/code&gt;) until every use case and acceptance criterion is proven.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What Kane CLI Caught During the Build
&lt;/h2&gt;

&lt;p&gt;Wiring a real browser verification loop surfaced issues that standard unit tests would never catch:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sync Edge Cases:&lt;/strong&gt; Caught a subtle mismatch where Kane's &lt;code&gt;EMPTY_DESIGN&lt;/code&gt; event was treated as a hard failure when non-blocking clarification gaps were present, leading to a cleaner no-op sync path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Root-Cause Triage via Evidence Packs:&lt;/strong&gt; Using &lt;code&gt;kane-cli evidence serve&lt;/code&gt;, Kane separated real application behavior from test/environment noise—flagging a canonical trailing-slash URL assertion issue (&lt;code&gt;http://localhost:4173&lt;/code&gt; vs &lt;code&gt;http://localhost:4173/&lt;/code&gt;) and a transient screenshot timeout, confirming zero application bugs in the checkout flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Run It Locally
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
# 1. Install, build, and run offline engine tests
npm install &amp;amp;&amp;amp; npm run build &amp;amp;&amp;amp; npm test

# 2. Start the demo app (Terminal 1)
cd demo-app &amp;amp;&amp;amp; python3 -m http.server 4173

# 3. Run live browser verification and inspect coverage (Terminal 2)
cd demo-app &amp;amp;&amp;amp; kane-cli testrun run &amp;amp;&amp;amp; kane-cli cover gaps --json

Check out the code on GitHub: Miracle-Alajemba/ratchet
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cli</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
