Kane CLI Project Showcase / Payments, checkout and commerce correctness

Clause Hybrid

Clause Hybrid turns contractor quotes into card limits. When a $6,000 charge exceeded the $4,000 cap, Kane CLI exposed a broken explanation and verified the fix.

  • Built with Hark by Xuefeng Zhu
  • Tested with Kane CLI

Demo video by the Clause Hybrid team

About Clause Hybrid

Clause Hybrid turns a contractor's quote into a virtual card with rules. Gemini (Firebase AI Logic hybrid: Gemini Nano on-device in Chrome, cloud Gemini otherwise) reads quotes, change orders and proof photos, but never touches money: AI output goes through schemas, deterministic validators and a human click, and card rules decide every charge. It's for homeowners and small businesses paying contractors in milestones.

Kane CLI checks that in a real browser with four plain-English flows: quote to terms, an over-limit charge, a change order, a rejected proof photo. Offline mode is a separate manual DevTools check.

The catch: Kane pushed a $6,000 charge against the $4,000 released limit. The card rules declined it correctly, but Explain opened an empty chat with no AI connected. My AI agent (Hark) read Kane's result, made Explain answer inline with a validator that blocks invented amounts or payment promises (commit 22daf67, 4 new tests), and Kane's rerun passed. Flow 04 had passed while a rejected photo still read "Proof received"; it now asserts "Proof rejected" and "$5,000 stays locked". On Nov 23 Kane found server AI output had no source badge; after the fix it passed showing "Cloud · gemini-3.5-flash-lite".

Kane's headless Chrome has no Gemini Nano, so on-device inference was tested separately. Repro: AUTH_DISABLED=true pnpm dev, then kane/run-flows.sh 02. Details: docs/KANE.md.

More about Clause Hybrid

Loop: kane/run-flows.sh runs flows 01-04 (05 offline is a manual DevTools check) and writes kane/out/FAILURES.md; a coding agent gets that file plus the prompt in kane/AGENT_LOOP.md, fixes, runs tsc + vitest, and re-runs only the failed flows. For the 22daf67 Explain fix the agent was Hark, working from Kane's results before the script existed. On Nov 24 the loop ran end to end: Kane flow 01 failed on an ambiguous closing sentence, FAILURES.md went to Codex CLI, Codex removed that sentence (commit db51d20), and Kane's rerun passed. Quick run: AUTH_DISABLED=true corepack pnpm dev, then KANE_URL=<URL the dev server prints>/home kane/run-flows.sh 02 (e.g. http://localhost:8080/home). Flow 04 uses kane/fixtures/stock-not-job-site.jpg. Every run, including failures and Kane runner crashes: docs/KANE.md. Next: Kane flows on Android, and run on every push.

Community-submitted project. The description and results come from the Clause Hybrid team's Kane CLI hackathon submission and have not been verified by TestMu AI.

Test your own app the way Clause Hybrid was tested

Every project in the showcase had to run Kane CLI to be eligible. Kane CLI runs a flow you describe in plain English in a real browser, and saves the steps, screenshots, logs and verdict as evidence.

npm install -g @testmuai/kane-clikane-cli loginkane-cli run --url https://your-app.example "Sign up and verify the dashboard loads"