Signal/docs/build-plans
Kisa a53728e424 feat: device-keyed staff overrides + recompute contract (plan 02, P4)
Ends the override leak: an SWO/PA save now applies to one device's line, not
every device the patient has. doc_status gains device_type ('' = legacy
patient-scoped row, applies until re-saved); the old unique key is dropped by
introspected name and replaced with the 4-col scope key. Staff overrides now
FEED THE VERDICT (device-scoped, staff wins over the CSV cell) instead of
display-only; visit overrides keep their patient-scoped fan-out via
confirmed_visits. PUT /api/doc-status and /api/confirm-visit accept an
optional echo of the patient's lines and return {lines, rollup_status}
recomputed through the same engine (stateless, no batch rebuild). Frontend
minimal fix: doc-status state and writes keyed patient:device. Independent
audit: SHIP (migration reproduced empirically on both old-key shapes; guard
scoped per its nit). 162 tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 05:36:26 -04:00
..
00-signal-reactivation-plan.md docs: reactivation plan + FDA CDS exemption memo draft 2026-07-06 12:12:06 -04:00
01-readiness-model-wiring.md feat: wire readiness model into live pipeline (build plan 01, Phase 2a) 2026-07-07 04:52:32 -04:00
02-readiness-model-completion.md docs: readiness-model build-plan starter templates (wiring + completion) 2026-07-06 05:08:46 -04:00
03-game-center-token-layer.md feat: device-keyed staff overrides + recompute contract (plan 02, P4) 2026-07-07 05:36:26 -04:00