Signal/tests
Kisa a3af499c93 feat: wire readiness model into live pipeline (build plan 01, Phase 2a)
Readiness verdicts now ride additively on /api/upload and /api/confirm-visit:
- core/worklist_readiness.py: ReadinessIndex — row-to-line membership resolved
  through the dedup group key (patient_id, device_type, DOS), never re-derived
  from a row's own plan_type (kills a reviewer-reproduced false green)
- RecordOut gains plan_type / readiness_status / readiness_items (additive,
  default None); UploadResponse gains readiness_stats (reconciles with rows)
- Minimal plan_type CSV mapping (client-supplied, lowercased+trimmed, never
  guessed) per the umbrella reactivation plan; full enforcement lands in P5
- Fixes pre-existing record_lookup miss for order-numbered CSVs; fallback
  fields now come from the dedup MergedShipment (latest-non-null, collected
  order numbers) so doc_state and the verdict grade from the same values
- confirm-visit normalizes plan_type identically to the CSV path

Verification: 132 tests green (108 baseline + 24 wiring/regression);
adversarial 3-lens review + refutation pass (7 findings confirmed, all fixed,
regression-locked); independent code-auditor verdict SHIP; Pi E2E 33/33.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 04:52:32 -04:00
..
__init__.py add Phase 1 security hardening, mapping confidence, audit logging, pilot docs 2026-05-29 05:41:25 -04:00
signal_e2e_test.py test: signal-e2e-test skill + E2E black-box test suite (33 tests, all green) [Pi] 2026-06-27 08:24:11 -04:00
smoke_test.py add phase 2 supabase persistence layer 2026-05-29 06:50:34 -04:00
test_coverage_flags.py feat: demo MVP — 90/60/45 priority tiers, doc state machine, confirm visit workflow 2026-06-07 11:29:33 -04:00
test_dedup.py Add readiness-model dedup + coverage-line grouping foundation 2026-06-27 00:22:01 -04:00
test_doc_state_machine.py fix(audit): add Supabase client support to audit logger, format cleanup, update cascade test 2026-06-21 16:16:34 -04:00
test_readiness.py Add readiness verdict engine (kills the false green) 2026-06-27 00:33:42 -04:00
test_worklist_readiness.py feat: wire readiness model into live pipeline (build plan 01, Phase 2a) 2026-07-07 04:52:32 -04:00