Stories from the Past (quiz)¶
A gentle, one-question-at-a-time memory session built from the senior's own
life story. Recognition-first, never framed as pass/fail, reassuring on a
miss. Every answer is captured as a research-grade AnswerRecord so good-day
/ bad-day cognitive patterns can be measured over time.
This quiz is still in the code but no longer routed. What ships today is Memories, which shows the reminiscence items of the same pool without asking for answers.
Where the code lives¶
src/features/stories/types.ts— the domain model.QuizQuestionis authored content (a question with a known answer and asourceQuotefor verification).AnswerRecordis the research signal captured per answer: correctness, latency, retries, assistance, input method, day rating, and time-of-day bucket.src/features/stories/questions.ts— the seed question pool. The first twenty items are drawn from a recorded family interview. The rest are an extended set: same life, same facts, but paraphrasedsourceQuotelines that a Loved One should confirm before a real session. In production this content is authored by the Loved One from the senior's own stories.src/features/stories/session.ts— the per-pass draw (pickSessionQuestions) and the Fisher-Yatesshuffleit uses. Randomness is injectable so tests stay deterministic.src/features/stories/scoring.ts— grading (isCorrectChoice), the research record builder (buildAnswerRecord), and the time-of-day bucket helper. The clock is injectable so tests stay deterministic.src/features/stories/stories-screen.tsx— the playable screen.app/(tabs)/stories.tsx— the tab route.
One pass¶
A session asks three questions (QUESTIONS_PER_SESSION), drawn at random
from the whole pool. Short passes end while the session still feels easy, and
a random draw means a repeat visit that day asks something different rather
than marching through the same list. Ungraded reminiscence prompts are
moved to the end of the draw so a pass finishes on warmth.
The draw happens once when the session starts, and again on "Start again". It never reshuffles mid-session, so the "Question 2 of 3" counter stays honest.
Question formats¶
- multiple-choice — recognition among three or four options. The dignity-preserving default.
- this-or-that — two options; lowest cognitive load, good for hard days.
- open-recall — a spoken free answer matched against accepted answers. Richest signal; kept optional.
- reminiscence — an ungraded invitation to tell a story.
correctis null. Exists to end a session on warmth.
Accessibility¶
The screen reuses the shared accessible primitives: themed components, the
required-role Pressable with a 44pt minimum target, and text that scales
with the platform font size. One question fills the screen at a time. Answer
feedback is announced with AccessibilityInfo.announceForAccessibility and a
polite live region, and a miss is met with reassurance, not a red X. See
docs/dev/accessibility.md for the baseline this builds on.
Research data model¶
AnswerRecord is the unit the research side aggregates across days. Because
each question has a stable ground-truth answer, day-to-day variation in a
person's answers is a signal about cognition rather than about the question.
The same records feed the shared Stats Display and the Test Remedies feature.
Next steps¶
- Persist
AnswerRecords and surface trends in the Stats Display. - Add the Loved One authoring flow (interview import, question review, distractor editing, photo/audio attachment).
- Implement
open-recallwith voice input and answer matching. - Capture a once-per-session
DayRating("good / okay / hard").