"""Shared helpers for Welcome AI screening (typing + reCAPTCHA).""" def screening_allows_study(participant): """False when the participant failed Welcome screening checks.""" return participant.vars.get('screening_passed', True) def screening_allows_page(page): return screening_allows_study(page.participant)