You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TL-15 | Suggest-and-confirm preparedness needs from synthetic policy data #27
C (rules + fixtures), D (confirm screen), A (storage) • P1 • After the P0 path works; extends TL-09.
Goal: Show State Farm what it could eventually do: suggest a household's likely preparedness need from policy records, then let the resident confirm before anything reaches dispatch. All data is synthetic. Nothing is inferred silently, and help never depends on confirming.
Flow
Synthetic policy signals per household in fixtures/: life policy notes, disability policy flag, home modifications, car modifications.
Pure rule suggestNeeds(signals) in spacetimedb/src/domain/ returns suggested equipment needs, each with confidence and the source signals behind it.
Preparedness signup (TL-09) shows: "Based on your policy, do you rely on: ☐ … ?" with Confirm, Correct and Skip.
Only the confirmed need reaches dispatch (HouseholdCase.need). The coordinator sees "self-confirmed via preparedness profile."
A: store the confirmed need with the consent record.
Done when
Tests show each fixture's suggestion and its source signals, and no suggestion for a household without signals.
A confirmed need flows into evaluateOptions and changes nothing else.
A skipped household gets identical assistance and no stored need.
Only suggested needs are used: no diagnoses and no copied policy text reach the coordinator or driver.
Demo shows one confirm and one skip side by side with the synthetic-data label.
Not in scope: real State Farm data, any use of suggestions for pricing, claims or eligibility, and any legal claim. Pitch line: "With State Farm's legal review and customer opt-in, existing customers could be prompted to confirm a preparedness need."
Activity