Spaces:
Running
Running
Commit History
-
Rewrite the instruction and quiz copy
Emphasis now marks quantities rather than pronouns. The screens bolded every "you" and "your", which competes with the one contrast the task is built to measure; capitalization carries YOU against YOUR PARTNER instead, and bold is left for the credit amounts and the ten-second limit. Screen changes: the partner screen is headed "You've been matched!"; the choice screen is "Work or Rest" with one bullet per option; the practice screen is a single line, since each practice round already carries its own prompt and listing them first spends attention before the participant has done anything; the block intro drops its closing sentences. Quiz: "Let's check your understanding!", a "Quiz (3/5)" counter, full-sentence options ending in a period, and the partner always written as YOUR PARTNER to match the round banner. The retry screen no longer repeats the instructions the participant has just failed to apply, which was a wall of text at the moment attention is lowest. Items were re-read aga…11ad76e
-
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
-
Add Qualtrics-style confirm-skip dialog to questionnaires; test the finish reorder
Ported sl-cu-nicewebrl's confirm-dialog pattern: Continue is always clickable on slider batteries and the free-text strategy page, but if something's unanswered a dialog asks "are you sure you want to continue without answering?" (Go back and answer / Continue anyway). belief_stage deliberately keeps its existing Submit-then-lock pattern instead, matching sl-cu's own _belief_page (which explicitly does not use the confirm-dialog there). Updated test_back_navigation.py's existing Back-chain test for the new confirm dialog, added a test confirming the dialog is skipped once a slider has actually been touched, and added test_finish_reorder.py covering the credits-bridge screen and the simplified final screen. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>45fb1c1 -
Preserve already-entered answers on Back, lock quiz Back after submit
- questionnaires.py: went_back returns for nasa_tlx/effort_impact/motivation/ effort_exerted/task_rating/hypothetical (first battery)/belief/strategy now include the already-collected values instead of discarding them, so a last-record-wins export doesn't blank a good answer just because the participant clicked Back afterward. - questionnaires.py (_ask_mc): disable the Back button once an answer is submitted for the CURRENT quiz question, so a participant can't see the correct-answer explanation and then re-attempt with the answer known. Back to a previous already-answered question is unaffected. - questionnaires.py (fatigue_stage): trim the "post" intro since the new QuestionnaireTransition screen right before it already says the game is over. - test_back_navigation.py: replace a near-tautological or-joined assertion with two real ones, and make the file read path-independent. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>e8e2c75 -
Add cross-stage Back navigation to the post-task questionnaire chain
_slider_battery gains allow_back and now returns (values, went_back); nasa_tlx/effort_impact/motivation/effort_exerted/task_rating/belief/ hypothetical/strategy stages wire Back to _go_back_one_stage(). Fatigue stays Back-disabled by design. self_esteem_stage's call site (not part of this chain) is updated to match the new return shape so it doesn't break. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>d818021 -
Rewrite integration test to drive real Back button UI clicks
- Rewrite test_comprehension_back_returns_to_previous_question to actually exercise the Back button by: clicking radio option, Submit, Continue, verifying Back appears, clicking Back, verifying return to Q1 - This tests the actual _ask_mc Back button wiring and _comp_round loop logic end-to-end through the real UI (not mocked) - Remove unused imports from test_comp_round_back_navigation (asyncio, AsyncMock, ui) - Update docstrings to accurately describe what each test covers: - Wording test: source code verification of prompt text - Integration test: UI-driven Back button flow through all 5 steps - Unit test: _comp_round rewind logic with mocked _ask_mc Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>8127776 -
Fix Task 1: Add precondition documentation and comprehensive Back navigation test
- Document idx >= 2 precondition in _go_back_one_stage() docstring (required by experiment framework stage ordering; idx < 2 cases don't rewind correctly) - Add test_comp_round_back_navigation unit test that directly verifies Back logic with mocks: user goes back on Q2, Q1 is re-asked, both eventually answered - Clean up dead code from test file (unused with block, unused imports) - Simplify integration test to verify quiz page loads (full UI interaction testing requires real browser; unit test now covers the critical Back mechanism logic) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>24c3f5a -
Add comprehension quiz Back navigation + fix 'YOU round' wording
- Add _go_back_one_stage() helper function for cross-stage rewind primitive - Fix "YOUR round" -> "YOU round" wording in comp_who_self quiz prompt - Add optional Back button to _ask_mc() with can_back parameter - Rewrite _comp_round() to support within-quiz Back navigation - Add test_back_navigation.py with wording and integration tests Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>32bd232