I wrote this post for the Kiroween 2026 hackathon (Skeleton Crew category).
The bug was minus zero
Early on, one of our property tests failed once in a while and then passed on the next run. The test was the contract for a small Store interface (write a value, read it back). Running it with more runs, FC_NUM_RUNS=5000, made fast-check print a shrunk counterexample:
["a", [], {"": -0}] Writing negative zero and reading it back gave plain 0, so toEqual failed whenever the generator happened to produce -0. The cause is boring and real: JSON drops the sign of negative zero, and the store keeps values as JSON. The fix was not to patch the store. We changed the contract: stores hold JSON-serialisable values, and the generator normalises -0. The counterexample stayed in the repo as a named regression test, with a comment about where it came from (kit/test/store.pbt.test.ts).
It is a small bug. I want to be honest about that, because the useful thing about property tests was not this one find. It was that writing the properties forced us to say what the code promises: segments never exceed their limit and glue back to the original text, a menu never exceeds the screen, a ledger balance equals the sum of its transactions, an alert summary never drops its action instruction or its source.
Why a feature phone
Ghost Line Kit is a skeleton for AI agents that answer over SMS and USSD, so someone with a $10 phone and no data plan can use them. Two apps sit on top of the same kit, each in its own folder:
- Oja Ghost helps a Lagos market trader check prices, keep a debt book and get reminders, in English and Nigerian Pidgin.
- Blackout Line gives weather alerts by ZIP code, the nearest shelter and a family "I'm OK" check-in, with a clearly marked simulation mode. The demo runs on clearly labelled fictional alert fixtures; it takes the National Weather Service fetch as an injected function and a live fetcher is not wired yet.
Feature phones are unforgiving. A 160-character SMS shrinks to 70 characters the moment one character falls outside the GSM-7 set. So a reply with the naira sign costs more and splits sooner, and we changed the product copy to write N1,500 instead. A USSD screen is about 140 characters. These limits live in one file (kit/src/limits.ts) and the tests read them from there.
You can try it with no SIM: the Phantom Handset is a browser feature phone with a split view that shows the agent's reasoning and tool calls next to the phone. https://d80movkh888as.cloudfront.net/
How Kiro fit in
Every feature went through Kiro's spec mode: requirements, design, then tasks, with a human review between them. The spec stage caught things I would not have noticed in a quick prompt. For example, while designing Blackout Line, Kiro found that the kit could not tell "never messaged us" from "texted STOP", which matters when you invite a family member by SMS. It proposed a small change to the kit and a required test. It also noticed that the kit's built-in "continue" command could split a safety alert and leave the source in a later message, so it replaced it with whole-summary paging.
Steering files in .kiro/steering/ (written up front in the project handoff, then read by Kiro for every spec) held the rules that should never be argued twice: emergency copy leads with the action then the source, no jokes and no emoji in alerts, phone numbers are masked in logs, STOP and DELETE are always honoured.
The six specs are in the repo under .kiro/specs.
A note on how the work was split, because it matters for credibility: Kiro wrote the feature code and the specs. Claude Code set up the repo and CI, wrote the AWS deployment scripts, ran the full test suite and typecheck after every Kiro batch, and kept a log of every action in docs/claude-code-log.md. It also operated the Kiro IDE on my computer at my direction. I made the product decisions.
What I would tell another builder
- Write the property before the code, then write down which ones found nothing. Most of ours did, and that is still information.
- Read your agent's copy as an end user in a bad situation, not as a developer.
- Do not claim a test found a bug it did not find. We almost did, and corrected it in our log.
What is next
Live weather data for Blackout Line, a test on a physical phone (the Africa's Talking sandbox SMS and USSD routes are built and deployed, but the sandbox only reaches its own simulator), a native-speaker review of the Pidgin copy, and an operations crew app, which we planned for Kiro Crew and cut.
Repo (MIT): https://github.com/dev-ayomide/ghost-line-kit
