Code first, then a model
Sentinel
Reads every patient text before anything else. A warning sign gets the fixed safety text the same minute, an urgent call card for Dana, and the plan paused.
How it works
- Code rules first (keywords, readings like 190/115, plain words like “having a heart attack”), with negation and history handled (“no chest pain”, “had a heart attack in 2019”).
- When code finds nothing, a model reads the text again; it can add a sign code missed, never remove one.
- The reply is the fixed text for that kind of sign: 911, crisis, low sugar, bleeding.
The line it can't cross: The safety text is written by code, never by a model.
How we know
–
caught on the benchmark without the code-first reader
– with it
Decision 0011 · 0031 · 0040src/bva/journey/agents.py (Sentinel) · textread.py · panel/inbox.py