← ALL PROJECTS

AI AGENTS / ACCESSIBILITY

AccessPath

Plain-English explanations of benefits, disability and insurance letters, where every claim links to the exact passage it comes from and unsupported claims are withheld instead of shown.

Strands Agents SDKAmazon BedrockLambdaCloudFrontFastAPIReact
AccessPath highlighting the exact sentence in a fictional benefits letter that supports a cited deadline
FICTIONAL SAMPLE LETTER / SOURCE-LINKED EVIDENCE

The problem

Benefits and insurance letters are long, conditional and written in administrative language. Misreading which date is a deadline, or whether an action is required, can mean a missed appeal and lost benefits. AccessPath explains what a letter says and shows where it says it. It is not legal advice and does not make benefit decisions.

I built it for the AWS Builder Center challenge “Strands SDK: Workshop to Ship” (October 28 to November 4, 2026). It is a personal project, not employer work.

Architecture

  1. Extract: PyMuPDF pulls text and page geometry from the PDF and assigns stable passage IDs.
  2. Interpret: a Strands agent on Amazon Nova Pro returns structured claims (meaning, action, deadline, status, optional, missing) that cite passage IDs. Document text is treated as untrusted data.
  3. Guard: deterministic Python checks reject invented dates, quantities and statuses, and optional actions presented as required.
  4. Review: a second, independent Strands agent checks each claim against its cited passages and fails closed.
  5. Show the source: quotations are copied from the original text, never written by the model, and highlighted on the page image.

Hosting: React on private S3 behind CloudFront; FastAPI on a Lambda Function URL; CloudWatch alarms; one CloudFormation stack.

Decisions and tradeoffs

  • Precision over recall. A valid claim may occasionally be withheld, which is safer than presenting an unsupported one as fact.
  • The model never writes quotations. Every quote shown is retrieved from the extracted text.
  • A second model agreeing is not proof, so the deterministic guards and visible sources stay in place.

Security and privacy

  • Cloud processing only happens with explicit consent, enforced by the backend, not just the UI.
  • Documents are processed in memory and not written to S3 or a database; model output streaming is disabled so document text stays out of logs.
  • The Lambda role can only write its own logs and invoke Amazon Nova Pro.
  • Uploads are checked for type, signature, size and page count; CloudFront adds HSTS, a restrictive CSP and frame protection.
  • Limits: no authentication and per-container rate limiting, so the public demo is for fictional documents only.

Testing and validation

Pytest suites cover the API, consent handling, document extraction, evidence linking, the deterministic guards, long letters, regression letters and the reviewer.

Outcome and limits

Deployed and public. Scanned PDFs are not supported in production because OCR is not bundled in Lambda, uploads are capped at 5 MB, and the prompts target English, U.S.-style letters.

PROJECT EVIDENCE

AccessPath highlighting the exact sentence in a fictional benefits letter that supports a cited deadline
FICTIONAL SAMPLE LETTER / SOURCE-LINKED EVIDENCE
AccessPath review notice showing a claim withheld because its sources did not support it
A CLAIM WITHHELD BY THE INDEPENDENT REVIEWER