{
  "project": "HelenisCare — Agentic Care Coordination Layer",
  "sprint": {
    "start": "2026-07-27",
    "end": "2026-08-16",
    "submission_deadline": "2026-08-17T23:59:00-04:00"
  },
  "updated": "2026-08-03",
  "phases": [
    {
      "id": 0,
      "name": "De-risk",
      "status": "closing",
      "tasks": [
        {
          "t": "Interaction-dataset spike (RxNorm + DDInter vs real demo catalogue)",
          "s": "done",
          "note": "VERDICT: CLEAN — medication safety confirmed as flagship; 5-alias UK-name map needed"
        },
        {
          "t": "Confirm sprint dates",
          "s": "done",
          "note": "27 Jul – 16 Aug"
        },
        {
          "t": "Product name decision",
          "s": "done",
          "note": "HelenisCare (unchanged)"
        },
        {
          "t": "Submission deliverables mapped + licence chosen",
          "s": "done",
          "note": "Apache-2.0; checklist in repo"
        },
        {
          "t": "Twilio credentials verified",
          "s": "done",
          "note": "API 200; sandbox round-trip proven 25 May"
        },
        {
          "t": "WhatsApp sandbox re-join from CEO phone",
          "s": "done",
          "note": "SORTED 3 Aug: re-joined, follow-up delivered (Twilio status=delivered via StatusCallback) + confirmed received by CEO"
        },
        {
          "t": "Impala gateway smoke test",
          "s": "blocked",
          "note": "HighRise domain fix expected 3 Aug"
        }
      ]
    },
    {
      "id": 1,
      "name": "The spine",
      "status": "done",
      "tasks": [
        {
          "t": "care_events + review_obligations + agent_runs migration (append-only rules, RLS, demo DB)",
          "s": "done",
          "note": "applied 2 Aug"
        },
        {
          "t": "Trigger → pg_net → dispatcher wake (no polling)",
          "s": "done",
          "note": "trigger live; dispatcher fn next"
        },
        {
          "t": "Model gateway edge function (Impala/Claude, telemetry → agent_runs)",
          "s": "done",
          "note": "live: Claude Haiku via gateway, telemetry row proven; Impala swap = env only"
        },
        {
          "t": "Dispatcher edge function (deterministic pre-filter entry)",
          "s": "done",
          "note": "deployed; 403s wrong secret"
        },
        {
          "t": "Twilio inbound webhook edge function",
          "s": "done",
          "note": "deployed; signature/URL-secret validation; positive path awaits sandbox re-join"
        },
        {
          "t": "End-to-end wake proof: insert event → dispatcher → agent_runs row",
          "s": "done",
          "note": "proven 2 Aug: insert→trigger→pg_net→dispatcher→agent_runs in ~1.2s; tamper UPDATE blocked"
        }
      ]
    },
    {
      "id": 2,
      "name": "The backbone — referral coordination",
      "status": "done",
      "tasks": [
        {
          "t": "Referral monitor → referral.stalled derivation",
          "s": "done",
          "note": "derive_stalled_referrals() + pg_cron 15min; proven"
        },
        {
          "t": "WhatsApp follow-up agent (Twilio)",
          "s": "done",
          "note": "LLM-drafted via gateway; Twilio ACCEPTED (delivery pending sandbox re-join); StatusCallback now records true delivery status"
        },
        {
          "t": "Escalation obligations into review queue",
          "s": "done",
          "note": "stall#2 → obligation + rationale + obligation.raised; human clear → obligation.cleared PROVEN"
        },
        {
          "t": "Review-queue UI in the HIS dashboard",
          "s": "done",
          "note": "PR #27 MERGED 3 Aug after two-model gate (Vera GREEN ×2; Codex 6 passes → ship-with-nits); deploy verification in progress"
        }
      ]
    },
    {
      "id": 3,
      "name": "The flagship — medication safety",
      "status": "in_progress",
      "tasks": [
        {
          "t": "rxnorm_map + interaction_reference tables + DDInter loader (160,235 pairs)",
          "s": "done",
          "note": "built on PR #1; migration apply reserved for Mikael lane post-gate"
        },
        {
          "t": "Deterministic interaction core (RxNav + alias layer)",
          "s": "done",
          "note": "hardened through 6 gate rounds: truncation-proof cross-pair queries, keyset-paged med sweep, prescription-reference validation (row is truth)"
        },
        {
          "t": "Reasoning layer via gateway (patient-context explanation)",
          "s": "done",
          "note": "model fires ONLY on deterministic findings; prompt inputs capped/stripped"
        },
        {
          "t": "medication_flag obligations + pharmacist clear/escalate",
          "s": "done",
          "note": "checked ledger writes — obligation/audit events can no longer fail silently"
        },
        {
          "t": "Two-model review gate (Ann + Codex) on PR #1",
          "s": "in_progress",
          "note": "round 7 of folds: 12+ real findings fixed incl. 3 clinical false-negative classes (query truncation, 50-row sweep cap, spoofable prescription ref); final open item = RxNav score-floor RED (Ann) being folded now"
        },
        {
          "t": "Apply 0004 → load pairs → deploy dispatcher → 4-scenario e2e",
          "s": "todo",
          "note": "fires automatically on a clean gate pair (CEO standing order); happy-path obligation left OPEN for CEO to clear live in the Review Queue"
        }
      ]
    },
    {
      "id": 4,
      "name": "Harden + demo + submission",
      "status": "todo",
      "tasks": [
        {
          "t": "⏸ HOLD — Phase 4 starts only after CEO reviews the live build on demo.heleniscare.com",
          "s": "pending",
          "note": "CEO directive 3 Aug"
        },
        {
          "t": "Eval harness (deployability proof)",
          "s": "todo"
        },
        {
          "t": "Red-flag + PHI + rate/cost limits",
          "s": "todo"
        },
        {
          "t": "Seed demo data (incl. warfarin patient) + one-command reset",
          "s": "todo"
        },
        {
          "t": "Demo video 3–5 min",
          "s": "todo"
        },
        {
          "t": "Business model + GTM section",
          "s": "todo"
        },
        {
          "t": "Compliance & Responsible AI statement (300–500 words)",
          "s": "todo"
        },
        {
          "t": "Swap DDInter CSVs for fetch script; repo public + Apache-2.0 check",
          "s": "todo"
        },
        {
          "t": "Submit via portal (before 17 Aug midnight AST)",
          "s": "todo"
        },
        {
          "t": "Fold deferred review nits: stop 30s poll after missing-table; keyboard semantics on queue rows; resolved-list order by resolved_at",
          "s": "todo"
        }
      ]
    }
  ]
}
