Update consent to match approved protocol; withdraw non-compliant payment store
Browse filesConsent (content/consent.md, applied by task_pe-cu-nicewebrl at the user's
instruction, byte-identical to their copy): now says name + email are
collected for payment, stored in a password-protected payment spreadsheet
kept separate from study data -- matching the BEAR protocol's 09-22 revision,
which added exactly this and removed the prior "no identifiable information
will be collected" promise.
Withdraw item 44's payment store: task_pe-cu-nicewebrl found the approved
protocol commits to a password-protected spreadsheet separate from study
data (the lab's existing Box-based arrangement), not a GitLab-hosted CSV
written via a Space API token, and not email alone without a name.
payment_log.csv/payment_screen()/submit_payment()/SONA_PAYMENT_HASH_KEY are
pulled from finish_experiment() -- confirmed via /health this was live and
would have actually written to the non-compliant store, though no real
participant had reached it. Replaced with a display-only bonus total; no
collection, nothing written. payment_screen()/submit_payment() left in the
codebase, unused, as a possible starting point for the actual redesign
(pending two open questions noted in PROJECT_LOG.md item 45).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Files changed (3)
- PROJECT_LOG.md+39-8
- content/consent.md+2-2
- web_app.py+31-18
633 unmodified lines634635636637638639640641642643644645646647648649633 unmodified linesearlier consent-gate fix. Their `first_task` call site has the same bug shape if/when itresolves order directly rather than via a trusted handoff.## 7. In progress / open items- **Is a pilot actually ready to go out? Getting close — one item left, outside this task'sown code.** As of item 44: the SONA study listing itself exists (item 43) with the correctStudy URL, credit-granting wired via `SONA_RETURN_URL`, and a valid timeslot — but it isstill `Inactive`/`Not Approved`, so nothing can reach it yet. Payment collection (item 44) isnow built. What's left: (1) the user reviews the created study and requests IRB-adminapproval, then flips it to `Active`; (2) `SONA_PAYMENT_HASH_KEY` needs to be set as a Spacesecret on both tasks (same value both sides) before payment submissions actually save. Bothshould be resolved before real participants are recruited. Both tasks' entry-redirect gapsare fixed, hardened, andbehaviourally confirmed clean in BOTH directions against the real live production Spaces(not just locally) — verified via a curl-checkable `/health` self-check (item 40) on bothsides, which also caught and got a fix for a real security gap (item 41: this task's session633 unmodified lines634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680633 unmodified linesearlier consent-gate fix. Their `first_task` call site has the same bug shape if/when itresolves order directly rather than via a trusted handoff.45. **Item 44's payment store WITHDRAWN the same day it deployed** — ruled out by the actualapproved IRB protocol, found by `task_pe-cu-nicewebrl` while comparing the `09-19` and`09-22` BEAR protocol revisions.- **What changed in the protocol (2026-09-22)**: the SONA compensation section gained "wewill be collecting contact information (name and email addresses) for these paymentpurposes. We will store names and email addresses in a password-protected contact/paymentspreadsheet that is separate from other data in the study" and lost "For the SONA pilotstudy, no identifiable information will be collected from subjects." So the protocolauthorises name + email, but commits to a password-protected spreadsheet SEPARATE fromstudy data (matching this lab's existing Box-based arrangement for the adolescent arm) —not a GitLab-hosted CSV written via a Space API token, and not email alone without a name.`content/consent.md` updated to match, by `task_pe-cu-nicewebrl` at the user's explicitinstruction (byte-identical to `task_pe-cu-nicewebrl`'s own copy).- **What this ruled out**: `payment_log.csv`, `questionnaires.payment_screen()`,`gitlab_save.submit_payment()`, and `SONA_PAYMENT_HASH_KEY` as item 44 built them. Pulledfrom `finish_experiment()` the same day, confirmed via `/health` that this was live(`SONA_GITLAB_PROJECT`/`SONA_GITLAB_TOKEN` were both set, so a real submission would haveactually written to the non-compliant store had anyone reached that screen — no realparticipant had; the SONA study is still `Inactive`). Replaced with a display-onlyscreen: total bonus earned, no collection, nothing written. `payment_screen()`/`submit_payment()` left in the codebase, UNUSED, as a possible starting point.- **What's actually left to build, smaller than item 44**: the final screen shows theparticipant their payment reference and what they earned; an RA manually enters name,email, and amount into the lab's existing Box payment spreadsheet. Two open questions,with the user (as of 2026-09-28, not yet answered): (1) should the on-screen paymentreference be the HMAC pseudonym, or something a person can read aloud and retype withouterror; (2) should the RA reconcile the amount from the task's own records rather than theparticipant stating it. Nothing further should be built here until those are answered.## 7. In progress / open items- **Is a pilot actually ready to go out? Getting close — one item left, outside this task'sown code, plus a rebuild.** As of item 45: the SONA study listing itself exists (item 43)with the correct Study URL, credit-granting wired via `SONA_RETURN_URL`, and a validtimeslot — but it is still `Inactive`/`Not Approved`, so nothing can reach it yet. Paymentcollection (item 44) was built, then WITHDRAWN the same day (item 45) for not matching theapproved protocol's storage commitment — do not re-enable `SONA_PAYMENT_HASH_KEY` /`payment_log.csv` writes without first resolving item 45's two open questions. What's left:(1) the user reviews the created study and requests IRB-admin approval, then flips it to`Active`; (2) a compliant payment mechanism gets built per item 45. Both should be resolvedbefore real participants are recruited. Both tasks' entry-redirect gaps are fixed, hardened,andbehaviourally confirmed clean in BOTH directions against the real live production Spaces(not just locally) — verified via a curl-checkable `/health` self-check (item 40) on bothsides, which also caught and got a fix for a real security gap (item 41: this task's session
91 unmodified lines9293949596979814 unmodified lines11311411511611711811991 unmodified linesAfter 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>.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?***We will not collect your name or any other information that could directly identify you. Your survey 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.91 unmodified lines9293949596979814 unmodified lines11311411511611711811991 unmodified linesAfter 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, we will ask for your <span style="color:#c0392b"><strong>name and an email address</strong></span> at the end 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 we will 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.
946 unmodified lines947948949950951952953954955956957958959960961962963964965966967968969970971972946 unmodified linesf"**${to_money(partner_pts):.2f}** for them!")# Combined-SONA-study only: collect payment details once, at the very end -- on whichever# task the participant finishes SECOND, right after they've seen the bonus that makes the# total figure meaningful, and BEFORE the return-to-SONA button/auto-navigate timer below# (which would otherwise carry them away before this had a chance to show). Written to a# store completely separate from this task's own research data -- never merged into# save_data() above, and keyed by a SEPARATE payment-only pseudonym (see _pid_pseudonym's# "payment" salt / SONA_PAYMENT_HASH_KEY) so it can't be joined back to research records by# anyone holding only one of the two keys.if is_sona and not sona_first and not app.storage.user.get("payment_submitted"):other_bonus = float(app.storage.user.get("other_task_bonus_usd") or 0.0)total_bonus_usd = min(12.0, own_bonus_this_task + other_bonus)answers = await Q.payment_screen(container, total_bonus_usd)import gitlab_savepayment_code = _pid_pseudonym(survey_code, "SONA_PAYMENT_HASH_KEY", "payment")ok = await asyncio.to_thread(gitlab_save.submit_payment, payment_code, answers["email"], answers["method"],total_bonus_usd)if not ok:logger.error(f"submit_payment FAILED for payment_code={payment_code}")app.storage.user["payment_submitted"] = okwith container.style("align-items:center;"):nicewebrl.clear_element(container)946 unmodified lines947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985946 unmodified linesf"**${to_money(partner_pts):.2f}** for them!")# Combined-SONA-study only: show (never COLLECT) the participant's payment code and total# earned, at the very end -- on whichever task the participant finishes SECOND, right after# they've seen the bonus that makes the total figure meaningful, and BEFORE the return-to-# SONA button/auto-navigate timer below (which would otherwise carry them away before this# had a chance to show).## ON HOLD (2026-09-28): this task previously called Q.payment_screen()/gitlab_save.# submit_payment() here to COLLECT email + method and write them to payment_log.csv in the# shared bear-sona project. task_pe-cu-nicewebrl's session found that the approved IRB# protocol (amended 2026-09-22) commits to storing payment contact info in "a password-# protected payment spreadsheet that is kept separate from the rest of your study data" --# matching an existing Box-based arrangement used elsewhere in this lab's work -- NOT a# GitLab-hosted CSV written via an API token. That build is therefore withdrawn pending a# redesign (still open: what a participant sees as their payment code -- the HMAC pseudonym,# or something a person can read aloud and retype -- and whether an RA reconciles the amount# from the task's own records rather than trusting participant self-report). See# PROJECT_LOG.md. Q.payment_screen()/gitlab_save.submit_payment() are left in the codebase,# UNUSED, as a possible starting point for that redesign -- not called from anywhere below.if is_sona and not sona_first:other_bonus = float(app.storage.user.get("other_task_bonus_usd") or 0.0)total_bonus_usd = min(12.0, own_bonus_this_task + other_bonus)# No participant-facing "payment code" shown here (yet) -- that display format is itself# one of the two open redesign questions above, and inventing one now that maps to no real# record would only have to be explained away later.with container.style("align-items:center;"):nicewebrl.clear_element(container)ui.markdown(f"### Your total bonus across both tasks is **${total_bonus_usd:.2f}**.\n\n""A member of the research team will follow up separately to arrange payment.")ev = asyncio.Event()ui.button("Continue", on_click=ev.set).props("color=primary size=lg")await ev.wait()with container.style("align-items:center;"):nicewebrl.clear_element(container)