My tests were green. Four bugs walked straight past them
I built this for Kiroween 2026, the Kiro hackathon on Devpost.
I had a spec parser with 28 passing tests and 99.3% line coverage. By every number I usually trust, it was done.
Then I planted six small bugs in it, one for each promise in the spec. Four of them got through a fully green test suite. One turned the label ac-1 into AC-1, and nothing noticed.
That's the problem I wanted to solve. AI agents now write code faster than any of us can review it, so we lean on green tests to tell us a change is safe. But green only tells you the tests you have still pass. It doesn't tell you which promise in your spec any of them actually protects.
So I built Red Rabbit
Red Rabbit is a fire drill for the code your AI agents write. It plants small bugs ("rabbits") on purpose, each one aimed at a single acceptance criterion in your Kiro spec. Then it asks every gate you rely on whether it noticed: your tests, a Kiro reviewer agent and your Kiro hooks.
Each rabbit comes back CAUGHT or ESCAPED. Each gate comes back AWAKE, ASLEEP or BLIND IN PLACES. When something escapes, you don't get a vague score. You get the exact written promise nobody was guarding.
There are two apps on one engine:
Line plants a change at every acceptance criterion and shows which test, if any, would have caught it.
Guard Drill fires forbidden actions at the hooks and permission rules that guard your agent, and reports HELD or LET THROUGH for each rule.
The moment it clicked
After the drill showed me the four escapes, I handed Kiro the four promises nothing guarded and asked it for tests straight from the spec. It wrote 14.
Same code, same six rabbits: 6 out of 6 caught. And coverage didn't move. It stayed at 99.3%. Coverage couldn't see the gap. Red Rabbit could.
I also pointed it at cachetools, a real open source library, and replanted four bugs that once shipped there. All 360 of its tests ran, and the gates caught all four.
How Kiro changed the way I build
Kiro made the spec the centre of everything, and that is what made this project possible.
Specs. Every part of Red Rabbit was built from a Kiro spec, 20 of them in total. The drill then reads those same specs, so the thing I built from is the thing I test against.
Steering. One rule lived in every session: apps use the engine, never the other way round. Because of that, the second app slotted straight in.
Hooks. Tests ran on every save, and a hook checked that every task pointed at a real requirement. Mistakes got caught while Kiro worked, not at review.
Custom agent. A read-only Kiro reviewer agent became the third gate. It caught all six rabbits.
MCP and Powers. Each app ships as a Kiro Power with an MCP server, so an agent can run a drill by itself.
Kiro CLI. I ran Kiro CLI sessions in parallel, each one closing a spec task on its own branch.
Before Kiro, I'd write code and then work out what to test. Now I write the promise first and let it drive both the code and the tests. Red Rabbit is my way of checking that those promises actually hold.
Try it
Nothing to install. Open the live drill, pick a promise, type a bug into the real parser and press Run. Both test suites run in a fresh, locked-down container, and you watch which one catches it.
Live drill: https://redrabbit.watch
Code (MIT): https://github.com/Ridwannurudeen/red-rabbit
Demo: https://youtu.be/rl9x8IoWxug
Find out which of your gates are asleep.
原文:https://www.a8q9.cn/en/article/my-tests-were-green-four-bugs-walked-straight-past-them-137533.html