Skip to content

RFC-032: One data model, with the command line and the API as its surfaces

  • Status: Accepted and built (0.8.0): accepted by the owner on 2026-11-13 ("Yes and yes", to accept it and start the build), every step of the build order built by 2026-11-17 (steps 6 to 9: ada47566b and 4f5926a6c, 6c7929c71, ecaf989c7 and e30f910af, 118c2971d and 9f2baff4c). Drafted with the owner the same day. Every decision below was taken in that discussion and is quoted under Decisions; the first draft's six open questions are answered under The six questions of the first draft.
  • Authors: Marko Dragoljevic
  • Related: PRD-017 (the Workbench; step 4 of "How it is decided" names this RFC), UXS-005 (its screens and the mock data model this replaces), RFC-026 (the API and jobs, amended below), RFC-027 (who acted), RFC-025 (both stores), ADR-0027 (writes on this machine only)

Abstract

The harness has no data model of its own. Each of its commands reads and writes files by path, and the API (RFC-026) runs those commands as processes: a read is POST /api/v1/read/<command>, a write is a job running a command's arguments. Building the Workbench on that showed what it costs: reads that answer text, a label written by uploading a CSV, records no command reads, no record of where a goal stands.

This RFC gives the harness one model: its entities, each with one schema and one place in the store, and its operations, each declared once with typed inputs and outputs. The command line, the API, the MCP server and jobs are surfaces over that model, and none wraps another (owner: "in my mind cli and api are different surfaces around same model"). The same model computes the views the catalog, the Workbench and evh print, so they cannot disagree. It also fixes how data moves between releases, a deployed project included.

What exists today (read 2026-11-13)

  • Entities live where commands put them. harness/data/ has 27 entries, among them goals/, rounds/<goal>/, models/, configs/, baselines/<goal>/<dataset>/, labels/, references/{gold,silver}/, scorers/, judge-validation/, judge-verdicts/, judging-sets/, captures/, and a dataset spread over datasets/, materialized/, sources/, profiles/ and fields/. 19 JSON schemas in harness/schemas/ cover some of them.
  • A model record holds its deployments (models/<id>.yaml, deployments:).
  • What is compared is a config, and a config names its dataset: arm_bart_l_dm200.yaml is "identical to arm_bart_l_n200.yaml except the dataset" (the two differ in config_id and dataset_id only). 455 config files are tracked in the repository.
  • "Runs" are eight folders, and four of them are not runs. runs (274), runs-linux (10), runs-pair (6) and runs-repeats (18) hold passes with their outputs. runs-silver (29) and runs-adjudicated (30) hold metrics.json and predictions.jsonl with no outputs: existing runs scored again. runs-rescored holds copies of runs/ and runs-repeats/ under a hash; runs-judged/<judge>/<run>/ holds a judge's scores. The folder name carries meaning: r2 of news_summary_cnn retires its arms with runs_dir: runs-linux, because the same config id has runs in two folders.
  • A round's arms are worked out, not stored: the configs whose runs name the round (round: in the config), plus carried, less retired (_rounds.arms_of).
  • Views are computed inside commands. evh round-list computes a round's evidence (each arm against the leader, Holm), evh goal-list, evh leaderboard and catalog_build (172 functions) compute theirs, each on its own.
  • The store is a file system. _store reads and writes by path; in a SQLite project each key is a path and each value that file's bytes.
  • Migration is evh migrate: four steps that each recognise old data by its shape. The project records no format, so nothing stops a command from reading data that has not been migrated.
  • Prod (infra/deploy/render.sh, deploy.sh) copies harness/data from git into each release and mounts it read-only: it is migrated only because migrated data is committed, and nothing checks it.

The Workbench's gap map (2026-11-13, against the mockup's screens) found, among others: data-ls and data-show answer text through the API; label-coverage-show cannot be called (a read that needs an upload); no command reads a judge's validation or records a model's approval; one label or one pick can only be written as a CSV; a job has no progress; the Workbench is not served. Not re-verified by hand: data-put's file argument is a plain string, which the API's path check does not see (data_put.py:39, _api.py:189-208); it is checked and closed in step 0.

Design

The layers

        the CLI        HTTP API      MCP (agents)      the Workbench (through the API)
              \            |             /
     operations: one registry; typed inputs and outputs (JSON Schema); kind, locks, who
     entities: one schema each, one id each, links by id
     views: computed by the model from the entities, cached, never stored as data
     stores: files | SQLite, the same keys
     jobs: an operation run detached (RFC-026's supervisor, locks, caps, ledger)

The model is a package of its own inside evaluation_harness: model/ (entities, their schemas and layout, the views) and ops/ (the operations). Today's command scripts become thin CLI surfaces over it.

Entities

Entity What it is Parts
Goal the decision an evaluation helps make; its measure, direction and winner rule; its policy —
Dataset a frozen list of items items, source, profile, versions, its sealed side
Fieldset the facts each item carries, to slice results by; shared by datasets —
Label set answers someone (a person, a model, a rule) gave for a dataset's items labels
Reference a frozen copy promoted to gold or silver, with who, why and its tier, pointing to the label set (or the dataset's own answers) it came from —
Model a model: what it is, its weights and licence —
Deployment where and how a model runs: endpoint, settings its checks: each probe run, smoke and approval, dated, kept
Prompt a prompt versions
System what is evaluated: a deployment, a prompt version, settings; no dataset —
Run one pass of a system over a dataset's items: outputs, cost, latency, fingerprint; the machine, the purpose (pair test, repeat of another run), the round it was made in scores
Score a run's outputs scored by one scorer against one reference rows, metrics
Round one comparison on a goal and a dataset, from its question to its decision arms
Arm a system placed in a round: when added, the run(s) it is read through, retired (when, who, why) —
Baseline the run a goal stands on, per dataset versions, with the evidence of each
Scorer how outputs are scored; a judge scorer names its judges (systems), its protocol its validation
Capture what a deployed system decided records
Pick, failure modes and tags, study and looks, exposure, faithfulness as RFC-019 to RFC-031 define them —
Job an operation running detached (not project data) log, progress, result

Each entity has one schema (JSON Schema, in harness/schemas/), one id, and links to others by id. New schemas: deployment, system, arm, run, score, label set, pick, job, study, exposure, and each view.

What gets an id. A thing has an id of its own when it is shared or referred to on its own; otherwise it is a part of the entity it belongs to, read and written with it, under its lock. A dataset's profile is one dataset's fact (a part); a fieldset is used by several datasets (an entity). A part may keep a history (a deployment's checks) rather than be overwritten.

Names. "Config" is no longer the name of anything: it was the file's format. What is evaluated is a system, which can be run on any dataset and placed in any round; a system in a round is an arm. A run is a system run on a dataset, in a round or not; a judge is a system a judge scorer uses.

Operations

An operation is a named function with inputs and an output described in JSON Schema, and a declaration of what it is:

  • read: answers at once, writes nothing;
  • edit: changes an entity's settings; in-process, under the entity's lock; checked against the entity's schema and its links (every id it names exists); only changed values written, a file keeping its comments (ruamel.yaml, as the Configure page's form did);
  • decision: promote a baseline or a reference, open, close or retire in a round, approve a deployment, unseal, roll back; refused without who and why; in-process when quick, a job when it runs other work;
  • work: run, score, judge, onboard, smoke, capture, materialize, the project's full validate, migrate; always a job, with an estimate first where there is one, a cap when it spends, its locks, its progress.

Every write records who and when (RFC-027's actor). A decision also records why and what it rests on (a paired test, a validation). An edit keeps a short history (the previous value, who, when), so a change can be seen and undone.

The registry is the source. evh's arguments (argparse), the API's routes and their checks, its OpenAPI description, the MCP tools and the Workbench's forms are made from the operations' schemas; the schemas' titles and descriptions are the help text. This is RFC-026's registry turned round: RFC-026 builds the API from the commands' parsers.

Surfaces

  • CLI: arguments in, the operation, its output printed as text, or as JSON with --json. Every command prints the same data either way, so the two cannot drift.
  • API: entities as resources, operations as actions. GET /api/v1/goals, GET /api/v1/goals/{id}, PATCH /api/v1/goals/{id}, GET /api/v1/goals/{id}/rounds/{r}, POST /api/v1/goals/{id}/rounds/{r}/close, POST /api/v1/systems/{id}/runs (answers a job). Reads call the model in the server's process (no process per read, as RFC-026 has it). RFC-026's token, cookie, Host and Origin checks, X-EVH-Data, uploads and job routes stay.
  • MCP: the read operations, as today.
  • Jobs: a job names an operation and its typed inputs, not a command line. RFC-026's supervisor, locks, caps, round ledger, stop and resume stay. A job reports progress (items done of how many, spend so far) as it goes.

Views

Where a goal stands and its next step, a round's evidence (each arm against the leader, Holm: the raw p and its threshold; what evh round-list would suggest; why nothing is promoted), the leaderboard, a comparison, a dataset's label coverage: each is a read operation and a resource (GET /api/v1/goals/{id}/status, /goals/{id}/rounds/{r}/evidence, /goals/{id}/leaderboard, …). They are computed from what is stored when read, never stored as data; a cache keyed by what they were computed from is cleared by any write to it.

The catalog renders these views. catalog_build stops computing its own, so the catalog, the Workbench and the command line give the same numbers. (The Workbench mockup showed r4's statistics with a test evh round-list does not use, eight reviews in; one computation, read everywhere, is the fix.)

Stores

Both stores stay, keyed by path as today. The model owns the layout: one table maps each entity to its keys (goals/<id>.yaml, systems/<id>.yaml, deployments/<id>.yaml, runs/<id>/run.json, runs/<id>/outputs.jsonl, runs/<id>/scores/<scorer>@<reference>/…, rounds/<goal>/<r>.yaml). Nothing outside the model builds a path or globs a folder. Files stay files a person can read (YAML with comments, JSONL for items and outputs); SQLite keeps the same keys. Relational tables come only if the scale step (1k to 10k items, PLAN_0.8.0 S) measures a query that needs one, and then inside the store.

Migrating, now and after 0.8

  • A project has a format. data/project.yaml records format: N; each release declares the format it reads. Every operation refuses older data (ERROR (old-format): your data is at format 3, this release reads 4: run evh migrate, with the dry run first) and newer data (naming the release that wrote it). No record carries a version of its own; an export (Croissant, a Hugging Face dataset) keeps its own format's version.
  • Migrations are numbered steps, migrations/0005_runs_and_scores.py, each from format N to N+1, with a dry run (what changes, counted per entity), the change, a check (every view gives the same numbers before and after, unless the step declares what it changes on purpose) and its UPGRADING line. A step works on the stored data, never through the current model's code, so a project of any released format reaches the current one through the steps in between. Steps are kept from 0.8 on.
  • Undo before the change: a files project's undo is git (migrate warns about uncommitted changes); a SQLite project's database is copied first and the copy kept beside it.
  • No down-migrations. A rollback after a migrated deploy restores the backup taken before the migration; what was written since is lost, and the deploy's log says so.
  • CI keeps a small fixture project frozen at each released format, migrates each to the current one and checks the views.
  • A release that changes a stored format ships its step, its frozen fixture and its UPGRADING section. Never a shim: the old layout is not read after a migration.

A deployed project is migrated by its deploy, not left to its owner (owner: "we also have to migrate prod as part of deploy and not just everyone for themselves"):

  • every deploy runs evh migrate --check on the data it ships and stops when it is not in the release's format (this repository's prod: in render.sh, whose data comes from git);
  • a deployment holding data of its own (a Workbench on a server, captures from production, a SQLite project) migrates it as a deploy step, each a gate as deploy.sh's are: preflight (the live format against the release's, the dry run's counts kept with the deploy), drain (jobs finish or pause; the server answers 503, as for data-migrate), backup, the change, the check, then the switch; on any failure the backup and the previous release are restored together;
  • the harness ships the commands (migrate --check, --dry-run --json, --backup) and a runbook section; each deployment's own infra calls them.

The first steps of the migration this RFC makes

  • the four run folders with outputs become runs/, with the machine and the purpose as fields; the four others become scores of the runs they scored;
  • configs become systems with their dataset taken out (_n200 and _dm200 pairs become one system each), and the arms of each round are written from today's runs, carried arms and retirements; round: and runs_dir go;
  • deployments leave the model records;
  • before and after each, every view (leaderboards, rounds' evidence, the catalog's numbers) is the same.

RFC-026, ADR-0027 and the Workbench

Kept from RFC-026: the token, the cookie, the Host and Origin rules, uploads and their limit, jobs (supervisor, locks first, state, logs, stop, resume, unsupervised and lost), caps where spend is counted, the round ledger, the estimate, jobs-*, the catalog swap, data-migrate's 503. Changed: the registry is made from the operations, not the parsers; reads run in the server's process; a job runs an operation; and the server writes edits itself (RFC-026 decided on 2026-11-11 that it writes nothing itself and jobs do; owner, 2026-11-13: edits in-process, the full validate a job). An ADR records this and amends ADR-0027 (writes in either store, gated by the token, not by configure: true).

The Workbench (PRD-017, all of W1 to W8, owner 2026-11-13) is built on this model's API, wired workflow by workflow as the entities it needs land. The mockup (harness/workbench, UXS-005, eight reviews) is its design.

Build order

Entity by entity: each command moves onto the model as its entity lands and the old path is deleted (no shims), and the Workbench's screens that need it are wired behind it.

  1. The skeleton: model/ (the entity table, schemas, layout), ops/ (the registry, its kinds), the surfaces made from it (argparse, API routes, MCP), the project format and the numbered migrations (--check, verify by views, the frozen fixtures), the format gate in render.sh; data-put's file argument checked (above).
  2. Goals and the goal's status view: proves the stack end to end (evh goal-list, GET /goals, the Workbench's home).
  3. Models and deployments, apart (a migration step). Built 2026-11-13 as format 2 (m0002_deployments): a deployment keeps an order (the record's list order, which the views keep) and its checks of three kinds, onboarding, smoke (with its arm's config id) and approval (deployment-accept); a smoke is placed on the deployment its config names, else the model's only one, else refused. The 65 evh model-list views and 64 model pages of this repository were compared before and after: none differ.
  4. Prompts and systems (configs become systems; a migration step). Built 2026-11-13 as format 3 (m0003_systems): 451 configs became 299 systems (146 groups that differed only in their dataset merged, 155 ids renamed, listed in data/renames.json); a run takes --system --dataset [--goal --round], and inside the run the system on its dataset is still read as one arm, so nothing past that point changed; a run records the system's id under config_id until runs become an entity (step 4). Every view was compared before and after: the same, the ids renamed, but for the counts of distinct systems, a merged system's rollup row and chart labels a shorter id lets fit. Judging sets, their verdicts and reference manifests keep the ids they were made under (rule B, above), read through the renames where a live system is matched (_common.system_now); judge-score finds a stored set by its runs. The prompt versions (RFC-028) have their operations (prompt-list, prompt-show); a system names its prompt version when runs move (step 4).
  5. Runs and scores (the eight folders; a migration step). Built 2026-11-13 as format 4 (m0004_runs): 305 passes became runs in data/runs/<id>/ (purpose 273 run, 17 repeat, 9 retime, 6 pair; 20 re-runs with no single run they re-do, so no of), 711 scores under them (25 copies with a run's own scorer, reference and rows kept once, owner 2026-11-13). A score's record is the run's facts with the score's over it (model/runs.record), so every reader kept its (directory, record) pairs, a score's directory in place of a run's; all 736 records read back as they were. The folder flags went, --label picks what a command reads. Every view was compared before and after: the same numbers; the differences are the copies kept once, the arms' order where it follows their new ids, and the re-scores of runs a round retired, retired with them. 4b, built the same day: a run records the prompts it sent as prompt versions (run.json prompt_versions, outside the fingerprint's hash), from the adapter's new optional prompts(params) hook, only when its fingerprint declares a prompt_sha256 and only a text of that hash; the examples' six adapters have the hook, and on every committed run that declares one it gives the text hashed (with the fleet code the triage runs used).
  6. Rounds with their arms and the evidence view; baselines. Built 2026-11-13 as format 5 (m0005_rounds): 17 rounds, 372 arms (44 retired), each arm a system, its label, its runs, how it entered and its retirement; 7 baselines linked to the round that promoted them. model/rounds holds the arms and evidence, read by every view of a round; all 17 rounds gave the same evidence before and after. An arm's view reads its system under its label (the catalog's arm), its runs listed beside; V14 names an arm whose runs are not runs of that system on the round's dataset scored under its label. A run made in a round joins its arm under the goal's lock; the round file is not dirt in a fingerprint.
  7. Datasets (items, source, profile, versions, the sealed side), fieldsets, label sets, references, picks, captures, failure modes and tags, exposure.
  8. Scorers and judges, studies, faithfulness.
  9. The catalog onto the views.
  10. What RFC-026 built that this replaces is removed (the reads by process, the registry from parsers); the ADR.

Testing

  • Parity: every view's JSON from the command line (--json) equals the API's resource, in both stores.
  • Every migration step: its dry run, then the views before and after equal; every frozen fixture migrates to the current format.
  • An operation added without a schema, a kind or a lock entry fails a test, as an unclassified command does today.
  • The Workbench's browser tests run against a served project, not the mockup's data.

Alternatives considered

  • Keep the commands as the contract and serve them (RFC-026 as built): the gap map is its cost; the surfaces drift because each command prints what it chooses.
  • Operations only in the API (POST /ops/<name>): simpler, not resources; the owner chose resources and actions.
  • The whole model first, then move the commands: a long time with two ways of doing everything; entity by entity keeps one.
  • A version on every record: one more thing that can disagree with the project's format; the project migrates whole.
  • Down-migrations: each step written twice and tested twice, for a rollback the backup already gives.
  • Relational SQLite tables now: nothing measured needs them yet.
  • "Arm" everywhere, the dataset inside it: keeps one name, and keeps the duplicate files the dataset makes.

The six questions of the first draft

Answered the same day (owner: "Love the reasoning and answers. I agree with all").

  1. How a run starts. A run is always a system run on a dataset: evh run --system cnn_bart_l --dataset cnn_dailymail_200, optionally --round r4. Running a round's arms is sweep (its systems, the dataset, --goal and --round), one job; the round-run operation first proposed here was not built (owner, 2026-11-17, D2 in PRD-017). Runs happen outside rounds (smokes, pair re-runs, repeats, one-off runs), so the base operation does not need one; in the Workbench, "Run 4 arms" is one action on a round. A run made in a round records it as where it came from, and the arm's read_through points to it; membership stays on the round's list.
  2. A dataset's parts. Its items, profile, source and versions are parts of it: each dataset has one of each today (materialized/<id>, profiles/<id>.json, sources/<id>.rows.json), the profile written by a command but a fact about that dataset's version, never shared. A fieldset is an entity: fields/triage.yaml is used by orrery_triage_smoke, orrery_triage_v1 and orrery_triage_v1_labelled. Several datasets from one remote source are datasets naming the same source and revision; no entity is needed for it.
  3. A reference is its own entity, frozen at its promotion, pointing to where it came from. Today it is a copy (a text per item and a manifest: items_sha256, tier, reason, actor, caveat, promoted_from, which names a label set or, for ag_news_20, the dataset's own answers). Label sets change (RFC-031's labels that mature); scores point to a reference, which must not change under them. Promotion is a decision that freezes a copy.
  4. A judge is a system (a deployment, a prompt version, settings) that a judge scorer names, with its protocol (the mode, how judges combine) and its validation. Today scorers/judge-summ-v2.yaml repeats each judge's provider, model, family, temperature and prices: a model record's and its deployment's facts, written twice. A judge needs what any system needs (onboarding, a pinned prompt, its cost counted). Its outputs on a judging set are its verdicts, not a run: a verdict is per item, pass and block, and a judging set is not a dataset (step 7, owner 2026-11-14). The validation stays the scorer's: it validates that protocol with those judges.
  5. A deployment's checks (each probe run, smoke and approval) are dated entries kept on the deployment, each with its result and the job that made it; approval is a decision (who and why); the deployment's state is read from the latest. Today one onboarding: {status, at} is overwritten at each check. "Vetted" (ADR-0021) means something only with when and against what: a change of endpoint shows as "checked before the change".
  6. The catalog stays static, the Workbench reads live, from the same views. The public catalog is built from the views when it is built or deployed, as today: prod serves it read-only and its server refuses /api/v1 with --public. The Workbench reads the views through the API. The inspector, which compares on request, stays served. Locally, a write that changes what the catalog shows starts a catalog rebuild job, so it is never stale (today the server says "restart it"). Amended by RFC-040 (0.8.1): no job; each page is rendered when it is asked for, from the data as it is then.

Decisions (owner, 2026-11-13)

Quoted from the discussion, typing slips corrected.

  • The model, and its surfaces. "I said I want this to be API driven originally"; "in my mind cli and api are different surfaces around same model". Asked where the model lives, the API's shape and how to get there: "Recommended is good on a/b/c": its own package (model/, ops/); resources and actions; entity by entity, no shims, the Workbench behind it.
  • The entities. "Initial list looks good."
  • Model and deployment: "should be their own things. We might want to deepen that later".
  • System and arm, "config" retired: asked what to call what is compared ("Config can mean all kind of things … arm is maybe too specific. Maybe it's even an option to look for another name or some combination of names. What do you think?"), the owner accepted system plus arm ("Yes").
  • Runs: one collection, a score apart from its run, the folders migrated ("Yes").
  • A round's arms: stored by the round ("I want to keep things pretty straightforward … let's get a recommendation"; then "Yes").
  • Schemas and writes. "Q3 yes, good idea, 4a and 4b also ok": JSON Schema as the source of truth; edits in the server's process; every write records who and when, a decision also why.
  • Views, stores, migration. "Ok on q6 and q7 and q8. Really love how with 6 we bring benefit to catalog also." Then: "On q8 we should also think about data migration in general and how would that work moving forward after 0.8", and "Don't forget that we also have to migrate prod as part of deploy and not just everyone for themselves". A project format number, not a version per record, and no down-migrations: "I agree with a and b".
  • The six questions of the first draft, as above: "Love the reasoning and answers. I agree with all".
  • Step 3, systems (after an inventory: 457 config files, 146 groups that differ only in their dataset, the config id an identity in runs, rounds, smokes and the catalog's arm pages), "I agree on 4 recommendations":
  • one format step merges the configs into systems and rewrites every reference to an old config id with it (runs' config_id values, rounds' carried and retired arms, smokes, faithfulness records, judging sets, validate's pairs); runs and scores apart (step 4) and a round's arm list (step 5) stay their own steps; each view compared before and after, an id renamed the only difference;
  • a merged system's id drops the dataset token and keeps the highest version of its group (ag_anthropic_l_n200_v1 and ag_anthropic_l_v1 become ag_anthropic_l_v1; a CNN group of _v2 and _v1 becomes _v2); the triage _v1/_v2 pairs, which differ in their settings, stay two systems;
  • the catalog's old arm pages redirect to the new ones;
  • the prompt file stays a setting (params.prompt_file) in this step, and the prompt versions (RFC-028) get their operations; a system names its prompt version when runs move (step 4), where the fingerprint may change under that step's comparison.
  • Judging sets keep the ids they were judged under ("B"): a judging set is content-addressed (its arms sorted by id, a pairwise block's order seeded with the ids, a Bradley-Terry bootstrap seeded with the set's id), so renaming its arms would move its id, its verdicts' place and a judged score recomputed later. A set and its verdicts are frozen evidence, as a run's id is; judge-score finds a stored set by the runs it judged and joins a set's arms to runs by run id. Every other reference is rewritten.
  • Step 4, runs and scores (after an inventory: 305 passes in four folders, 431 scores of them in four more, the folder the only record of a pass's purpose, no fingerprint holding a folder or a run id), "I agree with six":
  • one runs/<run_id>/ for every pass: run.json (the outputs' facts, cost, latency, fingerprint, system_id) and outputs.jsonl; what the folder meant becomes purpose (run, repeat, pair, retime) and machine (from the fingerprint's runner); of: <run id> only where exactly one other run of the system on the dataset exists, else left empty and counted;
  • every score under its run, runs/<run_id>/scores/<scorer>@<reference>/ (metrics and rows): the run's own first score, silver, adjudicated, rescored, judged and label-set scores; the scorer an adapter's 12-character hash or a judge scorer's id, the reference gold/<ds>, silver/<ds> or labels/<set> (a judge score names its judging set there); a run rescored or re-parsed in place keeps that as its score's derived;
  • rounds now: a retirement names run ids, not a folder; scoring.written names scores; arms stored stay step 5;
  • every view gives the same numbers and the same labels ("silver", "repeats", "rescored cd35dc1f"); arm ids and page URLs change, the old pages redirect;
  • the folder flags go, no shims (EVAL_RUNS_DIR, --runs-dir, the inspector's --from, rescore --out, judge-score --out, sheet-import --scorer's folder): commands select by purpose, scorer and reference; throwaway smoke and tune runs go under .build/, outside the data;
  • prompt versions are a step of their own (4b): a run records the version of the prompt file it read; past runs keep the hash they carry. Judging sets and reference and label manifests keep the ids they were made under (B).
  • Step 5, rounds, arms and baselines (after an inventory: 17 rounds, all closed; a round's arms worked out by two computations that disagree, 29 against 87 on CNN r1; the evidence and its leader computed in four places; no baseline naming the round that promoted it), "I agree with all 5":
  • a round stores its arms: each a system, the label it is read under, the runs it is read through, how and when it entered (ran in the round, carried or adopted from an earlier one) and who added it, and its retirement (when, who, why); carried and retired go; a run made in a round joins its system's arm or adds one, and keeps round and goal as where it came from; format 5 writes each round's arms from what is read today (membership as evh round-list computes it, runs read through the round's scorer);
  • an arm is a system read under one label: a silver, judged or adjudicated scoring of its runs is another scoring, not another arm;
  • the rounds that only retired re-timings, repeats or pair runs get those as arms read under their label, retired with the reason recorded;
  • one evidence computation (model/rounds.evidence) read by evh round-list, the goal page for every round, comparison-show --round, pair-test's and family-test's --round, leaderboard --round and the API's /goals/{id}/rounds/{r}/evidence, its leader by the catalog's rules (gold first; no judged arm and no reference author leads); a closed round's "best" that moves under them is shown before the commit;
  • a baseline version names the round and arm that promoted it; the seven an r1 promoted get the link from the round's conclusion.promoted_run (their evidence stays null); rounds get their operations (round-list, round-show, open, close, retire, carry) and the API's resources under /goals/{id}/rounds.
  • Step 6, datasets and what belongs to them (after an inventory: 19 datasets, 2 fieldsets, 7 label sets, 21 references, 3 captures, no picks, exposure, tag sets or sealed sides in this repository; about 47 modules building these paths themselves), each recommendation checked against the code first ("take all new recommendations"; five of the first fifteen were dropped as solving no problem the code has):
  • entities in model/datasets: dataset (its JSON record, written by its own commands), fieldset and failure-mode list (settings, edited), label set and tag set (<dataset>/<set>, never edited), reference (<tier>/<name>), capture; one layout table names where each part is, nothing is moved;
  • a dataset's source_dir stays as recorded and is resolved in one place (materialize read it against the directory it ran in: from a subfolder every item was missing); materialize builds the new copy before it replaces the old one; dataset-create --source-dir outside the project copies the items into data/sources/<id>/ ("1": a dataset is pinned bytes, and its record never names a host's path);
  • the profile stays a stored part (it needs texts git does not hold); its gold-only references are by design;
  • lineage keeps derived_from as the one parent link; orrery_triage_v1_labelled_v2 records it ("same dataset, just 2 versions"), with the command that exists for it (dataset-create --lineage-only);
  • goal status finds a dataset's references by the dataset their manifest names (gold/ag_news_200_adj1 was missed); a label set's score label is built and read by one function;
  • the deployment copies exposure (a deployed catalog would score items a sealed side's readers saw); label sets, tag sets, picks and exposure rows get schemas and validate checks; a dataset's capture is a checked link;
  • kept as they are: the seal's own items digest, unseal entries' config_id key (step 3 rewrote their values), the ids references and label sets were made under (B); no format step: nothing stored changes shape.
  • closed before step 7 ("close all items not done or not verified"): the model's layout takes a data root, so the catalog reads a deployment's copy through it too; the exposure register checked on the fleet's real reads (99, exposed.tsv); picks, tag sets, failure-mode lists, sealed sides and splits exist in no project reachable here; a dataset made from a version and a capture shows both, on its page and in the list ("C").
  • Step 7, scorers and judges (after an inventory: 5 judge scorers, 4 judges, 3 judging sets, 3,280 verdicts, 89 judged scores, every stored scorer hash and judge fingerprint matching the files; no studies, faithfulness records or prompt versions in this repository), "build 1-8, A retire (delete), B yes":
  • a judge scorer is an entity, listed and shown with its judges, its validation and the scores it made; an edit to one that has judged scores is refused (a new version is a new id, with supersedes), and validate names a judged score whose scorer is not the one it was made with;
  • judge spend is counted: cost-report reads the verdicts' cost; judging keeps its own budget and keys, never a round's ("I would prefer separate budgets and even support for separate keys"): a pass is capped by its scorer's cost_cap_usd, the new EVAL_JUDGE_MAX_COST_USD and EVAL_MAX_COST_USD, the smallest winning, and its calls read the EVAL_JUDGE_<NAME> keys first (ADR-0005);
  • the people's checks of a judge (data/judge-validation/) are a part of its scorer, with a view and a schema, and the tools that write them write to the project's data;
  • judged-judge-summ-pick-v1 is guarded as the other judged arms are; as_judged gets its test;
  • a new scorer's judge may name a system:, read as that system's settings; the five stored scorers stay as they were made (their hashes are in every verdict); a judge's pass is its verdicts, not a run (Q4 corrected);
  • code scorers, judge prompts and sheet-import's scorers stay as they are;
  • the older judge panel (the judge command), with its own config format and no stored verdicts, is removed.
  • studies and faithfulness ("build studies and faithfulness in step 7"): entities of the model, read through its data root as datasets are; a study gets a schema; the faithfulness summary copied into a model record goes, the models page reading the faithfulness records.
  • Step 8, the catalog onto the views (after an inventory, each recommendation checked against the code: most numbers come from functions the catalog and evh share, not from model views; where a model view exists it is a second implementation; all agreed on this repository's data), "build/fix all of those issues":
  • one goal decision in the model (answers, groups, leader, contenders, axes), read by the goal pages, evh goal-list, the overview, leaderboard and GET /goals/{id}/leaderboard; one leader rule for rounds and goals (the round's left in arms with too few items or the wrong format, which a goal never recommends);
  • the overview's leader-against-baseline test is corrected for the arms the leader was chosen from, as the round evidence's is (it used family 1); the goal page's note on the recommended arm says it is one comparison;
  • leaderboard --round reads the arms the round compared (it read the in-play systems' plain runs);
  • the model's runs, rounds and baselines take the data root; one listing per entity (captures, references, label coverage, picks, tags, judge spend, rounds, the run index); the comparison and a model's state live in the model;
  • the catalog never goes stale: a write through the API or an edit refreshes the server and starts a catalog rebuild job at once, any other write on the server's next read; a scorers page; API resources for the views reached only by process (overview, arms, metrics, activity, inspect, a comparison, label coverage); since RFC-040 (0.8.1) no rebuild job: a page is rendered when it is asked for;
  • a run's config_id names its system (all 305): a format step renames it system_id in stored records, the fingerprint and judging sets kept (they are hashed);
  • dropped after the check: goal status and the goal page list different references by design (the goal's against the dataset's); a deployed catalog does show round evidence (render.sh builds with the copy as the project).
  • Step 9, what RFC-026 built that this replaces (after an inventory: 43 read, 14 edit and 1 decision operation, no work operation; 40 MCP and API reads that are commands run as processes, 23 of them with no operation; every job a command line checked by a registry made from the parsers), "this is a new project and I don't want many legacy commands or tools, we just move forwards":
  • POST /api/v1/read/<command> and GET /api/v1/commands go (only tests used them); an OpenAPI description is made from the operations (GET /api/v1/openapi.json, evh openapi);
  • every legacy read becomes an operation or goes, no old name kept as an alias: the 8 an operation already answers are removed, the 9 it answers in part get what they lack, the 23 with none become operations; MCP serves the registry's reads in the server's process, their answers the operations' results;
  • every command that runs as a job becomes a work or decision operation with its locks declared (58); a job names an operation and its inputs; the registry made from the parsers goes;
  • performance is measured before it is designed ("performance is a problem with or without MCP"): where a view's time goes, cold and warm, under prod's limits; then a cache keyed by what a view is computed from;
  • ADR-0029 records the model and amends ADR-0027; RFC-026's status names what it keeps.
  • measured (2026-11-15, this repository, files and a SQLite copy): a view computed from every arm's scores costs about 2 s a call in either store (2.4 to 3.2 s on SQLite, the store layer's own path-to-key work and connections, 0.15 s of SQL); the goals' paired tests about 10 s once per data change (the p cache, outside the store); a process per call 2.3 s; memory under 180 MB. Agreed, for both stores alike ("the next deploy goes on SQLite; the solutions reusable for both; no over-investing in files"): a view cache keyed by the data's fingerprint, the p cache wherever views are computed, MCP in the server's process, no paired tests where a view does not show them; for SQLite only, the store layer's keys and connection kept; measured on both, SQLite first.
  • built (P1, tools/view_bench.py): a second call in the same process 2.0 s (files) and 2.5 s (SQLite) to 0.00 to 0.04 s, goals 0.3 s; a fresh process's first call 2.1 s on either store (SQLite was 2.4); catalog-serve keeps the p cache, which it did not; dataset-arm-list decides its own dataset only (11 s to 4 s with an empty p cache). arm-list, goals and the overview show who is a contender and the leader's lead, which are the tests: they keep them. MCP in the server's process is P2. Read through the store, a SQLite release on the box's read-only mount fails (the open sets the database up): the SQLite release is still to build.
  • built (P1b, "the next deploy runs on the SQLite store"): a database whose folder is not writable, or with EVAL_STORE_READONLY=1, opens as mode=ro&immutable=1 (no lock file, nothing created; a write is not-allowed); the release is made by _release.py copy-data --store sqlite (the filtered copy moved by data-migrate, sealed out of WAL, config.yaml store: sqlite; render.sh's default, EVALS_STORE=files keeps the files release) and every render check reads the release through its own store. Measured on a render of a clean HEAD, both stores in compose.yml's container limits: 4,481 files against 12,174, the catalog and 2,905 comparisons and 38 MCP calls the same bytes from both, the inspector's peak resident memory 208.6 MB on SQLite (206.7 files), 49.8% of 384 MiB by docker stats. A first request on the old code: /api/health 200, a comparison 500.
  • built (P2, "every legacy read is an operation or goes; MCP in the server's process", owner 2026-11-16: no outside caller, so no old name or shape is kept, and a tool is named as its operation): the 16 commands that read a view through a script of their own, the 26 scripts, and the process path the MCP server ran a read by (the API's was removed before) are gone. Of the 40 tools of the old server 8 were answered by an operation, 8 in part (datasets, references, models, goals, captures, labels, tags, inspect: the operations got what they lacked, the catalog's columns and periods, --arms/--top, the label sets' agreement, the inspector's analysis and its per-item reads as comparison-* and sheet-show) and 24 had none (the plan counted 8, 9 and 23: prompt-diff was counted as answered in part by prompt-show, which gives no diff; leaderboard, pair-test, family-test, validate, dataset-items, search, ...: made operations, their print-style bodies run in the process under a lock with their printed blocks collected, ops/legacy.py). A tool is a read operation (71, 61 public), answered in the server's process with the public flag of the call (_visibility.public_call: a contextvar, as a command's EVH_PUBLIC was), its answer the operation's structured result; --write-answers still writes ahead, render.sh's check reads its goal-list answer, deploy.sh's smoke calls goal-list. Measured on this repository, both stores, the old tools against the new, each call twice, validate (27 s either way) left out: 150.6 s first and 124.2 s repeat against 26.5 s and 9.8 s on files, 157.1 s and 118.2 s against 27.0 s and 8.3 s on SQLite; the 40 views computed from every arm's scores 136.9 s and 111.1 s against 19.4 s and 2.9 s (files). Under compose.yml's limits (the pinned image, 512m, cpus 0.5, the release read-only, two callers at once, no --answers): HEAD's 38 calls twice cost a caller 294 to 313 s, the 26 now 45 to 51 s (three runs a store); the first goals was 15.4 s (files) and 16.0 s (SQLite) and the first goal-list now 7.4 and 8.0 s, the views after it 0.3 to 2.5 s (they were 12 to 16 s each), a leaderboard 4.5 to 11.3 s (10 to 24 s), a repeat 0.0 s; with --answers, as deployed, the first goal-list is 0.08 s. Memory: the server's resident peak 277 to 287 MB where HEAD's was 93 MB plus two children, the container's peak 384 to 401 MB of 512 where HEAD's was 508 to 511 MB, docker stats 237 to 261 MiB (46 to 51 %), no OOM and no restart. Two callers asking for one view at once had each computed it (the CPU at cpus 0.5 shared: 67 to 207 s a caller); the view cache keeps one computation in flight per key now, the second caller waits for it. A call past --timeout, or cancelled, stops being waited for but is not stopped: a computation in the server's process runs to its end. The old server refused the tools that take two path arguments (arm-show, reference-show): it sorted a call's arguments by name.
  • built (P3, "jobs as operations", owner 2026-11-16: a route for each of the 58): every command that ran as a job is a work (46) or decision (12) operation whose body runs as the job's process, with its locks declared (Op.locks, a template from its inputs, or a function of them; migrate and data-migrate hold the whole project), whether it spends (9: a call carries max_cost_usd), a decision's reason as a required input (Op.why), and a POST on its own resource that answers 202 with the job (POST /goals/{goal}/rounds/{round}/close, POST /systems/{system}/runs, POST /data/file, ...). A job is {id, operation, inputs, by, locks, env, run_id}, its inputs also in its folder's inputs.json, which the supervisor gives the command (cli.py <operation> --json --inputs-file): no command line is built from them. POST /api/v1/jobs and POST /api/v1/estimate take {operation, inputs} only; a job reports progress and spent_usd as it goes. On the command line a route's parts are named options (evh round-close --goal G --round r1 ...); while the commands moved, each new parser was compared with the old one's options, choices, defaults, types and groups (the differences decided one by one), and that comparison went with the old parsers. The agent sampler's two MCP tools (study-ask, study-tell) are work operations a local server runs as a child process, never in its own. Gone: the registry made from the parsers, its path tables, parser_of, the command-shaped job, and the scripts the operations replaced; migrate.py run as a file is only its dry run's child, and refuses anywhere else. Rendering a release as the deploy does (a relative output folder) found that evh mcp read --project and --write-answers from inside the project after moving into it: no goal and no leaderboard were written ahead; the paths are now taken where the caller stands.
  • built (P4, owner 2026-11-17: "drop them"): no answer is written ahead. At the box's limits the first goal-list after a start is 7.4 to 8.0 s without them (P2's measure, above; the deploy's smoke warns only past 30 s), so evh mcp's --write-answers and --answers, render.sh's step and its release check, and compose.yml's flag are gone; the p cache, which the release carries, stays.
  • built (P1b, deterministic release): the same data makes the same database, byte for byte (each file goes in with one modification time, the seal writes the database again whole); two builds from two checkouts of one commit are one sha256 (they were 2,624 of 58,965 pages apart). Deploy transfer by rsync --checksum --link-dest, delta on: no data change 215 bytes; one new run 20 to 228 MB by where its id sorts (the files release 486 KB), because pages after an insertion are packed anew (a run that sorts first: 6.7% of the new pages occur in the old database; in the middle, 53%).