Kane CLI · the checkout promise gate

An ad makes a promise.
The checkout has to
keep it.

Kern freezes the merchant’s offer, sends Kane through the real rendered checkout, and blocks the agent’s fix until the same promise passes unchanged — across free shipping, percentage discounts, bundles and delivery. No screenshot theater. No self-certified “done.”

100/100 tests pass 4 promise classes 30 real runs 9/9 new proof honored

Live checks run on the operator's machine. The runs below are real executions; this deployment only reads them.

01 · Kane findsBROKEN

$60.00 eligible · recorded checkout

Promised$0.00
Observed$9.00

The $60 cart was charged $9.00 while the ad promised free shipping.

Inspect the failed audit →
02 · Pi repairs1 LINE

src/lib/shipping.ts

- if (subtotal >= threshold * 100) + if (subtotal >= threshold)

The coding agent changed the shipping threshold in the real source, not the expectation.

Open the repair case →
03 · Kane gatesGATE OPEN
6/6SHIP

objective hashes unchanged

after the repair: $0.00 shipping

The same six objectives ran against the repaired store. The patch only ships when the gate opens.

Open the gate →
“A patch is not done because it compiles. It is done when the customer gets the promise.”

The Kern principle · terminal-driven repair, independently gated

Built with KANE CLI CHROME TESTMU SHA-256 4 PROMISES 100 TESTS

The promise library

One witness. Four promises.

The ad can promise a shipping threshold, a percentage discount, a bundle or a delivery date. Kern gives each one a boundary case and a control.

01 · Shipping

$50 threshold

$60 and the exact $50 qualify; the $35 control keeps paying $9.

02 · Percentage

20% over $50

$60 gets $12 off; the exact boundary gets $10; the $35 control gets $0.

03 · Bundle

Tote + notebook

The complete bundle gets 15%; tote-only and notebook-only get $0.

04 · Delivery

2pm / 2 days

The cutoff and weekends move the date: Nov 30, Dec 1, Dec 2.

The product

A promise firewall for AI-generated commerce changes.

Most tests check whether the code still works. Kern checks whether the customer still gets what the ad promised.

01

Four promise classes

Free shipping, percentage discounts, bundles and delivery estimates. One witness, one boundary-and-control discipline.

02

Frozen promise contract

The ad and the merchant’s interpretation stay separate. The terms and policy are hash-linked before a run.

03

Kane in the real checkout

Kane reads the rendered price, discount, bundle total or delivery date. The store’s own code never decides whether the promise passed.

04

Boundary + control

Every class gets an eligible case, the exact edge and a control. The offer cannot be “fixed” by giving it to everyone.

05

An agent gate, not a report

The gate exits non-zero. Claude Code can stop-block; Pi can run the same command. The agent cannot self-certify.

06

Scoped promise proof

The promise, observed values, evidence hashes, code change and “what this does not prove” live in one record.

The witness

Kane CLI is not a checkbox at the end.

Kane is the only component that opens the customer checkout and reads the rendered value. Kern freezes the promise and decides; Kane supplies the independent browser truth.

01

It sees the checkout

A unit test can agree with the bug. Kane reads the actual rendered price, discount, bundle total or delivery date the customer sees.

02

It carries the evidence

Every run has a terminal run_end, exit code, extracted values and evidence hash. The gate is built on those artifacts.

03

It gates the repair

Pi can change the source, but not the challenge. Kane reruns the same objectives after a change before the gate can open.

Why Kane CLI → See the 18-run proof →

The evidence

Four promise classes. Two proofs.

The first proof is the shipping repair below. The second is 18 real Kane runs across percentage discounts, bundles and delivery.

CartPromisedBefore repairAfter repairGate
$60.00 eligible $0.00 $9.00 $0.00 HONORED
$50.00 boundary $0.00 $9.00 $0.00 HONORED
$35.00 control $9.00 $9.00 $9.00 HONORED

The second proof

18 real Kane runs. 9/9 scenarios HONORED.

Percentage discounts, bundles and delivery estimates — with every session, exit and evidence hash on the public proof page.

Open the promise proof →
2 recorded shipping audits · 12 shipping runs + 18 promise runsOpen the audits · Open the promise proof

Explore

Everything is open.

The demo app, the gate, the raw audits, the storefront, the receipts and the README.