Removes all 353 em dashes across the task, the quiz prefixes becoming
"Correct:" and "Not quite:". Also untracks the study documents a git add -A
swept into main, and adds the script that built this commit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deploy: counterbalance the side within a block, fix the feedback capital
Each block now puts the pair's first letter on the left for exactly half its
trials and its second for the other half, shuffled, matching the 20-trial
PsychoPy scheme. Applies to the dyad arm and the SONA arm. The quiz feedback
sentence is recapitalised after its prefix is stripped.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deploy: record the trial landmarks, the quiz feedback and the clicks
stim_onset/outcome_onset plus the two interval columns, from stamps nicewebrl
was already writing; the quiz feedback text; partner_relation; and the screen
recorder fix that was losing every click count and the timing file's rt.
Also deals the partner code and avatar from the pool instead of per session.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deploy: stop a parent and child meeting the same stranger
partner_id_for and partner_avatar_for now seed off rando, so a parent playing
under their first child's pid no longer gets that child's partner. The match
reveal records the partner it showed and export_csv prefers it, keeping the
three sessions already collected readable. Also carries the per-child bearid
fix to the BEAR sheet tooling.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Deploy: BEAR dyad mode, the design pool, screen timing, and the ID-code removal
Brings the Space up to main. What changes for a running session:
- ?rando=<n> picks the design from the predetermined pool (randos.py), so a
dyad can share one pid and still get two different tasks.
- dyad_mode sessions write to bear/<pid>/ and bear_randomization_log.csv,
leaving data/ and randomization_log.csv to the SONA sample.
- every screen is timed into a per-participant CSV with PsychoPy's column
names, including the quiz answer and whether it was right.
- savequeue_fix.py no longer carries two real participant ID codes, which
this repository has been serving publicly.
The two .docx files on main are left out; HF rejects loose binaries.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Serve this task's partner faces, and stop dropping the final push
Four fixes that were written but never committed, so none of them reached
the Space.
The end-of-study belief and liking screen names every partner from both
tasks and shows each one's picture. Neither app can draw the other's
people, so each serves pictures of its own at /static/partner_face_<idx>.png
and the screen links to whichever app owns that avatar. This task served
nothing there, so its explorers showed a blank indent on both tasks'
copies of the screen. The route renders the same drawing the matching
reveal uses, and the handoff row now carries the avatar index so the other
app can ask for the right face. A missing index reads as None, never as
avatar 0.
The screen also named the game as "that game" for every row, which leaves
the participant guessing which of three or four people belonged to which
game, and asked the night-harvest partner whether they would "receive the
credits you earned for them" when that partner could only ever lose
credits. Both now match the wording t…
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>
Illustrated instruction slides, randomized partner avatar, and quiz polish
- Split the cover story into 4 screens (intro, explorer picker, twist +
matching reveal, money/goal) and each how-to-play bullet into its own
screen, each with a purpose-built illustration (sprites.py).
- Add a randomized-per-participant partner avatar (4 muted looks), shown
at the matching reveal with a transparent background and used
consistently everywhere the partner appears in-game; logged in the
CSV/GitLab randomization log.
- Practice: keep the meadow visible behind the "press space to continue"
banner after the rating screen, instead of a full-screen takeover.
- Quiz: remove "you" bolding except for you-vs-partner contrasts, restyle
with playful colors/emoji, and add an illustration per question; add a
houses visual to the "You're all set!" screen.
- Wording: "relatively" -> "pretty reliable" in practice narration.
- Add a dev shortcut (?dev=1&start=questionnaire) to jump straight to the
post-game questionnaire for testing.
Co-Authored-By: Claude Sonnet 5 <no…
Rewrite practice as a fixed 6-step guided tutorial (enforced choices)
Replaces the free-choice practice + rotating tips with a scripted tutorial that teaches
every social outcome type, in a fixed order (no per-participant randomisation):
1 mutual benefit, 2 consistency (same chest again), 3 mutual loss, 4 instrumental harm,
5 altruism, 6 zero.
- Four named, distinctly-textured practice chests (brown woven, blue striped, green dotted,
dark stone) via sprites.PRACTICE_STIM_DESIGN.
- Each step DIRECTS the player to open one chest and ENFORCES it (only that chest opens;
the named chest glows and alternates sides). New env fields trial_pairs + directed
generalise per-trial pairs and the directed-choice lock (main task: free choice).
- Outcome narration is now one coherent per-step sentence (merging who-earned + teaching),
shown red+blinking; consistent coin wording throughout.
- orders.PRACTICE_PLAN + experiment_structure.PRACTICE_SCRIPT (kept in sync via assert).
- smoke_test updated to press the directed side in practice.
Co-Authored-By: Claud…
Decouple the experimental block order from house location, like the original task:
- the Nth house ENTERED gets the Nth pair in a fixed per-ID block-order sequence (env now
tracks current_block/blocks_entered; pairs/outcomes/side/attention/float indexed by block)
- house appearance + position stay physical; positions come from 1 of 5 fixed layouts
(number % 5, counterbalanced)
- new per-block float_order (6 you-first / 6 partner-first) for the upcoming coin animation
- DATA: blockIndex is now the experienced block (0..11); added physical_place/physical_house/
float_order per trial + house_by_block/place_by_block in summary; rando log gains
layout_id/block_order/float_order/attention_blocks. CODEBOOK updated.
- verified: orders self-tests, smoke (12x20 all rated), demo playthrough + export, clean boot
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- display name 'Treasure Hunt for Two' -> 'TreasureHuntForTwo' everywhere it's shown
- index(): if ?pid=X differs from the stored pid (same browser reused for a new kid), wipe
per-user storage (new seed -> new data file) and clear saved stage state, so two
participants on one computer never get merged into one file
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>
Add anonymous 'matched partner' ID to the cover story (deterministic)
- orders.partner_id_for(pid): stable, anonymous community-database code (cover story only)
- shown on the cover page ('matched with Partner #4421') and again on the finish screen
- recorded in the rando log + CSV summary (partner_id) for transparency
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rename: Duo Treasure Hunt -> Treasure Hunt for Two
- rename block_order -> pair_by_place (it's the pair per place slot, NOT visit order)
- house_assignment -> house_by_place using house NAMES (matches the data CSV)
- add A_stim_desc..D_stim_desc (readable chest look) + group label + pos_by_place
- add houses_done / completed / last_saved (append_to_log now upserts in place, so the
log row reflects the latest progress; skips the commit when nothing changed)
- migrate_rando_log.py: one-time rewrite of the existing log into the new schema (done)
- CODEBOOK updated to document the new log columns
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>
Chests: 26 genuinely distinct stimuli (colour x material[wood/stone/metal/woven/marble/dots/stripes] x lid-shape[flat/arched/peaked]); practice uses dedicated boxes 24/25. Quiz: re-ask missed at end + un-bold statements. Kids idioms (worth opening / you're done here)
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
orders.py: replace fixed-colour Latin square with random assignment of 4 of 24 box stimuli per participant (like OG fractals); all randomised-reproducible + logged