How it was built
Built by Touko Ursin with AI agents: Kiro (Kiro CLI, free tier) and Claude (Claude Code). This page is generated from the repository's .kiro folder and README by scripts/build_built_page.py, so it shows what is in the repo.
Watch Kiro work
Replays of the terminal recordings of four Kiro CLI runs, with the prompt each one was given: run 12, where Kiro took eleven fixes from a third review and the property tests ran on every server save, until the free tier's monthly limit ran out; run 9, where Kiro took nine fixes from two rounds of review by AI judge agents, wrote them into the spec, built them and ran its tests; run 11, where it answers a lookup through the MCP server; and run 10, where the honesty gate flagged a line and Kiro checked it.
The spec
Kiro turned a one-page brief into a spec, now 33 user stories with 94 acceptance criteria in EARS notation, a design, and a task list (73 tasks done, 0 open, 4 removed with the dropped brownfield and cemetery layers). Claude wrote 6 of the stories (US-28 to US-33) after Kiro's free tier ran out; Kiro wrote the rest.
requirements.md | 476 lines |
design.md | 458 lines |
tasks.md | 128 lines |
Hooks
| Hook | When | What it does |
|---|---|---|
| Honesty gate | Stop | When the agent finishes a turn, fail loudly if any page or README hard-codes a statistic instead of reading numbers.json, or uses an alarm word the honesty steering bans. |
| Regenerate numbers.json | PostFileSave (^|/)scripts/build_(db|numbers)\.py$ | When the index builder or numbers script changes, rebuild numbers.json so no page can show a stale number. |
| Keep design and tasks in sync | PostFileSave \.kiro/specs/.*/requirements\.md$ | When requirements.md changes, ask the agent to update design.md and tasks.md so the three spec files never disagree. |
| Property tests on save | PostFileSave (^|/)(server|scripts)/[^/]+\.py$ | Run the Hypothesis property tests whenever lookup or server code changes, so a broken distance rule never survives a save. |
Kiro's own session logs record 28 hook runs while it worked on this repo: Keep design and tasks in sync 12 times and Honesty gate 10 times and Property tests on save 6 times. No runs are recorded for Regenerate numbers.json. Exported by scripts/export_hook_runs.py to .kiro/hook-runs.jsonl.
| When | Hook | Result |
|---|---|---|
| 2026-12-01 19:27 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 19:28 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 19:28 UTC | Honesty gate | completed |
| 2026-12-01 19:42 UTC | Honesty gate | completed |
| 2026-12-01 19:52 UTC | Honesty gate | completed |
| 2026-12-01 19:52 UTC | Honesty gate | completed |
| 2026-12-01 20:57 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 20:58 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 20:58 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 21:00 UTC | Honesty gate | completed |
| 2026-12-01 21:29 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 21:29 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 21:31 UTC | Honesty gate | completed |
| 2026-12-01 21:38 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 21:38 UTC | Honesty gate | completed |
| 2026-12-01 22:06 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 22:07 UTC | Honesty gate | completed |
| 2026-12-01 22:17 UTC | Honesty gate | completed |
| 2026-12-01 22:33 UTC | Honesty gate | completed |
| 2026-12-01 23:16 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 23:16 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 23:16 UTC | Keep design and tasks in sync | completed |
| 2026-12-01 23:17 UTC | Property tests on save | completed |
| 2026-12-01 23:17 UTC | Property tests on save | completed |
| 2026-12-01 23:17 UTC | Property tests on save | completed |
| 2026-12-01 23:18 UTC | Property tests on save | completed |
| 2026-12-01 23:18 UTC | Property tests on save | completed |
| 2026-12-01 23:19 UTC | Property tests on save | completed |
Steering
| File | About | Included |
|---|---|---|
honesty.md | Honesty and Plain-Language Rules | always |
product.md | Product — What Haunts This House | always |
structure.md | Project Structure | always |
tech.md | Tech Stack | always |
Custom agents
data-scout | Finds and checks public US federal datasets for a hazard layer: licence, update date, row count, coordinates, and a stable source URL per record. |
plain-words | Copy reviewer: rewrites user-facing text so a tired home buyer understands it in one read, and enforces the honesty steering (proximity, never contamination; every claim sourced). |
MCP
An MCP server over the same database the site uses: haunts (python3 mcp/haunts_mcp.py), with tools dataset_sources, haunts_lookup. Kiro agents call it to look up an address or check a dataset's source (see a recorded call).
Tests
178 tests, 13 of them Hypothesis property tests of the distance and polygon rules.
Who did what
- Kiro (Kiro CLI, free tier) wrote the spec in .kiro/specs from a one-page brief, the steering files (.kiro/steering), the four hooks (.kiro/hooks: honesty gate on stop, property tests on save, numbers rebuild, and spec sync, which updates design.md and tasks.md when the requirements change), two custom agents (.kiro/agents:
plain-wordsfor user-facing copy, which ran once and made 11 copy edits, anddata-scoutfor datasets, which was written but never run), the first versions of the lookup, server, database builder, numbers script and tests, and the MCP server with its tests. Kiro's own session logs show 12 spec-sync runs, 10 honesty-gate runs and 6 test runs on save; the raw session files are in the repo (see "Check the Kiro claims yourself" below). The save hook only started firing in the fourth run, after its path matcher was fixed; the numbers hook has never fired from the CLI. Replays of recorded runs show the hooks in place. Each later run started from a prompt Claude wrote out of AI judge agents' reviews; Kiro wrote each change into the requirements first, then the tasks, code and tests: the address check, open and closed tank cases, plain words for old military records, a full empty state, cancelling a running search, a flood cache,make check-live, and in the fourth run open cases first, checked-and-clear lines, merged duplicate rows, a stable geocode and fixed hook matchers. The fourth run ended when the free tier's monthly limit ran out. - Claude (Claude Code) wrote the brief and every prompt to Kiro, the data fetch and address sampling scripts, the front end and its design, the data fixes (radon group, tank location precision, flood source, Superfund boundary layer), the parts of review fixes left when a Kiro run stopped (markup in addresses, failing tests, the end of the fourth run), the night-falls costume (the house waits at dusk and night falls by how many kinds turn up, with wear, a yard-sign rider and optional sound), written into the spec as US-28 after Kiro's limit ran out, the trust fixes from the last two judge rounds (US-29 to US-31: street check, state note, tank points in doubt, feet under half a mile, scrolling to the result, plainer wording), US-32 (night falls only for live records, the whole page goes dark with the house, a guide ghost that says where to start, one row per facility, shared map points flagged) and US-33 (old military properties on a shared default point left out, every row reachable in the sheet, no history entries for failed searches), the steering files brought up to date with what shipped, the deployment and this README.
Check the Kiro claims yourself
.kiro/raw-sessions holds Kiro CLI's own session files for this repo, copied unedited from ~/.kiro/sessions on the build machine: 11 sessions (session.json and messages.jsonl each) and 5 early CLI sessions. Nothing in them was written by us except the prompts.
- Hook runs:
python3 scripts/export_hook_runs.py .kiro/raw-sessionsreads theContextualHookInvokedevents and rebuilds .kiro/hook-runs.jsonl (28 runs). The yellow "Hook" lines in the replays are placed from these events, because the CLI does not print hook runs in the terminal. - Custom agent:
grep -h '"agentMode"' .kiro/raw-sessions/*/*/session.jsonshows the copy review ran asplain-words(sessionsess_c1ce330f, 11 edits).data-scoutnever ran. The other 10 sessions say"vibe", Kiro CLI's default agent: the spec-first order came from the prompts (the review-fix runs ask for the requirements change before any code; the others build tasks already in the spec) and from the spec-sync hook, not from a Kiro spec mode. - The free tier's end: session
sess_df200657(run 12) has"status": "failed"; it ends with Kiro's "You've reached your monthly usage limit" error. - The honesty gate's one stop was a false positive (SVG filter percentages in run 10); it has not caught a real hard-coded number.