Safety Net
Safety Net is a diagnostic-safety agent that re-reads an entire inpatient admission at the moment of discharge — every note, lab, result, medication change, and consult across all 14 days — and surfaces only the threads
Core trick
Every finding must carry a verbatim chart substring, checked automatically, before it is surfaced as an unresolved discharge item.
Tags
Description
Safety Net is a diagnostic-safety agent that re-reads an entire inpatient admission at the moment of discharge — every note, lab, result, medication change, and consult across all 14 days — and surfaces only the threads that genuinely fell through: an orphaned incidental finding, a home blood thinner held for a procedure and never restarted, a lab trend no single value reveals, a result left pending, a dropped consult recommendation.
No clinician re-reads the whole chart at discharge; an agent can, with uniform attention, at exactly the decision point. Every finding carries a verbatim citation — an exact substring of the chart, validated automatically — and a specific, human-answerable question. It reasons about acknowledgment and equivalence, not keyword matching, so it suppresses look-alikes already closed in different words. It drafts the fix; a clinician approves; nothing sends itself. One engine, extensible to any record, handoff, or specialty. Patient now have a safety net for their health.
README excerpt
# Safety Net **A retrospective diagnostic-safety agent.** It sweeps a backlog of finished radiology reports, extracts every follow-up recommendation, and reasons about whether each was *actually addressed* by a later study — not merely whether a later study happened. Findings that fell through are surfaced, each with a specific, human-answerable question; a capable scan that never mentions the original finding is **UNCONFIRMED** and is escalated, never silently closed. > "The report was right. The system around it failed. We built the system." > **Working on this?** Start with [`CLAUDE.md`](CLAUDE.md). The **headline build > and canonical demo is Whole-Chart Review**, scripted in > [`docs/demo-script.md`](docs/demo-script.md) (see the **Whole-Chart Review** > section below). The original radiology Safety Net is the retained fallback — > handoff in [`docs/build-status.md`](docs/build-status.md), runbook > [`docs/demo-runbook.md`](docs/demo-runbook.md). ## Built during the hackathon (July 18, 2026) **Everything in this repository was built during the event.** Specifically: - **The entire Safety Net pipeline** — the frozen finding/reconciliation JSON contract (`models.py`), the Anthropic client + system prompts, Haiku bulk extraction, the Opus five-axis reconciliation engine, action-drafting, the deterministic sweep orchestration, the thin FastMCP wrapper, and the reasoning-first UI render. - **The verification layer** — `scripts/preflight.py`, the Case A smoke tes