I switched off a real web app's server. It still works, and an AI tester proved every interaction.
Live demo, no install: amber-capsule.pages.dev/amber · Code: github.com/iftikar0016/amber Web apps die when their server does. The front end is just files, but the moment the API goes away, every click hits a de
Live demo, no install: amber-capsule.pages.dev/amber · Code: github.com/iftikar0016/amber
Web apps die when their server does. The front end is just files, but the moment the API goes away, every click hits a dead end.
For the KaneCLI hackathon I built AMBER: it takes a real open-source app, Vikunja (a to-do app with projects, list/table/Kanban views and comments), and preserves it as a capsule: Vikunja's own, unchanged front end, plus a Service Worker that answers every API call inside the browser. There is no backend process at all. You can open it right now on a static host and add tasks, rename them, comment, mark them done, and they're still there after a reload.
But "it seems to work" isn't the point. The point is proof.
A naive replay lies
The obvious way to fake a backend is to record the API traffic and play it back. That works for reads. For writes, it lies: you add a task called Paint samples and the replay hands you back the task from the recording, not yours. The screen looks right, and nothing was saved.
So AMBER has one rule: a recording is never allowed to prove a change. Recorded write responses are never replayed. A change has to be really carried out by the capsule's own store (kept in IndexedDB), and a real tester has to see it, with the server provably off.
That tester is Kane CLI.
Kane CLI does four jobs
1. The user, on the real server. I wrote the journeys in plain English, for example:
Open the project Kitchen renovation, add a new task titled Paint samples {{amber_tag}}, then verify it appears in the task list. Reload the page, then verify it is still listed.
Kane walks each one against the real Vikunja, through a recording proxy that keeps every API exchange (scrubbed of passwords and tokens). Kane's saved tests are then frozen by SHA-256; a git pre-commit hook refuses any edit, so nobody can change a test to make it pass.
Every write journey types a fresh random six-letter tag each run, so a replayed response, carrying the recording's tag, can never pass.
2. The judge, with the server off. Before and after every run, AMBER checks that nothing listens on Vikunja's port and no Vikunja process exists. The capsule is served by a plain static server with no API, so any /api/ request that reaches it is logged as a leak, and a leak fails the journey even if Kane passed it.
3. The gate on the coding agent. The repairs were made by Claude Code, one interaction per commit. A Claude Code Stop hook runs AMBER's gate whenever the agent tries to finish: Kane replays every journey that passed before, and if one now fails, the agent is blocked and handed Kane's brief to read.
4. A tester of AMBER's own page: four saved Kane tests check the amber block (the visual you see in the video).
The loop
The baseline, a capsule that could only replay, passed 8 of 15 journeys: every read, and none of the 7 that change data. Kane caught all 7, each with its own diagnosis ("The app rejected creation of the requested task, so it never appeared in the project list").
Then the loop: Claude Code reads Kane's failure brief, fixes one interaction in the capsule's store, and a Kane run with the server off proves it. Seven repairs, seven commits: 15 of 15. Then Kane re-authored every journey from its plain English on the capsule, with no recorded steps at all: 15 of 15 again.
To prove the Stop hook really gates the agent, a session broke one repair on purpose and tried to stop. The hook had Kane replay all fifteen; AMBER caught the failure, and the agent was blocked. Once Kane proved the fix, the hook let it go. Both decisions are in runs/gate.ndjson.
The day Kane was wrong
My favourite moment. Kane passed the "comment on a task" journey on the replay-only capsule, but the capsule had refused the comment.
What happened: after the reload, Vikunja restored the unsent draft into the comment editor. Kane's check found the text on the screen and said "passed".
AMBER's own log had seen the refused request (POST …/comments → 501), so it overruled Kane:
A pass the wire contradicts is a fail.
It happened again in the Stop-hook demo: Kane was fooled by the draft a second time, and it was AMBER's dispute that made the hook block the agent. Kane is very good. But it should never be the only witness.
Round two: what a visitor hits in a minute
A review of the first version pointed out what a judge would hit while clicking around: a task you just added can't be opened, the home page and search don't show it, marking it done doesn't move it on the Kanban board, and favourites and labels are refused.
So: six more plain-English journeys, authored by Kane on the real server, frozen next to the untouched 15. All six failed on the capsule, six repairs followed, each proven by its own Kane run, and the final check passed 21 of 21 with the server off.
Round two also taught me things about the recordings themselves:
- Kane caught my wording twice. One journey said "listed next to", which Kane read as "directly adjacent". Another said "the star next to it", and Kane starred a task instead of the project. Both were fixed before being frozen.
- Some recordings can't replay honestly. Two of Kane's saved checks compared the result against the capture run's own tag, so a fresh tag could never match. And every early recording checked Vikunja's greeting ("Still at it, Amber Demo?"), which Vikunja picks from a hash of the date and time of day, so on another day the outcome depended on Kane's fallback. Those journeys are now verified by fresh authored runs from their plain English, with the reason and evidence written into the lock file.
-
Putting it on real hosting found a real bug. Cloudflare Pages redirects
/index.htmlto/, and a Service Worker may not answer a page navigation with a redirected response, so every deep link failed. The worker now fetches the app shell as/.
Honest scope
- This is one app. AMBER is the agent workflow that produced Vikunja's capsule, not a one-command tool for any site. The capture, replay, verify and gate tooling is general; the store was written for Vikunja, one Kane failure at a time.
- Only the 21 journeys are proven. Upcoming and Gantt views are still replayed, and changes no journey makes are refused with an honest error, never invented data.
- Every claim in the README links to the committed Kane run that proves it, including the credit spend, measured from the Kane balance for every batch.
Try it
- Live: amber-capsule.pages.dev/amber shows the amber block (press Replay the run, or Open the live app). The app itself is at amber-capsule.pages.dev.
- Locally, with no install, no Kane account and no credits:
git clone https://github.com/iftikar0016/amber && cd amber
node bin/demo.mjs
Build it with an agent. Prove it with Kane. Keep it in amber.
The narration in the video is an AI voice (ElevenLabs).
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.