Both found in the first BEAR pilot session.
- screens.watch wrote nothing, because its `from web_app import log_event`
built a second copy of a module that runs as __main__ in this container,
and a bare `except: pass` hid it. web_app registers the logger by name now,
and a screen that cannot be written is logged as a warning.
- bear_randomization_log.csv upserted on pid, which a dyad shares, so the
parent replaced the child. It keys on (pid, role) now, and houses_done
never goes down, so a reopened tab cannot erase a finished run.
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…
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>
Fix GITLAB_URL's wrong-host default and log GitLab push failures unconditionally
- 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>
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