<?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: blvesky</title>
    <description>The latest articles on DEV Community by blvesky (@blvesky).</description>
    <link>https://dev.to/blvesky</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%2F4266456%2Ffc3195b9-34e6-4f13-a50f-08f9a70946e8.png</url>
      <title>DEV Community: blvesky</title>
      <link>https://dev.to/blvesky</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blvesky"/>
    <language>en</language>
    <item>
      <title>I let an AI agent build a store, then made Kane CLI grade it in a real browser</title>
      <dc:creator>blvesky</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:07:42 +0000</pubDate>
      <link>https://dev.to/blvesky/i-let-an-ai-agent-build-a-store-then-made-kane-cli-grade-it-in-a-real-browser-16ge</link>
      <guid>https://dev.to/blvesky/i-let-an-ai-agent-build-a-store-then-made-kane-cli-grade-it-in-a-real-browser-16ge</guid>
      <description>&lt;p&gt;Most of my side projects "work" in the sense that I clicked through them once and nothing exploded. For this hackathon I wanted the opposite deal: a tiny app, and verification I can't sweet-talk.&lt;/p&gt;

&lt;p&gt;So the app is deliberately boring. &lt;strong&gt;CartLoop&lt;/strong&gt; is a demo store in one HTML file — six products, a cart, a 10% discount code (&lt;code&gt;LOOP10&lt;/code&gt;), a checkout form with per-field validation, order numbers that start with &lt;code&gt;CL-&lt;/code&gt;. No framework, no build step. The file is not the interesting part.&lt;/p&gt;

&lt;p&gt;The interesting part is &lt;code&gt;verify.sh&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It boots the store on localhost and hands Kane CLI three test flows written as plain numbered English — no selectors, no test framework. One flow walks the money: add a notebook ($18), add a mug ($42), bump a quantity ($60), undo it ($42), remove the mug ($18). One flow applies a discount code that doesn't exist and asserts the total &lt;em&gt;doesn't move&lt;/em&gt;. One flow picks a fight with the checkout form — empty fields, a malformed email, a 15-digit card number — and requires a specific error for each before a valid order goes through.&lt;/p&gt;

&lt;p&gt;Kane runs them in headless Chrome in agent mode. &lt;code&gt;verify.sh&lt;/code&gt; reads the final event of each run and only exits zero if all three say &lt;code&gt;passed&lt;/code&gt;. My coding agent runs that command after every edit and reads the structured output when something fails. Agent writes code, Kane checks it in a browser, agent fixes. Nobody grades their own homework.&lt;/p&gt;

&lt;p&gt;Then the discount flow failed — and the store was innocent. Kane's agent did everything right: one Field Notebook in the cart, BOGUS typed, Apply clicked. The final screenshot showed exactly the expected state: Subtotal and Total at $18.00, "Invalid discount code." on screen, no discount applied. Kane still failed the run, and to its credit, its own verdict said why: family automation_bug / config_issue, confidence 0.98 — the final assertion had returned placeholder text instead of the cart values, and one of its checks had matched the LOOP10 discount row by raw page text. That row lives in the DOM from the moment the page loads; it's just hidden until a valid code applies. A text search can't tell hidden from visible.&lt;/p&gt;

&lt;p&gt;The fix went into the test, not the store. Step five of the flow now reads: "Verify the Subtotal and Total still show $18.00, and that no discount amount is visibly displayed in the order summary (the LOOP10 discount row must not be visible on the page)." Re-ran the flow: passed. Then a full &lt;code&gt;bash verify.sh&lt;/code&gt; — all three flows passed in a single run, exit code 0. That's the loop working as intended: the checker got checked.&lt;/p&gt;

&lt;p&gt;If you want to poke at it: the repo has the store, the three flows, and the script — &lt;code&gt;bash verify.sh&lt;/code&gt; runs the whole thing locally.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/blvesky/cartloop" rel="noopener noreferrer"&gt;https://github.com/blvesky/cartloop&lt;/a&gt;&lt;br&gt;
Demo video: &lt;a href="https://www.youtube.com/watch?v=nn5i6qbGKsM" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=nn5i6qbGKsM&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built for the KaneCLI Online Hackathon. Small app, honest tests.&lt;/p&gt;

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