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.

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.

This is my entry for the Kane CLI Online Hackathon. Repo: https://github.com/Lacrade6/doctruth — demo video: https://www.youtube.com/watch?v=eQz1csnWiN8

The demo store that lied

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 claims.json:

  • C1 — The product detail page shows the product name and price.
  • C2 — Adding a product to the cart updates the cart count.
  • C3 — Checking out shows a confirmation with an order number.

C1 and C2 were honest. C3 was a lie, and I planted it on purpose: the "Place order" button called submitOrder(), 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.

Run 004: Kane caught it

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

  • C1 TRUE — product detail shows "Cat Toy, $5".
  • C2 TRUE — cart goes to "Cart: 1 items".
  • C3 LIE — Kane clicked Place order and reported submitOrder is not defined.

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

The fix, and run 005

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

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

Agent builds. Kane verifies. Kane's verdict fixes the build. Kane confirms.

Why a tool, not a demo

A one-off demo proves the loop once. DocTruth is meant to be reused:

  • Any README, any app. Claims are plain-English sentences in claims.json; point it at any app URL.
  • The loop is automated. tool/run.mjs runs every claim through Kane, parses the results, and writes report.md. No hand-driving the browser.
  • Evidence is sealed. Every run leaves a pack of screenshots and logs under evidence/, 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.

Try it

# 1. Serve the demo app (any static server) python3 -m http.server 8137 --directory app # 2. Run the claims through Kane (needs `kane-cli login` first) node tool/run.mjs --base-url http://localhost:8137 # 3. Read the verdict cat report.md 

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

What I took away from this

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.

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.

Built with Muse, tested with Kane CLI, for the Kane CLI Online Hackathon. Showcase: https://www.kaneclihack.sh/o/p/b-lacrade