How we check our work
The accuracy run, the property tests that run in your browser, and the hostile inputs you can send to the live lookup.
Aavi never writes its own verdict. These checks measure whether it finds the right record and reads the right class. They do not test water, and a record is not a test result.
The accuracy run
The accuracy command draws real records from each city's own server. For each record, it types the address the way a visitor would and checks two things: did the lookup find the very record that was drawn, and does the class agree.
The published run is from 2026-12-03, on engine version 0.12.0, with the command npm run accuracy -- --all 100 --write. It drew up to 100 random records for each of the ten sources.
| What was measured | Result of the run on 2026-12-03 |
|---|---|
| Records drawn | 994 |
| Answered, and it was the record drawn | 878 |
| Answered with a different record | 0 |
| Same class as the drawn record | 869 |
| More severe class than the drawn record | 9 |
| Milder class than the drawn record | 0 |
| Refused | 64 |
| Visitor could not pick one line from the geocoder's list | 52 |
| Altered addresses tried | 477 |
| Altered addresses answered as the drawn home | 0 |
| Altered addresses shown back for confirmation | 476 |
| Draws the city's server did not return in time, skipped | 6 |
| Median lookup time | 2.9 seconds |
The full table, with a row for every city, is on the Accuracy page and in docs/accuracy.md. The raw numbers are in docs/accuracy.json.
How to read it:
- Same record means the matcher found the drawn record by its own row id. A wrong record is the failure to watch, and there were none.
- More severe happens when an address holds more than one record. Aavi shows the most severe class among them. It is never milder than the drawn record.
- Refused is the correct result when an address cannot be matched with certainty. The report never marks a city as failed for refusing.
- An altered address is a changed house number, an added letter, or a swapped direction or suffix. It must never land on the drawn home's record. When it matches a different real home, that is the other home's own answer, and it is fine.
- When a typed address does not exist, the geocoder may suggest the nearest real one. Aavi shows it and asks you to confirm, and never answers for it on its own.
- The run says nothing about records the city's server did not return, and nothing about water.
To repeat a small run yourself:
npm run accuracy -- detroit 20npm run accuracy -- --all 100 repeats the whole run. Add --write only if you want it to overwrite docs/accuracy.md.
Property tests in your browser
On the Accuracy page, under "Try to break it", press "Run 3,000 random cases". A random generator in your browser makes up thousands of records and class maps and checks that three rules hold for every one:
- A value the utility's map does not list is read as unknown, never as a milder class.
- Lead on any part makes the whole line lead.
- A class map with one bad entry is never trusted.
The classifier loaded into the page is the same code the live lookup uses. If a rule ever broke, the row would say "Broke" and show the failing example.
The wider test suite uses the same style. Property tests, written with fast-check, feed generated values to the classifier, the matcher and the routes.
Hostile inputs
Below the rules, the page lists six hostile addresses, each with a "Send it" button that sends the text straight to the live lookup:
- SQL in the street name
- a script tag
- a 2,000 character address
- a hidden control character
- a file path
- a wildcard trick
The lookup should refuse each one or find nothing. A row fails only if the lookup answers with a record. Text from outside is shown as plain text, so the page never runs the script tag.
If you press the buttons faster than the limit allows, the lookup replies that there were too many requests. That reply comes before the address is read, so it proves nothing about the input. The row says "Not tested" instead of "Refused", and you can try again in a minute.
What these checks cannot show
A record can be wrong at the source. Aavi shows what the utility wrote and cannot see the pipe in the ground. That is what the check at the meter is for.
The ten cities
The ten utilities Aavi reads, the kind of data server each uses, and how the daily count and the field list flag work.
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.