Every User Matters: Hunting the Invisible Ghosts of the Web with Kiro

2026-12-04来源 dev.toEnglish
Every User Matters: Hunting the Invisible Ghosts of the Web with Kiro

This post was written for the Kiroween 2026 hackathon (Costume Contest). It's the story of why we built Haunted Audit, and how Kiro changed the way we built it.

The button that was never there

Meet Emma. He wants to pay a €50 electricity bill using only his keyboard.

He presses Tab. Recipient. Amount. Reference.

One more Tab should take him to Send Payment. Instead, the focus jumps straight past it.

He can see the button. He knows what to do. He just can't reach it.

The developer can click it. The page looks finished. To Emma, the website doesn't work.

Emma is fictional. His experience is not.

Why this matters: every user matters

About 1.3 billion people, roughly 1 in 6 of us, live with a significant disability (WHO). Many of them use a keyboard, a screen reader or their voice instead of a mouse.

And the web is getting worse for them, not better. The WebAIM Million 2026 report found:

2026 What it means Change
95.9% of the top one million homepages had detectable WCAG failures ↑ from 94.8% in 2025
56.1 accessibility errors on the average homepage ↑ from 51 in 2025

That reverses six years of slow improvement. Every one of those failures is a person who could not pay a bill, book an appointment or apply for a job on their own.

So we asked a different question. Not "How many errors does this page have?" but:

Can everyone complete what they came here to do?

That question became Haunted Audit, built by our team: Shilpa, Emmanuel and Charvi.

Possession Mode in Haunted Bank: Tab skips the Send Payment control and a red ghost marks the broken control
Possession Mode: one more Tab skips Send Payment, and the red ghost marks the barrier.

🧪 Six barriers. Three detected.

We built Haunted Bank, a deliberately imperfect banking app with six known accessibility barriers. Then we ran axe-core, a widely used accessibility scanner, against it.

It found 3 of the 6. One it missed was the worst one: Send Payment was a <div>, not a real button. It looked right and worked with a mouse, but a keyboard could never reach it.

Scanners are essential, but they check code against rules. They can't tell you whether a person can finish the journey. That's the gap we built Haunted Audit to close.

🔮 A better experience for every user, not just a report

Most accessibility tools end with a list of errors. We wanted ours to end with a journey that works for everyone, and proof that it stays that way. Haunted Audit connects five steps:

  1. Feel it. Possession Mode lets a developer try the journey using only a keyboard or voice commands, and hit the barrier themselves.
  2. Find it. A keyboard agent and a voice-command agent attempt the journey. Depending on the run, the keyboard agent is scripted or AI-driven. Either way, a rule-based checker gives the final verdict: PASSED or BLOCKED. An agent that says it finished is not the same as a user who actually did.
  3. Fix it. The Exorcist proposes a fix. A person must approve it, and it's only ever applied to a temporary copy.
  4. Prove it. The Verifier replays both journeys on the patched copy.
  5. Keep it fixed. Regression Guard runs a Playwright journey test that fails the moment the barrier comes back.

The Fixes page: the Exorcist's proposed fix, the Verifier confirming keyboard and voice journeys, and Regression Guard catching the bug when it is put back
Fix, verify, then put the bug back on purpose: "The ghost is back. But this time, we caught it."

🎃 Spooky design that does a job

For the Costume Contest, we didn't want Halloween as decoration. The ghost is the barrier.

  • 🔴 A red ghost appears beside the exact control that blocked the journey. Its position comes from the checker's measured location of that control, never a guess.
  • 🟢 It turns into a green guardian only when the checker confirms the journey now passes.
  • 👻 The returning ghost shows up if a fixed bug comes back.

And because this is an accessibility tool, the haunting had to be accessible too:

  • Calm mode turns off roaming ghosts, particles and 3D. It switches on automatically for anyone who has asked their device to reduce motion.
  • Sound stays off until the visitor turns it on. Nothing autoplays.
  • Nothing flashes faster than 3 times a second, following WCAG 2.3.1.
  • Every ghost state is also written in text, so meaning never depends on colour alone.

Settings page: Calm mode and an off-by-default Halloween audio switch, so the spooky effects stay optional
Calm mode and sound are visitor choices, never forced.

A spooky interface that excludes people would defeat the point. Ours is meant to be unforgettable and usable by everyone.

🛠️ How Kiro changed the way we built

The most valuable thing Kiro gave us wasn't speed. It was structure, limits and evidence in an AI-assisted workflow.

Kiro in practice: the IDE builds, the CLI verifies, Crew monitors, and Web is our next step

1. Specs: define "working" before writing code

Every feature started as a Kiro spec: requirements → design → numbered tasks. We wrote 26 of them.

The Exorcist spec made us answer the hard questions before writing any code. What may the fix agent change? Where? Who approves it? How do we prove it worked? Human approval and patching a temporary copy became part of the design, not an afterthought.

2. Steering: the rule that deleted our best-looking numbers

Steering files are rules Kiro follows every time it works on the project. We had nine. This line from our product rules changed the project more than any feature:

- **Never hardcode or invent metrics.** If a value has not been measured in the current run, render it as `--` with the label "not yet measured". 

When we checked our own dashboard against it, we found 13 results that looked impressive but had never been measured. We deleted them, close to the deadline. It hurt. But a tool that asks developers to trust evidence has to live by the same rule.

3. Custom agents: responsibilities, not unlimited authority

We set up seven custom agents: Planner, Architect, Developer, QA, Reviewer, Deployer and Monitor. The most useful part was what they couldn't do. Our QA agent can write to exactly one file:

name: qa tools: ["read", "write", "shell"] permissions: rules: - capability: fs_write match: ["evals/cases.yaml"] effect: allow 

It records failing test cases, but it can't touch application code, so it can't quietly "fix" a test to make it pass. Our Reviewer has only the read tool and runs on a different model from the Developer, so no model grades its own work.

Then the Reviewer caught something embarrassing. A text colour in our own accessibility tool had a contrast ratio of 2.57:1, well below the WCAG AA minimum of 4.5:1. We fixed it to 5.37:1. An accessibility tool failing accessibility would have been a very ironic ghost to ship.

We also ran the QA and Reviewer agents from the Kiro CLI on pull requests, so the same checks ran outside the IDE.

4. Hooks: catch ghosts before they escape

Our scan-on-save hook checks for form fields with no label whenever a bank or dashboard file is saved. It's a plain command, so it never calls a model:

{ "name": "Form label check on save", "trigger": "PostFileSave", "action": { "type": "command", "command": "python3 backend/scan_file.py --hook" } } 

It takes about 26 ms and stays silent when the file is clean. The cheapest ghost to remove is the one that never leaves your editor.

5. MCP and a Kiro Power: accessibility inside the editor

Our MCP server lets Kiro chat scan a page or run a journey without leaving the editor. We packaged the scanner and our accessibility rules as a Kiro Power, so any developer can install the same checks in their own workspace.

6. Kiro Crew: Night Watch

Fixes don't stay fixed on their own. Night Watch is our Kiro Crew app, designed to revisit protected journeys every night and report any barrier that comes back. In a recorded check, it caught the returning ghost: the bug we had fixed, put back on purpose, detected and reported.

And if it can't run a check, it says "could not check" instead of giving a false all-clear. An unchecked journey is not a verified journey.

📊 Proof, not promises

These come from controlled tests on our synthetic bank, not real customers:

Check Result
Planted barriers found by axe-core 3 of 6
Scripted keyboard verdicts correct 10 of 10
Voice-command journey blocked before the fix, completed after 5 of 5, 5 of 5
Fixes verified on the patched copy 5 of 5
Regression Guard: pass, fail when the bug returns, pass again 5 of 5

🔭 What's next

  • Measure the AI mode. Our scripted agent is the proven baseline. We'll publish an AI accuracy number only once we've measured one.
  • Make Night Watch run on every machine. On Windows, Crew's agent couldn't yet reach Night Watch's MCP server.
  • Kiro Web: turn tester-reported accessibility issues into reviewed fixes.
  • Test with real assistive-technology users, because they are the final judges of whether a journey works.

💡 What we learned

  • Define "working" before you build. Specs made us decide what success meant first.
  • Limit your agents. Our most useful agent rules said what an agent may not do.
  • Evidence beats impressive numbers. Deleting 13 unmeasured results made us stronger.
  • Accessibility is a measure of quality, not a feature. One unreachable button can stand between someone and their independence.

Try Haunted Audit

Haunted Audit: every user matters. Open the live demo.

👉 haunted-audit.vercel.app: open Haunted Bank in Possession Mode and try to pay Emma's bill with only your keyboard.

GitHub logo charvimaurya / haunted-audit

Haunted Audit: an accessibility guardrail for AI-built apps. Finds and explains accessibility issues before you ship. Built with Kiro for Kiroween 2026 by Shilpa, Emmanuel & Charvi.

Haunted Audit

Haunted Audit

Kiroween 2026, Costume Contest — built by Shilpa, Emmanuel & Charvi. The accessibility guardrail for every web application.

🌐 Live demo · 🌙 Night Watch (Kiro Crew app) · 📝 How we used Kiro · Licence: MIT

Measured results (synthetic Haunted Bank tests)






























Check Result
Planted barriers found by axe-core 3 of 6 (the payment blocker was missed)
Scripted keyboard verdicts correct 10 of 10
Voice-command journey blocked before the fix / completed after 5 of 5 / 5 of 5
Scripted Exorcist fixes verified 5 of 5
Regression Guard (PASS → FAIL → PASS) 5 of 5

Judge Quick Start

Option 1: Live Link (no setup)

  1. Open https://haunted-audit.vercel.app in Chrome or Edge and click Possess This App (opens Journeys at /app/journeys), then open Haunted Bank in Possession Mode (/app/journeys/possession).
  2. Leave Fixture on broken, type any made-up Recipient and Amount (e.g. Test Ghost…

GitHub logo charvimaurya / haunted-audit-crew

Night Watch — Kiro Crew app that watches Haunted Audit journeys for returning accessibility barriers. "MIT license" should also appear there automatically.

Night Watch: a Kiro Crew app built for Kiroween 2026

What it does

  • Every night it re-runs the Haunted Audit Send Payment journey in scripted mode.
  • The broken variant must be BLOCKED and the fixed variant must PASS.
  • If the fixed page breaks again, it reports a "returning ghost" in plain English.

Proof

How it was built with Kiro

  • Spec in .kiro/specs/night-watch.
  • Steering files in .kiro/steering.
  • A test-on-save hook.
  • An MCP server (FastMCP), called from Kiro IDE chat.

Install

  1. Create a Python 3.13 virtual environment.
  2. pip install -r requirements.txt
  3. Set HA_API_URL to the Haunted Audit API address, then run: python -m night_watch.run_journeys
  4. To use it in Kiro Crew, install it from the night_watch folder.
  5. Run the tests: python -m pytest -q night_watch/tests

Known limitation

In Kiro Crew 0.13.1 on Windows, the app installs, is trusted…




Built with Kiro for Kiroween 2026 by Shilpa, Emmanuel and Charvi.

Every user matters. Empathy first. Evidence next. Prevention always.

原文:https://www.a8q9.cn/en/article/every-user-matters-hunting-the-invisible-ghosts-of-the-web-with-kiro-5134ed.html

相关文章