Spaces:
Running
Running
Commit History
-
The last push of every session was refused twice and landed nothing
A commit is atomic, and push_to_gitlab sent one "create" list, then on refusal the same list as "update". By the end of a session the msgpack and the CSV are already in the repository, pushed during the blocks; the metadata JSON, written once at the end, is not. So the create list was refused for the two that existed and the update list for the one that did not. That final push is the only one that carries anything after the last trial, because nothing after a block triggers another. Across 37 sessions there is not one metadata file, and every stored session file is frozen at whatever the last periodic push captured: the 2026-10-14 RA lost their whole night battery, and 2026-10-15 lost everything after a Back press in the same one. The verb is now chosen per file, and a refused commit falls back to one commit per file so a single unwritable path cannot discard a participant's data with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>cb6f294
-
The arrival roster had the write race I had just warned the other task about
append_to_log is a read-modify-write on one CSV: read it, append a row, commit the whole file back. Unguarded, two people arriving in the same moment both read N rows and both write N+1, and the second silently erases the first. Arrivals are precisely when that happens -- a class gets the link at once -- and this log exists to catch the people who drop out before any other file is written. A lost row is a participant who leaves no trace at all, which is the failure it was built for: six days of August 2026 pilot data vanished that way, people hitting a cold Space and giving up. Each attempt now hands back the commit id it read, which GitLab refuses if anyone has written since, and re-reads on conflict, up to five times. Reading moved from the /raw endpoint to the file endpoint, which is what carries last_commit_id. Failure is also audible now. It returned a bare False that the caller discards -- correctly, since logging an arrival must not delay the first screen -- so a roster write…3b8b2cb -
Point the GitLab default where the data is, and make a failed push audible
Two halves of the same hazard. The default was gitlab.pavlovia.org in four places, inherited from the task this was forked from, and nothing here is on Pavlovia. Visibility was the right first move but it only helps someone who looks; with GITLAB_URL unset the app would still authenticate a gitlab.com token against Pavlovia and save nothing. Both Spaces have the secret set today, so this changes no current behaviour -- it removes the landmine for the next Space, duplicate or migration, where a lost secret would otherwise mean silent data loss rather than a working default. And the failure was inaudible. push_to_gitlab only printed under verbose; push_current_data calls it without verbose and ignores the return value, by design, because a save hiccup must never interrupt a participant. So a silent False was the only trace that a session's data had not been saved. Failures now print and log unconditionally, with the host, project, branch and status, which is what a Space's logs capture…d5303a6
-
Stop the test suite writing to the participant-data repo; log arrivals
test_finish_reorder drives the app end to end with ?pid=SMOKE_final_screen&dev=1, which runs the real finish path: export -> push_to_gitlab -> a commit on the production dataset. Every full pytest run was adding SMOKE_* sessions and randomization_log rows, indistinguishable at a glance from participant data. conftest now clears GITLAB_TOKEN/PROJECT for the test session, so the code under test still runs its real path and no-ops at the network boundary. Also wires up gitlab_save.append_to_log(), which was fully implemented and never called from anywhere. It writes one roster row per session as soon as the pid is known -- before any stage completes -- so a participant who drops out early still leaves a trace. Six days of pilot data went missing in August with no record that anyone had arrived at all. Keyed on the browser session rather than the pid: pilot links are handed out as "pick one at random", so several participants share a pid and keying on it would have logged only the first …a534abf
-
Timestamped data files, matching buffer, decision redesign, rest cleanup
- Data: every saved file now named <pid>_<date>_<time>... (one set per session; reruns never overwrite). Added name_map to gitlab push. - How to play reworked: fake "matching" buffer (illusion) -> reveal partner -> How to play 1 -> 2, all with Back/Next (fixes missing back on slide 1). Dropped "secret id". New 1/2 + 2/2 copy per request. - Warm-up: removed the "...just for you" tail line. - Decision screen redesigned: corn-world backdrop (sky/sun/cornfield), prominent centred "THIS ROUND, YOU EARN FOR YOU/YOUR PARTNER" callout, and the beneficiary's OWN avatar stands by the field (no always-on partner figure). - Rest: removed cut-off banner (now just "Rest"); replaced per-object hover labels with one general sky instruction; horizon corn now looks like corn. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>e31db7d
-
Scaffold task_pe-cu-nicewebrl: fork SL-task infra for prosocial effort task
a05d415