Release Notes: v2.9.0 — Importers, Local Transcription and Provenance¶
Potato can now import projects from brat, doccano, Prodigy, CoNLL and REFI-QDA, and transcribe and diarize audio locally. Exports record whether an image shape was drawn by a person, proposed by a model or imported, and which room a vote was cast in.
Most of the release is bug fixes, listed in full below. Several change what a config or request that worked under 2.8.2 does, so read Upgrading before you install.
pip install --upgrade potato-annotation
Thanks¶
- Aldo Costa (@Eyecatch3r) sent two pull requests. #168 lets Potato run below a path prefix behind a reverse proxy. It covers static files, client-side fetch and media URLs, and every standalone page: admin, dashboards, session review and the legacy v1 pages. #171 fixed the dynamic-labels example reported in #170.
- @ruthenian8 reported
#170: every checkbox in
the
check-box-dynamic-labelsexample rendered blank. The report traced it to the item'slabelsfield colliding withItem.labelsand proposed the fix.
Upgrading¶
Run potato validate --strict on each config before upgrading. These changes
can make a working 2.8.2 study refuse to start or behave differently:
- Duplicate scheme names in one phase are refused, including two different types sharing a name. They used to share a single stored answer. The same name in different phases is still allowed.
min_annotators_per_instanceis now an alias for the per-item cap. Set on its own, items retire at that number. Set alongside a differentnum_annotators_per_itemormax_annotations_per_item, the config is refused.icl_labeling.example_selection.min_annotators_per_instanceis unaffected.require_fully_annotated: trueis enforced. It was ignored. Schemes withrequired: falsestay optional./updateinstancereturns 400 when no key in the payload can be read, such as the nested{"schema": {"label": ...}}shape, which stored nothing and answered 200. Any refused save now returns an HTTP error instead of 200.- A phase that fails to load aborts the boot instead of being dropped.
- CLI defaults no longer overwrite YAML.
persist_sessions,customjs,customjs_hostname,verboseandvery_verbosefrom the config now take effect, andpersist_sessions: truewithout asecret_keyis refused. - The codebook force-locks for every
crowdsourcing.providerexceptexpert, including unrecognised names and an empty value, andsearch.annotator_claimis refused alongside it. - Also refused now:
numberwith min greater than max- a
constant_summinimum that cannot be met bwswithoutbws_configcategory_assignment: {dynamic: true}- YAML booleans in a label list (
[Yes, No]) - unknown
display_optionskeys - an
event_annotationlabel missing from its span schema - a malformed
ai_budget.prices - an unbuildable
classifiername - malformed automation rules
--strictalso fails on:- a second annotation phase, which is never served
- undefined phase names
- empty data directories
- unreadable label colours
- unknown
failure_handlingkeys - gold
mode: training - rooms or Pocket Mode misconfiguration
- assignment keys that do nothing
- top-level
llm_labeling - Defaults that changed:
- Solo mode
timeoutnow uses each endpoint's own default (30, 60 or 120 seconds) instead of 60. - Sessions expire after 8 idle hours (
session_timeout_minutes). - The Anthropic and Gemini default models are now
claude-haiku-4-5-20251001andgemini-2.5-flash. select,range_sliderandrankingstart unanswered.- Markdown in
annotation_instructionsis rendered and sanitized. - Recorded data that changed:
min_response_timeis measured on the server.- Pocket Mode likert answers store
3, notscale_3. - Span offsets are code points, not UTF-16 units. This matters only for text with emoji or other characters outside the Basic Multilingual Plane.
- Agreement values for set-valued, order-valued, matrix and labelled ordinal schemes change and should be recomputed.
- Registrations are stored, salted and hashed. A username that owns annotations but is not in the roster is refused.
New features¶
Import and export
- Importers for brat, doccano, Prodigy, CoNLL-2003/CoNLL-U and REFI-QDA
.qdpx, and a.qdpxexporter. Offsets follow the QDPX spec's inclusive-end convention, andflatten_subcodeshandles ATLAS.ti's single subcode level. - Provenance in exports:
- Rooms: votes cast in a multiplayer room carry the room, role, initial
vote, whether it changed after the reveal and the voter count, as
_roomin JSON and{schema}._room_id/{schema}._roomin tabular exports. - Image shapes: each shape records whether a person drew it or a model
proposed it (
source,ai_model,confidence,edited,carried_over,import_format). - Confidence: COCO, MOT, OpenImages and KITTI confidence all land on one
top-level
confidencekey. - Span exports:
- csv, jsonl and parquet include the covered text.
spans.parquetaddstarget_field,title,span_id,format_coords,additional_partsand threekb_*columns, and warns about any stored key with no column.potato export --format adjudication, and an "adopt an answer" adjudication control for every schema type (only radio and likert had one).
Audio, video and transcripts
- Local transcription and speaker diarization with faster-whisper and
sherpa-onnx, no PyTorch and no Hugging Face token. Install
potato-annotation[transcribe], then runpotato transcripts <dir> --transcribe --diarize --num-speakers N -o out.json.--asr-no-vadturns off voice-activity detection, which can drop quiet speech. - Per-segment questions for audio and video:
segment_schemesrenders any annotation type inside a segment (it was accepted and ignored). Seeexamples/audio/segment-questions/.
Agreement, quality and assignment
- Agreement over time, joined against codebook revisions, with a re-calibration
trigger on
/admin/iaa. - Option order is shuffled from a fixed seed, so a reload no longer reshuffles it, and presentation order is recorded whether or not randomisation is on.
- A model-output review mode that includes the empty-prediction slice, so recall can be computed.
- Near-duplicate detection for consecutive video frames.
/admin/api/mace/overviewreturns areliabilityblock per schema, warning about too few items, label skew and constant-response annotators.- Expertise scores persist to
expertise_scores.json, andGET /admin/api/expertiseshows the counts behind each score. /admin/api/overviewreports items that collected more annotations than their cap.- The page an annotator sees when there is no work names the cause (no data, zero quota, not in a batch group, no qualifying category, or the study is full) and tells them what to report.
AI and model assistance
- Cost estimates and a spend cap (
ai_budget.cap_usd) that refuses to start a run instead of stopping it halfway. ai_budget.pricessets per-model rates in the config, so a new model can be priced without waiting for a release.pre_annotation.predictions_fileworks, taking an{id: predictions}mapping or a list of records.ai_supportrecordsfinal_annotation, what the annotator actually saved, andpre_annotation_seedsrecords what the model answered first, so acceptance rates can be measured from your own data.ai_support.image_key/item_properties.image_keysend an item's image together with its text to a vision endpoint, and vision requests reportimage_attached.- Judge calibration results at
/judge_calibration/results, and position-swap consistency on the judge eval card. - AI rationales render markdown.
Annotation interface
card_sortworks without a mouse: pick up a card with Enter or a tap, drop it on a focused group, or press a number key. Moves are announced to screen readers.tree_annotationrenders any annotation type inside a node.galleryplays video.spreadsheetacceptsheader_row: truefor list-of-lists data.resizable,max_heightandmin_heightwork on every display type, and lengths accept400,"400px","50vh"orcalc().text.collapsed_by_defaultanddialogue.max_heightare implemented.- Markdown renders in
annotation_instructions, and codebook markdown supports images. - With
codebook: true, each label'scoloranddescriptionseed its code, and the annotation-page tray shows each code's definition. keyword_highlights_filereads CSV/TSV with a header, one-per-line, JSON, JSONL and YAML.live_coding_agentacceptstask_fieldto seed its task box from an item field.- Training questions accept
category,categoriesor the configuredcategory_key.
Deployment and tooling
- Reverse-proxy and path-prefix support on every page (#168, Aldo Costa).
potato --versionreports the source and installed versions separately, names an editable install, and flags a directory shadowing the package.- The README points Claude Code, Codex and Cursor users at the potato-skill plugin.
Bug fixes¶
Saving and annotation widgets
- A
selectpreselected its first label, so walking past an item stored it, andrequiredon a select could never fail. - Chrome carried a select's choice over to the next item and saved it there.
- Returning to a ranked item replaced the saved ranking with the config order, and an unranked item showed the previous item's order.
constant_sumlet annotators advance under the total, andsoft_labelcould store 160/100 whenmin_per_labelblocked redistribution.range_sliderdrew a default range it never stored.- An answered required slider blocked Next after navigating back.
- Survey pages did not restore slider or ranking answers, so resubmitting could overwrite the stored answer with the default.
triagebuttons sat off the card and could not be clicked.tree_annotationstored nothing under any configuration.conjoint:- with
profiles_fieldand noattributes, it drew three blank cards - it padded short profile sets with a selectable blank option and dropped extra profiles
pairwiseshowed no candidates fromitems_keyor a{left, right}pair, hid the question text withitems_key, and wrapped cells onto two lines.event_annotationarcs were invisible underinstance_display, and every trigger showed as "?".- One click satisfied
requiredonagent_scorecard,failure_attribution,consensus_trackingandcontext_attribution. The message now names what is missing. handoff_reviewstored an unrated handoff asquality: 0on a 1–5 scale.tool_contentionasked about an agent overlapping with itself.- A save the server refused returned 200, so the page treated it as saved, and the session-timeout check never ran.
/updateinstancekept only the schema half of aschema:labelkey, losing answers posted as{"s:Yes": "on"}.- The error panel's Retry rebuilt the form from the original render, blanking saved answers.
option_randomizationanddynamic_optionsdid nothing on multiselect.- Option order reshuffled on every server restart.
- Fourteen schema types ignored their
layout:block, andlayout.breakpointshad no effect onlayout.groups. - The progress counter:
- read N/N for every annotator after the first
- went past its total when QC items were injected
- showed on the post-study page
- A data column named
labels,span_annotations,metadataoritem_datarendered blank in templates (#170, reported by @ruthenian8, fixed by Aldo Costa in #171). - Accessibility:
- navbar status pills failed contrast
- bold terms in
<legend>text were invisible - the taxonomy tree's expand control was unreachable by keyboard
- memo and codebook panels opened over the Next button
Spans and keyword highlights
- Span offsets were sent as UTF-16 units, so one emoji shifted every later span in the export.
- A selection starting at the end of an existing span, or ending at the start of one, was refused, so partly overlapping spans could not be made.
- A span on the last paragraph of a
documentfield was not recorded, and restored spans came back shifted. - With several span schemes, spans were saved under the wrong scheme.
- Spans on a
dialoguefield exported with empty text, and exported shifted whenshow_turn_numberswas written directly on the field. Written that way,show_turn_numbersalso did nothing. - Inline label
colornever reached the browser, andrgb(...)colours rendered asrgbrgb(...). - Coreference mentions could not be selected and chains were never saved. When saved, chains took the first entity type rather than the mentions' label.
span_link's Link Builder showed another task's labels.pre_annotationignored span schemes, and a categorical prelabel carrying a confidence value crashed the annotation page.- Keyword highlights never drew on
instance_displaypages, scanned onlytext_key, and a hex colour in the first CSV column made the row read as a comment.
Agreement
/admin/api/agreementnever produced a number. It also compared stored values instead of label names, so every categorical schema showed perfect agreement.- Multiselect agreement crashed when annotators ticked different numbers of boxes, and one multiselect annotator counted as two.
- Set- and order-valued types reported agreement of 1.0 whatever was chosen.
- Ordinal measures ranked word labels alphabetically, so a labelled likert's ordinal alpha was really nominal.
mean_jaccardpaired annotators by position, so a skipped item misaligned everything after it.- Matrix types reported
n_annotators: 0, andconstant_sumandsoft_labelscored only their first option. - Two empty geometry answers scored as perfect agreement.
- Detection AP scored an exact match as 0.0.
- Annotators who had finished failed to load at the next boot, emptying agreement, the adjudication queue and the per-item cap.
- Annotations written over MCP never counted toward agreement, progress or the cap.
Assignment
- The second annotator on a two-per-item study was sent to the done page, and every answer they then gave was lost.
- The disagreement score was always 0, so
max_diversitynever prioritised anything andadaptive_boostnever fired. - A watched data directory gave annotators a completion code while unassigned items waited.
- Expertise routing compared form markers instead of labels, so every annotator agreed.
- Uncertainty sampling (and Badge, BALD and hybrid) threw on every run and
scored everything 0.5, and
classifier: {name: logistic}trained the fallback. category_assignment: {dynamic: true}crashed the server at boot, and training questions written withcategorieswere uncategorized.- New warnings for settings that do nothing: a
per_annotator_quota.defaultthat makesmax_annotations_per_userunreachable, batch groups outsideassignment_strategy: batch, andcategory_basedwith no training block.
Quality control and training
min_response_timetrusted the time the client reported, and could never fire because it measured network latency. It is now measured on the server.- The save on Next erased
min_response_timeviolations. - Attention checks failed every answer posted as
{"schema:Label": "on"}. Labels were split on the first colon, soschema:::labelanswers failed too. - Two annotators giving opposite answers could promote an item to gold as "unanimous".
- Gold feedback was never shown,
accuracy.min_thresholdwas checked only when feedback was on, and changing an answer on a gold item counted as extra gold items. - QC results were lost on restart, so annotators blocked for failing QC were let back in.
- An undefined phase at the start of
phases.ordermade every request fail. failure_action: move_to_donetold a failed annotator they had completed the task and gave them the completion code, and training results were never saved after grading.- Pocket Mode never received attention checks or gold items.
Pocket Mode
- A size-based likert stored
scale_3instead of3, andmin_labelandmax_labelwere not shown. - Saves carried no response time, a refused save retried forever, and the done screen said "all caught up" with saves still queued.
- Text schemes were treated as desktop-only.
Export and import
- COCO dropped images an annotator reviewed and left empty (confirmed negative examples).
--seed-userimports skipped items with no annotations.- CV exports:
- ignored
source_field, putting every box at the origin - wrote
width: 0, height: 0in COCO and ten other exporters - exported EXIF-rotated JPEGs on swapped axes
- did not report items missing from the output
- Parquet:
- exported a labelled likert as an all-null column
- exported textboxes as a Python dict
- aborted on a mixed numeric/text scale
- ignored
export_include_phase_data - dropped any column missing from the first row
quotation_reportexported empty columns, codebook export missed codes added at/codebook, and arena preferences could not become DPO pairs.coding_evalsaid "Export successful!" over an empty directory.- The adjudication exporter could read another project's decisions.
- The transcription cache ignored model settings and duplicated items, and an empty diarization options dict skipped diarization.
AI and model assistance
- A truncated reply was reported only for OpenAI. On other providers a cut-off structured reply showed "No rationales available", the same as a dead endpoint.
- A vision request with no image attached ran as text-only without a warning.
- A model's refusal or negation highlighted the "No" label as a suggestion, and suggestions that match no label are now dropped.
- AI suggestions were about the wrong item under every assignment strategy
except
fixed_order. - The LLM judge was sent the item id instead of its text.
- Model hint text was inserted unescaped in text, image and video studies.
- The spend table charged a whole projected batch when a run stopped early, blocking later runs.
- The price table was checked against vendor pages on 2026-09-05. Opus was
priced three times too high,
gpt-4.1-nanoat twenty times its rate, and the Anthropic and Gemini default models were unpriced, socap_usddid not bind them. A price taken from a model-family row now says so. image_keypointing at local media was refused, and vision prompts left out the item's text.- A judge eval card with no data said "trustworthy".
- An agent reply with a string
actionkilled the agent thread, andlive_agentdid not seed its starting URL from the item.
Security and access
crowdsourcing.provider, the documented spelling, did not lock the codebook, so crowd workers could edit it. An empty provider value also left it open.login.type: url_directwith an open codebook now warns.- Sign-ups were never saved under the default in-memory config, so after a restart anyone could claim an existing username with any password.
documentdisplay fields ran raw HTML from the corpus.show_annotator_names: falsestill sent annotator emails through the API.- A room's export revealed other members' votes during the blind phase.
annotation_instructionsare sanitized, andjavascript:URLs in codebook images are refused.- A request with a wrong admin key created the admin key file.
- A task name containing
/crashed the boot and could write outside the generated-templates directory.
Images and media
- The image canvas was about 104px taller than its box, so the bottom of every image was unreachable, and Fit always returned 100%.
- With
tools: [brush]alone, the brush could not paint. source_fielddid nothing without aninstance_displayblock for audio, image and video.image_annotationdid not find images ininstance_displayfields.gui_trajectorywithcoord_space: pixelsdrew no marker.audio_dialogueplayed the wrong recording when each utterance had its own file. The shared player is now removed in that case..m4aand.flacwere served with types Chrome rejects, andAccept-Rangeswas never sent.galleryentries written as{url: ...}andweb_agent_tracescreenshots ignoredmedia_directory.- Waveforms for
/media/...URLs always fell back to browser decoding.
Displays
- Dicts and lists showed as Python syntax in 17 of 24 displays.
- Trace displays dropped
{role, content}turns and showed tool output as the final answer.process_rewardprinted raw JSON, andcot_segmentationlabelled every step "Observation". spreadsheetdropped columns that first appear after row 0.max_height: "220px"became220pxpx.- The default PDF display showed an empty box, and Plotly loaded from a CDN, so the admin plot failed on an air-gapped install. It is now vendored.
- A null or numeric text crashed the boot.
- The display registry hid 44 working options, including
speaker_key. failure_attributionandagent_scorecardleft out agents seen in the data.- Demographics instruments used a nonexistent type and could not load.
Data loading and ingestion
- The directory watcher could not parse pretty-printed JSON arrays, and search was not reindexed after startup.
- A
data_directorywith nothing loadable booted an empty study without a warning. - Automation rules never ran on the loaded corpus.
trace_ingestionrejected its documentedX-API-Key.
Codebook
- "Paste markdown" threw away the pasted text when the target section was empty.
- The tray showed stale definitions and collapsed the code list to one row.
/admin/catalog/api/searchignoredk.
Adjudication
require_notes_on_overrideandrequire_confidencewere never enforced, and confidence defaulted to "medium".- Composite schemes all scored 1.0 agreement and never reached the adjudicator.
- Types other than radio and likert showed "Form not available".
Multiplayer rooms
rooms.enabled: truewith no votable scheme validated, then/roomsreturned 404.
Solo mode
timeout: 60could not be set; writing it gave the endpoint's default.- An empty low-confidence pool absorbed
low_confidence_weightwithout a warning. InstanceSelector.configure()turned off thellm_predictedpool.
Reverse proxy
- The login form,
/done,/logout,/pocket, the password-reset forms and admin redirects ignored the path prefix, and mediaposter,srcsetandtrackURLs were not prefixed.
MCP and coding agent
submit_annotationstored the widget type as the label and wrote into consent pages.- The audit log recorded attempts rather than outcomes, and live tools published no argument schemas.
- Coding-agent containers leaked on Stop and on SIGTERM, and the SIGTERM handler never installed on a live server.
agent_proxywithenabled: falsestill loaded, and it ignoredai_config.
Config validation
labels: [Yes, No], which YAML reads as booleans, passed--strict.- A phase that failed to build was dropped without a message, and
validatedid not check instrument questions. - An empty
annotation_schemes:crashed validation. ui_language: enfailed--strict, andpotato validatenow runs the server's path checks.- The packaged config schema lagged behind the one in
docs/.
See the changelog for earlier releases.