-
-
Printers fixed a wrong line with an erratum slip. Erratum makes that slip for one directory listing.
-
Directories have always gone stale. A 1952 phone book lists two funeral homes under "Oxygen, Medical".
-
JAMA Health Forum, Oct 2026: of 5,822 calls to listed mental health clinicians, about 12 in 100 ended in an appointment.
-
30 listings in Natick, MA (ZIP 01760). Recording mode shows initials and masked NPIs only.
-
Step 1: find the listing. Pick a specialty and a state, then add a ZIP, city or name. Search runs on a dated, hashed snapshot.
-
Step 2: check the records. The listing is fetched live, then compared with the NPI registry and the OIG list. Here: no active NPI record.
-
What Cigna's public file shows: 50,723 psychiatry listings, crawled Dec 1, 2026. These describe records, not clinicians.
-
Questions to ask when you call, plus every source with its retrieval time and SHA-256 hash.
-
Docs: 11 use cases, from checking a psychiatrist before you call to backing up a billing dispute.
-
Step 3: keep the evidence. A printable packet with what the insurer published, what the records say, and a packet hash.
-
Built with Kiro: an EARS spec, a property test that caught a ZIP+4 bug, hooks on every save, steering files and an MCP server.
-
Method: every number comes from a public source, a query you can rerun, and a hashed file in the repo.
-
Landing page. Five real listings from Cigna's public directory, each with what the records show.
-
What the No Surprises Act directory rule covers and what it does not, plus next steps and your state regulator.
-
Erratum checks one insurance directory listing against federal records and gives you the evidence.
Inspiration
If you have tried to find a psychiatrist through your health insurance, you know the routine. The directory gives you a list. The first number is disconnected, the second doctor retired, the third does not take your plan. By the tenth call most people give up.
That has a name: a ghost network. In a JAMA Health Forum secret shopper study published in October 2026, researchers placed 5,822 calls to psychiatrists and psychologists listed in commercial insurance directories. 12.4% ended in an appointment. More than half of the calls that reached an outcome ran into a directory error.
Regulators are moving. CMS has proposed that Medicare Advantage plans verify their directories every 90 days from contract year 2028, with public accuracy scores in 2029. That helps the next patient. It does nothing for the person who needs care this week. Erratum is for that person.
What it does
An erratum is the slip a publisher tips into a book when a printed line is wrong. Erratum is that slip for one directory listing.
- Find the listing you saw. Search a dated copy of Cigna's public provider directory by state, ZIP, city or name. Psychiatrists and psychologists, every state.
- Check it. Erratum fetches that one listing again, live, from Cigna's API, then compares it with:
- the federal NPI registry (NPPES): is this clinician's ID active, and what specialty is it registered under?
- the HHS OIG exclusion list: is the NPI on the list of providers barred from federal health programs?
- US phone numbering rules: can the listed number be dialed at all? Phones are read from both the clinician record and the office record.
Each source resolves in its own lane with a retrieval time and a link to the record. The listing gets one of three results: clear, call first, or contradicted.
- Keep the evidence. A printable packet with the directory row as published, every retrieval time, SHA-256 hashes of the source data, the registry result, and a plain checklist of what the No Surprises Act directory rule covers (a wrong in-network listing) and what it does not (long waits at a correctly listed office), with a link to your state insurance department.
No accounts, nothing stored, no calls placed, no legal advice. Erratum never says a clinician is fake. It describes the record, because a stale record is not a bad doctor.
There are also full docs at /docs (11 use cases, from a patient's first call to a journalist checking a sample) and a /method page with every source and hash.
Why Frankenstein
Erratum stitches together parts that were never meant to meet: a 2020s FHIR R4 interoperability API that insurers are required to publish, a federal provider registry, a monthly CSV from the HHS Inspector General, and North American telephone numbering rules. Sewn into one patient-facing check, with a cryptographic hash on every source so the result can be checked by someone else.
What we found in the public data
I crawled Cigna's complete public psychiatry directory on December 1, 2026: 508 pages, 50,723 listings, 26,618 clinicians, plus 29,630 psychologist listings. Every page's URL, time and SHA-256 hash is in the repo.
- 95% of psychiatry listings say the office is accepting new patients.
- 11% of the records have not been updated in more than a year.
- In a seeded random sample of 400 clinicians, 4.3% (17) are physicians registered in a different specialty, such as Internal Medicine, while listed as psychiatrists. (PAs and NPs working in psychiatric practices are not counted.)
- 28 listings have no phone number on the clinician or the office record.
- 6 listed psychiatrists (9 listings) share an NPI and name with a current OIG exclusion entry that has no reinstatement date. Erratum shows that match with its source and does not name anyone outside the listing itself.
- One phone number appears on 1,133 psychiatry listings. That is a central scheduling line, not an error, but nothing in the directory tells a patient that.
These are directory records, not judgments about doctors. The 95% figure and JAMA's 12.4% measure different populations and are not compared directly.
How we built it
- Next.js 16 (App Router, cache components), TypeScript, Tailwind 4, Motion and GSAP for the scroll scenes, on Vercel.
src/coreis pure, framework-free logic: NPI check digits (Luhn with the 80840 prefix), phone rules, the signal model, the packet builder. The same code runs the website, the MCP server and the tests.- A resumable crawler walks Cigna's FHIR Plan-Net API page by page, saves each page with its hash, and writes gzipped per-state snapshots with a manifest. Search runs on the snapshot. The listing you open is always re-fetched live.
- 29 tests, mostly property-based with fast-check, covering things like "a registry outage is never reported as a deactivated NPI" and "a phone on the office record counts as a phone".
- The design is a paper file on purpose: public-domain archival photographs, including a 1952 Kannapolis, North Carolina phone book where the heading "Oxygen, Medical" lists two funeral homes. Directories have always gone stale.
How we used Kiro
I used two AI tools and I want to be clear about which did what. I built the first version with Claude Code: the core checks, the app, the crawler, and the .kiro folder itself. Then I opened the project in Kiro and let it take the spec from there. Kiro felt like VS Code from the first minute, so there was nothing to learn before I could start, and it was fast.
Spec-driven development. .kiro/specs/listing-evidence/ has requirements written in EARS ("WHEN the user adds a ZIP prefix THE SYSTEM SHALL return only listings matching every filter"), eight correctness properties derived from them in design.md, and numbered tasks. I ran the open tasks in Kiro. It started one sub-agent per task and tracked each run in tasks.meta.json.
A property test caught a real bug. On Kiro's first run of task 8, fast-check failed: "a ZIP prefix longer than the postal code's five digits never matches through the +4 suffix." Cigna stores postal codes like 94087-8127, and the search filter compared the raw string. Kiro moved the filter into a pure function, compared only the first five digits, made the state match case-insensitive, and reran until the suite passed. A hand-written test with an ordinary five-digit ZIP would never have hit it.
Agent hooks. Two hooks ran on their own while Kiro worked. One reran the property tests every time the agent saved a file under src/core; it fired 8 times, so a broken property went straight back to the agent. The other blocks words like "ghost", "fake" or "fraud" from ever appearing on a listing page; it fired 14 times and Kiro's edits passed every time. The product talks about ghost networks, but it must never call a person one.
Steering. Three files gave Kiro what a new teammate would need: product.md (who the patient is and what the app must never do), tech.md (data sources, conventions, every number needs a source and a hash), and evidence-language.md, which only loads when Kiro touches listing code.
MCP. Erratum ships its own MCP server with six tools: search, check a listing, build a packet, NPPES lookup, OIG check and snapshot info. It runs the same src/core code as the website and was connected in Kiro. Kiro extended it to accept an insurer for task 10.
What Kiro found that changed the product. Asked to add UnitedHealthcare as a second insurer, Kiro found that UHC's public directory fails with HTTP 500 after about 150 records. It wrote a clean stop rule with tests and marked those snapshots truncated instead of complete. A crawl that ends there holds only about 64 psychiatrists nationally, so I kept the adapter and left UHC out of search until a fuller source exists.
Spec versus vibe coding. Vibe coding gets you something that runs. With the spec, Kiro knew what "done" meant before it wrote a line, the hooks checked every save, and the tests found the case I had not thought of.
Challenges we ran into
- Slow search upstream. Cigna's own ZIP search returned 3,496 locations for one Manhattan ZIP and took over three minutes. So search runs on a dated, hashed snapshot, and only the one listing you open is fetched live.
- Phones in two places. Plan-Net lets an insurer put phone numbers on the clinician's record or the office's. My first version read only one, and an early review caught a San Diego listing I had wrongly flagged as having no phone. Now both are read everywhere, and a regression test pins that listing.
- Being useful without accusing anyone. A wrong record is evidence about a directory, not about a person. Getting the wording right took a requirement, a property test, a steering file and a hook.
- Honest numbers. The first draft of the findings counted PAs and NPs as specialty mismatches and treated shared scheduling lines as errors. Both were wrong. The published figures are the conservative ones.
Accomplishments that we're proud of
- It works on real data, end to end: a complete public directory crawl, live re-fetch, live federal lookups, and a packet a person can print and hand to their plan.
- Every number on the site traces back to a URL, a time and a hash.
- The same tested core powers the website, the packet API and an MCP server.
- It is careful. It tells you what the record says and what to do next, and it never calls anyone a ghost.
What we learned
- Public health data APIs exist and are open, but nobody has built for the patient on top of them.
- Property-based tests find the inputs you do not think of. The ZIP+4 bug is the proof.
- Writing the spec first made the AI work checkable. When Kiro finished a task, I knew exactly which requirement and property it had to satisfy.
What's next
- UnitedHealthcare and other insurers as fuller public sources appear.
- More specialties beyond mental health.
- Medicare Advantage plans once CMS directory data is public, so patients can see their plan's record before the 2029 accuracy scores arrive.
If you are looking for care right now: open the listing before you call, keep the packet, and write down every call. If your plan cannot give you someone real, your state insurance department wants to hear about it.
Built With
- fast-check
- fhir
- gsap
- kiro
- model-context-protocol
- motion
- next.js
- nppes
- react
- tailwindcss
- typescript
- vitest