<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Austin Chris</title>
    <description>The latest articles on DEV Community by Austin Chris (@austinchris1).</description>
    <link>https://dev.to/austinchris1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281984%2Fd45326ab-b005-41d9-927c-301549a32e4b.jpg</url>
      <title>DEV Community: Austin Chris</title>
      <link>https://dev.to/austinchris1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/austinchris1"/>
    <language>en</language>
    <item>
      <title>I checked a ghost network against federal records. A property test found the bug I missed.</title>
      <dc:creator>Austin Chris</dc:creator>
      <pubDate>Fri, 04 Dec 2026 06:59:06 +0000</pubDate>
      <link>https://dev.to/austinchris1/i-checked-a-ghost-network-against-federal-records-a-property-test-found-the-bug-i-missed-kfa</link>
      <guid>https://dev.to/austinchris1/i-checked-a-ghost-network-against-federal-records-a-property-test-found-the-bug-i-missed-kfa</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is written as part of the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/LuT_KbBiAxc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Out of every hundred calls to a psychiatrist listed in an insurance directory, about twelve end in an appointment.&lt;/p&gt;

&lt;p&gt;I built a tool that checks one of those listings against federal records in a few seconds. Along the way, a property test that Kiro ran found a bug in my search that no ordinary unit test would ever have caught. I'll get to that bug. First, why those calls fail.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fidzmr0xbpc0geq2friah.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fidzmr0xbpc0geq2friah.jpg" alt="Out of every hundred calls to a listed psychiatrist, about twelve end in an appointment" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The ghost network
&lt;/h2&gt;

&lt;p&gt;If you have ever tried to find a psychiatrist through your health insurance, you know the routine. The plan's directory gives you a list. You call the first number and it is disconnected. The second office says the doctor retired. The third does not take your plan, whatever the directory says. By the tenth call you give up.&lt;/p&gt;

&lt;p&gt;This has a name: a &lt;strong&gt;ghost network&lt;/strong&gt;. In a JAMA Health Forum study published in October 2026, researchers placed 5,822 calls to psychiatrists and psychologists listed in commercial insurance directories across five states. About 12 in 100 ended in an appointment. More than half of the calls that reached an outcome hit a directory error.&lt;/p&gt;

&lt;p&gt;Regulators know. CMS has proposed that Medicare Advantage plans verify their directories every 90 days starting in 2028, with public accuracy scores in 2029. That helps the next patient. It does nothing for the person who needs care this week.&lt;/p&gt;

&lt;p&gt;So for Kiroween I built something for that person.&lt;/p&gt;

&lt;h2&gt;
  
  
  Erratum
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find&lt;/strong&gt; the listing you saw. Search a dated copy of Cigna's public provider directory by state, ZIP, city or name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check&lt;/strong&gt; it. Erratum fetches that one listing again live, then compares it with the federal NPI registry (is this clinician's ID active, and in what specialty?), the HHS OIG exclusion list, and US phone numbering rules. Every finding links to its source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep&lt;/strong&gt; the evidence. A printable packet with the directory row, every retrieval time, SHA-256 hashes, and a checklist of what the No Surprises Act directory rule covers, and what it does not.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8xpxq8lhzobq3wjlf7nt.jpg" alt="Erratum checking a live listing: no active record in the federal NPI registry, stamped contradicted" width="800" height="533"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It never calls anyone, stores nothing, and never says a clinician is fake. It describes the record, because a stale record is not a bad doctor.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Folvci37dm0rtnkoxk23m.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Folvci37dm0rtnkoxk23m.jpg" alt="The evidence packet, with the insurer's published listing, retrieval times and a SHA-256 hash" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Live: &lt;a href="https://erratum-app.vercel.app" rel="noopener noreferrer"&gt;https://erratum-app.vercel.app&lt;/a&gt;&lt;br&gt;
Code: &lt;a href="https://github.com/AustinChris1/erratum" rel="noopener noreferrer"&gt;https://github.com/AustinChris1/erratum&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To check listings, though, I first needed the listings. All of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The data is public, and it is a mess
&lt;/h2&gt;

&lt;p&gt;Since 2021, CMS has required many insurers to publish their provider directories through a standard API called FHIR Plan-Net. Cigna's is open, with no key. I crawled the whole psychiatry and psychology directory: 508 pages, &lt;strong&gt;50,723 psychiatry listings&lt;/strong&gt; covering 26,618 clinicians, plus 29,630 psychologist listings. Every page's URL, time and SHA-256 hash is in the repo.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F541xtix7ah1jiof4pk93.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F541xtix7ah1jiof4pk93.jpg" alt="What Cigna's public directory shows across 50,723 psychiatry listings" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few things that surprised me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;95%&lt;/strong&gt; of psychiatry listings say the office is accepting new patients.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;11%&lt;/strong&gt; of the records have not changed in more than a year.&lt;/li&gt;
&lt;li&gt;In a seeded sample of 400 clinicians, &lt;strong&gt;4.3%&lt;/strong&gt; are physicians registered in a completely different specialty, like Internal Medicine, while listed as psychiatrists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;28&lt;/strong&gt; listings have no phone number at all, on the clinician or the office.&lt;/li&gt;
&lt;li&gt;One phone number appears on &lt;strong&gt;1,133&lt;/strong&gt; different psychiatry listings. That is a central scheduling line, not an error, but you would never know that from the directory.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also got one wrong in public before fixing it. My first version said a San Diego listing had no phone number. It did: Plan-Net lets the insurer put phones on the clinician's record &lt;em&gt;or&lt;/em&gt; the office location, and I was only reading one. A reviewer caught it. Now both are read everywhere, and a regression test pins that exact listing.&lt;/p&gt;

&lt;p&gt;That mistake taught me I can't think of every edge case myself. Which is where Kiro came in.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I used Kiro
&lt;/h2&gt;

&lt;p&gt;I want to be straight about the tools. I built the first version with Claude Code: the checks, the Next.js app, the crawler, and the &lt;code&gt;.kiro&lt;/code&gt; folder itself. Then I opened the project in Kiro and handed it the spec. Kiro felt like VS Code from the first minute, so there was nothing to learn before I could start, and it was fast.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The spec.&lt;/strong&gt; &lt;code&gt;.kiro/specs/listing-evidence/&lt;/code&gt; 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, and numbered tasks. I ran the open tasks in Kiro. It started a sub-agent per task and tracked each run.&lt;/p&gt;

&lt;p&gt;Task 8 asked for a property: every search result must be in the chosen state, and every ZIP-filtered row must match the ZIP. It sounded routine. Then it failed on the first run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The bug I would never have tested for.&lt;/strong&gt; fast-check reported:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;a ZIP prefix longer than the postal code's five digits never matches through the +4 suffix&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Cigna stores postal codes like &lt;code&gt;94087-8127&lt;/code&gt;. My filter matched against the raw string. A hand-written unit test with an ordinary five-digit ZIP would have passed forever. Kiro pulled the filter into a pure function, compared only the first five digits, made the state match case-insensitive, and reran until the suite passed. The project went from 14 tests to 29.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzak0xlemwa6o1yk1975q.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzak0xlemwa6o1yk1975q.jpg" alt="Built with Kiro: the EARS spec, the failing ZIP+4 property test, hooks, steering and MCP" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That test only ran because something made it run every time. Which brings me to the hooks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hooks.&lt;/strong&gt; Two hooks ran on their own while Kiro worked. One reran the property tests every time the agent saved a file under &lt;code&gt;src/core&lt;/code&gt;; it fired 8 times. 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. A requirement, a property test and a hook all enforce that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steering.&lt;/strong&gt; Three files told Kiro what a new teammate would need: who the patient is and what the app must never do, where the data comes from and that every number needs a source and a hash, and the language rules, which only load when Kiro touches listing code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP.&lt;/strong&gt; The app's checks also run as an MCP server, &lt;code&gt;erratum&lt;/code&gt;, with six tools: search, check a listing, build a packet, NPPES lookup, OIG check and snapshot info. It runs the same code as the website, so an agent in Kiro can check a real listing directly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Kiro found that changed the product.&lt;/strong&gt; I asked it to add UnitedHealthcare as a second insurer. It discovered that UHC's public directory stops paging after about 150 records with an HTTP 500, wrote a clean stop rule with tests, and marked those snapshots as truncated rather than 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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spec versus vibe coding.&lt;/strong&gt; Vibe coding gets you something that runs. A spec plus property tests got me something I could trust with real people's records. Kiro knew what "done" meant before it wrote a line, and the tests found the case I had not thought of.&lt;/p&gt;

&lt;h2&gt;
  
  
  Directories have always gone stale
&lt;/h2&gt;

&lt;p&gt;The site looks like a paper file on purpose. It uses public-domain archival photographs: a Bell System switchboard from the National Archives, and a 1952 Kannapolis, North Carolina phone book where the heading "Oxygen, Medical" lists two funeral homes. In 1950s America, funeral homes often ran the ambulances. As you scroll, an erratum slip lands on that 1952 line, then on a 2026 listing.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F80l06c5x28djlgflbxl3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F80l06c5x28djlgflbxl3.jpg" alt="A 1952 phone book where the heading Oxygen, Medical lists two funeral homes" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;One insurer, two specialties. A dialable number is not a number that answers. Registry data is self-reported. And Erratum shows which Cigna networks a listing is in, but it does not know which plan you have.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you need care right now
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Try it on a listing near you: &lt;a href="https://erratum-app.vercel.app" rel="noopener noreferrer"&gt;https://erratum-app.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built for Kiroween 2026, Frankenstein category.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>hackathon</category>
      <category>healthcare</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
