From e02a99f4c75790232aac9494d7c4580bc04d5bca Mon Sep 17 00:00:00 2001 From: Hannah Tsukamoto Date: Thu, 30 Jul 2026 16:25:42 -0400 Subject: [PATCH 1/2] feat(cwg): add run config, Prolific identifiers, and completion-code exits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4. Addresses the core of #7 (the redirect helper and all four codes); the screening-specific plumbing stays open there pending #13. Three changes to reference-game-cwg.html, C&WG only — Hawkins is deliberately left alone until the first run has happened and its assumptions are tested. CONFIG block. Collects every value that has to agree with the Prolific study configuration into one reviewable place: the four completion codes, the round timeout, the DataPipe experiment ID, and the submission URL. Several of these cannot be changed once a study is published, so having them scattered through the file is a real hazard rather than a tidiness problem. Identifiers (#4). PROLIFIC_PID / STUDY_ID / SESSION_ID are captured from the URL and attached to every row via addProperties, along with dyad_id, the local participant id, run provenance, and viewport. Prolific requires identifiers be recorded so paired responses can be linked, and without them collected data cannot be reconciled against submissions to approve payment. dyad_id reads the same ?mp_session= as SEED and carries a comment noting that whatever fixes SEED for Firebase (#9) must fix dyad_id in the same change. Submission (#7). Adds redirectToProlific / submissionBlockHTML / wireSubmissionButton as standalone helpers rather than inline in the final screen, because #5 and #6 both need to exit from paths that never reach doneTrial. The completion code is always rendered as selectable text next to the button so a blocked redirect does not strand a participant without a code. A startup check warns on unset codes and on a missing DataPipe ID. Also corrects the header comment claiming the Firebase swap needs no other change to the file. That correction is also in #2; the overlap resolves trivially, but leaving a verified-false claim in a file being extended this much was the worse option. Co-Authored-By: Claude Opus 5 --- reference-game-cwg.html | 162 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 157 insertions(+), 5 deletions(-) diff --git a/reference-game-cwg.html b/reference-game-cwg.html index ef884c5..fe4ede6 100644 --- a/reference-game-cwg.html +++ b/reference-game-cwg.html @@ -8,9 +8,12 @@ - +