Spaces:
Running
Running
Commit History
-
Flag the staff sessions, and stop asserting a design that moved
A member of the research team ran the study on themselves twice, and both runs look like clean participant data. inclusion.audit gains an ok_participant criterion that flags them. Who the pseudonym belongs to stays in the Box admin folder; this repository is public, so it holds the hash and nothing else. The session is flagged, never dropped, so the audit still accounts for every file on disk. test_the_watch_design_columns_survive asserted the rest/work credit gap was exactly 1. The task raised it to 5 on 2026-10-21, because at 1 every participant worked every night, and the test went on asserting the design it was written against until the first live watch session failed it. It now asserts the two properties that identify the self-weight: the gap holds still within a session, and it stays under the smallest loss averted or that level is dominated and its cell goes quiet. night_h_spread asks whether widening the loss levels rescues the night block for the population that actually tur…700dc4c
-
Load the questionnaires, not just the trials
Everything a participant typed or slid rather than played was being collected and never read. The TriPM, the demographics, the belief and liking checks and every per-block battery sat in the session file with nothing to get them out. Three things a generic flattening gets wrong, and this does not. The TriPM is asked in a per-participant order, so it is scored through content/tripm_key.csv by item number. Reverse keys are applied, each scale reports a sum, a mean and how many items it is based on, and a participant who skipped the lot scores None rather than zero, which would have put them at the bottom of the distribution. Belief and liking are asked once per person, numbered in the order the participant met them, and that order is a coin flip. believed_p1 is the treasure hunt's partner for half the sample and the daytime harvest's for the other half, so a column of believed_p1 across participants is two different questions stacked. Each answer now also lands in believed_hunt, belie…76c60a1
-
A debug run on a SONA link was in the participant pool
ab060ed0ac83ea86_2026-10-18_18h25.05 is the first session in the repository with a metadata JSON: the short test link played end to end on the deployed Space, reaching Night_PostTask_Strategy with its whole tail intact. That is the live verification the push fix was missing. It also showed the hole. TEST_ra3 is pseudonymised like any survey code, so it lands in pilot/ab060ed0ac83ea86/ and the ^(SMOKE|TEST|DEV|DEMO) folder test cannot see it. Every dev link sets dev_mode and the final push writes it into the metadata, so session_files() reads that and drops the session; include_dev=True brings them back, which is how notebook 04 checks a test run. A dev session whose last push failed is still invisible, which was every session until 17 October. The sessions frame now carries task_first, task_position, task_order_source, study, theme, block_order and dev_mode, off the metadata. The task order is the only between-participant randomisation in this study and it was nowhere in the analysis…ec4b9a7 -
Read the night watch, and a notebook that checks a live session end to end
NightWatch was in neither block list, so a session that played 96 trials loaded 48 and the whole block went nowhere without an error. Its trials also carry night=None, like a day trial, so "not a night trial" was counting them as day trials: added day_mask(), used by the summary and by to_pyem, and the block's own design columns (both options pay, and what moves is the partner's loss). Two more things the refreshed mirror broke: audit() raised on a session with no trials at all, which is exactly the session it exists to describe, and to_pyem indexed with an object-dtype mask after a concat. The model tests now select the pilot design explicitly rather than assuming the mirror holds nothing else. 04_sona_check.ipynb is the new one: what reached the repository, whether the day grid and the night watch ran as specified, whether the manipulations move behaviour, and whether a current-design session reaches a fitted parameter. Two sessions, so it demonstrates the path and claims nothing a…670ca7d
-
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 -
Analysis pipeline: the model family
pe_analysis/models.py: the eight published fit/sim pairs (self/other k crossed with self/other beta, parabolic and linear effort cost), fitted per session with pyEM, plus integrated BIC for the comparison. It is a separate implementation from analysis/effort_models.py rather than an import. That one builds its own balanced design and takes the rest credit from a module constant, which is right for simulation and wrong here: the rest credit was 1 in every pilot session and is 2 now, and night 1 has its own again, so every real trial has to carry its own. Sharing the module would let a change made for one silently alter the other. Two models beyond the published eight, kept out of FAMILY so the headline comparison stays the published one: the day task crosses reward against effort fully, so it can separate "values their partner's credits less" from "finds effort costlier for their partner" -- but only with reward sensitivity in the model. Without it, every self/other difference is attr…dffba6e -
Analysis pipeline: the data layer
pe_analysis/{gitlab,loader,inclusion}.py plus tests, run against the real pilot mirror rather than fixtures. It reproduces the pool the plan predicted: ten sessions, 48 trials each, none missed, with 0004's first session and PILOT03 flagged as always-work responders -- the likelihood is flat in k for those, so they are excluded visibly rather than dropped upstream. Three things it is built around: The session is the unit, never the pid. Pilot links were handed out as "pick one of these at random", so 0004 is three sessions and may be three people. Trial counting is max(block record, safety-net records). PILOT03's second block record never wrote and its 24 trials survive only as Harvest2_trial0..23; counting block records alone truncates that session to 24 in silence. Nothing assumes a design. Rewards, effort fractions and the rest credit are read off each trial, because all three have changed once: every pilot session ran 2/6/10, 0.50-0.95 and a rest credit of 1, and the current bu…d367697