Spaces:
Running
Running
File size: 55,416 Bytes
c92ec59 c071d95 c92ec59 c071d95 3c7a57c 1a45e3e ea571b3 64b04ea ea571b3 64b04ea 3c7a57c c92ec59 fa427c1 e74bfa2 fa427c1 5d2dc62 96656b7 6cfa888 96656b7 5d2dc62 0fb377b 5d2dc62 3c7a57c f52b886 3c7a57c f54e080 f52b886 3c7a57c 9f7c4b6 b129381 3c7a57c b129381 3c7a57c b129381 3c7a57c b129381 06c66ae b129381 06c66ae 839efed b129381 3c7a57c b129381 3c7a57c ea571b3 64b04ea ea571b3 64b04ea ea571b3 f54e080 f52b886 f54e080 f52b886 f54e080 ec4b9a7 c20b11d 2e19d3e e14690d 2e19d3e e14690d 2e19d3e 4eed8f8 c92ec59 ea571b3 64b04ea ea571b3 c92ec59 3c7a57c ea571b3 3c7a57c c92ec59 3c7a57c c92ec59 e74bfa2 c92ec59 1d707b2 64c8bdc 5d2dc62 96656b7 5d2dc62 1d707b2 c92ec59 4eed8f8 c92ec59 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 | # Session log
Written so this work survives a terminal restart. Supersedes
`SESSION_LOG_2026-08.md`, which describes the task before the September changes
and should not be relied on.
Last updated 20 October 2026.
## Nothing is running
No background jobs from this project are alive. Long jobs were run with
`nohup ... &`. Note that `jupyter nbconvert --inplace` writes the notebook only
at the very end, so a killed run leaves the file unexecuted; the fit cache
(`analysis/recovery_cache.pkl`, gitignored) is what protects the expensive work.
## State
Both halves of the combined study now run end to end on the live Spaces, in
both directions, verified by walking them on 20 October. See
`docs/TESTING_THE_HANDOFF.md` for how to repeat that walk in about ten minutes
a direction, and run `test_handoff_contract.py` after any change to either
copy of `order_link.py`.
The SONA study is still **Not Approved** and **Inactive**, so nothing is live.
Duration is 60 minutes for 2 credits, still the `TO CONFIRM` figure in the
prereg: the harvest runs about 20 minutes and the treasure hunt has no timed
estimate, so this wants a stopwatch on a real run before anyone signs up.
### What changed on 20 October
The advertised link is 85 characters now. `SONA_RETURN_URL` holds the
completion URL as a Space secret on both Spaces, so the credit token never
reaches a participant's URL bar, history or referrers, there is no truncation
risk left, and the freed room put `&watch=1` back in explicitly rather than
inferring the night block from the presence of a completion URL:
https://princessamygdala-harvestfortwo.hf.space/?pid=%SURVEY_CODE%&study=sona&watch=1
The handoff payload was being dropped on arrival for half the sample. A
participant allocated to the treasure hunt first touches this app twice: once
on the advertised link, which resolves the order and bounces them, and once at
the end, which is the only request carrying `bonus1`, `pbonus1`/`plost1` and
`pparts1`. All of that sat inside `"task_first" not in storage`, false on
exactly that second arrival, so the other task's bonus was dropped from the
combined total and the belief and liking pages named only this task's own
partners. Nothing errored and nothing in the saved data recorded it. The order
is still resolved once. The payload is read on every request.
The other task's partner faces work. Its Space serves them now, the handoff
row carries the avatar index, and both apps put a face through the same frame
so the explorer and the farmer appear at the same size side by side. Its copy
of the belief question also named every game "that game" and asked the
night-harvest partner about receiving credits they could only lose. Both now
match the wording here.
The SONA description no longer contradicts the consent form. It said "In the
first you're an explorer... In the second you're a farmer", which is wrong for
half the sample, and it offered a Venmo gift card, which was never set up. It
now says the two games come in a random order, names the stranger's bonus the
way the consent form does, and pays by an Amazon gift card or PayPal.
The live Treasure Hunt repository is the checkout inside `not in use
currently/`, despite the folder name. The one called
`task_sl-cu-nicewebrl-16trials` is a stale orphan with a dead `origin`, no
`hf` remote and no `order_link.py`. Both set `N_TRIALS = 16`, so the trial
count cannot tell them apart. Its Space history is a separate line from
GitHub's, so a deploy there is a cherry-pick onto the local `hf-deploy`
branch.
### Earlier state
Deployed and ready to advertise. `origin/main`, the HuggingFace Space and the
local checkout are all at the same commit, and 441 app tests plus 31 analysis
tests pass. Two RAs have played full sessions, on 2026-10-14 and 2026-10-15,
and everything they reported is fixed. Their sessions are the ones that found
the push bug, so the build they played could store nothing after their last
trial, and the build now deployed is the first that can.
What has never been exercised is the real SONA study: one session on the
advertised link, with a TEST_ survey code, to confirm SONA substitutes
`%SURVEY_CODE%` and the credit lands. Everything below was verified by hand
with links we wrote ourselves.
Two conventions worth knowing before changing anything:
- **JavaScript is testable here.** `deno` is installed. `test_rest_variety.py`
runs the shipped functions out of `cornfield.js` through it rather than
reimplementing them. Before that, every canvas change went out unverified.
- **Documents are generated.** `docs/methods/make_methods.py` builds the method
docx; the docx itself is gitignored because HuggingFace refuses binary
documents in the Space.
## What changed in September
### The warm-up did not measure what the task demands
The warm-up placed 28 stalks and respawned them one at a time, so the nearest
was always a step or two away: about 1.8 steps per stalk against 4.1 to 6.3 in
a real trial. The same count therefore cost roughly twice the presses in the
task, and an effort level set at 80% of the warm-up count demanded nearer 160%
of the warm-up effort. This explains the observed success rates better than the
levels being too high.
The warm-up now clears successive batches of six, the middle of the task's
range, so steps per stalk match (5.17 against 5.15).
**Warm-up counts after this change are roughly half those before it, and
`max_boxes` is not comparable across 2026-09-26.** The effort fractions
(35/50/65/80) should be checked against real success rates before collection.
### Three sources of accidental asymmetry, all removed
A pilot participant reported that earning for their partner felt harder. The
design demanded identical effort and rewards for both (crossed, identical to
two decimal places), but two of eight sessions really did show partner trials
costing 2 to 4 more presses each. The cause was chance, in three places:
| | before | now |
|---|---|---|
| stalk layout | random, sd 1.95 steps/stalk at N=3 | targeted, sd 0.28 |
| walk per stalk | slid 6.4 to 4.2 across effort levels | flat at about 5.2 |
| which side shows WORK | coin flip, could give 16/8 in a block | exactly 12/12 |
The side is still randomized, only balanced: pilot data gives P(work) of 0.67
with work on the left against 0.57 on the right, not significant across nine
sessions but the size of bias that fixing the side would write into the main
outcome. The instructions now say the options swap.
### Back to the best warm-up attempt
`max_boxes` is the better of the two attempts again, matching the Qualtrics
original, the Gorilla build and Lockwood et al. It briefly used the mean, on
the grounds that a peak is a record rather than a capability. The upward bias
is real, about 10%, but it is a constant scale factor the effort fractions
absorb, and the second argument did not survive arithmetic: because
`E = required / reference`, a higher mean divides the extra noise back out and
E is equally variable either way (sd 0.104 against 0.109).
### Two bugs found by pilot participants
The outcome screen could be dismissed by a stray press. Someone 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. SPACE is now ignored for
700 ms and the prompt appears only once it will do something.
Stalks could be placed behind the partner bubble and missed entirely, which on
an all-or-nothing rule costs the whole trial. The nine tiles the bubble covers
are excluded from placement.
### Key flooding
Two presses of the same key closer than 50 ms apart are rejected. One pilot
session logged 3008 key events in a single trial at a median gap of 0 ms and
reached 100% success by flooding, which turns a trial from a measure of
willingness to work into a measure of input rate. Rejected presses are counted
per trial as `floodRejects` and exported.
### One switch for which study
`?study=dyad` or `?study=sona` replaces the separate dyad and SONA parameters,
which could disagree with each other. SONA is the default. It selects the
consent version, whether a role is collected, whether the hypothetical-partner
battery runs, and how the session ends.
### Night blocks
Night 1 has a cover story for the first time. Two lines carry the parameter:
that taking genuinely reduces the partner's total, or `h` measures nothing, and
that nobody will know, or `h` measures fear of being caught. `h` is now fitted
on a centred range so it can be negative, which lets the model represent spite
and puts the null in the middle of the parameter space rather than on its edge.
The harvest theme had no night sky at all, so night blocks ran in daylight
except on the work field. Fixed, with a moon, and the canvas background is
neutral so there is no daylight flash when a block starts.
### Questionnaires
Effort ratings cover all four levels rather than two anchors. The TriPM is one
page with every answer required, and its CSV columns are headed by the
statement rather than "item N". Demographics run last. The hypothetical-partner
battery is skipped outside dyad mode. Both earnings screens say what the
participant did ("you earned N credits for your partner"), not what happened to
the partner.
### The tab going away failed the trial
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, let another window cover this one, and the frame delivered on
your return read the elapsed time and failed the trial on the spot, recorded
as an ordinary work failure -- which in an effort-discounting task is a
statement about what the participant was willing to do.
The Pause button already froze and shifted every timer, so the visibility
handler reuses it and holds the resume behind a keypress. Pauses now record
why, so a deliberate break and a tab switch are separable.
### Eight things found by playing it through in a browser
Everything before this was verified structurally. Playing it found more in an
hour than the test suite had in weeks, and two of the eight would have damaged
the data rather than merely annoyed someone.
- **A block hung after one trial, for good.** A reload, a navigation or a
dropped socket builds a new nicegui Client for the same browser, and `ui.on`
binds its handler to whichever Client is current when it runs. The canvas
bridge was cached by browser id and registered once, so after the first
reload the result handler was attached to a dead layout: the game posted its
result, nothing received it, and the block sat on the blank hand-off frame.
Reloading again hit the same cache, so nothing recovered it. The bridge now
tracks its Client and re-registers when that changes.
- **Night 2 told everyone their partner's credits were their own.** Its trials
carry `beneficiary="conflict"`, because who is paid is decided by the
choice; every screen asked `beneficiary === "other"` and so answered "YOU" on
both options. The banner also quoted the amount the other option would have
paid. `_bank_credits` was right throughout, so the money was correct and only
the feedback was wrong -- on the one block whose question is whom you choose
to pay.
- **The night raid was played in daylight.** The soil grid covers the whole
board, so the night sky behind it is never seen, and only morning and evening
had a colour wash. The rest scene had a moon above noon-bright grass, a tree
and a picnic blanket. Both have a night wash now, ground-only in the rest
scene so the moon keeps its contrast.
- **"2 credit"** on every decision screen, in every session: `REST_CREDIT` is 2
and the word was a literal.
- **The banner above the raid said "YOU ROUND"** in the day task's green. A
night trial has no round type.
- **`?night=2` was ignored** if the browser had already opened `?night=1`, and
so was a new `?pid=`. The stickiness is there to stop a participant's arm
moving under a reload, so `?dev=1` now overrides it rather than removing it.
There are also debug entries for the warm-up, which every `?start=` value
skipped past.
- **The skip-confirmation dialog was dismissable by ESC or a backdrop click**,
which set neither button's event: the awaiting Continue handler never
returned, and the click looked like a no-op. Four stranded dialogs had piled
up by the end of one questionnaire run.
- **A skipped slider page was indistinguishable from a real midpoint.** Sliders
start at 50 and "Continue anyway" records that as an answer. Each item now
carries a `_touched` flag, in the raw per-stage record; the CSV would need
the columns added to `qualtrics_template.csv`.
The outcome screen's press lock went from 700 ms to 1200. 700 outlasted the
next press but not the burst it arrives in, so someone racing the clock still
cleared it at 700 ms of the 1800 it is meant to be readable for.
### Three things the CSV was not carrying
Checked by exporting real pilot sessions through the shipped
`export_qualtrics.export()` and reading what came out, rather than by playing
one session and eyeballing it.
- **Low-effort trials were dropped.** The per-trial harvest list is written to
`{iter}_boxes_{required}` and the template only carried `required >= 6`.
That was survivable when the warm-up produced references in the twenties; it
produces about half that now, so a slower participant's four levels are
3/4/5/6, or 2/3/4/5, and most or all of their trial detail never reached the
CSV. Intact in the msgpack, absent from the file the analysis reads. One real
pilot session was losing 14 columns this way. `required` 1 to 5 added for all
49 iterations.
- **The effort battery never reached the CSV at all.** The NASA-TLX page went
from two anchors to one rating per level, and the mapping still named
`effort_easy` / `effort_hard`. `effort_lvl1..4` existed as columns with
nothing ever written to them.
- **The `_touched` flags became phantom columns**, because a bool is an int in
Python and they were riding the numeric prefix sweeps. They are excluded
there and summarised instead: one `<page>_untouched` count per slider page.
Credit banking itself is correct. Recomputing both purses trial by trial from
the raw records of every pilot session that reached the bridge screen
reproduces the recorded `self_points` and `partner_points` exactly, in all
four; the sessions that do not match are the ones abandoned before that screen,
where nothing was recorded to match.
One known gap, left alone: the five July/August pilot files carry the old
`motiv_win_self` / `effort_avoid_partner` battery names, which the current app
no longer writes and the template no longer has. Eight columns per file, from
superseded wording.
### The combined SONA study, built with the other task's session
task_sl-cu (TreasureHuntForTwo) and this task now run as one SONA study, with
a second Claude session working the other side. Both apps carry the same
files and formulas, duplicated rather than shared, the way `gitlab_save.py`
already is.
- **The pid is a pseudonym.** The consent form promises the SONA ID is "not
stored alongside your survey responses" and this task stored it as the pid,
in every filename and on every record. It now stores
`hmac(SONA_PID_HASH_KEY, "research|<code>")[:16]`; the raw code lives in
session memory only, long enough to build the SONA return URL and the
handoff, and both metadata save paths drop it. Keyed, not a plain hash:
SONA codes are short enough to brute-force. A pid that is in
`allocation.csv` is left alone -- those are ids we generated, already the
"random study ID number" the form describes, each carrying a pre-registered
arm keyed to that exact string.
- **Task order** is counterbalanced by `order_link.py`, and the app that
resolves it carries the answer to the other in a signed URL parameter
(`&first=&fsig=`) rather than letting the second app re-derive it. If they
resolve independently they can disagree, and then both believe they are
first, or neither does, so demographics and the TriPM are collected twice or
not at all, silently.
- **Landing on the wrong task redirects.** SONA advertises one link, so about
half of participants open the task they are not meant to see first.
- **`_in_combined_study()` is the gate** for all of it, and it is not
`?study=sona`: this app defaults `study` to "sona" deliberately, so that
gate was true for lab sessions too and bounced three of them out of the task
the moment `OTHER_TASK_BASE_URL` appeared. It requires the SONA completion
URL as well, which every real SONA link carries and no lab session has.
**It is live, and `curl .../health` is how to know.** The Space secrets are
set, the key fingerprint matches the local one, and a code assigned to the
other task redirects to it carrying a valid signature.
That took two tries to establish, and the first answer was wrong. Probing the
Space before the redirect had finished deploying showed no redirect, which I
reported as "the secrets are not set". The deployment check I thought I had
run was a grep for a string from the new code against the served page, and it
matched an unrelated comment in `cornfield.js` -- a check that could not fail.
So: a verification that always passed, then a strong conclusion drawn from a
black-box observation that had a likelier explanation.
On its first joint use it found a third problem in a third place: the
TreasureHuntForTwo Space has no `STORAGE_SECRET`, so nicegui is signing its
session cookies with the literal fallback in its own public repository.
`app.storage.user` is not preferences -- it holds the pid, the survey code,
the task position and the running point totals the bonus is computed from, so
a forgeable cookie is a forgeable bonus, and nothing downstream would flag it
because the forged session would be internally consistent. Reported to that
task's session; the fix is one Space secret, and it must NOT match ours,
since each app signs its own cookies. Ours is set and is not the default.
`/health` exists because of that. It reports the build fingerprint of the
source actually running and, for each required secret, presence only -- never
a value, never a prefix, never a length, since a length is a real hint for a
short secret. `key_fingerprint` is `sha256(key)[:8]`, so the two apps can
confirm they hold the SAME key, which they must or every signature check
fails silently, without either revealing it.
### Consent is asked for once, by whichever task comes first
One consent covers the combined study: the form names the treasure hunt and
the corn harvest and offers the two SONA credits for finishing both. This
task asked for it unconditionally, so a participant arriving from the other
task met a form they had already signed, and declining there halts the
session and discards the data. Found by the other task's session playing the
live handoff end to end.
The report also suggested serving `content/consent_dyad.md` in the combined
study, which would have been worse than the bug. That file is the
parent/child variant: it asks about "you and your child" and still says
"There are no risks to participating in this study" in both risk sections.
`content/consent.md` is already the combined-study text and carries the
approved 19 September risk language. A test pins that, and also pins that
consent_dyad still contains the old wording, so correcting that file later
fails the test and forces someone to decide which form the combined study
should serve.
### The consent form understated the risks
The served form said "There are no risks to participating in this study" in
two places. The approved 19 September text says no such thing: it discloses
that questions may be upsetting and that the servers could be breached. Found
by the other task's session, after I had compared the two forms, flagged those
exact sentences as missing, and dismissed them as artefacts of my own text
extraction.
`content/consent_dyad.md` still says it, in both places. That is the
parent/child form, and it is not the SONA form -- different population,
different approved text. The only trace of the approved parent document on
this machine is an orphaned Word lock file with no document behind it, so it
has been left alone rather than filled in with wording copied from elsewhere.
## What changed in October
### The night block became effort to prevent a loss
The raid asked how much effort someone will spend to take from a partner.
The night watch asks how much they will spend to stop a partner losing
something the participant is paid to allow. Both options pay: resting pays a
constant credit, working pays less, and what varies is how much the partner
loses. Three loss levels, a draw stated as a percentage, four nights with a
break halfway, and a practice night with a quiz before any of it counts.
The gap between the two options is held at 1 credit throughout and the
partner's loss is what moves. That is what separates the self-weight from the
harm-weight: with both varying together, one slope answers for both. No
absolute level of the harm weight survives this design, which costs nothing,
because every hypothesis is a slope or a group difference.
Recovery was simulated for every candidate before anything was built, and two
of them were dropped because the simulations said so. Power for the group
difference is in the prereg.
### A battery after each block
The post-task questions ask about a block that has just been played. Running
them once, at the end, asked about two blocks at once and the participant
answered about whichever they remembered. Fatigue, NASA-TLX, effort impact,
motivation, task rating and strategy now run after the day task and again
after the night block, adapted to each.
### Everything about the PEOPLE runs last, once per study
Asking whether the partner was real tells the participant there is something
to doubt, so it waits until nothing is left to contaminate. One belief page
covers every partner, including the ones from the other task, and a liking
question rates each of them from 0 to 100. Split across the two batteries it
was asked twice and still missed a partner each time. The researcher
confirmed this placement on 18 October, after a day of the questions sitting
inside each block's battery instead.
That needs the other task's partners by name, so the handoff carries a signed
list of them: `pparts1` + `ppsig`, each row
`<id>:<earned>:<lost>:<kind>:<avatar>`. The bonus crosses the same way
(`pbonus1`, `plost1`, `psig`). Whichever task finishes second runs the belief
page, the liking page, the TriPM and demographics for both.
### A points screen per block, and a final screen that names everyone
Each block ends with what it paid, before its questions. The last screen then
accounts for every person by name: the participant, the three partners, what
each earned and what each lost, with the partner pictures beside the amounts.
It used to report the participant's own bonus and nothing else, in a study
whose whole point is what other people got.
### The quiz repeats until it is right
Four attempts, A wrong answer now prints the question and the
correct answer, where the retry screen used to say only that the answer was
wrong. The option order is shuffled per
participant and per question, because the correct answer was always the top
choice, and `options_order` is recorded. The TriPM and the post-task items are
shuffled the same way, with `item_order` recorded.
### Five things a playthrough found
- **A canvas with no background is a page-coloured hole** until the draw
arrives a round trip later. That was the flash reported between the last
instruction screen and the practice, and after the second calibration, for
weeks. Every canvas is now placed as a sized, coloured div and mounted in the
same round trip, with the block's own soil colour behind it.
- **A second code in one browser was the first participant's session.** The
wholesale storage wipe fired only for `?dev=1`, so two participants on a
shared machine shared a session, and a clean link opened after a debug one
kept `dev_mode`. It now fires for any raw code that differs from the stored
one.
- **The handoff never carried `watch=1`,** so half the SONA sample would have
played the day task and gone home. A verified handoff defaults the night
block on.
- **A shortened run handed over to a full-length one.** `dev`, `trials` and
`houses` now cross the handoff.
- **The device and keyboard gate ran twice,** once per task. It runs on the
first task only. Fullscreen does not survive the cross-site navigation and a
silent request in the new document is refused, because that document has no
user activation, so the request is queued onto the first Next click instead.
### Consent names the order it will actually run
The form named the treasure hunt as the first task, which is true for half the
sample. The order sentence is now filled in from the resolved allocation.
Venmo is gone from both forms and from the prereg: only an Amazon gift card
and PayPal were ever arranged.
### The SONA Study URL field holds 200 characters
Found on 18 October while setting it. The field truncates at 200 without a
word, and the first attempt was saved as `...credit_token%3Ded029`: half the
token gone, crediting nobody, with nothing on screen to say so.
The completion URL for study 457 is
https://georgetown.sona-systems.com/webstudy_credit.aspx?experiment_id=457&credit_token=<TOKEN>
Fully percent-encoded that is 208 characters before any other parameter.
Encoding only the `&` costs 194, which fits: a literal `?` and `=` inside a
query VALUE are legal and arrive intact, and `&` is the one character that
would otherwise split the outer query string. Starlette decodes the `%26`
back, so `sona_url` holds the real URL. `test_sona_url.py` measures all of
this rather than counting it by eye.
Two parameters had to come out to make room. `study=sona` is the default
already. `watch=1` is not, so a real SONA session now defaults the night
block on, keyed on the completion URL rather than on `study`, which defaults
to "sona" for every link including a bare lab one. Without that, the half of
the sample whose order starts here would have played the day task alone
while the half handed over from the other task got the night harvest.
### The launch link
One SONA study, one link. Set in SONA study 457 on 18 October:
https://princessamygdala-harvestfortwo.hf.space/?pid=%SURVEY_CODE%&sona=https://georgetown.sona-systems.com/webstudy_credit.aspx?experiment_id=457%26credit_token=<TOKEN>
`%SURVEY_CODE%` stays literal, SONA substitutes it. Only the `&` of the
completion URL is encoded, for the 200-character reason above. `study=sona`
is the default and `watch=1` is now implied by the completion URL.
**It has to be the Harvest link, not the Treasure Hunt one.** Which task a
participant starts with is decided by their survey code, and the advertised
app is the one that has to notice and redirect. Verified on the live Spaces
on 18 October: survey code 99001 resolves to Harvest first and the link
opens Harvest, with the consent form reading "You will do the corn harvest
first and the treasure hunt second". Code 99002 resolves to Treasure Hunt
first and the link bounces there carrying `study=sona`, the completion URL
intact and a signed `first=sl&fsig=`. Both halves route correctly.
Treasure Hunt's own entry redirect could not be shown to fire. That does not
matter while Harvest is the advertised link, and it is why Harvest is.
Still unverified end to end: Treasure Hunt handing BACK to Harvest when it
runs first. Every other link in the chain has been watched working.
Nothing in the data says which link a session came from. Participants are
identified by the pseudonymised survey code.
### Every session's last push was refused twice and landed nothing
`push_to_gitlab` sent the whole file list in one commits-API call as
"create", and on a 400 retried the same list as "update". A GitLab commit is
atomic. A session pushes its msgpack and its CSV every couple of minutes from
the first trial on and writes its metadata JSON once, at the end, so the final
push holds two paths that exist and one that does not: the create list is
refused for the two, the update list for the one, and both commits fail.
That final push is the only one carrying anything after the last trial.
Nothing after a block triggers another, so every stored session was truncated
at its last periodic push, and not one of the 37 session folders in the data
repo had ever received a metadata file. The two SONA RA sessions lost their
whole post-task battery that way, which is the "glitch at the end" an RA
reported.
The verb is now chosen per file, from a HEAD on the file's path. The
flipped-verb retry stays as a fallback for when that check cannot be answered.
If the combined commit still fails, each file is committed on its own, so one
unwritable path cannot take a participant's data with it.
`test_gitlab_mixed_push.py` holds a fake GitLab that refuses the same way.
The other task has the same bug, in the same duplicated file, with the same
mid-session pushes ahead of a metadata file written at the end. Reported to
that session on 2026-10-18.
### The night watch was not being read at all
`NightWatch` was in neither block list in `analysis/pe_analysis/loader.py`, so
the block the whole October redesign is about was dropped with no error: a
session that played 96 trials loaded 48. Its trials carry `night=None`, like a
day trial, because the `night` field names the raid blocks, so once added they
would have been fitted as day trials and the day model given 96 trials, half
of them with reward 0. `loader.day_mask()` is now the one place that answers
"is this a day trial", and both `session_summary` and `models.to_pyem` use it.
Two more things the refreshed mirror broke: `inclusion.audit()` raised on a
session with zero trials, and `to_pyem` indexed with an object-dtype mask.
### The RA playthrough, item by item
Pinned in `test_ra_feedback.py`, one test per reported item.
Two consent typos. The 10-second rule now names what has to be collected
("harvest all the corn within 10 seconds"), in each theme's own words.
The arrow prompt on the canvas was 13px. The 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 in words.
The harvest sound and the empty-soil click seemed to play together because
they nearly did: clearing a field is a burst of SPACE, and the press after a
successful one lands on the soil that press 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 above: that night battery was written
and never stored. The navigation half does not reproduce. Two walks in
`test_ra_feedback.py` blank-submit the strategy question and then every page of
the night battery, and the session advances one stage at a time to the end. The
records that would say where the RA actually landed are the ones the push bug
ate, so the next full run on the deployed build is what would show it.
### Eight things from the 18 October playthrough
Pinned in `test_feedback_oct18.py`, one test per reported item.
**Every partner has a face on the belief and liking pages.** The pages stay
where they were, last in the study, in the same block as the TriPM and the
demographics, and they stay deferred to whichever task finishes second. What
was wrong was that they showed an id and nothing else, and P2-63540 is not
somebody a participant can recognise.
`effort_stages.question_partner_rows()` is the roster they read, one row per
PERSON. `partner_roster()` stays as the money list, which is a different
thing: it puts the day task's two partners on one line, because their credits
land in one purse and the split between them is not recorded.
The other task's partner is the hard half. An explorer redrawn as a farmer is
a different-looking person from the one the participant met, so the picture
has to come from the app that drew it. Both Spaces now serve their own
partner faces at `order_link.PARTNER_FACE_PATH`
(`/static/partner_face_<idx>.png`), the handoff row carries the index as a
fifth field, and the asking task shows an `<img>` from the other Space. A
fetch that fails leaves the gap the row used to have, never a broken image.
Harvest's four are rendered from `static/cornfield.js` itself, in a real
browser, by `tools/render_partner_faces.py`: a PIL reimplementation would
drift from the matching screen the moment either copy changed.
**Treasure Hunt has to serve the same path** or its partner has no picture
here. The peer session was told on 18 October.
An interim version of this, live for part of 18 October, asked the questions
inside each block's battery instead. That solves the picture trivially and
costs the thing the end-of-study placement is for: the day block's belief
question would come before the night block is played. Reverted the same day.
**The rest phase says who it is for.** The work phase drew "WORK for YOU" or
"WORK for your PARTNER" and the rest phase drew the word "Rest". 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 night card titles are "WORK for PARTNER" and "REST for YOU".
**The outcome screen shows who was paid.** The overlay dims the whole board,
so the farmer and the partner standing in the scene are both behind it, and
"+6 credits for YOUR PARTNER" named somebody it did not show. One face on a
day outcome, two on a night-harvest outcome, which states what each of them
walked away with.
**The partner in the game is the partner from the reveal.** The matching
screen reveals one of four partner palettes and the live canvas drew a fifth,
fixed one, so the person by the field was not the person just introduced and
the night block's new partner looked exactly like the day one. `cfg.
partnerAvatar` carries the index, `partnerPal()` reads it, and
`partner_avatar_for(partner_id)` picks it off the id each block already passes.
**The flicker between instruction screens.** A slide mounted its canvas,
awaited the drawing call, and only then added Back and Next. The await is a
browser round trip, so the slide sat there with a blank coloured rectangle and
no buttons, and then the buttons appeared under it. `_paint_last()` draws
every canvas on a screen in one call once the last element exists. Both
slideshows, both points screens and the final screen use it.
**The hypothetical block runs on SONA.** It was skipped outside the dyadic
study, and with no role set it asked about "another participant", a stranger
the participant never met. It asks about "your parent" now (or "your child"
for a parent participant) and says the word: "In the meantime, imagine that
your parent also played the same game. How do you think they would have
done?" The dyadic study keeps "played", where somebody did.
**The TriPM did not appear, by design.** It and the demographics belong to the
person rather than to either task, so they run once, in whichever task the
participant finishes second. A Harvest-first session does not show them. The
cost is that a participant who abandons the second task is never asked them.
**Two avatars, one per task.** Harvest's `INTRO_PAGES` is welcome / mission /
avatar and a handoff arrival runs all three, so the farmer and the explorer
are separate choices. Only a dev link that is not `start=intro` skips the
front matter. The other half of the item is Treasure Hunt's.
`static/cornfield.js` joined the `/health` fingerprint in this round. Every
card, banner and outcome screen a participant reads during a trial is drawn
there, so a wording fix to the game changed no file the hash covered and the
endpoint reported the old build as the new one. Same hole `gitlab_save.py`
had on 17 October.
### The push fix is verified against a live session
`ab060ed0ac83ea86_2026-10-18_18h25.05` is the first session in the repository
with a metadata JSON. It ran the short test link end to end on the deployed
Space, reached `Night_PostTask_Strategy`, and its whole tail landed. Notebook
04 reports it.
Three things that fell out of looking at it.
**A debug run on a SONA link was in the participant pool.** `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
`gitlab.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 only between-participant randomisation is the task order,** and it was
not in the sessions frame. `task_first`, `task_position`,
`task_order_source`, `study`, `theme`, `block_order` and `dev_mode` come off
the metadata now, through `loader.metadata()`. The order cannot be recomputed
from the stored pid: that is a one-way hash of the survey code, and the order
is `crc32` of the code itself. No metadata, no order.
**Notebook 00 died on a session with no warm-up.** `int(ref or 0)` lets a
float NaN through, because NaN is truthy and `int()` on it raises. One such
session in the mirror brought down the whole data-health page, which is the
opposite of what that page is for.
### A whole session driven end to end on the live Space
`7468a997cdac870b_2026-10-18_20h50.51`, four trials a block, Harvest second.
It reached `Demographics`, finished, and everything landed: the metadata
file, all twenty-nine stages in order, and the four measures that defer to
whichever task finishes second. The TriPM stored 58 items plus its order and
count, the belief page stored both partners plus the two legacy columns, the
liking page both sliders. The raw survey code is not in the file. From the
mirror it loads into tidy frames, passes the audit (flagged `n_trials`, which
is right for a four-trial run), reaches pyEM and returns parameters. The
`dev_mode` filter keeps it out of the participant pool.
The session then redirected to the completion URL with `survey_code`
appended, which is the only value SONA credits from.
Two things the run found.
**A blank demographics page looked like an absent one.** Every empty answer
is dropped from the record, so a participant who declined all twelve
questions stored `{"measure": "demographics"}` and nothing else, which reads
exactly like a stage that never ran or a content file still on its
placeholder. It records `n_items`, `asked` and `n_answered` now, the way the
TriPM already recorded `n_items`.
**A trial takes twelve seconds, not the fifty an automated driver sees.**
Chrome throttles timers in a background tab and the game auto-pauses on
`visibilitychange`, so a driver in an unfocused tab crawls. Measured from
`startTrial` to `startTrial` with the tab awake: 12.1 s, which is the
decision plus the ten-second work or rest phase plus the reveal. Nothing to
fix in the task. A driver needs its tick in a Web Worker and
`document.hidden` masked, which is what `tools/` would want if this is ever
automated again.
### The first real participant was not credited, 20 October
The RA signed up on SONA, played both tasks through, reached the final
screen, pressed the button and SONA answered "Invalid experiment_id or
credit_token. -2".
The credit token in the Harvest Space secret had one transposed pair:
served ...<TOKEN with two characters swapped>
SONA ...<TOKEN>
Both were copied by hand off the same SONA page on 18 October, into two
different places, and they disagreed with each other from the start. The
Treasure Hunt copy happened to be the right one. Since a participant who
starts on Harvest carries Harvest's value across the handoff (`?sona=`
wins over the second task's own secret), the study was crediting the half
of the sample allocated to Treasure Hunt first and failing the other half.
Nothing in the code was wrong. The URL was built, signed, handed over and
substituted exactly as designed, `secrets_present` said true on both
Spaces, and `test_sona_url.py` asserted against the same mistyped string
it was meant to check. Four earlier probes of the completion URL returned
"Invalid survey_code", which reads as the token being accepted; an
anonymous request is redirected to the login page whatever the token is,
so those probes said nothing either way.
Fixed by reading the completion URL off `exp_info.aspx?experiment_id=457`
and setting it as `SONA_RETURN_URL` on both Spaces. Study 457, its
approval, and the advertised Study URL were all correct and untouched.
`/health` now reports `sona_return`: the experiment id, a sha256 prefix of
the whole value, its length, and whether a survey-code placeholder is
still in it. The token itself never leaves the Space. Both Spaces and the
string SONA prints agreed on one fingerprint, which is one request to check
instead of a full session played to the last screen. The fingerprint itself
is not recorded here, because rotating the token changes it and a stale
value in a log invites someone to paste the live one back in.
The participant's data is intact (`pilot/2b275882867c16b1/`,
`experiment_finished: True`). Their credit has to be granted by hand,
because the survey code is stored only as a one-way pseudonym.
### Nobody allocated to the treasure hunt first could reach part 2
A participant wrote in on 24 October: they had finished the game, the screen
offered to take them to part 2, the button produced a flash of "Saving your
data" and returned them to the same screen, and no number of clicks got them
any further.
The two Spaces were passing them back and forth. SONA advertises one link,
this task's, so a participant the allocation sends to the treasure hunt first
opens this app anyway. This app resolves the order, stores `task_first` and
`task_order_source` in the session, and redirects them to the hunt. They play
the hunt, finish it, and its final screen hands them back here with their
order signed into the URL. That return arrives in the same browser session,
and the handoff verification sat behind `if _code and "task_first" not in
app.storage.user`, which is false by then, so the signature was never read and
`task_order_source` stayed at the `hash` written before the redirect. The
entry redirect tests exactly that value, read it as a fresh arrival at the
wrong task, and sent them back to the hunt. The hunt's own final screen
forwards here again four seconds later, so the loop ran without a single click
from the participant.
`task_sl-cu-nicewebrl/web_app.py` carries the same correction, with a comment
describing the same reproduced failure. It was written there and never ported
here, so the hunt stopped bouncing people and this task went on doing it.
What the Space logs show, from the one startup on 21 October 22:28 to 25
October 18:11: `24eed3478de130de` 1416 bounces between 24 October 20:21 and 25
October 10:40, `0a5fd2a2e1416065` 98 between 22:07 and 23:09 on the 24th, and
`369806dcbe140d95` 238 between 17:55 and 18:11 on the 25th. All three finished
the hunt in full, all three have no harvest data at all, and the first of them
emailed three minutes after their loop began. Single-figure counts in the same
log are ordinary entry redirects, which is what this mechanism is for.
Two changes. A verified handoff is now read on every request that carries one,
so a signature over the participant's own code outranks whatever this app
worked out earlier. And the entry redirect counts itself: a third attempt to
send the same session away runs the task here and logs a warning, because two
apps that disagree about the order once will disagree on the next trip too,
and a participant in front of a game they can play is better placed than one
watching two Spaces hand them back and forth.
`test_sona_identity.py` walks the two-visit sequence a participant actually
walks, which the test written for this never did: it arrived with the
signature on the first request, where the old gate was open. The handoff
contract test asserted the broken shape in so many words, that the order is
"resolved only once", and now distinguishes the hash, which resolves once,
from the handoff and the signed payload, which are read every time.
## Randomization
Everything is a deterministic function of the participant identifier, so a
reload, refresh or server restart returns the same session, nothing is drawn
from a shared pool, and a withdrawal consumes nothing.
seed = crc32("pe|" + participant_id)
| what | varies by | source |
|---|---|---|
| arm: which nights, and their order | participant | allocation table, 250 pids, balanced within group |
| trial order | participant | seed |
| which side shows WORK | trial, balanced per block | seed |
| stalk positions | trial, targeted walk length | seed |
| rest-scene items | presentation position | seed |
| partner's displayed id | participant | seed |
| group: control or CU | recruited, not randomized | first digit of the pid |
## Analysis
Two halves, both in `analysis/`, with `analysis/README.md` as the entry point.
The pipeline for real data is `pe_analysis/` (pull the mirror, read the
msgpack sessions into frames, decide who is in, fit the models) with the
notebooks `00_data_health`, `01_build`, `02_sanity`, `03_fits` and
`04_sona_check`, generated by `build_pipeline_notebooks.py` and covered by
`analysis/tests/`. `04_sona_check` is the end-to-end check on a live session:
what reached the repository, whether the day task and the night watch ran as
specified, and whether a current-design session carries from the mirror to a
fitted parameter. Read `02` before taking any number out of `03`.
The design simulations are `recovery.ipynb` (parameter and model recovery for
all three blocks) and `trials_needed.ipynb` (recovery against trial count, 24
to 150, with the threshold for r >= 0.7). They read no participant data.
The two RA sessions are 37 sessions into the mirror and the only two of
current design that ran full length. Their gameplay is clean: the 24-cell day
grid run twice each, WORK balanced 12/12 per side in every block, the night
watch's credit gap constant at 1.0 with partner losses 8/14/20 against 2 across
four information conditions, no missed trials and no flood rejections. Both
worked on every self trial at every effort level, so `k_self` comes back at the
bottom of its range with nothing to estimate it from. `04` says so where the
number appears.
At the shipped designs: day-task `k_self` and `k_other` recover well and its
model recovery is 6/8 at 48 trials; Night 1's `h` clears 0.7 at 24. The
self/other difference does not reach 0.7 at any trial count tested, because it
is a difference between two quantities correlating about 0.92 across people.
The published analyses never use a per-participant difference score: they
compare the two rates with a paired test and model trial-level choices with a
mixed-effects model.
Design work that was simulated but NOT built: a three-option night block
(rest / raid / help) with the rest option paying nothing recovered `h` at +0.91,
`w` at +0.85 and the self/other gap at +0.81 over 48 trials, better than
anything currently shipped, and it has the natural baseline that a forced
choice between taking and giving lacks.
Also proposed and not built: adding a reward-sensitivity parameter to the day
model. The day task crosses reward against effort fully (correlation 0.00,
rank 4 of 4), so it can separate "values their rewards less" from "finds effort
costlier for them". The current model attributes every self/other difference to
effort because reward sensitivity is not in it. This is a model change only,
refittable on data already collected.
## Still to do
1. **One real session on the advertised SONA link**, with a TEST_ pid, before
any participant sees it. Nothing has tested the live SONA study: whether
SONA substitutes `%SURVEY_CODE%`, and whether the completion URL grants the
credit.
2. Twelve `TO CONFIRM` markers in `docs/prereg/prereg_text.py`, each one a
number or a decision only the researcher can settle.
3. The task figure, with screenshots of the game as it renders now. The current
one is drawn.
4. Open on the other task's side, flagged there and not dropped: the practice
house is hard to find, and the "press any arrow key" wording.
5. A second full RA playthrough on the deployed build, which is the only way
to tell whether the blank-answer navigation report is real. The build the
two RA sessions ran could not store anything after their last trial.
6. Review Jo Cutler's Gorilla material: `IS_R_code.Rmd` and
`data_exp_232929-v5_task-vhka.csv`, both untracked in the repo root.
7. Retune the effort fractions once real success rates are available under the
new warm-up.
## Cosmetic, noticed and left alone
- On the decision screen the figure between the two cards is drawn at the
horizon and the cards start just below it, so only the head and shoulders
show. It is the same on every trial type, so it biases nothing.
- Night 1's intro carries "work **secretly** in THEIR field" and nothing more
explicit about not being found out. `h` is meant to measure harm aversion
rather than fear of being caught, and one adverb is what currently separates
them. Participant copy, so not changed here.
- `NIGHT2_PAIRS` lists (6, 6) twice of six, so a third of night 2 offers the
same amount to both pockets. Those trials are the most informative ones for
`w` and the least for payoff sensitivity, and the recovery simulations were
run on exactly this set, so it is deliberate rather than a slip -- but it is
worth knowing when reading the block's effective trial count.
- `decisionMs` is passed to the canvas and recorded, and nothing enforces it:
the decision phase has no time limit, which is what the instructions say.
## Questions that need the researcher, not code
**Settled.** The bonus is paid by Venmo gift card, Amazon gift card or PayPal;
the 19 September consent revision says so and the served copy now matches it.
> Superseded 2026-10-14: only an Amazon gift card and PayPal are set up, so
> both consent forms and the prereg now name those two. Venmo was never
> arranged, and a form that offers it promises something the study cannot do.
**Open, and blocking a pilot.** The approved parent/child consent document,
so `content/consent_dyad.md` can stop saying there are no risks. The payment
mechanism. And the SONA study listing
itself, which is manual work on SONA's own site.
**Resolved in code.** 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 stores the
SONA survey code AS the pid, in every filename and on every record. That is
the opposite of what participants agree to, and it is in both the 25 August
and the 19 September forms.
It is fixable without touching the form, because the raw code is never needed
after the redirect -- the completion URL carries it back to SONA. Deriving the
pid as a keyed one-way hash of the survey code, and never persisting the raw
value, makes the sentence literally true, keeps the pid stable and unique, and
stays recomputable from a SONA id if a bonus is ever disputed. Not implemented:
it changes how every participant is identified, so it is the researcher's call.
Separately, Venmo/Amazon/PayPal all need contact details the consent form does
not mention collecting. The IRB is said to cover it. Wherever the email lands,
it must be somewhere the research dataset cannot see, linked only by a payment
code.
**The credit rate is fine; the documents are stale.** 25 credits to the dollar,
capped at $6 a purse, appears only in the task and the export and they agree.
The reachable maximum is 8 x (3+6+10) = 152 credits a purse, so the cap bites
at 150 and "up to $6" is honest but needs near-perfect performance, which is
what a cap should do. What disagrees is the prose: the instructions docx and
the Gorilla procedure both still describe rest = 1 credit and rewards 2/6/10,
which is the pre-September design.
Worth knowing either way: raising the rest credit from 1 to 2 moved the
do-nothing payoff from 17% to 32% of the maximum. The design simulations were
run at 2, so recovery accounts for it, but a participant can now take a third
of the bonus without working.
**The calibration floor is a symptom.** Four distinct effort levels need a
reference of at least 5: at 4 the ladder is 1/1/2/3 and two of the four design
cells are duplicates, so that participant contributes a three-point effort
curve. Raising the floor to 5 buys them the fourth level, and costs them a top
level at 100% of their real capability instead of 75% -- the floor inflates a
weak participant's reference either way, and this extends that to anyone at
exactly 4. Because the model fits CHOICES rather than successes, an
unachievable level still yields a usable choice; the risk is that k absorbs
"I cannot" along with "I will not", which is already true at a floor of 4.
Recalculating the pilot sessions' warm-up counts under the new geometry
(presses per stalk 2.8 -> 6.2, same press rate) puts their references at 4 to
9, median about 6. Two of the eight legitimate sessions land on the floor. So
the floor now binds in real cases where it used to be a guard against nothing.
The larger lever is the warm-up itself: at a reference of 5 to 8 one stalk is
12 to 20% of capability, so the effort manipulation is coarse for everyone, not
just at the floor. Fifteen seconds instead of ten would raise every reference
by about half without touching the geometry or the comparability with the
published work.
(The same recalculation shows the two 0007 sessions pressing at 30 and 58 keys
a second. That is the flooding the 50 ms guard now caps at 20.)
## Restarting work
.venv/bin/python -m pytest -q # 516 tests
deno eval "new Function(await Deno.readTextFile('static/cornfield.js'))"
cd analysis
/Users/md1864/miniconda3/envs/py3_afni_mid/bin/python build_notebook.py
/Users/md1864/miniconda3/envs/py3_afni_mid/bin/jupyter nbconvert --execute \
--inplace --ExecutePreprocessor.timeout=-1 recovery.ipynb
Edit the `build_*.py` generators rather than the notebooks. pyEM lives in the
`py3_afni_mid` conda environment, and three unrelated packages import as
`pyem`, so use that interpreter explicitly.
|