Skip to content

Data: no save target exists — wire up DataPipe with incremental saves #3

Description

@htsukamoto5

Phase 1 — unblocked. Highest value per line of code in the audit; without it every other fix produces nothing analyzable.

initJsPsych() is currently called with no options at all — no on_finish, no on_data_update. The only data egress in either experiment is a localSave button on the final screen that the participant must voluntarily click. There is no DataPipe, no OSF, no endpoint, no fetch anywhere in the repo.

Consequences:

  • Every participant who does not reach the final screen contributes zero data — all dropouts, all stranded survivors, all lobby timeouts, all spectators. Those are precisely the sessions needed to characterize attrition.
  • Even completers only contribute if they click a button labelled "Download data (JSON)" on a screen that already says "You may close this tab."
  • We would be paying for data we do not receive.

Work

  • Wire up jsPsych DataPipe (pipe.jspsych.org to OSF), roughly five lines.
  • Save incrementally, not only on on_finish. With pair-based attrition, on_finish-only saving loses exactly the sessions that matter. Save per-round, or at minimum on the abort path.
  • Confirm a partially-saved session is still parseable on the analysis side.

See READINESS.md section 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-1Unblocked: can be done nowprolific-readinessRequired for a live paid Prolific run

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions