# INTERFER — oTree experimental pilot — Version 16 **Pilot build, not approved for recruitment until the checks below are completed.** ## Starting the project Install Python 3.11/3.12, run `pip install -r requirements.txt`, then `otree devserver` from this folder. Create a **new** test session after changing the app. If CSS changes do not appear, use **Ctrl+F5 / Ctrl+Shift+R** or clear the browser cache. The ZIP has exactly **one top-level folder**: `INTERFER_otree_v16`. ## Configurable parameters In `interfer_shared.py`, class `Config` (shared by all four oTree apps): - `W = 8.00` — total initial earnings for a worker pair ($8/$0) - `TASK_SECONDS = 3 * 60` — real-effort duration - `BASE_PAYMENT = 5.00` — proposed Prolific base reward; total available budget for all participant payments is $4,875 after platform fees, targeting 500 participants. Budget and duration remain subject to pilot validation. - `ESTIMATED_MINUTES = 30` — **provisional estimate**, subject to real pilot timing - `BELIEF_BONUS = 1.00` — possible belief-bonus amount - `TRANSFER_STEP = 0.10` — transfer increment - `PRIORS = (25, 50, 75)` — prior chance of Luck, percent - `POOLS = ((0, 2), (2, 2), (5, 2), (0, 4), (0, 8))` — counts of Always Performance and Random among 10. Base fee is paid by **Prolific**, not by the oTree app; `settings.py` intentionally keeps oTree's own `participation_fee=0` to avoid double-counting. Workers' earnings + belief-bonus payments are computed **offline** with `matching_payments.R` and paid as additional Prolific bonuses after validation. **Hourly-pay constraint:** Prolific requires at least $8/hour in *base reward* (bonuses cannot count). $5.00 covers 37.5 minutes at that floor, and gives $10/hour at 30 minutes. Pilot honestly; raise the reward or change the duration estimate if the actual median exceeds what the base supports. ## Four-app structure (Version 16) Version 16 retains the manually edited Version 13 wording and experimental logic except for the agreed instruction-flow change: pairing and the three-question mechanism quiz now occur after Part 1, and the duplicate mechanism page in Part 2 has been removed. All other participant-facing pages, experimental parameters, randomization and incentives are preserved. | oTree app | Rounds | Contains | Database fields | |---|---:|---|---| | `consent` | 1 | Welcome, consent, two-attempt truthfulness check | Consent fields only | | `worker` | 1 | Worker instructions, word task, score, pairing instructions, three-question initial-earnings quiz | Score, task errors, pairing quiz answers and retry statistics | | `spectator_intro` | 1 | Part 2 instructions, remaining quizzes, practice and feedback | Part 2 comprehension and practice fields only | | `spectator_decisions` | 17 | Prior-block reminder, 15 uncertain and 2 certainty decisions, end page | Scenario, message, transfer, belief and decision timestamps only | In `settings.py`, the app sequence is `['consent', 'worker', 'spectator_intro', 'spectator_decisions']`. The common parameter definitions are in `interfer_shared.py`; change parameters there rather than in each app. The `consent_passed` participant flag gates every subsequent app. The worker task's refresh-safe state is retained in `participant.vars`, just as in Version 12. The practice signal is pre-drawn by `spectator_intro.creating_session`; the 17 payment-relevant signals are pre-drawn by `spectator_decisions.creating_session`. **Export and matching:** Use the standard wide participant export from oTree and pass it directly to `matching_payments.R`. The script now reads `worker.1.player.score` and `spectator_decisions.1.player.*` through `.17.player.*`. It also accepts an already-prepared long-format CSV with `participant_code`, `round_number`, `score`, `stage`, `hidden_state`, `transfer`, `belief`, `complete`, and retains v12-wide support. Test the actual exported column names and bonus output before recruitment. The script has not been run under R in this environment. **New sessions required:** oTree's database schema is different from v12. Start a **fresh session/database** for v16 rather than trying to continue an existing v13 session. Part 1 pairing and Part 2 spectator-role pages changed as described below. ## Flow (Version 16) 1. **Welcome and informed consent** with six brief numbered questions (similar to original consent page), including $5 base plus up to $9 additional earnings. Records the consent choice and time. Declining consent leads to a terminal return-submission screen. 2. **Non-deception comprehension check:** four answer choices; a **Review consent information** button; maximum two attempts. Wrong first answer prompts a second attempt; wrong second answer leads to a terminal screen asking the participant to **return** their Prolific submission. Never reject on this ground. People who fail/decline cannot reach the experiment. 3. **Illustrated worker instructions**, with example 15-letter table, word **BEAD → 8936**, correction and reward explanation; 3-minute task with current word mapping generated anew each time and a 108-word pool drawn **without replacement**. The remaining-word list is explicitly saved on each draw to survive refreshes. Only after the pool is exhausted does it reshuffle. Final score is displayed. **OPEN COAUTHOR DECISION:** whether to show this score at all. 4. **End of Part 1:** future anonymous worker pairing and $8/$0 **initial earnings** explained, with Luck and Performance (random tie-break). The three-question pairing quiz appears directly on the pairing-instructions page, after the word task and score page. Retry incorrect answers until correct. **Part 2** begins with a short introduction and a brief reminder of the two mechanisms on the spectator-role page; the former separate Mechanisms page is removed. 5. **Spectator responsibility:** chosen transfers can determine **real earnings** of two other workers; the spectator role is described before any uncertainty or messenger rules. Two on-page comprehension questions check who decides for the other workers and who decides for the participant’s own worker pair, with retries until correct. 6. **Initial chances**, including 25/75 example, method drawn beforehand, actual worker earnings allocated later; **one comprehension question** on that page. 7. **Messenger types** (Truthful, Always Performance, Random), including consequences of knowing the type; on-page three-question quiz with the same four answer alternatives in the same order. 8. **Messenger pool**, visual ten-messenger example and anonymous `?` selection, then two on-page questions about uniformly drawing one messenger and keeping the identity anonymous. 9. **Belief introduction**: simple 0%, 50%, 100% examples, incentivization and optional detailed bonus formula, with **one comprehension question**. 10. **Scenario overview and payment essentials**: 15 uncertain situations with one transfer and one belief each, then two certainty situations with transfer only; all situations independent. Mandatory concise statement: exactly **one decision is selected randomly for payment**, any transfer or belief report can matter. Optional expandable **How is the decision selected for payment?** explains 50/50 type and uniform selection among 17 transfers / 15 beliefs. No payment comprehension quiz. 11. **Belief bonus** is described on the belief introduction page, with optional expandable **How is my belief bonus calculated?** including the BQSR formula and example. 12. **One hypothetical practice situation** using the actual interface (50/50 prior; six Truthful, two Random, two Always Performance), one randomly generated refresh-safe message, one transfer, one belief. No payment effect. Practice feedback shows allocations and reported belief but not the hidden method. 13. **Final quiz (4 questions)**: worker allocation under Performance/Luck; selected transfer consequences; independence; why every decision could matter. Retry until correct. 14. **Actual decisions**: randomized order of three prior blocks; randomized order of five messenger pools *within* each block; the two certainty scenarios in randomized order after all 15. Decisions and messages are refresh-resistant. ## Test commands (before any participant piloting) Run: ``` python validate_design.py python validate_v16.py ``` These tests check pure logic, source structure and randomized design with a stub oTree API. They are **not** a full oTree deployment test. In the real oTree installation, manually verify consent routes and both failed-attempt pathways; visually verify quizzes and desktop layout; run a complete 17-decision session; refresh during a word and after revealing a message; check native 3-minute timeout; and test response exports. ## Mandatory checks before fielding - **Confirm legal/institutional informed-consent requirements**: ensure the consent accurately identifies the researchers and contains approved data storage/retention, data-sharing, withdrawal/deletion procedures, contact/ethics details and risk wording. The concise on-screen version is a **pilot draft**, not a substitute for ethics approval. If anonymized data will be published, disclose that appropriately. Align with https://www.prolific.com/resources/how-to-write-the-perfect-consent-form-for-research. - Verify Prolific consent-decline return routing and failed-comprehension return flow; don't reject for failing twice. See https://researcher-help.prolific.com/en/articles/445153-prolific-s-attention-and-comprehension-check-policy. - **Confirm** the **$5 base reward** and budget against the number of participants, expected worker earnings and belief bonuses. Base must satisfy Prolific's minimum independent of bonuses. Pilot and correct `Config.ESTIMATED_MINUTES`. - Capture the **Prolific participant ID** reliably for matching bonus payouts and provide a correct final Prolific completion path; not configured in this standalone sample project. Confirm how the Prolific ID is passed into the oTree participant record. - Test full **four-app** oTree session in the actual installed oTree version, including second-attempt branches, error retries, cross-app transitions and all 17 rounds. Run a second participant on an independent browser/device to check allocation/refresh. - Ensure all worker payments are assigned **ex post**, not shown before spectator decisions. Verify the R payment script and inputs, matching parity, worker winnings, and Prolific bonus upload. `matching_payments.R` accepts the v16 wide oTree export or a prepared long CSV; verify the actual export headers, worker-score joins and payouts. - Keep score feedback highlighted for coauthor discussion: currently **show absolute words completed** without relative performance (unlike Cappelen et al., 2022). ## Research-design warning The pools `(b=.2,n=.2)` and `(b=0,n=.4)` both have six truthful messengers. The pools `(b=.5,n=.2)` and `(b=0,n=.8)` have **three** and **two**, respectively, so they are **not** matched in truthful-share composition. Do not describe the second as truthfulness-matched. ## Version 16 change log (relative to user-edited Version 13) - Added `worker/Pairing.html` after the worker score, explaining future anonymous matching and $8/$0 **initial earnings**, without revealing later redistribution. - The three Cappelen-style comprehension questions (allocation, Luck, Performance) are now embedded directly in `worker/Pairing.html`, with retries and first-wrong/total-wrong tracking in the **worker** app. - Removed `spectator_intro/Mechanisms.html`, its repeated quiz and `quiz1`–`quiz3` fields from the Part 2 app. - `SpectatorRole.html` now briefly reminds participants of Performance/Luck and refers to the explanation at the end of Part 1. - All other participant-facing wording from the supplied user-edited Version 13 is unchanged. Two visible editorial annotations in the uploaded WorkerIntro and WorkerScore templates were retained verbatim as HTML comments so they do not appear to participants; the open score-revelation decision remains unresolved. - Matching and bonus calculation unchanged. New oTree session/database needed because model fields changed. ## Version 16 change log (relative to user-uploaded Version 14) - The **SpectatorRole** page now includes two Cappelen-style comprehension questions directly beneath the existing text, testing who determines transfers for other workers and for the participant's own worker pair. Incorrect responses require a retry. - The questions are stored as `role1` and `role2` in the **one-round spectator_intro app**, with errors included in the existing quiz-error tracking. - The complete existing participant-facing instructional text from the uploaded Version 14, including manually edited wording and the tie-break footnote, is **unchanged**. All other HTML, CSS, JS, experimental parameters and payment logic are unchanged. - Start a **new oTree session/database** because the spectator_intro player model gained two fields. ## Version 16 changes (relative to Version 15) - The three Part 1 pairing comprehension questions are embedded on the pairing instruction page; the separate PairingQuiz page is removed. Existing instruction and question wording is preserved. - The 50%/50% belief-scale comprehension question is removed from BeliefIntro, which remains an instruction page with the optional bonus explanation. - The final quiz retains worker allocation, transfer consequences, independence and payment relevance (four questions); only the redundant question about what a belief report describes is removed. - All other pages, the four-app structure, randomization, experimental parameters, and payment code remain unchanged. ## Version 17 — Spectator role page simplification Removed the two comprehension questions on the `SpectatorRole` page, as agreed. The page now contains only the unchanged instructions and a Continue button. The `role1` and `role2` model fields and their validation hints were removed from `spectator_intro`. All other text, quizzes, 17 decisions, payment rules, and four-app structure remain as in Version 16. Run `python validate_design.py` and `python validate_v17.py` for offline checks. The older historical Version 15/16-specific validators are not included because they require the now-removed role quiz. A live oTree test is still required before fielding.