<?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: B Lacrade</title>
    <description>The latest articles on DEV Community by B Lacrade (@b_lacrade_b51cda712b6409a).</description>
    <link>https://dev.to/b_lacrade_b51cda712b6409a</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%2F4263803%2F5010576f-7db4-443d-906d-9d9570e44e3f.png</url>
      <title>DEV Community: B Lacrade</title>
      <link>https://dev.to/b_lacrade_b51cda712b6409a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/b_lacrade_b51cda712b6409a"/>
    <language>en</language>
    <item>
      <title>Your README lies. I built a tool that proves it with Kane CLI</title>
      <dc:creator>B Lacrade</dc:creator>
      <pubDate>Wed, 25 Nov 2026 04:17:36 +0000</pubDate>
      <link>https://dev.to/b_lacrade_b51cda712b6409a/your-readme-lies-i-built-a-tool-that-proves-it-with-kane-cli-jj2</link>
      <guid>https://dev.to/b_lacrade_b51cda712b6409a/your-readme-lies-i-built-a-tool-that-proves-it-with-kane-cli-jj2</guid>
      <description>&lt;p&gt;READMEs lie. Not maliciously — they just drift. Someone changes the checkout flow, forgets to update the docs, and now the README promises a confirmation page that no longer exists. Nobody notices, because nobody re-reads the README after every deploy. The docs say the app does X. The app disagrees. Silently.&lt;/p&gt;

&lt;p&gt;I built DocTruth to catch that. It takes the claims in your README, turns each one into a Kane CLI flow, runs it in a real browser, and reports TRUE or LIE per claim — with a sealed evidence pack (screenshots + logs) for every run. When a claim fails, the verdict goes back to the coding agent, which fixes the app and re-runs Kane until it passes.&lt;/p&gt;

&lt;p&gt;This is my entry for the Kane CLI Online Hackathon. Repo: &lt;a href="https://github.com/Lacrade6/doctruth" rel="noopener noreferrer"&gt;https://github.com/Lacrade6/doctruth&lt;/a&gt; — demo video: &lt;a href="https://www.youtube.com/watch?v=eQz1csnWiN8" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=eQz1csnWiN8&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The demo store that lied
&lt;/h2&gt;

&lt;p&gt;To prove the idea I needed an app with a real bug, so I built PawShop: a tiny store with a home page, a product page, a cart, and a checkout. Three claims, written in plain English in &lt;code&gt;claims.json&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;C1&lt;/strong&gt; — The product detail page shows the product name and price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C2&lt;/strong&gt; — Adding a product to the cart updates the cart count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C3&lt;/strong&gt; — Checking out shows a confirmation with an order number.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;C1 and C2 were honest. C3 was a lie, and I planted it on purpose: the "Place order" button called &lt;code&gt;submitOrder()&lt;/code&gt;, a function that does not exist. Click it and nothing happens. No error on screen, no confirmation, no order number. A human reading the README would never catch it. The README says checkout works. The button says otherwise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run 004: Kane caught it
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;tool/run.mjs&lt;/code&gt; turns each claim into a &lt;code&gt;kane-cli run&lt;/code&gt; flow and writes the verdict to &lt;code&gt;report.md&lt;/code&gt;. The first real run came back &lt;strong&gt;2 TRUE, 1 LIE&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;C1 TRUE — product detail shows "Cat Toy, $5".&lt;/li&gt;
&lt;li&gt;C2 TRUE — cart goes to "Cart: 1 items".&lt;/li&gt;
&lt;li&gt;C3 LIE — Kane clicked Place order and reported &lt;code&gt;submitOrder is not defined&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the whole point of the tool. Not a flaky test, not a timeout — a concrete, named failure, with the evidence pack in &lt;code&gt;evidence/run-004/&lt;/code&gt; to prove it. Anyone can open the NDJSON logs and see exactly what Kane did and what the page returned.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, and run 005
&lt;/h2&gt;

&lt;p&gt;The fix was one line in &lt;code&gt;app/checkout.html&lt;/code&gt;: &lt;code&gt;onclick="submitOrder()"&lt;/code&gt; became &lt;code&gt;onclick="placeOrder()"&lt;/code&gt;. Nothing else changed. Then the loop closed itself — the agent re-ran the same claims through Kane:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3 TRUE, 0 LIE.&lt;/strong&gt; Kane filled in the name (Alex Taylor) and address (123 Main Street), clicked Place order, and the confirmation appeared with order number &lt;strong&gt;PS-731959&lt;/strong&gt;. Evidence in &lt;code&gt;evidence/run-005/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Agent builds. Kane verifies. Kane's verdict fixes the build. Kane confirms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a tool, not a demo
&lt;/h2&gt;

&lt;p&gt;A one-off demo proves the loop once. DocTruth is meant to be reused:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Any README, any app.&lt;/strong&gt; Claims are plain-English sentences in &lt;code&gt;claims.json&lt;/code&gt;; point it at any app URL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The loop is automated.&lt;/strong&gt; &lt;code&gt;tool/run.mjs&lt;/code&gt; runs every claim through Kane, parses the results, and writes &lt;code&gt;report.md&lt;/code&gt;. No hand-driving the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence is sealed.&lt;/strong&gt; Every run leaves a pack of screenshots and logs under &lt;code&gt;evidence/&lt;/code&gt;, so a verdict can be checked without re-running anything — and without spending credits. The packs for run-004 and run-005 are in the repo; you can verify both runs without a TestMu account.&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;&lt;span class="c"&gt;# 1. Serve the demo app (any static server)&lt;/span&gt;
python3 -m http.server 8137 --directory app

&lt;span class="c"&gt;# 2. Run the claims through Kane (needs `kane-cli login` first)&lt;/span&gt;
node tool/run.mjs --base-url http://localhost:8137

&lt;span class="c"&gt;# 3. Read the verdict&lt;/span&gt;
cat report.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Requirements: Node 20+, Kane CLI (&lt;code&gt;npm install -g @testmuai/kane-cli&lt;/code&gt;), and a TestMu AI account — 10,000 free credits cover the demo many times over.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took away from this
&lt;/h2&gt;

&lt;p&gt;The interesting part was never the bug itself. It was how ordinary the lie was. A button wired to a function that doesn't exist is the kind of thing that ships all the time, and the README keeps promising the feature for months afterward. The fix took one line; finding it took a browser that actually clicks the button.&lt;/p&gt;

&lt;p&gt;If your docs make promises, make something check them. DocTruth is my attempt at that — and the evidence packs are in the repo if you want to argue with the verdict.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with Muse, tested with Kane CLI, for the Kane CLI Online Hackathon. Showcase: &lt;a href="https://www.kaneclihack.sh/o/p/b-lacrade" rel="noopener noreferrer"&gt;https://www.kaneclihack.sh/o/p/b-lacrade&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kanecli</category>
      <category>testmuai</category>
      <category>ai</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
