-
-
The terrible sample scores 97 · Run, the most haunted a policy can be, with ghosts in all eight rooms.
-
Paste any policy, or open one of three sample houses (all fictional). Your text is read in your browser and never stored.
-
Click a ghost to read the exact clause, a plain-English explanation, why it matters and where the reading came from.
-
On a phone: the input screen, the mild house (14 · Mostly quiet) and the terrible house (97 · Run).
-
Lights on mode: the same findings as a plain, accessible list, with the score scale and ghost legend at the top.
Inspiration
Like almost everyone, I click "I agree" without reading. Privacy policies and terms are long on purpose, and the clauses that matter most (selling your data, waiving your right to sue, auto-renewing charges) hide in plain sight. I wanted to make them impossible to miss, and Halloween gave me the perfect costume: a haunted house where every bad clause is a ghost.
What it does
Paste any Terms & Conditions or privacy policy, or open one of three sample houses (all fictional companies). The app splits the text into clauses and files each risky one into one of eight rooms:
| Room | Clause type |
|---|---|
| The Cellar | Data sharing and selling |
| The Watching Portraits | Tracking and profiling |
| The Coin Vault | Auto-renewal, fees and billing |
| The Locked Door | Cancellation and account deletion |
| The Silent Court | Forced arbitration and class-action waivers |
| The Mirror Room | Rights the company takes over your content |
| The Trapdoor | Liability limits and disclaimers |
| The Shifting Stairs | Terms the company can change without notice |
The worse the clause, the scarier the ghost: severity shows in its size, shape, colour, motion and a visible numeral, so colour is never the only signal. Click a ghost to read the exact clause, a plain-English explanation and why it matters. Reassuring clauses ("we do not sell your data") become faint wisps, unless a hidden "except…" cancels the promise.
Every spooky element carries information, and none of it is required: Lights on mode shows the same findings as a plain list, the house is fully keyboard-navigable, motion respects the reduced-motion setting, and sound is off by default.
The Haunt Score
Each policy gets a score from 0 to 97. Findings combine within each room, each room is capped by its worst ghost, then the rooms combine:
$$\text{score} = \operatorname{round}\left(100\left(1 - \prod_{\text{rooms}}\left(1 - r\right)\right)\right)$$
where \( r \) is a room's combined weight, capped at 0.06, 0.15 or 0.35 for a worst ghost of severity 1, 2 or 3. An early version scored every long policy near 100; the room caps mean a policy with only mild clauses can never pass 39, however long it is, while one serious clause still counts in full.
How I built it
The whole project was built with Kiro, spec first:
- Specs: three specs (clause analyzer, LLM explainer, haunted-house UI) with 246 EARS acceptance criteria, each traced to a named test by a script that fails the build if one is missing.
- Steering: six steering files, including the hackathon rules and a design language that fixes the palette, contrast ratios and ghost levels.
- Hooks: four hooks: tests run on save, a secret scan on every save, a repository-rules check, and a spec-sync hook that updates the build log and README when a task is ticked.
- Custom agents: five verification agents with no write tool (spec reviewer, test verifier, security reviewer, UI and accessibility reviewer, rules auditor). The agent that wrote the code never verified it; every phase ended with a gate these agents had to pass.
- MCP: Playwright MCP let the UI agent use the running app like a person, and Vercel MCP deployed it.
- Property-based testing: 36 fast-check properties at 1,000 runs each, for example that every quote is an exact slice of your text and that adding a risky clause never lowers the score.
Built with Next.js, TypeScript, Tailwind CSS and Motion. The analysis runs entirely in your browser with no network call. An optional "medium" (Google Gemini) can rewrite explanations for pasted text, but only after you opt in, and only the flagged clauses are sent. Nothing you paste is stored.
Challenges
- False reassurance. "We do not sell your data, but we may share it with advertising partners" first came out as a calm wisp. Exception words like but and except now cancel a reassurance, and each has its own test.
- An LLM that says too much. Gemini's readings kept adding claims the clause never made. For an app about reading fine print honestly, that wasn't acceptable, so the sample houses use checked rule-based readings and the medium stays an opt-in extra.
- A spec gate that kept failing. The spec reviewer failed three times, each time finding new criteria with no named test. The fix was a traceability matrix and a script that checks all 236 criteria, not patching whatever each review happened to notice.
- Real policies. Testing against real privacy policies showed gaps the samples never had, such as change-of-policy clauses and location inferred from IP addresses.
What I learned
Building from specs with independent review agents felt very different from prompting for code. The agents caught gaps I would have shipped, and one gate failed three times until I fixed the root cause instead of patching symptoms. I also learned that "AI can explain it" isn't the same as "AI explains it accurately": the most honest version of this app keeps the checked rule-based readings front and centre and makes the AI optional.
What's next
Better coverage of real-world clause wording, support for languages other than English, and a browser extension that reads the policy on the page you're about to agree to.
Built With
- axe-core
- fast-check
- gemini
- kiro
- mcp
- motion
- next.js
- playwright
- react
- svg
- tailwindcss
- typescript
- vercel
- vitest
- zod