Commit ·
98d6d4e
1
Parent(s): ae1081d
Fix three consent-text errors found on task_pe-cu-nicewebrl's served form
Browse filesVenmo was never set up but the form offered it as a payment option; the
task-order sentence was hardcoded and wrong for half the sample depending
on which task resolves first; the payment-ask wording omitted the
reference code that actually identifies which session to pay. Mirrors the
same three fixes already made and approved on the sibling task.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Files changed (4)
- PROJECT_LOG.md+37-1
- content/consent.md+3-3
- content_items.py+21-2
- questionnaires.py+4-1
872 unmodified lines873874875876877878879872 unmodified lineson this task with `?dev=1&start=main&houses=1&trials=<N>`, so the houses= override is setexplicitly before the handoff carries `dev=`/`trials=` on to the effort task. Each sessionreports what it sees on its own side as it happens rather than one triaging the other'sscreens. Not yet deployed or run live as of this item.## 7. In progress / open items- **Is a pilot actually ready to go out? NOT YET — item 48 found a real handoff bug the872 unmodified lines873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915872 unmodified lineson this task with `?dev=1&start=main&houses=1&trials=<N>`, so the houses= override is setexplicitly before the handoff carries `dev=`/`trials=` on to the effort task. Each sessionreports what it sees on its own side as it happens rather than one triaging the other'sscreens. Not yet deployed or run live as of this item. (Since superseded: item 50's`?houses=` override now also crosses the handoff when the other task sends it, item 51.)51. **Three consent-text corrections, found by `task_pe-cu-nicewebrl` on their own served formand confirmed present on this task's too (2026-10-13/14)** — the user approved mirroring allthree, since whichever task runs first is the one that shows consent, and both forms had thesame errors.- **Venmo**: `content/consent.md` said "Venmo Gift card, Amazon Gift card, or PayPal", butVenmo was never set up — only an Amazon gift card and PayPal exist. Changed to "an Amazongift card or PayPal" in both places the sentence appears.- **Task order was hardcoded and wrong for half the sample**: the form said "The first taskis a treasure hunt... The second task is a corn harvest," true only for participants whoget this task first. Replaced with a task-neutral description plus a `{TASK_ORDER}` slot,filled by a new `content_items.consent_text(first_task=...)` from`TASK_ORDER_SENTENCES = {"pe": "...corn harvest first...", "sl": "...treasure huntfirst..."}`, with `TASK_ORDER_UNKNOWN` ("decided at random") for the `first_task=None` case(every single-task run). Byte-identical sentences to their copy, so a participant readingeither form sees the same order described the same way. `questionnaires.consent_screen()`now passes `app.storage.user.get("task_first")` through — already resolved before thisscreen runs, since the screen itself is gated on `task_first == THIS_TASK`.- **Payment-ask wording named only name + email**, omitting the reference code shown on thefinal screen — the thing that actually says which session to pay and how much. Bothmentions (`content/consent.md`'s compensation paragraph and its data-handling paragraph)now name all three and add that the code "holds nothing about you."- **Not touched**: `questionnaires._PAYMENT_METHODS`/`payment_screen()` still say "Venmo" —dead code left over from the withdrawn in-app payment store (item 45), not called from`web_app.py` anywhere. Left alone rather than fixed, since touching unused code wasn't partof what was approved and it shows nothing to a participant.- **Verified**: `consent_text(first_task="pe")`/`"sl"`/`None` each produce the correctsentence with no leftover `{TASK_ORDER}` brace and no "Venmo" anywhere in the output;`web_app` imports cleanly; `test_payment.py`'s 21 tests still pass.- **Flagging, not resolving**: this is the second time this session the served consent texthas changed (first was item 46/47's payment-sentence rewrite). The filed IRB docx (`SONAPilot Consent 10-03-2026.docx` per item 47) was already being tracked as needingsubmission before this edit — now further behind the served text. Whether/when to updateand (re)submit the filed document is the user's call, same as item 47 left it; not decidedhere.## 7. In progress / open items- **Is a pilot actually ready to go out? NOT YET — item 48 found a real handoff bug the
85 unmodified lines8687888990919293949596979814 unmodified lines11311411511611711811985 unmodified lines***What happens if I say yes, I want to be in this research?***If you choose to participate, you will complete two computer tasks. The first task is a treasure hunt, in which you explore different houses and try to earn points for yourself and a randomly picked anonymous stranger. The second task is a corn harvest, in which you can decide to harvest corn for you and a randomly picked anonymous stranger, or you can rest on a beautiful meadow.The study cannot be completed on your phone or tablet unless the tablet has a keyboard. You will have to complete it on a <span style="color:#c0392b"><strong>computer/laptop</strong></span> using the keys on your keyboard.After the tasks, we ask you to answer questionnaires that will take approximately 10 minutes combined.When you have completed the tasks, you will receive <span style="color:#c0392b"><strong>2 SONA Credits</strong></span>. You can earn a potential <span style="color:#c0392b"><strong>monetary bonus of up to $6</strong></span> each for yourself and a stranger for each task (<span style="color:#c0392b"><strong>up to $12 total for each</strong></span> yourself and the stranger). This bonus money will be paid out to participants via <span style="color:#c0392b"><strong>Venmo Gift card, Amazon Gift card, or PayPal</strong></span>. To send it, the research team will <span style="color:#c0392b"><strong>contact you through SONA after the study</strong></span> to ask for your name and an email address.Please read through the task instructions carefully and answer questions thoughtfully. Everything should be straightforward and clear, but if you are unsure of what is being asked, make your best guess, and please let us know at the end of your participation. You can choose not to answer any question you do not wish to answer. You can also choose to stop taking the survey at any time.14 unmodified lines***What happens to the information collected for the research?***To send your bonus payment, the research team will contact you through SONA after the study to ask for your name and an email address. We store these in a <span style="color:#c0392b"><strong>password-protected payment spreadsheet that is kept separate from the rest of your study data</strong></span>. Your responses are labeled with a random study ID number only. You will participate through the SONA system, which assigns your credit. The research team receives only your SONA ID for the purpose of granting credit, and this is not stored alongside your survey responses. Every effort will be made to protect your personal information to the extent allowed by law. However, we cannot guarantee absolute confidentiality. Records of research study participants are stored and kept indefinitely on a secure cloud storage platform.You will not be identified in any reports or publications resulting from this study. In addition to the researchers and research institution(s) conducting this study, organizations that may request to inspect and/or copy your research records for quality assurance data analysis and other research related and operational or administrative purposes, include groups such as: Georgetown University, Georgetown University Institutional Review Board (IRB), and federal research agencies.85 unmodified lines8687888990919293949596979814 unmodified lines11311411511611711811985 unmodified lines***What happens if I say yes, I want to be in this research?***If you choose to participate, you will complete two computer tasks. One is a treasure hunt, in which you explore different houses and try to earn points for yourself and a randomly picked anonymous stranger. The other is a corn harvest, in which you can decide to harvest corn for you and a randomly picked anonymous stranger, or you can rest on a beautiful meadow. {TASK_ORDER}The study cannot be completed on your phone or tablet unless the tablet has a keyboard. You will have to complete it on a <span style="color:#c0392b"><strong>computer/laptop</strong></span> using the keys on your keyboard.After the tasks, we ask you to answer questionnaires that will take approximately 10 minutes combined.When you have completed the tasks, you will receive <span style="color:#c0392b"><strong>2 SONA Credits</strong></span>. You can earn a potential <span style="color:#c0392b"><strong>monetary bonus of up to $6</strong></span> each for yourself and a stranger for each task (<span style="color:#c0392b"><strong>up to $12 total for each</strong></span> yourself and the stranger). This bonus money will be paid out to participants via <span style="color:#c0392b"><strong>an Amazon gift card or PayPal</strong></span>. To send it, the research team will <span style="color:#c0392b"><strong>contact you through SONA after the study</strong></span> to ask for your name, an email address, and the reference code shown on the last screen of the study.Please read through the task instructions carefully and answer questions thoughtfully. Everything should be straightforward and clear, but if you are unsure of what is being asked, make your best guess, and please let us know at the end of your participation. You can choose not to answer any question you do not wish to answer. You can also choose to stop taking the survey at any time.14 unmodified lines***What happens to the information collected for the research?***To send your bonus payment, the research team will contact you through SONA after the study to ask for your name, an email address, and the reference code shown on the last screen of the study. We store these in a <span style="color:#c0392b"><strong>password-protected payment spreadsheet that is kept separate from the rest of your study data</strong></span>. The reference code says which session to pay and how much, and holds nothing about you. Your responses are labeled with a random study ID number only. You will participate through the SONA system, which assigns your credit. The research team receives only your SONA ID for the purpose of granting credit, and this is not stored alongside your survey responses. Every effort will be made to protect your personal information to the extent allowed by law. However, we cannot guarantee absolute confidentiality. Records of research study participants are stored and kept indefinitely on a secure cloud storage platform.You will not be identified in any reports or publications resulting from this study. In addition to the researchers and research institution(s) conducting this study, organizations that may request to inspect and/or copy your research records for quality assurance data analysis and other research related and operational or administrative purposes, include groups such as: Georgetown University, Georgetown University Institutional Review Board (IRB), and federal research agencies.
36 unmodified lines3738394041424344454647484950515236 unmodified linesreturn outdef consent_text():"""The combined-study consent form, or "" if none has been supplied.One version only: the SONA sample is solo adults (no dyad/parent-child variant here --that concept belongs to this task's own separate ?dyad_mode, an unrelated child-study flag)."""text = _read("consent.md")if not text.strip() or PLACEHOLDER in text:return ""return textdef tripm_items():36 unmodified lines373839404142434445464748495051525354555657585960616263646566676869707136 unmodified linesreturn out#: The one sentence in consent.md that depends on which task this participant does first. The#: combined study randomises the order, and the form used to state that the treasure hunt came#: first, so half of the sample read an order they were not going to get. Three fixed strings,#: picked by the order this session already resolved, never generated. Mirrors#: task_pe-cu-nicewebrl's content_items.py -- byte-identical sentences, so a participant never#: sees the two tasks described differently depending on which one they're reading this on.TASK_ORDER_SENTENCES = {"pe": "You will do the corn harvest first and the treasure hunt second.","sl": "You will do the treasure hunt first and the corn harvest second.",}TASK_ORDER_UNKNOWN = "Which of the two you do first is decided at random."TASK_ORDER_SLOT = "{TASK_ORDER}"def consent_text(first_task=None):"""The combined-study consent form, or "" if none has been supplied.One version only: the SONA sample is solo adults (no dyad/parent-child variant here --that concept belongs to this task's own separate ?dyad_mode, an unrelated child-study flag).`first_task` is "pe", "sl", or None for a session that has not resolved an order, which isevery single-task run. The slot is filled either way, so a form can never reach aparticipant with a brace in it."""text = _read("consent.md")if not text.strip() or PLACEHOLDER in text:return ""return text.replace(TASK_ORDER_SLOT,TASK_ORDER_SENTENCES.get(first_task, TASK_ORDER_UNKNOWN))def tripm_items():
329 unmodified lines330331332333334335336329 unmodified linesReturns True when there is no consent form on file, because the stage does not exist yetin that case -- a missing file must not read as a refusal."""text = CI.consent_text()if not text:return True329 unmodified lines330331332333334335336337338339329 unmodified linesReturns True when there is no consent form on file, because the stage does not exist yetin that case -- a missing file must not read as a refusal."""# The order this session already resolved, so the form names the task they are about to# start. Resolved before this screen runs, in the page handler, and None for a single-task# session, which reads "decided at random" instead.text = CI.consent_text(first_task=app.storage.user.get("task_first"))if not text:return True
PROJECT_LOG.md+37-1
content/consent.md+3-3
content_items.py+21-2
questionnaires.py+4-1