Spaces:
Running
Running
Commit History
-
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 -
The RA playthrough, item by item
Two consent typos, a themed version of the 10-second rule, and three things about the task itself. The arrow prompt was 13px. An RA read it, pressed an arrow expecting to move a cursor, and took the round starting as the task skipping past the selection step. It is 17px now, in a pill measured from the text, and it says the press is the choice; the work-or-rest slide and the screen before the first card say the same thing in words. The harvest and the empty-soil click sounded like they played together because they nearly did: clearing a field is a burst of SPACE, and the press after a successful one lands on the soil it just cleared. The click is quiet for 220 ms after a stalk comes in. Submit and Back stayed on screen beside Continue once a quiz answer was in, greyed out but still there. They take turns in one row now. The last item was a blank strategy answer "sending me back to the beginning of the quiz". The data half is the push bug, fixed in cb6f294: that whole night battery …280712f
-
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
-
Say what running out of time costs, and let start=end reach the end
A failed harvest printed "for you, out of their loss" under "Didn't finish in time!", which says the participant was paid out of a loss when they were paid nothing, and never said why the partner's number was the big one. It now reads "You keep nothing" over "Your partner loses 20 credits, the same as if you had rested". The rule was also never stated before they played. Slide 2 now says it: choose WORK and fail to finish, you keep nothing and your partner loses the whole amount. ?start=end and ?start=credits now skip the optional blocks. With watch=1 they dropped you into four guided nights and a quiz on the way to the questionnaires, which is not what jumping to the end means, and is why the post-task screens looked missing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>d2185e8 -
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 practice arrow follows the callout
It stayed at the fixed spot the callout used to occupy, which the callout now sits on top of. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>16e2cb7 -
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 -
Four slides, emojis on the choices, and the between-trial flash
Slides 3 and 4 split as asked, with YOU and YOUR PARTNER'S emphasised and a mark at the top of each. REST and WORK carry the same emojis as the cards. The practice-nights screen is gone. "out of their bonus" becomes "out of their loss", on the card and on the outcome. The callout box was drawn for two lines and only has one since its header went, so the question sat on the bottom edge. Box and text now size to what is in them. The flash between trials was a deliberate hand-off frame, painted #2b3345 so the previous feedback cannot linger during the server round-trip. That slab is lighter than the night sky it covers, which is why it read as a flash of a different screen. Night blocks now hand off in their own backdrop. THE DRAW IS NO LONGER STATED TO PARTICIPANTS, at the researcher's instruction. watch_settlement still pays WATCH_PAID_NIGHTS of the nights, so the fact has to reach them somewhere before they choose. test_the_slides_no_longer_state_ the_draw records the decision and …5d42ee5 -
Tighter night-harvest copy, and the canvas carries the right partner
Three slides, in the researcher's wording except where it would have been false. "You will gain whatever amount your partner loses" describes a 1:1 transfer the task does not run: the participant takes 2 while the partner loses 8, 14 or 20, and someone who believes those are equal is reasoning about a different game from the one being fitted. Kept directional instead. The draw survives as one line, since merging the money slide away removed the only statement that a subset of nights decides real money. Cards: no header line above them, "PARTNER: loses 20" rather than "THEM", "out of their bonus" rather than "out of theirs", no "not yet known" caption, and the box count spelled out on the work card instead of "(6)" in the title, which read as 6 credits beside two lines that were credits. Outcome: the two facts the card showed, in the same words. It repeated the credit figure the big line had already given and added a teaching tip, so one outcome carried three numbers and the partner c…73de265
-
Work-phase banner says WORK too
Last of the old vocabulary: the harvest screen read "BRINGING IN the OTHER PLAYER'S field" while the card that led to it said WORK for PARTNER. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>4ce559a -
The callout says REST and WORK like everything else
It still read "WALK OFF, OR BRING IT IN?" above two cards labelled REST and WORK for PARTNER: two vocabularies for one choice on one screen. The earlier rename missed it because the line had already been refactored and the replacement was not asserted, so it silently matched nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>15d2c3f -
Their loss is your gain, said out loud; reveal gated in every block
The transfer was always in the numbers and never on the screen. What the participant walks home with is part of what the partner loses, and the cards presented the two as unrelated facts. Slide 2 now says whatever you walk home with comes out of that field, and each card carries "out of theirs" under the participant's own line. Resting takes 2 of theirs and leaves the rest to rot; working keeps 1 and a little more spills. No arithmetic changed. What cannot change is the pay VARYING with the loss: then one number carries both weights and only their difference is recoverable. A test asserts both pays stay constant across all 48 trials. The outcome now waits for a keypress in the day task too, not just at night. Three tab-away tests failed on that and the cause was the harness, not the product: onKey ignores a repeat while keys[k] is still true, and only keyup clears it, so a harness firing keydown alone could press any one key exactly once per trial. It never mattered until a trial ne…ce1add9
-
Fold the box count into the WORK title
It was a separate line under the title. Gone, but into the title rather than deleted: the effort level is the manipulation, so a participant choosing without knowing how much work they are agreeing to is not making the choice the design measures. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>ce30c4c -
Gate the outcome, unprime the practice, stop repeating the slides
The practice guided rest, work, rest in that order for every participant: two rests to one work, rest first, immediately before a block measuring how often people rest. Now four nights, two of each, ordered by participant id, and covering both halves of the certainty manipulation so neither is first seen on a night that counts. The outcome now waits for a keypress, in this block only. It used to appear while the participant was still reading the card, which on a block where the amount can be a draw from a range means the one number they have to see goes by unattended. A 30-second backstop stops anyone being stuck. The slideshow was followed by its own last slide as the block intro, and then the live block showed slide 2 again. Both gone; the live block opens on one line. Slide 2 regained the asymmetric price, which the rewrite had dropped. That sentence is what makes 20 of theirs sit beside 2 of yours without looking arbitrary, and it answers why the night numbers are larger than th…9d62fae -
Night Harvest: four slides, a partner search, and cards you can read
Renamed throughout, participant copy and code. "The Last Field" is gone. The instructions are four screens with Back and Next instead of one wall: the pairing, the choice, the ranges, the money. Slide 1 carries the pairing alone and runs the same partner search the day task uses, for the night partner and its own avatar: being told you have a new partner and then seeing no search read as a relabelling of the first one. The cards lost everything that is not a number. Gone: the gloss under the title, the "for certain" caption, the box count as a sentence. What is left is the title, YOU and THEM, one line each. The emoji sat at y+40 with the title under it and the two overlapped at this card height; it now sits beside the title, measured. Each card still shows only ITS OWN side's amount. The requested "THEM: keep 18, lose 2" cannot work: the 18 is the rest-side loss minus the work-side loss, so on a night where the rest side is the vague one that figure becomes a range and the work car…121f140 -
Practice tips that name the partner, and the intro emoji
Replaying the fixes turned up a sixth thing. A guided night ended on the day task's tip, "Resting is easy and relaxing, and earns 2 credits", which says nothing about the partner on the one screen whose job is to teach that resting costs them. The last field now has its own three tips, each naming what the other player lost and how the two pays compare. The intro emoji rendered jammed against the following word, because markdown collapses a run of spaces. A no-break space survives it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>729631c -
Five bugs the test suite could not see, found by playing
Three of them told the participant something false. The rest screen read "+2 credits for your PARTNER". Every last-field trial carries beneficiary "other", because that is whose field it is, and the day task reads that as "the partner is paid". So the one screen that states who gets the money named the opposite of what the quiz had just taught. The work screen read "WORK for your PARTNER" and "0 credits for 6 corn". These trials carry reward 0 and pay through workCredit, so the banner quoted zero over a card promising one. A failed harvest showed the small loss. _bank_credits treats running out of time as not having brought the field in, so the larger loss applies; the screen told them a failure cost their partner 2 when the server took 14. Two were layout. The header callout box is a fixed 360px, sized for the day task's short strings, so the last field's two lines overflowed it and the second landed on top of the first; it is measured from the text now. And the outcome line overp…ee93e09
-
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
-
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 -
The last field, and the partner id in brackets
The night block's work phase is harvesting, so the story had to be about a field. The other player has one field still standing that has to come in before morning. Take a bagful from the edge and walk home with 2 credits, and the rest of their crop is still standing at dawn, which costs them 8 or 14. Bring their field in to their barn, which is work and pays nothing, and they lose only the little that is always lost. Same payoffs as the version checked in analysis/open_field_recovery.py, same 2x2 over which side's loss is stated. Every mention of the partner now reads "your partner (P2-46501)". A bare "P2-46501's field is still standing" makes the reader decode a code before they can read the sentence, and the uncertainty block's second partner put two codes in one session. partner_label_plain() takes which=2 for that one, and the sprite label gained brackets for the same reason. The uncertainty intro was still quoting D.REST_CREDIT, so it promised 2 credits for resting while its car…afb3162 -
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 -
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
-
A trial no longer fails because the tab went away
The browser suspends requestAnimationFrame in a hidden tab, but the clock the trial reads is wall-clock: `now() - trial.phaseStart`. Switch tab, take a notification or let another window cover this one, and the frame delivered on your return read the elapsed time and failed the trial on the spot. It was recorded as an ordinary work failure, which in an effort-discounting task is a statement about what the participant was willing to do. I hit it repeatedly driving the task myself. The Pause button already freezes and shifts every timer, so the visibility handler reuses it, and holds the resume behind a keypress rather than dropping someone back into a clock that has already started. Pauses now record why, so a deliberate break and a tab switch are separable in the data. The deno harness models both halves of the browser's behaviour -- no frames while hidden, the queued frame delivered on return -- so it reproduces the original failure rather than only checking the new path. Co-Author…3d9cc23 -
Quote the amount the choice pays, not the one turned down
The night-2 work banner printed t.reward, which is what YOUR POCKET pays. Choosing to leave the harvest in the partner's pocket then spent ten seconds under a banner advertising the other amount. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>53f227d -
Night 2 told everyone their partner's credits were their own
Night 2's trials carry beneficiary="conflict" for the whole block, because who is paid is decided by the choice rather than by the trial. Every screen asked `beneficiary === "other"` and so answered "YOU" on both options: a participant who left the harvest in their partner's pocket was told the credits were theirs, on the one block whose whole question is whom you choose to pay. _bank_credits had it right, so only the display was wrong, but the display is what the next choice is made from. One predicate now answers it, for the work banner, the outcome screen and the partner's award aura alike. Also renames the night-2 intro from "Night 2" to "Night Harvest": most participants run one night block, and the both-nights arm is counterbalanced, so the condition number is not the position the screen appears in. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>f2d820c -
Night looks like night, and debug links describe the session
Found by playing the night blocks through. The raid was played on a full-daylight field. The soil grid is painted over the whole board, so the night sky underneath it is never seen, and only morning and evening had a colour wash; the rest scene had a night sky and a moon above grass, a tree and a picnic blanket at noon brightness. Both now get a night wash, over the ground only in the rest scene so the moon keeps its contrast. The banner above the raid read "YOU ROUND" in the day task's green. A night trial has no round type -- every one of them pays the participant -- so the banner said the raid and an ordinary self trial were the same kind of choice. It now reads NIGHT HARVEST, in a night accent. And ?night=2 was ignored if the browser had already opened ?night=1, so the second debug link silently ran Night 1 again; a new ?pid= was ignored the same way. That stickiness is there to stop a participant's arm moving under a reload, so ?dev=1 now overrides it rather than removing it, a…cf55f6b -
Keep the outcome screen up through a burst of presses
700 ms outlasted the next press but not the burst it arrives in: someone racing the clock presses every ~60 ms, so the screen still cleared at 700 ms of the 1800 it is meant to be readable for. 1200 leaves the outcome readable whatever the participant is doing and still lets a deliberate press skip the last third. Also drops the paragraph in the calibration arguing for the mean, which the line under it stopped doing when the reference went back to the best attempt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>dd0043d -
Fix the block hanging after one trial, and "2 credit"
Found by playing the task through in a browser. A reload, a navigation or a dropped socket builds a new nicegui Client for the same browser. ui.on binds its handler to whichever Client is current when it runs, but the canvas bridge was cached by BROWSER id and registered only once, so after the first reload the pe_trial_done handler was attached to a dead layout: the game posted its result, nothing received it, and the block sat forever on the blank hand-off frame after trial 1. Reloading again hit the same cache, so nothing recovered it. The bridge now tracks which Client it was registered against and re-registers when that changes. REST_CREDIT is 2 and the word "credit" was a literal in the rest panel and the rest HUD, so every decision screen in every session read "2 credit". Counts and their nouns now agree, targets included ("1 box", not "1 boxes"), and the test draws the real screens through deno rather than restating the copy. Also adds debug entries for the warm-up, which ev…29dfbdc -
Fix two bugs reported by pilot participants
The outcome screen could be dismissed by a stray press. A participant harvesting against the clock is pressing SPACE rapidly and the screen arrives mid-burst, so the next press cleared it before it could be read and they could not tell whether they finished in time or earned nothing. That is the one thing the screen exists to say, and losing it removes the feedback the trial depends on. SPACE is ignored for the first 700 ms, and the prompt appears only once the press will do something. Stalks could be placed behind the partner bubble, where they are drawn over and can be missed entirely. On an all-or-nothing rule that costs the whole trial. The nine tiles the bubble covers are excluded from placement, verified over 24,000 placements.ea429a1 -
Night choice screen: same words as the day, and no daylight flash
The night cards said GO TO THEIR FIELD and STAY ASLEEP, which names the same two actions as the day blocks in different words and makes the night read as a different task. They say WORK and REST now. The effort line under a night card read 'harvesting 8 corn' where the day card reads 'for harvesting 8 corn'. The missing preposition made it look truncated. The canvas carried a light sky blue as its CSS background, which shows for a frame before the first paint and reads as a flash of daylight when a night block starts. It is a neutral slate now. The partner bubble sits bottom left during work and on the horizon during rest, rather than floating in open sky on the right.ead9bc9 -
Make the warm-up cost what a trial costs, and hold walking distance steady
The warm-up placed 28 stalks and respawned one at a time, so the nearest was always a step or two away: 1.8 steps per stalk against 4.1 to 6.3 in a real trial. The same count therefore cost about twice the presses in the task, and an effort level set at 80 percent of the warm-up count demanded closer to 160 percent of the warm-up effort. That explains the observed success rates better than the levels being too high, and it means E was a fraction of a count collected under different conditions rather than a fraction of capability. The warm-up now clears successive batches of six, which is the middle of the task's range: 5.17 steps per stalk against 5.15 for a six-stalk trial. Stalk positions were drawn purely at random, so two trials at the same effort level could differ twofold in walking distance. A pilot participant reported that earning for their partner felt harder, and two of eight sessions show it: the same stalk count costing 2 to 4 more presses each on partner trials, with eff…134f14f
-
Give the harvest theme a night sky
The harvest theme has no skyByTod and draws its sky from skyStops(), which had cases for morning and evening only. The night blocks therefore kept full daylight on every screen except the work field, including the choice screen, and the rest scene drew a yellow sun with rays. Night now has its own sky, and a moon with stars in place of the sun.398f6ea -
Consent buttons, earnings on the final screen, and a warning that sides swap
Consent now ends with "I consent to take part in this study." and Yes / No buttons rather than agree / do not agree, and the phrases a participant should not skim past are marked in bold red: that a computer is needed, the 2 SONA credits, and both bonus figures. The partner screen bolds who the partner is rather than the pronoun. The helper that supplies "your age" was emphasising itself, which nested inside the new bold and rendered its markers literally. REST no longer shouts YOU, since the contrast on that screen is work against rest, not self against partner. Earnings appear on the final screen. They were shown only on the bridge between the task and the questionnaires, so a participant reaching the end by any other route never saw them, and nobody saw them again after twenty minutes of questionnaires. This reverses an earlier decision that they should not repeat there, and the test that encoded it is updated rather than deleted. The conversion now lives in one function; it was w…963e8ea
-
Reject key flooding, and bring the game rules back in line with the task
Two presses of the same key closer than 50 ms apart are rejected. The previous guard blocked auto-repeat but not a rapid keydown/keyup cycle, and a pilot session logged 3008 key events in one trial at a median gap of 0 ms, reaching 100% success by flooding. That turns a trial from a measure of willingness to work into a measure of input rate, which is the manipulation the whole task rests on. A human's fastest deliberate repeat is around 90 ms, so the threshold rejects machine-speed input and leaves real fast pressing alone. Rejected presses are counted per trial and exported rather than silently dropped, so a flooding participant is visible in the data instead of merely thwarted. GAME_RULES.md still described the pre-redesign task: rest at 1 credit, rewards of 2/6/10, the old effort level names, the removed per-stalk requirement, and a section headed "unresolved" for the hard95 problem that was fixed a month ago. Of its six open issues, two are now fixed, one is built, one has shrunk…8142f1d -
Fix the rest scene: ground bounds, partner on the grass, one award pulse
Movement in the rest scene was bounded by the board while the backdrop drew its horizon four rows higher, so the player could walk up off the grass and stand in the sky. Both now read one constant, REST_HORIZON_ROW, so they cannot drift. The partner was drawn at HUD + 80, above that horizon, and so appeared to float. They now sit on the grass in a soft bubble, which says present but not playing without making them look like a second character to walk into. The aura fires once when the trial resolves rather than on every harvest. A per-harvest pulse flickers through a ten-second work phase and marks nothing; the moment worth marking is when the credits land. The beneficiary's aura and the credit line run off the same clock and the same function, so they read as one event, and YOU gets the same treatment as YOUR PARTNER, differing in which one lights up rather than in how. Two things found while testing. The pulse guarded on a falsy award time, which treats a legitimate timestamp of z…59661bf
-
Vary the rest scene per trial, assigned by presentation position
The rest scene showed the same four items on all 48 trials. It now draws one item per slot from a pool: eight drinks, companions, things to pick and places to sit for harvest, with sets for the other themes, and boxes left plain as themes.py says it should be. Assignment is by PRESENTATION POSITION and participant seed, never by trial condition. Presentation order is already randomized against condition, so which items appear is decorrelated from beneficiary, effort and reward by construction. This matters because the model assumes the value of resting is constant: if a puppy is more appealing than a hay bale, rest value wobbles trial to trial, and position-based assignment makes that noise rather than bias. The items are recorded per trial as restItems, so the assumption can be checked against the data instead of trusted. The mechanic now belongs to the slot rather than the item. Dispatching on the item key meant a new variant had to be threaded into several or-chains, which is what…8d6e818 -
Consent headings, warm-up Back, and two stale values in the practice copy
Consent headings render at body size in bold italic. At heading size the form read as a web page rather than a document, and the jump in size drew the eye past the text that matters. Back on the warm-up leaves the stage. The button was gated on being past the first slide, and the intro is one slide now, so it never appeared; the index arithmetic would also have held it on the same screen rather than moving. Two values in the practice feedback had drifted from the task. It told participants resting "earns only 1 credit" when rest pays 2, and the timeout tip described the variable per-stalk requirement that was removed. The rest value now reads from the trial rather than the sentence, and the JS default that backs it moves 1 to 2, since a stale fallback is how the wrong number reaches a participant in the first place. The guided practice prompt says what it is for and pulses for the first two seconds of the decision, then holds steady so it does not flicker under someone still reading…7a8d551
-
Recalibrate the effort levels, and add the optional night conditions
Two changes that share the same files, so they land together. --- Effort recalibration --- Pilot data: hard95 succeeded on 42.6% of attempts, against ~96% in comparable published tasks (EEfRT; Klein-Flugge 2015, who treat that rate as the evidence their calibration worked). Because the harvest is all-or-nothing, half the reward evaporated into failure risk, which the model then absorbed into k -- V_work = R - k*E^2 assumes the reward is certain. Three causes, all fixed: * round(max_boxes * 0.95) == max_boxes for any max_boxes <= 10, so the intended 5% headroom vanished: the hardest level asked for the participant's best-ever count in 8 of 8 sessions. Levels are now forced strictly below the reference and distinct wherever the arithmetic allows. * A harvest rate wobbles ~18% trial to trial, so best-of-two warm-ups is the top of that wobble -- a personal record, not a reproducible capability. The reference is now the mean. (Grip-force tasks avoid this because MVC IS repro…7b59407
-
Log partner_avatar_idx, show real avatar in work/rest preview, add JS coverage
- effort_stages.py (howtoplay_stage): actually save partner_avatar_idx into the stage's return dict -- it was computed and shown on the matching-reveal screen but never logged, despite that being this feature's stated goal. - static/cornfield.js (workRestPreview) + effort_stages.py: the work/rest preview always drew avatar index 0 regardless of which avatar the participant picked. workRestPreview now accepts an avatarIdx argument (falling back to the configured cfg.avatar), and the Python call site passes the participant's actual stored avatar. - cornfield_js_harness.mjs: add all-4-themes coverage for missionImage, workRestPreview, and partnerAvatarPreview (idx 0-3) -- 92 lines of theme-dispatched canvas code that had zero coverage of the exact null-deref-in-theme-dispatch bug class this harness exists to catch. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1cd03ce -
Theme-dispatch REST-half sky/ground colors in workRestPreview
Fixes review finding: the REST half hardcoded a grassy-green swatch for every theme, contradicting jelly/firefly/boxes' established restBackdrop (reef/meadowNight/plain).dffcb23 -
Add mission and work-or-rest live-canvas preview images
7f9d84c