PsyNet 14
*********

PsyNet 14 is a major release. Participant pages now change in place
instead of reloading, experiments are set up with a single command,
deployments package exactly the files you list, and exports are built
on the server. It also adds tools for developing experiments with
coding agents.

Some of these changes break existing experiments. Each section below
says what to change, and Upgrading to PsyNet 14 gives the step-by-step
checklist. The changelog lists every change.


Participant pages
=================

**In-place transitions.** When a participant moves on, PsyNet now
replaces the page content instead of loading a new page. Transitions
are faster, and audio, video and custom front ends keep their state
between pages. Custom pages must follow the new page lifecycle:
fragment templates, page data read from "psynet.var", and setup code
in a page module's "activate()" function. Pages that don't raise an
error that names the problem. While you migrate,
"requires_full_page_reload=True" exempts a single page and
"inplace_timeline_transitions = false" exempts the whole experiment.
See Custom front ends.

**Recordings upload in the background.** Audio and video answers now
upload after the participant moves on, so slow connections no longer
hold up the next page. A later page that plays back a recording must
wait for it; see step 18 of Upgrading to PsyNet 14.

**A new default theme.** Pages sit on a content panel with a readable
line length, a blue accent and a matching footer and progress bar. The
theme is light by default; "color_mode = dark" switches to a dark
palette, and "color_mode = auto" follows the participant's system
setting. Radio buttons and checkboxes are full-width rows that are
easy to tap. If your CSS targeted bare "label" or "input" elements,
check how those controls look.

**Phones and tablets.** Experiments now accept phones and tablets by
default; set "allow_mobile_devices = false" to keep a study desktop-
only.

**Browsers.** Participants can use any modern browser (Chrome 105+,
Firefox 121+, Safari 15.4+), not only Chrome. Declare the browser
features your experiment needs, such as "browser_capabilities =
{"microphone"}", and PsyNet screens participants for them at the start
of the timeline.

**jQuery 4.** Timeline pages now load jQuery 4.0.0, and PsyNet serves
jQuery UI 1.14.1. Custom JavaScript that uses utilities jQuery 4
removed, such as "$.trim" or "$.isArray", must switch to native
JavaScript. See Upgrading to PsyNet 14 (step 3).

**Leaving and errors.** The **Leave** button now explains what leaving
means for the participant's payment on each recruiter, and error pages
are shorter and consistent. The related names changed to "early_exit",
for example "show_early_exit_button" and "Participant.early_exited",
and "error_page_content" is replaced by "error_page_presentation".

**Layout checks.** Every page provides "psynetLayout.check()", which
Playwright tests can call to find content that overflows the window or
can't be reached. Pages meant to be taller than the window declare
"expect_scrolling=True". See Testing front-end logic.


Setting up experiments
======================

**One setup command.** "uv pip install psynet" now installs only a
small command-line tool. "psynet setup", run in the experiment
directory with the experiment's ".venv" active, installs the full
PsyNet runtime from "constraints.txt" and adds the boilerplate files.
"psynet services ensure" starts PostgreSQL and Redis in Docker. See
Install and Starting from a demo or an existing experiment.

**Python.** PsyNet supports Python 3.11 to 3.14, and 3.14 is
recommended. Python 3.10 is no longer supported.

**Translation.** "psynet translate" translates with ChatGPT only;
Google Translate support is removed. See Internationalization.

**Coding agents.** "psynet setup" adds an "AGENTS.md" file and
PsyNet's Agent Skills to the experiment, which tell a coding agent how
to plan, build, test and deploy it. "psynet audit" keeps a record of
the work, from the original request to test evidence, for you to
review. See Working with a coding agent and Audits.


Timeline code
=============

**Variables and conditions.** "participant.var.get(name)", and "get"
on the other variable stores, now returns "None" for a variable that
isn't set, like "dict.get", instead of raising "KeyError"; code that
relied on the error should use "participant.var.has(name)".
"conditional()" now accepts any truthy or falsy value from its
condition, such as a list, instead of raising an error. Both affect
code in almost any experiment, so check them first: see step 12 of
Upgrading to PsyNet 14.

**Time limits.** Any page can take a "time_limit": it shows a
countdown and submits "time_limit_answer" when time runs out, counted
on the server so that a reload doesn't restart the clock. See "Time
limits" in Writing a timeline.


Trials and groups
=================

**Choosing nodes and chains.** "find_networks", "find_node" and
"prioritize_networks" are replaced by hooks for each kind of trial
maker: "find_chains", "select_chain" and "custom_chain_filter" for
chains, and "find_nodes", "select_node" and "custom_node_filter" for
static experiments. A selection hook can return a "Selection", whose
"context" is passed to the trial maker's "on_trial_created" hook with
the new trial, and "Trial.cue" supports adaptive procedures such as
staircases. See Writing a static trial maker.

**Failing participants.** Call "Participant.fail()" or register a
"ParticipantFailRoutine" instead of overriding
"Experiment.fail_participant", which now raises an error. When a
participant leaves or fails, their unfinished trials fail and their
submitted trials are kept.

**Groups.** Barriers can time out participants who wait too long, and
groupers can let the remaining members continue when a group is
dissolved for becoming too small ("below_quorum"; see Groups below
quorum). A new dashboard page shows active groups and waiting
participants, and participants see when their partners are ready.
Group membership changes through "SyncGroup.add_participant()" and
"remove_participant()", and custom barriers implement
"check_waiting_participants()" and "choose_who_to_release()". See
Groups and barriers in detail. Pages shown from a barrier's
"waiting_logic", such as filler trials, now end when the barrier
releases the participant instead of running to their end, and an
unfinished filler trial fails; pass "release_grace=None" to keep the
old behavior (see Waiting pages).

**Newcomers and seeing the group.** With "use_admission_points=True",
a group takes newcomers during a game without anyone waiting for them:
a newcomer holds a seat but takes part only from the group's next
admission point, such as the start of a round (see Admission points).
Participants see each other by pseudonym, such as "Blue fox", instead
of by ID (see Pseudonyms), and "GroupPrompt" shows a group's members,
ticks them off as they answer and then shows everyone's answers (see
Showing the group).

**Round-based games.** A "Regrouper" forms new groups every round, for
example new pairs within a cohort, and lets a slow player miss a round
instead of holding up or failing the others. Each round can be one
"Trial.cue" per player: with "sync_group_type" on the trial class, the
trials of a group's round share a round record ("SyncGroupRound") that
holds the group's results, and every trial records its group, the
player's role, the round and how the round ended for the player. A
trial maker with "sync_group_type" makes such a round each time it
prepares the group's trials. See Writing a round-based experiment.


Stimuli and assets
==================

**Stimuli in** "static/". Ready-made stimulus files can now live in
the experiment's "static/" folder and be referenced by URL, using
"psynet.media.static_url_for". A deployment can include up to 1024 MB
of files by default. "compile_nodes_from_directory" now reads from
"static/". See Using stimuli and media.

**Asset classes.** Asset classes are named after how the file is made:
"FileAsset" replaces "ExperimentAsset" and "CachedAsset", and
"GeneratedAsset" replaces "CachedFunctionAsset". The old names still
work but warn. The "personal" flag is removed. See Managing assets.


Deployment and recruitment
==========================

**deploy.toml.** Each experiment's "deploy.toml" now decides which
files are deployed; ".gitignore" and ".dockerignore" no longer do.
PsyNet creates the file when it is missing. If your ".gitignore"
ignores files that the new "deploy.toml" does not exclude, the next
debug, test or deploy command stops once and lists them, because they
would now be deployed. Remote deployments need a Git commit, and stop
early if "constraints.txt" is out of date. See How deployment works.

**MTurk is gone.** Amazon closed MTurk on September 30, 2026, and
PsyNet no longer supports it. Experiments configured with the "mturk",
"bots" or "multi" recruiter stop with an error; switch them to another
recruiter.

**Prolific.** Participants who fail or hit an error are now paid a
small fixed amount through Prolific by default
("prolific_pay_unsuccessful"). Whether participants see their reward
now depends on the recruiter unless you set "show_reward". See
Prolific.


Data export
===========

**Exports are built on the server.** "psynet export" downloads a
single archive that the deployed experiment builds from one consistent
snapshot of the database, and no longer replaces your local database.
It first checks that the deployment matches your experiment directory.
Exports go to "exports/latest/", with earlier ones kept under
"exports/history/".

**What an export contains.** By default an export includes the files
created during the study, such as recordings, but not the stimuli you
supplied; the "--assets all" option is removed. Empty tables are left
out, and yes/no columns contain "True" and "False". See What an export
contains.


Upgrading
=========

1. Work through Upgrading to PsyNet 14, which covers each of the
   changes above; in Cursor, "/upgrade-to-psynet-14" follows the same
   checklist.

2. Run "psynet test local", then a debug deployment, before collecting
   data.
