Spaces:
Running
Running
Commit History
-
Take the participant ID codes back out of a public repository
A SONA code is what de-anonymises a session. pid is HMAC(key, "research|<code>"), so the code is the one piece that maps a public pseudonym back to a person on the sign-up roster, and this repository is served publicly as a Space. Codes were sitting in test fixtures and in the incident comments that explain why three patches exist. Replaced with 99xxx stand-ins, which is outside any SONA range, and the prose now says "a participant" and points at the Box admin folder for who. test_no_participant_codes reads ~/bin/bear_sona/codes.json, which is in no repository, and fails if any of its codes appears in a tracked file. A second test checks the other way round: every five-digit code a fixture hands the signing or URL helpers has to be one no participant holds. Both skip where the roster is not on the machine, so a checkout elsewhere still runs green. This cleans the working tree. The codes are still in the git history and on the Spaces' own history, which is a separate decision. Co-Au…06c66ae
-
Stop a quiet canvas from holding the warm-up open
SONA 60403 crossed the handoff into this task on 26 October at 14:56Z, the first participant ever to get past the redirect loop, reached the warm-up and stayed on it for two hours. Stage 2 of 38, no traceback, pings still arriving, no trial ever reached. _run_js awaits a future that only the canvas resolves. Nothing else ends that await, so a canvas that stops answering takes the session with it, and a reload starts the same wait over. The warm-up now passes a bound of CALIB_MS plus 20s and falls back to MAX_BOXES_FALLBACK, which already existed for a warm-up that cannot run. The returned record carries calib_timed_out so a ceiling that was never measured is visible in the data. A trial still waits unbounded: the canvas drives its own clock there and the participant is watching it. test_calibration_timeout.py pins all three paths and keeps a copy of the unbounded wait to show it still hangs. 519 tests pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>17fdf7a