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: 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>
The TriPM and demographics pages centred the instruction, the statements
and the Continue button. A statement therefore sat over the middle of its
own scale, and a short statement could wrap onto the line above its own
options, so the list read as a different layout for every statement
length. Both pages now put the whole list in one left-aligned column:
statement, its scale on the next line pulled flush by the radio's own
10px of inner padding, then the next statement.
Same change as task_pe-cu-nicewebrl's copy of these two pages, which is
the one a participant sees when this task runs first.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Frame this task's own partner too, not just the one it serves out
The belief and liking screen shows the farmer and the explorer on one
page. The picture served to the other app went through the frame; the one
rendered locally for this app's own screen did not, so on this side the
farmer filled its slot and the explorer sat at about a third of it.
The framing moved to sprites.draw_partner_avatar_framed and all three
callers use it: the /static/partner_face route, the deferred end-of-study
screen, and the standalone session's own row. The matching reveal keeps
the raw render, since it shows this task's partner alone with nothing
beside it to be mismatched against.
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…
Restructure belief/liking into one per-partner check, plus 3 smaller fixes
Belief and liking now run once, covering every partner across both
tasks (not just this task's own), before TriPM/demographics, on
whichever task finishes second. Adds a kind field to the handoff's
partner-row format so the belief question's wording (receive vs. lose)
matches each partner's actual mechanic; backward compatible with the
3-field format.
Also: fixed a real bug where the experimenter ID-entry screen was
showing on every non-dyad session (role was never set outside dyad
mode, but was required to skip it); added partner numbering to the
match-reveal screen; quiz feedback now states the correct answer
outright instead of only explaining it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Apply the user's pilot review list: ordering, headings, and partner totals
Drops the "a couple more things" interstitial, swaps TriPM/demographics
order, shuffles the future-outlook items, moves the belief/suspicion
check to the very end (after TriPM/demographics, not before), reworks
post-task page headings into TriPM's instruction-line register, carries
a signed partner-bonus total across the handoff so whichever task runs
second can report every partner across both tasks, runs the front matter
on a genuine handoff even under ?dev=1, and discloses a new character/
partner when this task runs second. Mirrors several equivalent fixes
already made and shared by task_pe-cu-nicewebrl.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Shuffle the TriPM per participant and stop forcing all 58 answers
Mirrors two fixes already made on task_pe-cu-nicewebrl: the TriPM was
shown in fixed file order, unevenly weighting attention cost across its
three scales, and the submit handler blocked Continue entirely while any
item was blank, contradicting consent's "you can skip any question" line.
Also ports back a dialog-persistence fix to _confirm_skip, which their
side found in their copy of a helper that originated here.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Fix three consent-text errors found on task_pe-cu-nicewebrl's served form
Venmo was never set up but the form offered it as a payment option; the
task-order sentence was hardcoded and wrong for half the sample depending
on which task resolves first; the payment-ask wording omitted the
reference code that actually identifies which session to pay. Mirrors the
same three fixes already made and approved on the sibling task.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add SONA payment-collection screen + store, fix raw-code leak in task-order log
Payment: whichever task a participant finishes second now sums both tasks'
self bonus and collects email + Venmo/Amazon Gift Card/PayPal choice, saved
to a separate payment store keyed by its own pseudonym (SONA_PAYMENT_HASH_KEY,
distinct from the research pid's key) so email can never be joined to research
data with only one secret. Nothing here executes a real payment -- disbursement
stays a human-worked queue by design.
Privacy fix: the shared task-order log was keyed on the raw SONA code, which
(combined with SONA_PID_HASH_KEY) could re-identify participants -- found by
task_pe-cu-nicewebrl while checking what the new payment log would sit next to.
first_task() now takes the raw code and the research pseudonym separately: the
raw code still feeds only the (unpersisted) local hash fallback, while the
pseudonym is what actually gets written as the log's row key.
15 new tests in test_payment.py; one new test_health.py test.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Deploy: SONA multi-task study infra phase 1 (Method_and_Decisions doc dropped, binary rejected by HF)
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>
Rename future-outlook questionnaire page title to "Questions about the future"
- Split the merged chest-pattern how-to-play slide back into two separate slides
(HOW_TO_PLAY_IDENTITY, HOW_TO_PLAY_VARIES), each with its own illustration; reword
the color/pattern caution bullet and bold both "color" and "pattern".
- Replace questionnaire's hide-Continue-until-answered gating with a Qualtrics-style
"are you sure you want to continue without answering?" confirmation dialog — Continue
is now always visible/clickable on every slider/text/agreement page.
- Reword "Saving your treasure..." to "Saving your data...".
- Fix show_coins_bridge()'s text to actually drop the experimenter mention (docstring
already claimed this but the markdown still had it); reword the true final screen to
"Completed! Please let your experimenter know you're ready." so only that screen
mentions the experimenter.
- Remove misleading "Last question"/"One more question" headers from the strategy and
belief-check pages.
- Require an actual response on every questionnaire page before Continue appears
(sliders must be touched, free text must be non-blank), matching the existing
belief-check gating.
- Capitalize "your partner (#ID)" to "YOUR PARTNER (#ID)" in the Motivation/Effort
pages, matching the existing "YOURSELF" capitalization.
- Add a new final page with 3 future-outlook items (5-point agreement scale).
Instruction polish, questionnaire back-navigation, and bug fixes
- Reword/rebold cover story and how-to-play screens per feedback: house
added to the chest+coins art, new cover_part1 header, drop "young"
entirely, bold "real money" instead of "your", avatar in how-to-play now
matches the participant's chosen explorer.
- Merge the chest-identity/consistency/variability slides into one combined
slide+visual, drop the separate rating slide, fix the try-counter
highlight centering and the swap arrowheads' angle.
- Quiz: swap emoji, minor wording/bolding fixes, fix an icon mapping.
- Speed up the chest-swap animation.
- Add a fast local-disk CSV refresh per trial, independent of the
GitLab-pushing checkpoints.
- Rebuild the post-game questionnaire as one paged FeedbackStage (matching
the intro flow's pattern) so every screen has a Back button; expand the
hypothetical battery to 3 targets (self/their partner/you) x win/avoid
losing for motivation and effort; dynamic "Your parent"/"Your child"
header and intro line.
- Finish screen: sho…
Instruction rewrite, parent/child role, post-game questionnaire, and bug fixes
- Reword confusing/redundant instructions; split HOW_TO_PLAY into 3 shorter
screens; clarify that chest identity (not side) matters and stays
consistent all game but isn't 100% deterministic per trial.
- Add parent/child role selection at ID entry (URL param, storage, and
CSV/GitLab logging); "young person" wording now only applies to child
participants.
- Add post-game questionnaire (strategy, motivation, effort, task rating,
belief check, hypothetical parent/child battery), ported from the sibling
PE task's pattern.
- Sound: replace the on/off toggle with a No sound/Chimes/Retro picker.
- Add persistent Fullscreen button so participants can re-enter fullscreen
after exiting it.
- Fix: chest lids could stay visually open after an error in the per-step
overlay-clear hook; a held arrow key on house entry could auto-select a
chest (now requires an explicit SPACE press); mashing SPACE during the
outcome screen could wipe the coin feedback before the minimum view time;
…