PRD-017: The Workbench, where an evaluation is set up and run¶
- Status: Implemented (0.8.0)
- Authors: Marko Dragoljevic
- Related PRDs: PRD-004 (the catalog and the inspector, which stay read-only),
PRD-016 (the
data-*commands the Settings screen uses), PRD-005 (goals and rounds), PRD-014 (datasets from production), PRD-015 (models onboarded once) - Related RFCs: RFC-032 (one data model; the API the Workbench runs on: Accepted, built), RFC-033 (per-item results in either store), RFC-026 (the API's token, uploads and jobs, as RFC-032 amends them), RFC-027 (who acted), RFC-025 (files or one database)
- Screens: UXS-005
Summary¶
The Workbench is a second application beside the catalog, for people. Agents already do all of this well through
evh, the MCP server and the files (the triage fleet's agent is the proof); a person cannot do it so easily. The
catalog shows what a project has and what it decided;
the Workbench is where a person puts things in and runs them: a goal and its data, models, systems and the arms they
become in a round, labels, references, scoring, and the round that ends in a choice. It is organised around the few
things people come to do (workflows), not around the files the harness keeps, and it spends its design on what they
do every day or week. It works in either store: it calls the same operations as evh, which write the files of a
files project and the database of a SQLite project. Its aim is that the harness's real complexity feels the way the
site explains it: a goal, data, arms, a comparison, a choice.
Background & Context¶
- Everything the Workbench does is an operation of the harness's model (RFC-032): one registry, each operation with
typed inputs, a kind (read, edit, decision, work) and its locks.
evh, the API (evh openapidescribes it), the MCP server and jobs are surfaces over the same operations. Agents use them well; a person must know which operations, in which order, with which inputs: the site's method page explains the loop, the terminal makes you rebuild it. - A project's settings are not shown as their files' structure: a form that mapped every key of every file to a field, at the same weight, is too long to use and only edits, it runs nothing. The Workbench asks only what a person decides at that point (requirement 4) and runs the work.
- The catalog's read-only rule (UXS index, rule 1) stays: the Workbench is where writing and running happen, the catalog where results are read. Each links to the other.
- Every screen of the Workbench is live, on the project's API; the static mockup, whose data is this repository's
(
mock.js), is a frozen design reference inharness/workbench/mockup/, outside the package (D7). - The live Workbench has the step rail and the help layer UXS-005 describes. The rail, on a goal's step and day-to-day
screens, shows the goal's five steps as done, current, open or locked from live data, and what a step not done lacks
("no dataset named", "not fetched", "no reference set", "N of 2 systems with runs", "no round
closed"). A
?beside a field or heading opens a side panel (what it is, why it matters, an example, if it is wrong, read more); a glossary word is underlined the first time it appears in running text.
Goals¶
- A person can do each workflow below from the Workbench without the terminal, in either store.
- The workflows people do daily and weekly are fast and guided; the occasional ones are plain and correct; the one-off ones may stay terse (or stay commands).
- Each form asks only what a person decides at that point: links to other things are pickers, what operations write is shown and never edited, expert settings start from named defaults.
- Running is visible: every run is a job with what it will cost before it starts, its progress while it runs, and its result and catalog link when it ends; a job survives the browser closing.
- The Workbench knows where each goal stands and offers the next step (
goal-status).
Non-Goals¶
- Replacing the catalog or the inspector: results are read there, linked from here.
- A public, multi-user service: the Workbench runs on the person's machine (ADR-0027, as RFC-032 amends it). Behind a
proxy (
--public,--behind-proxy) the Workbench and/api/v1answer 404 (D8). Amended by RFC-039 (owner, 2026-11-23): on the deployed site a visitor who is not signed in gets a read-only viewer; a service anyone writes to, and several users, stay out. - Making a project: a project names its store at
evh init --store files|sqlite, on the command line; the Workbench opens a project that exists. - A general YAML or file editor. The raw file can be shown; it is not the way in. The project's
config.yamlis not edited here (data-putwrites only underdata/; D9). - New evaluation capabilities: the Workbench drives the operations that exist. Where a screen needs one that does not, the operation is built first, for every surface.
- A new way for agents: they keep the commands and the MCP server.
Personas¶
- The evaluator (daily, weekly): runs rounds on a goal: new arms, scoring, comparison, a decision.
- The labeller (weekly): reviews outputs, labels and tags them, helps promote references.
- The maintainer (occasionally): brings in models and judges, sets up goals and datasets, governs references and budgets. Agents are not a persona of the Workbench: they already have the commands and the MCP server, and nothing here changes those. The API the Workbench runs on (RFC-032) is its means, not a new interface for agents.
Workflows, by how often they happen¶
Each workflow is a job to be done with tasks inside it. The Workbench presents the workflow; the tasks are its steps, each an operation (or a few) it calls for the person. The words: a system is what is evaluated (a deployment, a prompt version, settings; no dataset); a system placed in a round is an arm; a run is a system run on a dataset, in a round or not (RFC-032, "Names").
Daily and weekly: designed with the most care¶
W1 Run a round (the core). On a goal and its dataset: open a round with its question; choose its arms (carry
systems from the last round, clone one and change one thing — the prompt, the model, a setting — or add a system of
an onboarded model), smoke them, see the cost, run them all, score them (the goal's scorers; re-scored on the current
reference; the goal's judge when it has one), read the round's evidence (each arm against the leader, Holm), and
decide: retire an arm (with its reason; a retire is final), promote a baseline, close the round with a conclusion.
Operations: round-open (from, keep, hypothesis), round-carry, system-show and system-new (a clone is a
new system), arm-smoke, POST /estimate, sweep (the round's systems on its dataset, in the round; D2), rescore,
judge-score, round-evidence, goal-leaderboard, pair-test, round-retire, run-promote, round-close
(promote). The open-round form is offered on the last round's tab, and lists the arms still in play in that round
as ticks, all ticked, one by one; a carried arm is not run again, and when the new round is on another dataset each is
read through its runs there (the rule of round-open --keep). A system already measured on the round's dataset is
carried in, never run again.
W2 Review outputs, label and tag. On a goal's dataset: the items across the arms that matter; read outputs side
by side, say which is better, give a label, tag failure modes, leave a note; bring back a sheet filled elsewhere.
Operations: dataset-arm-list, sheet-export, sheet-import, label-sheet, label-import, failure-modes-list,
failure-modes-show, failure-modes-new. The screen reads no item through comparison-item(s) or sheet-show: a sheet
hides which arm wrote what, so a link to an arm's artifact (its trial directory) would unblind it; a finished run's item,
with its artifact link, is read in the inspector and by evh comparison-item (UXS-005 W2 is the screen as built). The screen fills a sheet and submits it when the person is done, to the
imports as they work today (not saved item by item); the blind sheet and its key are a job (sheet-export,
POST /datasets/{dataset}/sheets).
W3 Learn from production (once a goal is deployed): capture what the deployed system decided, evaluate it
against labels, pick the rows where it was wrong or saw something new, and make the next dataset version from them.
Operations: capture, arm-from-capture, label-from-capture, label-coverage-show, sheet-show, the
evaluation (W1's scoring), pick, dataset-extend / dataset-from-capture, periods, faithfulness.
Occasionally: guided, plain, correct¶
W4 Start an evaluation. A goal (what it is for, the decision, the measure and its direction — a winner rule from a
named default), its dataset (from a source: a folder, a table, Hugging Face, Croissant, Zenodo, OpenML, Kaggle, a
capture; previewed, fields proposed, created, materialized, profiled), its reference set, and a first system run to
see it work.
Operations: goal-new (sent with datasets: []), dataset-create, fieldset-propose, fieldset-new,
dataset-materialize, dataset-profile, reference-promote, system-new, run, source-preview; the
dataset's own answers ("answer": COLUMN in the query) are written as a label set at create.
W5 Bring in a model. A model record (what it is, its weights and licence), a deployment (where it runs, its
endpoint and settings), onboarded (the probes, kept as dated checks); a flag that is the deployment's own nature
accepted with why; smoked on a system: then it is a choice in W1. A model is vetted when every deployment's
onboarding passed and a system on it passed its smoke: computed, never approved by hand (D4).
Operations: model-new, deployment-new, model-onboard, model-show, deployment-history,
deployment-accept, arm-smoke.
W6 Make or change a reference. Promote a label set to a silver or gold reference with who and why; see what the
change moves before re-scoring the arms on it.
Operations: label-set-list, reference-list, reference-promote, leaderboard (read under another label, such
as silver), score-preview (its result per arm), rescore.
W7 Set up a judge. Judges picked from onboarded models (two families at least), the prompt, the mode; its stored
validation against people's labels shown before it may decide. Validating a judge is a tool, not an operation, and
stays out of the Workbench (D6).
Operations: scorer-list, scorer-new, scorer-set, POST /estimate, judge-score, cost-report.
One-off or rare: terse forms, or the commands¶
W8 Govern and maintain. The Settings screen, one row each, with its command: where the project keeps its data and
moving it to the other store (data-migrate); bringing the data to this release's formats (migrate); checking the
project (validate, a read the page waits for with "checking…"; D1); the two policy files under data/
(validate.json and goals/policy.yaml, shown as data-show shows them and saved as data-put saves them, checked
first); budgets (a round's cap is set when it opens); publishing a dataset (dataset-publish). config.yaml stays a
command-line edit (D9).
Functional Requirements¶
- Home shows the project's goals, each with where it stands (its dataset, its rounds, its reference, what is
running) and its next step (
goal-status); and what is running now, across goals. - A workflow is one place with its steps, not one page per operation: a step shows what it needs, what it will do (the command it runs, built from the operation and its inputs, for the person who wants it), and runs it.
- Jobs: a step of kind work is a job: its cost estimate first (
POST /estimate, the budget cap), then progress and the log, then its result with a link into the catalog. A job keeps running when the browser closes, can be watched again, stopped, and resumed with what the stopped job left of its cap (jobs-resume). Locks keep two jobs off the same data; a job waiting for one is "queued", naming what it waits for. - Forms ask only what is decided at that point. Links to other things are pickers of what exists (datasets, models and their deployments, systems, goals, references). What operations write (a deployment's checks, smokes, history; a judge's validation numbers; hashes) is shown, never an input. Expert settings start from named defaults, behind "advanced". A setting is never shown as its file's structure.
- Both stores. The same Workbench in a files project and a SQLite project: it calls the operations, and the store keeps what they write (a files project's YAML keeps its comments). Nothing in the Workbench changes with the store.
- Checks without waiting. An edit is checked by its operation against the entity's schema and links, and its
problems are shown on their fields. The project's full check (
validate) is a read the page waits for with "checking…", never part of a Save (D1). - Who acted and why. Every write carries who (
by, as--byorEVH_ACTORdo for a command; for an agent, the person it acts for); a write without it is refused. The name is asked once and kept in the browser. Every decision asks for its reason, as its operation does: a reference promotion (reason), a retire (reason), a round's close (conclusion), a baseline's promotion (reason), a deployment's accepted flag (why). - Parity: every action is an operation (RFC-032), so it is also an
evhcommand and an API call; the Workbench shows the command. - Refusals are shown as the API gives them: an edit's problems (
{error, kind, problems}), a job refused before it exists ({error}), a job that failed later (its state, its refusal's kind, its log), and 503 with Retry-After while the project's data is moved or migrated. A read asked withoptional=1that has nothing to show (a file the project may not have, a chart without enough data) is answered 200 with why (empty), not as a refusal. - On a phone. Every screen works at 390 px.
- Unsent changes are shown. What a person enters is sent only by the screen's own action (Save, Create, Run, Submit). Until then the screen marks it dirty, names what the action will write and asks before the person leaves; longer work (a labelling sheet, picked rows, a dataset's steps, models picked, a round being built) also counts what is pending and survives a reload in that browser. Labels, preferences and tags are submitted as a filled sheet, never saved item by item. The rule and the screens it covers are in UXS-005.
Success Criteria¶
- W1 to W3 done start to finish in the Workbench by the owner on this repository's goals, in either store, without the terminal; W4 to W7 done once each.
- No form in W1 to W3 longer than one screen before "advanced"; the goal's first form has at most five inputs.
- A round of ten arms shows its cost before it starts and its progress while it runs, and survives a closed browser.
- The catalog remains read-only; every Workbench result is one link from its catalog page.
Decisions¶
The owner's:
- One server for both apps: the catalog and the Workbench under their own paths.
- Labelling in W2: an in-app labelling screen is the first surface; the CSV round trip (
label-sheet/label-import,sheet-import) stays as an option. - Files mode: the Workbench changes a files project as it changes a SQLite project: through the operations, which change only the values that changed and keep the file's comments.
- The real Workbench, all of W1 to W8, is built on RFC-032's API (RFC-032, "RFC-026, ADR-0027 and the Workbench").
- D1
validatestays a read; the page says "checking…" while it runs. - D2 A round's arms are run by
sweep(its systems, the goal, the round); there is noround-runoperation. - D3 A retire is a recorded decision with its reason, not undone.
- D4 No "approve as vetted": vetted is computed, and the Workbench shows the rule.
- D5 The round's question is stored as
hypothesis; the page says "question". - D6 Validating a judge stays a tool; W7 shows the stored validation.
- D7
mock.js(this repository's data) does not ship in the package; the mockup is kept as a frozen design reference inharness/workbench/mockup/and the live screens are built from UXS-005. The package ships the live Workbench's five files, the only ones/workbench/serves. - D8 The Workbench is refused behind a proxy. Amended by
RFC-039 (owner, 2026-11-23): refused behind
--behind-proxy; on a--publicserver it is a read-only viewer, with no token. - D9
config.yamlsettings (the exposure check's repos, for one) stay out of W8.