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>
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>
Name each partner on the final screen instead of a combined total
A total can't say what any one partner walked away with, which is what
the participant actually decided. Ports task_pe-cu-nicewebrl's
encode_partner_rows/partner_list_signature/verify_partner_rows into
order_link.py (verified byte-identical against their actual file) and
carries them as pparts1=/ppsig= alongside the existing pbonus1=/plost1=
total, not instead of it. The final screen now lists one line per
partner, in the order met, falling back to the combined-total sentence
if no itemised list arrives.
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>
Add a dev one-house override and carry dev/trials across the handoff
?houses=N shortens a dev run to the first N houses, matching the existing
?trials=N (per-house). The cross-task handoff was also missing the
dev=/trials= passthrough task_pe-cu-nicewebrl already had, so a shortened
session here handed over to a full-length one there; mirrored their fix.
The entry-order redirect now skips itself under ?dev=1 for the same reason
their equivalent redirect does.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Bake the bonus amount into the signed reference code; fix consent wording
order_link.signed_reference_code()/verify_reference_code(): the participant's
final-screen code is now "<pseudonym>-<cents>-<sig>", HMAC-signing the
pseudonym and the combined bonus total together (SONA_PID_HASH_KEY). An RA
reads the dollar amount straight off a reported code with no lookup, and a
participant editing the digits before reporting it back breaks the
signature. Falls back to the bare pseudonym if the key is unset. 6 new
tests (21 total).
Also fixes a wrong assumption surfaced while building this: the combined
screen does NOT always land on this task -- the entry-redirect logic means
whichever task finishes second shows it, which alternates with task_first.
That only held for the old write-based design (item 44, withdrawn), where
only this task had GitLab write credentials. task_pe-cu-nicewebrl needs the
matching screen for when they end up second.
content/consent.md: "we will ask for your name and an email address at the
end of the study" -> "the research team will conta…
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: fix GitLab encoding bug + align field names with pe-cu (Method_and_Decisions doc dropped, binary rejected by HF)