Inspiration
Who: anyone who lets an AI agent publish for them, such as a creator posting vertical videos. The harm: a broken file goes out under their name. My agent said "done" on a video with a black opening and a silent track, and its own task list was fully checked. Nothing measured the file, so nothing stopped the upload.
What it does
Charon is a small skeleton for release gates. A gate is a file of checks with thresholds. A judge measures an artifact and returns PASS, FAIL or HOLD. HOLD means the evidence is missing, and it does not count as a pass. Every verdict goes into a hash-chained ledger, so editing an earlier line is detected.
Five fixed rules apply to every gate: no evidence, no crossing; a verdict states what was measured, the threshold and the source; a verdict is bound to the SHA-256 of the artifact and the gate; the ledger is append-only and hash-chained; agents cannot overrule, only a named human can record an override.
Two apps use the skeleton and share no code except the skeleton:
- Ghost Viewer judges a vertical short video in the browser: aspect ratio, resolution, duration, black frames, frozen frames, silence, UI-band intrusion, off-centre layout, opening motion. The file never leaves the browser.
- Seance judges a machine learning submission before it is sent: seven checks on paired scores (sample size, paired z, bootstrap lower bound, duplicate file, local-vs-public rank, level gap, daily quota). A sample with a gain that does not hold up ("The ghost") fails four of the seven checks; "The real thing" passes.
Both run on built-in synthetic samples, so a reviewer needs no file and no login.
Tested on a real 10-second MP4 with a black opening and no sound: FAIL, with four checks over their limits and both SHA-256 hashes shown.
How we built it with Kiro
Kiro CLI, free plan. Everything Kiro made is in /.kiro:
steering/(product.md, tech.md): the five rules and the stack, loaded in every run.specs/(charon-core, ghost-viewer, seance, toll-fixes, field-test-fixes): requirements, design and tasks for three features and two bugfixes.hooks/toll-gate.json: a PreToolUse hook that exits with code 2 on a release-like call unless the ledger holds a PASS for that artifact.hooks/test-on-save.jsonruns the tests.settings/mcp.json: a local MCP server that exposes the judge and the ledger.agents/ferryman.json: a read-only custom agent that hunted for holes in the skeleton (9 found). Failures and the nine findings:KIRO_WRITEUP.md.
What did not work
The first hook read toolName where the payload says tool_name: 46 tests passed and nothing was blocked. Ferryman then found 9 weaknesses: seven are fixed, F7 is partly fixed and F5 is open (KIRO_WRITEUP.md).
Tests
173 tests pass (skeleton 99, Ghost Viewer 38, Seance 36). Run npm run install:all && npm test in the repo root (needs network once, for the test library fast-check).
Prior work disclosure
Written for this hackathon. Kiro CLI built the specs, skeleton, apps, hooks, MCP server and agent; Claude Code wrote the two steering files and the later hand fixes, listed in KIRO_WRITEUP.md.
Try it
Live demo (no login, built-in samples): https://charon-gates.pages.dev
The Kiro write-up is KIRO_WRITEUP.md in the repository; everything Kiro produced is under /.kiro.
Built With
- fast-check
- html5
- javascript
- kiro
- model-context-protocol
- node.js