Signal/docs
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
..
build-plans feat: wire readiness model into live pipeline (build plan 01, Phase 2a) 2026-07-07 04:52:32 -04:00
compliance docs: reactivation plan + FDA CDS exemption memo draft 2026-07-06 12:12:06 -04:00
reviews coverage calculator and UI refinements; add demo MVP gap analysis and quality review docs 2026-06-12 13:04:23 -04:00
superpowers docs(shield): v2 — HIPAA+GDPR global scope, user's pricing model (free print, $49 PMS integration), Signal Tier 3 bundle, Shield MVP first 2026-06-22 10:14:57 -04:00
agent-ready-ecosystem-handoff-2026-06-22.md add readiness-model design brief for pi and update shared context 2026-06-23 19:53:57 -04:00
aios-and-blog-2026-06-22-pi-recovered.md docs(aios): recover Pi's Signal AIOS + Automated Blog plans from session log 2026-06-24 00:22:41 -04:00
build-spec-2026-06-20.md docs: add build spec, support manual, and shared current-state context 2026-06-20 17:38:31 -04:00
convex-signal-instance-brief-2026-06-24.md docs+state: Convex-Signal spike brief + ship-status ledger + session wrap [CC] 2026-06-24 13:38:46 -04:00
convex-signal-spike-design-2026-06-24.md verify+fix: Pi's dedup + Convex-spike designs build-ready [CC] 2026-06-24 15:53:10 -04:00
daniel-pilot-readiness-whitepaper.md add Phase 1 security hardening, mapping confidence, audit logging, pilot docs 2026-05-29 05:41:25 -04:00
daniel-pilot-readiness-whitepaper.pdf add Phase 1 security hardening, mapping confidence, audit logging, pilot docs 2026-05-29 05:41:25 -04:00
dedup-design-2026-06-24.md verify+fix: Pi's dedup + Convex-spike designs build-ready [CC] 2026-06-24 15:53:10 -04:00
delegation-and-skills-brief-2026-06-24.md docs(delegation): brief Pi on the delegation router + hybrid skill model 2026-06-24 00:16:22 -04:00
delegation-router-design-2026-06-24.md review+fix: end-to-end audit found 9 gaps, fixed 3 in scope, filed rest for Claude [Pi] 2026-06-24 10:22:05 -04:00
design-tokens-v1.json refactor: reorganize repo structure — flatten CGM-Denial-Prevention/ and Projects/ into docs/ pitch/ research/ 2026-05-12 05:10:00 -04:00
drift-to-skill-governance-2026-06-24.md feat(workflow): build consolidation foundation from Pi's recovered design 2026-06-23 23:30:56 -04:00
hipaa-deployment-analysis-v1.md Update Signal brand language and add pitch/build artifacts 2026-05-28 10:14:16 -04:00
phase3-setup-checklist.md Add Phase 3: Clerk auth with org-scoped data isolation 2026-05-29 12:12:17 -04:00
pi-startup-fix-design-2026-06-28.md docs: Pi startup-protocol fix — companion brief for Signal-pinned sessions [Pi] 2026-06-28 16:20:48 -04:00
pilot-e2e-validation-2026-06-21.md add pilot end-to-end validation + production readiness docs 2026-06-21 12:46:36 -04:00
pilot-guide-v1.md add Phase 1 security hardening, mapping confidence, audit logging, pilot docs 2026-05-29 05:41:25 -04:00
production-readiness-whitepaper-2026-06-21.md add pilot end-to-end validation + production readiness docs 2026-06-21 12:46:36 -04:00
readiness-model-brief-2026-06-23.md add readiness-model design brief for pi and update shared context 2026-06-23 19:53:57 -04:00
readiness-model-design-phase2-2026-06-26.md design: readiness model Phase 2 build brief for Claude (rules-config, rollup, override, plan-type enforcement) [Pi] 2026-06-27 08:38:39 -04:00
research-versioning-design-2026-06-24.md review+fix: end-to-end audit found 9 gaps, fixed 3 in scope, filed rest for Claude [Pi] 2026-06-24 10:22:05 -04:00
review-audit-delegation-research-versioning-2026-06-24.md review+fix: end-to-end audit found 9 gaps, fixed 3 in scope, filed rest for Claude [Pi] 2026-06-24 10:22:05 -04:00
ship-status-ledger.md Add readiness verdict engine (kills the false green) 2026-06-27 00:33:42 -04:00
signal-brand-extension-v1.md refactor: reorganize repo structure — flatten CGM-Denial-Prevention/ and Projects/ into docs/ pitch/ research/ 2026-05-12 05:10:00 -04:00
sttil-brand-system-v1.md Update Signal brand language and add pitch/build artifacts 2026-05-28 10:14:16 -04:00
support-manual.md docs: add build spec, support manual, and shared current-state context 2026-06-20 17:38:31 -04:00
tailwind-theme-v1.md refactor: reorganize repo structure — flatten CGM-Denial-Prevention/ and Projects/ into docs/ pitch/ research/ 2026-05-12 05:10:00 -04:00
workflow-consolidation-brief-2026-06-23.md chore(state): clean-start current-state.md, ignore context recovery artifacts, add workflow-consolidation brief for Pi 2026-06-23 21:22:31 -04:00
workflow-consolidation-design-2026-06-24-pi-recovered.md feat(workflow): build consolidation foundation from Pi's recovered design 2026-06-23 23:30:56 -04:00