Spaces:
Running
Running
Commit History
-
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 -
The partner questions stay at the end, and every partner has a face
Settled with the researcher: the belief and liking pages belong after everything else, in the same block as the TriPM and the demographics, and deferred to whichever task finishes second. Asking whether the other player was real tells the participant there is something to doubt, so it waits until nothing is left to contaminate. The interim version from earlier today asked them inside each block's battery, which put the day block's question before the night block was played. What was actually wrong is that the pages showed an id and nothing else, and P2-63540 is not somebody a participant can recognise. Each row carries that person's face now. question_partner_rows() is the people list, one row per person; partner_roster() stays the money list, where one row can be two people because their credits land in one purse. The other task's partner is the hard half. An explorer redrawn as a farmer is a different-looking person from the one they met, so the picture comes from the app that drew…f52b886 -
Say who every screen is for, and ask about each partner where they were met
Eight items from the 18 October playthrough. The rest phase drew the word "Rest" while the work phase drew "WORK for YOU" or "WORK for your PARTNER". Resting on a partner round pays the partner the rest credit, so the one screen that named no beneficiary was a screen where the beneficiary was the point. restPaysOther() answers it, and it is not paysOther(): the night harvest, night 1 and the harvest-speed block all carry beneficiary "other" and pay the participant. The outcome screen dims the whole board, so the farmer and the partner who were standing in the scene are both behind it. It draws the person it pays now, and both of them on a night-harvest outcome. The live canvas drew one fixed partner palette, so the person by the field was not the person the matching screen had just revealed and the night block's new partner looked exactly like the day one. cfg.partnerAvatar carries the index, picked off the partner id each block already passes. Belief and liking are per block, at t…f54e080 -
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
-
One belief page about every partner, and a points screen per block
From our user's second review of the run. The belief question is asked once, at the end of the study, about every partner, one Yes/No each, in words that fit what could happen to that person. Split across the two batteries it was asked twice and still missed a partner each time, because the other task's partner belongs to neither battery. A liking slider per partner sits with it, since both are about the people rather than about either task. Both defer to whichever task finishes second, the way the TriPM and demographics already do, so the handoff's partner rows now carry a fourth field saying what kind of partner each one was. Three fields still decode, so the two deploys can straddle. Each block has its own points screen before its own questions, naming only that block's two people: the day pair kept theirs, the night harvest had none at all and its result appeared only on the very last screen of the study. Every screen that says what somebody got now shows that person's picture, …71a8a60 -
Belief checks last, partners on the final screen, and two flashes
From our user's review of the full run. The belief checks move to the very end, after the TriPM and demographics. Asking whether the other person was real, in the middle of a battery, tells the participant there is something to doubt, and everything after it is answered by someone who has just been invited to suspect the study. Nothing follows them now. Both are asked there, each about its own block. The final screen no longer auto-forwards to part 2 after four seconds. That is the only screen that says what the night harvest settled to, and our user was taken away before they had read it. It also reports what the partners ended up with: this task's own, plus the other task's, carried on the handoff as signed pbonus1=/plost1=/psig=. Two numbers, because earning for someone and costing them are different events, and the night harvest only ever takes away. The screen said what the participant got and nothing about anybody else, in a study about what people do to other people. The canv…0063096
-
The post-task battery runs once per block, adapted to each
One battery at the end asked about both blocks at once, which meant the night-harvest items were on a page shown before that block existed in some orders, and every other item was ambiguous about which half of the session it meant. It now runs twice, after the block it asks about. A fatigue slider between the two blocks, as well as before and after. Each battery is framed to its block: NASA-TLX says which harvest to think back to, the feelings items ask about earning for someone in the day and about walking home while they lose in the night, motivation and effort carry only that block's choices, task ratings name the block, strategy asks about that block, and the belief check asks its own partner its own question, into its own column so one cannot overwrite the other. A day-only session is unchanged: the day battery keeps the stage names it was registered with and sits where it always did, and the night battery is skipped with the block itself. STAGE_ORDER gains the eight new stages…9fdb00a
-
Practice nights and a quiz before the last field counts
The block ran its first live trial as the first time anyone saw these cards. For an antisocial condition that is the worst place to be learning the layout, because a participant still working out who loses what produces choices that read as indifference, which is the pattern the hypothesis predicts. Three guided nights, banking nothing: a REST so they watch their own credits rise while the partner loses 14, a WORK so they see the smaller pay and the smaller loss, and a REST with the rest side shown as a range so the reveal is not a surprise on a night that counts. All three use the biggest loss. Two quiz items, on who loses what under each option, re-asked with the explanation until both are right and capped at four attempts so nobody is held at a screen. Both distractors on the REST item deny the harm, which is the one belief the design depends on. The attempt count is saved, which is what makes this usable as the prereg's exclusion criterion. The main comprehension quiz could not …e863dec
-
Night watch: endowment, draws, cards and stage
The other player's field holds 320 credits at the start of the block and the crows take from it, flooring at zero. A participant who always sleeps costs them about 288 over 48 trials, so a smaller endowment could empty before the block ends and leave the later trials with no stake. Uncertain amounts now have a lottery behind them, in this block and in the day-2 one. Without a draw a card reading "4 to 12" resolves to 8 every time and a participant notices within a few rounds, at which point the range is a label rather than a manipulation. The MODEL keeps using the stated amount or the midpoint, since that is what they knew when they chose; the draw is what is paid and what the outcome screen will show. A failed watch counts as not having kept it, so the larger loss applies. The all-or-nothing rule that protects the partner in the other blocks would here reward failing, since trying and failing would cost them nothing. ?watch=1 turns the block on, ?dev=1&start=watch jumps to it. Co-…2df58d7 -
The uncertainty condition: the day task again, new partner, certainty crossed
Runs AFTER the day task as its own condition, not as a replacement, so the day task's own data is untouched and the certain trials here are not redundant with it: they are the same offers made about a different person. make_trials gains an `uncertainty` flag. Certainty becomes a fourth factor, so the grid doubles from 24 cells visited twice to 48 visited once. Half the offers state the reward and half give a range around it, with the midpoint equal to the stated amount so the two differ in certainty and not in expected size, and a half-width of half the reward so the uncertainty is the same proportion of the stake at every level. Without the flag, make_trials produces exactly what it produced before; a test asserts that. Both blocks are balanced on beneficiary and on certainty independently. A random split would let one block run 15 self trials against 9, which matters because the blocks are separated by a break and the second is where fatigue lands. A NEW partner, drawn from the sa…86c0930
-
Wire the harvest-speed block into the task, and fix three HUD bugs a playthrough found
The block now runs. ?speed=1 turns it on, ?speed=other drops the self-field trials, ?dev=1&start=speed jumps straight to it, and the stage is built for every session and skipped unless the link asks for it, the same way the night stages are. cornfield.js: both cards are work and the one chosen sets how much there is to collect; the pay is drawn once above the cards rather than on each, since it never varies; the quick card carries the spoilage in whichever of the three information forms the trial is in. Banking: the night's pay always goes to the participant and the spoilage comes off whoever owns the field. A failed harvest pays nobody and spoils nothing, so trying and failing cannot harm the partner. The running total the third condition shows is kept per beneficiary and counts only what the participant's own choices actually cost. THREE BUGS THE PLAYTHROUGH FOUND, none of which the unit tests could have: The centred callout drew at NaN coordinates and vanished. My insert used cx…60658e0
-
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 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