How Kiro was used
Each Kiro feature used on Aavi and what it did, what was built outside Kiro, the property results that did not pass, where Kiro surprised us, and what we could not prove.
Aavi is built in two public repos. aavi holds the lookup engine, the website and its routes. aavi-watch is a Kiro Crew App that watches the ten city data sources. Kiro wrote the engine, the four API routes, the Kiro power and the first build of the Crew App from the specs below. The founder set the direction and checked every result. The repos hold the specs Kiro wrote, the task lists it ticked off, and its own result files beside them.
This page claims only what the files in the repos show. Counts were taken from the folders on 2026-12-04.
What was built outside Kiro
Kiro wrote the engine, the four API routes and the server code behind them, the Kiro power, and the Crew App up to 3 December, from the specs in .kiro/specs, with every steering file and hook. From 3 December at about 19:00 UTC the founder moved the rest of the work to Claude Code, another AI coding tool: the website pages, the /docs pages, the README, the daily alarm, the Crew App's move to engine 0.12.0, and the fixes since. Claude Code also drafted the prompts the founder gave Kiro, the threat model document and a few one-line fixes before then.
What Kiro did, feature by feature
| Kiro feature | What it did in Aavi | Where to look |
|---|---|---|
| Specs, requirements first | 14 spec folders in aavi and 9 in aavi-watch. Each holds a design file and a task list. All but two hold a requirements file, with criteria written as WHEN, THE and SHALL statements and named terms. The two bugfix specs hold a bugfix file instead. | aavi/.kiro/specs and aavi-watch/.kiro/specs. Example: address-match requirements |
| Task lists | The task lists hold 1,408 ticked lines and 3 lines that are not ticked. Every task names the files it touches. The three open lines are live runs the spec leaves to the owner (public-routes task 21, m8-fixes task 23) and one final check (relative-backend-imports task 4). | public-routes tasks, m8-fixes tasks, relative-backend-imports tasks |
| Spec: bugfix workflow | Two specs use Kiro's bugfix workflow. For a Python import fault that stopped the Crew App loading its routes, task 1 is a test that must fail on the unfixed code, task 2 records the existing suite as the guard against side effects, and task 3 changes four import lines. The second bugfix spec fixes the census push losing read access after a Crew restart. | relative-backend-imports and census-push-read-access |
| Design with correctness properties | The design files hold numbered properties, each a plain statement that a test must keep true. Example, Property 1 of the classifier: the overall class is non-lead only if every part is non-lead. | design.md in each spec folder, for example classifier design |
| Property-based tests | 235 test files are named as property tests: 158 in the engine, 31 in the site, 5 in the power and 41 in the Crew App. They use fast-check. Most engine properties run 1,000 cases, set once as RUNS_HEAVY. Kiro stores each property's last result in tasks.meta.json. | propertyConfig.ts and every tasks.meta.json under the spec folders |
| Steering | Six steering files in aavi: product, structure, tech, writing and a file of numbered rules are always on, and threat-model is pulled in on request and points at the public threat model by file reference. Three in aavi-watch. The file of numbered rules holds rules that each come from the threat model. The specs repeat the relevant rules by number. | aavi/.kiro/steering and aavi-watch/.kiro/steering |
| Steering kept in step by a spec task | When a spec changed a rule, a task told Kiro to update the steering line, and to leave the file alone if the line did not exist. | address-match tasks, task 17 |
| Hook: the city gate | A file-save hook. Whenever Kiro saves a city's settings file, the hook runs the gate command (it reads the live city server and checks the settings against it), a build and the tests, then writes .city-gate/report.txt. A second hook, of the agent kind, makes Kiro show that report in the chat and stop to ask before it changes the file again after a failure. The spec records a live proof in Kiro IDE 1.5.37: three saves, three hooks each. The save with a bad value showed gate: fail bad-spec; utilitySide.official.classMap.CU. | city-gate.json, city-gate.mjs, city-gate tasks, task 15 |
| Hook: the em-dash guard | A before-write hook that refuses any file write containing an em-dash. It fired on all three saves in the live proof above. | block-em-dash.json and block-em-dash.mjs |
| Custom agent | aavi-onboarder adds a city's settings file, or repairs one whose fields changed, and opens one pull request. It may edit one settings file and its test recordings, may not merge, and may push only its own branch. Norfolk, the tenth city, is in aavi main as pull request 1, authored by the aavi-city-agent bot. | agents/onboarder.json, norfolk.json, commit 4e22055 in the aavi history |
| Agent skill | The onboard-city skill is the agent's step list: a strict key rule, read-only requests to the city server, class maps built only from the city's own wording, the field fingerprint, the gate and the tests, at most 3 fix rounds, one pull request, and a run record whatever happens. | skills/onboard-city/SKILL.md |
| Kiro Crew App | aavi-watch is a Crew App. Its daily job is a plain command, so it uses no model credits: it counts the records in each of the ten sources and checks each source's field list against a stored fingerprint. A backend hook starts a fix loop that wakes every 10 minutes, starts the agent at most 3 times a day, and never when a job is running or a pull request for that city is open. See the daily watch. | app.json, backend/autofix.py, src/run.ts |
| Pull request path for the agent | The city-as-data spec specified the check that judges an agent's pull request. The check itself is a GitHub workflow, agent-scope, built from main, so a pull request cannot change the check that judges it. A code-owner file names the owner for every path. A small script opens the pull request and refuses one that changes nothing in a settings file or touches any other path. | agent-scope.yml, CODEOWNERS, ops/open-pr.mjs |
| Kiro sub-agent | During the Crew App build, a Kiro sub-agent declined to clone our own public repo, treating it as outside content. The owner packed the engine into the repo's vendor folder with a recorded hash instead, and the version and export checks still ran. | crew-app-complete tasks, task 1.1 |
| Checking tools in the repo | The engine package holds its own checking commands: the gate, a proof command that looks up every city's public test building, a census and crosscheck of every record, and an accuracy sample per city. The run reports below show Kiro running the build, tests, crosscheck, lookup and census commands. | packages/sources/scripts and docs/accuracy.md |
| Run reports | Three public reports, each written at the end of a spec task, with commands, exit codes and results. | source-shapes report, ckan-pittsburgh report, city-as-data delivery report |
| Kiro power with an MCP server | A power any Kiro user can install. It runs one local MCP server with two tools over the live API: lookup_address and city_stats. The spec holds requirements, a design and a task list, and the package holds the server and its tests. Two real uses are copied into a proof transcript. See the Kiro power. | kiro-power spec, packages/power, docs/power-proof.md |
The site-hero spec carries a note that it was superseded on 2026-12-04. Kiro wrote that spec. The logic built to it after 3 December, such as the lookup client and the answer model, is still in use, and the spec reads as the record of how that logic was specified.
The property results that are not "passed"
On 2026-12-04 the saved property results in tasks.meta.json held 211 entries: 194 passed, 16 failed and 1 unexpected pass. Reading them:
| Spec and task | What the stored result says | Reading |
|---|---|---|
| m8-fixes, 6 tasks titled "write the tests and confirm they fail" | Six "failed" entries, each with a counterexample. | On purpose. Kiro wrote each set of tests first and ran it on the unfixed code. Example, task 11.1: the request guard let an encoded query name through, and the generated counterexample was ["check","?s%6Furce=detroit"]. |
| m8-fixes-2, 7 failed entries | Failing examples such as a missing function, a missing module, and a generated list on which the fingerprint depended on order. | Most say "expected failure before the fix" in the stored text. |
| kiro-power 2.9 | A counterexample for the Retry-After property: a reply header of 00001 gave no wait, and the test expected a wait of 1 second. | A real catch by a generated value. The task is ticked, but the stored result is the failing run. |
| m8-fixes-2 24.3 | One "unexpected pass": a rewritten test passed on the current code. | Kiro recorded it as it was. |
| city-as-data 11.3 | One failing example: a script file quoting a city name. | The scan test found a real hit. The task is ticked, and the script now takes the key from the Detroit spec. The stored result still shows the failing run. |
| crew-app-complete 10.1 | One failing example: a census result carrying extra properties, including an address-shaped value. | The no-address property test caught a leak in the first version of the census code. The task is ticked. The stored result is that first failing run. |
Evidence: tasks.meta.json in m8-fixes, m8-fixes-2, kiro-power, city-as-data and crew-app-complete.
Where Kiro surprised us
| What happened | Where to look |
|---|---|
Kiro's hooks do two things the documentation page leaves easy to miss. A file-save hook's output never reaches the agent, and a timeout set inside action is silently dropped, leaving 60 seconds. The first made us add the second, agent-kind hook, which carries the report into the chat. Both are recorded as live findings in the spec. | city-gate requirements, and city-gate.json, where the timeout sits at the hook level and not in the action |
| The accuracy check showed that the Census geocoder replaces an address that does not exist with the nearest real one, so a lookup could answer for a home the visitor never typed. The product now shows the real address and asks the visitor to confirm. | address-match requirements and docs/accuracy.md |
| The no-address property test failed on the first version of the census code, and the task is ticked after the fix. | crew-app-complete tasks.meta.json, task 10.1 |
| A Kiro sub-agent refused to clone a public URL, and the build did not go around the refusal: the owner supplied the packed engine and the checks still ran. | crew-app-complete tasks, task 1.1 |
What we could not prove
- The em-dash guard blocking a real write inside Kiro. It fired on three saves in the live proof. No file shows Kiro refusing a write that held an em-dash.
- The city gate on a brand-new spec file. The live proof saved an existing file,
akron.json. The spec records that Kiro fires the same hook for a file the agent creates, and no saved run shows it on a new city file. - Test pass counts. The counts on this page come from the folders and the saved results, not from a test run today. Pass counts for the code live in the repos' own test commands.
- The three open task lines. The live proofs behind them are not in the spec files.
- The code-owner approval rule. Signed out, GitHub shows that
mainis protected and that theagent-scopeandtestschecks must pass for everyone except an admin (branch record). It does not show the rule that a code owner must approve: that sits in settings only the owner can open. What anyone can see is the rule at work once: the bot opened the Norfolk pull request, and the owner's account approved and merged it on 2026-11-30.