<?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: vijaygopal balasa</title>
    <description>The latest articles on DEV Community by vijaygopal balasa (@vijaygopalbala1).</description>
    <link>https://dev.to/vijaygopalbala1</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%2F155512%2F5ecf9083-27e6-4af0-bcf8-aec79592665d.jpg</url>
      <title>DEV Community: vijaygopal balasa</title>
      <link>https://dev.to/vijaygopalbala1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vijaygopalbala1"/>
    <language>en</language>
    <item>
      <title>My agent said done. Kane had to watch it fail first.</title>
      <dc:creator>vijaygopal balasa</dc:creator>
      <pubDate>Sat, 14 Nov 2026 09:32:35 +0000</pubDate>
      <link>https://dev.to/vijaygopalbala1/my-agent-said-done-kane-had-to-watch-it-fail-first-1cbo</link>
      <guid>https://dev.to/vijaygopalbala1/my-agent-said-done-kane-had-to-watch-it-fail-first-1cbo</guid>
      <description>&lt;p&gt;My coding agent kept telling me a ticket was done when it wasn't. Sometimes the test was green but would have been green anyway. Sometimes the fix broke something else.&lt;/p&gt;

&lt;p&gt;So for the Kane CLI hackathon I built Proven: a ticket board where a ticket closes only after Kane CLI watched its frozen test fail before the change and pass after it.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/9nl6kOpoOfc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Red first
&lt;/h2&gt;

&lt;p&gt;A person writes the ticket and a plain-English Kane test. Proven freezes the test before any work starts: it commits the ticket and the test, then a lock that names that commit. Then Kane has to fail the test on the app as it is. If the test already passes, it proves nothing, and Proven says so.&lt;/p&gt;

&lt;p&gt;The first thing I did was test how Kane fails. With my server down, an "open the page" step passed on Chrome's error page and the next step failed, so an outage looked exactly like a real bug. Now step 1 of every frozen test checks a landmark, and Proven checks that the app answers before it starts Kane. An outage is "did not run", never red.&lt;/p&gt;

&lt;h2&gt;
  
  
  One command closes the loop
&lt;/h2&gt;

&lt;p&gt;After red, &lt;code&gt;proven loop&lt;/code&gt; hands the ticket to the coding agent, Claude Code running headless. The agent's only way to say done is &lt;code&gt;proven done&lt;/code&gt;. Proven serves a snapshot of the change and runs Kane on the frozen test:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a fail goes back to the agent with the failing step and Kane's own words&lt;/li&gt;
&lt;li&gt;a pass commits exactly what Kane judged, then a receipt that links red, green and the test's hash&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After that, the loop reruns every closed ticket with fresh Kane runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened in the recorded run
&lt;/h2&gt;

&lt;p&gt;The demo shop has three tickets. Ticket 3 asks the cart to take coupon codes from marketing's &lt;code&gt;coupons.json&lt;/code&gt;. Kane failed it first: "The cart rejects the required FALL15 coupon, so the order total remains $30.00 instead of $26.25."&lt;/p&gt;

&lt;p&gt;I wrote ticket 3 so that its plain reading breaks ticket 1, and that is what the agent did, in all four live runs, the last one from a fresh clone that followed only the README. It fixed ticket 3 on the first try, but the new code only read &lt;code&gt;coupons.json&lt;/code&gt;, and SAVE10 from ticket 1 was not in it. The recheck caught it. A fresh Kane run failed ticket 1, and a second run failed it again: "The cart rejects the valid SAVE10 coupon, so the order total remains $30.00 instead of $27.50."&lt;/p&gt;

&lt;p&gt;Ticket 1 reopened, and the loop handed it back. The agent said: "The SAVE10 code is missing from coupons.json. With a $25.00 subtotal, 10% off ($2.50) plus $5.00 shipping gives the expected $27.50." It added the code, Kane passed it, and a final recheck passed all three. Nobody typed anything between the first command and the last line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two bugs I didn't plant
&lt;/h2&gt;

&lt;p&gt;Ticket 3 was my trap, so I also ran Proven on two bugs someone else reported in TodoMVC on Nov 6. In the Mithril example (#2312), deleting a todo in the Active view deletes a different, hidden one. I froze a Kane test from the issue's steps and Kane failed it: the completed todo nobody clicked was gone. The agent found that delete used the todo's position in the filtered list, changed it to use the todo itself, and Kane passed the same test. The run: &lt;a href="https://github.com/vijaygopalbalasa/proven-todomvc-2312" rel="noopener noreferrer"&gt;https://github.com/vijaygopalbalasa/proven-todomvc-2312&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the ES5 example (#2310), "Mark all as complete" stays unticked after you tick every todo. Kane failed that too. The fix was one line (checked was set on the label, not the checkbox) and Kane passed it. That run has a ticket that doesn't count, and its README says why: &lt;a href="https://github.com/vijaygopalbalasa/proven-todomvc-2310" rel="noopener noreferrer"&gt;https://github.com/vijaygopalbalasa/proven-todomvc-2310&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Anyone can re-check
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;proven verify receipts/T-1.json&lt;/code&gt; checks a receipt with git alone. &lt;code&gt;--replay&lt;/code&gt; serves the app as it was at the red commit and at the green commit and runs Kane on both: it has to fail at red and pass at green.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's rough
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Receipts are tamper-evident, not tamper-proof. An agent with a shell could forge local history, so the board shows done only for a receipt that verifies, and the strongest check is someone else running &lt;code&gt;verify --replay&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It serves static web apps only for now.&lt;/li&gt;
&lt;li&gt;Proven checks that a red got past the landmark step, not why Kane failed. A person still has to read Kane's words at red.&lt;/li&gt;
&lt;li&gt;Kane's recordings and evidence packs stay on my machine because they carry account ids. Receipts keep their hashes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/vijaygopalbalasa/proven
&lt;span class="nb"&gt;cd&lt;/span&gt; proven
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That opens the board over the real receipts, with nothing to install. To run the loop yourself, &lt;code&gt;git checkout try-it&lt;/code&gt; and follow the README.&lt;/p&gt;

&lt;p&gt;Built with Claude Code, tested with Kane CLI from TestMu AI. #KaneCLIHackathon&lt;/p&gt;

&lt;p&gt;I wrote this post with help from AI.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>ai</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
