Skip to content

Winner, AI in Healthcare track, Solix AI Hackathon 2026

Coverage Keeper

Photograph a Medicaid letter and see what it asks for, when it is due, and who to call.

Result
Deadline right on 24 of 24 test letters
My role
UI, state rules, Spanish, eval scoring, security fixes
Team
3 people

Highlights

  • Read the deadline correctly on 24 of 24 test letters, in English and in Spanish, with 0 guardrail hits.
  • Won the AI in Healthcare track at the Solix AI Hackathon 2026 as a team of three.
  • Built the interface, the rules for five states and the Spanish version, then closed the findings of a security audit.
Coverage Keeper's result screen: a plain summary of the letter, the due date Feb 15, 2027 with 57 days left beside the highlighted line it was read from, and a checklist of papers to send

The problem

When states restarted Medicaid renewals after the pandemic, most people who lost coverage lost it over paperwork. KFF counted 69% of disenrollments as procedural across all states with data, and 66% in the final month of the unwinding.

The paperwork is about to grow. The July 2025 federal budget law requires Medicaid enrollees in most states to show 80 hours a month of work, volunteering or school, starting January 1, 2027. If you get a letter asking for proof of those hours and miss its deadline, you can lose your coverage.

What I built

Three of us built Coverage Keeper for the Solix AI Hackathon 2026, where it won the AI in Healthcare track, and I kept working on it after we submitted. You photograph or upload a Medicaid letter. The app shows a plain-language summary, the deadline with the days left and the line it read the date from, a checklist of documents to send, and a phone number to call.

My part:

  • Built the interface from the consent screen to the result, then the mobile polish, dark mode and the laptop and tablet layout.
  • Wrote the rules data for Washington, Oregon, California, Nevada and Arizona, taught the reader to detect which state sent a letter, and started exemption screening from that state.
  • Made it work in English and Spanish: a Spanish interface, Spanish guardrail and rules wording, and letters read in either language.
  • Wrote the two latest versions of the reading prompt, v6 and v7, and the evaluation around them: scoring the sending state, adding the Spanish-language and Nevada letters, and fairer scoring of a letter's required action.
  • Closed the findings of a November 2026 security audit: a cap on PDF pages, guardrail gaps, chunked uploads and security headers.

Woosik Kim built the letter reader backend and its /api/read route, the first labeled set of sample notices, and reading a whole letter across several photos or a PDF. Waleed Alghaithi built the rate limit on /api/read and the draft note to a doctor.

How it works

The browser shrinks the photo and posts it to /api/read, which checks its type and size and applies the rate limit. A Claude vision model reads the letter and returns structured output in one fixed shape: notice type, summary, deadline, the quoted deadline line, required action, documents, phone number and confidence. zod validates that shape. If the answer fails validation or the model refuses, you see an "unsure" result instead of a guess.

The schema has no eligibility field, so the model has nowhere to put a verdict. After generation a guardrail checks every string and replaces any sentence like "you are eligible" with a safe fallback and the Oregon Health Plan phone number. The prompt treats letter text as data, which defends against prompt injection planted in a PDF, and adversarial fixtures test that defense. Exemption screening never calls the model: it matches your yes or no answers against the published exemption rules, and the app says those exemptions "may apply".

The app stores nothing. It processes the photo in memory and drops it after the response, and the logs record status, latency, model and error class with no letter content.

Results

The eval set has 33 labeled letters: public sample notices from state .gov sites, phone photos, full PDFs of the notices longer than one page, Spanish versions, and 4 Nevada letters added after prompt v6. We fixed the split before any run: 9 dev, 24 test. Every metric below except the document scores on full PDFs came out the same on all 3 runs.

Test split, prompt v7, English, mean of 3 runs
MetricPage 1, 11 lettersFull PDF, 7 lettersWritten in Spanish, 2 lettersNevada (new), 4 lettersv6 page 1 / full PDF
Deadline correct (printed or none)11 of 117 of 72 of 24 of 411 of 11 / 6 of 7
State identified11 of 117 of 72 of 24 of 411 of 11 / 7 of 7
Notice type correct10 of 116 of 72 of 24 of 410 of 11 / 6 of 7
Required action correct10 of 116 of 72 of 24 of 410 of 11 / 5.7 of 7
Document recall (mean)1.000.76 (0.71 to 0.86)1.001.001.00 / 0.71
Document precision (mean)0.770.59 (0.57 to 0.64)1.001.000.80 / 0.71
Guardrail hits00000 / 0

Prompt v7 fixed the one deadline miss from v6, a letter whose January 1, 2027 move date the model had reported as a deadline. Answering in Spanish over all 24 test letters (1 run), it got 24 of 24 deadlines and 0 guardrail hits.

Limits and next steps

  • The set is small and mostly Vermont. Oregon publishes only 3 sample notices online, Washington and California have 1 each in the set, and Arizona has published none.
  • Document precision on full PDFs dropped to 0.59 from 0.71 under v6. The v7 change touched dates only, so run-to-run variation is the likely cause, but I have not shown that.
  • Two letters miss their required action on every run, and one Vermont renewal decision gets the wrong notice type in both its page 1 and full PDF versions.
  • One prompt rule came from a test letter: v7's effective-date rule. The 4 Nevada letters, which no prompt work saw, are the fresh check.
  • The 3 phone photos show a screen rather than printed paper, and no eval letter arrives as several phone photos.

Stack

  • Next.js 16 (App Router), React 19, TypeScript 6
  • Claude (claude-opus-5-5) through the Anthropic SDK, with structured output
  • zod 4 for schema validation
  • Vitest, fast-check, Playwright and axe-core
  • GitHub Actions with gitleaks, osv-scanner and Dependabot
  • Vercel

Published , updated