Commit ·
df66332
1
Parent(s): cabb4a3
Restructure belief/liking into one per-partner check, plus 3 smaller fixes
Browse filesBelief and liking now run once, covering every partner across both
tasks (not just this task's own), before TriPM/demographics, on
whichever task finishes second. Adds a kind field to the handoff's
partner-row format so the belief question's wording (receive vs. lose)
matches each partner's actual mechanic; backward compatible with the
3-field format.
Also: fixed a real bug where the experimenter ID-entry screen was
showing on every non-dyad session (role was never set outside dyad
mode, but was required to skip it); added partner numbering to the
match-reveal screen; quiz feedback now states the correct answer
outright instead of only explaining it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Files changed (5)
- PROJECT_LOG.md+56
- experiment_structure.py+6-1
- order_link.py+19-5
- questionnaires.py+76-42
- web_app.py+49-20
1056 unmodified lines1057105810591060106110621056 unmodified linesof which side sent it.- **Verified**: `web_app` imports cleanly; `test_payment.py`'s 21 tests still pass.## 7. In progress / open items- **Is a pilot actually ready to go out? NOT YET — item 48 found a real handoff bug thefirst actual live two-task playthrough surfaced.** The SONA study listing exists (item 43)1056 unmodified lines105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181056 unmodified linesof which side sent it.- **Verified**: `web_app` imports cleanly; `test_payment.py`'s 21 tests still pass.57. **Third review list — the structural restructuring plus four smaller fixes(2026-10-14)**: "All belief questions about partners need to be at the end not just atthe end of the harvest for both," one belief question and one 0-100 liking slider perpartner, "before tripm," covering all three partners across both tasks, asked ONCE bywhichever task finishes second — not per task. A single-task session asks the same thingabout just its own partner.- **`order_link`'s partner-row format gained a 4th field, `kind`** (`"hunt"` for thistask; `task_pe-cu-nicewebrl` sends `"day"`/`"night"`) — the belief question's verbdepends on it: earned-for partners are asked if they'd really RECEIVE it, loss-onlypartners (their night harvest) if they'd really LOSE it. `verify_partner_rows` acceptsboth the old 3-field format and the new 4-field one, so the two tasks' deploys can landin either order without either breaking.- **`_belief_page` (one partner, no kind-awareness) replaced entirely** by`_belief_multi_page(rows)` (one Yes/No per partner, verb picked by `_belief_verb`,falling back to comparing earned/lost when `kind` is empty) and`partner_checks_screen(container, rows)`, which runs belief then liking(`_slider_page`, reused as-is) for the given list and returns `belief_p#`/`liking_p#`plus `partner_order` (the raw ids, position traceable to person afterward). The old`belief_check_screen` (single-partner, item 53) is gone — superseded one turn after itwas added.- **Deferral widened from "task_position == 2" to "in a combined study at all"**:`post_game_questionnaire_stage()` now defers whenever `task_position in (1, 2)`, notonly 2 — position 1 never consumes the flag locally (the participant leaves for theother task first), but the flag being set is harmless there and correct for position 2.A standalone/non-combined session (the flag never set) asks immediately, own partneronly, via the same `partner_checks_screen` with a one-row list.- **`finish_experiment()`'s general-measures block now asks partner checks FIRST, beforeTriPM and demographics** (previously TriPM/demographics ran with belief deferred toAFTER them, item 53 — this reverses that given the user's explicit order), built from`other_task_partner_rows + [own_row]` (own `kind="hunt"`) — the other task ran first inthis branch, so its rows lead.- **Three smaller items from the same list, same pass**:- *(3) No id-entry screen between the two task halves*: found a REAL bug while checkingthis, not assuming it was already fine. `run_intro()`'s pid-screen gate required BOTH`pid` and `role` to skip the experimenter setup screen, but `role` is only ever set indyad mode — every non-dyad session (every SONA/combined-study run) left `role` unsetforever, so this screen was showing on EVERY such session's first visit, handoffarrivals included. Fixed: role is now only required when `dyad_mode` is actually on.- *(4) Partner numbering at the match reveal*: a second-task participant's "Meet yourpartner" screen now says "This is your {ordinal} partner in the study — a new one"when the count is known (`other_task_partner_rows`'s length + 1); says nothing extrawhen it isn't, rather than guessing a number.- *(5) Quiz feedback states the answer, not just an explanation of it*: a wrong answer'sfeedback now opens with "**The statement is TRUE/FALSE.**" before the explanationtext, so the question (already shown above, unchanged) and the stated answer are bothplainly on screen, not just the question plus a paraphrase.- **Deliberately not done this pass** (scope triage, flagged rather than silentlydropped): (1) practice house hard to find, (2) the "press any arrow key" toast wording,(6) TriPM's inconsistent above/left-aligned layout, (7) per-block points screens namingonly that block's partner, (8) partner avatars on those screens. All four remain open.- **Verified**: `encode_partner_rows`/`verify_partner_rows` round-trip with `kind` andreject a tampered amount; the legacy 3-field format still verifies, reading `kind` as`""`; `_belief_verb` picks the right verb for `"night"`, for any other non-empty kind,and for the empty-kind earned/lost fallback; `web_app`/`questionnaires`/`order_link`/`experiment_structure` import cleanly; `test_payment.py`'s 21 tests pass.## 7. In progress / open items- **Is a pilot actually ready to go out? NOT YET — item 48 found a real handoff bug thefirst actual live two-task playthrough surfaced.** The SONA study listing exists (item 43)
1116 unmodified lines11171118111911201121112211231116 unmodified linestxt = re.sub(r"^\s*(correct|not quite)\s*[—\-:,]?\s*", "", feedback, flags=re.I)tag = ('<span style="color:#27ae60;font-weight:bold">🎉 Correct!</span> ' if okelse '<span style="color:#e74c3c;font-weight:bold">😅 Not quite.</span> ')fb.set_content(tag + txt)btn_t.disable()btn_f.disable() # once answered, can't choose againcont.set_visibility(True)1116 unmodified lines1117111811191120112111221123112411251126112711281116 unmodified linestxt = re.sub(r"^\s*(correct|not quite)\s*[—\-:,]?\s*", "", feedback, flags=re.I)tag = ('<span style="color:#27ae60;font-weight:bold">🎉 Correct!</span> ' if okelse '<span style="color:#e74c3c;font-weight:bold">😅 Not quite.</span> ')# The statement stays visible above, but a wrong answer only implied the right one# through the explanation text -- say it outright, so the question and the answer# are both plainly stated, not just the question plus a paraphrase of the answer.answer_line = ("" if ok elsef'<br><b>The statement is {"TRUE" if correct else "FALSE"}.</b> ')fb.set_content(tag + answer_line + txt)btn_t.disable()btn_f.disable() # once answered, can't choose againcont.set_visibility(True)
180 unmodified lines1811821831841851861871881891901911921931941951961972 unmodified lines2002012022032042052062072082092103 unmodified lines214215216217218219220221222223224180 unmodified linesdef encode_partner_rows(rows):""""<id>:<earned>:<lost>|..." for the handoff.One entry per PERSON, not one total, so the task that finishes second can name eachpartner across both tasks and say what that person walked away with -- a total cannot saywhat any one of them ended up with, which is what the participant actually decided. Orderis the order the participant met them."""out = []for r in rows or []:rid = "".join(c for c in str(r.get("id", ""))[:40] if c in _ROW_ID_OK)out.append(f"{rid}:{float(r.get('earned', 0)):.2f}:{float(r.get('lost', 0)):.2f}")return "|".join(out)2 unmodified linesdef verify_partner_rows(survey_code, rows_str, signature):"""[{"id", "earned", "lost"}] for a genuine encode_partner_rows string, else [].Never raises: a missing, unsigned or malformed list means the other task said nothingabout its partners (or is running a version that only sends the pbonus1=/plost1= totals),and the screen then names only the partners it already knows about."""if not rows_str or not signature:return []3 unmodified linesout = []for part in str(rows_str).split("|"):bits = part.split(":")if len(bits) != 3:return []rid = "".join(c for c in bits[0][:40] if c in _ROW_ID_OK)try:out.append({"id": rid, "earned": float(bits[1]), "lost": float(bits[2])})except ValueError:return []return out180 unmodified lines1811821831841851861871881891901911921931941951961971981992002012022032 unmodified lines2062072082092102112122132142152162172182192202213 unmodified lines225226227228229230231232233234235236237238180 unmodified linesdef encode_partner_rows(rows):""""<id>:<earned>:<lost>:<kind>|..." for the handoff.One entry per PERSON, not one total, so the task that finishes second can name eachpartner across both tasks and say what that person walked away with -- a total cannot saywhat any one of them ended up with, which is what the participant actually decided. Orderis the order the participant met them.`kind` is a short slug (no ":" or "|", since those are the delimiters) saying what kind ofpartner this is, because the belief-check wording depends on it: a partner you earned foris asked whether they'd really RECEIVE it, a partner who only loses (task_pe-cu-nicewebrl'snight harvest) is asked whether they'd really LOSE it. This task's own kind is "hunt"."""out = []for r in rows or []:rid = "".join(c for c in str(r.get("id", ""))[:40] if c in _ROW_ID_OK)kind = str(r.get("kind", "")).replace(":", "").replace("|", "")[:16]out.append(f"{rid}:{float(r.get('earned', 0)):.2f}:{float(r.get('lost', 0)):.2f}:{kind}")return "|".join(out)2 unmodified linesdef verify_partner_rows(survey_code, rows_str, signature):"""[{"id", "earned", "lost", "kind"}] for a genuine encode_partner_rows string, else [].Never raises: a missing, unsigned or malformed list means the other task said nothingabout its partners (or is running a version that only sends the pbonus1=/plost1= totals),and the screen then names only the partners it already knows about.Accepts both the 3-field format (no `kind`, from before this field existed) and thecurrent 4-field one, so neither side breaks depending on which deploys first. A missing`kind` reads as "" -- the belief-check wording then falls back to earned/lost amounts toguess the right phrasing (see questionnaires._belief_verb)."""if not rows_str or not signature:return []3 unmodified linesout = []for part in str(rows_str).split("|"):bits = part.split(":")if len(bits) == 3:bits = bits + [""]if len(bits) != 4:return []rid = "".join(c for c in bits[0][:40] if c in _ROW_ID_OK)kind = bits[3][:16]try:out.append({"id": rid, "earned": float(bits[1]), "lost": float(bits[2]), "kind": kind})except ValueError:return []return out
190 unmodified lines19119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723883 unmodified lines322323324325326327328329330331332333334335336337190 unmodified linesreturn renderdef _belief_page():"""Manipulation check: did they believe the partner's payout was real? Answering locks theoptions (matching the original design), but Back still lets them revisit and re-answer."""async def render(container, answers, can_back):nicewebrl.clear_element(container)chosen = {"v": answers.get("believed_partner_paid")}result = {"action": None}ev = asyncio.Event()with container.style("align-items:center; max-width:640px;"):ui.markdown("Did you believe that the other person would receive the money you ""earned for them?")radio = ui.radio({"Yes": "Yes", "No": "No"}, value=chosen["v"]).props("color=primary")submit = ui.button("Submit")cont = _nav_row(result, ev, can_back)already = chosen["v"] is not Nonecont.set_visibility(already)if already:radio.disable()submit.disable()def go():if radio.value is None or chosen["v"] is not None:returnchosen["v"] = radio.valueradio.disable()submit.disable()cont.set_visibility(True)submit.on_click(go)await ev.wait()return result["action"], {"believed_partner_paid": chosen["v"]}return renderasync def belief_check_screen(container):"""The partner-belief/suspicion check, asked on its own with no Back -- used whenpost_game_questionnaire_stage() defers it past TriPM/demographics for a participantfinishing second (see that function and web_app.finish_experiment)."""_, vals = await _belief_page()(container, {}, False)return valsdef post_game_questionnaire_stage():83 unmodified linesanswers.update(vals)idx = max(0, idx - 1) if action == "back" else idx + 1# Belief/suspicion check: asked last, after everything else. On a participant finishing# SECOND, "everything else" includes the combined-study TriPM/demographics, which run# afterward in finish_experiment() -- deferred there instead of asked here, so answering# it doesn't tip the participant off before those self-report measures run. Revealing# that something is being checked, mid-battery, colors every answer that follows it.if app.storage.user.get("task_position") == 2:app.storage.user["_belief_check_deferred"] = Trueelse:_, belief_vals = await _belief_page()(container, {}, False)answers.update(belief_vals)return dict(measure="post_game_questionnaire",dyad_mode=int(dyad_mode()),190 unmodified lines19119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526683 unmodified lines350351352353354355356357358359360361362363364365366367368369370371190 unmodified linesreturn renderdef _to_money(points):"""10-coin scale -> $1 per 100 points, capped at $6 -- same formula as web_app's ownto_money, duplicated rather than imported (this module has no other dependency onweb_app, and the formula is fixed to this task's point scale, not something the twocopies could drift apart on by accident)."""return max(0.0, min(6.0, int(points) / 100.0))def _belief_verb(row):""""receive" or "lose" -- which the belief-check question for this partner should askabout. By `kind` when one arrived (task_pe-cu-nicewebrl's night harvest sends "night" fora partner who only ever loses; everything else, including this task's own "hunt", isearned-for). Falls back to comparing earned/lost when `kind` is missing or empty -- anolder deploy on either side that predates this field, or one the signer chose not to set."""kind = (row.get("kind") or "").lower()if kind == "night":return "lose"if kind:return "receive"return "lose" if (row.get("lost") or 0) > (row.get("earned") or 0) else "receive"def _belief_multi_page(rows):"""One Yes/No belief question per partner in `rows` (met order), wording per_belief_verb. Continue enables once every one is answered; no Back (matches thesingle-partner original's locked-once-answered behaviour, generalised to N partners)."""async def render(container, answers, can_back):nicewebrl.clear_element(container)result = {"action": None}ev = asyncio.Event()radios = {}with container.style("align-items:center; max-width:680px;"):ui.markdown("Please indicate, for each partner, whether you believed this was real.")for idx, row in enumerate(rows, start=1):key = f"belief_p{idx}"verb = _belief_verb(row)ui.markdown(f"**Partner {idx}:** Did you believe that this partner would "f"really {verb} the money involved?")radios[key] = ui.radio({"Yes": "Yes", "No": "No"}, value=answers.get(key)).props("color=primary")_nav_row(result, ev, can_back,is_complete=lambda: all(r.value is not None for r in radios.values()))await ev.wait()return result["action"], {k: r.value for k, r in radios.items()}return renderasync def partner_checks_screen(container, rows):"""Belief (Yes/No) then liking (0-100 slider), one of each per partner in `rows` (metorder) -- the belief/suspicion manipulation check, generalised from one partner to everypartner across both tasks. Returns a flat dict: belief_p#/liking_p# per position, pluspartner_order (the raw ids, so a position can be traced back to who it was). {} if `rows`is empty (nothing to ask)."""if not rows:return {}pages = [_belief_multi_page(rows),_slider_page(None, "Please indicate how much you liked each partner below.",[(f"liking_p{i}", f"Partner {i}") for i in range(1, len(rows) + 1)],"Not at all", "A lot"),]answers = {}idx = 0while idx < len(pages):action, vals = await pages[idx](container, answers, can_back=(idx > 0))answers.update(vals)idx = max(0, idx - 1) if action == "back" else idx + 1answers["partner_order"] = [r.get("id") for r in rows]return answersdef post_game_questionnaire_stage():83 unmodified linesanswers.update(vals)idx = max(0, idx - 1) if action == "back" else idx + 1# Belief/liking checks: run ONCE, covering every partner across BOTH tasks, on# whichever task finishes SECOND -- not per task. A combined-study participant (either# position) defers to web_app.finish_experiment, which asks it there with the full# list (this task's position 1 never consumes the flag locally; the participant leaves# for the other task before reaching it). A standalone/single-task session asks right# here, covering just its own partner -- same code path web_app uses, shorter list.if app.storage.user.get("task_position") in (1, 2):app.storage.user["_belief_check_deferred"] = Trueelse:own_row = {"id": str(app.storage.user.get("partner_id") ororders.partner_id_for(app.storage.user.get("pid", "") or "0001")),"earned": _to_money(app.storage.user.get("partner_points", 0)),"lost": 0.0, "kind": "hunt",}answers.update(await partner_checks_screen(container, [own_row]))return dict(measure="post_game_questionnaire",dyad_mode=int(dyad_mode()),
645 unmodified lines64664764864965065165265365465565665712 unmodified lines6706716726736746752 unmodified lines678679680681682683684113 unmodified lines798799800801802803804805806122 unmodified lines929930931932933934935936937938939940941942943944945946947948949950127 unmodified lines1078107910801081108210831084645 unmodified lines"width:220px; max-width:80vw; margin:4px 0;")ui.markdown(E.COVER_PART1)# Shown only to a participant arriving here as their SECOND task, so they don't carry an# assumption from the task they just finished into this one. Mirrors# task_pe-cu-nicewebrl's equivalent note on its own cover story.if app.storage.user.get("task_position") == 2:ui.markdown("_This is a new adventurer and a new partner — different from the ones in the ""task you just finished._")elif page == "cover_part3":ui.markdown("## Meet your partner")ui.markdown(E.cover_part3(app.storage.user.get("role", "c")))12 unmodified linesui.spinner(size="sm")ui.markdown("🔎 Searching our community database for a partner…")async def reveal_partner():await asyncio.sleep(2.2)match_row.clear()2 unmodified lines.style("width:72px; height:72px;")ui.html(f'<div><span style="color:#27ae60;font-weight:bold">✓</span> 'f'You were matched with your partner (<b style="color:#1d6fb8">#{partner}</b> '"from our community database).</div>")ui.timer(0.1, reveal_partner, once=True)elif page == "cover_part4":ui.markdown("## Turning coins into money")113 unmodified linesapp.storage.user["consented"] = Trueawait desktop_gate(container) # keyboard-device check + fullscreen prompt# if BOTH the ID and role were passed in the URL (?pid=...&role=...), skip the# experimenter set-up screen; if either is missing, show it (role must always be picked)if not app.storage.user.get("pid") or not app.storage.user.get("role"):await pid_screen(container)idx = 0while idx < len(INTRO_PAGES):122 unmodified lines# against the shared allocation log) -- reused here rather than re-querying.sona_first = (app.storage.user.get("task_first") == order_link.THIS_TASK) if treat_as_combined else True# Combined-SONA-study only: general self-report measures (demographics, TriPM) run once,# for whichever task the participant finishes SECOND -- these belong to the combined study,# not to this task specifically (see order_link.py and the matching consent gate in# run_intro()). Collected BEFORE save_data() below so the results land in app.storage.user# in time to be captured by this session's saved metadata like everything else there.if treat_as_combined and not sona_first and not app.storage.user.get("general_measures_done"):# No interstitial "a couple more things" click-through -- straight into TriPM, then# demographics (TriPM first: matches task_pe-cu-nicewebrl's ordering).app.storage.user["tripm"] = await Q.tripm_screen(container)app.storage.user["demographics"] = await Q.demographics_screen(container)# The belief/suspicion check was deferred past here by post_game_questionnaire_stage (see# questionnaires.py) specifically so it would land after TriPM and demographics, not before# them -- asking it earlier tips off a participant that something is being checked, which# then colors every self-report answer that follows. Run it now, last.if app.storage.user.pop("_belief_check_deferred", False):app.storage.user["belief_check"] = await Q.belief_check_screen(container)app.storage.user["general_measures_done"] = True# save quietly (no feedback prompt)127 unmodified lines# that. `id` is bare -- task_pe-cu-nicewebrl's own id ("P2-63540") is bare too,# and each screen adds its own wording around it; a label baked in here would# double up once their wording wraps around it too.partner_rows=[{"id": str(partner), "earned": to_money(partner_pts), "lost": 0.0}],# A shortened run hands over as a shortened run -- see order_link.other_task_url.dev=bool(app.storage.user.get("dev_mode")),dev_trials=app.storage.user.get("dev_trials"))645 unmodified lines64664764864965065165265365465565665765812 unmodified lines6716726736746756766776786796806816826836846856866876886892 unmodified lines692693694695696697698113 unmodified lines812813814815816817818819820821822823824825122 unmodified lines948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978127 unmodified lines11061107110811091110111111121113645 unmodified lines"width:220px; max-width:80vw; margin:4px 0;")ui.markdown(E.COVER_PART1)# Shown only to a participant arriving here as their SECOND task, so they don't carry an# assumption from the task they just finished into this one. The specific partner NUMBER# (which one this is, across both tasks) is said at the actual match reveal below# (cover_part3), not here -- this is just the general heads-up.if app.storage.user.get("task_position") == 2:ui.markdown("_This is a new adventurer — different from the one in the task you just ""finished._")elif page == "cover_part3":ui.markdown("## Meet your partner")ui.markdown(E.cover_part3(app.storage.user.get("role", "c")))12 unmodified linesui.spinner(size="sm")ui.markdown("🔎 Searching our community database for a partner…")# On a second-task arrival, say which numbered partner this is across both tasks (e.g.# "your third partner") rather than just "a partner" -- the participant already met the# other task's partner(s) and should know this one is new, not a repeat. Only when the# count is actually known (the handoff carried the itemised list, item 55) -- otherwise# say nothing rather than guess a number.ordinal_note = ""if app.storage.user.get("task_position") == 2:n_before = len(app.storage.user.get("other_task_partner_rows") or [])if n_before:ordinals = {1: "second", 2: "third", 3: "fourth", 4: "fifth"}ordinal_note = (f" This is your <b>{ordinals.get(n_before, f'{n_before + 1}th')}</b> ""partner in the study — a new one.")async def reveal_partner():await asyncio.sleep(2.2)match_row.clear()2 unmodified lines.style("width:72px; height:72px;")ui.html(f'<div><span style="color:#27ae60;font-weight:bold">✓</span> 'f'You were matched with your partner (<b style="color:#1d6fb8">#{partner}</b> 'f"from our community database).{ordinal_note}</div>")ui.timer(0.1, reveal_partner, once=True)elif page == "cover_part4":ui.markdown("## Turning coins into money")113 unmodified linesapp.storage.user["consented"] = Trueawait desktop_gate(container) # keyboard-device check + fullscreen prompt# If the ID was passed in the URL (?pid=...), skip the experimenter set-up screen; if it's# missing, show it. Role is only required IN DYAD MODE (the role picker on this same# screen) -- a non-dyad session (every SONA/combined-study run) never sets role at all, so# requiring it unconditionally showed this screen on every such session regardless of pid,# including a genuine cross-task handoff arrival, where a participant should see nothing# between the two tasks' title screens.if not app.storage.user.get("pid") or (app.storage.user.get("dyad_mode") and not app.storage.user.get("role")):await pid_screen(container)idx = 0while idx < len(INTRO_PAGES):122 unmodified lines# against the shared allocation log) -- reused here rather than re-querying.sona_first = (app.storage.user.get("task_first") == order_link.THIS_TASK) if treat_as_combined else True# Combined-SONA-study only: general self-report measures (belief/liking checks, TriPM,# demographics) run once, for whichever task the participant finishes SECOND -- these# belong to the combined study, not to this task specifically (see order_link.py and the# matching consent gate in run_intro()). Collected BEFORE save_data() below so the results# land in app.storage.user in time to be captured by this session's saved metadata like# everything else there.if treat_as_combined and not sona_first and not app.storage.user.get("general_measures_done"):# Belief + liking, covering EVERY partner across both tasks (not just this task's own),# in the order the participant met them -- the other task ran first in this branch, so# its rows (already carrying `kind`, see order_link.verify_partner_rows) come before this# task's own. Asked first, before TriPM/demographics, per the user's explicit ordering.if app.storage.user.pop("_belief_check_deferred", False):partner_pts = int(app.storage.user.get("partner_points", 0))partner = app.storage.user.get("partner_id") or orders.partner_id_for(app.storage.user.get("pid", "") or "0001")to_money = lambda points: max(0.0, min(6.0, points / 100.0))own_row = {"id": str(partner), "earned": to_money(partner_pts), "lost": 0.0,"kind": "hunt"}other_rows = app.storage.user.get("other_task_partner_rows") or []app.storage.user["partner_checks"] = await Q.partner_checks_screen(container, other_rows + [own_row])# No interstitial "a couple more things" click-through -- straight into TriPM, then# demographics (TriPM first: matches task_pe-cu-nicewebrl's ordering).app.storage.user["tripm"] = await Q.tripm_screen(container)app.storage.user["demographics"] = await Q.demographics_screen(container)app.storage.user["general_measures_done"] = True# save quietly (no feedback prompt)127 unmodified lines# that. `id` is bare -- task_pe-cu-nicewebrl's own id ("P2-63540") is bare too,# and each screen adds its own wording around it; a label baked in here would# double up once their wording wraps around it too.partner_rows=[{"id": str(partner), "earned": to_money(partner_pts), "lost": 0.0,"kind": "hunt"}],# A shortened run hands over as a shortened run -- see order_link.other_task_url.dev=bool(app.storage.user.get("dev_mode")),dev_trials=app.storage.user.get("dev_trials"))
PROJECT_LOG.md+56
experiment_structure.py+6-1
order_link.py+19-5
questionnaires.py+76-42
web_app.py+49-20