Build Log
Known Card: tense, curation, tiers, and the start of history
July 2, 2026
Fixed obituary-voice seed data, split the Known Card into six research-backed core fields vs. secondary care details, closed a real editing/data-integrity bug, and designed (but did not build) day-level history so families can look back at what worked.
Timeline
What shipped
Fixed obituary-voice tense in demo-rick seed data and lib/prototype/seed.ts — subjects stay present tense while alive
Documented the tense rule as a design commitment in docs/known/ethics-and-boundaries.md
Wrote Guide 2 (30-second caregiver card) from the existing research corpus — found and corrected the six-field structure already partially built
Fixed the portrait-page Known Card preview to use curated cardLabel enrichments instead of raw family answers
Extended the preview to show all six core fields (was 3) plus the one-sentence portrait and a scoped print button
Split KnownCard.tsx's 10 sections into a core tier (6 research-backed fields) and a secondary tier (safety/personalCare/routine/meals), visually separated by a divider
Fixed a real data-integrity bug: free-text card edits were breaking the per-entry "Edit guidance" links and contributor chips, which stayed visible pointing at wording no longer shown on the card
Added portraits.cardOverrideIds (schema) so 'hand-edited vs. computed' state survives a page reload, not just an in-session guess
Added a 'Reset to auto-generated' action per overridden section
Attempted one-page landscape print for the full card — grid-to-multi-column fix applied (real Chromium bug avoided) but the 3-page blank-page issue persists in both orientations; parked with a documented ruled-out list
Added portraits.cardOverrideIds and a new card_snapshots table (one row per portrait per calendar day) with upsert-on-save write path wired through the PATCH route and KnownCard.tsx
Wrote Guide 3 (day history spec) — card snapshot history, a proposed day_ratings table for a manual no-AI good/rough/mixed toggle, and an explicitly deferred, ethics-gated trend/forecast section
Captured 2 Anvils/Strikes on separating 'what happened' (data) / 'how was it' (human judgment) / 'what does it mean' (AI inference) as different governance tiers
“The AI will get involved in a future stage of trend, etc...”