Kane checks the screen. Your app confirms it.
Beam weighs every Kane verdict against what your app knows to be true, and hands any difference to your coding agent.
npx kane-beam installA real run, both pans
The Northwind Coffee checkout demo, with two planted bugs. Kane reads the screen and passes. The app reports what it actually did.
Kane reads the screen
- Total shows $45.00
- Page says “Order placed”
Verdict: passed
Your app reports its own state
- cart.total45
- order.amount50expected 45
- order.statusplaced
- no failed requestsPOST /api/orders → 500expected none
- no JS errorsnone
False green Kane passed. The app says it charged $50 and the order request failed.
How the balance works
Your app reports its truth
One script tag in your dev build, added by
npx kane-beam init. Expose what the code knows, and Beam also records the app's own requests, errors and saved data.beam.expose('order.amount', () => lastOrder.amount)You say what must be true
Next to a Kane test, a small file lists the truth that has to hold when the check passes.
{ "truth": [ { "key": "order.amount", "equals": 45 }, { "network": "no-failures" } ] }Kane runs, Beam weighs
Kane drives the real flow in a real browser. Beam compares its verdict with what the app reported during that same run. Replays of recorded tests cost no Kane credits.
npx kane-beam verify tests/checkout_test.md
Your agent closes the loop
With Beam's MCP server, a coding agent calls beam_verify, reads which value disagrees, fixes the app and verifies again. It can't pass by editing the test: Beam refuses runs where the test changed.
On the checkout demo, Claude Code, given only Beam's tools and a customer's complaint, made three changes in the app and nothing in the tests:
- Charged the discounted total instead of the subtotal.
- Added the
SAVE10code the server didn't know about. - Made the page check the order request, so a failed order never says “Order placed”.
Kane reads the screen
- Total shows $45.00
- Page says “Order placed”
Verdict: passed
Your app reports its own state
- cart.total45
- order.amount45
- order.statusplaced
- no failed requestsnone
- no JS errorsnone
Balanced Kane passed, and the app agrees.
The MCP tools your agent gets
beam_verify- Runs a Kane test and weighs it against the app.
beam_app_state- The app's latest reported values.
beam_app_history- Snapshots over time, for when did it go wrong.
beam_check_wording- Whether a Kane wording is a measured false green, and the one that works.
Why a second pan
Kane's verdict depends on how a check is worded, and on the code Kane happens to record. We measured 16 behaviors on pages with known answers, 8 of them from Kane's own public issues.
Verify the todo counter reads "1 item left".False green On a page that says “1 items left”, Kane passed it: bug missed.Verify the exact visible text of the todo counter is "1 item left".Balanced On a page that says “1 items left”, Kane failed it: bug caught.
Measured on Kane 0.10.9 and 0.10.8, last run 26 Nov, 14:45 WAT.
The matrix
- Balanced
- right as first worded
- Balanced with wording
- right with Beam's wording
- False green
- passed a broken page
- False red
- failed a correct page
| Behavior | Issue | Kane 0.10.9 | Kane 0.10.8 |
|---|---|---|---|
| Saved message despite failed requestClicking "Save" fetches ok.json successfully and then shows "Saved" in green. | – | False green | False green |
| Counter label, singular vs pluralAfter adding one to-do, the counter should read "1 item left". | #254 | Balanced with wording | Balanced with wording |
| Bar hides after clearing selectionClicking Clear selection hides the blue "3 items selected" bar. | #65 | Balanced | Balanced |
| Create button disabled while Email is emptyOn a sign-up form with an empty Email field, the "Create account" button is disabled. | – | Balanced | Balanced |
| Exactly one to-do after adding oneAfter adding the to-do "b", the list shows exactly one row, and that row reads "b". | #233 | Balanced | Balanced |
| Result appears after a delayAfter clicking "Load report" and waiting 2.5 seconds, the page shows "Report ready: 42 rows". | – | Balanced | Balanced |
| Status badge capitalisationThe status badge reads "Active" with a capital A. | – | Balanced | Balanced |
| Swap confirmation shows the typed amountAfter typing 0.5 into the You pay field and clicking Review swap, the confirmation line reads "You pay 0.5 ETH". | #239 | Balanced | Balanced |
| Task inside a collapsed sectionThe Activity panel's collapsed "Upcoming & Overdue" section contains the task "Call Kane Hot Co". | #212 | Balanced | Balanced |
| Account menu items on hoverHovering over "Account" reveals a menu with "Profile", "Billing" and "Sign out". | – | Not run | Not run |
| Invoice total inside an iframeAn embedded invoice frame shows the total "Total: $120.00". | – | Not run | Not run |
| Price inside a shadow rootA custom <price-tag> element shows "Price: $49" inside its open shadow root. | – | Not run | Not run |
| Save shows a settings toastClicking Save shows a toast reading "Settings saved" that stays for 4 seconds and then fades. | #165 | Not run | Not run |
| Thousands separator in item countThe order summary shows "Items: 1,250" with a thousands separator. | – | Not run | Not run |
| To-do survives a page reloadAfter adding a to-do and reloading the page, the to-do is still listed because it is saved in localStorage (Kane issue 252 reported the reload being done as a Ctrl+R key press). | #252 | Not run | Not run |
| To-dos saved under the react-todos keyEach added to-do is saved as a JSON array under the localStorage key "react-todos". | #255 | Not run | Not run |
No behavior matches that search. Know a Kane check that goes wrong? Suggest one.