---
title: Conditions and assignment
description: Set what differs between conditions and who gets which, then open, pause and close a comparative study.
updated: 2026-11-10
---

> All VIABLE docs, for people and their agents: https://developers.viablelab.org/llms.txt

# Conditions and assignment

Set up a comparative study's **Design** tab, then run the study. For example, half of a Grade 4 math class gets an AI tutor and half doesn't.

## The design

**Design** starts with **What this study compares**, then four steps that apply to every course at once.

::: steps
1. **The activities.** Edit them with the course's own editor. Pre-tests, post-tests and surveys are the same for everyone.
2. **What differs.** Give each condition rules: the AI off, the AI sees nothing of the panels, typed only, replies not read aloud, another agent, or another way the AI helps.
3. **Who gets which, and when.** Choose who is assigned, how, how it is balanced, and when.
4. **Agent versions.** Opening the study pins each agent at its published version.
:::

A new activity starts hidden at every course until its teachers open it.

### Conditions as rules

A study has two to eight conditions, labelled A to H, each with a share from 1 to 10. **Only in some units or activities** adds exceptions, including **Hidden for this condition**. Check **Side by side: what learners get in each condition** before you open.

When comparing units, **The plan, unit by unit** (or **The orders**) says whether each unit keeps its AI, has none, uses another agent, or helps another way.

### Ways the AI helps

To compare how the AI helps rather than whether it is there, name each way once under **Ways the AI helps**: **How much the AI does** (from **Only checks** to **Explains**), its steps at the level **Shows an example** (**Steps held by counting tries** or **Steps left to the AI**) and **When it writes first** (**Never writes first**, or moments of its own, such as when a learner has been quiet for 3 minutes or after a wrong answer). Each is **As designed** unless you set it. Then choose a way:

| You compare | Set it up |
| --- | --- |
| Two groups, each with its own way | Comparing groups: each condition's **How the AI helps** is one way |
| The same class, one way for some weeks and another after | Comparing units, one plan: put each period in its own unit, and give each unit its way under **Only in some units or activities** |
| Each group meets both ways, in the opposite order (AB/BA) | Comparing units, two orders: each unit gets one way in Order 1 and the other in Order 2 |

The choice between steps held by counting tries and steps left to the AI compares a policy held by code with the same policy left to the AI's judgment: both groups get the level **Shows an example**, one with [each step held by counting tries](/docs/teach/ai-helps#hold-each-step-by-counting-tries) and one without. The export's `turns.csv` says, for each reply in the first group, which step the turn was held to, how many tries came before and whether the learner had the answer (`used`: `step`, `tries`, `reached`), so how often each step was given can be counted from the data.

The ways are saved with the conditions and fixed when the study opens, except their names. The export's `activity_progress.csv` names the way each learner had in each activity (`helps`), and `manifest.json` lists what each way sets.

### Assignment

- **Who is assigned:** **Each person** or **Each section**.
- **How:** **At random**, in shuffled blocks balanced by the shares, or for sections, **By you**.
- **Balanced:** **Across the study**, **Within each section** or **Within each course**.
- **When:** **When they take part**, **After the pre-test**, or **At first use** (not when comparing units).

A condition never changes once given, on any activity or device.

### Pinned and protocol versions

Learners keep meeting the pinned agent version as the agent changes. **Use the latest published versions** moves every course on. Once open, every design change and version move makes a new protocol version, shown in the study's header.

## Open, pause and close

The header's status control runs **Draft → Open ⇄ Paused → Closed**. Each move explains itself first.

| Move | What it does |
| --- | --- |
| **Open study** | People start taking part; assignment starts; agent versions are pinned. |
| **Pause** | Learners keep their condition. Nobody new joins the study, and nothing is recorded for it. |
| **Resume** | Takes people in and records again. |
| **Close study** | Conditions stop; courses return to their own settings; the data stays. |
| **Open again** | Reopens with the same conditions and pinned versions. |

**Delete draft** works only if the study never opened.

> [!WARNING]
> Once open, how people take part, sign-in, assignment and conditions (except their names) are fixed. First preview each condition from a course's **Share → Preview as a learner**, **In condition**.

## Participants

**Participants** shows **Flow**, as a CONSORT flow diagram (the standard chart of how participants move through a trial) counts it; **Balance on the pre-test**, as Hedges' g (a standardized difference between groups); **People**, each learner code with decision and condition; and **The study's record** of every decision, assignment and change.

::: cards
- [Consent and taking part](/docs/research/consent): withdrawal and paper forms.
- [The research export](/docs/research/export): conditions and versions in your data.
:::
