Squashed deploy snapshot of main (items 23-30 in PROJECT_LOG.md), built
without the tracked reviewer-instructions .docx: Hugging Face's git
endpoint rejects pushes containing binary files (Git LFS/Xet only), and
this history carried two .docx blobs. The doc isn't needed by the running
app -- it stays tracked on `main` and backed up via `origin`, just left
out of what's pushed here. See PROJECT_LOG.md on `main` for the full,
unsquashed commit history and rationale.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add dev/pilot mode, data provenance (git commit), and Prolific capture
- ?dev=1&start=practice|quiz|main skips the front matter; ?trials=N shrinks trials/house;
dev sessions get a red DEV MODE banner and dev_mode=1 in the data (flagged by quality_flags)
- every session records git_commit (exact code version) in the data provenance
- capture ?PROLIFIC_PID/STUDY_ID/SESSION_ID; optional PROLIFIC_COMPLETION_URL -> return button
- export + CODEBOOK carry git_commit/dev_mode/prolific fields; README documents the shortcuts
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Attention check (21st trial in 2 random houses) + post-hoc quality flags
- new M_ATTENTION env mode: after the 20 trials, 2 deterministically-chosen houses show
'Press the LEFT arrow key to show you're paying attention'; any key advances (no trap),
the key + RT are recorded
- orders: 2 random attention houses per pid (none in practice)
- export: 'attention' rows (block, key, correct, rt) + summary attention_passed/total
- quality_flags.py: flags incomplete / fast-RT / side-bias / failed-attention participants
(surfaces for review, does not auto-exclude)
- CODEBOOK documents the attention rows + summary fields
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rename: Duo Treasure Hunt -> Treasure Hunt for Two
- log_tech(): game version, nicewebrl version, framerate, browser/OS, screen,
viewport, language, timezone, CPU cores (captured once via JS at start)
- global click listener: logs every button/mouse click (label, tag, x/y, time)
- intro slides log enter/exit with dwell_ms
- export: slide rows, click rows, and tech fields merged into the summary row
(browser/os parsed from user-agent; raw UA kept)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- floating 'Take a break' button shown only during the main task; opening it pauses
the game (keys ignored) and logs break start/end as event records
- export: break rows (break_start/end/ms) + summary n_breaks/total_break_ms
- export: better_self_option/chose_better_self + better_other_option/chose_better_other
(which box was better by reward profile, and whether they picked it)
- export: absolute choice_time/outcome_time per trial (for aligning with breaks)
- log_event() helper appends custom event records to the participant data file
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Per-participant practice randomisation + quiz order column
- practice chest sides & outcome order now seeded per PID (structure stays fixed)
- quiz rows record quiz_position (the randomised order each question was shown)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Data CSV: richer columns + distinct-colour boxes + practice tip placement
- outcomes as +1/0/-1 (self_outcome/other_outcome) with raw +100/0/-100 kept
in shown_self_outcome/shown_other_outcome
- per-option A_self..D_other columns (the two options' outcomes each trial)
- verbal chest descriptions (chosen/left/right_stim_desc) via sprites.stim_describe
- quiz rows now log the question text + TRUE/FALSE answer strings + attempt
- summary row: started_at/ended_at/duration_min, box & house assignment derived
from actual logged data (robust to order-code changes), positions, visited order
- choice_rt_ms (decision time) vs outcome_view_ms (outcome viewing) made explicit
- practice blocks labelled 'practice' (no longer collide with main block 0)
- orders: each participant's 4 boxes now guaranteed distinct colours
- practice teaching tip moved below the table (was overlapping the window)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Data layer: single combined CSV (trial+quiz+rating+summary, with choice/outcome RTs), rando-log append to GitLab per finisher, next_id helper, incremental (periodic) save; align gid naming