This post was written for #KiroweenHackathon26, the Kiroween 2026 hackathon (Costume Contest category). Built by myself and @shreyas_983cee0e19f48ac28.

🕯️ The Challenge

Rereading your notes feels like studying. It isn't. Recalling from memory is what makes learning last, and AI quizzes add a new problem: you can't tell when they're wrong.

For Kiroween 2026 we wanted to build a haunted house that teaches, and a quiz you can actually trust. Not just a dark theme with a skull on it. A real crypt, with storms, ghosts and candles, where every lock is a question from your own notes.

The result is Escape the Crypt: 6 lock types, 8 Kiro specs, 134 correctness properties, 4,000+ automated tests, and a game where every answer shows the exact passage that proves it.

TL;DR: how Kiro built this

  • 8 Kiro specs (requirements → design → tasks) before any code, with 134 correctness properties that became property tests
  • Reviewing one spec caught 14 problems before they were bugs; property tests caught 3 more that example tests missed
  • 8 steering files that Kiro actually obeys: it refused, on camera, to write "Verified." into our UI
  • 3 hooks that run the right tests in under a second on every save
  • 2 custom agents, one of which plays the live game through Playwright MCP, plus our own Kiro Power
  • Kiro IDE for almost everything, Kiro CLI for the escape sequence

The Escape the Crypt title screen: a storm-lit study with the game's title over the desk
The title screen. A storm rolls past the window every few seconds, and sometimes something stands in it.

🎬 Demo

🎃 What We Built

You paste notes or drop a text PDF on a top-down study desk. You pick 2 to 4 rooms and a difficulty, then walk down the stairs into a candlelit crypt.

The top-down study desk with parchment tags for Sample crypts, The scholar's letter, Your crypts and Bring your notes
The desk is the menu: the scholar's letter, your saved crypts, the sample chest, the notes book and the way down.

Every station is a different kind of lock:

  • The Rune Tablet: spell the missing word, one box per letter
  • The Séance Board: choose the claim your notes support
  • The Ossuary Shelf: put the steps in order
  • The Binding Loom: match each pair
  • The Cursed Reliquary: find the one that doesn't belong
  • The Vault Dial: turn in the number

A crypt only uses the locks your notes can support. No numbers in the notes? No dial.

The scholar's letter: how it works on the left, the six stations on the right
The scholar's letter explains the rules and introduces all six stations before your first descent.

The Library of Bones, with parchment tags naming The Rune Tablet and The Binding Loom
Room two, the Library of Bones. Each live station is named on a parchment tag.

The Ossuary Shelf open: a bone-ordering question with Move up and Move down buttons on solid parchment
Click a station and the camera zooms in. The question always sits on solid, fully lit parchment.

And the haunting:

  • Right answer: the lock opens and a candle lights
  • Wrong answer: a ghost bursts out and follows you
  • Three answers later, the ghost haunts a station with a new question on the same idea
  • Skip and Challenge cost nothing
  • At the end you escape into daylight and get an honest Autopsy of what to review

A wrong answer: "Something followed you" appears and a ghost bursts out
Get one wrong and something follows you. It comes back later with a new question on the same idea.

🔍 Every Question Has to Prove Itself

This is the heart of the project. The model never gets the final say.

Every generated question carries exact quotes and chunk IDs. Code checks that each quote appears in your notes exactly once before the question is allowed through:

const { text, originalRange } = normaliseWithMap(chunk.text); let count = 0; let first = -1; for (let at = text.indexOf(q); at !== -1; at = text.indexOf(q, at + 1)) { if (count === 0) first = at; count++; } if (count === 0) return err({ kind: 'not-found' }); if (count > 1) return err({ kind: 'ambiguous', count }); 

From packages/core/src/quote-resolver.ts. A quote that isn't found, or is found twice, never reaches the player.

More code checks reject:

  • Answers leaked in the prompt
  • Duplicate answers across a room
  • Numbers that aren't in the quote
  • Units that give the answer away
  • Negative questions

After every answer, right or wrong, an evidence panel shows the passage from your notes that decides it. If a question still seems unfair, Challenge withdraws it for free.

The evidence panel after a wrong answer, highlighting the exact passage from the notes
Wrong order. The evidence panel shows the exact passage that decides it, so you learn why.

🔮 The Kiro Difference: Spec-Driven Development

We didn't start with code. Every major system started as a Kiro spec: requirements, then design, then tasks.

Spec What it covers
ingestion-and-evidence paste or PDF, chunking, quote resolution
room-runtime the pure reducer, six answer judges, ghosts, outcomes
generation-and-evaluation question generation, code checks, room assembly
room-play room screen, lock panels, keyboard and screen-reader play
persistence saves, resume, export and import
lock-types the six locks
haunting-polish ghost and candle behaviour
final-recall-sigils the final-door puzzle

Together their designs hold 134 numbered correctness properties, and each one became a property test.

Kiro's spec view for final-recall-sigils, with the Requirements, Design and Task list tabs, and the Kiro panel listing specs, hooks, steering and MCP
The final-recall-sigils spec in Kiro: requirements, design and task list, with the Kiro panel on the left.

🐛 The spec caught bugs before the code existed

Reviewing the room-runtime spec found 14 problems before or during build. Three were in the requirements, such as an "unreachable Challenged outcome". Four were in the design. One favorite: bound-threads answers were stored in a Set, which JSON silently drops, so every answer would have vanished on reload.

🧪 Spec vs. vibes: we tested both

The last feature, the final-door puzzle, was written as a spec first. Its requirements said escape is always possible, there's no drag, and the word comes from the notes. Running its tasks pinned five old event logs before touching the reducer. It touched the reducer, saves and samples, and needed zero fixes after it landed.

The final recall: sigils earned at each station are arranged into a word from the notes
The spec-built final recall. Every station drops a sigil; arrange them into a word from your notes, or skip.

The visual steps were direct prompts from a written step list. They were faster to start, but each needed a round of fixes after live play.

Our rule now: spec anything that changes state or data. Prompt directly for layout and motion, then check it live.

📜 Steering: Rules That Fight Back

We wrote 8 steering files covering product, honesty, structure, tech, design, accessibility, security and tone. They use all three inclusion modes: always, file match and auto.

Our favorite moment was on camera. We asked Kiro to add "Verified." to an error message. It refused. Its reply listed the steering file that bans that word in on-screen text and explained the claim would be false.

Kiro refusing to add "Verified.", citing the evidence-and-honesty steering rule, with Included Steering shown
Steering in action: Kiro won't write "Verified." into the UI, because the honesty rule bans it and nothing was verified.

And the rules aren't just words. Most are also enforced by tests, so a session that ignores one fails the build:

  • Banned wording is checked by copy-banned-words.test.ts
  • Colour literals only live in tokens.css
  • Files stay under 300 lines
  • packages/core can't import React, a database or an AI SDK

🪝 Agent Hooks: Fast Feedback, Measured

Three hooks fire when Kiro saves a file, and CI stays the release gate.

Hook Fires on Result
Run related core tests a .ts / .tsx save in packages/core/src apply.ts save: 2 files, 26 tests, 0.677 s
Check tasks.md format any .kiro/specs/*/tasks.md caught 22 lines of garbled characters
Run the wording test a copy*.ts save 9 tests in 0.482 s

We also retired our first hook. It ran the entire core suite (149 files, 24.36 s) on every save. That was far too slow, so the related-tests hook replaced it.

The Kiro panel: three PostFileSave agent hooks, the workspace steering files, and the Playwright MCP server connected
Our three PostFileSave hooks, the steering files, and the Playwright MCP server, all in Kiro's panel.

🧬 Property Tests Found Bugs We Never Would Have

154 test files run properties, and they found real problems that example tests missed. Three favorites:

The tiny tail chunk. A property fed the chunker one 2,400-character sentence and got this:

chunk 1: 1,199 characters chunk 2: 1,200 characters chunk 3: 21 characters 

Nothing ever re-merged that tiny tail. A new chunker-rebalance.ts now rebalances the last two pieces.

The non-idempotent answer key. The property "answerKey is idempotent" shrank to the input "A A 0":

pass 1: "a 0" pass 2: "0" 

The bug had been in the duplicate-answer check since the day it was added.

The PDF line-break ghosts. Live crypts showed words like "hetero-sexual". A reflow property now wraps a paragraph at a random width and requires it to come back exactly. Artifacts in our dev notes went from 17 and 20 down to 0.

🕵️ Custom Agents and MCP: Two Reviewers That Never Write Code

We made two read-only agents:

  • crypt-keeper reviews generated questions against our evidence rules. It caught a dial whose units gave the answer away (answer 20, units "July 20"), which became two new code checks the same day.
  • design-critic drives the real app through a pinned Playwright MCP server. It tabs through controls, checks 44 px targets, tries reduced motion, and saves screenshots.

design-critic found that our lock-panel buttons were drawn as browser-default grey. Every unit test had passed. Only an agent looking at the real browser saw it.

A screenshot design-critic captured of a room through Playwright MCP
One of design-critic's own captures, taken through Playwright MCP during its review (an earlier version of the room).

⚡ A Kiro Power: Grounded Quiz

We packaged the game's evidence checks as a Kiro Power, Grounded Quiz. Install it, hand Kiro your notes, and ask for a quiz. Kiro drafts the questions, and the Power's tools check every quote against the notes before showing them. In our run on the human heart notes, all three questions passed, each with its source paragraph.

The Grounded Quiz power installed in Kiro, with Kiro calling check_question on a quiz from the human heart notes
The Grounded Quiz power in Kiro, checking each question with check_question before showing it.

💸 The Evaluation Skill: A Wrong Guess, Measured

Our evaluation skill is the only route to paid model calls, with a capped budget. Total spend across the runs was well under the cap, at $0.33, $0.26 and $0.37.

When live crypts kept coming out with one lock per room, we guessed generation was rejecting séance questions. The recorded run disproved it: 74 of 83 were accepted. A free replay through old and new room assembly showed the real cause was assembly throwing away accepted alternates. One-lock rooms went from 9 of 12 to 0 of 12.

🌩️ The Haunted Costume

All the art was modelled and rendered in Blender by us: the title room, the desk, three rooms, six lock close-ups, the final door and the ghosts.

  • A living title screen with a storm every 5 to 8 seconds, with lightning, thunder and a figure in the window
  • Rendered motion clips: the camera gliding down to the desk, the descent down the stairs, doors, and the escape into daylight
  • Rooms that react: candles flicker and catch, mist drifts, and a figure glimpses through the archway
  • 31 sound cues, with ambience crossfading between scenes

The Autopsy: a parchment scroll on the desk listing each concept's honest outcome
After the escape, the Autopsy unrolls on the desk: first-try correct, assisted, retried, review due or challenged. Never "mastered".

🌙 Accessibility in a Horror Game

Yes, it can be done. Dread without shock, and never at the cost of readability.

  • The question text is always fully lit on solid parchment
  • Full keyboard play, with a visible 2 px focus ring
  • A screen-reader live region announces candles, ghosts and captions once
  • No drag anywhere. Ordering and matching use buttons and keys
  • Reduced motion turns off flashes, zooms and mist, and replaces clips with short fades
  • Lightning never flashes more than 3 times per second
  • axe accessibility checks run on every lock panel and screen, on every push

And escape is always possible. The sigil puzzle can always be skipped.

🎯 What We Learned

  1. Specs beat vibes for anything stateful. The spec-built puzzle landed clean. The prompt-built screens each needed fixes.
  2. Steering works best when a test enforces it too. A rule Kiro can ignore is only a suggestion.
  3. Never trust the model's quotes. Code resolves every one against the notes.
  4. Property tests find what you didn't think to test. "A A 0" would never have been in our example tests.
  5. Measure before you fix. Our first guess about the one-lock rooms was wrong.

🦇 Try It Yourself

Live Demo (no sign-up, three sample crypts, desktop browser):
👉 https://escape-the-crypt.pages.dev

Source Code:
👉 https://github.com/NotUmesh/escape-the-crypt

Hit Challenge on any question that seems unfair. It's free.

Which lock would you get stuck on? Tell us in the comments. 👇

Built with 🕯️ and a lot of dread for Kiroween 2026.
This post is part of the Kiroween 2026 hackathon, created with Kiro's specs, steering, hooks, custom agents, MCP and a Power.