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
-
Sweep the night pay gap and keep the receipts
last_field_recovery_correct.py at gaps 1, 5 and 6, 60 participants, 48 trials, 5 replications each. Gap 1 is what the task shipped until today and gap 5 is what it ships now. gap 1 gap 5 gap 6 h_cert 0.806 0.884 0.882 h_vague 0.780 0.871 0.865 certainty discount 0.934 0.931 0.918 effort cost k 0.746 0.650 0.554 p(work) 0.573 0.233 0.177 SE on the group dx 0.051 0.034 0.026 MDD at 80% power 0.144 0.095 0.072 bias contamination -0.146 -0.112 -0.103 Gap 5 beats gap 1 on every row but k, and loses to gap 6 only on the minimum detectable difference. It keeps gap 1's recovery of the certainty discount, 0.931 against 0.934, which gap 6 gives up, and it leaves more worked trials for the effort cost. That is why 5 and not 6, independently of the reason the test caught (a gap of 6 equals the 6 credits averted at the lowest loss level and dominates that cell)…9e5ab9d
-
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
-
Rerun 04 against the two finished sessions
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>300dbf2 -
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 -
Make the day and night work phases identical, and audit the rest
The day task's work screen carried "press SPACE on each corn . 10 credits for 6 corn" and the night harvest carried nothing. Gone from every block: it repeats the card just chosen and an instruction already given, while the participant is racing a clock, and the two halves of the session should not differ in what they put on screen during an identical phase. Rest gets the countdown work already had. Two phases of the same length, and only one of them said how long was left in numbers. The night block is now balanced across its halves on certainty, not just shuffled. The day task splits its 48 into two blocks each balanced on beneficiary, so its main factor is 12/12 in both halves; a plain shuffle left the night's certainty conditions at 7/6/6/5 against 5/6/6/7, and that is the one factor this block turns on. Fatigue and learning both run with time, so an imbalance across halves is an imbalance against them. test_the_two_blocks_agree_on_everything_they_should is an audit rather than …3c1ef74 -
Give the one-line callout room
44 of padding left "REST OR WORK?" almost touching both edges of its box, and a 40-high box clipped the descender on the question mark. 76 of padding and 50 high on the single-line version, with the practice arrow following it down. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>57f35af -
Outcome shows at once, no running tally, breaks timed
The reveal gate comes out at the researcher's request: the outcome appears immediately. What stays is that it does not advance on its own, which was the part that mattered -- it used to clear itself after 1.8 seconds whether or not anyone had read it. The harvested tally goes from every live trial, day and night. It was a second clock to watch while racing the real one. Calibration keeps its count, because counting is what calibration measures. The decision callout is just "REST OR WORK?". The rest screen says doing nothing is allowed, not only that you may stroll. Breaks are timed. The stage recorded that a break happened and nothing else, so a thirty-second stretch and a ten-minute one looked identical, and a long break is exactly what resets the effort cost the second half is measured against. Per-trial tab-away pauses were already logged as nPauses and pausedMs; this adds the deliberate break. "real money" is bold again. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1dd17b9 -
Blank the canvas to the block's own darkness
The mount-time clear I added to hide the between-block flash painted one mid slab, #2b3345, which is brighter than the night sky that follows it. Clearing to hide a flash produced one. clear() now takes the time of day and the night harvest blanks to its own backdrop. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>68ad34f -
The draw percentage describes the real design, not the dev link
It was computed from the block length actually being played, so trials=6 drew all six and the slide read "about 100% of the nights". True of that link, and a description of nothing a participant will ever play. Always 20% now, from WATCH_PAID_NIGHTS over the full grid. Nothing bold on that slide except YOUR and YOUR PARTNER'S, and "Let's practice!" sits under the picture instead of after two blank lines. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>b9d7425 -
Move the decision callout into the sky
"REST, OR WORK FOR PARTNER?" is a long string. At 30px it filled the board edge to edge and ran into the moon, and it sat at the top of a sky with nothing under it until the cards. 24px on this block, and the whole callout drops into the middle of the empty space, with the practice arrow following it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>97db43c -
Drawn stills, the work clock back, and the reading clock
Two canvases replace the emoji, drawn from the game's own art the way the day task's work-or-rest explainer is: the partner's field at night with the participant at its edge and a "?" where the amount would be, and credits turning into coins. Two regressions I introduced, both fixed. The work screen lost its clock. Trimming it to "whose field it is" returned before the harvested counter, the countdown and the timer bar as well as the text, so a timed block had no timer. Only the line is skipped now. The outcome advanced before it could be read. The 30-second backstop was set when the phase ended, not when the outcome was revealed, so a participant who took twenty seconds to press the reveal had ten left to read it. The clock restarts at the reveal. Copy: no bold on slide 3, YOU and YOUR PARTNER'S capitalised with the second one lower case, "real money" bold, and space before "Let's practice!". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>944f554
-
Three loss levels stay, and the sure-option term is preregistered
Both questions settled at 12 replications, where 5 was too few to tell a real difference from noise. The third loss level costs 0.088 against 0.071 in minimum detectable group difference, not the 0.144 the short run suggested. It buys a work rate of 0.50, which is where a binary choice is most informative, against 0.38, and 13.5 work choices rather than 8.5 for a participant at the CU mean. Kept, and the reason is what the power figure cannot see: a participant who never varies yields no estimate and is dropped by the all-rest criterion, and those exclusions fall preferentially on the group H5 is about. The 24 percent cost is accepted and stated. The 2x2 over which side states its amount is now preregistered with the model that makes it work. A participant may lean toward whichever option has a stated outcome, whoever bears it. Simulated at a pull of 2 credits, the discount lands 0.151 off the truth with four parameters and 0.032 off with the sure term fitted. Crossing the cells with…cbdbff4 -
The intro told participants the wrong number of nights
It read "10 of the 40 nights". The total was written as WATCH_PAID_NIGHTS * 4, correct only while the draw was 12, and changing the draw to 10 silently changed the stated length of the block. That is the denominator of the only probability in the task, so a participant would have been reasoning about a one-in-four chance when it is one in five. Derived from the grid now, and from the dev override when one is set, with a test asserting the stated total equals the real trial count. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>a66f201 -
Preregister the last field, and put watch=1 in the study link
New design section covering the cover story, the payoffs, the 2x2 over which side states its amount, the 48-cell grid, the draw, and the practice and quiz. Two hypotheses: H4 that a vague partner loss is weighted below a stated one, and H5 that higher psychopathic traits go with a larger gap between the two. H5 is stated in its narrow form, with no group difference predicted in the weight on a STATED loss, which is what the 2x2 allows the design to separate. The computational-models section names the joint fit as primary, with k and beta shared across the two blocks because they are the same person in one session. In simulation the effort cost recovers at .76 from the last field alone and .93 when shared. Manipulated and measured variables extended. Exclusion gains the block's own criterion: not reaching both comprehension items correct within four attempts, with the counts reported by group, since removing sessions disproportionately from one group is itself a result. The partner d…2b2a38a -
A third loss level, and self-report items for the last field
Losses of 8, 14 and 20 against 2, so the harm averted spans 6 to 18. The low end is where this block is weakest: at a harm weight of 0.25 a participant works on 8.5 of 48 trials when the most that can be averted is 12, and on 13.5 when it is 18, and below about 4 there is no gradient left to fit. That is the CU range. The certainty 2x2 stays. Earlier I read "crossing the work side adds no precision" as "the work side is idle" and proposed dropping it. The crossing is not there for precision: when the rest side is vague a general preference for the stated option pushes toward working, when the work side is vague it pushes toward resting, so the two cancel and what survives is the partner-specific discount. That is the control standing in for the self arm. The simulation that showed no gain had no such preference in it. It does now, and reports how far the discount lands from the truth with and without the crossing. The grid is 3 x 2 x 2 x 4 = 48 cells at one visit each, which is how th…2c5e024 -
Joint fit rescues the effort cost; gap-1 power; retract the old figures
The last field estimates its own effort cost from its own 48 trials, and with no self arm there is nothing else in the block to pin it down: it recovers at 0.755 alone. Fitting day 1 and the last field together, with k and beta shared per person because it is the same person in one session, takes it to 0.929. The weight on a stated partner loss gains too, 0.763 to 0.875, and the certainty discount 0.921 to 0.939. The day block's own partner weight is unchanged at 0.75, so the gain is one-directional: the night block borrows precision from the day task and gives none back. The prereg should name the joint model as primary. Power for the block as it ships, at a pay gap of 1: SE 0.030, so the minimum detectable group difference is 0.084 at 80% power with 60 per group, against 0.099 at the old gap of 2. The recovered difference runs about 0.07 below the true one at this gap, so the test understates the effect and errs the right way. open_field_recovery.py is marked superseded rather than…6c207a4
-
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 -
The last field: both options pay, three purses, a draw
Working now pays 1 against resting's 2. Only the gap between them enters the choice, and at the old gap of 2 a participant with a harm weight of 0.25 works on 8% of trials, so the block went quiet for the group the study is about. At a gap of 1 they work on 18%. A gap of 0, which pays the same either way, reaches 31% but makes the gain unconditional and removes the instrumental reading. Since only the gap matters, the level is free, and it is set low because day 1 nearly fills the participant's $6 on its own. A night block paying a lot unconditionally would push them past the cap and make the later trials worth nothing. Payment. The night partner starts at 150 credits, which is exactly $6 at the study's rate, and the block can only reduce it. 48 trials at these losses would strip three times that, so 12 nights are drawn at the end and only those settle. Every night is equally likely, so all 48 stay live, and settling once at the end avoids the dead-trial problem a sequential purse ha…40235a2
-
Minimum detectable group difference for both new blocks
The 0.75 and 0.80 figures were per-person recovery, which is not power. This runs the pipeline at a fixed true group difference, fits the groups separately because pooling costs about a third of the difference, and reads the standard error off the spread across replications. At 50 CU and 50 control, 48 trials: uncertainty (day 2) SE 0.034 MDD(80%) 0.095 last field SE 0.029 MDD(80%) 0.080 Both detect a 0.20 difference in the certainty interaction at 80% power with room to spare, and the smallest difference either can find is about half that. Both run a small negative bias, -0.03 and -0.04, so the recovered difference understates the true one and the test is conservative. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>d6d7d97 -
Work and rest everywhere, including the last field
The last field named its options take and harvest, which made it the third block with its own vocabulary. Night 2 used work_self and work_partner and the harvest-speed block used quick and slow, and both drew the selection tick on the wrong card for as long as they existed, because the JS compared the choice name against "work". The cards now read WORK and REST like the day task, with a line under each saying what it means here: bring their field in, or fill your bag and go. The recorded choice is "work" or "rest". WATCH_REST_PAY, WATCH_LOSS_REST and WATCH_LOSS_WORK replace the take and carry spellings, so the constants match the lossSleep and lossWork keys the JS and the analysis already read. Three tests hold it: the choice names in the JS, the card labels, and that _bank_credits still takes the larger loss off their field when the choice is rest. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>cca6ae2 -
Recovery for the open field, four replications
60 participants, 48 trials. The weight on a certain loss to the other player recovers at 0.86, on an uncertain one at 0.78, and the certainty interaction at 0.80. Carrying is chosen on 45% of trials, which is where a binary choice carries the most information. The crows version of the same block ran the interaction at 0.66. Separating what the participant gains from what the other player loses is what bought the difference: with the gain held at 2 while the loss moves, the two weights no longer share a number. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>09bc819 -
The open field, and day 2 retuned
The night watch paid a flat amount for sleeping while crows took the other player's corn. Taking it is now the participant's own act: their corn is cut and lying in the open, and you can pocket a load or carry it to their barn. The gain and the loss are two separate numbers on the card. Pocketing a load is worth 2 to you and costs them 8 or 14, which the night intro's asymmetric prices already license. Paying the participant exactly what the other player loses, as the first sketch did, puts one number on both weights and leaves only their difference identifiable; it also turns the choice into a transfer at one's own expense, taken only by someone who weights the other player's credit above their own. Day task 1 keeps its shipped offers, because a run is already collected against them. The uncertainty block gets its own: rest pays 1 and rewards are 4, 8 and 12. At the day task's numbers participants work on 31% of trials; these bring it to 52%, the partner weight from 0.66 to 0.73, an…deb4dea -
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 -
Recovery for the uncertainty condition, all four replications
Final averages, 120 participants, 48 trials, 48 cells visited once each: w_s_unc 0.67 w_o_cert 0.69 w_o_unc 0.66 k_self 0.88 k_other 0.66 beta 0.66 self/other gap 0.76 INTERACTION 0.71 p(work) 0.31 The interaction is the hypothesis: is the penalty for an uncertain reward bigger when the reward is someone else's than when it is one's own. At 0.71 it is the best-recovering version of that contrast in this project, against 0.66 for the loss-prevention block and 0.68 for the two-route one. Two results worth keeping. The self/other gap comes out at 0.76 against the shipped day task's 0.60, which was not predicted: crossing certainty in adds variance to the other-trials that the difference apparently benefits from. And the cost lands on k_other, 0.66 against 0.90, because half the other-trials now carry a range and contribute less to the effort curve. p(work) at 0.31 is low. The rest credit and the reward levels are the knobs; neither has been swept. …5f4bda8 -
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 -
Rename the block to quick versus slow harvest
"Careful" is evaluative. It tells the participant which option is the good one before they have weighed anything, which is exactly the judgement the block is supposed to measure. "Slow" says only what the option costs. So the two options are SLOW and QUICK, the story goes back to harvesting a field rather than sorting a load (harvest is the task's own verb and the day task already uses it), and what the quick option loses is corn left behind to spoil out of the owner's harvest. Renamed throughout: CQ_* to HS_*, make_careful_quick_trials to make_harvest_speed_trials, requiredCareful to requiredSlow, carefulQuick to harvestSpeed, the JS choice value "careful" to "slow", drawCarefulQuickCard to drawHarvestSpeedCard, the test file and the figure generator. No occurrences of "careful" remain in any of them. cornfield.js now renders the block: both cards are work, the card you pick sets how much there is to collect (workSide is the QUICK card), the pay is printed once above the cards rath…e24770c -
Tune the spoilage amounts per arm, and the task figure for the sorting shed
p(quick) sat at 0.25 with the self arm in. The cause is structural: the weight on one's OWN loss is anchored at 1 while the weight on the neighbor's is about 0.45, so the same amount cannot balance both arms. At 4 and 8 on both, the self arm ran 0.16 against the neighbor arm's 0.36. A bigger effort saving moves both arms together and so cannot fix a difference between them. Different amounts per arm can, and the model needs variation WITHIN each arm rather than the same values across them, so it costs nothing. Three configurations, four replications, 120 participants: h0 h1 k s1 social p(quick) self/other matched 4/8 both 0.76 0.59 0.89 0.49 0.58 0.16 / 0.36 split 2/4 | 4/8 0.76 0.59 0.91 0.44 0.60 0.51 / 0.36 wide 2/4 | 6/12 0.78 0.56 0.90 0.43 0.55 0.51 / 0.19 Split adopted. The self arm goes from 0.16 to 0.51, k and the social contrast improve, h0 and h1 hold. Going wider on the …41d43ef -
Price the self-loss arm: it costs 0.09 on h1 and buys the only social control
With the loss always falling on the neighbor, nothing in the block measures general risk attitude, so a positive information slope is equally consistent with "clearer information makes people care more" and with "uncertain outcomes get discounted like any uncertain outcome". A self arm fixes that: the load is assigned to one store or the other, and working quickly spoils part of it whoever owns it. It fits without adding cells. Dropping the effort-SAVING factor to one level and keeping three careful-effort levels gives 36 cells either way, since E^2 - (E-d)^2 varies with E on its own, so k stays identified. Four replications, 120 participants, 48 trials: h0 h1 k s1 social contrast other-trials other only 0.71 0.68 0.74 -- -- 48 self+other 0.76 0.59 0.89 0.49 0.58 24 So the arm costs 0.09 on h1 and gains 0.05 on h0 and 0.15 on k, because the self trials have their weight anchored at 1 and s…0c1621f -
The careful/quick block: effort as the price of avoiding harm
Replaces the heat block, which was built for a loss-prevention design the conversation moved off. A load of corn comes in each night bound for one store, the participant's or their neighbor's. Sorting it carefully takes more work and loses nothing; sorting it quickly takes less and spoils part of the load, which comes out of whoever's store it was bound for. The night's pay is 6 credits either way. So the harmful option is the CHEAP one and paying extra effort is what avoids the harm, which is the shape instrumental harm usually has and the shape the user's own finding had. Earnings never varying is what cancels the reward term out of the model, so self-reward sensitivity has no regressor to act on. V_quick - V_careful = -lam(agent, c)*spoiled + k*(E_careful^2 - E_quick^2) lam_other(c) = h0 + h1*c c = 0 hidden, 1 certain, 2 certain + history Recovery at 48 trials, four replications, 120 participants (two_routes_info.py): h0 0.74, h1 0.68, k 0.75, beta 0.62, errors of h0…3cc82da -
Two routes with an information gradient: the design that works
Both routes pay the participant the same credits. Their own field takes more work and hurts nobody; the neighbor's takes less and costs the neighbor l. So effort is the price of AVOIDING harm, which is the shape instrumental harm usually has: the harmful option is the cheap one, and declining to pay the extra effort is the harm. V_raid - V_own = -h(c)*l + k*(E_own^2 - E_raid^2) h(c) = h0 + h1*c c = 0 hidden, 1 certain, 2 certain and salient Four replications, 120 participants, 48 trials, 36 cells: h0 0.74 h1 0.68 k 0.75 beta 0.62 p(raid) 0.36 errors of h0 and h1 correlate +0.08 Two things no other variant managed. The slope recovers nearly as well as the intercept, where Night 1's came back at 0.53 with reward sensitivity varying. And the two do not trade off: every other design in this project has had its parameters co-scaling at +0.5 to +0.7. Both follow from the payoff cancelling, which leaves no reward term for the weights to share variance with. …0bf86c1 -
Power for the avoid-loss block: 50 per group detects an interaction of 0.144
The test the study reports is a group difference, and a t-test on hierarchically fitted parameters cannot measure its power. Fitting each group in its own hierarchy shrinks everyone toward that group's mean, so within-group variance is artificially small; night_info_gradient.py produced t values of 15 to 25 at 60 per group, which is what that looks like. Pooling the groups instead shrinks the difference itself, by about a third (night_group_shrinkage.py). So this runs the whole pipeline eight times at a fixed true difference, fits the groups separately, and takes the SPREAD OF THE RECOVERED DIFFERENCE ACROSS REPLICATIONS as the standard error. That estimate does not depend on getting the within-group variance right. Only lam_o_unc differs between groups: identical weights on one's own losses, identical weights on a CERTAIN loss to the partner, and a difference only in how heavily an UNCERTAIN loss to the partner is discounted (0.45 against 0.25). That is the hypothesis in its narrow …b128827 -
Effort to prevent a loss, crossed with beneficiary and certainty: the best night design yet
The day task's own structure with two changes. The outcome is a loss the participant can reduce by working, and on half the trials its size is uncertain, stated as a range whose midpoint matches the certain trials. V_work - V_rest = lambda(agent, certainty) * delta - k * E^2 Self-certain lambda is the scale anchor at 1, since lambda, k and beta are identified only up to a common scale. The hypothesis is a contrast between two differences: is the uncertainty penalty bigger for the partner's losses, (lam_o_cert - lam_o_unc), than for one's own, (1 - lam_s_unc). Four replications, 120 participants, 48 trials: lam_s_unc 0.62 lam_o_cert 0.74 lam_o_unc 0.72 k 0.92 beta 0.70 penalty self 0.62 penalty other 0.77 INTERACTION 0.66 p(work) 0.46 The interaction recovering at 0.66 was not expected; every difference-like quantity in this project so far has come back weaker than its components. It works here because each penalty is built from weights that are themselv…9613462 -
An information gradient on the partner's loss, and what reward sensitivity does to it
The design: your own gain varies, the partner's loss varies, and how clearly that loss is specified varies over three ordered conditions (uncertain, certain, certain and salient). Harm aversion enters as a line across them rather than as three separate weights, so 48 trials carry four parameters instead of three parameters three times: V_raid = rho*g - h(c)*E[l] - k*E^2 h(c) = h0 + h1*c h1, the slope, is the quantity the question is about: how much does making the consequence concrete increase the weight on it. night_info_gradient.py, with rho pinned at 1 in generation AND fitting, gave h1 = 0.87 and h0 = 0.71, with three conditions at 16 trials slightly beating two at 24. I reported that as the design's recovery. It was not: it assumed every participant has identical self-reward sensitivity. night_info_rho.py generates data with rho really varying, uniform(0.6, 1.6), and fits both models to it. Four replications, 120 participants: rho pinned h0 0.34 h1 0.53 …6f42ca9
-
Two problems that affect every night design, not just one
Both were raised as objections and both hold up. GROUP SHRINKAGE (night_group_shrinkage.py). pyEM shrinks each person toward a group prior. Fit CU and control participants in ONE hierarchy and they share that prior, so a real difference between them is pulled toward zero. Six replications, 60 per group, true difference 0.25 in h: pooled recovered 68.8% of the true difference by_group recovered 91.4% oracle recovered 104.8% Pooling costs about a third of the effect. Every replication still detected it, but only because d was set near 1.4 deliberately. Fit groups separately, and preregister that rather than deciding it after seeing the data. CHOICE STARVATION (night_choice_starvation.py). The three-option block lets people opt out, so the data each parameter gets is determined by the participant. Earlier simulations drew w and h from uniform(.2, .9), which has no real extremes in it and hid this. With half the sample drawn from a low tail, at 24 trials 63 of 120…19a4cf0 -
Two candidate night designs for motivation to refrain: one fails, one works
Both ask the question Night 1 cannot: refraining there is free, so there is nothing to be unmotivated about. Both put the effort on the side of not harming, so that willingness to refrain becomes a parameter. night_default_harm.py inverts the default. The raid happens unless you stay awake to stop it, so taking is free and refraining costs work. It fails, and not because the sign structure is wrong. Taking becomes free AND harmless to perform AND the paying option, so 91% of choices take it and the block carries almost no information: k recovers at 0.23 and beta at 0.25 over 24 trials. Recorded so the idea does not get proposed again without the number. night_two_routes.py keeps the payoff matched. Both routes pay the same g; your own field costs more work and hurts nobody, the partner's field costs less and takes l off them. Matching the payoff cancels rho, so the reward sensitivity that night1_why.py showed contaminating h at r = -0.49 cannot enter the model at all, and choice bala…98c1c99 -
Test whether Night 1 can say WHY someone raids, or only that they do
The shipped Night 1 model fixes the weight on the participant's own gain at 1, so every difference in raiding is forced onto h and a group that raids more is reported as less harm averse. Freeing that weight gives V_raid = rho*g - h*l - k*E^2 and this asks whether the design can hold rho and h apart. Five accounts of more raiding: null, harm (low h), gain (high rho), gain_harm, and spite (h allowed below zero). The result that bears on the headline. Simulate people whose harm aversion is exactly zero and who differ only in reward sensitivity, then fit the shipped h-only model, which has nowhere else to put the effect. Mean fitted h is 0.07, so it does not fabricate much harm aversion on average, but fitted h correlates -0.49 with true reward sensitivity (-0.46 at 48 trials). Individual differences in how much one's own gain is worth come out as individual differences in harm aversion. Model recovery is 4/5 at the shipped 24 trials and 5/5 at 48. The one failure at 24 is a pure …3fc5f7d
-
Night-condition design simulations and the options document
The simulations behind the night-block decision, none of which were tracked: nine Night 2 reward and effort designs, three payoff structures, concave utility of credits, the eight-model "why harm" family, and a three-option block offering rest, raid and help. docs/methods/make_night_options.py builds the document that compares them: the question each block asks, what each parameter would give us, recovery side by side, and what is decided against what is open. The docx is output and is gitignored, like the methods document. Findings worth not losing: dk does not recover in Night 2 at any trial count up to 150; structure C returns w and h from one 24-trial block, which Night 1 and Night 2 currently need 48 trials between them to do; structure B is unidentifiable and should not be built; the three-option block needs its rest option to pay nothing, or three quarters of choices go to doing nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>92ae8e8 -
Edit the notebook prose against the house style
Removes 18 contrastives, 15 em dashes, 3 evaluative stand-ins for a quantity and 2 banned adjectives across all six notebooks. The notebooks are generated, so the generators are the source of truth, but regenerating would drop every stored output and these are markdown-only changes. Both sides are patched and then checked: regenerating into a scratch directory reproduces the committed notebooks cell for cell, markdown and code. All six still validate, with 63 stored outputs and no error outputs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>95345f5
-
Check our recovery against Jo Cutler's, like for like
Her Parameter_recovery_mle.csv reports 0.84 / 0.87 / 0.76 and ours looked worse, which would mean a bug. It is not a bug: her setup differs from ours in four ways at once, and the one that matters is how the true parameters are drawn. Reproducing her exactly -- her 24-trial schedule, her hyperbolic cost, her 27-subject 3x3x3 grid, per-subject MLE -- gives 0.78 / 0.82 / 0.75 against her 0.84 / 0.87 / 0.76. Close enough that our implementation of her model agrees with hers; the rest is her single random start and fixed seed. Changing ONE thing, drawing k continuously instead of from a 3-point grid, drops it to 0.62 / 0.65 / 0.60. Twenty-seven subjects sitting at exactly three k values, maximally spread, is a much easier correlation than a continuous range, for the identical design, model and fitting. That accounts for the whole apparent gap. On her own schedule, our parabolic cost recovers better than her hyperbolic: 0.95 / 0.93 on her grid, 0.83 / 0.82 continuous. Our shipped design …56f1bdd -
Recovery at the planned sample size, and fix the cache's own write race
Two of these running in parallel both read the cache, both wrote their own cell, and the second silently dropped the first's -- the same read-modify-write race I had just described to the other task's session. Re-reads before writing and replaces atomically. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1f45e79 -
Carry the resolved task order across the handoff instead of re-deriving it
If each app resolves the order independently they can disagree -- one reaches the shared allocation, the other falls back to the hash -- and then both believe they are first, or neither does. The measures that run once for whoever finishes SECOND are then collected twice or not at all, neither app errors, and nothing in the data says it happened. The app that already has the authoritative answer now carries it: &first=pe|sl&fsig=<8 hex of hmac(SONA_PID_HASH_KEY, "order|<code>|<value>")>. The receiving app trusts a verified value and records task_order_source="handoff"; an absent, unsigned or mis-signed one falls back to resolving independently, which is the safe direction to fail in. Matches task_sl-cu-nicewebrl commit 0c38969 on the wire. The once-only measures and the handoff URL both read the position this session already resolved rather than deriving a second answer that could disagree with the one recorded. Also adds analysis/recovery_at_n.py: parameter recovery at the sample s…2ea31e1 -
SONA: pseudonymise the pid, and hand over to the other task
The consent form says "The research team receives only your SONA ID for the purpose of granting credit, and this is not stored alongside your survey responses." The task stored the survey code AS the pid, in every filename and on every record. It now stores a keyed one-way pseudonym (HMAC-SHA256 of "research|<code>", first 16 hex), and the raw code lives in session memory only, long enough to build the SONA return URL and the handoff. Both metadata save paths drop it, and a test counts them so a third cannot be added without one. Keyed, not a plain hash: SONA codes are short enough that an unkeyed digest is brute-forceable, which would defeat the point. Without SONA_PID_HASH_KEY set it falls back to the raw code and warns loudly -- dev-safe, not production-safe. A pid that is in allocation.csv is left alone. Those 250 are ids we generated: already the "random study ID number" the form describes, and each carries a pre-registered arm keyed to that exact string, so pseudonymising one w…fa5955c