The Protocol page (top of the sidebar, right after Projects) holds your review’s shared definitions: the criteria, the extraction variables, the workflows, and the review’s registration. You set these up once, near the start, because everything downstream depends on them. The criteria drive both screening and extraction, the variables are the data-extraction form, and the workflows say who does the work at each stage.
Define once, used everywhere. Each stage’s prompt is configured separately on that stage’s own page. Protocol holds the definitions and the workflows.
Criteria¶
Your inclusion/exclusion rules live here as a structured form: each criterion has a name and its PASS / FAIL / UNCERTAIN rules. When you save them, each criterion gets a locked ID.
Those IDs are what make decisions auditable end to end:
Both stages reference the same criteria by ID. Abstract screening and full-text extraction re-check the same named criteria, so a paper is judged against one consistent rule set.
Every AI decision is recorded per criterion. For each paper the AI reports a PASS / FAIL / UNCERTAIN verdict, a confidence, and a supporting quote for each criterion, not just an overall include/exclude. You can see exactly why it decided, on the Screening, Conflicts, and Calibration views.
To fill the criteria in, type them in the form, paste them, or click Import JSON file to load a criteria.json you (or your own AI) prepared. It validates and fills the editor for review before you save. The saved criteria (criteria.yaml) are the single source of truth: until they exist, screening and extraction run with no criteria at all.
A Preview panel beside the editor shows the exact criteria text that is filled into both the screening and the extraction prompt, so you can check what the AI will read before you save.


Variables¶
The Variables tab is the data-extraction form: the fields the AI fills for each included paper (the schema). Each field has a name, a type (text / number / enum / list / group), a description, options for enums, whether it is required, and whether a human must verify it.
You can start from the standard modules, a set of ready-made common fields (publication type, country, study design, sample size, primary research goal, language, keywords) that you tick on. Two quality-appraisal modules sit in the same list — rob2 (Cochrane RoB 2, for randomized trials) and newcastle_ottawa (for cohort and case-control studies) — so an appraisal is extracted, verified, and reconciled like any other variable; tick the one that matches your designs, or copy it and edit the domains. None of them are imposed, and any custom field you add sits alongside them.
Edit any field in place. Change its name, type, options, or required flag without deleting and re-adding.
Import a field list: paste JSON, or click Import JSON file to load
extraction_variables.json, validate, then load into the editor to review before saving.Save writes the schema the app runs on (
schema.yaml) and a re-importable JSON mirror (extraction_variables.json).


How these fields become a guaranteed JSON structure, and how to draft them with your own AI, is explained in How AI extraction works.
Version history¶
Criteria, variables, and prompts are all versioned. Any change snapshots a new version, and the history view shows a highlighted diff so you can compare any two saved versions or restore an earlier one. Because the AI’s decisions are stamped with the version that produced them, you can always trace a decision back to the exact rules in force at the time. The app also flags papers that were screened or extracted under criteria or prompts that have since changed (see the AI outdated badges on the Screening and Full-text pages).

Workflow¶
The Workflow tab sets who does the work at each of the three stages. It lives on Protocol rather than under Settings because who screens each stage is a protocol decision, pre-registered and reported under PRISMA, not a preference.
| Stage | Options | Who |
|---|---|---|
| Abstract screening | assisted / independent | assisted = AI + 1 human, each deciding blind; independent = 2 humans, each deciding blind |
| Full-text screening | assisted / independent | same two options, set separately from the abstract stage |
| Extraction | verify / independent | verify = AI extracts, 1 human checks; independent = 2 humans extract blind, then reconcile |
The three are set independently. The usual design is assisted at title and abstract, where the volume is, and independent at full text, where the stakes are; leave the full-text setting alone and it follows the abstract one.
The choice also decides when a paper is settled at that stage: independent needs two human votes, and an unadjudicated disagreement means the stage is not finished. Until then the paper does not move on and counts as neither included nor excluded. See workflow modes.

From the command line:
ailr workflow <project-folder> # print all three
ailr workflow <project-folder> --stage full-text --set independentRegistration¶
PRISMA asks every review to say where it is registered and where its protocol can be read, including saying plainly that it is neither. The Registration tab holds three fields: the register (PROSPERO, OSF, INPLASY, or blank), the registration number, and the protocol URL. They go into the methods export, which writes “This review was not registered” if you leave them blank rather than quietly skipping the sentence.
Below the fields is an amendment log. You do not fill it in: it is read back from the version history above, treating each part’s first saved version as the protocol as written and everything after it as a change to it. It also goes into the methods export as a table. The app records that an amendment happened, not why, so add the reasoning yourself when you write the paper.
One thing to know about the log: it assumes your first save is the protocol as finalised. If you revise the criteria several times while still setting up, those early edits count as amendments even though the review had not started. Delete those rows from the exported table, or hold off on the first save until the protocol is settled.
Once your criteria and variables are set, move on to importing references.