Spaces:
Running
Running
Commit History
-
One consent form, and a test that keeps it that way
"The purpose of this study to better understand" was missing its verb. The other task's copy had it right, which is how it was found. In the combined study the SECOND task skips consent on a genuine handoff, so a participant reads exactly one form and which one depends on the coin flip that set their task order. The two copies are maintained by hand in two repositories and had drifted in two places. They are byte-identical now, and test_both_tasks_serve_the_same_consent_form prints the diff if they ever separate again. The second difference went the other way: this copy's "at any time. It will not be held against you." is an RA's correction of a run-on, pinned by test_ra_feedback, so the other task adopted this wording rather than the reverse. Three more checks on the served form while the fixture was there: the {TASK_ORDER} placeholder is still in it, Venmo is still out of it, and no bracketed placeholder or researcher note survives in it. Co-Authored-By: Claude Opus 5 <noreply@an…9f6b20e
-
A period, not a semicolon
The consent fix for the RA's run-on introduced one, and the October log section had four more. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>64b04ea -
The RA playthrough, item by item
Two consent typos, a themed version of the 10-second rule, and three things about the task itself. The arrow prompt was 13px. An RA read it, pressed an arrow expecting to move a cursor, and took the round starting as the task skipping past the selection step. It is 17px now, in a pill measured from the text, and it says the press is the choice; the work-or-rest slide and the screen before the first card say the same thing in words. The harvest and the empty-soil click sounded like they played together because they nearly did: clearing a field is a burst of SPACE, and the press after a successful one lands on the soil it just cleared. The click is quiet for 220 ms after a stalk comes in. Submit and Back stayed on screen beside Continue once a quiz answer was in, greyed out but still there. They take turns in one row now. The last item was a blank strategy answer "sending me back to the beginning of the quiz". The data half is the push bug, fixed in cb6f294: that whole night battery …280712f
-
The consent form names the order it will actually run
Three corrections to both forms. The order was stated as the treasure hunt first, which the combined study randomises, so half the sample read an order they were not going to get. The two tasks are described without an order now, and one sentence states the order this session already resolved. A single-task run says it is decided at random, so no form can reach a participant with an unfilled slot in it. Venmo was never set up. Only an Amazon gift card and PayPal are, in both forms and the prereg. The payment ask is a name, an email address and the reference code from the last screen. The form listed the first two, which read as the whole of it, and said nothing about the code a participant is shown and then asked for. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>64c8bdc
-
Show the combined bonus and a signed payment code when this task finishes second
Payment is arranged outside both apps (settled 2026-10-03). An RA emails everyone granted credit through SONA and asks for a name, a payment preference and the reference code shown on the participant's last screen. Nothing is collected in the app and nothing new is stored. Which task a participant finishes second alternates with the task order, so this screen has to exist here too, not only in task_sl-cu-nicewebrl. An earlier reading of the entry redirect had it as always theirs; the redirect only means everyone ENTERS there. order_link gains signed_reference_code/verify_reference_code (the combined total baked in as integer cents and HMAC-signed with SONA_PID_HASH_KEY, so an RA reads the amount off a reported code with no lookup and editing the digits breaks the signature), verify_bonus, and own_bonus_usd= on other_task_url to carry this task's own figure to whichever task runs second. The pseudonym inside the code is already the GitLab data-folder name, so a session stays findable …5a05bb2
-
Consent: say that a name and an email are collected for payment
The 22 September protocol revision added "we will be collecting contact information (name and email addresses) for these payment purposes. We will store names and email addresses in a password-protected contact/payment spreadsheet that is separate from other data in the study", and deleted "For the SONA pilot study, no identifiable information will be collected from subjects." The consent form was still the 19 September version and promised no name would be collected, so the two approved documents contradicted each other. This brings the served form into line with the protocol, matching SONA Pilot Consent 09-28-2026.docx, which is going to the IRB as a modification. The SONA ID sentence is untouched and stays true, because the stored pid is a one-way pseudonym and the raw code is never persisted. Tests pin both. The same two edits are applied to task_sl-cu-nicewebrl's copy, which is byte-identical to this one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>079532b
-
Redirect a participant who landed on the wrong task, and fix the consent risks
Two things, both found by the other task's session. SONA realistically advertises ONE link, so about half of participants open whichever task they are not meant to see first. This app took their consent and ran its own game, so they would have done both tasks in the wrong order, or this one twice once the other app handed them back. A session that has not started, is not a signed handoff and belongs to the other task first is now sent there instead. Guarded on not-started, so nobody is ever bounced out of a session in progress, and off in dev mode. Gating that on ?study=sona alone was wrong and the suite caught it: this app defaults `study` to "sona" deliberately, so the redirect and the general-measures deferral both fired for ordinary lab sessions the moment OTHER_TASK_BASE_URL was configured, bouncing them out of the task. _in_combined_study() requires the SONA completion URL as well -- every real SONA link carries one, because that is how credit is granted, and a lab session neve…2a05a80 -
Serve the current consent form, and flag sessions rather than drop them
The served consent was the 25 August text. The 19 September revision adds one sentence -- that the bonus is paid via Venmo gift card, Amazon gift card or PayPal -- and participants were agreeing to a form that did not say how they would be paid. Added to both the SONA and the dyad copies. Inclusion now works the way Qualtrics does: every session stays in the table with `finished` and `progress`, a boolean per criterion and a readable `flags` string, and nothing is removed. A notebook drops rows on purpose with `apply()`, which hands back both halves, so the kept count cannot be reported without the dropped one. Someone who stopped after the day task may still be usable for the day task. `progress` needs the stage list, which the analysis cannot import -- it runs in the conda env that has pyEM and not nicegui. So it carries a copy, and test_stage_order.py in the web-app suite fails if that copy ever drifts from build_experiment(), rather than letting the progress column go quietly wro…590551b
-
Rework the post-task questionnaires and both earnings screens
Effort ratings now cover all four levels rather than only the easiest and hardest. Two anchors were enough when the question was whether effort mattered at all; with the levels recalibrated, and the gap between calibration and the main task still open, whether effort actually felt different across the range is a manipulation check worth having. The TriPM runs on one page with the items in bold and every answer required. Six pages with a counter made one instrument read as six questionnaires and invited people to watch the counter instead of the statements. Demographics now come last, so the session does not end with a 58-item block. The hypothetical-partner battery is skipped outside dyad mode. It asks the participant to imagine the other family member playing, and in a sample with no pairing there is nobody to imagine. Reworded into a question about a stranger they never met it would measure something else. Gender gains a self-describe option with a free-text field, and the ethnici…741a469 -
Consent buttons, earnings on the final screen, and a warning that sides swap
Consent now ends with "I consent to take part in this study." and Yes / No buttons rather than agree / do not agree, and the phrases a participant should not skim past are marked in bold red: that a computer is needed, the 2 SONA credits, and both bonus figures. The partner screen bolds who the partner is rather than the pronoun. The helper that supplies "your age" was emphasising itself, which nested inside the new bold and rendered its markers literally. REST no longer shouts YOU, since the contrast on that screen is work against rest, not self against partner. Earnings appear on the final screen. They were shown only on the bridge between the task and the questionnaires, so a participant reaching the end by any other route never saw them, and nobody saw them again after twenty minutes of questionnaires. This reverses an earlier decision that they should not repeat there, and the test that encoded it is updated rather than deleted. The conversion now lives in one function; it was w…963e8ea
-
Consent headings, warm-up Back, and two stale values in the practice copy
Consent headings render at body size in bold italic. At heading size the form read as a web page rather than a document, and the jump in size drew the eye past the text that matters. Back on the warm-up leaves the stage. The button was gated on being past the first slide, and the intro is one slide now, so it never appeared; the index arithmetic would also have held it on the same screen rather than moving. Two values in the practice feedback had drifted from the task. It told participants resting "earns only 1 credit" when rest pays 2, and the timeout tip described the variable per-stalk requirement that was removed. The rest value now reads from the trial rather than the sentence, and the JS default that backs it moves 1 to 2, since a stale fallback is how the wrong number reaches a participant in the first place. The guided practice prompt says what it is for and pulses for the first two seconds of the decision, then holds steady so it does not flicker under someone still reading…7a8d551
-
Split the consent form by dyad mode, and widen the income bands
The IRB form consents a parent about themselves and their child. The SONA sample has no child, and telling an undergraduate that "whether or not you and your child take part is up to you" is simply wrong, so there are now two forms: consent.md without the family wording and consent_dyad.md with it, selected by dyad_mode. The mandated-reporter clause mentions child abuse and stays in both; it is a legal notice, not dyadic framing. A missing dyad form does NOT fall back to the neutral one. Substituting would consent a parent on a document that never mentions their child, which is worse than showing no form at all and stopping. Income moves to 10k bands from $5,000, keeping the wide $90,000-$179,999 and over-$180,000 categories. One band spans $75,000-$89,999 so the 10k run meets $90,000 cleanly; adjust that line if a different top structure is wanted.bae2aef -
Ship the real consent form, TriPM items and demographics
consent.md is now the Georgetown BEAR IRB form, converted from the docx rather than retyped. The consent.md that was sitting in the repo root described a different study -- a treasure hunt with explorers and chests, not the harvest task -- and still carried [X] placeholders, so it has been removed rather than left where someone might use it. TriPM is the 58 items in administration order, with tripm_key.csv alongside carrying scale and reverse-keying, because items on their own cannot be scored. Demographics needed two question types the format did not have. Race and ethnicity is select-all-that-apply, since forcing one answer loses anyone who is more than one thing; it exports as the joined selection plus one flag per option so the CSV can be analysed without re-parsing a string. Age, occupation and the 22 income bands are dropdowns -- a radio grid of 22 income bands is a wall, and a select is the same question without it. Every demographic key has a template column, with a test tha…759ad42 -
Add consent, demographics and TriPM stages, driven by content/
The wording lives in files rather than string literals so it can be edited without touching Python, and so an IRB-approved consent form is stored verbatim instead of being retyped. content/README.md documents the three formats. Nothing here ships with any instrument; the item files are placeholders. A file that is missing, empty, or still carrying its PLACEHOLDER line reads as "not supplied yet" and its stage is skipped, so a half-filled folder never blocks a pilot run and never shows a participant a placeholder. In particular a missing consent form means the stage does not exist yet, NOT that the participant refused -- the opposite reading would silently end every session at the first screen. Consent runs before anything is collected, right after the id is known. Declining stops the session without recording data. Demographics and the TriPM go last. Everything before them asks about the task just completed, and the belief check is worth asking while it is fresh; the TriPM is the lo…4f51627