What happens if it is skipped
Maui's All Patients segment was seeded when the roster spanned two clinics. The 20,000-patient corpus (ADR-075) spans five, and case creation is gated by segment applicability, so on the first corpus run 52 % of patients (10,435 of 20,000) get outcomes but no cases: roster cells read NOT_APPLICABLE and no work list surfaces them. Nothing in the data is wrong; everything the staff can act on is missing for half the panel.
Why it is a manual step
ensureSegmentSeed creates and never mutates, by design, so the live segment still lists the two fixture clinics. The repair is one audited PUT /api/segments/<id> adding the corpus sites, documented in DEPLOY.md under "One-time segment repair after adding a tenant", beside the corpus-size setting.
Done when
The live segment lists every corpus site, a manual run through /api/runs/manual shows case counts in proportion to the outcome counts across all five sites, and the segment update's audit row is in the ledger. Sequenced before the corpus is switched on for the Maui sandbox.
What happens if it is skipped
Maui's
All Patientssegment was seeded when the roster spanned two clinics. The 20,000-patient corpus (ADR-075) spans five, and case creation is gated by segment applicability, so on the first corpus run 52 % of patients (10,435 of 20,000) get outcomes but no cases: roster cells read NOT_APPLICABLE and no work list surfaces them. Nothing in the data is wrong; everything the staff can act on is missing for half the panel.Why it is a manual step
ensureSegmentSeedcreates and never mutates, by design, so the live segment still lists the two fixture clinics. The repair is one auditedPUT /api/segments/<id>adding the corpus sites, documented inDEPLOY.mdunder "One-time segment repair after adding a tenant", beside the corpus-size setting.Done when
The live segment lists every corpus site, a manual run through
/api/runs/manualshows case counts in proportion to the outcome counts across all five sites, and the segment update's audit row is in the ledger. Sequenced before the corpus is switched on for the Maui sandbox.