Kern Gate · commercial promise
The agent does not decide. Kane does.
A patch is not done because it compiles. It is done when the frozen promise survives the real browser, the boundary, and the control. This page covers the free-shipping gate; the four-class promise proof is separate.
Gate status
OPEN · 3/3 scenarios pass
“The agent may not ship until Kane passes the same objectives.”
What the gate checks
The gate reads the audit evidence against the current frozen contract. It does not ask the store’s shipping function what the answer should be.
| Cart | Promised | Observed | Audit | Gate |
|---|---|---|---|---|
| $60.00 eligible |
$0.00 | $0.00 | HONORED | PASS |
| $50.00 boundary |
$0.00 | $0.00 | HONORED | PASS |
| $35.00 control |
$9.00 | $9.00 | HONORED | PASS |
Patch gauntlet: only one fix gets through
The exact $50 boundary catches a fix that only frees $60 and up. The $35 control catches a fix that makes all shipping free. The pre-repair rule is the actual defect.
| Patch | $60.00 eligible | $50.00 boundary | $35.00 control | Result |
|---|---|---|---|---|
| Correct cents comparison |
PASS | PASS | PASS | SHIP |
| Make all shipping free |
PASS | PASS | FAIL | REJECT |
| Free only at $60+ |
PASS | FAIL | PASS | REJECT |
| Label the charge as Free |
FAIL | FAIL | PASS | REJECT |
| Fix the threshold, free the control |
PASS | PASS | FAIL | REJECT |
| The audited pre-repair rule |
FAIL | FAIL | PASS | REJECT |
Run the gate
npm run gate -- --audit recorded/2026-11-23T12-35-29-692Z-48b993/audit.json npm run gate -- --run # real Kane audit; spends credits npm run gate -- --contract .data/contracts/.json --run --url npm run --silent gate -- --json # machine-readable
The command exits 0 only when the gate is open. A coding agent can use it as a stop hook: npm run gate -- --audit <path> || exit 1. The agent does not get to self-certify; it gets the observed values, the frozen expectations, and a closed gate.
The new promise classes
The same gate now has a deterministic command for percentage discounts, bundles and delivery estimates: npm run promises. Its real proof is 18 Kane runs, 9/9 HONORED, on the promise proof page. npm run promise:audit runs a fresh 18-run audit and spends credits.
Evidence
Contract kern-demo-free-shipping-v1 · hash 032dbd00ff1f5c236f8c72be4aeba464bb181e71a7cffc138b22ef3e5a4323f4