Skip to content

Human review

Last updated: 2026-11-26T04:21:09-03:00 (UTC-3)

People are the reference a judge is measured against. This page shows how to put traffic in front of reviewers, collect what they think, see where they disagree, learn how far each judge can be trusted, and keep the queues filled without anyone selecting items by hand.

A review queue holds the items a team wants people to look at: a request, a whole trace, one span, a session or an experiment item. A reviewer opens the queue, reads one item as the trace view shows it, answers the queue’s form and moves on. Every answer is an evaluation result with source=human, written in the reviewer’s name on the thing they judged, so it appears on the trace, in the request log and in every query like a judge’s result does.

Review queues exist with the evals flag alone (Evals). Two more flags, both off by default, add what this page describes:

Flag Adds
review_multi_annotator Traces and spans as items, the trace inside the review, several reviewers per item with their own locks, final values and disagreement, item assignment, required fields, skip, drafts, “My items”, export and calibration
review_automations Rules that fill a queue or a dataset from live traffic
features:
evals: true
review_multi_annotator: true
review_automations: true # needs trace_query and span_store as well

review_multi_annotator requires evals. review_automations requires evals, trace_query and span_store, and it needs review_multi_annotator to send anything to a queue. To see the trace inside a review, turn on trace_explorer (and span_store); without it the reviewer sees the captured request and answer, as before. With feature plans, both flags are tenant features: a team uses them when its plan includes them.

Turning either flag off hides its screens and refuses its endpoints with 404 feature_disabled. Nothing is deleted: queues, items, reviews and results stay, an item that asked for two reviewers completes at its next review (without final values: those are computed only while the flag is on), and automations stop sweeping until the flag is back.

Review is four permissions. The built-in roles bundle them; a custom role keeps or withholds each one. Every permission applies inside the person’s own teams and their current organization: nobody sees a queue, an item or an automation of another organization.

Permission What it allows Built-in roles
reviews:annotate Take the items of a queue and review them administrator, team administrator, member (user)
reviews:assign Name who reviews an item, and take any item whoever it is assigned to administrator, team administrator
review_queues:manage Create, change and delete queues, add and remove items, and manage automations administrator, team administrator
reviews:calibrate Read every reviewer’s values, export a queue, read the calibration and, for someone who administers the team, settle a final value administrator, team administrator; the read-only role (viewer) reads all of it and settles nothing

Reading the queues and their items takes evals:read, as before. With query_review_queue on, the same readers can ask the query language for the traces of a queue: review.queue:<queue ID> (or review.queue:* for any of their queues) on the Traces screen, the request log, a monitor or a saved view.

Who works a queue:

  • A queue with nobody assigned is worked by the people who administer its team.
  • A queue with assignees is worked only by them; name at least as many as the queue asks reviewers per item. An assignee can be any member of the team who holds reviews:annotate, so a subject-matter expert with the user role can review without administering anything. The administrator may also work it.
  • An item can be assigned to some of the queue’s reviewers by name; then only they are offered it. Name at least as many people as the queue asks reviewers per item, and only people who can work the queue: anyone else is refused when you assign.

What a reviewer reads of the content follows the content permissions. A member without content_sent:read sees the trace’s structure, timing, cost and the judges’ verdicts, and a notice in place of the captured text. Give reviewers the content permission through their role or a reader grant when they need to read the conversation.

A custom role can keep reviews:annotate (base user or team_admin), reviews:assign (base team_admin) and reviews:calibrate (base viewer or team_admin). Queue management is administration and is in no custom role.

In the console: Evals → Review → Queues. The form is for screens at least 768 px wide; reviewing works at any width.

Field API field Default Bounds
Team team_id none, required one team; cannot change later
Queue name name none, required 1 to 80 characters
Description description empty up to 1000 characters
Fields score_names none, required 1 to 10 score configs of the team
Assigned to assignees nobody up to 50 people
Instructions for reviewers instructions empty up to 4000 characters; shown before the first item and beside every item
Holds scope any any, trace, span or session; a request also enters a trace or a span queue
Reviewers per item annotators_per_item review.annotators_per_item (1) 1 to 10; applies to items added from then on
Lock, minutes lock_timeout_seconds review.lock_timeout_seconds (600) 60 to 86400 seconds
Comments on items comments_enabled on on or off
Required required_names none fields of the form

The form preview under the fields shows what the reviewer will answer. Each field is a score config: a number with its range, Yes or No, one of a list of categories, or free text. Its description is the reviewer’s hint. To have people answer exactly what a judge answers, create the score config from the evaluator (Score configs → Start from an evaluator): the label takes the evaluator’s name, type and categories, and calibration then compares the two under one name.

Terminal window
curl -X POST "$GATEWAY/api/v1/admin/evals/queues" -H "X-CSRF-Token: $CSRF" -b "$COOKIE" \
-H 'Content-Type: application/json' -d '{
"team_id": "team_support",
"name": "Support answers",
"instructions": "Read the whole trace. A refusal is not helpful.",
"score_names": ["helpful", "tone"],
"required_names": ["helpful"],
"scope": "trace",
"annotators_per_item": 2,
"lock_timeout_seconds": 900
}'
  • From Traces: select rows, or open a trace or a span, and choose Add to a review queue. The dialog offers what the queue can hold: the request, the whole trace, the span or the session.
  • From an experiment comparison: Annotate on a compared cell sends that experiment item to a queue.
  • By ID: in the queue’s Items, one target per line.
  • Automatically: an automation.
Target ID Needs
request the request ID a capture of the request for the queue’s team
trace 32 lowercase hex characters spans of the trace for the team (span_store)
span <trace_id>/<span_id> that span for the team
session the session ID requests of the team in the session
run_item <run>/<item> an experiment item of the team

Trace and span items also need evaluation_results: a review of a trace is an evaluation result on it. A target that does not exist, or that belongs to another team or to the team’s former organization, is refused. An item queued before the team moved to another organization stays listed, without what was answered, and is not offered for review. One call takes up to 500 targets; a target already in the queue is skipped. A trace or a span waiting in a queue is kept past the span store’s retention, like an annotated one.

Review on a queue opens the runner, full screen. It shows the instructions first, then one item at a time:

  • on the left, the item as the trace view shows it (tree, waterfall, span panel with content by permission), or the session’s turns;
  • on the right, the judges’ results already on the item, then the form.

The progress line says how many items you reviewed out of those that are yours to review. Save and next stores your answers and opens the next item; Skip passes the item to the other reviewers and is your last word on it: it is not offered to you again and you cannot open it later. What you fill in is saved as a draft a moment after each change, so a closed tab loses nothing while your lock lasts.

Key Does
↑ ↓ Move between fields
1 to 9 Choose an option of the field (Yes is 1, No is 2)
Enter Type in the field
Ctrl/⌘ + Enter Save and open the next item
Shift + → Skip this item
? Show or hide the shortcuts

A queue’s Copy link gives an address that opens its runner directly (#/evals/review?queue=<id>). It is a link, not a grant: the person signs in and needs reviews:annotate and their place among the queue’s reviewers.

My items lists, queue by queue, the pending items that name you: through the queue’s assignees or on the item itself. The number on the Review tab is that count.

With Reviewers per item above 1, each reviewer gets their own seat on the item, held by their own lock. An item with two seats is offered to two people at once and to nobody else; a lock that runs out frees its seat. The item is completed when as many reviews are finished as it asks for.

Each reviewer’s answer is a human result written in their name (metadata.review.role is annotator). When the last review comes in, the gateway computes the final value of every field:

Field type Final value State
Yes/No or category, every reviewer gave the same that value agreed
Yes/No or category, more than half gave one value that value majority, marked as a disagreement
Yes/No or category, no value has more than half none, until a person settles it tie, marked as a disagreement
Number, all equal that number agreed
Number, different the mean mean, marked as a disagreement
Text never aggregated; every answer is listed with its author listed

A decided final value is written as one more human result on the item (metadata.review.role is final), so queries, analytics and calibration read one value per item. The queue’s Items → Disagreements tab lists the items whose reviewers differed, with what each one answered. Someone who administers the team and holds reviews:calibrate settles a tie, or replaces a majority or a mean, by choosing the final value there; the field becomes resolved and keeps the mark that its reviewers differed. Only a field several people answered can be settled: one reviewer’s answer is its own final value.

A reviewer sees who else reviewed an item, never what they answered. Every reviewer’s values are shown to people with reviews:calibrate or review_queues:manage.

The finals are stored together with the review that completes the item. If the result of a final value cannot be written at that moment, the item still shows it and the gateway writes the result again within seconds.

Export CSV and Export JSON on a queue’s items download up to 500 items with every reviewer’s value and comment and the final value of each field. The CSV has one row per answer and one per final value: queue_id, target_type, target_id, item_status, source, row, reviewer, review_status, completed_at, field, value, comment, final_state, disagreement. To build a dataset from reviewed traffic, add the reviewed requests to a dataset from Traces, or let an automation fill one.

Evals → Review → Calibration answers one question: when a judge and people looked at the same traffic, how often did they agree?

Choose a team and a reviewers’ label. For every evaluator of the team with results to pair, the screen shows the matched pairs, the share of agreement, Cohen’s κ with its usual band (slight, fair, moderate, substantial, almost perfect), macro F1 and the confusion matrix for labels; Pearson, Spearman, mean absolute error and RMSE for numbers; how many results of each side had no partner; and the items where they differ, each with a link to its trace. The figures are the ones GET /api/v1/admin/evals/agreement gives for the same pairs.

Option API Meaning
Pair results on the same item pair_by=target (default) a human result and a judge result of the same target
Pair results on the same trace pair_by=trace results that sit on the same trace whatever they judged: a reviewer’s verdict on the trace with the judge’s result on one of its spans
The final value of each item basis=final (default) one human value per item
Every reviewer’s own value basis=annotators each reviewer counts
Period from, to (RFC 3339) the last 30 days by default, at most 400 days; the console offers 7, 30, 90 and 365 days. A period holding more than 100,000 results of the label or of one judge is refused: choose a shorter one

A label and a judge may have the same name: the human side is what people wrote, the judge side what judges produced. Between reviewers gives the same figures for people who reviewed the same item, and how many of those items were unanimous. Read low agreement between reviewers before blaming a judge: unclear instructions show there first.

An automation is a rule: what matches this query goes to that queue (or dataset), this share of it, up to this many. Create it under Evals → Review → Automations, or from Traces with Automate this query, which opens the form with the query you were looking at.

Field API field Default Bounds
Team team_id none, required one team; cannot change later
Name name none, required 1 to 80 characters, unique in the team
Match scope traces traces or spans
Query query empty (everything) the query language, up to 2000 characters
Send to destination, destination_id none, required a queue or a dataset of the team
Sample, % sample_rate review.automations.sample_rate (1 = 100%) above 0 to 1
Max items in all max_items review.automations.max_items (1000) 1 to 100000
Max items per day daily_cap review.automations.daily_cap (0 = none) 0 to 100000, per UTC day
Terminal window
curl -X POST "$GATEWAY/api/v1/admin/automations" -H "X-CSRF-Token: $CSRF" -b "$COOKIE" \
-H 'Content-Type: application/json' -d '{
"team_id": "team_support",
"name": "Failed helpfulness",
"query": "evaluation.helpfulness.assessment:fail",
"destination": "queue",
"destination_id": "queue_5c1f...",
"sample_rate": 0.05,
"max_items": 1000,
"daily_cap": 50
}'

How it behaves:

  • It only looks forward. Nothing recorded before the automation was created, changed (query, scope or destination) or resumed is ever added.
  • It sweeps every review.automations.interval_seconds (30 s). Each sweep looks back lookback_seconds (30 minutes) behind the last one, so a trace a judge scored minutes after it ended is still found; a target is added once.
  • Sampling is by target, deterministic: the same trace is always in or out for the same automation. A dataset automation samples by request.
  • At max_items it pauses and says why (cap_reached). Raise the cap to resume. At daily_cap it stays active and adds nothing more that day; that day’s later matches are not kept for the next day. Both caps are decided with every item added, so several gateway replicas never pass them. Adding items by hand is never capped.
  • A sweep that fails (the span store or the database did not answer) is tried again from the same point, reading at most the last 24 hours; after 20 failures in a row the automation pauses with sweep_failing and the error. While a review flag is off for the team, the automation adds nothing and what was recorded meanwhile is never added.
  • The query may name any field of the query language: the gateway’s own facts (fell_back:true, cache:hit, guardrail.flagged:true, tag.env:prod, customer.org:acme), evaluation results (evaluation.<name>.assessment:fail), and child. and parent. terms. It may not search captured text: an automation has no reader, and the form says so when you try.
  • A queue’s scope decides the item: a trace for a traces automation, a span for a spans one, the session of each match for a session queue.

A dataset automation copies the captured request and answer of each matched request into the dataset. That is a read of captured content, so it is made in the name of the automation’s owner, the person who created or last saved it: they must be a named user with content_sent:read of the team, the read is in the content audit under their name, and the automation pauses (owner_cannot_read_content, owner_inactive) when they no longer can. A request with no usable capture is passed over.

Paused reasons: cap_reached, paused_by_user, destination_missing (the queue or the dataset was deleted), destination_scope_changed (the queue no longer holds what the automation adds), evaluation_results_off (the queue holds traces or spans and evaluation results were turned off for the team), query_invalid, sweep_failing, owner_inactive, owner_cannot_read_content. Pausing keeps the owner; saving or resuming makes the person who does it the owner.

The review block of the gateway YAML holds the defaults and the bounds. It is read at startup (restart to apply). GET /api/v1/admin/evals/review/settings returns the effective values with their bounds, and the console shows them as the placeholders of the forms.

review:
annotators_per_item: 1 # 1-10: reviewers of each item of a new queue that does not say
lock_timeout_seconds: 600 # 60-86400: how long a reviewer keeps an opened item
automations:
interval_seconds: 30 # 5-3600: time between two sweeps of one automation
lookback_seconds: 1800 # 60-86400: how far behind its last sweep an automation looks again
sample_rate: 1 # above 0 to 1: default share of matches a new automation adds
max_items: 1000 # 1-100000: default cap in all of a new automation
daily_cap: 0 # 0-100000: default cap per UTC day; 0 is none
per_team: 20 # 1-200: automations one team keeps
max_matches_per_sweep: 200 # 1-5000: matches one sweep of one automation reads

Raise lookback_seconds when your judges run long after the traffic (session-scope evaluators, backlogs). Lower sample_rate and set a daily_cap before pointing an automation at a broad query: a queue nobody can finish helps nobody.

Every route takes a console session, and the CSRF token for writes. A key of the team reviews too, as one more annotator, through the public review API (reviews:read, reviews:write): the same seats, lock timeout, annotators_per_item, finals and disagreement.

Method and path Purpose Permission
GET /api/v1/admin/evals/queues Queues with their settings and counts evals:read
POST /api/v1/admin/evals/queues Create a queue review_queues:manage
PUT /api/v1/admin/evals/queues/{id} Change a queue review_queues:manage
DELETE /api/v1/admin/evals/queues/{id} Hide a queue; its results stay review_queues:manage
GET /api/v1/admin/evals/queues/{id}/items Items with reviewers and finals (status, disagreement=true, mine=true, limit) evals:read
POST /api/v1/admin/evals/queues/{id}/items Add up to 500 targets review_queues:manage
DELETE /api/v1/admin/evals/queues/{id}/items Remove a pending item nobody reviewed review_queues:manage
POST /api/v1/admin/evals/queues/{id}/next Take the next item reviews:annotate
POST /api/v1/admin/evals/queues/{id}/open Take a named item (target_type, target_id) reviews:annotate
POST /api/v1/admin/evals/queues/{id}/draft Save the answers so far (answers) reviews:annotate
POST /api/v1/admin/evals/queues/{id}/skip Pass on an item, for good reviews:annotate
POST /api/v1/admin/evals/queues/{id}/complete Store the form (scores) and finish the review reviews:annotate
POST /api/v1/admin/evals/queues/{id}/assign Name who reviews items (targets, assignees); an item changes hands when nobody or at least as many people as it asks reviews are named reviews:assign
POST /api/v1/admin/evals/queues/{id}/final Settle the final value of a field (name, value or string_value) reviews:calibrate, administering the team
GET /api/v1/admin/evals/queues/{id}/export Download the queue (format=csv or json) reviews:calibrate
GET /api/v1/admin/evals/review/my-items Items that name the caller evals:read
GET /api/v1/admin/evals/review/settings The effective review block evals:read
GET /api/v1/admin/evals/calibration Judges against reviewers (team_id, label, judge, pair_by, basis, from, to); without label, the team’s labels and judges reviews:calibrate
GET /api/v1/admin/automations Automations of the caller’s teams evals:read
POST /api/v1/admin/automations Create an automation review_queues:manage
GET /api/v1/admin/automations/{id} One automation evals:read
PUT /api/v1/admin/automations/{id} Change an automation; the caller becomes its owner review_queues:manage
DELETE /api/v1/admin/automations/{id} Hide an automation; what it added stays review_queues:manage
POST /api/v1/admin/automations/{id}/pause Pause it; the owner stays review_queues:manage
POST /api/v1/admin/automations/{id}/resume Make it active again, looking forward from now review_queues:manage

Answers you will meet: 403 not_assigned (the queue or the item is someone else’s), 409 item_locked (every review of the item is held or done), 409 invalid_state (the item is completed, or you already reviewed or skipped it), 400 required_field, 409 lock_expired (a draft after the lock ended), 409 nothing_to_settle (a final value on a field only one person answered, or on text), 409 cap_reached (resuming an automation at its cap), 409 automation_capacity, 403 content_read_forbidden (a dataset automation by someone who cannot read the content).

  • 1 to 10 reviewers per item; up to 50 assignees on a queue or an item; 1 to 10 fields per queue.
  • A lock lasts 1 minute to 24 hours.
  • A value or a note of a field holds up to 2000 characters; one review holds up to 256 KiB in all.
  • My items counts up to 2000 pending items; an item whose reviews are all taken by other people still counts until one of them finishes.
  • The export and the item list return up to 500 items.
  • Calibration reads up to 100000 results per name and pairs up to 10000; past that it says the figures are of the first 10000 pairs.
  • One team keeps up to review.automations.per_team automations; one sweep reads up to max_matches_per_sweep matches, so a very broad query with a low sample rate may leave matches of a busy interval unread. Narrow the query rather than raising the bound first.
  • An automation sees what the span store holds: a trace sampled out of the span store cannot match.
  • The upgrade adds the review tables and columns in one step (schema version 250). Existing queues keep working as they did: scope any, one reviewer per item, a ten-minute lock. Each item completed before the upgrade becomes one finished review by the person who completed it.
  • Queue writes and item review moved from evals:manage to the four review permissions. The built-in roles hold them as shown above, so nobody loses access; an integration that calls the queue endpoints with a session keeps working with the same role.
  • Members (user) can now be named as reviewers when review_multi_annotator is on. With the flag off an assignee must administer the team, as before.
  • During a rolling upgrade a replica on the new version does not see the lock an old replica gave a reviewer, so two people may briefly hold one item; the second to save is refused. Finish the rollout before a review session.
  • On a mixed fleet during a rolling upgrade, turn the flags on after every replica runs the new version.

m7gtwcontact@m7gtw.com