Skip to content

Add remembered initial judgment post-reveal measures#19

Open
Spbd1 wants to merge 1 commit into
codex/add-delayed-reveal-experimental-conditionfrom
codex/add-memory-of-initial-judgment-measure
Open

Add remembered initial judgment post-reveal measures#19
Spbd1 wants to merge 1 commit into
codex/add-delayed-reveal-experimental-conditionfrom
codex/add-memory-of-initial-judgment-measure

Conversation

@Spbd1

@Spbd1 Spbd1 commented May 11, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Capture participants’ memory of their pre-reveal interpretation so we can compare actual pre-reveal answers with reconstructed memories after the hidden-rule reveal.
  • Use preRevealSurveyOriginal (if present) as the source of truth for comparisons to avoid using revised answers.

Description

  • Add four required post-reveal memory items to the UI in components/PostRevealSurveyForm.tsx: rememberedPrimaryAttribution (single choice), rememberedIndividualResponsibility (Likert 1–7), rememberedConstraintSuspicion (Likert 1–7), and rememberedConfidence (Likert 1–7), and require them for completion.
  • Extend the TypeScript data model in types/research.ts and the export validation schema in lib/researchExportSchema.ts to include the new remembered fields and the new computed metrics; bump RESEARCH_EXPORT_VERSION/RESEARCH_SCHEMA_VERSION in utils/researchMetrics.ts.
  • Compute and expose memory metrics in utils/researchMetrics.ts using preRevealSurveyOriginal ?? preRevealSurvey as the original reference: rememberedResponsibilityError, rememberedConstraintSuspicionError, rememberedPrimaryAttributionMatchesOriginal, memoryConfidence, and memoryDistortionMagnitude.
  • Surface new metrics in participant results (components/ResultsTable.tsx), add CSV export columns in lib/adminSubmissions.ts, and update documentation and sample export (README.md, docs/RESEARCH_NOTES.md, sample-data/complete-research-export.example.json).
  • Preserve backwards compatibility for saved sessions by merging initialAnswers with any existing postRevealSurvey when loading the form.

Testing

  • Ran npm run typecheck (tsc --noEmit) and it completed without type errors.
  • Ran npm run lint (next lint) which passed; existing React hook dependency warnings remained but did not block the change.
  • Ran npm run build (next build) and the app compiled and produced the static/dynamic pages successfully.
  • Ran npm run validate:sample to validate the sample research export against the updated schema and it succeeded.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant