Back to projects

WardBench

A backend for checking AI outputs and recording why they were blocked or escalated

July 2026 · Hackathon prototype

PythonFastAPIPydanticSQLiteServer-Sent Events

The problem

An AI-generated response can sound convincing while containing an error. WardBench is a Healthy Longevity hackathon project exploring how to check bounded healthcare-agent outputs and make failures visible in an audit trail.

My contribution

I built the initial backend: typed output schemas, a medication-check pipeline, deterministic validators, run management, SQLite persistence and live server-sent events for a separate frontend. My teammate owned evaluation-case content and frontend work.

The validators recompute checks from the supplied case data instead of trusting the model's own verdict. The pipeline distinguishes repairable warnings from failures that must be blocked or escalated. Each state change is saved and streamed to the frontend.

Project scope

The initial July build demonstrated medication checking with five validators. The repository has since expanded to medication, vital-sign and structured handoff task paths, with a ward interface and result scoreboard.

The useful engineering boundary is between a generated draft, deterministic checks and the recorded decision. A successful demonstration is not clinical validation: this remains a hackathon prototype, not a deployed healthcare system.