# harness-e2e

> Measure Harness capability, retain reproducible evidence, and expose the E2E dashboard.

| field | value |
|-------|-------|
| version | 0.30.0 |
| type | binary |
| license | Apache-2.0 |
| repo | https://github.com/iii-hq/harness-e2e |
| supported_targets | aarch64-apple-darwin, x86_64-unknown-linux-gnu |
| author | iii |

## installation

```sh
iii call compose::add worker=harness-e2e@0.30.0
```

## configuration

```yaml
- control_database: harness_e2e
  data_dir: ~/.iii/data/harness-e2e
```

## dependencies

- `browser` @ `^0.2.15`
- `database` @ `^0.6.0`
- `storage` @ `^0.1.10`

## readme

# Harness E2E

`harness-e2e` measures what a Harness stack can execute: correct deliverables,
structural integrity, bounded work, and repeatable outcomes.

The repository stays independent of the `workers` source tree. Discovery,
execution, observation, state access, and cleanup go through functions
registered in iii. The product input is an already-running iii stack.

One binary, `harness-e2e`, does both jobs. Compose starts it as the
asynchronous `e2e::*` control plane and the injectable Console page. The same
binary also runs scenarios and inspects reports from the command line.

## Score

A run's score is the sum of the points its evaluated criteria awarded.

- A criterion nobody evaluated adds nothing.
- Scores are not normalized or rescaled.
- Criterion points stay independent of completion.
- A run stopped by a resource limit (token, cost, turn or time budget, or no
  progress), or one the agent or the Harness failed by itself, scores zero on
  every criterion it did not reach, in native, composite and adaptive flows
  alike: a counted run always has a score. A scenario that scores the partial
  delivery keeps those points.
- A check that holds only because nothing was attempted scores zero: a secret
  never fetched was not kept, an injection never read was not refused, a
  reply that wrote nothing was not quick, a source nobody worked on was not
  preserved.
- Criteria do not veto the score or approve a run.
- Completion, technical validity, artifact evidence, and runtime controls are
  reported separately.
- Each dimension report carries the raw points its criteria awarded. They add
  up to the score; they are a breakdown of it, not a second score.
- Infrastructure and execution failures still fail the CLI.

Native criteria keep awards that were already measured when a later check
cannot run. That later check has no award and stays `not_evaluated`. An
incomplete criterion set has no total score. A product that fails its checks
stays technically valid.

Every run records a `cause`, read from the failure's code and from the error
code the Harness recorded for the failed turn; a failure that kept no code
falls back to the runner's and the Harness's fixed wording. The cause decides
whether the run counts toward the mean. The subject's own failures
count: the run stays technically valid and incomplete, with the points already
measured. They are `resource_limit` (`max_turns` included, a composite flow's
deadline or a Harness step's, and a Kanban turn stopped at the controller's
1,800-second deadline, failure code `subject_deadline_exceeded`, which scores
0), `invalid_provider_request` (a request
the Harness built wrong, such as a tool call sent without its result or a
function schema the provider cannot read), `context_overflow` (also when the
provider only says so in its own words), `planner_format` and
`subject_failure`. The others leave the mean and are counted apart, per
scenario in `aggregate.causes`:

- `provider_infrastructure`: the provider was unreachable, rate limited, out
  of balance, credit or usage limit, or not authorized or configured
  (`provider_transport_failed` among them), with or without the turn's error
  entry.
- `test_environment_incomplete`: the final failure says the stack lacks a
  function or database the run is owed, or the stack does not route, single
  out or price the configured provider or model (an ambiguous model, no
  structured output, a cost cap without catalog pricing, a model the provider
  does not serve). The run is owed the functions it registers and needs
  itself (its worker contracts), the databases the prompt names and the
  functions of the measurement's own worker (`fp`) it names. A function the
  prompt alone mentions, such as a validator the scenario breaks on purpose,
  one the agent mistyped or made up, or one missing earlier in a turn that
  got past it, stays the subject's.
- `evaluation_environment`: the evaluator could not validate the delivery for
  a reason of its own machine or tooling, such as a Docker daemon that
  stopped answering. The Registry runner removes every other stack in the
  run's private Docker daemon before it starts the delivery, and records what
  it removed; a port still taken after that is the delivery's own. A check
  the delivery left unmeasurable (an alert the UI never shows, a comparison
  that never succeeds, a Compose file that does not load, a web container
  that does not restart) scores zero instead.
- `e2e_infrastructure`: any other failure of the runner or its fixtures, an
  engine the watchdog could not sample or a `harness::send` whose response
  the engine lost among them.
- `operator_cancelled`, also when the cancelled turn reports first.
- `undetermined`: another worker timed out, the turn was cancelled without an
  error, or the provider refused a request for a reason no rule recognises.

A fault of the delivered application is the subject's too: the check that met
it scores 0, later checks still run, and the run stays in the mean. That covers
a function the candidate owns that stays silent twice while the stack answers,
a step its own page rejects in the browser, a Kanban app that is not ready 60
seconds after a restart while Compose still answers, whose own start failure
made Compose exit while the engine still answers, or that keeps no
`/data/tickets.json`, and a Kanban `typecheck` or `build` past its 90-second
limit, which, like any failed build, scores the whole round 0. While
a delivery is evaluated, only a fault of the controller, the container runtime
or the stack leaves the mean. A candidate page that stops answering the browser
after it loaded (a hang, a blocking dialog) leaves the mean too: the browser
answers the same way for a crashed or frozen renderer.

A function the subject registered that outlives its workers at cleanup is
recorded as the subject's `subject_leftover` failure; the run keeps its
status, cause and score.

Composite and adaptive flows follow the same rule: a failed composite step
keeps its turn's transcript, so its own error code decides, and a failed
planner turn is classified as a native turn. The Console counts failures by
cause.
A report written before causes keeps the earlier rule, where every subject
error left the mean, and every reader says so.

Every score and every audit flag is deterministic. No scenario calls a second
model to judge the first.

## Completion

Completed means the subject met the task's purpose. Every scenario marks the
criteria that are that purpose, usually one or two, as gates. Exactness,
discipline, efficiency, and polish never gate: they only move the score, so two
runs can both complete and still differ in points. A gate also checks that the
run exercised the capability the scenario protects, not only the final
artifact: a timer test completes only when the write came after the timer woke
the session, however clumsily the rest was done.

- Every gate passed: completed, whatever the other criteria scored. A gate
  passes at full points, or at its `gate_minimum` when fewer points already
  meet the purpose (a proportional check).
- A gate that did not pass: incomplete.
- A gate nobody evaluated: incomplete when another criterion already fell
  short, undetermined otherwise.

A scenario overrides this only when a prerequisite decides before any gate,
such as an application that never built. The gates are part of the behavior
digest, so changing one redefines the scenario.

Harness invariants hold on every native run that passed, whatever its gates.
They belong to no scenario's digest; the run's `harness_violations` records
what broke.

- A message whose calls the Harness dispatched (some have a result) leaves one
  without a result: incomplete, like a failed gate, and the score stays.
- A turn of the root session ran one call (same target, same payload, its
  `agent_trigger` description aside) into the same error more than twice: the
  repeated-failure breaker answers the third locally, so the run went past it.
  Incomplete, and the score stays. A success between them, a different error
  or another turn starts the count over, as in the Harness. Only results the
  breaker notes count: not those of `harness::spawn`, `harness::ask` or
  `submit_result`, not the turn loop's own refusals, and not a result the
  sweep, a stop or a restart supplied. A call an approver released also
  bypasses the breaker but looks dispatched in the transcript, so
  `approval_roundtrip`, where the approval gate holds every call, is not
  checked.
- A transient resume, in any session of the tree, has no `recovered` row of
  its attempt or a later one while its turn neither failed nor stopped, or
  exceeds the turn's `max_transient_resumes`: incomplete, the same way. The
  run's `transient_recovery` lists each turn's recovery rows, and
  `efficiency.transient_resumes` counts them over every session and turn.
- The session tree's trigger bindings keep their contract, read from the
  `trigger_fired` records of every session in `metrics.by_session`: each
  `outcome` is a known one and a retirement names its reason, a wake's
  `delivered` records match the `e_fire_` entries it injected, a `once`
  binding is delivered at most once, and after `harness::teardown` no session
  lists a binding and no engine trigger delivers one. A broken one is
  incomplete, like a failed gate; the run's `trigger_bindings` keeps the
  counts by outcome and what teardown removed.
- The prompt surface drifted, read before teardown from the root and every
  session `metrics.by_session` names (`src/prompt_surface.rs`): incomplete,
  and the score stays. A read of that surface that fails is an
  infrastructure error (`prompt_surface_collection_failed`) the slot re-runs.
  - `frozen_prompt_drift`: the root's `harness::system-prompt::get` built-in
    layer is not the `default_only` one opening with `You are an iii agent
    worker.` (for an `--agent` subject, the profile's `system_prompt`
    followed by the `<preloaded_functions>` and `<preloaded_skills>` blocks
    it declares); a child is held to the default only when its
    `harness::spawn` named no `agent` and no `options.system_prompt` and its
    parent ran no profile (a profiled parent's plain spawn continues it).
  - `runtime_context_malformed`: the frozen `runtime_context` aid does not
    open with `Your session id is <id>.`, names a working directory other
    than the one sent (else `harness::filesystem::info.default_root`, with
    the `(default directory, not an access boundary)` suffix under
    `configured_roots`), has other than one `Co-authored-by` line, or shows
    the dispatch-policy line on an unrestricted policy (or omits it on a
    narrowed one).
  - `response_language_mispinned`: the root session's
    `metadata.response_language` is not `eng`, or is unset on a prompt of 20
    words or more (shorter ones may miss the 0.8 detector threshold).
  - `prompt_ref_broken`: `harness_turn/<sid>.options.system_prompt` is not a
    `{"$ref": "sha256:…"}`, or `harness_prompt` holds no body hashing to it.
- A session's latest context snapshot carries `prompt_sections_fallback` (`disabled`,
  `no_stable_prefix` or `prefix_rewritten`): its requests shared no stable
  prompt prefix, so the provider cache reused nothing. Incomplete, and the
  score stays.
- A run whose root session sent more than one request served under half the
  cache share of its scenario's baseline: the median, over the latest 7
  executions of the same lane, model, provider and agent profile that
  completed before this one started, of each execution's mean cache share
  (cache reads over input, cache reads and cache writes) of its passed
  multi-step runs that broke neither of these two cache invariants.
  Incomplete, and the score stays. Fewer than 3 such
  executions hold the run to no baseline. The baseline is read from the
  history the execution is stored in (the Console's runs directory, or
  `run --runs-dir`); a run without one is not held to it.
- A session on the subject model was fit into the context-manager's
  8192-token fallback limits while the catalog window is at least 32,768
  tokens: the router could not resolve the model, so nothing measured there
  can be trusted. It is an infrastructure error (`context_limits_unresolved`)
  the slot re-runs.
- Usage goes unmetered (`usage_unmetered`): a run that generated counted no
  input or output tokens, or a priced subject's such run counted no cost, or a
  generation that ended or called a function carries no usage. Aborted, failed and cut-off
  generations are exempt.
- Usage is misaccounted (`usage_misaccounted`): the session costs do not add
  up to the total, a session's running cost is more than 1% off its metered
  cost, or `free` is not what the window leaves.
- A generation ran off its route (`model_misrouted`): a root generation not on
  the subject's provider and model, or a child not on the model its spawn
  named, else its parent's, with the provider its spawn named, else its
  parent's. Sessions on an agent profile's route are not judged.
- A session that runs with the subject's thinking switch off (`--thinking
  off`) still reasoned (`reasoning_while_disabled`): reasoning tokens or a
  non-empty thinking block. Children inherit the switch unless their spawn
  names a thinking level; sessions on an agent profile are not judged.

  Each of these leaves the run incomplete and keeps its score, like a lost
  function result.
- The turn events keep their contract (`turn_events`): every root turn (an
  `origin.turn_id` of the root transcript) got exactly one
  `harness::turn-started`, every turn of the tree at least one
  `harness::turn-completed`, every turn the runner sent got its completion
  event rather than ending only through the status poll, and `terminal` is
  `false` only on a root turn a wake follows and `true` on the last one.
  The flag is not required to be `false` before a wake, and children's flags
  are not judged: a wake may be armed after its turn completed. Delivery is
  at-least-once, so repeated completions are counted
  (`duplicate_completions`), never failed.
- Within 5 seconds of the tree completing, and before the terminal
  `harness::status` re-projects it, `session::get` shows the root `done` (`error`
  when the scenario expects its root turn to fail) and each child `done` or
  `error` (`session_status`), and reads back what was
  sent (`session_read_back`): the root's `kind` `e2e`, title and
  `metadata.e2e_run_id` / `e2e_scenario`; each child's `kind` `e2e`,
  `parent_session_id` and `depth`. A child may end `error` on a passed run,
  since the root can recover from a child that failed. The children are the
  ones `harness::metrics` walks from the root, through the same parent links,
  so a child stored under the wrong parent is missed rather than flagged; a
  grandchild is held to its own parent and depth 2.

Each of `turn_events`, `session_status` and `session_read_back` leaves the run
incomplete, like a lost result. The run's `turn_lifecycle` keeps the events
and session reads they were judged on.

Before a native run's first send, a preflight reads the Harness without a model
call and records `harness_preflight`: the SHA-256 of the Harness's
`configuration::get` entry, the `router::route` candidates for the subject
model with no provider pinned, and whether `harness::context-policy` allows
pruning for that model (`allow_prune`). The Harness never prunes a model that
binds thinking (any id containing `claude-opus-5-5`, `claude-sonnet-5-5`,
`claude-haiku-5-5` or `claude-fable-5-1`): it relieves that model's context
by compaction, and `context::assemble`'s emergency `reduce_results` pass
still reduces tool results when a compacted request stays over budget
(`context_pressure` observes those reductions). That subject still runs,
since no check depends on the Harness pruning during a turn
(`context_compaction`'s `aged_prune` calls `context::prune` itself). It
refuses the run as an infrastructure error when:

- the default `engine::functions::list` lacks a function the Harness
  `register`s, a `register_internal` one is not registered, or
  `engine::triggers::list` lacks `harness::ready`, `harness::turn-started`,
  `harness::compaction`, `timer` or one of the six `harness::hook::*` types
  (`harness_not_ready`, re-run in the same slot);
- an internal function is on the default catalog, a retired key
  (`provider_identity_prompt`, `permissions`, `providers`) is still set,
  `max_validation_retries` is not 2, `max_children` not 8, `max_depth` not 3
  (16, 6 and 1 are the executor's `fanout_ladder`, `depth_ladder` and
  `spawn_depth_cap` stamps),
  `default_max_turns` not 500, or `prompt_cache_sections` or `co_author` not
  true (`harness_misconfigured`, not re-run).

Prefix divergences, the already-sent rows a session's requests rewrote, are a
trend before they become a gate: efficiency's `prefix_divergences` counts the
ones no compaction explains, and Trends charts them as Prefix rewrites. A
rewrite caused by `prune` or `system_prompt` on a step that wrote a
`compaction` record is the context-manager making room; any other one stops
the provider cache there. The Harness tracks sent rows in memory, so a restart
forgets them, and a rewrite without a cause can come from a provider's wire
mapping alone.

Outside the Harness mechanisms module, the scenarios that exercise a Harness
mechanism also gate the mechanism itself (`src/mechanism_gates/`): `context_pressure` its compactions, `contention_ledger`
its spawns, leaf wall and barrier, `timer_wake` its wake, `tool_contract_recovery`
its dispatch policy, `validation_self_repair` its validator binding,
`persistent_state` its invocation chokepoint, `shell_coder_sandbox` its
filesystem stamp, and a null-canary or onboarding run its agent profile. The
runner arms observers before the prompt and probes the stack before teardown;
the run's `mechanism_evidence` keeps what they saw. A probe the stack answers
with an error is judged like any other answer. A broken gate is a
`mechanism_gate` violation: incomplete, like a failed gate, and the score stays.
The `pre_generate` observer is a global hook (the Harness has no session filter
for it), so while one of these attempts runs, every step on the stack makes one
extra round trip to the runner. `persistent_state`'s observer also appends one
line to the prompt, which its behavior digest covers, and its gate requires
each step's messages to begin with the messages of the step before: the
Harness never rewrites what it already sent.

Each criterion has a `description`, the question the subject is scored on, and
a `label`, a 3–8 word statement the test card shows ("Stored record matches
the migration exactly"). The description is part of the behavior digest and
reaches the subject in some scenarios; the label does neither, so it can be
reworded without redefining anything. Kanban labels live in
`src/scenarios/kanban/labels.json`, beside the rubric, not in it.

## Requirements

`shell_coder_sandbox`, `chess_engine_build`, and `trend_blog` prepare their
reviewed fixture from an embedded Git bundle. They need Git. They do not need
a fixture checkout or `HARNESS_E2E_FIXTURE_PATH`. Each attempt uses a private
workspace, and temporary source checkouts are removed after their contents are
read.

`chess_engine_build` also needs a Compose daemon, a running iii Console, and an
interactive browser. It grades a run-scoped chess Worker through live functions,
the Console injectable-UI manifest, and the playable page at
`#/worker/<worker>/chess`, then preserves screenshots of the real Console with
the functional evidence. Setup installs the pinned iii SDK with npm before the
run; a cold npm cache needs Registry access.

`typescript_chat_service` carries its own frozen skeleton. It needs Node 22.6
or newer on the runner host: the subject's TypeScript application runs through
Node type stripping, both in the public suite and in the runner-owned
behavioral probe.

The trending-topics build needs Linux amd64, Docker, Git, Python 3, Node, and
access to its pinned fixture. See
[runtime and controls](tests/fixtures/trending-topics-build/README.md).

The engineering handoff uses a protected disposable checkout of a pinned
revision of `iii-hq/e2e-fixture`.

## Develop

From the repository root:

```bash
pnpm --dir dashboard install --frozen-lockfile
pnpm --dir dashboard typecheck
pnpm --dir dashboard lint
pnpm --dir dashboard test
pnpm --dir dashboard build
cargo test --locked --all-targets
cargo clippy --locked --all-targets -- -D warnings
node --test tests/dashboard/*.test.cjs
HARNESS_E2E_BIN="$PWD/target/debug/harness-e2e" python3 -m unittest discover -s tests/python -p 'test_*.py'
```

The Rust build writes `dashboard/dist-console/page.js` and `styles.css`, then
embeds both in the worker. Node and pnpm must be on `PATH`.

List scenarios and their definition digests:

```bash
cargo run --locked --bin harness-e2e -- list
cargo run --locked --bin harness-e2e -- catalog
```

## Commands

| Command | What it does |
| --- | --- |
| *(none)* / `worker` | Run the Compose-managed control-plane service. |
| `list` | Print every scenario id. |
| `catalog` | Print the materialized scenario catalog. |
| `run` | Execute one or more scenarios against a running stack. |
| `report` | Summarize a saved `results.json`. |
| `models` | List models registered in the running stack. |
| `test-plan list` | List suites and their coverage. |
| `test-plan materialize` | Expand one suite into campaigns, groups, and cases. |
| `--manifest` | Print the Registry worker manifest as JSON. |

The E2E runner and launch scripts force `III_TELEMETRY_ENABLED=false` for
themselves and their child processes, preventing iii product usage events
from being sent to PostHog. For tests against an existing stack, set this
opt-out when starting its engine and Compose too. An engine already running
without the opt-out must be restarted with it before E2E tests.

Run one scenario against an existing stack:

```bash
cargo run --locked --bin harness-e2e -- run \
  --url ws://127.0.0.1:49134 \
  --model codex/gpt-5.6-luna \
  --provider openai-codex \
  --scenario todo_worker_simple
```

## Scenarios

Every scenario is a built-in module under `src/scenarios/`. The module owns
its prompt, setup, deterministic evaluator, and cleanup. Its id is the same
in the CLI, the worker catalog, the campaign runner, the dashboard, and the
canonical result artifacts. Plans name the scenarios they run.

Featured suites:

- [Registry](tests/fixtures/registry-version-comparison/README.md):
  `registry_planning`, `registry_implementation`, `registry_environment`, and
  `registry_verification`. Each has its own
  [atomic validations](tests/fixtures/registry-version-comparison/scoring.md).
- [Linkly tutorial](tests/fixtures/linkly-tutorial/README.md): the `linkly`
  suite. `linkly_tutorial` runs the seven tutorial chapters plus a
  project-restart guard as one scripted dialogue on one Harness session,
  against the `linkly-agentic` scaffold's Compose stack, and scores
  twenty-two deterministic checks. The `linkly` stack starts every group from
  a fresh scaffold; `scripts/linkly_stack.py` prepares one by hand.
- Onboarding tour: the `onboarding` suite. `onboarding_tour` takes the
  console tour of the onboarding worker the way a new user does, as one
  scripted dialogue under the `harness` template's Onboarding profile
  (`ade-worker-builder`), on the `onboarding` stack: the project
  `iii project init --learn-iii` creates. The test plays the tour page, closing each step as the page does,
  and checks what every step left behind.
- [Trending topics](docs/blog-build-contract.md): an isolated per-attempt Git
  remote and an independent Playwright acceptance check against the delivered
  SHA. Design is free. Screenshots are evidence, not an aesthetic score.

`config/test-plan.json` groups the catalog into modules (state, context,
wakes, coordination, software engineering, integration, security, adaptive
operations, continuous engineering, the Harness contract, the Harness
mechanisms, and the incremental Kanban application)
plus a diagnostic set that suites can opt into.

## Test plans

[config/test-plan.json](config/test-plan.json) is the executable plan. Rust
materializes its suites and execution rules from that source and from the
native scenario contracts. There is no generated catalog to keep in sync.

| Suite | ID | Purpose |
| --- | --- | --- |
| Core runtime regression | `regression` | Core runtime, recovery, context and call-guard checks, plus four probes of the Harness's own contract and five short checks of its mechanisms, eleven independent rounds (enough for the calibrated verdict to see a fall of 8 points); one technical retry where safe. Release Control runs it daily. |
| Null agent canary | `null-canary` | The regression's agent tasks, `minimal_path` and the two `model-and-workers` tasks run as the `null-agent` profile: every test must score 0 and stay incomplete. |
| Model and worker behavior | `model-and-workers` | `database_migration_recovery` and `prompt_injection_resilience`, three independent times each: they score the database worker and the model, not the Harness, so they stay out of the regression and of Harness comparisons. |
| Application builds and changes | `software-engineering` | Kanban, Registry delivery, the trending-topics blog, Alertmanager route migration and the chess, form-flow and state-machine Workers, three independent times each. |
| Application builds and changes ×3 (weekly) | `software-engineering-x3` | The same tests three independent times, to measure the suite's run-to-run spread. |
| Application builds and changes ×9 (harness comparison) | `software-engineering-x9` | All 14 cases nine independent times, on demand when a Harness release is judged, to compare two Harness versions. |
| Core runtime regression ×11 (harness comparison) | `regression-x11` | The regression's twelve agent tasks eleven independent times, on demand when a Harness release is judged, to compare two Harness versions. |
| Context capacity (compaction) | `context-capacity` | Kanban chapters 1, 4 and 7 and context pressure, on the `context-capacity` stack. |
| Human approval of agent calls | `approvals` | One approved and one denied call through the approval gate, on the `approvals` stack. |
| Application builds with Deepwork | `deepwork` | The existing chess, form-flow and state-machine builds, on the `deepwork` stack with the `deepwork-e2e` profile. |
| Build Linkly from the tutorial | `linkly` | The Linkly agentic tutorial alone, on the `linkly` stack. |
| Complete the onboarding tour | `onboarding` | The onboarding tour a new user takes, alone, on the `onboarding` stack. |
| Memory quality | `memory` | What the memory worker injects into a live session, twenty-two cases three times each, on the `memory` stack. |
| Memory smoke | `memory-smoke` | Three memory cases once each, on the `memory` stack, for every Harness release and daily: recall, a repeated question, and a rule changed mid-session with the memory section and the prompt prefix frozen. |
| Harness mechanisms (weekly) | `harness-weekly` | `mechanical_reaction`: a state call binding mirrors its event without a model turn and wakes only its session. |
| Context pressure with signed thinking (weekly) | `context-thinking` | `context_pressure` on a Claude 5.5 model, on the `context-thinking` stack: compaction with thinking that the API rejects when its prefix changed. |
| Memory learning | `memory-learning` | What memory learns from a chat with the user and gives a later session, and that it learns nothing from a non-user (test or automation) session, seven cases three times each, on the `memory` stack. |
| Memory strict delivery | `memory-strict` | Opt-in, in no schedule: whether memory delivers exactly the facts each question needs, as the final model request recorded them, seven cases three times each, on the `memory-strict` stack. Needs unreleased Harness, memory and context-manager builds; advisory for one cycle. |
| Memory gain | `memory-gain` | How much better the memory cases go with memory than without it: the cases of Memory quality and Memory learning and six precise cases, three times each, once per stack (`memory`, `memory-off`, `memory-consolidated`) and per model, on memory releases and on demand. `scripts/memory_gain.py` reports the gain per class. |
| Essential checks before merge | `pr` | Four essential checks of a candidate stack before merging a change. |
| Published stack checks | `after-release` | Five essential checks of the published stack. |

A suite is only what to test: scenarios, runs of each and technical retries.
In the Console these suites are read-only; **Suites** copies any of them into
a suite of the Console to edit, and **Run tests** runs a suite with a model on
the current Harness. See [suites](dashboard/README.md#suites).

```bash
cargo run --locked -- test-plan list
cargo run --locked -- test-plan materialize --suite software-engineering
```

The plan's digest, `definition_sha256`, covers the whole document, and every
suite's `profile_sha256` folds it in. Any edit to the plan, such as adding the
comparison and capacity suites or rewording a purpose, gives every suite a new
`profile_sha256`, even a suite whose tests did not change. Release Control
groups executions by `profile_sha256`, so the first release with the new plan
starts a new cohort for every suite. Compare across that release test by test,
by `behavior_sha256`, not suite by suite.

The `software-engineering` suite runs each selected case three independent
times (`-r01` to `-r03`), with no technical retries: the seven Kanban cases, Registry implementation and verification,
the trending-topics build, Alertmanager route migration, and the chess,
form-flow and state-machine Workers in the Console. That is 14 cases and 42
planned runs, in 14 execution groups a round (42 jobs). One attempt run alone
moved the suite by up to 7 points: on 2026-11-11 a chess Worker that never
registered and a Kanban board whose cards did not render took it from 92.7 to
78.5, and the same stack scored 94.9 when dispatched again. Three rounds cut
what one failed attempt moves to about a third, at about US$5.5 an execution
on `deepseek-flash`. Registry
implementation and verification run in groups of their own: verification
checks a fixed delivery pinned by e2e-fixture commit, not the implementation's
delivery. Trending topics runs in
`case-trending-topics-build`. Baseline worker versions come from the resolved
stack contract. Alertmanager runs in its own group, needs Go 1.25+, and has no
turn or token ceiling.

A suite with `repetitions: 3` (`software-engineering`, `software-engineering-x3`) materializes three
campaigns, `<suite>-r01` to `-r03`, with the same groups and seeds; every group
of every round is its own job, so a round adds jobs, not time to a job.
`regression` runs eleven (`-r01` to `-r11`): 231 jobs, nine at a time, under
the 256 jobs GitHub allows one matrix.

Four of the regression's tests check a Harness mechanism the model has to set
in motion. `spawn_depth_cap` reads the Harness's `max_depth` from its
configuration entry and expects one session at each depth up to it and the
next spawn refused (`harness/spawn_depth_exceeded`, `spawn depth N+1 exceeds
max_depth N`); the executor stamps `max_depth: 1` on a stack that runs it, the
cheapest cap that still refuses, unless `depth_ladder` needs 6.
`repeated_failure_breaker` and `truncated_call_guard` check the two guards the
Harness answers locally: the third identical failing call and a call whose
arguments the output limit cut short never reach their run-scoped fixture. A
run where the model called the fixture but never provoked the guard (it
stopped retrying, or split the payload up front) is undetermined, with no
score; one that never called it is incomplete. `restart_recovery` restarts
session-manager between its first two exchanges and the Harness while its third
waits on a held call. Every regression test runs in a stack group, and so a
job, of its own, so the restarts reach no other test; it must never run on a
shared stack. It reads the session's status before the runner's
`harness::status`, which would repair a lost projection, and counts that read
only when the runner's wait ended on the turn's terminal event. The held call
must have run once for each call in the transcript, and two one-shot bindings
the runner arms on a side session of its own right before the Harness restart
(a state change and a timer, both calling a fixture) must each deliver once
after it.

Four more of the regression's twenty-one tests probe the Harness's own
contract rather than an agent's work: `harness_contract_probe` (the sends
`harness::send` must refuse, and the two output caps it must accept),
`dispatch_pipeline` (policy, hook chain, result normalization, hook holds and
discovery of a function call, and a child that asks for more than its parent
has), `binding_contract_probe` (trigger bindings:
refusals, call bindings, wakes, the cap of 64 and teardown) and
`turn_failure_surface` (a turn refused by its budget preflight or a `pre_turn`
hook fails at zero tokens). The runner drives them directly, so each costs
less than a cent: one to six short turns, or none. Their hooks bind only the
run's own fixtures and sessions. `turn_failure_surface` declares
`expected_root_outcome = Failed`, and `harness_contract_probe` and
`binding_contract_probe` end with a bare follow-up, so the turns a probe
started are counted in the run's usage.

Five more check Harness mechanisms through short turns:
`structured_output` (a turn asked for JSON returns the validated object as its
result), `context_compaction` (`/compact` and `harness::compact` beside a live
turn, and a prompt too large for the window) and `session_continuity` (a send
that names only the session keeps its model, policy and filesystem root),
`steer_and_stop` (queued steers reach a running turn in order, and a stop
cancels a parent and its child) and `router_fault_contract` (a scripted
provider fails before, during and after a stream, and the turn resumes, fails
or stops as the contract says; the same provider scripts a turn into its step
cap, a call whose arguments need repair, and one spawn past the fan-out cap). Like
the probes, they have no null-agent control and stay out of `null-canary` and
`regression-x11`.

The `null-canary` suite runs the regression's twelve agent tasks, `minimal_path`
(the one test `pr` and `after-release` add to the regression) and the two
`model-and-workers` tasks once, with no technical retries, and is meant to run as the `null-agent` Directory profile
([config/agents/null-agent.md](config/agents/null-agent.md)): it answers
`done` and calls no function. The four Harness contract probes and the five
mechanism checks stay out: they score the Harness, which an agent that does
nothing cannot fail. The
executor copies `config/agents/` into the
project's agents folder whenever an execution names a profile. Every run must
score 0 and stay `task_incomplete`; a point or a completion is a hole in that
test's evaluator, and a function call means the agent disobeyed, not that the
evaluator paid.

`cargo test` holds the same canary without a model, and its counterpart, for
every test a suite schedules. Each is scored as the runner scores it against a
null delivery (no call, one turn, a reply of `done` or one that only claims the
result), which must earn 0 and stay `task_incomplete`, and a reference
delivery, which must complete with 100; both run ten times and a result that
changes between rounds fails as drift.
The evaluators of the seven Kanban chapters and of the Registry,
trending-topics, chess, form-flow, state-machine, Linkly and onboarding tests
score what a live stack, Docker or a browser left behind. For each of them the
test names the reason and the deterministic controls CI runs instead
(`LIVE_CONTROLS` in `src/test_plan.rs`), and checks that CI runs every control
it names:

- Registry implementation and verification: `tests/python/test_registry_validation.py`
  scores the empty, the claim-only, the one-check-executed and the all-passing
  report, and
  `tests/python/test_registry_feature_probe.py` the feature probe's failure
  regressions.
- Trending topics: the evaluator, lifecycle and focus controls
  (`evaluator.test.mjs`, `test_lifecycle.py`,
  `tests/python/test_trending_focus_eval_regressions.py`). The reference app
  in `validate-controls.mjs` needs the private e2e-fixture app and runs by
  hand.
- Chess: the browser controls of `tests/fixtures/chess-eval/negative-control.mjs`,
  through `tests/python/test_chess_eval_regressions.py`.
- Form flow and state machine: the browser controls of
  `tests/fixtures/visual-worker-eval/regressions.mjs`, through
  `tests/python/test_visual_worker_eval_regressions.py`.
- Kanban, all seven chapters: the browser controls and scoring regressions in
  `tests/python/test_kanban_browser_flows.py` and
  `tests/python/test_kanban_scoring_regressions.py`. The base and reference
  controls of `scripts/kanban_eval/run.py` need Docker and the fixture and run
  by hand.
- Linkly and onboarding: no CI control.
- The four Harness contract probes: no CI control. Their subject is the
  Harness, not the agent; each scenario's unit tests score failing probe
  records offline.

The `linkly` suite runs the Linkly tutorial alone: its eight exchanges in
`case-linkly-tutorial`, once, with no technical retries. Run it on the `linkly`
stack, whose template starts every group from a fresh pinned `linkly-agentic`
scaffold as the Compose project that hosts the Harness; on another stack the
scenario's setup refuses the project it finds.

The `onboarding` suite runs the onboarding tour alone: its six prompts in
`case-onboarding-tour`, once, with no technical retries. Run it on the
`onboarding` stack, the `harness` template plus the tour's `onboarding`
container as `iii project init --learn-iii` seeds it; on another stack setup
refuses to start. The test always runs as the template's Onboarding profile,
`ade-worker-builder`: an execution that names no profile takes it, and one that
names another is refused. The test plays the `learn-iii` tour's card. Setup
closes the button steps (the sign-up box is skipped, never submitted) and
observes each other step's condition, as the card does. When the observed
function runs, the step is closed with `learn-iii::steps::complete`. After the
dialogue the test adds two expenses through the agent's expense tracker, one
still to be reimbursed and one already reimbursed, as the tracker's page
would. It observes the tracker's event functions (its private functions, as
event sources are) after each and reads its totals before, between and after.
The objectives, gates in bold: **every tour step closed**, **the database
worker runs**, the Discoverability answer saying what each worker can do, **a new
worker with at least two functions**, its Console page (an observer of
`ade::ui::asset`), an expense's four fields, a total still to be reimbursed
that counts only the unreimbursed expense, the tracker's own event function,
**that function called for each added expense**, **an observer the chat put
on it** (an accepted `harness::observe`, or one still live), **the onboarding
worker removed**, and the tour served matching the fixture. Between prompts the test
waits, as the tour's card does, while the agent is still on a step: a turn
running or a wake it armed, up to twenty minutes.
[tests/fixtures/onboarding-tour/learn-iii.json](tests/fixtures/onboarding-tour/learn-iii.json)
is the tour the test was written against. If the worker serves a different
tour, the run loses the `tour.current` criterion and nothing else. When the
tour changes on purpose, regenerate the fixture from the worker's
`src/tours.mjs` with `scripts/onboarding_tour_fixture.mjs`.

The `memory` suite runs twenty-two cases, three independent rounds, one
technical retry. Each case plants its own bank (`e2e-<attempt>`) with the
rules, memories and unrelated distractor facts it calls for, waits until
memory has indexed all of them (with MiniLM; lexical-only stores nothing to
wait for), sends its prompt and follow-ups, and audits what memory injected
into each turn against what that turn needed: the right facts, no duplicates,
nothing unrelated, rules intact in the system prompt. A case may also change
its bank between turns (a rule set or removed, memories deleted, superseded,
rewritten or saved, the bank trashed) and judge what the next turn gets: a
rules change must arrive as one appended `<memory update="rules">` notice
while the system prompt keeps the section the first turn froze. The subject
may call no function (`memory::*` is denied), so a planted value reaches the
answer only through memory's injection. Two cases are baselines: the same task
with nothing planted, expected to fail, since a baseline that passes means its
value case proves nothing. Scoring is deterministic, never a model.

Beside recall, small talk, first person, paraphrases, repeats, stale facts,
rule fit and the two value cases with their baselines, eight cases cover:

- `memory_chatter_after_answer`: "tell me more" and "I know." after an answer
  inject nothing. Their words match nothing the case plants, since in
  lexical-only mode one shared word can still inject a memory.
- `memory_user_fact_needed`: a task that asks for the user's own preference
  gets that fact about the user, and no other.
- `memory_about_me`: "What do you remember about me?" brings back the six
  facts about the user and none of the eight workplace facts.
- `memory_reworded_across_turns`: a fact still in context is not sent again in
  other words. Setup checks with `memory::preview` that memory still ranks the
  two wordings as the case needs; when it does not, the attempt is an
  infrastructure error, so the case is redesigned instead of passing without
  testing its point.
- `memory_sibling_facts`: two services on Postgres 16 both reach the turn that
  asks which services use it.
- `memory_rule_changed_mid_session`: a rule edited, then removed, arrives as
  one update each time, the per-turn rules reminder follows it, and the
  system prompt never changes.
- `memory_bank_edits_mid_session`: a memory deleted, one superseded, one
  rewritten and one saved between turns reach the next turn as they now stand.
- `memory_bank_trashed_mid_session`: once the bank is trashed, the next turn
  reads no bank, gets no memory, and is told that no memory section applies.

Three more cases were written to fail before memory changes, to prove a gap
exists:

- `memory_many_siblings`: seven services on Postgres 16 all reach the turn that
  asks which use it. A memory that cuts a turn to six lines by count, before
  its token budget, always leaves one out.
- `memory_about_me_overflow`: "What do you remember about me?" over ten facts
  about the user brings back all ten and none of the eight workplace facts.
  The same six-line cut returns six.
- `memory_linked_update`: a newer note that the payments-api on-call engineer
  left reaches the turn that asks whom to page, beside the escalation
  contact. The note shares no word with the question and has no word memory
  reads as a change; only the entity it shares with the on-call line links
  the two. It is built for lexical-only retrieval, as on the Linux builds CI
  and the local recipe below use: with MiniLM, the note's meaning could rank
  it on its own.
  The other API's on-call engineer left out is scored, since recall ranks it
  and the link never reaches it.

`stacks/memory.yaml` runs the released `memory`, so the gap cases
(`memory_many_siblings`, `memory_about_me_overflow`, `memory_linked_update`,
`memory_learn_from_long_message`, `memory_honors_do_not_keep`) fail until a
memory release carries these fixes.

Each run also records `memory_` measurements: expected, irrelevant and
duplicate injections, the injected, rules and reminder tokens, the turns where
the memory hook did not run (a turn after the case trashed its bank is not
one), and, for a case that changes its rules or trashes its bank, the rules
updates memory sent (`memory_rules_updates`). An attempt that cannot show
memory ran on its own bank is an infrastructure error, reported unscored and
not retried automatically, so rerun the case: no hook, another bank, a recall
count its parsed lines do not match, a rules update memory announced that did
not parse, an unobserved prompt, a failed compaction, or a change between
turns that failed or never ran. The one exception is a turn after the case
trashed its bank: no bank or another bank there is what that case's gate
scores, so a fallback to `main` fails the case instead of being rerun. The
evidence never keeps another bank's text: such a block keeps its line count
with every line withheld, and a rules update or memory section naming another
bank is withheld whole. The run's raw transcript (`transcript.json`) is not
filtered: when memory falls back to another bank, that bank's text stays
there. A fresh bank per attempt makes every case safe to
rerun, and `memory::bank::delete` moves the attempt's bank to memory's
`.trash` afterwards; the user's own banks are never touched.

The `memory-learning` suite runs the learning cycle: seven cases, three rounds,
one technical retry, on the same stack. Before the measured session, setup
sends the case's teacher messages in a session of the user's own kind
(`teach_<attempt>`), pinned to the attempt's bank and with nothing to call,
waits until memory's extraction cursor names the teacher's last user or
assistant message (up to four minutes), and reads the bank, retired memories
included. The measured session then runs as in `memory`:

- `memory_learn_then_recall`: a release command said in chat is learned,
  reaches the later session and is used; a deploy key said in passing, in a
  turn of its own, is never stored, injected or answered.
- `memory_learn_rule_then_obey`: an instruction given in chat becomes a
  standing rule the next session's two commit messages follow.
- `memory_learn_correction`: a correction of a planted fact is learned; the
  stale fact left out and retired are scored, since they rest on the
  extraction model's wording.
- `memory_automation_not_learned`: a non-user session asking memory to
  remember a release command leaves the bank as setup planted it, once
  extraction has read the session. It runs as the runner's own `e2e` kind,
  which memory treats like `automation` and every other non-user kind.
- `memory_learn_from_long_message`: one user message of about 4,400
  characters states a release command near its start and a staging database
  host in its middle, and both must be learned. A memory that cuts a
  transcript line over 2,000 characters to its first and last 1,000 before
  extraction reads it loses the host; the release command is the control that
  extraction ran.
- `memory_honors_do_not_keep` and its control `memory_keeps_without_a_rule`:
  the same chat states a release command and a diagnosis. With a rule never
  to remember the user's health, the diagnosis must not be stored, injected
  or answered; without it, it must be stored, or the first case would pass
  with the rule doing nothing. The control is a case of its own, not a
  baseline, which never runs its teacher. A memory whose extraction reads no
  hand-set rule keeps the diagnosis either way.

The long-message and do-not-keep cases were written to fail before memory
changes; `memory_keeps_without_a_rule` is their control, green on both builds.
All three ask their teacher to reply with one word, `noted`, and setup fails
as an infrastructure error on any other reply: a reply restating the host
would teach it from a short line, and one refusing to keep the diagnosis would
change what extraction reads in one twin only.

Extraction calls a model, so these gates move with it: memory pins it with
`extraction_model` (`deepseek::deepseek-flash` on the `memory` stack), and the
teacher always talks to `deepseek-flash`. Extraction that ran and kept nothing
fails the learned gate; a teacher turn that never finished, a cursor that
never arrived, or a teacher turn memory read on another bank is an
infrastructure error. The two value cases share the `memory` suite's
baselines, whose task is the same. The teacher and extraction run outside the
subject's session and its cost cap, so each run records `memory_learned`
(memories and learned rule lines extraction kept) and `memory_extraction_ms`.
That is how long the runner waited for memory's cursor once it had read the
session, not how long extraction took: memory extracts in the background as a
turn ends, so it is usually 0, and a nonzero value is extraction still running
after the runner saw the turn finish. Cleanup deletes the teacher session before it trashes the bank, and when
memory read another bank on a teacher turn, it retires there what the
teacher's extraction wrote.

The `memory-strict` suite holds seven delivery cases, three rounds and one
technical retry each (21 runs), on the `memory-strict` stack: the `memory`
stack plus the capture variable on the harness and a declared context-manager,
so the scheduled memory suites keep a harness without capture and a pinned run
can build all three workers. It is opt-in: no schedule, workflow or default
group runs it. Each case reads what the final
model request held, not only what the pre-generate hook returned:

- `memory_kafka_attribute`, `memory_trip_attribute`, `memory_team_attribute`
  and `memory_workshop_attribute`: a stored fact on the same topic does not
  answer an unknown partition count, hotel, team size or room. The first
  question asks for the exact reply `I don't know` when the answer is unknown;
  the follow-up needs the stored fact.
- `memory_user_other_person`: the user's booking and another person's on the
  same topic, each delivered only to the question about its owner.
- `memory_current_and_history`: two planted records label themselves as the
  original and the current plan; the first question gets only the current
  one, the follow-up both as `Original:` and `Current:` lines, so an answer
  that puts a value under the wrong label fails. It tests selection by label,
  not how memory learns a correction.
- `memory_incremental_long_recall`: two teacher turns, a long note with a host
  in its middle and then a named port; memory must hold each fact once after
  each turn, and the later session needs the host and the port.

The cases read the generation capture: a Harness started with
`III_HARNESS_SYNTHETIC_GENERATION_CAPTURE=1` (set on the `memory-strict`
stack's harness) registers `harness::on-generation-request`,
`harness::on-generation-response` and `harness::on-synthetic-memory-receipt`,
and stamps `origin.generation_id` on the assistant `session::update-message`.
The runner also observes `session::on-message-added`,
`memory::hook::pre-generate` and `session::append`. That needs Harness, memory
and context-manager builds that are not released yet (release order:
context-manager, then Harness, then memory). On the released `latest` workers
the capture events do not exist, so every run reports `strict capture
unavailable` with the error that stopped the capture from binding, as an
infrastructure error. The cases are advisory for one cycle, like every memory
case; after one live pass against released workers they move into `memory`
and `memory-learning`. The registry holds 42 memory cases: the 29 above, these
seven and the six precise cases below.

Run it on the `memory` stack, the default stack plus the `memory` worker.
Memory ranks recalls with the local MiniLM embedder where iii-directory has
one, and lexical-only (BM25 and entities) where it has none, as on the Linux
builds CI and the local recipe below use. Each run records which mode ran
(`retrieval` in its evidence). Lexical-only counts once the doctor has said so
for 15 seconds, so a stack still loading MiniLM is not taken for one without
it. Setup fails when memory embeds with any other model. To run a case on your own stack, from a checkout:

```bash
D=~/iii-memory-e2e && mkdir -p "$D" && cd "$D"
cat > worker-compose.yaml <<'YAML'
namespace: memory-e2e
startup_timeout: 600s
stop_timeout: 30s
engine:
  url: ws://127.0.0.1:49334        # own port, away from a live stack's 49134
# The Harness graph is listed explicitly: a bare `iii compose --up` does not
# resolve it from `harness` alone, and harness exits at boot without it.
containers:
  queue:             {worker: package://queue,             version: latest}
  state:             {worker: package://state,             version: latest}
  session-manager:   {worker: package://session-manager,   version: latest}
  llm-router:        {worker: package://llm-router,        version: latest, start_after: [state]}
  context-manager:   {worker: package://context-manager,   version: latest, start_after: [llm-router]}
  iii-directory:     {worker: package://iii-directory,     version: latest}
  cron:              {worker: package://cron,              version: latest}
  ide:               {worker: package://ide,               version: latest}
  harness:
    worker: package://harness
    version: latest
    start_after: [state, queue, session-manager, llm-router, context-manager, iii-directory, cron, ide]
  memory:
    worker: package://memory
    version: latest
    start_after: [state, queue, session-manager, llm-router]
    config_override: {extraction_model: "deepseek::deepseek-flash"}
  fp:                {worker: package://fp,                version: latest}
  provider-deepseek: {worker: package://provider-deepseek, version: latest, start_after: [llm-router, state]}
YAML
# Strip OpenAI so router::embed falls back to MiniLM or to none, as on CI:
# with an OPENAI_API_KEY in llm-router's environment memory embeds with
# text-embedding-3-small, whose vectors the cases are not calibrated for.
env -u III_URL -u OPENAI_API_KEY III_COMPOSE_STATE_DIR="$D/.compose-state" iii compose --up
```

Then, from the checkout of this repository:

```bash
III_NAMESPACE=memory-e2e III_TELEMETRY_ENABLED=false \
cargo run --locked --bin harness-e2e -- run \
  --url ws://127.0.0.1:49334 --provider deepseek --model deepseek-flash \
  --scenario memory_relevant_recall
cargo run --locked --bin harness-e2e -- report target/e2e
```

A CI or Docker run takes its suite from the stack's runner: until a
`harness-e2e` release carries `memory`, give the dispatch an inline stack that
pins `harness-e2e` with `commit:`.

### Memory gain

The `memory-gain` suite measures how much better a task goes with memory than
without it. It holds the 29 cases of `memory` and `memory-learning` and the six
cases of the `memory-precise` module, three rounds and one technical retry each
(35 cases, 105 runs), and runs once per stack and per model. The cases are the
same on every stack, so a case on two stacks is one test to
`harness-e2e compare`, which pairs on (`scenario_id`, `behavior_sha256`):

| Stack | What it changes |
| --- | --- |
| `memory` | Nothing: memory on, as the `memory` suite runs it. |
| `memory-off` | Memory with `inject_rules` and `inject_memories` off. It holds the same bank and still extracts, but gives the session no section, no rules and no memories. |
| `memory-consolidated` | The `memory` stack plus `memory-consolidate`, with no scheduled pass. Where `memory-consolidate::run` is registered, setup runs it on the attempt's bank once the case planted and taught it, so the session reads a consolidated bank. `memory-consolidate` starts after `memory`, which holds memory at the version the stack declares against the one its graph would bring. |

A memory case that scores an answer has a `class` in its results: `lookup`
when the answer returns a stored value as it was stored, `synthesis` when it
builds on stored facts or rules (a preference, a rule to fit, a fact about the
user). Baselines and cases that score no answer have none. No selection reads
it.

The precise cases plant one exact value among the distractors and ask for it:
an amount (`memory_precise_amount`), a date (`memory_precise_date`), a port
(`memory_precise_port`), an environment variable (`memory_precise_env_var`) and
a command (`memory_precise_command`). The answer must hold the value whole,
as its seed states it: the variable with its prefix, the command with its
flags. A canary whose label ends in `_usd`, `_date` or `_num` renders as an
amount, a date or a five-digit number instead of eight hex characters.
`memory_precise_long_message` teaches a port in the middle of one user message
of about 15,000 characters. They run only in `memory-gain`.

`scripts/memory_gain.py` reads one run per model and stack, splits each arm's
results into four rows of the cases that have a class (all of them, `lookup`,
`synthesis` and the precise cases), scores each run on the points its answer
criteria awarded (its `memory_answer_points` measurement) and runs
`harness-e2e compare --json` on memory-off against memory and on memory
against memory-consolidated. Every figure and verdict is the runner's. Read it
this way:

- The gain is a difference in answer points: what memory injected scores
  nothing, so an arm gains only where its answers got better. The memory-off
  arm still fails its injection gates, so its runs rarely complete; read the
  gain, not the completion.
- `memory_precise_long_message` scores the same on every arm until memory
  reads a user line past 12,000 characters: memory keeps the first and last
  6,000, and the port sits between. The rows leave it out; its own results
  say when that changes.
- Memory costs tokens, so the verdict often reads `cannot tell (trade_off)`:
  quality rose and so did the cost.
- On a lexical-only stack, as on CI, the consolidation pass has nothing to
  merge, so the consolidated row is expected to read no difference. The
  report's last lines say what each arm did: the tokens the memory-off arm
  injected, which must be 0 (the report fails otherwise), and in how many of
  the compared runs consolidation ran, what it superseded, how many model calls
  it made and how many notes it left. A compared run that did not consolidate
  is listed as an error.
- A local stack with `memory-consolidate` installed also consolidates each
  attempt's bank in the other memory suites.

The workers repository runs the three arms for two models on every memory
release and on demand, and keeps the report as an artifact. It is advisory:
the gate a person reads before turning on new memory defaults.

### Context capacity

The `context-capacity` suite exercises compaction without a long build: it runs
`kanban_c1_foundation`, `kanban_c4_ticket_flow`, `kanban_c7_live` and
`context_pressure` once each, on the `context-capacity` stack, which cuts the
usable window to about 128k tokens through the context manager's
`reserved_tokens_cap` and `reserved_pct` (`config_override` of its container;
the configuration hot-reloads). The usable input is the model's input limit, or
its window minus its maximum output, minus `min(reserved_tokens_cap, window *
reserved_pct / 100)`. On `deepseek-flash` that is 1,000,000 - 384,000 = 616,000
minus the stock 20,000 = 596,000; the stack reserves 488,000, which leaves
128,000. The cap alone is not enough, so `reserved_pct` is 49. Another model
gets another window from the same numbers: read `usable` in the run.

Scores of this lane are not scores of the normal window. The tests keep their
ids, so compare them only with other runs of this suite and stack, never with
the same test on `default`. Report the number of compactions and the peak
context of each run from the run's context snapshots. A run whose root session
sent one step a prompt larger than its usable window carries the advisory audit
flag `audit_context_over_window`, which moves no score: the provider's real
window took the step, but a model with the cut window would have refused it. On
2026-10-26 `context_pressure` did that, a 256,135-token step into 128,000 with
no compaction, all 48 documents read in one turn, and still scored 100. Its
`charter_preserved` gate now also needs every root step's billed prompt within
the usable window (within the 10% the window's estimate may miss by), so such a
run is incomplete: the charter survived the provider's window, not the context
manager. The peak is the one the efficiency report measures. A run without a
context snapshot, or whose root steps' usage does not add up to the root
session's totals (a step reported none), is not held to a window and says the
peak is unmeasured. On `default`, where `context_pressure` peaks near 255,000
of 596,000, nothing changes.

Projection, not a measurement (the usage of each step of recorded
`deepseek-flash` sessions, assuming the session goes on the same until it
reaches 128k; what happens after a compaction was not measured): the share of
runs that would compact is 100% for chapter 1, 35% for chapter 4, 83% for
chapter 7 and 100% for context pressure, and 0% for the regression tests. The
mean subject cost per run in local runs is US$0.20, 0.12 to 0.15, 0.17 and 0.07
to 0.09, about US$0.60 per repetition, summary not included.

```bash
gh workflow run exact-stack-e2e.yml -f suite=context-capacity -f stack=context-capacity -f model=deepseek/deepseek-flash
```

### Signed thinking across a compaction

Claude 5.5 signs each thinking block over the exact prompt before it. After a
compaction the Harness strips the thinking logged before the compaction record
(`harness/src/window.rs`); one it leaves behind is dropped by the API, silently
by default. The weekly `context-thinking` suite runs `context_pressure` on the
`context-thinking` stack, which cuts the window as `context-capacity` does
(Claude 5.5 lists 1,000,000 and 128,000, so a reserve of 744,000 at 75% leaves
128,000 usable) and sets `PROVIDER_ANTHROPIC_PREFIX_MISMATCH=error` on
`provider-anthropic`, so the API answers 400 instead and the run fails. Below
a 200,000-token window `context_pressure`'s charter gate also needs a
compaction record, so a run that never compacted cannot pass here. Haiku
5.5 is the cheapest model that binds thinking, and it thinks at the provider's
default effort. Scores compare only with other runs of this suite.

```bash
gh workflow run exact-stack-e2e.yml -f suite=context-thinking -f stack=context-thinking -f model=anthropic/claude-haiku-5-5
```

### Model and worker behavior

The `model-and-workers` suite runs two tasks the regression ran until
2026-11-10, three independent times each, on the default stack. Neither has a
Harness mechanism gate: `database_migration_recovery` scores the `database`
worker and the SQL the model writes, and `prompt_injection_resilience` the
model's obedience to its user (the Harness has no defense of its own against
injection; the task only shows that it hands a function's result over whole).
A fall here points at the model or the database worker. It is six jobs and
about US$0.04 an execution on `deepseek-flash`; three runs tell a task that
fails every time from one that failed once, not a fall of a few points.

```bash
gh workflow run exact-stack-e2e.yml -f suite=model-and-workers -f model=deepseek/deepseek-flash
```

### Schedules

Release Control holds the schedules; a suite here is only what to run. Beyond
the daily `regression`, these run on their own: `memory-smoke` daily and for
every Harness release on the `memory` stack, `harness-weekly` weekly on
`default`, and `context-thinking` weekly as above. `model-and-workers` has no
schedule until Release Control gets a plan for it (weekly on `default` is
enough); until then it runs only when dispatched.

### Approvals

The `approvals` suite runs `approval_roundtrip` once on the `approvals` stack,
the default stack plus `approval-gate`. The gate binds the Harness's
`pre_trigger` hook on `*` in fail_closed mode, so on that stack every call of
every session waits for a human; no other suite can run there. The runner plays
the human: it reads `approval::list-pending` for its own session (the
`e2e_run_id` it stamps on the session's metadata), allows the release fixture
and anything else the subject calls, and denies the purge fixture. The release
must run exactly once with its receipt in one result, the purge must never run
and answer with the reviewer's reason, and nothing may be left pending; a second
decision on a resolved call must come back `resolved: false`.

```bash
gh workflow run exact-stack-e2e.yml -f suite=approvals -f stack=approvals -f model=deepseek/deepseek-flash
```

### Comparing Harness versions

Decided on 2026-10-24 (KAN-516): a Harness release is judged on demand, when
it is to be judged, with `software-engineering-x9` (all 14 software-engineering
cases, nine repetitions) and `regression-x11` (the regression's twelve agent
tasks, eleven repetitions), each run once per arm on a pair of stacks of
[`stacks/harness-ab/`](stacks/harness-ab/), remote runs on `deepseek-flash`
(local tests may use Codex). The ceiling is about US$50 per comparison.
Changing the repetitions is changing `repetitions` in
[config/test-plan.json](config/test-plan.json) (1 to 20).

Cost per comparison, both arms, subject cost only (the judge and technical
retries add some): the mean of each test in local `deepseek-flash` runs, summed
over the suite, times repetitions, times two. The regression was US$0.15 a pass;
`subagent_validation_failure`, added after that measurement, costs about
US$0.009, and the two tasks moved to `model-and-workers` cost about US$0.013
together (the 1.8.44 and 1.8.50 arms), so about US$3.2; the 14 cases of `software-engineering` are US$2.51 a pass, so
about US$45.

A/A, to check the calibration: dispatch the same stack of
`stacks/harness-ab/` twice as both arms, the same suite and model, and compare
them as below. "Cannot tell" or "no difference" is the expected result. By
design a version against itself reads better, worse or a qualifier at most
about 2α = 5% of the time: quality moves either way at α/2, the cost either
way at α/2, and a test falls beyond the margin on its own at α over all the
tests together. Drawing both arms with replacement from one arm of the pair
below, the four arms in turn (SplitMix64 seed 5 for the draws, each
comparison seeded with its index), 3,000 comparisons each at the default
rule, it did in 3.6%, 3.7% and 3.5% of them at 5, 9 and 11 runs per test
(better or worse alone, 2.8%, 2.9% and 3.1%); with every compared test in
Holm's count, as before tests whose runs all score the same left it, 3.5%,
3.7% and 3.5%.

A/B: dispatch the suite once with each stack (for example
`1.8.44.yaml` and `1.8.50.yaml`), pass the YAML as `stack`:

```bash
gh workflow run exact-stack-e2e.yml -f suite=regression-x11 -f model=deepseek/deepseek-flash \
  -f stack="$(cat stacks/harness-ab/1.8.50.yaml)"
```

Download the artifacts of each execution and compare them:

```bash
harness-e2e compare A_DIR B_DIR --label-a 1.8.44 --label-b 1.8.50
```

Each argument is a `results.json` or a directory read for every
`results.json` below it. A run is its test and attempt: read twice with the
same content it counts once (a root bundle carries its groups' results),
with other content the first read stays and a warning says so, an attempt id
under two tests stays under both, with a warning, and a run both arms hold (an
arm compared with itself, or arms that share files) stays on each side, with a
warning that counts them and names their tests; a file that does not parse or
has no `scenarios` list, and a scenario without a `scenario_id`, are skipped
with a warning that names the file. `--margin` (5 points, a finite number
above 0), `--equivalence` (0.05, between 0 and 1), `--permutations` (10,000,
at least 1) and `--seed` (0) change the rule; `--json` prints the comparison
whole. The Console's comparison of two executions shows the same verdict,
read by the worker (`e2e::dashboard::execution-verdict`) once both have
finished, and the Trends overview shows it, with its warnings, for each
combination of the latest release against the previous one, or says there is
none when a side ran one run per test. `python3 scripts/harness_ab.py A_DIR
B_DIR` keeps its tables per metric and per scenario, whose intervals only
describe the spread, and ends with this verdict; it exits 1 when the runner is
missing or fails, and arms that share no test print empty tables and the
runner's answer that there is no verdict.

Only counted runs enter, those whose cause is the subject's (a run without a
cause, or with a cause this version does not know, falls back to `technical`,
with a warning), and a test only where both arms ran the same definition
(`behavior_sha256`); each definition left out is listed with why. A counted
run without a numeric score, or with one outside 0–100, leaves the quality,
and one without a cost above 0 (missing, zero or negative) leaves the cost,
each with a warning that counts the runs and names their tests, as does a cost
read over fewer tests than the quality. A sum too large to be a finite number
makes its tests read p = 1, with a warning, never "within ±5%". An arm that
mixes models or stacks, sides whose stacks differ in more than the Harness,
and unreadable results are warnings. Quality is the official score, the mean
over tests of each test's mean, with a margin of 5 points. Cost is the
efficiency that decides, set before looking: `cost.subject_usd`, the sum over
tests of each test's mean, shown as a relative change and tested as the
difference of the sums (a ratio of the sums let one run made 5% cheaper turn
"cannot tell" into "worse" when the arms had uneven runs). Completion, time,
the processed prompt, the context per turn and its peak are shown beside it
and decide nothing. Each question is a permutation test that exchanges the A
and B labels within each test, one-sided: quality improved (B ahead) and fell
(B behind) at α/2 = 0.0125, non-inferior (B shifted up by the margin, B ahead)
and inferior beyond the margin (shifted, B behind) at α = 0.025; cost within
±5% (B divided by 0.95, B ahead, and by 1.05, B behind) at α, cheaper and more
expensive at α/2. Each test also has its own test of a fall beyond the margin,
Holm-adjusted over the tests whose scores vary: a test whose runs all scored
the same on both sides reads p = 1 whatever the margin, cannot reject, and is
left out of the count. Quality within the margin whose fall is shown at α/2
stays non-inferior, and its reason says so: "Quality -2.6 points: it fell (p =
0.002), within the 5-point margin (p = 0.019)". The algorithm, down to the
generator (SplitMix64) and the shuffle (Fisher–Yates), is written at the top
of [src/verdict.rs](src/verdict.rs), for Release Control to reproduce on
[tests/fixtures/verdict/](tests/fixtures/verdict/expected.json), the pair
below.

| Verdict | When |
|---|---|
| better | quality improved, and cost within ±5%, below +5% or cheaper; or quality non-inferior and cost cheaper |
| no difference | quality non-inferior, and cost within ±5% or below +5% |
| worse | quality inferior beyond the margin, or cost more expensive unless quality improved |
| cannot tell | anything else; and better or no difference while a test fell beyond the margin on its own |

"Below +5%" is a cost shown under A + 5% that is neither shown within −5% nor
cheaper: lower than A, by an amount the runs cannot place. It ranks between
"within ±5%" and "cheaper", so that as B's cost falls the cost reads more
expensive, inconclusive, within ±5%, below +5% and cheaper, in that order and
never back; with "within ±5%" alone in between, B 2% cheaper read no
difference, 3% cheaper cannot tell and 3.5% cheaper better.

"Cannot tell" adds "a test fell beyond the margin" when one test's own fall
beyond the margin holds after Holm's adjustment (so steady tests added to
both sides, whose runs all score the same, are not counted and cannot dilute
a test that lost 22 points into "better"), "quality fell" when quality fell
by an amount the runs cannot bound, and "trade-off" when quality improved and
the cost rose. A test whose observed fall merely passes the margin is no
warning: at nine runs a version against itself shows one in nearly every
comparison. Raising a B score or lowering a B cost never
makes a p-value, a state or the verdict worse, but for Holm's count: a raise
that leaves every run of a test at one score takes that test out of the
count, which can bring another test's adjusted p under α. Property tests
check it with uneven runs per test and with a sweep of B's cost.

When the runs cannot tell, it says how many runs per test each arm would
need, the runs made kept, to settle what is undecided: quality at the margin
(non-inferior or, below −5 points, inferior), and the cost (below +5%, or more
expensive) unless quality points to inferior. For each question N is the
fewest runs at which its estimate would clear its test's threshold with a
predicted 80%, the true difference taken as uncertain as the runs measured
it: d − 0.84 s √(1/n₀ − 1/N) ≥ z s / √N, d the observed distance to the
threshold, s the per-run spread its test exchanges, n₀ the fewest runs a test
has and z 1.96 (2.24 for more expensive); "needed" is the largest, and above
30 it reads "more than 30". Planned at the observed Δ alone, as before, the
number was too low near the margin: with a true fall of 2 or 3 points (63 to
65 runs truly needed) it gave one under 30 in 27% of the comparisons, and a
fresh run at that number settled the quality in 31% of them. Planned this way
it gives one in 7% to 10% of them there and says "more than 30" otherwise;
adding the missing runs settles the quality in 46% to 65% of those that got a
number near the margin and in 65% to 97% away from it, and, the cost planned
too, the verdict itself in 30% to 95% away from the margin with a fresh run
at that number (50% to 95% adding the missing runs), against 6% to 83%
before (200 simulated comparisons per case, 6 to 14 tests, five runs, a
score spread of 12 to 15 points).

On the 1.8.44 → 1.8.50 pair, five runs per arm, both suites cannot tell.
Software engineering is 19.5% cheaper (p < 0.001), but its quality, −7.0
points, is neither within the margin (p = 0.62) nor below it, and its fall is
not shown at α/2 (p = 0.03); no test's own fall passes the margin after
Holm's adjustment (the Kanban board's −16.0 points among them). It counts the
Registry implementation run that scored 0 because the subject's own Compose
stack still held the evaluation port: the subject's doing, recorded as the
runner measured it. The regression's quality, −4.2 points, and its cost,
+5.1%, are both undecided. Either suite would take more than 30 runs per
test to settle: the quality in software engineering, the quality and the
cost in the regression.

What the decided repetitions can see, and an open decision for the owner:
the width of the cost equivalence, which nothing here changes. Simulated with
14 software-engineering tests at nine runs and 9 regression tests at eleven,
a per-run score spread of 15 and 12 points and a per-run cost spread of about
18%, 200 comparisons each:

| | `software-engineering-x9` | `regression-x11` |
|---|---|---|
| same version: cannot tell | 62% | 60% |
| same version: no difference | 35.5% | 36.5% |
| same version: cost within ±5% | 6% | 0% |
| same version: better or worse | 2.5% | 3.5% |
| 3 points lower: no difference | 6.5% | 7.5% |
| 8 points lower: fell or inferior (worse) | 97.5% (26%) | 99.5% (40%) |
| 12 points lower: worse | 95.5% | 99.5% |
| cost 20% higher: worse | 99% | 98.5% |
| cost 20% lower: better | 79.5% | 86% |

At that cost spread the runs almost never show the cost within ±5%: a
version against itself reads "no difference" mostly because the cost is
shown below +5%, and before that state existed the same comparisons read "cannot
tell" in 92.5% and 96.5% of them. With ±10% instead, a version against
itself would read the cost within ±10% in 91.5% and 84% and "no difference"
in 70.5% and 75.5% of them. Falls of 8 points or more and cost changes of 20%
are seen either way. Keeping ±5%, widening it, or running more repetitions
is the owner's call.

Below the verdict comes each criterion's health per configuration: one arm's
runs of a test under one definition, one model and one stack (each worker's
resolved version, the engine and the lock); runs whose results record no
model or no stack are a configuration of their own, with a warning. Runs are
read first, as evaluated, zeroed, prerequisite failed or infrastructure, by
their cause. Then the criteria of the counted runs that fall short in
exactly the same runs make one group: the four Kanban board criteria (empty,
retry, settings, total) that fell together in two runs of 1.8.50 are one
case, not four, and the Registry implementation run that scored 0 is one
case, not 22. A criterion a run left unevaluated (no points, or not listed)
is "not evaluated" there, not failed: the Registry verification's recall
falls short in every run, and its precision is evaluated in none. Each
criterion has its rate of full points, n and a Wilson 95% interval, and from
9 counted runs that evaluated it (the repetitions of
`software-engineering-x9`) is saturated, never full or oscillating; below 9 it
is insufficient data, however many runs its configuration has. The
comparison lists the groups whose points moved, largest first, over the
scored runs the test's Δ reads, grouping criteria by the runs they fall short
in and the runs that did not evaluate them, so the points a criterion left
unevaluated cost are a change of their own and the changes add up to the
test's Δ. All of it warns; nothing is hidden or held back.

## Release Control

Operational campaigns run through
[`.github/workflows/exact-stack-e2e.yml`](.github/workflows/exact-stack-e2e.yml).
This repository does not publish independent daily, weekly, post-deploy, or
fault-stress dispatch workflows.

A dispatch names what to test, where, and with whom:

| Input | Meaning |
| --- | --- |
| `suite` | A suite id from `config/test-plan.json`, or one suite as JSON. |
| `stack` | A stack in [`stacks/`](stacks/) by name (default `default`), or stack YAML. |
| `model` | `provider/model` the subject runs. |
| `profile` | Optional Directory agent profile the subject runs as. |
| `execution_id` | Optional Release Control execution. Without it the run only produces artifacts. |

Top-level `stacks/*.yaml` presets and `config/agents/*.md` profiles are
included automatically in the runner's build and local Docker checkouts.
Adding one requires no separate catalog entry; publish a new runner to make
it available as a built-in. Inline stack YAML remains available without a
new built-in preset.

A stack is an iii Compose project plus `iii` (a release, or `latest` for the
newest `iii/v*` release candidate, as Release Control resolves it) and an
optional `template`
(`<id>` or `<id>@<revision>` of `iii-hq/templates`). Credentials never go in a
stack: the executor stamps the namespace, the runner's data directory, the
model's provider, what the suite needs and the private env file per group.
Scripts always come from the dispatched ref.

A container may pin `commit:` (short or full sha) instead of `version:`:

```yaml
containers:
  harness:
    worker: package://harness
    commit: 3f2a9c1
    # repository: iii-hq/workers   # override only
    # path: harness                # override only
```

The repository is the one the Registry downloads the worker's releases from
(`github.com/<org>/<repo>/releases/download/…`), the folder is the worker's
name there, or the root of a repository named after the worker
(`iii-hq/harness-e2e`); `repository:` and `path:` only override. A commit
that does not exist fails the preparation; one the repository's default
branch does not have (GitHub serves a fork's commits through the repository
it forked) is a warning. The worker is built at that commit
with its own manifest (`iii.worker.yaml`: Rust workers, `cargo build
--release --locked`) and runs as a `path://` worker. Compose gives a
`path://` worker none of what a package gets, so the executor declares it with
the default config its manifest ships (under the stack's `config_override`),
its `env`, the compose file's folder to run in, and every dependency of the
worker's newest release at that release's exact versions and edges (Registry
`/resolve`), which are held: never asked of `compose::add`, unless nothing
else is left to ask for. The contract carries the build and
`runtime.commits`. A worker built from a commit reports its Cargo version,
so the reports name it `@<sha7>` in `identity.stack_versions`, never a
release, and `identity.stack_commits` gives its full commit, repository,
folder and whether the default branch has it; the Console shows and
compares it as `@<sha7>`.

A stack may also pin a worker's dependencies itself: a declared worker that
another one lists in `start_after` is held the same way, so the graph that
brings it keeps the stack's version instead of today's. The
stacks in [`stacks/harness-ab/`](stacks/harness-ab/) do this to change only
`harness` between two executions. They pin `iii` and the runner too, so they
stay out of the Console's list and are dispatched as YAML
(`-f stack="$(cat stacks/harness-ab/1.8.50.yaml)"`);
`scripts/harness_ab.py` compares what each arm observed and counts each arm's
runs by cause.

Known limit: the default config arrives as `config_override`, which Compose
ranks above what is saved (default < saved < override), so on a worker built
from a commit a value saved with `configuration::set` goes back to the
default when the worker restarts.

Preparation resolves the rest, once:

1. `scripts/prepare_execution.py dispatch` reads the inputs into
   `execution.json`, `stack.yaml` and `plan.json`; `runtime` resolves `iii`,
   the template and every `commit:`, and names the build cache entry of
   those commits (`executor.sh prepare resolve`, the step with a
   `GITHUB_TOKEN`).
2. `commits` (`prepare build`, only when the stack pins a commit) builds
   each pinned worker once per repository, commit and folder, in its own
   container, with no token or credentials and nothing else running: the
   commits' code runs there. The cache entry holds only the builds of those
   commits: `target/worker-builds`, which GitHub restores and saves with
   `actions/cache` around this step alone, or its own folder under
   `worker-builds/` in a Docker execution's data directory, mounted into
   this step alone. It copies the build into the contract
   (`workers/<container>/`) and declares it in the stack.
3. `runner` resolves the stack's own `harness-e2e` with `iii compose build`,
   pins that release in the stack and fetches it. That binary materializes the
   suite (`suite.json`, also kept as `profile.json`), so the suite always comes
   from the runner every group runs, and the finalizer aggregates with it. The
   runner's identity in the reports is its revision. A runner pinned to a
   commit is its build.
4. `contracts` writes one contract per campaign.
5. The stack is assembled once with `compose::add`, which expands every
   declared worker into its graph and writes `worker-compose.lock`; it gets
   the groups' provider credentials and one retry. The model's provider and,
   for an agent profile, the Directory come from Harness's graph with its pins;
   only one no graph brings is asked for on its own. `lock` puts that project
   and lock into every contract. Each group starts it with `compose::up`
   frozen, so every group runs the same versions. A template project is
   assembled per group, pinned to the versions that lock resolved.

The contract artifact carries the suite snapshot, the final `stack.yaml`, the
lock, the model, the profile and the iii release.

Campaign manifests never select or rotate seeds. They keep replay-safe turns
separate from scripted dialogue and composite flows, persist a summary for
every group, and are advisory while their longitudinal history is being
calibrated. Release Control owns scheduling. The executor keeps the result
advisory and archives each materialized group through the environment-owned
durable archiver.

Partial GitHub reruns reuse the contract artifact produced by `prepare`, kept
for 90 days. The finalizer matches group artifacts to the completed jobs'
execution times and keeps successful groups from earlier attempts. A rerun
that produces no artifact stays missing evidence; an older artifact does not
replace it.

`scripts/report_execution.py` posts observations to Release Control's run
ledger over OIDC: `materialized` before anything runs, one `shard` per
campaign group, and a `summary` from the finalizer. Runs come from
`results.json`, or from journal checkpoints when a group died before writing
one. A group that produced neither still reports that fact. A preparation
that failed, before or after the suite was materialized, posts a `summary`
whose `failure` says where and why: the `phase` (the executor step: `resolve`,
`build`, `materialize`, `assemble`, or `prepare` for the workflow's own
steps), the workflow `step`, and the `code` and `message` iii printed.

`workers` supplies versioned stack components. It does not orchestrate
campaigns.

### Verify from another pipeline

The composite action
[`.github/actions/verify-stack`](.github/actions/verify-stack/action.yml)
lets a pipeline in another repository run a suite (`pr` by default) on a
candidate stack: workers built from a commit (`pins`, `commit`), released
worker versions (`versions`), or an iii release (`iii`).
`scripts/verify_stack.py` dispatches `exact-stack-e2e.yml` without an
execution, waits for it and reads `execution-summary.json`, because a green
workflow does not say the scenarios passed (the campaign is advisory). The
action never fails its job; it sets `status`, and the caller decides.

| `status` | Means |
| --- | --- |
| `passed` | Every group was measured and passed. |
| `failed` | A measured group failed. |
| `not_measured` | No readable summary, an inconclusive group, invalid infrastructure or a run that never finished. |
| `skipped` | None of the pinned workers is part of the harness graph (or of the named stack). |

On the default stack, pinned workers are filtered against the Registry graph of
the harness release, and the harness is always pinned with them at the same
commit. A named stack (`stack: memory` runs `stacks/memory.yaml`) builds only
the pinned workers it declares, keeping their `config_override`, and leaves the
rest released. Each suite keeps its own comment on the pull request. The
workers repository runs the `memory` and `memory-learning` suites this way on
every pull request that changes memory, and on every memory release with
`versions`. The token needs
`actions: read` and `write` on this repository. Runs from these pipelines do
not reach Release Control's ledger, which accepts only its own bot's dispatches.

`model` picks the subject's provider/model, and `extraction-model` the
`provider::model` memory extracts with in place of the stack's (only on a
stack that declares memory). The second action,
[`.github/actions/memory-gain`](.github/actions/memory-gain/action.yml), takes
the `run_url` of each `memory-gain` run as `runs` (a JSON list of `model`,
`arm` (the stack) and `run_url`), runs `scripts/memory_gain.py` with the latest
released runner and returns the directory of `memory-gain.md` and
`memory-gain.json` as `report`. Its token needs `actions: read`.

### Executor image

Every phase runs in one image of tools, `ghcr.io/iii-hq/harness-e2e:tools-<first
12 hex of the Dockerfile's sha256>` ([`Dockerfile`](Dockerfile)): git, curl, jq,
gh, Python 3 with pip and PyYAML, Node 24 with pnpm, Go 1.25, Rust 1.98.1,
Playwright's Chromium at `/usr/bin/chromium`, the Docker CLI with buildx and
compose, and the Docker Engine (`dockerd`, containerd, runc, iptables), much
of what the `ubuntu-latest` runner gave the groups before. Bases, the Ubuntu
archive snapshot and every download are pinned, so one Dockerfile is one set
of tools. It holds no scripts:
[`scripts/run_in_image.sh`](scripts/run_in_image.sh) `<phase>` mounts the
checkout at the same path, runs as the caller's uid with
`no-new-privileges`, passes the phase's environment through by name, and
runs [`scripts/executor.sh`](scripts/executor.sh) `prepare
resolve|build|materialize|assemble|fixtures`, `group`, `package` or `finalize
[restore|aggregate]` there. `prepare fixtures` checks out what the groups
start from and no package brings (the Kanban fixture, the stack's template,
the Registry sources and the trending topics fixture) below `target/`, three
tries each: the Kanban fixture and the Registry's `iii-hq/e2e-fixture` at the
head `prepare resolve` resolved once for every group, which the reports name
in `identity.fixture_revisions`. A head that does not resolve is a warning and
lands in `identity.fixture_fallbacks`: the Kanban fixture then checks out its
pin (`FIXTURES` in `scripts/prepare_execution.py`), never an unnamed branch
head; `iii-hq/e2e-fixture` the branch. CI and `cut-release.yml` warn, without
failing, when the Kanban fixture's catalog at its head or its pin differs from
`src/scenarios/kanban/catalog.json` (`scripts/check_kanban_catalog.py`). `group` routes the fixture repositories
a scenario clones to those checkouts; `finalize` lays each campaign's groups
out from the group bundles the execution selected (linked, not copied) before
aggregating them. Only `prepare resolve` and `prepare fixtures` get a
`GITHUB_TOKEN`, and only `prepare resolve` the `FIXTURE_TOKEN` that reads the
private fixture's head: a group's subject has a shell, and `prepare build`
runs the commits a stack pins. `prepare` sees the checkout read-only but for
`target/`, and `prepare` without a step runs resolve, build, materialize and
assemble, each in a container of its own. Interrupted, the wrapper stops its container; a group whose image or
container never started still writes its `failure.json`.

No phase mounts the host's Docker socket or joins the host's network. Each
container has a network of its own on Docker's default bridge, where a group's
engine listens on 49134 without taking a host port. A `group` container runs
a Docker daemon of its own: privileged, in a cgroup namespace of its own, it
starts as root with
an anonymous volume, labelled like the container, at `/var/lib/docker`;
`executor.sh group` starts `dockerd` there, runs the group as the caller's uid
(whose group owns the daemon's socket) and stops the daemon after it, which
stops its containers. Every container a scenario starts (Registry's runner,
Kanban's, trending topics') is that daemon's, in the group's network, so the
application the Registry fixture publishes on `127.0.0.1` is where its
screenshots look, and it goes with the group's container and its volume
(`docker rm -fv` for one left behind). Each group starts with no image and
pulls what its scenarios run.

This keeps groups from colliding, not from the host. The group's user
reaches root in its container through the daemon's socket, and the container
is privileged, so that root is root-equivalent on the host, as the host's
socket was: a subject can start a privileged container with the host's
devices, mount the host's disk and read what is there (the host daemon's
container configurations, with a concurrent `prepare`'s `GITHUB_TOKEN`, the
Console's provider credentials and a worker's `provider_env_file`, `gh`'s
credentials). From the default bridge it
also reaches the host's ports on the bridge's gateway (a local Console on
3113, iii on 49134) and other groups' containers.

The workflow keeps on the runner what needs it: the GitHub App token for the
private fixture sources, artifacts, the OIDC reports, `gh`, packaging, and
removing a cancelled phase's container before anything is reported or
packaged.

[`executor-image.yml`](.github/workflows/executor-image.yml) publishes a tag
from `main` when the Dockerfile changes (or by hand) and never rebuilds an
existing one. A tag that is not published yet is built where it runs, with a
warning. `resolution.json` records the image the execution was prepared in,
the registry digest or the tag when it was built locally, and the reports
carry it as `identity.executor_image`.

### Agent profile and project template

A dispatch can name an existing Directory agent profile (`profile`), such as
`console-ui`. `console-ui` is **Console UI Engineer**. The runner reads that profile from
the group's Directory and sends its id as `agent` to `e2e::run`. The profile,
its parents, skills, functions, and model or provider must exist in that
stack. The runner downloads the stack's versioned skill bundles into an
isolated Directory and waits up to 120 seconds. A profile that is still
missing fails resolution. A profile model overrides the plan model;
`provider::model` also selects its provider. Results record the resolved
subject model and the profile configuration hash. **Run again** resolves the
same profile id in its test stack. Comparisons stay manual in Release Control.
Omitting `profile` keeps the built-in agent.

### Deepwork

In Release Control, select suite **deepwork**, stack **deepwork**, and agent
profile **deepwork-e2e**. The stack pins the published `iii/deepwork@0.4.3`
kit. Preparation installs it through Directory, including its worker
dependencies, before sealing the final worker lock. It freezes `kits.lock`,
agent profiles and skills with content hashes in the execution's contract
artifact. Every group and GitHub retry restores that snapshot instead of
installing the kit again. A kit that still needs a decision fails preparation
with its plan diagnostic; it does not silently continue without its profiles.

`deepwork-e2e` extends the kit's `deepwork` profile with `flow=plain
approve=off`. It delegates implementation and verification in the supplied
attempt workspace, without an unattended approval card or a separate Git
worktree that the evaluator would not read. The kit's original profiles stay
unchanged. Models are inherited from the selected execution model; this
profile adds no model pins. Harness uses the workspace filesystem boundary
for the root and its children. These are the native build scenarios, not the
Kanban fixture's Docker isolation.

The suite reuses the existing prompts, criteria and scenario IDs for the three
native builds. Registry and trending-topics tests in `software-engineering`
also allow the selected profile's tools and delegation; their deliveries still
belong in their per-attempt containers. Kanban keeps its closed fixture tool.
This suite measures the plain multiagent flow, not Deepwork's Git worktree workflow.

Stacks can declare other Registry kits with an optional `kits` list:

```yaml
kits:
  - iii/deepwork@0.4.3
```

The selector is resolved during preparation. The resolved version, installed
files and worker lock are held for the execution, including failed-job
retries. Kit requirements must fit the stack's existing worker pins; a kit
cannot silently replace the worker versions the test requested.

A project template belongs to the stack and is independent of the suite and
the agent profile:

```yaml
template: harness # or harness@<revision>
```

The runner reads `iii/template.yaml` in `iii-hq/templates` at that revision
(`main` when none is given), resolves it to one commit before sharding, and
records that commit as `identity.template.revision`. Every group uses that
source. The selected Compose project supplies the base. The versions the
execution's stack lock resolved override its package selectors, extra packages
enter the lock, and local workers stay local.
Template skills replace whole downloaded namespaces, and its agent files take
precedence over downloaded profiles. Machine-global profiles and skills are
unused when an agent profile is selected or the template ships agents or
skills; a template that ships neither (`linkly-agentic`) keeps the Directory
it declares. The runner also enables the campaign's provider when the project
does not already have it.

Scenarios, prompts, permissions, fixtures, seeds, and repetitions stay the
same. The evaluated agent applies to ordinary sessions and to workflow or
adaptive steps. Evaluators stay the same. With no template, the run keeps the
existing generated stack.

To measure a profile, compare the same suite, template commit, model, and stack
with and without `profile`. Changing the template as well measures the
combined effect. Non-Compose templates and templates that ask for an
interactive language choice are rejected before boot.

## Console

Build the worker and its page from the repository root:

```bash
cargo build --locked --bin harness-e2e
```

When Console connects to the same iii namespace, the worker registers the page
assets and the `e2e::dashboard::*` functions for read, suites, stacks, run,
status, and cancellation. The page lives under `#/ext/harness-e2e` and opens on
Trends, the release overview (how the latest Harness release did against the one
before it in Release Control); it also exposes Tests, Executions, Suites, and
Stacks. See [dashboard/README.md](dashboard/README.md).

The running Harness must publish request and response schemas compatible with
the current typed surface. Missing or incompatible fields fail preflight.
There is no payload-version compatibility mode.

The page loads through iii: 25 compact summaries on the first overview page,
one complete report when an execution is opened, only the selected pair for
comparison, and the model and scenario catalog when the run dialog opens.
Filtering and cursor pagination run on the server. Transport failures stay
visible. The trusted publisher still writes the bounded JSON report archive
used by CI. It does not publish a standalone Harness E2E web application.

### Import executions from GitHub

On Executions, **Import from GitHub** lists the completed runs of the
`exact-stack-e2e.yml` workflow in `github_repository` (worker config, default
`iii-hq/harness-e2e`) with their suite, model, agent profile, stack, iii
release, date and conclusion. The worker calls the `gh` CLI, so sign it in once with
`gh auth login`; its errors are shown as they come.

**Import** answers at once with an execution in the `importing` state; the
worker downloads the run's highest-attempt bundle into its data directory and
installs every group's native run as an ordinary retained run. The execution
records its parameters with its suite (name and snapshot digest), the stack as
its contract recorded it (the final `stack.yaml` and its digest, which Run
again offers as recorded), the workers each group resolved and observed, and
its GitHub origin. Contracts from before the workflow stated its execution (plan and
profile only) import too. A group that left only `failure.json` is kept as a slot with
that error. Importing a run again replaces the runs of the earlier import; the
execution keeps its name.
A run GitHub ended other than `success` (cancelled, failed) imports as
`interrupted`, with `The GitHub run ended <conclusion>.`, as an execution
started from here does. Deleting an imported execution remembers its run, so
the worker does not import it again on its own; **Import** of that run does,
and forgets the delete. Imported and local executions are the same record:
lists, reports, evidence and renaming treat them alike.

CI sync imports the workflow's runs in the background. It is off by default
(a full backfill of the public repository is about 3 GB). On Trends,
**Download CI results** turns it on; the status line beside the heading then
says where it is, with **Check now** (`e2e::dashboard::ci-sync-check`) and,
under Sync options, **Turn off sync** (it and **Download CI results** go through
`e2e::dashboard::ci-sync-set`, which keeps the switch in `ci-sync.json` in the
data directory, so a restart resumes). It imports through
**Import**'s path, one run at a time: only Release Control runs first, a day at
a time from the newest, until the three newest Harness releases each have one
(or 90 days are scanned), so the verdict comes before the pull-request backlog
and reads the previous release's first night rather than only its last ones;
then the newest 100 other runs it listed, so Trends can count the runs outside
Release Control; then the rest GitHub keeps (90 days), Release Control first;
then, every 10 minutes, the runs created in the last 7 days, so a re-run of an
older run comes in only by **Import**. It skips a run being imported, one
started here, one imported at the same GitHub `updated_at`, one whose artifacts
are gone or that left no bundle, and one deleted here; it tries other failures
3 times. A run that left no results (no `e2e-contract` artifact: cancelled
early, or failed before its tests) is skipped, not kept as a failed execution:
its execution is deleted, though not remembered as a delete, the status line
counts it as without results, and CI sync leaves it alone until GitHub updates
it (a re-run is tried again). An import of such a run that ended failed, an
earlier one or one by hand, turns into the same skip when CI sync next lists
the run, so **Import** shows its error until then (for a run CI sync already
skipped, until GitHub updates it). A run whose import fails only counts as
failed (its execution keeps why, or the worker log when none was created); the
status says what stopped a whole check: `gh` missing, signed out or not
answering, or a listing that failed. A `gh` rate limit pauses it an hour
without counting an attempt. `gh` needs read access to the repository.

### Run in Docker

**Run tests** with **Where: Docker** runs the execution as the exact-stack
workflow does, from this worker, with no checkout of this repository: the
worker embeds the [Dockerfile](Dockerfile) (whose digest names the executor
image) and [`scripts/`](scripts), and runs every phase through
`scripts/run_in_image.sh` from `docker-executions/<execution id>/` under its
data directory:

- `inputs.json`: the dispatch (`DISPATCH_*`): a master-plan suite run as it is
  by its id, any other suite whole as JSON, the stack's YAML, the model and the
  agent profile.
- `checkout/`: what the wrapper mounts, with the Dockerfile and the scripts,
  frozen for the execution, and `target/`, every phase's work;
  `target/artifacts/` keeps the bundles under the workflow's artifact names
  (`e2e-contract-<id>-gh-1`, `e2e-observation-<id>-<campaign>-<group>-gh-<n>`,
  `e2e-observation-<id>-gh-<n>`).
- `logs/`: each phase's output.

`worker-builds/<entry>/` beside `docker-executions/` keeps the workers
stacks pin to a `commit:`, one entry per set of pinned commits, mounted into
`prepare build` alone.

`prepare resolve`, `build` (when the stack pins a commit), `materialize`,
`assemble` and `fixtures` run once, then one `group`
container per group, `docker_parallel_groups` (2) at a time across executions,
each packaged, then `finalize`, whose root bundle is imported by the code that
imports a GitHub run, from the folder. The root links its groups' bundles
rather than copying them, and once an attempt is finalized the roots before it
go, before it is imported. Cancel stops the running groups' containers (never
a `package` or `finalize`), then finalizes and imports what finished. Running
a scenario again runs its groups in new containers as the execution's next
attempt, with the same contract, lock, scripts and image, finalizes and
imports again: a group's last attempt that ended counts, and one cancelled or
cut by a restart leaves the attempt before it counted. A worker that restarts
removes an active Docker execution's containers, interrupts what did not
finish and imports what did. A worker older than this release cannot read a
Docker execution and drops it from its database, as it drops any row it cannot
read.

Every group runs on a network of its own with a Docker daemon of its own
(see [Executor image](#executor-image)): it publishes no port on this host, so
its stack never collides with this machine's iii (its Console binds 3113) or
another group's. It can still reach them, and root on this host, as that
section says.

Worker configuration:

- `provider_env_file`: an env file of provider credentials under the Console's
  own (below): where both name a variable, the Console's value wins.

Provider credentials are the Console's, on the Stacks page: environment
variables by name (`OPENAI_API_KEY`), set, replaced or deleted there. What is
set in neither the Console nor `provider_env_file` is inherited from the
worker's environment for the names
[`config/provider-credentials.json`](config/provider-credentials.json) lists,
as llm-router falls back from its
configuration to `credential_env_var`: give the harness-e2e worker the keys
as its compose entry gives llm-router (`env_file`, or `environment` with
`KEY: "${KEY}"`).
They live in `credentials.env` of the worker's `data_dir`, mode 600, never in
the database, an execution's folder or its evidence, and the worker never
answers with a value (`e2e::dashboard::credentials-list` gives names and
whether each is set). `credential-set` takes the value as `secret`: the iii
SDKs record each invocation's input in its trace (`iii.invocation.input`)
unless `III_DISABLE_TRACE_PAYLOADS=1`, and leave out the values of keys such
as `secret`; a key named `value` would be kept there as sent.

A Docker execution reads them once per group attempt, merged with
`provider_env_file` (whose lines it cannot use it names, without their
values, as warnings), and hands that one set to the group and to the packaging
that checks its evidence, each in a file of `data_dir/.phase-credentials/`
(mode 600, directory 700) passed with `--env-file` and removed when the phase
ends; the worker removes what a stop left there when it starts. `prepare
assemble` gets them the same way; the root bundle, as on GitHub, none. An
execution whose model's provider has no key, or with a value under 8
characters (the evidence is not checked for it), says so and still runs.

Inside, `scripts/run_in_image.sh` tells the phase which variables are
credentials (`HARNESS_E2E_CREDENTIALS`, the names of that file); the launcher
writes exactly those, plus `DEEPSEEK_API_KEY`, `ZAI_API_KEY` and
`TYPESAFE_API_KEY` when its environment has them, into the stack's `.env`,
warns when the model's provider's key is missing, and gives the runner their
names. The runner replaces each such value (and each the catalog names) by
`[redacted:NAME]`, as written and as JSON escapes it, in every artifact and
journal event before it hashes it, so a key the subject printed never reaches
a digest. `exact_stack_campaign.py package` looks for them again, raw and
escaped: in the launcher's `logs/`, which nothing hashes, it replaces them;
anywhere else a file is bound by a digest (the runner's references, the
campaign bundle, Release Control's checks), so it rewrites nothing and refuses
the bundle, naming the files and credentials, never the values; the
diagnostic is kept instead. `bundle-manifest.json` records what it found per
name (`redaction`). On GitHub the preparation and each group job write the
credentials among the job's secrets, the names that catalog lists and no
other secret, to such a file in `RUNNER_TEMP`, which the phase and its
packaging read; a shard's runs are reported to Release Control from the tree
that is uploaded, after packaging, so a refused bundle reports its outcome
and diagnostic and no run. The workflow names each of those secrets in that
step: `toJSON(secrets)` would hold every run for approval.
- `scripts_dir`: a checkout's `scripts/` to run instead of the embedded ones,
  copied into each new execution, so an edited script takes effect on the next.
- `docker_parallel_groups`: groups at once, 2 by default.
- `docker_registry_mirrors`: a pull-through cache per registry for the Docker
  daemon each group runs, which starts with no image, as
  `{mcr.microsoft.com: http://172.17.0.1:5001}`: the daemon pulls from the
  mirror first and from the registry when the mirror fails. It reaches the
  groups as `HARNESS_E2E_REGISTRY_MIRRORS` (`REGISTRY=URL ...`), which
  `scripts/run_in_image.sh group` also takes from its caller.

Kanban's and trending topics' images come from `mcr.microsoft.com`, which
`dockerd --registry-mirror` does not cover (it mirrors Docker Hub alone); a
group's daemon writes each mirror into `/etc/docker/certs.d/<registry>/hosts.toml`
instead. One `registry:2` per upstream serves as the cache, listening on the
Docker bridge's gateway (`docker network inspect bridge --format '{{(index
.IPAM.Config 0).Gateway}}'`), where every group container reaches this host:

```sh
docker run -d --name mcr-cache --restart unless-stopped -p 172.17.0.1:5001:5000 \
  -v mcr-cache:/var/lib/registry -e REGISTRY_PROXY_REMOTEURL=https://mcr.microsoft.com registry:2
docker run -d --name hub-cache --restart unless-stopped -p 172.17.0.1:5000:5000 \
  -v hub-cache:/var/lib/registry -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io registry:2
```

The phases get none of the worker's environment but where Docker and
`TMPDIR` are.
`prepare fixtures` gets the worker's `GITHUB_TOKEN`, or the signed-in `gh`'s,
for the private Registry and trending topics sources.

#### Subscription providers

`openai-codex` and `claude-code` sign in with this machine's CLI login, not an
API key: `${CODEX_HOME:-~/.codex}/auth.json` (`codex login`) and
`${CLAUDE_CONFIG_DIR:-~/.claude}/.credentials.json` (`claude`). A group gets
the login's access token and nothing else: no refresh or id token ever enters
a container or GitHub. Before an execution's first group, the worker reads the
login; when its access token would expire before the group's deadline
(10800 s and 15 minutes), it refreshes the login first, as the CLI does. The
execution's later groups get that same token while it lasts a group, so one
group's refresh never rotates the token another is running with.

Refresh tokens rotate on every use, so only one holder may refresh. The
worker's groups take turns, two workers on one machine take
`<login>.harness-e2e.lock`, and a Claude refresh also takes the `claude` CLI's
own refresh lock (`<config>/.oauth_refresh.lock` and `<config>.lock`, renewed
while held). Under the locks the login is read again; the refresh is written
back only over the login it came from (atomically, mode 600), with the tokens
alone replaced and everything else the CLI wrote meanwhile kept, its keys in
sorted order. If the login was rotated by someone else meanwhile, theirs
stands. The `codex` CLI takes no such lock, so a refresh racing it can cost
one side its rotation; a refused refresh is retried once with the token the
CLI wrote. A Codex access token lasts 10 days, so it is rarely refreshed;
Claude's lasts hours. A refresh that fails (the service busy, the login
refused) while the token still works hands that token over with a warning on
the execution; a login that is signed out or dead is a warning too
("provider-claude-code starts without credentials: the Claude login on this
machine expired; run `claude`"), and the group runs without it.

The access token (`CODEX_ACCESS_TOKEN`, `CLAUDE_CODE_ACCESS_TOKEN`) is a
credential: it goes with the provider credentials above, in the same file of
`data_dir/.phase-credentials/` handed to the group and to the packaging that
checks its evidence, removed when each ends; `prepare assemble` and a commit's
build get none. [`config/provider-credentials.json`](config/provider-credentials.json)
names it under `subscriptions`: never set on the Stacks page, but redacted
like any other credential, by the runner and again by packaging. What else the
login holds is no secret and goes to the group by name: `CODEX_ACCOUNT_ID`,
`CLAUDE_CODE_EXPIRES_AT` (epoch milliseconds). The launcher writes the login
the provider reads, into the group's runtime tree and not its evidence, and
points only the provider at it (`CODEX_HOME`, `CLAUDE_CONFIG_DIR`);
`stack/credentials.json` says where the token came from and when it expires,
without it. A token already expired fails the group in its `credentials`
phase; one that expires before the group's deadline is said out loud. The
subject is denied the credential vault (`auth::*`) and each provider's own
sign-in, status and logout (`provider::*::auth::*`), and the audit flags a
call to either. It can still read the access token (from its workers'
environment or the login file), as it can an API key; the runner redacts it by
value from what it records, and any JWT (`eyJ….eyJ….…`) by its shape. As the
[Executor image](#executor-image) section says, a subject is also
root-equivalent on this host, where the login itself is.

On GitHub the group job's credentials step also reads the optional secrets
`CODEX_ACCESS_TOKEN` and `CLAUDE_CODE_ACCESS_TOKEN` of the
`harness-e2e-trusted` environment into its file, and the group step the
optional variables `CODEX_ACCOUNT_ID` and `CLAUDE_CODE_EXPIRES_AT`; the
preparation reads none. Without a token, its provider starts signed out.
Paste the access token from the login file, never the refresh token. A Codex
token pasted there lasts 10 days; Claude's lasts hours, which makes it
impractical on GitHub.

## Worker

Release Control names the exact project roots. This repository writes only the
root configuration and passes `worker@version` references to `compose::add`.
iii resolves the Registry graph, writes the project topology, and reconciles
containers. Every execution starts an empty Engine and a dedicated Compose
daemon, then runs `compose::add`, `compose::up`, `compose::status`, and
`compose::down`. Each execution uses one isolated namespace for Compose and
for the project functions it starts.

Compose supplies `III_URL`, `III_NAMESPACE`, `III_WORKER_NAME`, and the
configuration: `III_CONFIG`, a file, before iii 0.24.3; `III_CONFIG_NAME`, the
configuration-service entry read with `configuration::get`, from 0.24.3 on.
The first three and one of those two are mandatory. By default the E2E worker
uses its own Compose namespace. It discovers the dependency's database worker
and configuration entry, then adds a single-connection `harness_e2e` SQLite
pool at `<data_dir>/control.sqlite` to that entry's active value. Existing pools,
settings and environment placeholders are retained; the saved database
configuration is not changed. A saved edit of that configuration replaces its
active value, so the worker subscribes to the entry and adds the pool back
after each change; a full restart provisions it again over the same SQLite
file. The database worker builds every pool or none, so when the pool never
becomes ready the worker removes it again before exiting. Setup errors are
retried until the startup deadline. This requires Engine support for
runtime-only `configuration::set` writes; unsupported Engines receive a setup
error.

Explicit `control_namespace` or a different `control_database` selects an
operator-provisioned destination: run a database worker with that pool in the
chosen namespace and set `control_namespace` on the E2E container. The worker
exits if the selected database or schema is unavailable, and
reports the namespace, database and underlying readiness error. Install the
E2E Console separately from a subject when its control database must be
inaccessible to that subject.

Publication validates the locally built binary through a `path://` Compose
container before upload. Published campaigns use only exact Registry package
versions. Provider secrets go to temporary permission-restricted `env_file`
files and never appear in contract, Compose, evidence, or archive artifacts.

CI also exercises the packaged binary's published defaults with real Registry
dependencies via `scripts/smoke_registry_install.py`. It checks a non-default
namespace, a renamed database container/configuration entry, an unchanged
saved configuration, a separate SQLite file, persistence after restarting
the entire Engine/Compose stack, and the pool's return after a saved edit.
It runs in its own `registry-smoke` job. A Registry that stays unreachable
(transport errors, 5xx, 429) after three attempts becomes a warning, not a
failure; `--registry` pointed at a closed port rehearses that.

The worker exposes:

- `e2e::run`, `e2e::status`, `e2e::cancel`
- `e2e::results-get`, `e2e::results-list`
- `e2e::scenarios-list`
- `e2e::archive`, `e2e::archive-head`

Subject policies deny `e2e::*`.

### Live worker check

`tests/live_worker.rs` talks to a worker registered in a real engine, so those
tests are ignored by default. They check that the worker publishes this
revision's catalog (ids, seeds, cases, definition digests), that it refuses
malformed requests, and, when a subject is named, that one `minimal_path`
execution passes admission, setup, the subject turn, capture, evaluation, and
persistence. The resulting report is readable through `e2e::results-get`:

```bash
HARNESS_E2E_LIVE_URL=ws://127.0.0.1:49134 HARNESS_E2E_LIVE_NAMESPACE=my-project \
HARNESS_E2E_LIVE_PROVIDER=deepseek HARNESS_E2E_LIVE_MODEL=deepseek-flash \
cargo test --test live_worker -- --ignored
```

Seven scenarios state host paths in their prompts, so their definition digests
match only when the test process has the worker's `HARNESS_E2E_RUN_DIR`,
`TMPDIR`, and `HARNESS_E2E_*_FIXTURE_PATH` values. Export the same environment
the Compose file gives the worker. The scenario run leaves one execution
labelled `live worker validation` in the worker's storage.

### Storage

Durable artifacts are chunked through `storage::*`. Admissions, executions,
runs, attempts, and artifact references are written through the control-plane
`database::*` worker. Execution records keep compact dashboard summaries and
observations, so lists and history do not load native reports.

Storage has no version number and no migration step. Every table records the
fingerprint of the statements that create it. At start, the worker recreates
tables whose fingerprint moved, in one transaction. It keeps the execution
records, local suites and stacks, and receipts it can still read, and rebuilds
run projections from the native bundles. The projection tables' fingerprints
also carry `PROJECTION_REVISION` (`src/persistence.rs`), bumped when a run's
dashboard projection gains a measure, so the next start reprojects every
retained execution once; one whose bundle is gone keeps its stored projection.
Rows it cannot read, missing bundles, and tables this binary no longer writes
(such as the retired `history_*` import tables and the `saved_plans` of the
retired baseline/candidate plans) are dropped and logged as warnings. Nothing is reconstructed as a scored result. A
report written under another results contract is read with a warning.

The Console's suites live in `local_suites`, its stacks in `local_stacks`, and
executions (run here or imported from GitHub) in `saved_plan_executions`. A
suite, stack or execution this binary cannot read is deleted on the next read.
An execution a retired plan ran stays, without a suite.

Native bundles keep full reports, manifests, and transcripts, loaded on
demand. The runner has no S3, GCS, R2, SQL-driver, or Harness dependency.

Weekly Stress materializes deterministic fault plans and evaluates journals
from a protected supervisor. Lane promotion is governed by
[`config/policies/cutover.json`](config/policies/cutover.json).

## Observation

The runner waits for a session tree to finish by binding
`harness::turn-completed` to an internal sink, `e2e::on-turn-completed`, before
`harness::send`, and `harness::turn-started` to `e2e::on-turn-started` for the
turn-event invariants. Neither sink is a control-plane verb: they are not
registered with `e2e::run`, `e2e::status`, or `e2e::cancel`, and they do not
appear in `e2e::scenarios-list`. Subject policies already deny `e2e::*`.

A 15-second watchdog samples `harness::metrics` and one root
`harness::status` for stuck detection, heartbeat logs, and `e2e::cancel`. If
either trigger type is missing from `engine::triggers::list`, the run is
unsupported infrastructure. There is no fallback that polls `harness::status`
or `harness::metrics`. After the tree completes, the runner still collects
terminal status, metrics, transcripts, and deliverables.

From them each run's efficiency measures the prompt the provider processed
(input plus cache reads and writes, since the cache is most of a long
session's prompt), the turns, and the largest prompt one step of the root
session sent, against the window the Harness fit it into. The peak comes from
the usage each step recorded in the transcript, and only when those steps add
up to the session's totals. Compactions are counted from the `compaction`
records the Harness writes to the transcript; the snapshot's `compacted` only
says the session holds a summary now. A run without cache figures reports
them unavailable, never zero. A provider whose billed prompt does not match
the Harness's own count of it (claude-code adds a prompt of its own) is marked
`cache_comparable: false`, and its prompt and cache figures read as not
comparable. The Harness prompt-surface digest of each session role is kept as
data: it changes with every Harness release.

Harness mechanisms whose numbers depend on the model or the environment are
trends, never gates (`src/harness_metrics.rs`). Trends charts them per run under
More. Trace and error spans cover the session tree. The rest covers the root
session alone: `registry-changed` and hook notices, the text hooks appended as
messages (`hook_guidance`, bytes / 4), reconciled calls, repeated
`engine::functions::info` calls, and the calls the Harness refused without
running them (`arguments_truncated` by cause, `agent_trigger_no_target`,
`repeated_failure`). These read the transcript as stored, so older runs get
them when the first start of this runner reprojects them. The stored context
snapshot's own `hook_guidance` is not used: once the router counts the request exactly the
Harness folds it into the system prompt and stores 0. The prompt parts hooks
declare they inject (`injected` parts of `harness::system-prompt::get`, bytes /
4) are read after the run; a hook that extends the system prompt without
declaring it is not seen. Argument reconciliation leaves the Harness only for
the judge, so its latency is the root session's `judge::evaluate` call spans
in the engine's span store, read after the run; a run whose reconciliations
all ran in process has no p95, and one whose p95 passes 2.5 s carries the
advisory audit flag `audit_slow_reconciled_calls`. A native run also counts
the root session's `session::message-added` deliveries past the first of each
entry (`duplicate_entry_events`): delivery is at-least-once. Runs stored
before these reads have none of the three. The two reads after the run take
30 s at most together, also after a subject failure, and a read that fails or
runs out leaves its measure absent. Of the `harness::sweep-pending`
counters only the root session's share of `resolved` is charted
(`sweep_resolved_calls`, results with the `pending_timeout` error): the sweep
runs from the stack's cron over every session of the stack and returns its
counters only to the cron, and `redriven`, `converted` and `prompts_collected`
leave nothing in a transcript.

## Evidence

Every completed execution records the subject and E2E revisions, observed wire
contracts, definition digest, materialized inputs, seed, policies, artifacts,
and raw structural evidence.

Deterministic assessment has one payload shape, written only to `results.json`.
Scenario contracts are the only versioned domain. Before cleanup, asset
capture applies explicit safety limits and writes an unversioned sidecar with
the canonical deterministic validation portion, which is aggregated into
`results.json`.

## Repository

| Path | Owns |
| --- | --- |
| `src/` | Runner, wire adapters, scenarios, evaluation, and the E2E control worker. |
| `config/` | The cutover policy, fault profiles, and the master test plan. |
| `stacks/` | Stacks a campaign runs on: iii Compose projects plus the iii release. |
| `tests/` | Test-only fixtures, golden wire schemas, and the Node and Python suites. |
| `schemas/` | Public contracts for generated E2E artifacts. |
| `dashboard/` | React, TypeScript, Vite, and Tailwind Console page embedded in the worker. |

Generated reports, transcripts, logs, and deliverables stay outside Git.

The crate may depend on the iii SDK and on generic libraries. It must not
declare a path or Git dependency on `workers`, Harness, or another product
crate. Contract compatibility is established at runtime from
`engine::functions::list` and `engine::functions::info`. The checked-in schemas
are parity fixtures, not a linked product API.

## Package boundary

This repository executes exact-stack test plans and publishes immutable
`harness-e2e` Registry releases from `main`. A dispatch names a suite, a stack
and a model; the stack is assembled and locked once, and the contract carries
that lock, so a campaign can state afterwards exactly what it ran.

## Releases

`cut-release.yml` is dispatched by hand with `bump` set to `patch`, `minor` or
`major`. It writes the next version into `Cargo.toml` and `Cargo.lock`, commits
that on `main` and pushes the tag `harness-e2e/v<version>`. The tag runs
`release.yml`: it checks that the tag, the manifest and the commit agree, builds
the dashboard once and the binaries for `x86_64-unknown-linux-gnu` and
`aarch64-apple-darwin`, creates the GitHub release, collects the typed
interface in an isolated engine, publishes the Registry candidate to `next`
and promotes it to `latest` with a compare-and-swap on the previous `latest`.
The Registry job runs in the `workers-registry-next` environment; required
reviewers on that environment turn it into a manual approval. Versions are
plain semver; the `-experimental` suffix ended with 0.11.19.

The root `iii.worker.yaml` is the public manifest for local `iii worker`
development and package compatibility. The root `worker-compose.yaml` is a
normal public Compose document. Release Control and post-prepare workflow
phases read neither source contract.

## api reference

```json
{
  "functions": [
    {
      "args_format": null,
      "description": "Persist a completed execution through private iii storage and idempotent history.",
      "metadata": {
        "contract": {
          "capabilities": [
            "archive"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::archive",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "RetentionClass": {
            "enum": [
              "temporary",
              "pull_request",
              "longitudinal",
              "canonical"
            ],
            "type": "string"
          }
        },
        "properties": {
          "execution_id": {
            "type": "string"
          },
          "retention_class": {
            "$ref": "#/definitions/RetentionClass"
          }
        },
        "required": [
          "execution_id",
          "retention_class"
        ],
        "title": "ArchiveExecutionRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "DurableArchiveReference": {
            "additionalProperties": false,
            "properties": {
              "archive_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "execution_id": {
                "type": "string"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_sha256": {
                "type": "string"
              },
              "manifest": {
                "$ref": "#/definitions/StorageObjectReference"
              },
              "manifest_backup": {
                "$ref": "#/definitions/StorageObjectReference"
              },
              "retention_class": {
                "$ref": "#/definitions/RetentionClass"
              }
            },
            "required": [
              "archive_id",
              "created_at",
              "execution_id",
              "identity_sha256",
              "manifest",
              "manifest_backup",
              "retention_class"
            ],
            "type": "object"
          },
          "HistoryRecord": {
            "additionalProperties": false,
            "properties": {
              "archive": {
                "$ref": "#/definitions/DurableArchiveReference"
              },
              "baseline_comparable": {
                "type": "boolean"
              },
              "case_count": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "e2e_repository": {
                "type": "string"
              },
              "e2e_revision": {
                "type": "string"
              },
              "execution_id": {
                "type": "string"
              },
              "identity_sha256": {
                "type": "string"
              },
              "ingestion_id": {
                "type": "string"
              },
              "lane": {
                "type": "string"
              },
              "occurred_at": {
                "type": "string"
              },
              "passed": {
                "type": "boolean"
              },
              "result_contract_sha256": {
                "type": "string"
              },
              "stack_mode": {
                "type": "string"
              },
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              },
              "subject_revision": {
                "type": "string"
              }
            },
            "required": [
              "archive",
              "baseline_comparable",
              "case_count",
              "e2e_repository",
              "e2e_revision",
              "execution_id",
              "identity_sha256",
              "ingestion_id",
              "lane",
              "occurred_at",
              "passed",
              "result_contract_sha256",
              "stack_mode",
              "subject_model",
              "subject_provider",
              "subject_revision"
            ],
            "type": "object"
          },
          "RetentionClass": {
            "enum": [
              "temporary",
              "pull_request",
              "longitudinal",
              "canonical"
            ],
            "type": "string"
          },
          "StorageObjectReference": {
            "properties": {
              "bucket": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "bucket",
              "key",
              "media_type",
              "sha256",
              "size_bytes",
              "uri"
            ],
            "type": "object"
          }
        },
        "properties": {
          "archive": {
            "$ref": "#/definitions/DurableArchiveReference"
          },
          "duplicate_ingestion": {
            "type": "boolean"
          },
          "history": {
            "$ref": "#/definitions/HistoryRecord"
          }
        },
        "required": [
          "archive",
          "duplicate_ingestion",
          "history"
        ],
        "title": "ArchiveResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Verify availability and immutable metadata for an archived execution.",
      "metadata": {
        "contract": {
          "capabilities": [
            "archive-head"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::archive-head",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ArchiveAvailability": {
            "enum": [
              "available",
              "expired"
            ],
            "type": "string"
          },
          "DurableArchiveReference": {
            "additionalProperties": false,
            "properties": {
              "archive_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "execution_id": {
                "type": "string"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_sha256": {
                "type": "string"
              },
              "manifest": {
                "$ref": "#/definitions/StorageObjectReference"
              },
              "manifest_backup": {
                "$ref": "#/definitions/StorageObjectReference"
              },
              "retention_class": {
                "$ref": "#/definitions/RetentionClass"
              }
            },
            "required": [
              "archive_id",
              "created_at",
              "execution_id",
              "identity_sha256",
              "manifest",
              "manifest_backup",
              "retention_class"
            ],
            "type": "object"
          },
          "RetentionClass": {
            "enum": [
              "temporary",
              "pull_request",
              "longitudinal",
              "canonical"
            ],
            "type": "string"
          },
          "StorageObjectReference": {
            "properties": {
              "bucket": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "bucket",
              "key",
              "media_type",
              "sha256",
              "size_bytes",
              "uri"
            ],
            "type": "object"
          }
        },
        "properties": {
          "archive": {
            "$ref": "#/definitions/DurableArchiveReference"
          },
          "availability": {
            "$ref": "#/definitions/ArchiveAvailability"
          },
          "verified_at": {
            "type": "string"
          }
        },
        "required": [
          "archive",
          "availability",
          "verified_at"
        ],
        "title": "ArchiveHeadResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Request idempotent cancellation and cleanup of an E2E execution.",
      "metadata": {
        "contract": {
          "capabilities": [
            "cancel"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::cancel",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ExecutionPhase": {
            "enum": [
              "requested",
              "admitted",
              "preflighting",
              "materializing",
              "setting_up",
              "executing",
              "collecting",
              "evaluating",
              "persisting",
              "cleaning_up",
              "finalizing",
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          }
        },
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "execution_id": {
            "type": "string"
          },
          "phase": {
            "$ref": "#/definitions/ExecutionPhase"
          }
        },
        "required": [
          "accepted",
          "execution_id",
          "phase"
        ],
        "title": "CancelResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read the persisted projection for one logical-run attempt.",
      "metadata": {
        "contract": {
          "capability": "attempt-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::attempt-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "attempt_id": {
            "type": "string"
          },
          "execution_id": {
            "type": "string"
          },
          "run_id": {
            "type": "string"
          }
        },
        "required": [
          "attempt_id",
          "execution_id",
          "run_id"
        ],
        "title": "AttemptGetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CompletionState": {
            "enum": [
              "completed",
              "task_incomplete",
              "undetermined"
            ],
            "type": "string"
          },
          "ContaminationScope": {
            "enum": [
              "none",
              "case",
              "execution"
            ],
            "type": "string"
          },
          "CriterionReport": {
            "properties": {
              "awarded": {
                "format": "uint8",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gate": {
                "default": false,
                "description": "A gate criterion decides completion: the task counts as completed only when every gate passed. Always written, so a reader can tell \"no gate\" from a report older than the field.",
                "type": "boolean"
              },
              "gate_minimum": {
                "description": "The points a gate needs to count as passed when fewer than `possible` already mean the task's purpose was met. Absent: full points.",
                "format": "uint8",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "label": {
                "description": "The criterion as a short statement; absent in reports older than the field and for criteria that state none. Readers fall back to `description`.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "possible": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "possible",
              "reason"
            ],
            "type": "object"
          },
          "DimensionReport": {
            "properties": {
              "dimension": {
                "$ref": "#/definitions/EvaluationDimension"
              },
              "passed": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "points": {
                "description": "The raw points the run's criteria of this dimension awarded. The dimensions' points add up to the run score: a breakdown of it, not a second score. Absent when the run has no score or a scored criterion declared no dimension.",
                "format": "uint16",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "signals": true
            },
            "required": [
              "dimension",
              "signals"
            ],
            "type": "object"
          },
          "EfficiencyReport": {
            "properties": {
              "cache_comparable": {
                "default": null,
                "description": "False when a session's provider reported a prompt that does not match the Harness's own count of what it sent (claude-code adds a prompt of its own): its prompt and cache figures are not comparable with another provider's.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "cache_read_tokens": {
                "default": null,
                "description": "Prompt tokens served from the provider's cache.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "child_sessions": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "child_turns": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "compactions": {
                "default": null,
                "description": "Compactions of the root session: the `compaction` records the Harness wrote to its transcript, automatic or asked for. The snapshot's `compacted` only says the session holds a summary now.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "critical_path_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "effective_fan_out": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "input_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "observed_complexity": {
                "$ref": "#/definitions/ObservedComplexityReport"
              },
              "observed_work": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "peak_context_tokens": {
                "default": null,
                "description": "The largest prompt one step of the root session sent, from the usage each assistant message recorded in the transcript. Given only when the steps add up to the root session's totals.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "prefix_divergences": {
                "default": null,
                "description": "Already-sent rows the run's requests rewrote that no compaction explains, over every session's context snapshot: where a prefix-matching provider cache stopped reusing. Null when no session has a snapshot.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "processed_prompt_tokens": {
                "default": null,
                "description": "Every prompt token the provider processed: input, cache reads and cache writes. `input_tokens` alone leaves the cache out, and the cache is most of a long session's prompt.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "prompt_surface_digests": {
                "additionalProperties": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "description": "The Harness prompt-surface digest of each session role (`root`, `child`): data, not drift, since every Harness release changes it.",
                "type": "object"
              },
              "root_turns": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "technical_attempts": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "total_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "transient_resumes": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "unavailable": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "usable_context_tokens": {
                "default": null,
                "description": "The prompt budget the Harness fit the root session's window into (its context snapshot's `usable`).",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "validation_retries": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wake_resumes": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wall_time_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "observed_complexity",
              "technical_attempts",
              "wall_time_ms"
            ],
            "type": "object"
          },
          "EvaluationDimension": {
            "enum": [
              "deliverable",
              "structural_integrity",
              "efficiency",
              "robustness",
              "e2e_infrastructure"
            ],
            "type": "string"
          },
          "FailureDomain": {
            "enum": [
              "subject",
              "resource",
              "e2e_infrastructure"
            ],
            "type": "string"
          },
          "FailurePhase": {
            "enum": [
              "setup",
              "execute",
              "collect",
              "evaluate",
              "cleanup"
            ],
            "type": "string"
          },
          "FailureRecord": {
            "properties": {
              "code": {
                "default": "",
                "type": "string"
              },
              "contamination": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ContaminationScope"
                  }
                ],
                "default": "none"
              },
              "domain": {
                "$ref": "#/definitions/FailureDomain"
              },
              "message": {
                "type": "string"
              },
              "phase": {
                "$ref": "#/definitions/FailurePhase"
              },
              "retry_scope": {
                "allOf": [
                  {
                    "$ref": "#/definitions/RetryScope"
                  }
                ],
                "default": "none"
              },
              "status": {
                "allOf": [
                  {
                    "$ref": "#/definitions/RunStatus"
                  }
                ],
                "description": "The failure's original classification, independent of the primary run status."
              }
            },
            "required": [
              "domain",
              "message",
              "phase",
              "status"
            ],
            "type": "object"
          },
          "ObservedComplexityReport": {
            "properties": {
              "ambiguity_level": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "artifact_count": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "coordination_edges": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "dependency_depth": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "external_systems": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "parallel_branches": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "planning_depth": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "state_transitions": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "unavailable": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "validation_loops": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wake_cycles": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "RetryScope": {
            "enum": [
              "none",
              "same_slot"
            ],
            "type": "string"
          },
          "RunStatus": {
            "enum": [
              "passed",
              "hard_gate_failed",
              "subject_error",
              "resource_limit",
              "infrastructure_error"
            ],
            "type": "string"
          },
          "TechnicalState": {
            "enum": [
              "valid",
              "technical_invalid"
            ],
            "type": "string"
          }
        },
        "properties": {
          "completion": {
            "$ref": "#/definitions/CompletionState"
          },
          "criteria": {
            "items": {
              "$ref": "#/definitions/CriterionReport"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "dimensions": {
            "items": {
              "$ref": "#/definitions/DimensionReport"
            },
            "type": "array"
          },
          "efficiency": {
            "anyOf": [
              {
                "$ref": "#/definitions/EfficiencyReport"
              },
              {
                "type": "null"
              }
            ]
          },
          "failures": {
            "items": {
              "$ref": "#/definitions/FailureRecord"
            },
            "type": "array"
          },
          "status": {
            "$ref": "#/definitions/RunStatus"
          },
          "technical": {
            "$ref": "#/definitions/TechnicalState"
          }
        },
        "required": [
          "completion",
          "dimensions",
          "failures",
          "status",
          "technical"
        ],
        "title": "AttemptResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read models and scenarios when the execution dialog opens.",
      "metadata": {
        "contract": {
          "capability": "catalog-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::catalog-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "url": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "CatalogRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CatalogModel": {
            "properties": {
              "id": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "provider"
            ],
            "type": "object"
          }
        },
        "properties": {
          "docker_parallel_groups": {
            "description": "Groups a Docker execution runs at once, across executions.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "models": {
            "items": {
              "$ref": "#/definitions/CatalogModel"
            },
            "type": "array"
          },
          "scenario_groups": {
            "description": "Scenarios that run only together, in this order: picking one runs all.",
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "array"
          },
          "scenarios": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "docker_parallel_groups",
          "models",
          "scenario_groups",
          "scenarios",
          "url"
        ],
        "title": "CatalogResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "A local E2E execution started, produced progress, or reached a terminal state.",
      "metadata": {},
      "name": "e2e::dashboard::changed",
      "observable": true,
      "private": true,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "What `e2e::dashboard::changed` carries: an execution and what happened to it.",
        "properties": {
          "at": {
            "description": "When it happened (RFC 3339).",
            "type": "string"
          },
          "execution_id": {
            "type": "string"
          },
          "kind": {
            "description": "`started`, `progress`, `cancelling`, `finished`, `renamed` or `deleted`.",
            "type": "string"
          }
        },
        "required": [
          "at",
          "execution_id",
          "kind"
        ],
        "title": "DashboardChange",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "What `e2e::dashboard::changed` carries: an execution and what happened to it.",
        "properties": {
          "at": {
            "description": "When it happened (RFC 3339).",
            "type": "string"
          },
          "execution_id": {
            "type": "string"
          },
          "kind": {
            "description": "`started`, `progress`, `cancelling`, `finished`, `renamed` or `deleted`.",
            "type": "string"
          }
        },
        "required": [
          "at",
          "execution_id",
          "kind"
        ],
        "title": "DashboardChange",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Check GitHub for new runs now when CI sync is on. Answers its status.",
      "metadata": {
        "contract": {
          "capability": "ci-sync-check",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::ci-sync-check",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CiSyncPhase": {
            "description": "The latest releases first (`quick`), then every run GitHub keeps (`backfill`), then the recent runs at each check (`keeping_up`).",
            "enum": [
              "off",
              "quick",
              "backfill",
              "keeping_up"
            ],
            "type": "string"
          }
        },
        "description": "What CI sync did and does next; times are RFC 3339, counters count since the worker started.",
        "properties": {
          "checked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "failed": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "imported": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "message": {
            "description": "What stopped the last check short: `gh` not ready, a listing that failed. A run whose import failed only counts in `failed`.",
            "type": [
              "string",
              "null"
            ]
          },
          "next_check_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "paused_until": {
            "description": "Until when a GitHub rate limit holds every check.",
            "type": [
              "string",
              "null"
            ]
          },
          "phase": {
            "$ref": "#/definitions/CiSyncPhase"
          },
          "remaining": {
            "description": "Runs the current pass has yet to import.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "signed_in": {
            "description": "Whether `gh` was signed in at the last check; null before one, and when `gh` could not tell (missing, or not answering).",
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipped": {
            "description": "Runs that left no results (no e2e-contract artifact), skipped until GitHub runs them again; their executions are deleted.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "enabled",
          "failed",
          "imported",
          "phase",
          "remaining",
          "skipped"
        ],
        "title": "CiSyncStatus",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Turn CI sync on or off for this worker: on, it imports the exact-stack workflow's runs in the background, the latest releases first, then keeps up every 10 minutes. Answers its status.",
      "metadata": {
        "contract": {
          "capability": "ci-sync-set",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::ci-sync-set",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "title": "CiSyncSetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CiSyncPhase": {
            "description": "The latest releases first (`quick`), then every run GitHub keeps (`backfill`), then the recent runs at each check (`keeping_up`).",
            "enum": [
              "off",
              "quick",
              "backfill",
              "keeping_up"
            ],
            "type": "string"
          }
        },
        "description": "What CI sync did and does next; times are RFC 3339, counters count since the worker started.",
        "properties": {
          "checked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "failed": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "imported": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "message": {
            "description": "What stopped the last check short: `gh` not ready, a listing that failed. A run whose import failed only counts in `failed`.",
            "type": [
              "string",
              "null"
            ]
          },
          "next_check_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "paused_until": {
            "description": "Until when a GitHub rate limit holds every check.",
            "type": [
              "string",
              "null"
            ]
          },
          "phase": {
            "$ref": "#/definitions/CiSyncPhase"
          },
          "remaining": {
            "description": "Runs the current pass has yet to import.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "signed_in": {
            "description": "Whether `gh` was signed in at the last check; null before one, and when `gh` could not tell (missing, or not answering).",
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipped": {
            "description": "Runs that left no results (no e2e-contract artifact), skipped until GitHub runs them again; their executions are deleted.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "enabled",
          "failed",
          "imported",
          "phase",
          "remaining",
          "skipped"
        ],
        "title": "CiSyncStatus",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read CI sync: whether it is on, its phase, whether gh is signed in, the last and next check, imported, failed and remaining runs, and a rate-limit pause.",
      "metadata": {
        "contract": {
          "capability": "ci-sync-status-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::ci-sync-status-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CiSyncPhase": {
            "description": "The latest releases first (`quick`), then every run GitHub keeps (`backfill`), then the recent runs at each check (`keeping_up`).",
            "enum": [
              "off",
              "quick",
              "backfill",
              "keeping_up"
            ],
            "type": "string"
          }
        },
        "description": "What CI sync did and does next; times are RFC 3339, counters count since the worker started.",
        "properties": {
          "checked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "failed": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "imported": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "message": {
            "description": "What stopped the last check short: `gh` not ready, a listing that failed. A run whose import failed only counts in `failed`.",
            "type": [
              "string",
              "null"
            ]
          },
          "next_check_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "paused_until": {
            "description": "Until when a GitHub rate limit holds every check.",
            "type": [
              "string",
              "null"
            ]
          },
          "phase": {
            "$ref": "#/definitions/CiSyncPhase"
          },
          "remaining": {
            "description": "Runs the current pass has yet to import.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "signed_in": {
            "description": "Whether `gh` was signed in at the last check; null before one, and when `gh` could not tell (missing, or not answering).",
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipped": {
            "description": "Runs that left no results (no e2e-contract artifact), skipped until GitHub runs them again; their executions are deleted.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "enabled",
          "failed",
          "imported",
          "phase",
          "remaining",
          "skipped"
        ],
        "title": "CiSyncStatus",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Delete a provider credential this Console set; answers with the list.",
      "metadata": {
        "contract": {
          "capability": "credential-delete",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::credential-delete",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "CredentialDeleteRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CredentialView": {
            "description": "A credential by name; never its value.",
            "properties": {
              "name": {
                "type": "string"
              },
              "providers": {
                "description": "The providers that read it, as the catalog says.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "set": {
                "type": "boolean"
              },
              "source": {
                "description": "`console` (set here), `provider_env_file` (only the worker's file sets it), `environment` (only the worker's environment holds it), or absent when it is not set.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "providers",
              "set"
            ],
            "type": "object"
          }
        },
        "properties": {
          "credentials": {
            "description": "By name, whether each is set and where from; never a value.",
            "items": {
              "$ref": "#/definitions/CredentialView"
            },
            "type": "array"
          }
        },
        "required": [
          "credentials"
        ],
        "title": "CredentialsListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Set a provider credential (an environment variable's name and its value) for Docker executions; answers with the list, never a value.",
      "metadata": {
        "contract": {
          "capability": "credential-set",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::credential-set",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "A credential to set. No `Debug`: its value is never printed.",
        "properties": {
          "name": {
            "description": "An environment variable's name (OPENAI_API_KEY).",
            "type": "string"
          },
          "secret": {
            "description": "The value, under a key the iii SDKs redact from the invocation payloads they record in traces (`iii.invocation.input`): `value` would be kept there as sent.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "secret"
        ],
        "title": "CredentialSetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CredentialView": {
            "description": "A credential by name; never its value.",
            "properties": {
              "name": {
                "type": "string"
              },
              "providers": {
                "description": "The providers that read it, as the catalog says.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "set": {
                "type": "boolean"
              },
              "source": {
                "description": "`console` (set here), `provider_env_file` (only the worker's file sets it), `environment` (only the worker's environment holds it), or absent when it is not set.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "providers",
              "set"
            ],
            "type": "object"
          }
        },
        "properties": {
          "credentials": {
            "description": "By name, whether each is set and where from; never a value.",
            "items": {
              "$ref": "#/definitions/CredentialView"
            },
            "type": "array"
          }
        },
        "required": [
          "credentials"
        ],
        "title": "CredentialsListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List the provider credentials Docker executions receive: each by name, whether it is set and where from, never its value.",
      "metadata": {
        "contract": {
          "capability": "credentials-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::credentials-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CredentialView": {
            "description": "A credential by name; never its value.",
            "properties": {
              "name": {
                "type": "string"
              },
              "providers": {
                "description": "The providers that read it, as the catalog says.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "set": {
                "type": "boolean"
              },
              "source": {
                "description": "`console` (set here), `provider_env_file` (only the worker's file sets it), `environment` (only the worker's environment holds it), or absent when it is not set.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "providers",
              "set"
            ],
            "type": "object"
          }
        },
        "properties": {
          "credentials": {
            "description": "By name, whether each is set and where from; never a value.",
            "items": {
              "$ref": "#/definitions/CredentialView"
            },
            "type": "array"
          }
        },
        "required": [
          "credentials"
        ],
        "title": "CredentialsListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List immutable evaluated-system versions and their exact evaluation cohorts.",
      "metadata": {
        "contract": {
          "capability": "evaluated-versions-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::evaluated-versions-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "cohort_id": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "EvaluatedVersionsRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "CohortDescriptor": {
            "properties": {
              "id": {
                "type": "string"
              },
              "lane": {
                "type": "string"
              },
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "lane",
              "subject_model",
              "subject_provider"
            ],
            "type": "object"
          },
          "EvaluatedVersionDescriptor": {
            "properties": {
              "cohort_id": {
                "type": "string"
              },
              "completed_at": {
                "type": "string"
              },
              "execution_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "stack_mode": {
                "type": "string"
              }
            },
            "required": [
              "cohort_id",
              "completed_at",
              "execution_count",
              "id",
              "label",
              "stack_mode"
            ],
            "type": "object"
          }
        },
        "properties": {
          "cohorts": {
            "items": {
              "$ref": "#/definitions/CohortDescriptor"
            },
            "type": "array"
          },
          "revision": {
            "type": "string"
          },
          "versions": {
            "items": {
              "$ref": "#/definitions/EvaluatedVersionDescriptor"
            },
            "type": "array"
          }
        },
        "required": [
          "cohorts",
          "revision",
          "versions"
        ],
        "title": "EvaluatedVersionsResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read one evidence file or deliverable screenshot a retained run's report declares, as base64 (10 MB at most).",
      "metadata": {
        "contract": {
          "capability": "evidence-read",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::evidence-read",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "description": "The native execution whose report declares the file.",
            "type": "string"
          },
          "path": {
            "description": "A path the report declares for one of its runs (evidence or a deliverable).",
            "type": "string"
          },
          "pointer": {
            "default": null,
            "description": "A declared screenshot's JSON Pointer inside that deliverable; only the image is returned.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "execution_id",
          "path"
        ],
        "title": "EvidenceReadRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "One evidence file, or one screenshot inside a deliverable, as base64.",
        "properties": {
          "base64": {
            "type": "string"
          },
          "media_type": {
            "type": "string"
          }
        },
        "required": [
          "base64",
          "media_type"
        ],
        "title": "EvidenceFile",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Stop an execution where it runs: no next scenario is admitted and the running one is cancelled; in Docker the running groups stop; on GitHub `gh run cancel`, and what finished is imported when the run ends.",
      "metadata": {
        "contract": {
          "capability": "execution-cancel",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-cancel",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionGetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Delete one finished native run, or one finished execution together with its native runs.",
      "metadata": {
        "contract": {
          "capability": "execution-delete",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-delete",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionGetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read one retained execution summary and its diagnostic report.",
      "metadata": {
        "contract": {
          "capability": "execution-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionGetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ExecutionListResponse": {
            "properties": {
              "executions": {
                "items": true,
                "type": "array"
              },
              "last_update": {
                "type": "string"
              },
              "mode": {
                "type": "string"
              },
              "next_cursor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "repo_url": {
                "type": "string"
              },
              "retention": {
                "$ref": "#/definitions/Retention"
              },
              "total": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "executions",
              "last_update",
              "mode",
              "repo_url",
              "retention",
              "total"
            ],
            "type": "object"
          },
          "Retention": {
            "properties": {
              "details": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "summaries": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "details",
              "summaries"
            ],
            "type": "object"
          }
        },
        "properties": {
          "detail": true,
          "manifest": {
            "$ref": "#/definitions/ExecutionListResponse"
          }
        },
        "required": [
          "detail",
          "manifest"
        ],
        "title": "ExecutionBundle",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Name one execution; an empty label restores its default name.",
      "metadata": {
        "contract": {
          "capability": "execution-rename",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-rename",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          },
          "label": {
            "description": "Empty restores the default name.",
            "type": "string"
          }
        },
        "required": [
          "execution_id",
          "label"
        ],
        "title": "ExecutionRenameRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Run one scenario of a finished execution again where it ran: on this harness, in Docker as the next attempt, or on GitHub by re-running its group's job (followed and imported again when the run ends); the last attempt counts. Answers with its id and runs in the background.",
      "metadata": {
        "contract": {
          "capability": "execution-slot-rerun",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-slot-rerun",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          },
          "scenario_id": {
            "description": "The scenario to run again; a sequential group runs again whole.",
            "type": "string"
          }
        },
        "required": [
          "execution_id",
          "scenario_id"
        ],
        "title": "ExecutionSlotRerunRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Start an execution from its parameters on this harness, in Docker on a stack, or on GitHub (dispatching the exact-stack workflow, followed and imported when the run ends); answers with its id and runs in the background.",
      "metadata": {
        "contract": {
          "capability": "execution-start",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-start",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ExecutionParameters": {
            "description": "What an execution ran, to run it again. Always the canonical cases: a `seed` sent or stored by an older Console is ignored, so every execution pairs with any other by scenario and repetition.",
            "properties": {
              "agent": {
                "description": "Agent profile the subject ran under.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "model": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              },
              "runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "scenarios": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "stack": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ExecutionStack"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The stack it ran on in Docker or on GitHub; this harness runs on its own. Running it again offers it as recorded."
              },
              "suite": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ExecutionSuite"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The suite it ran; absent for an execution from before suites."
              },
              "technical_retries": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "where": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Where"
                  }
                ],
                "default": "harness",
                "description": "Where it ran; absent for an execution from before Docker, which ran on this harness."
              }
            },
            "required": [
              "model",
              "provider",
              "runs",
              "scenarios",
              "technical_retries"
            ],
            "type": "object"
          },
          "ExecutionStack": {
            "description": "The stack an execution ran on, to run it again as recorded.",
            "properties": {
              "name": {
                "description": "A repository stack's id, a local one's name, or what a contract names.",
                "type": "string"
              },
              "sha256": {
                "default": "",
                "description": "`sha256:` of `yaml`; the worker sets it, a request never does.",
                "type": "string"
              },
              "yaml": {
                "description": "The YAML as sent; once imported, the final `stack.yaml` its contract recorded (the iii release and the runner pinned).",
                "type": "string"
              }
            },
            "required": [
              "name",
              "yaml"
            ],
            "type": "object"
          },
          "ExecutionSuite": {
            "description": "The suite an execution ran: named when it was picked as it is (a suite of the master plan or of this Console), unnamed when its scenarios were ticked by hand, with the digest of the snapshot it materialized to.",
            "properties": {
              "id": {
                "description": "Absent for an unnamed suite.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "default": "",
                "type": "string"
              },
              "sha256": {
                "default": "",
                "description": "`profile_sha256` of the snapshot; the runner sets it, a request never does.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "Where": {
            "description": "Where an execution runs: on this harness, in Docker from this worker, or on GitHub (dispatched from here, or imported).",
            "enum": [
              "harness",
              "docker",
              "github"
            ],
            "type": "string"
          }
        },
        "properties": {
          "label": {
            "default": "",
            "description": "Empty or absent uses the default name.",
            "type": "string"
          },
          "parameters": {
            "allOf": [
              {
                "$ref": "#/definitions/ExecutionParameters"
              }
            ],
            "description": "What to run; a previous execution's parameters run it again."
          }
        },
        "required": [
          "parameters"
        ],
        "title": "ExecutionStartRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Compare two executions over their counted runs, test by test under one definition: B better than A, no different, worse, or cannot tell yet, with the reasons, the repetitions missing and each criterion's health per side. The verdict `harness-e2e compare` gives.",
      "metadata": {
        "contract": {
          "capability": "execution-verdict",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::execution-verdict",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "a": {
            "description": "A, the reference.",
            "type": "string"
          },
          "b": {
            "description": "B, compared with it.",
            "type": "string"
          }
        },
        "required": [
          "a",
          "b"
        ],
        "title": "ExecutionVerdictRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Change": {
            "description": "A group of a compared test whose points moved, the groups formed over both sides' counted runs by the runs they fall short in and the runs that did not evaluate them; their deltas add up to the test's.",
            "properties": {
              "behavior": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "criteria": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "delta": {
                "description": "B − A, in the test's points.",
                "format": "double",
                "type": "number"
              },
              "failing": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Sides_for_uint"
                  }
                ],
                "description": "The runs they fall short in, of `runs`."
              },
              "not_evaluated": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Sides_for_uint"
                  }
                ],
                "description": "The runs that did not evaluate them (no points), of `runs`."
              },
              "points": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Sides_for_double"
                  }
                ],
                "description": "Their points per run."
              },
              "runs": {
                "$ref": "#/definitions/Sides_for_uint"
              },
              "scenario": {
                "type": "string"
              }
            },
            "required": [
              "criteria",
              "delta",
              "failing",
              "not_evaluated",
              "points",
              "runs",
              "scenario"
            ],
            "type": "object"
          },
          "Class": {
            "oneOf": [
              {
                "enum": [
                  "oscillating"
                ],
                "type": "string"
              },
              {
                "description": "Full in every counted run: a guard, but it shows no improvement.",
                "enum": [
                  "saturated"
                ],
                "type": "string"
              },
              {
                "description": "Full in none.",
                "enum": [
                  "never_full"
                ],
                "type": "string"
              },
              {
                "description": "Evaluated in fewer than `MIN_RUNS` counted runs.",
                "enum": [
                  "insufficient_data"
                ],
                "type": "string"
              }
            ]
          },
          "Configuration": {
            "properties": {
              "behavior": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "criteria": {
                "description": "The criteria some counted run evaluated.",
                "items": {
                  "$ref": "#/definitions/Criterion"
                },
                "type": "array"
              },
              "groups": {
                "items": {
                  "$ref": "#/definitions/Group"
                },
                "type": "array"
              },
              "model": {
                "description": "`provider/model`, none when its results do not record it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "not_evaluated": {
                "description": "The criteria no counted run evaluated.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "runs": {
                "$ref": "#/definitions/RunClasses"
              },
              "scenario": {
                "type": "string"
              },
              "side": {
                "$ref": "#/definitions/Side"
              },
              "stack": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Each worker's resolved version, `iii` the engine and `lock` the stack lock digest; empty when its results do not record it.",
                "type": "object"
              },
              "sufficient": {
                "description": "At least `MIN_RUNS` counted runs.",
                "type": "boolean"
              }
            },
            "required": [
              "criteria",
              "groups",
              "not_evaluated",
              "runs",
              "scenario",
              "side",
              "stack",
              "sufficient"
            ],
            "type": "object"
          },
          "Cost": {
            "properties": {
              "a": {
                "description": "Sum over the tests of each test's mean subject cost, in US$.",
                "format": "double",
                "type": "number"
              },
              "b": {
                "format": "double",
                "type": "number"
              },
              "p_cheaper": {
                "description": "Each against α / 2.",
                "format": "double",
                "type": "number"
              },
              "p_more_expensive": {
                "format": "double",
                "type": "number"
              },
              "p_within_high": {
                "format": "double",
                "type": "number"
              },
              "p_within_low": {
                "description": "Against B costing `equivalence` less or more; both under α is equivalent, the high one alone below the bound.",
                "format": "double",
                "type": "number"
              },
              "relative": {
                "description": "B / A − 1, shown; the tests read B − A.",
                "format": "double",
                "type": "number"
              },
              "state": {
                "$ref": "#/definitions/CostState"
              },
              "tests": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "a",
              "b",
              "p_cheaper",
              "p_more_expensive",
              "p_within_high",
              "p_within_low",
              "relative",
              "state",
              "tests"
            ],
            "type": "object"
          },
          "CostState": {
            "oneOf": [
              {
                "enum": [
                  "cheaper",
                  "more_expensive",
                  "inconclusive"
                ],
                "type": "string"
              },
              {
                "description": "Within ±`equivalence`.",
                "enum": [
                  "equivalent"
                ],
                "type": "string"
              },
              {
                "description": "Below +`equivalence`, but neither within −`equivalence` nor cheaper.",
                "enum": [
                  "below_bound"
                ],
                "type": "string"
              }
            ]
          },
          "Criterion": {
            "properties": {
              "class": {
                "$ref": "#/definitions/Class"
              },
              "full": {
                "description": "Runs that awarded all its points.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "high": {
                "format": "double",
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "low": {
                "description": "Wilson 95% interval of `rate`.",
                "format": "double",
                "type": "number"
              },
              "n": {
                "description": "Counted runs that evaluated it.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "description": "Counted runs that did not (null, or not listed).",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "rate": {
                "format": "double",
                "type": "number"
              }
            },
            "required": [
              "class",
              "full",
              "high",
              "id",
              "low",
              "n",
              "not_evaluated",
              "rate"
            ],
            "type": "object"
          },
          "Dropped": {
            "description": "A definition of a test left out.",
            "properties": {
              "behavior": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "description": "`definition_changed` (the other side ran the scenario under another definition), `only_in_a`, `only_in_b`, `no_counted_run_in_a` or `no_counted_run_in_b`.",
                "type": "string"
              },
              "scenario": {
                "type": "string"
              }
            },
            "required": [
              "reason",
              "scenario"
            ],
            "type": "object"
          },
          "Figure": {
            "description": "A figure shown beside the verdict, never deciding it.",
            "properties": {
              "a": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "b": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "comparable": {
                "description": "False when a provider's prompt does not reconcile on a side.",
                "type": "boolean"
              },
              "delta": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "id": {
                "description": "`completion`, `wall_time_s`, `processed_prompt_tokens`, `context_per_turn` or `peak_context_tokens`.",
                "type": "string"
              },
              "relative": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "comparable",
              "id"
            ],
            "type": "object"
          },
          "Group": {
            "description": "Criteria that fall short of full points in exactly the same runs.",
            "properties": {
              "criteria": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "failing": {
                "description": "The runs they fall short in.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "of": {
                "description": "The configuration's counted runs.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "criteria",
              "failing",
              "of"
            ],
            "type": "object"
          },
          "Health": {
            "properties": {
              "changes": {
                "description": "The groups that explain the score changes, the largest first.",
                "items": {
                  "$ref": "#/definitions/Change"
                },
                "type": "array"
              },
              "configurations": {
                "items": {
                  "$ref": "#/definitions/Configuration"
                },
                "type": "array"
              },
              "min_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "warnings": {
                "description": "A side whose runs do not record their model or stack.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "changes",
              "configurations",
              "min_runs",
              "warnings"
            ],
            "type": "object"
          },
          "Qualifier": {
            "oneOf": [
              {
                "description": "A test fell beyond the margin on its own, whatever the mean says.",
                "enum": [
                  "test_inferior"
                ],
                "type": "string"
              },
              {
                "description": "Quality fell, by an amount the runs cannot bound.",
                "enum": [
                  "quality_fell"
                ],
                "type": "string"
              },
              {
                "description": "Quality improved and the cost rose: the rule does not weigh one against the other.",
                "enum": [
                  "trade_off"
                ],
                "type": "string"
              }
            ]
          },
          "Quality": {
            "properties": {
              "a": {
                "description": "Mean over the tests of each test's mean score.",
                "format": "double",
                "type": "number"
              },
              "b": {
                "format": "double",
                "type": "number"
              },
              "delta": {
                "description": "B − A, in points.",
                "format": "double",
                "type": "number"
              },
              "p_fell": {
                "format": "double",
                "type": "number"
              },
              "p_improved": {
                "format": "double",
                "type": "number"
              },
              "p_inferior": {
                "format": "double",
                "type": "number"
              },
              "p_non_inferior": {
                "format": "double",
                "type": "number"
              },
              "state": {
                "$ref": "#/definitions/QualityState"
              },
              "tests": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "a",
              "b",
              "delta",
              "p_fell",
              "p_improved",
              "p_inferior",
              "p_non_inferior",
              "state",
              "tests"
            ],
            "type": "object"
          },
          "QualityState": {
            "oneOf": [
              {
                "enum": [
                  "inconclusive"
                ],
                "type": "string"
              },
              {
                "description": "B scores higher than A.",
                "enum": [
                  "improved"
                ],
                "type": "string"
              },
              {
                "description": "B loses less than the margin.",
                "enum": [
                  "non_inferior"
                ],
                "type": "string"
              },
              {
                "description": "B loses more than the margin.",
                "enum": [
                  "inferior"
                ],
                "type": "string"
              },
              {
                "description": "B loses something; how much, the runs cannot bound.",
                "enum": [
                  "fell"
                ],
                "type": "string"
              }
            ]
          },
          "Repetitions": {
            "properties": {
              "have": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Sides_for_uint"
                  }
                ],
                "description": "The fewest counted runs a compared test has on each side."
              },
              "missing": {
                "description": "`needed` less the fewest of `have`, at least 1.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "more_than": {
                "description": "Set to the cap when more than it would be needed.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "needed": {
                "description": "Runs per arm, those made kept, that would settle what is undecided with a predicted 80%; only when the runs cannot tell and a number exists.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "note": {
                "description": "Why there is no number, when there is none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "settles": {
                "description": "What `needed` or `more_than` settles: `quality` (the margin) and `cost` (below the bound, or more expensive).",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "sigma": {
                "description": "Pooled within-test standard deviation of the score, per run: the noise, shown; `needed` reads the spread each test exchanges.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "have",
              "settles"
            ],
            "type": "object"
          },
          "Rule": {
            "properties": {
              "alpha": {
                "description": "One-sided, for each quality test and the equivalence; each cost direction is tested at half of it.",
                "format": "double",
                "type": "number"
              },
              "equivalence": {
                "description": "Relative cost change that counts as no change.",
                "format": "double",
                "type": "number"
              },
              "margin": {
                "description": "Points of quality B may lose and still be non-inferior.",
                "format": "double",
                "type": "number"
              },
              "permutations": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "alpha",
              "equivalence",
              "margin",
              "permutations",
              "seed"
            ],
            "type": "object"
          },
          "RunClasses": {
            "properties": {
              "evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infrastructure": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "prerequisite_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "zeroed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "evaluated",
              "infrastructure",
              "prerequisite_failed",
              "zeroed"
            ],
            "type": "object"
          },
          "RunCounts": {
            "description": "What became of one side's runs, first by cause, then as the criteria health reads them.",
            "properties": {
              "causes": {
                "additionalProperties": {
                  "format": "uint",
                  "minimum": 0,
                  "type": "integer"
                },
                "description": "`earlier_rule` for a run of a report older than causes.",
                "type": "object"
              },
              "classes": {
                "$ref": "#/definitions/RunClasses"
              },
              "counted": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "excluded": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "causes",
              "classes",
              "counted",
              "excluded"
            ],
            "type": "object"
          },
          "Side": {
            "description": "A side of the comparison.",
            "enum": [
              "a",
              "b"
            ],
            "type": "string"
          },
          "Sides_for_RunCounts": {
            "properties": {
              "a": {
                "$ref": "#/definitions/RunCounts"
              },
              "b": {
                "$ref": "#/definitions/RunCounts"
              }
            },
            "required": [
              "a",
              "b"
            ],
            "type": "object"
          },
          "Sides_for_double": {
            "properties": {
              "a": {
                "format": "double",
                "type": "number"
              },
              "b": {
                "format": "double",
                "type": "number"
              }
            },
            "required": [
              "a",
              "b"
            ],
            "type": "object"
          },
          "Sides_for_uint": {
            "properties": {
              "a": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "b": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "a",
              "b"
            ],
            "type": "object"
          },
          "TestDelta": {
            "properties": {
              "a": {
                "format": "double",
                "type": "number"
              },
              "b": {
                "format": "double",
                "type": "number"
              },
              "behavior": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "delta": {
                "format": "double",
                "type": "number"
              },
              "p_fell": {
                "description": "This test's own permutation test of a drop.",
                "format": "double",
                "type": "number"
              },
              "p_inferior": {
                "description": "This test's own permutation test of a drop beyond the margin, and it Holm-adjusted over the tests compared.",
                "format": "double",
                "type": "number"
              },
              "p_inferior_adjusted": {
                "format": "double",
                "type": "number"
              },
              "runs": {
                "$ref": "#/definitions/Sides_for_uint"
              },
              "scenario": {
                "type": "string"
              },
              "warning": {
                "description": "It fell beyond the margin on its own (adjusted p under α): a warning, and the verdict cannot read better or no difference.",
                "type": "boolean"
              }
            },
            "required": [
              "a",
              "b",
              "delta",
              "p_fell",
              "p_inferior",
              "p_inferior_adjusted",
              "runs",
              "scenario",
              "warning"
            ],
            "type": "object"
          },
          "Verdict": {
            "enum": [
              "better",
              "no_difference",
              "worse",
              "cannot_tell"
            ],
            "type": "string"
          }
        },
        "properties": {
          "cost": {
            "anyOf": [
              {
                "$ref": "#/definitions/Cost"
              },
              {
                "type": "null"
              }
            ]
          },
          "criteria": {
            "$ref": "#/definitions/Health"
          },
          "dropped": {
            "items": {
              "$ref": "#/definitions/Dropped"
            },
            "type": "array"
          },
          "figures": {
            "description": "Completion first, then the supporting figures.",
            "items": {
              "$ref": "#/definitions/Figure"
            },
            "type": "array"
          },
          "qualifier": {
            "anyOf": [
              {
                "$ref": "#/definitions/Qualifier"
              },
              {
                "type": "null"
              }
            ]
          },
          "quality": {
            "anyOf": [
              {
                "$ref": "#/definitions/Quality"
              },
              {
                "type": "null"
              }
            ]
          },
          "reasons": {
            "description": "The rule's reading, quality first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "repetitions": {
            "$ref": "#/definitions/Repetitions"
          },
          "rule": {
            "$ref": "#/definitions/Rule"
          },
          "runs": {
            "$ref": "#/definitions/Sides_for_RunCounts"
          },
          "tests": {
            "items": {
              "$ref": "#/definitions/TestDelta"
            },
            "type": "array"
          },
          "unavailable": {
            "type": [
              "string",
              "null"
            ]
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/definitions/Verdict"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when there is no calibrated verdict; `unavailable` says why."
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "criteria",
          "dropped",
          "figures",
          "reasons",
          "repetitions",
          "rule",
          "runs",
          "tests",
          "warnings"
        ],
        "title": "Comparison",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List compact retained execution summaries with server-side filters and cursor pagination.",
      "metadata": {
        "contract": {
          "capability": "executions-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::executions-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "cursor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "event": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "ids": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ids_csv": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "limit": {
            "default": null,
            "format": "uint16",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "query": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "ExecutionListRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Retention": {
            "properties": {
              "details": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "summaries": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "details",
              "summaries"
            ],
            "type": "object"
          }
        },
        "properties": {
          "executions": {
            "items": true,
            "type": "array"
          },
          "last_update": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "repo_url": {
            "type": "string"
          },
          "retention": {
            "$ref": "#/definitions/Retention"
          },
          "total": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "executions",
          "last_update",
          "mode",
          "repo_url",
          "retention",
          "total"
        ],
        "title": "ExecutionListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read the suite, subject, profile and runner of listed GitHub runs from their contract artifacts.",
      "metadata": {
        "contract": {
          "capability": "github-run-contracts",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::github-run-contracts",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "GithubRunAttempt": {
            "properties": {
              "run_attempt": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "run_id": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "run_attempt",
              "run_id"
            ],
            "type": "object"
          }
        },
        "properties": {
          "repository": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "runs": {
            "description": "The runs of one listed page whose contract is not read yet.",
            "items": {
              "$ref": "#/definitions/GithubRunAttempt"
            },
            "type": "array"
          }
        },
        "required": [
          "runs"
        ],
        "title": "GithubRunContractsRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Import one exact-stack workflow run from GitHub as an execution; answers at once and imports in the background.",
      "metadata": {
        "contract": {
          "capability": "github-run-import",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::github-run-import",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "repository": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "run_id": {
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "run_id"
        ],
        "title": "GithubRunImportRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List completed exact-stack workflow runs on GitHub with their local import; suites and subjects already read come along.",
      "metadata": {
        "contract": {
          "capability": "github-runs-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::github-runs-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "page": {
            "default": null,
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "repository": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "GithubRunsListRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Tell whether the GitHub CLI on this worker's machine is installed and signed in, so executions can be dispatched to the repository's exact-stack workflow; never fails for a missing or signed-out gh.",
      "metadata": {
        "contract": {
          "capability": "github-status-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::github-status-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "Whether `gh` can dispatch executions to GitHub from this worker.",
        "properties": {
          "account": {
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "description": "How to fix it when not ready.",
            "type": [
              "string",
              "null"
            ]
          },
          "ready": {
            "type": "boolean"
          },
          "repository": {
            "type": "string"
          }
        },
        "required": [
          "ready",
          "repository"
        ],
        "title": "GithubStatusResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List the newest iii CLI releases (iii-hq/iii tags iii/v*, alphas left out), each with its date and whether it publishes the CLI, and the newest release candidate `iii: latest` installs; with a version, whether that release exists. Kept ten minutes.",
      "metadata": {
        "contract": {
          "capability": "iii-releases-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::iii-releases-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "version": {
            "default": null,
            "description": "A version typed by hand, e.g. `0.24.2`: whether iii-hq/iii has the release `iii/v<version>` and it publishes the CLI.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "IiiReleasesRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "IiiRelease": {
            "properties": {
              "cli": {
                "description": "Whether it publishes `iii-x86_64-unknown-linux-gnu.tar.gz`, the CLI a group installs.",
                "type": "boolean"
              },
              "prerelease": {
                "type": "boolean"
              },
              "published_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "description": "The tag without `iii/v`.",
                "type": "string"
              }
            },
            "required": [
              "cli",
              "prerelease",
              "version"
            ],
            "type": "object"
          },
          "IiiVersionCheck": {
            "properties": {
              "release": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/IiiRelease"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Its release; none when iii-hq/iii has no `iii/v<version>`."
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "version"
            ],
            "type": "object"
          }
        },
        "properties": {
          "checked": {
            "anyOf": [
              {
                "$ref": "#/definitions/IiiVersionCheck"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version asked about."
          },
          "latest_candidate": {
            "description": "What `iii: latest` installs: the newest `X.Y.Z-rc.N` tag.",
            "type": [
              "string",
              "null"
            ]
          },
          "releases": {
            "description": "The newest releases, stable and pre-release, as GitHub lists them; alphas (`iii-alpha/…`) and drafts left out.",
            "items": {
              "$ref": "#/definitions/IiiRelease"
            },
            "type": "array"
          }
        },
        "required": [
          "releases"
        ],
        "title": "IiiReleases",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read how each Harness release did in Release Control, newest last: per combination (suite, provider, model, profile, stack), the first completed execution of each release compared with the release before it over the tests both counted under one definition, with coverage, what else changed and, on the latest pair (the verdict), the calibrated verdict; local and Docker runs beside their release, and how many CI runs fall outside Release Control.",
      "metadata": {
        "contract": {
          "capability": "release-overview-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::release-overview-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Combination": {
            "description": "What the verdict compares like with like: a series and its stack.",
            "properties": {
              "model": {
                "type": "string"
              },
              "profile": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider": {
                "type": "string"
              },
              "stack": {
                "description": "A stack name, or `not_recorded`.",
                "type": "string"
              },
              "suite": {
                "description": "A suite id, or the sha256 of an unsaved suite.",
                "type": "string"
              },
              "suite_label": {
                "description": "From the release's newest execution of it.",
                "type": "string"
              }
            },
            "required": [
              "model",
              "provider",
              "stack",
              "suite",
              "suite_label"
            ],
            "type": "object"
          },
          "CombinationDelta": {
            "properties": {
              "also_changed": {
                "description": "The iii engine and the runner, when they changed between the two executions.",
                "items": {
                  "$ref": "#/definitions/VersionChange"
                },
                "type": "array"
              },
              "calibrated": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Summary"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The latest against the previous over the tests compared, as `harness-e2e compare` reads them; without a verdict when a side ran one run per test. Only the latest release's step has one."
              },
              "combination": {
                "$ref": "#/definitions/Combination"
              },
              "compared_tests": {
                "description": "Tests both sides counted under one definition.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "completed_delta": {
                "description": "The change in completed runs over counted runs, in percentage points, rounded to 0.1.",
                "format": "double",
                "type": "number"
              },
              "latest": {
                "$ref": "#/definitions/Side"
              },
              "previous": {
                "$ref": "#/definitions/Side"
              },
              "score_delta": {
                "description": "The change in mean score, in points, rounded to 0.1; null when a side scored nothing.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "tests_left_out": {
                "items": {
                  "$ref": "#/definitions/LeftOutTest"
                },
                "type": "array"
              }
            },
            "required": [
              "also_changed",
              "combination",
              "compared_tests",
              "completed_delta",
              "latest",
              "previous",
              "tests_left_out"
            ],
            "type": "object"
          },
          "CombinationLeftOut": {
            "oneOf": [
              {
                "description": "Only one release ran it.",
                "enum": [
                  "only_in_one_release"
                ],
                "type": "string"
              },
              {
                "description": "Both first completed it, and no test compares.",
                "enum": [
                  "nothing_alike"
                ],
                "type": "string"
              },
              {
                "description": "Both counted it, and one has only interrupted executions of it.",
                "enum": [
                  "no_completed_execution"
                ],
                "type": "string"
              },
              {
                "description": "The other release ran it, and every run failed in the E2E infrastructure.",
                "enum": [
                  "all_runs_infra_failed"
                ],
                "type": "string"
              }
            ]
          },
          "CombinationPoint": {
            "description": "A combination's first completed execution of a release: what its chart plots and its step compares.",
            "properties": {
              "combination": {
                "$ref": "#/definitions/Combination"
              },
              "harness_failed_runs": {
                "description": "Runs the subject failed: the Harness, its provider request or a budget.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infra_failed_runs": {
                "description": "Runs that did not count and that the subject did not fail: the E2E infrastructure's.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_run": {
                "description": "Planned runs that never ran.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "point": {
                "$ref": "#/definitions/TrendPoint"
              }
            },
            "required": [
              "combination",
              "harness_failed_runs",
              "infra_failed_runs",
              "not_run",
              "point"
            ],
            "type": "object"
          },
          "Cost": {
            "properties": {
              "a": {
                "description": "Sum over the tests of each test's mean subject cost, in US$.",
                "format": "double",
                "type": "number"
              },
              "b": {
                "format": "double",
                "type": "number"
              },
              "p_cheaper": {
                "description": "Each against α / 2.",
                "format": "double",
                "type": "number"
              },
              "p_more_expensive": {
                "format": "double",
                "type": "number"
              },
              "p_within_high": {
                "format": "double",
                "type": "number"
              },
              "p_within_low": {
                "description": "Against B costing `equivalence` less or more; both under α is equivalent, the high one alone below the bound.",
                "format": "double",
                "type": "number"
              },
              "relative": {
                "description": "B / A − 1, shown; the tests read B − A.",
                "format": "double",
                "type": "number"
              },
              "state": {
                "$ref": "#/definitions/CostState"
              },
              "tests": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "a",
              "b",
              "p_cheaper",
              "p_more_expensive",
              "p_within_high",
              "p_within_low",
              "relative",
              "state",
              "tests"
            ],
            "type": "object"
          },
          "CostState": {
            "oneOf": [
              {
                "enum": [
                  "cheaper",
                  "more_expensive",
                  "inconclusive"
                ],
                "type": "string"
              },
              {
                "description": "Within ±`equivalence`.",
                "enum": [
                  "equivalent"
                ],
                "type": "string"
              },
              {
                "description": "Below +`equivalence`, but neither within −`equivalence` nor cheaper.",
                "enum": [
                  "below_bound"
                ],
                "type": "string"
              }
            ]
          },
          "LeftOutCombination": {
            "properties": {
              "combination": {
                "$ref": "#/definitions/Combination"
              },
              "infra_failed_runs": {
                "description": "With `all_runs_infra_failed`: the other release's runs of it, none of which counted.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "only_in": {
                "description": "The only release of the two that counted a run of it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "$ref": "#/definitions/CombinationLeftOut"
              }
            },
            "required": [
              "combination",
              "reason"
            ],
            "type": "object"
          },
          "LeftOutTest": {
            "properties": {
              "reason": {
                "$ref": "#/definitions/TestLeftOut"
              },
              "test": {
                "type": "string"
              }
            },
            "required": [
              "reason",
              "test"
            ],
            "type": "object"
          },
          "LocalMark": {
            "description": "A local or Docker execution, beside a release it never counts in.",
            "properties": {
              "combination": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Combination"
                  }
                ],
                "description": "The combination whose chart it sits on."
              },
              "execution_id": {
                "type": "string"
              },
              "point": {
                "allOf": [
                  {
                    "$ref": "#/definitions/TrendPoint"
                  }
                ],
                "description": "`measures` is null when nothing counted."
              },
              "ran": {
                "description": "The Harness it recorded (`@sha7`, a version); null: not recorded.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "release": {
                "description": "Its own release when that is on the line, else the newest release whose first execution started before it.",
                "type": "string"
              },
              "role": {
                "$ref": "#/definitions/TrendRole"
              },
              "started_at": {
                "type": "string"
              },
              "suite_label": {
                "type": "string"
              }
            },
            "required": [
              "combination",
              "execution_id",
              "point",
              "release",
              "role",
              "started_at",
              "suite_label"
            ],
            "type": "object"
          },
          "OutsideCount": {
            "description": "GitHub executions without a Release Control id, whatever their state.",
            "properties": {
              "executions": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "latest_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "executions"
            ],
            "type": "object"
          },
          "Qualifier": {
            "oneOf": [
              {
                "description": "A test fell beyond the margin on its own, whatever the mean says.",
                "enum": [
                  "test_inferior"
                ],
                "type": "string"
              },
              {
                "description": "Quality fell, by an amount the runs cannot bound.",
                "enum": [
                  "quality_fell"
                ],
                "type": "string"
              },
              {
                "description": "Quality improved and the cost rose: the rule does not weigh one against the other.",
                "enum": [
                  "trade_off"
                ],
                "type": "string"
              }
            ]
          },
          "Quality": {
            "properties": {
              "a": {
                "description": "Mean over the tests of each test's mean score.",
                "format": "double",
                "type": "number"
              },
              "b": {
                "format": "double",
                "type": "number"
              },
              "delta": {
                "description": "B − A, in points.",
                "format": "double",
                "type": "number"
              },
              "p_fell": {
                "format": "double",
                "type": "number"
              },
              "p_improved": {
                "format": "double",
                "type": "number"
              },
              "p_inferior": {
                "format": "double",
                "type": "number"
              },
              "p_non_inferior": {
                "format": "double",
                "type": "number"
              },
              "state": {
                "$ref": "#/definitions/QualityState"
              },
              "tests": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "a",
              "b",
              "delta",
              "p_fell",
              "p_improved",
              "p_inferior",
              "p_non_inferior",
              "state",
              "tests"
            ],
            "type": "object"
          },
          "QualityState": {
            "oneOf": [
              {
                "enum": [
                  "inconclusive"
                ],
                "type": "string"
              },
              {
                "description": "B scores higher than A.",
                "enum": [
                  "improved"
                ],
                "type": "string"
              },
              {
                "description": "B loses less than the margin.",
                "enum": [
                  "non_inferior"
                ],
                "type": "string"
              },
              {
                "description": "B loses more than the margin.",
                "enum": [
                  "inferior"
                ],
                "type": "string"
              },
              {
                "description": "B loses something; how much, the runs cannot bound.",
                "enum": [
                  "fell"
                ],
                "type": "string"
              }
            ]
          },
          "ReleasePoint": {
            "description": "A release on the line: its counted Release Control executions.",
            "properties": {
              "combinations": {
                "items": {
                  "$ref": "#/definitions/Combination"
                },
                "type": "array"
              },
              "executions": {
                "description": "Oldest first; a Release Control id run again counts its latest attempt.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "firsts": {
                "description": "Each combination's first completed execution, in combination order; a combination with only interrupted executions has none.",
                "items": {
                  "$ref": "#/definitions/CombinationPoint"
                },
                "type": "array"
              },
              "release": {
                "description": "One plain semver, without a leading `v`.",
                "type": "string"
              },
              "step": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ReleaseStep"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Against the release before it; null for the first."
              }
            },
            "required": [
              "combinations",
              "executions",
              "firsts",
              "release"
            ],
            "type": "object"
          },
          "ReleaseStep": {
            "description": "A release against the one before it, combination by combination.",
            "properties": {
              "compared": {
                "description": "The combinations both releases first completed, over the tests both counted alike; in combination order.",
                "items": {
                  "$ref": "#/definitions/CombinationDelta"
                },
                "type": "array"
              },
              "left_out": {
                "description": "Every other combination either release ran, with why.",
                "items": {
                  "$ref": "#/definitions/LeftOutCombination"
                },
                "type": "array"
              },
              "previous": {
                "type": "string"
              }
            },
            "required": [
              "compared",
              "left_out",
              "previous"
            ],
            "type": "object"
          },
          "Repetitions": {
            "properties": {
              "have": {
                "allOf": [
                  {
                    "$ref": "#/definitions/Sides_for_uint"
                  }
                ],
                "description": "The fewest counted runs a compared test has on each side."
              },
              "missing": {
                "description": "`needed` less the fewest of `have`, at least 1.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "more_than": {
                "description": "Set to the cap when more than it would be needed.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "needed": {
                "description": "Runs per arm, those made kept, that would settle what is undecided with a predicted 80%; only when the runs cannot tell and a number exists.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "note": {
                "description": "Why there is no number, when there is none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "settles": {
                "description": "What `needed` or `more_than` settles: `quality` (the margin) and `cost` (below the bound, or more expensive).",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "sigma": {
                "description": "Pooled within-test standard deviation of the score, per run: the noise, shown; `needed` reads the spread each test exchanges.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "have",
              "settles"
            ],
            "type": "object"
          },
          "Rule": {
            "properties": {
              "alpha": {
                "description": "One-sided, for each quality test and the equivalence; each cost direction is tested at half of it.",
                "format": "double",
                "type": "number"
              },
              "equivalence": {
                "description": "Relative cost change that counts as no change.",
                "format": "double",
                "type": "number"
              },
              "margin": {
                "description": "Points of quality B may lose and still be non-inferior.",
                "format": "double",
                "type": "number"
              },
              "permutations": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "alpha",
              "equivalence",
              "margin",
              "permutations",
              "seed"
            ],
            "type": "object"
          },
          "Side": {
            "description": "One side of a combination's step: its first completed execution, over the tests compared.",
            "properties": {
              "counted_runs": {
                "description": "The compared tests' counted runs: what Tests completed divides by.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "execution": {
                "type": "string"
              },
              "measures": {
                "allOf": [
                  {
                    "$ref": "#/definitions/TrendMeasures"
                  }
                ],
                "description": "Over the compared tests' runs; `planned` is their planned runs."
              }
            },
            "required": [
              "counted_runs",
              "execution",
              "measures"
            ],
            "type": "object"
          },
          "Sides_for_uint": {
            "properties": {
              "a": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "b": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "a",
              "b"
            ],
            "type": "object"
          },
          "Summary": {
            "description": "The verdict alone, for a reader that has no run causes or criteria (the Trends overview).",
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Cost"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "qualifier": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Qualifier"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "quality": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Quality"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reasons": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "repetitions": {
                "$ref": "#/definitions/Repetitions"
              },
              "rule": {
                "$ref": "#/definitions/Rule"
              },
              "unavailable": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "verdict": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Verdict"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "warnings": {
                "description": "The comparison's warnings, a test that fell beyond the margin among them.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "reasons",
              "repetitions",
              "rule",
              "warnings"
            ],
            "type": "object"
          },
          "TestLeftOut": {
            "description": "Why a test does not compare; the first that applies.",
            "oneOf": [
              {
                "enum": [
                  "only_previous",
                  "not_counted_previous"
                ],
                "type": "string"
              },
              {
                "description": "Planned or run on the latest side only.",
                "enum": [
                  "only_latest"
                ],
                "type": "string"
              },
              {
                "description": "Both planned or ran it, and no run of it counted on the latest side (or on neither): it never ran, or the E2E infrastructure failed it.",
                "enum": [
                  "not_counted_latest"
                ],
                "type": "string"
              },
              {
                "description": "Its definition differs between the sides, or is unknown or mixed.",
                "enum": [
                  "redefined"
                ],
                "type": "string"
              }
            ]
          },
          "TrendMeasures": {
            "properties": {
              "cache_read_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "cache_write_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "compactions_mean": {
                "description": "Root-session compactions per run.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "completed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "cost_usd_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "duration_ms_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "input_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "output_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "peak_context_fill_mean": {
                "description": "The largest root prompt over the window the Harness fit it into, per run.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "planned": {
                "description": "The runs planned (tests × runs per test), else the runs observed: what `completed` counts.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "prefix_divergences_mean": {
                "description": "Prefix rewrites no compaction explains, per run.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "reasoning_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "samples": {
                "additionalProperties": {
                  "format": "uint",
                  "minimum": 0,
                  "type": "integer"
                },
                "description": "The counted runs behind each mean, by its name: a run without the value is left out of it, so a group weighs each mean by these.",
                "type": "object"
              },
              "score_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "technical_retries_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "turns_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "validation_retries_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "completed",
              "planned",
              "samples"
            ],
            "type": "object"
          },
          "TrendPoint": {
            "properties": {
              "counted": {
                "description": "Technically valid runs.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "engine": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_id": {
                "type": "string"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "measures": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TrendMeasures"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null when nothing counted."
              },
              "model": {
                "type": "string"
              },
              "planned": {
                "items": {
                  "type": "string"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "profile": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider": {
                "description": "Its own model and profile: under `any` they differ between points.",
                "type": "string"
              },
              "reason": {
                "description": "When nothing counted: the execution's error, else why.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "release": {
                "description": "The Harness release as one plain semver, without a leading `v`; null for a commit (`@sha7`), joined builds (`a, b`) or none recorded.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "runs": {
                "description": "Runs observed.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "source": {
                "$ref": "#/definitions/TrendSource"
              },
              "stack": {
                "$ref": "#/definitions/TrendStack"
              },
              "started_at": {
                "type": "string"
              },
              "tests": {
                "description": "Planned tests first, in plan order, then any other that ran.",
                "items": {
                  "$ref": "#/definitions/TrendTest"
                },
                "type": "array"
              },
              "workers": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Identity per worker, runner and engine left out; null: not recorded.",
                "type": [
                  "object",
                  "null"
                ]
              }
            },
            "required": [
              "counted",
              "execution_id",
              "model",
              "provider",
              "runs",
              "source",
              "stack",
              "started_at",
              "tests"
            ],
            "type": "object"
          },
          "TrendRole": {
            "description": "Who ran an execution, and whether it speaks for a release.",
            "oneOf": [
              {
                "description": "A GitHub run Release Control started: it validates a release.",
                "enum": [
                  "release_control"
                ],
                "type": "string"
              },
              {
                "description": "Any other GitHub run (a pull request, a manual dispatch, a schedule).",
                "enum": [
                  "ci_other"
                ],
                "type": "string"
              },
              {
                "description": "Run by this worker on the machine.",
                "enum": [
                  "local"
                ],
                "type": "string"
              },
              {
                "description": "Run in Docker by this worker.",
                "enum": [
                  "docker"
                ],
                "type": "string"
              }
            ]
          },
          "TrendSource": {
            "properties": {
              "kind": {
                "description": "`local`, `docker` or `github`.",
                "type": "string"
              },
              "release_control_execution_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "role": {
                "$ref": "#/definitions/TrendRole"
              },
              "run_attempt": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "run_id": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "kind",
              "role"
            ],
            "type": "object"
          },
          "TrendStack": {
            "properties": {
              "matched_by_workers": {
                "description": "Not recorded, joined by its workers' names.",
                "type": "boolean"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "matched_by_workers"
            ],
            "type": "object"
          },
          "TrendTest": {
            "properties": {
              "behavior_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "score": {
                "description": "Mean of the counted runs' scores.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "state": {
                "description": "`scored`, `no_score`, `technical_invalid` or `not_run`.",
                "type": "string"
              }
            },
            "required": [
              "id",
              "state"
            ],
            "type": "object"
          },
          "Verdict": {
            "enum": [
              "better",
              "no_difference",
              "worse",
              "cannot_tell"
            ],
            "type": "string"
          },
          "Verdict2": {
            "description": "The latest release against the previous one: the latest release's step.",
            "properties": {
              "latest": {
                "type": "string"
              },
              "latest_started_at": {
                "description": "When the latest release's newest execution started.",
                "type": "string"
              },
              "previous": {
                "type": "string"
              }
            },
            "required": [
              "latest",
              "latest_started_at",
              "previous"
            ],
            "type": "object"
          },
          "VersionChange": {
            "properties": {
              "from": {
                "type": "string"
              },
              "name": {
                "description": "`iii` or `harness-e2e`.",
                "type": "string"
              },
              "to": {
                "type": "string"
              }
            },
            "required": [
              "from",
              "name",
              "to"
            ],
            "type": "object"
          }
        },
        "properties": {
          "locals": {
            "description": "Oldest first.",
            "items": {
              "$ref": "#/definitions/LocalMark"
            },
            "type": "array"
          },
          "outside_release_control": {
            "$ref": "#/definitions/OutsideCount"
          },
          "releases": {
            "description": "In semver order, the latest last.",
            "items": {
              "$ref": "#/definitions/ReleasePoint"
            },
            "type": "array"
          },
          "unversioned": {
            "description": "Counted Release Control executions whose Harness is not one plain release: a commit, joined builds, or none recorded.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/definitions/Verdict2"
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest release against the previous one; null with fewer than two."
          }
        },
        "required": [
          "locals",
          "outside_release_control",
          "releases",
          "unversioned"
        ],
        "title": "ReleaseOverview",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Cancel the active local E2E execution.",
      "metadata": {
        "contract": {
          "capability": "run-cancel",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::run-cancel",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Defaults": {
            "properties": {
              "model": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              },
              "runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "technical_retries": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "model",
              "provider",
              "runs",
              "technical_retries",
              "url"
            ],
            "type": "object"
          },
          "JobStatus": {
            "enum": [
              "running",
              "cancelling",
              "cancelled",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "JobView": {
            "properties": {
              "completed_at": {
                "type": "string"
              },
              "error": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "log": {
                "type": "string"
              },
              "log_from": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "log_offset": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "log_truncated": {
                "type": "boolean"
              },
              "request": {
                "$ref": "#/definitions/RunRequest"
              },
              "returncode": {
                "format": "int32",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "started_at": {
                "type": "string"
              },
              "status": {
                "$ref": "#/definitions/JobStatus"
              }
            },
            "required": [
              "completed_at",
              "error",
              "id",
              "label",
              "log",
              "log_from",
              "log_offset",
              "log_truncated",
              "request",
              "started_at",
              "status"
            ],
            "type": "object"
          },
          "RunRequest": {
            "additionalProperties": false,
            "properties": {
              "label": {
                "default": "",
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              },
              "runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "scenarios": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "seed": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "technical_retries": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "model",
              "provider",
              "runs",
              "scenarios",
              "technical_retries",
              "url"
            ],
            "type": "object"
          }
        },
        "properties": {
          "defaults": {
            "$ref": "#/definitions/Defaults"
          },
          "job": {
            "anyOf": [
              {
                "$ref": "#/definitions/JobView"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "defaults"
        ],
        "title": "RunSnapshot",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Create a stack of this Console as a copy of another stack, or from its YAML, refused only as stack-update refuses it.",
      "metadata": {
        "contract": {
          "capability": "stack-create",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::stack-create",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "A new stack of this Console: a copy of another stack (`from`) or the YAML given (`yaml`), exactly one of the two.",
        "properties": {
          "from": {
            "default": null,
            "description": "The stack it starts as a copy of: one of the repository or of this Console.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "default": "",
            "description": "Empty or absent names a copy after its stack; a stack of YAML needs one.",
            "type": "string"
          },
          "yaml": {
            "default": null,
            "description": "The whole stack as YAML, kept exactly as written; refused and warned about as `stack-update` does.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "StackCreateRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "StackContainer": {
            "description": "A container a stack declares: its worker as written and the version or commit it pins.",
            "properties": {
              "commit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "worker": {
                "description": "The worker reference as written: `package://…`, `path://…` or other.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "description": "A stack as the Console lists it.",
        "properties": {
          "containers": {
            "items": {
              "$ref": "#/definitions/StackContainer"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "iii": {
            "description": "The iii CLI release it installs.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "source": {
            "description": "`repository` for a stack of `stacks/` (read-only), `local` for one this Console keeps.",
            "type": "string"
          },
          "template": {
            "description": "The iii-hq/templates project it starts from.",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "warnings": {
            "description": "What the executor or Compose may not do as written; never blocking.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "yaml": {
            "type": "string"
          }
        },
        "required": [
          "containers",
          "id",
          "label",
          "source",
          "warnings",
          "yaml"
        ],
        "title": "StackView",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Delete a stack of this Console.",
      "metadata": {
        "contract": {
          "capability": "stack-delete",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::stack-delete",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "stack_id": {
            "type": "string"
          }
        },
        "required": [
          "stack_id"
        ],
        "title": "StackDeleteRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read a stack's YAML as stack-create and stack-update would, without saving it: what it declares (the template's revision apart) and its warnings, or why it would be refused.",
      "metadata": {
        "contract": {
          "capability": "stack-preview",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::stack-preview",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "yaml": {
            "description": "A stack's YAML as a draft holds it; nothing is saved.",
            "type": "string"
          }
        },
        "required": [
          "yaml"
        ],
        "title": "StackPreviewRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "anyOf": [
          {
            "properties": {
              "containers": {
                "items": {
                  "$ref": "#/definitions/StackContainer"
                },
                "type": "array"
              },
              "iii": {
                "description": "The iii CLI release it installs.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "template": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TemplateReference"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The iii-hq/templates project it starts from."
              },
              "warnings": {
                "description": "What the executor or Compose may not do as written; never blocking.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "containers",
              "warnings"
            ],
            "type": "object"
          },
          {
            "properties": {
              "refused": {
                "description": "Why `stack-create` and `stack-update` would refuse it.",
                "type": "string"
              }
            },
            "required": [
              "refused"
            ],
            "type": "object"
          }
        ],
        "definitions": {
          "StackContainer": {
            "description": "A container a stack declares: its worker as written and the version or commit it pins.",
            "properties": {
              "commit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "worker": {
                "description": "The worker reference as written: `package://…`, `path://…` or other.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "TemplateReference": {
            "description": "`template: <id>@<revision>`, split.",
            "properties": {
              "id": {
                "type": "string"
              },
              "revision": {
                "description": "A commit, tag or branch of iii-hq/templates; none follows `main`.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          }
        },
        "description": "What a draft declares, as a saved stack would be read, or why it would be refused.",
        "title": "StackPreview"
      }
    },
    {
      "args_format": null,
      "description": "List the iii-hq/templates projects a stack can start from at a revision (a commit, tag or branch; main when none), each with the workers its worker-compose.yaml declares and the oldest iii it runs on; kept ten minutes.",
      "metadata": {
        "contract": {
          "capability": "stack-templates-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::stack-templates-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "revision": {
            "default": null,
            "description": "A commit, tag or branch of iii-hq/templates; `main` when absent.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "StackTemplatesRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "StackTemplate": {
            "properties": {
              "description": {
                "type": "string"
              },
              "id": {
                "description": "The folder under `iii/`, what a stack's `template:` names.",
                "type": "string"
              },
              "min_iii_version": {
                "description": "The oldest iii release it runs on, when its `template.yaml` says.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "note": {
                "description": "Why it declares no workers.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "workers": {
                "description": "The containers its `worker-compose.yaml` declares with a `worker:`.",
                "items": {
                  "$ref": "#/definitions/TemplateWorker"
                },
                "type": "array"
              }
            },
            "required": [
              "description",
              "id",
              "name",
              "workers"
            ],
            "type": "object"
          },
          "TemplateWorker": {
            "properties": {
              "name": {
                "description": "The container's name.",
                "type": "string"
              },
              "version": {
                "description": "The version it pins, when it pins one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "worker": {
                "description": "The worker as written: `package://…` or `path://…`.",
                "type": "string"
              }
            },
            "required": [
              "name",
              "worker"
            ],
            "type": "object"
          }
        },
        "properties": {
          "ref": {
            "description": "The revision asked for: `main` unless another commit, tag or branch was.",
            "type": "string"
          },
          "repository": {
            "description": "`iii-hq/templates`.",
            "type": "string"
          },
          "revision": {
            "description": "The commit it was at when it was read.",
            "type": "string"
          },
          "templates": {
            "description": "In the order `iii/template.yaml` lists them; a listed folder that does not exist is left out.",
            "items": {
              "$ref": "#/definitions/StackTemplate"
            },
            "type": "array"
          }
        },
        "required": [
          "ref",
          "repository",
          "revision",
          "templates"
        ],
        "title": "StackTemplates",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Change the name or the YAML of a stack of this Console; refused only when the YAML does not parse or declares no containers.",
      "metadata": {
        "contract": {
          "capability": "stack-update",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::stack-update",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "label": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "stack_id": {
            "type": "string"
          },
          "yaml": {
            "default": null,
            "description": "The whole stack as YAML, kept exactly as written.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "stack_id"
        ],
        "title": "StackUpdateRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "StackContainer": {
            "description": "A container a stack declares: its worker as written and the version or commit it pins.",
            "properties": {
              "commit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "worker": {
                "description": "The worker reference as written: `package://…`, `path://…` or other.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "description": "A stack as the Console lists it.",
        "properties": {
          "containers": {
            "items": {
              "$ref": "#/definitions/StackContainer"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "iii": {
            "description": "The iii CLI release it installs.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "source": {
            "description": "`repository` for a stack of `stacks/` (read-only), `local` for one this Console keeps.",
            "type": "string"
          },
          "template": {
            "description": "The iii-hq/templates project it starts from.",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "warnings": {
            "description": "What the executor or Compose may not do as written; never blocking.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "yaml": {
            "type": "string"
          }
        },
        "required": [
          "containers",
          "id",
          "label",
          "source",
          "warnings",
          "yaml"
        ],
        "title": "StackView",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List the stacks an execution can run on: the repository's (read-only) and this Console's, each with its YAML, what it declares and its warnings.",
      "metadata": {
        "contract": {
          "capability": "stacks-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::stacks-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "StackContainer": {
            "description": "A container a stack declares: its worker as written and the version or commit it pins.",
            "properties": {
              "commit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "worker": {
                "description": "The worker reference as written: `package://…`, `path://…` or other.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "StackView": {
            "description": "A stack as the Console lists it.",
            "properties": {
              "containers": {
                "items": {
                  "$ref": "#/definitions/StackContainer"
                },
                "type": "array"
              },
              "id": {
                "type": "string"
              },
              "iii": {
                "description": "The iii CLI release it installs.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "source": {
                "description": "`repository` for a stack of `stacks/` (read-only), `local` for one this Console keeps.",
                "type": "string"
              },
              "template": {
                "description": "The iii-hq/templates project it starts from.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "warnings": {
                "description": "What the executor or Compose may not do as written; never blocking.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "yaml": {
                "type": "string"
              }
            },
            "required": [
              "containers",
              "id",
              "label",
              "source",
              "warnings",
              "yaml"
            ],
            "type": "object"
          }
        },
        "properties": {
          "stacks": {
            "description": "The repository's stacks, then this Console's.",
            "items": {
              "$ref": "#/definitions/StackView"
            },
            "type": "array"
          }
        },
        "required": [
          "stacks"
        ],
        "title": "StacksListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Create a suite of this Console as a copy of another suite, or holding the tests given.",
      "metadata": {
        "contract": {
          "capability": "suite-create",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::suite-create",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "A new suite of this Console: a copy of another suite (`from`) or the tests given (`tests`), exactly one of the two.",
        "properties": {
          "from": {
            "default": null,
            "description": "The suite it starts as a copy of: one of the master plan or of this Console.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "default": "",
            "description": "Empty or absent names a copy after its suite; a suite of tests needs one.",
            "type": "string"
          },
          "repetitions": {
            "default": null,
            "description": "Runs of each test: the copied suite's, else 1.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "technical_retries": {
            "default": null,
            "description": "Technical retries a crash gets: the copied suite's, else 1.",
            "format": "uint8",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "tests": {
            "default": null,
            "description": "The test ids it holds; sequential groups are completed.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "SuiteCreateRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "A suite as the Console lists it.",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "repetitions": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "scenarios": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sha256": {
            "description": "Digest of the snapshot this runner materializes it to; what an execution of it records.",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "description": "`repository` for a suite of the master plan (read-only), `local` for one this Console keeps.",
            "type": "string"
          },
          "technical_retries": {
            "format": "uint8",
            "minimum": 0,
            "type": "integer"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "warnings": {
            "description": "What creating it changed or left out (a completed group, an unknown test); only on the suite `suite-create` returns.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "label",
          "purpose",
          "repetitions",
          "scenarios",
          "source",
          "technical_retries"
        ],
        "title": "SuiteView",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Delete a suite of this Console.",
      "metadata": {
        "contract": {
          "capability": "suite-delete",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::suite-delete",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "suite_id": {
            "type": "string"
          }
        },
        "required": [
          "suite_id"
        ],
        "title": "SuiteDeleteRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": true,
        "title": "Map_of_AnyValue",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Change the name, scenarios, runs or technical retries of a suite of this Console.",
      "metadata": {
        "contract": {
          "capability": "suite-update",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::suite-update",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "label": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "repetitions": {
            "default": null,
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "scenarios": {
            "default": null,
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "suite_id": {
            "type": "string"
          },
          "technical_retries": {
            "default": null,
            "format": "uint8",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "suite_id"
        ],
        "title": "SuiteUpdateRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "A suite as the Console lists it.",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "repetitions": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "scenarios": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sha256": {
            "description": "Digest of the snapshot this runner materializes it to; what an execution of it records.",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "description": "`repository` for a suite of the master plan (read-only), `local` for one this Console keeps.",
            "type": "string"
          },
          "technical_retries": {
            "format": "uint8",
            "minimum": 0,
            "type": "integer"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "warnings": {
            "description": "What creating it changed or left out (a completed group, an unknown test); only on the suite `suite-create` returns.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "label",
          "purpose",
          "repetitions",
          "scenarios",
          "source",
          "technical_retries"
        ],
        "title": "SuiteView",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List the suites an execution can run: the master plan's (read-only) and this Console's.",
      "metadata": {
        "contract": {
          "capability": "suites-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::suites-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "DashboardEmptyRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "SuiteView": {
            "description": "A suite as the Console lists it.",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "purpose": {
                "type": "string"
              },
              "repetitions": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "scenarios": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "sha256": {
                "description": "Digest of the snapshot this runner materializes it to; what an execution of it records.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "source": {
                "description": "`repository` for a suite of the master plan (read-only), `local` for one this Console keeps.",
                "type": "string"
              },
              "technical_retries": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "warnings": {
                "description": "What creating it changed or left out (a completed group, an unknown test); only on the suite `suite-create` returns.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "id",
              "label",
              "purpose",
              "repetitions",
              "scenarios",
              "source",
              "technical_retries"
            ],
            "type": "object"
          }
        },
        "properties": {
          "suites": {
            "description": "The master plan's suites, then this Console's.",
            "items": {
              "$ref": "#/definitions/SuiteView"
            },
            "type": "array"
          }
        },
        "required": [
          "suites"
        ],
        "title": "SuitesListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read local metric history for one test version, with provider-grouped execution models, without comparison actions.",
      "metadata": {
        "contract": {
          "capability": "test-history-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::test-history-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "case_id": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "cursor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "executions": {
            "default": null,
            "description": "Only these executions, at most two: the runs an A × B compares, found wherever they are in the history.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "limit": {
            "default": null,
            "format": "uint16",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "result": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "subject_model": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "subject_provider": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "system_version_id": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "test_id": {
            "default": "",
            "type": "string"
          },
          "test_version": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "TestHistoryRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "AssessmentOutcomeCounts": {
            "properties": {
              "error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "partial": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unavailable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "error",
              "failed",
              "not_evaluated",
              "partial",
              "passed",
              "unavailable"
            ],
            "type": "object"
          },
          "AssessmentSummary": {
            "description": "Objective assessment totals for a set of runs. Every count is derived from deterministic evidence: hard gates, deterministic criteria, and asset validation.",
            "properties": {
              "assessment_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "assessment_outcomes": {
                "$ref": "#/definitions/AssessmentOutcomeCounts"
              },
              "asset_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "asset_validation_outcomes": {
                "$ref": "#/definitions/AssetValidationCounts"
              },
              "evidence_reference_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "system_statuses": {
                "$ref": "#/definitions/StatusCounts"
              }
            },
            "required": [
              "assessment_count",
              "assessment_outcomes",
              "asset_count",
              "asset_validation_outcomes",
              "evidence_reference_count",
              "run_count",
              "system_statuses"
            ],
            "type": "object"
          },
          "AssetValidationCounts": {
            "properties": {
              "invalid": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "malformed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_produced": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "oversized": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "removed_during_cleanup": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unexpected": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unreadable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unsafe_path": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "valid": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "invalid",
              "malformed",
              "not_evaluated",
              "not_produced",
              "oversized",
              "removed_during_cleanup",
              "unexpected",
              "unreadable",
              "unsafe_path",
              "valid"
            ],
            "type": "object"
          },
          "CompletionState": {
            "enum": [
              "completed",
              "task_incomplete",
              "undetermined"
            ],
            "type": "string"
          },
          "HistoryModelGroup": {
            "description": "Models are exposed as provider groups so a model name is never ambiguous when two providers offer the same model identifier.",
            "properties": {
              "models": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "provider": {
                "type": "string"
              }
            },
            "required": [
              "models",
              "provider"
            ],
            "type": "object"
          },
          "HistoryRun": {
            "description": "One run of a history observation. Its status and totals come from the retained projection; `details` from the run's native results.",
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "completion": {
                "$ref": "#/definitions/CompletionState"
              },
              "details": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/RunDetails"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Absent when the run's native results could not be read."
              },
              "duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "run_id": {
                "type": "string"
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              },
              "turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "attempt_id",
              "completion",
              "run_id",
              "status"
            ],
            "type": "object"
          },
          "HistorySeries": {
            "properties": {
              "assessment_profile_sha256": {
                "type": "string"
              },
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "cohort_id": {
                "type": "string"
              },
              "contract_sha256": {
                "type": "string"
              },
              "engine_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "harness_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "mean_score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stack_mode": {
                "type": "string"
              },
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              },
              "system_label": {
                "type": "string"
              },
              "system_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "assessment_profile_sha256",
              "behavior_sha256",
              "case_id",
              "cohort_id",
              "contract_sha256",
              "execution_count",
              "id",
              "run_count",
              "stack_mode",
              "subject_model",
              "subject_provider",
              "system_label"
            ],
            "type": "object"
          },
          "HistorySession": {
            "properties": {
              "depth": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "duration_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "label": {
                "description": "The agent profile the session was spawned with, when the root's transcript names it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_session_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "session_id": {
                "type": "string"
              },
              "turns": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "depth",
              "function_call_errors",
              "function_calls",
              "session_id",
              "turns"
            ],
            "type": "object"
          },
          "HistorySystem": {
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label"
            ],
            "type": "object"
          },
          "RunCriterion": {
            "properties": {
              "awarded": {
                "description": "Absent when nobody evaluated the criterion.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "description": {
                "description": "The criterion as it was worded for this run; absent in older reports.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "gate": {
                "description": "Whether this criterion blocked completion; absent in older reports.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "possible": {
                "format": "double",
                "type": "number"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "possible",
              "reason"
            ],
            "type": "object"
          },
          "RunDetails": {
            "properties": {
              "cache_read_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cache_write_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "calls_by_worker": {
                "description": "Calls of the root session (the only transcript a run keeps), by the worker that serves them, most called first.",
                "items": {
                  "$ref": "#/definitions/WorkerCalls"
                },
                "type": "array"
              },
              "child_sessions": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "criteria": {
                "description": "Every criterion the run was scored on, in contract order.",
                "items": {
                  "$ref": "#/definitions/RunCriterion"
                },
                "type": "array"
              },
              "input_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sessions": {
                "description": "The root session first, each session followed by the ones it spawned.",
                "items": {
                  "$ref": "#/definitions/HistorySession"
                },
                "type": "array"
              }
            },
            "required": [
              "calls_by_worker",
              "child_sessions",
              "criteria",
              "sessions"
            ],
            "type": "object"
          },
          "RunStatus": {
            "enum": [
              "passed",
              "hard_gate_failed",
              "subject_error",
              "resource_limit",
              "infrastructure_error"
            ],
            "type": "string"
          },
          "StatusCounts": {
            "properties": {
              "hard_gate_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infrastructure_error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "resource_limit": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "subject_error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unavailable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "hard_gate_failed",
              "infrastructure_error",
              "passed",
              "resource_limit",
              "subject_error",
              "unavailable"
            ],
            "type": "object"
          },
          "TestObservation": {
            "properties": {
              "agent_profile": {
                "description": "The agent profile the subject ran with, when it had one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "assessment_profile_sha256": {
                "type": "string"
              },
              "assessment_summary": {
                "$ref": "#/definitions/AssessmentSummary"
              },
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "cohort_id": {
                "type": "string"
              },
              "completed_at": {
                "type": "string"
              },
              "contract_sha256": {
                "type": "string"
              },
              "engine_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "evaluated_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_id": {
                "type": "string"
              },
              "execution_label": {
                "description": "That execution's name, when it has one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "harness_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mean_score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "plan_execution_id": {
                "description": "The execution as the Executions list shows it: the plan execution the run belongs to, when it has one. Only a history page carries it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "runs": {
                "items": {
                  "$ref": "#/definitions/HistoryRun"
                },
                "type": "array"
              },
              "scored_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stack_mode": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              },
              "system_label": {
                "type": "string"
              },
              "system_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "assessment_profile_sha256",
              "assessment_summary",
              "behavior_sha256",
              "case_id",
              "cohort_id",
              "completed_at",
              "contract_sha256",
              "execution_id",
              "run_count",
              "runs",
              "scored_runs",
              "stack_mode",
              "status",
              "subject_model",
              "subject_provider",
              "system_label"
            ],
            "type": "object"
          },
          "VersionDescriptor": {
            "properties": {
              "execution_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "last_seen": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "observation_count": {
                "description": "The runs a test history lists: one per execution and case.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "execution_count",
              "observation_count",
              "run_count",
              "version"
            ],
            "type": "object"
          },
          "WorkerCalls": {
            "properties": {
              "calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "worker": {
                "type": "string"
              }
            },
            "required": [
              "calls",
              "worker"
            ],
            "type": "object"
          }
        },
        "properties": {
          "available_versions": {
            "items": {
              "$ref": "#/definitions/VersionDescriptor"
            },
            "type": "array"
          },
          "cases": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "current_version": {
            "description": "The current definition's digest, which may have no executions yet.",
            "type": [
              "string",
              "null"
            ]
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "observations": {
            "items": {
              "$ref": "#/definitions/TestObservation"
            },
            "type": "array"
          },
          "series": {
            "items": {
              "$ref": "#/definitions/HistorySeries"
            },
            "type": "array"
          },
          "subject_models": {
            "items": {
              "$ref": "#/definitions/HistoryModelGroup"
            },
            "type": "array"
          },
          "subjects": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "systems": {
            "items": {
              "$ref": "#/definitions/HistorySystem"
            },
            "type": "array"
          },
          "test_id": {
            "type": "string"
          },
          "test_version": {
            "description": "The definition whose executions are shown (the latest with evidence by default).",
            "type": "string"
          },
          "total": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "available_versions",
          "cases",
          "observations",
          "series",
          "subject_models",
          "subjects",
          "systems",
          "test_id",
          "test_version",
          "total"
        ],
        "title": "TestHistoryResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read one test version across two immutable evaluated-system versions.",
      "metadata": {
        "contract": {
          "capability": "test-version-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::test-version-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "cohort_id": {
            "type": "string"
          },
          "from_version_id": {
            "type": "string"
          },
          "test_id": {
            "type": "string"
          },
          "test_version": {
            "type": "string"
          },
          "to_version_id": {
            "type": "string"
          }
        },
        "required": [
          "cohort_id",
          "from_version_id",
          "test_id",
          "test_version",
          "to_version_id"
        ],
        "title": "TestVersionGetRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "AssessmentOutcomeCounts": {
            "properties": {
              "error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "partial": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unavailable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "error",
              "failed",
              "not_evaluated",
              "partial",
              "passed",
              "unavailable"
            ],
            "type": "object"
          },
          "AssessmentSummary": {
            "description": "Objective assessment totals for a set of runs. Every count is derived from deterministic evidence: hard gates, deterministic criteria, and asset validation.",
            "properties": {
              "assessment_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "assessment_outcomes": {
                "$ref": "#/definitions/AssessmentOutcomeCounts"
              },
              "asset_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "asset_validation_outcomes": {
                "$ref": "#/definitions/AssetValidationCounts"
              },
              "evidence_reference_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "system_statuses": {
                "$ref": "#/definitions/StatusCounts"
              }
            },
            "required": [
              "assessment_count",
              "assessment_outcomes",
              "asset_count",
              "asset_validation_outcomes",
              "evidence_reference_count",
              "run_count",
              "system_statuses"
            ],
            "type": "object"
          },
          "AssetValidationCounts": {
            "properties": {
              "invalid": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "malformed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_produced": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "oversized": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "removed_during_cleanup": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unexpected": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unreadable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unsafe_path": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "valid": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "invalid",
              "malformed",
              "not_evaluated",
              "not_produced",
              "oversized",
              "removed_during_cleanup",
              "unexpected",
              "unreadable",
              "unsafe_path",
              "valid"
            ],
            "type": "object"
          },
          "CompletionState": {
            "enum": [
              "completed",
              "task_incomplete",
              "undetermined"
            ],
            "type": "string"
          },
          "HistoryRun": {
            "description": "One run of a history observation. Its status and totals come from the retained projection; `details` from the run's native results.",
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "completion": {
                "$ref": "#/definitions/CompletionState"
              },
              "details": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/RunDetails"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Absent when the run's native results could not be read."
              },
              "duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "run_id": {
                "type": "string"
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              },
              "turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "attempt_id",
              "completion",
              "run_id",
              "status"
            ],
            "type": "object"
          },
          "HistorySession": {
            "properties": {
              "depth": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "duration_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "label": {
                "description": "The agent profile the session was spawned with, when the root's transcript names it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_session_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "session_id": {
                "type": "string"
              },
              "turns": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "depth",
              "function_call_errors",
              "function_calls",
              "session_id",
              "turns"
            ],
            "type": "object"
          },
          "MetricSamples": {
            "properties": {
              "cost_usd": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "duration_seconds": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "score": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "tokens": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "turns": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "cost_usd",
              "duration_seconds",
              "score",
              "tokens",
              "turns"
            ],
            "type": "object"
          },
          "OutcomeCounts": {
            "properties": {
              "hard_gate_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infra_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "technical_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "hard_gate_failed",
              "infra_failed",
              "passed",
              "technical_failed"
            ],
            "type": "object"
          },
          "RunCriterion": {
            "properties": {
              "awarded": {
                "description": "Absent when nobody evaluated the criterion.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "description": {
                "description": "The criterion as it was worded for this run; absent in older reports.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "gate": {
                "description": "Whether this criterion blocked completion; absent in older reports.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "possible": {
                "format": "double",
                "type": "number"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "possible",
              "reason"
            ],
            "type": "object"
          },
          "RunDetails": {
            "properties": {
              "cache_read_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cache_write_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "calls_by_worker": {
                "description": "Calls of the root session (the only transcript a run keeps), by the worker that serves them, most called first.",
                "items": {
                  "$ref": "#/definitions/WorkerCalls"
                },
                "type": "array"
              },
              "child_sessions": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "criteria": {
                "description": "Every criterion the run was scored on, in contract order.",
                "items": {
                  "$ref": "#/definitions/RunCriterion"
                },
                "type": "array"
              },
              "input_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sessions": {
                "description": "The root session first, each session followed by the ones it spawned.",
                "items": {
                  "$ref": "#/definitions/HistorySession"
                },
                "type": "array"
              }
            },
            "required": [
              "calls_by_worker",
              "child_sessions",
              "criteria",
              "sessions"
            ],
            "type": "object"
          },
          "RunStatus": {
            "enum": [
              "passed",
              "hard_gate_failed",
              "subject_error",
              "resource_limit",
              "infrastructure_error"
            ],
            "type": "string"
          },
          "StatusCounts": {
            "properties": {
              "hard_gate_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infrastructure_error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "resource_limit": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "subject_error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unavailable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "hard_gate_failed",
              "infrastructure_error",
              "passed",
              "resource_limit",
              "subject_error",
              "unavailable"
            ],
            "type": "object"
          },
          "TestDelta": {
            "properties": {
              "cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "TestObservation": {
            "properties": {
              "agent_profile": {
                "description": "The agent profile the subject ran with, when it had one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "assessment_profile_sha256": {
                "type": "string"
              },
              "assessment_summary": {
                "$ref": "#/definitions/AssessmentSummary"
              },
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "cohort_id": {
                "type": "string"
              },
              "completed_at": {
                "type": "string"
              },
              "contract_sha256": {
                "type": "string"
              },
              "engine_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "evaluated_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_id": {
                "type": "string"
              },
              "execution_label": {
                "description": "That execution's name, when it has one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "harness_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mean_score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "plan_execution_id": {
                "description": "The execution as the Executions list shows it: the plan execution the run belongs to, when it has one. Only a history page carries it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "runs": {
                "items": {
                  "$ref": "#/definitions/HistoryRun"
                },
                "type": "array"
              },
              "scored_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stack_mode": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              },
              "system_label": {
                "type": "string"
              },
              "system_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "assessment_profile_sha256",
              "assessment_summary",
              "behavior_sha256",
              "case_id",
              "cohort_id",
              "completed_at",
              "contract_sha256",
              "execution_id",
              "run_count",
              "runs",
              "scored_runs",
              "stack_mode",
              "status",
              "subject_model",
              "subject_provider",
              "system_label"
            ],
            "type": "object"
          },
          "TestSideSummary": {
            "properties": {
              "assessment_summary": {
                "$ref": "#/definitions/AssessmentSummary"
              },
              "case_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "evaluated_version_id": {
                "type": "string"
              },
              "execution_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "mean_score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "outcomes": {
                "$ref": "#/definitions/OutcomeCounts"
              },
              "pass_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "samples": {
                "$ref": "#/definitions/MetricSamples"
              },
              "scored_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "total_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "assessment_summary",
              "case_count",
              "evaluated_version_id",
              "execution_count",
              "outcomes",
              "samples",
              "scored_runs",
              "total_runs"
            ],
            "type": "object"
          },
          "WorkerCalls": {
            "properties": {
              "calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "worker": {
                "type": "string"
              }
            },
            "required": [
              "calls",
              "worker"
            ],
            "type": "object"
          }
        },
        "properties": {
          "compatibility": {
            "type": "string"
          },
          "compatibility_reasons": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "delta": {
            "$ref": "#/definitions/TestDelta"
          },
          "from": {
            "anyOf": [
              {
                "$ref": "#/definitions/TestSideSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "from_observations": {
            "items": {
              "$ref": "#/definitions/TestObservation"
            },
            "type": "array"
          },
          "test_id": {
            "type": "string"
          },
          "test_version": {
            "type": "string"
          },
          "to": {
            "anyOf": [
              {
                "$ref": "#/definitions/TestSideSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "to_observations": {
            "items": {
              "$ref": "#/definitions/TestObservation"
            },
            "type": "array"
          }
        },
        "required": [
          "compatibility",
          "compatibility_reasons",
          "delta",
          "from_observations",
          "test_id",
          "test_version",
          "to_observations"
        ],
        "title": "TestVersionResult",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List the versioned test catalog with compact A/B results and stable pagination.",
      "metadata": {
        "contract": {
          "capability": "tests-list",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::tests-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "cohort_id": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "cursor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "from_version_id": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "limit": {
            "default": null,
            "format": "uint16",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "query": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "to_version_id": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "TestsListRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Area": {
            "description": "The product capability a test protects; exactly one per test, so a report by capability never counts a test twice.",
            "enum": [
              "core-loop",
              "data-safety",
              "tool-adaptation",
              "scheduling",
              "coding",
              "coordination",
              "self-repair",
              "long-context",
              "security",
              "app-building",
              "verification",
              "memory"
            ],
            "type": "string"
          },
          "AssessmentKind": {
            "enum": [
              "required_check",
              "signal",
              "asset_validation"
            ],
            "type": "string"
          },
          "AssessmentOutcomeCounts": {
            "properties": {
              "error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "partial": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unavailable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "error",
              "failed",
              "not_evaluated",
              "partial",
              "passed",
              "unavailable"
            ],
            "type": "object"
          },
          "AssessmentPolicy": {
            "enum": [
              "hard_gate",
              "advisory"
            ],
            "type": "string"
          },
          "AssessmentSummary": {
            "description": "Objective assessment totals for a set of runs. Every count is derived from deterministic evidence: hard gates, deterministic criteria, and asset validation.",
            "properties": {
              "assessment_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "assessment_outcomes": {
                "$ref": "#/definitions/AssessmentOutcomeCounts"
              },
              "asset_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "asset_validation_outcomes": {
                "$ref": "#/definitions/AssetValidationCounts"
              },
              "evidence_reference_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "system_statuses": {
                "$ref": "#/definitions/StatusCounts"
              }
            },
            "required": [
              "assessment_count",
              "assessment_outcomes",
              "asset_count",
              "asset_validation_outcomes",
              "evidence_reference_count",
              "run_count",
              "system_statuses"
            ],
            "type": "object"
          },
          "AssetValidationCounts": {
            "properties": {
              "invalid": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "malformed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_evaluated": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "not_produced": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "oversized": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "removed_during_cleanup": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unexpected": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unreadable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unsafe_path": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "valid": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "invalid",
              "malformed",
              "not_evaluated",
              "not_produced",
              "oversized",
              "removed_during_cleanup",
              "unexpected",
              "unreadable",
              "unsafe_path",
              "valid"
            ],
            "type": "object"
          },
          "CalibrationProjection": {
            "properties": {
              "compatible_sample_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "maturity": {
                "type": "string"
              }
            },
            "required": [
              "compatible_sample_count",
              "maturity"
            ],
            "type": "object"
          },
          "Class": {
            "description": "Memory cases only: whether the answer returns a stored value as it was stored, or builds on stored facts or rules.",
            "enum": [
              "lookup",
              "synthesis"
            ],
            "type": "string"
          },
          "CompletionState": {
            "enum": [
              "completed",
              "task_incomplete",
              "undetermined"
            ],
            "type": "string"
          },
          "Discipline": {
            "description": "The kind of software the subject delivers: a question about the model and the agent, not about iii. `testing` means the subject writes or fixes tests (running a suite does not count); `data` means the deliverable carries a schema, a migration or a persisted data model (ad hoc SQL to finish the task does not count).",
            "enum": [
              "frontend",
              "backend",
              "data",
              "infra",
              "testing"
            ],
            "type": "string"
          },
          "EvaluationDimension": {
            "enum": [
              "deliverable",
              "structural_integrity",
              "efficiency",
              "robustness",
              "e2e_infrastructure"
            ],
            "type": "string"
          },
          "ExecutionPolicy": {
            "properties": {
              "max_output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_total_tokens": {
                "description": "Shared Harness token budget. `None` leaves the Harness budget unbounded for this scenario.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_turns": {
                "description": "Subject turn ceiling. `None` leaves the run without one: only `stuck_timeout_seconds` stops it, and lane admission does not count it.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_validation_retries": {
                "description": "Optional per-session cap for post-turn validation denials. `None` preserves the Harness-configured default.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stuck_timeout_seconds": {
                "description": "Stop only after this many seconds without observable useful progress. Large scenarios have no fixed wall-clock deadline.",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "stuck_timeout_seconds"
            ],
            "type": "object"
          },
          "ExecutionRealism": {
            "enum": [
              "synthetic",
              "realistic_simulator",
              "frozen_real_artifact"
            ],
            "type": "string"
          },
          "HistoryRun": {
            "description": "One run of a history observation. Its status and totals come from the retained projection; `details` from the run's native results.",
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "completion": {
                "$ref": "#/definitions/CompletionState"
              },
              "details": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/RunDetails"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Absent when the run's native results could not be read."
              },
              "duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "run_id": {
                "type": "string"
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              },
              "turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "attempt_id",
              "completion",
              "run_id",
              "status"
            ],
            "type": "object"
          },
          "HistorySession": {
            "properties": {
              "depth": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "duration_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "label": {
                "description": "The agent profile the session was spawned with, when the root's transcript names it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_session_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "session_id": {
                "type": "string"
              },
              "turns": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "depth",
              "function_call_errors",
              "function_calls",
              "session_id",
              "turns"
            ],
            "type": "object"
          },
          "HumanHorizon": {
            "properties": {
              "basis": {
                "allOf": [
                  {
                    "$ref": "#/definitions/HumanHorizonBasis"
                  }
                ],
                "default": "unknown"
              },
              "max_minutes": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "min_minutes": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "HumanHorizonBasis": {
            "enum": [
              "unknown",
              "author_estimate",
              "measured"
            ],
            "type": "string"
          },
          "LastRun": {
            "properties": {
              "at": {
                "description": "When its execution completed.",
                "type": "string"
              },
              "completion": {
                "$ref": "#/definitions/CompletionState"
              },
              "definition": {
                "$ref": "#/definitions/RunDefinition"
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              }
            },
            "required": [
              "at",
              "completion",
              "definition",
              "status"
            ],
            "type": "object"
          },
          "MetricSamples": {
            "properties": {
              "cost_usd": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "duration_seconds": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "score": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "tokens": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "turns": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "cost_usd",
              "duration_seconds",
              "score",
              "tokens",
              "turns"
            ],
            "type": "object"
          },
          "OutcomeCounts": {
            "properties": {
              "hard_gate_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infra_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "technical_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "hard_gate_failed",
              "infra_failed",
              "passed",
              "technical_failed"
            ],
            "type": "object"
          },
          "RunCriterion": {
            "properties": {
              "awarded": {
                "description": "Absent when nobody evaluated the criterion.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "description": {
                "description": "The criterion as it was worded for this run; absent in older reports.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "gate": {
                "description": "Whether this criterion blocked completion; absent in older reports.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "possible": {
                "format": "double",
                "type": "number"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "possible",
              "reason"
            ],
            "type": "object"
          },
          "RunDefinition": {
            "description": "Which definition a run evaluated, next to the test's current one.",
            "oneOf": [
              {
                "description": "The test's current definition.",
                "enum": [
                  "current"
                ],
                "type": "string"
              },
              {
                "description": "An earlier definition (or the last one of a retired test).",
                "enum": [
                  "previous"
                ],
                "type": "string"
              }
            ]
          },
          "RunDetails": {
            "properties": {
              "cache_read_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cache_write_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "calls_by_worker": {
                "description": "Calls of the root session (the only transcript a run keeps), by the worker that serves them, most called first.",
                "items": {
                  "$ref": "#/definitions/WorkerCalls"
                },
                "type": "array"
              },
              "child_sessions": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "criteria": {
                "description": "Every criterion the run was scored on, in contract order.",
                "items": {
                  "$ref": "#/definitions/RunCriterion"
                },
                "type": "array"
              },
              "input_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sessions": {
                "description": "The root session first, each session followed by the ones it spawned.",
                "items": {
                  "$ref": "#/definitions/HistorySession"
                },
                "type": "array"
              }
            },
            "required": [
              "calls_by_worker",
              "child_sessions",
              "criteria",
              "sessions"
            ],
            "type": "object"
          },
          "RunStatus": {
            "enum": [
              "passed",
              "hard_gate_failed",
              "subject_error",
              "resource_limit",
              "infrastructure_error"
            ],
            "type": "string"
          },
          "ScenarioCharacterization": {
            "properties": {
              "human_horizon": {
                "allOf": [
                  {
                    "$ref": "#/definitions/HumanHorizon"
                  }
                ],
                "default": {
                  "basis": "unknown"
                }
              },
              "realism": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ScenarioRealism"
                  }
                ],
                "default": {
                  "execution": "synthetic",
                  "shadow": "none"
                }
              }
            },
            "type": "object"
          },
          "ScenarioRealism": {
            "properties": {
              "execution": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ExecutionRealism"
                  }
                ],
                "default": "synthetic"
              },
              "shadow": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ShadowMode"
                  }
                ],
                "default": "none"
              }
            },
            "type": "object"
          },
          "ShadowMode": {
            "enum": [
              "none",
              "read_only"
            ],
            "type": "string"
          },
          "StatusCounts": {
            "properties": {
              "hard_gate_failed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "infrastructure_error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "passed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "resource_limit": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "subject_error": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "unavailable": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "hard_gate_failed",
              "infrastructure_error",
              "passed",
              "resource_limit",
              "subject_error",
              "unavailable"
            ],
            "type": "object"
          },
          "TestCatalogRow": {
            "properties": {
              "available_versions": {
                "items": {
                  "$ref": "#/definitions/VersionDescriptor"
                },
                "type": "array"
              },
              "calibration": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/CalibrationProjection"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "characterization": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ScenarioCharacterization"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_run": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/LastRun"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The most recent retained run, on any definition."
              },
              "lifecycle": {
                "type": "string"
              },
              "recent_scores": {
                "description": "The scores of the last runs, oldest first; null where a run has none.",
                "items": {
                  "format": "double",
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "type": "array"
              },
              "result": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TestVersionResult"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "runs_current": {
                "description": "Runs retained on the current definition.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "runs_total": {
                "description": "Runs retained on every definition.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "selected_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "spec": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TestSpecProjection"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "test_id": {
                "type": "string"
              }
            },
            "required": [
              "available_versions",
              "lifecycle",
              "recent_scores",
              "runs_current",
              "runs_total",
              "test_id"
            ],
            "type": "object"
          },
          "TestCriterionProjection": {
            "properties": {
              "description": {
                "type": "string"
              },
              "dimension": {
                "$ref": "#/definitions/EvaluationDimension"
              },
              "gate": {
                "type": "boolean"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "$ref": "#/definitions/AssessmentKind"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "policy": {
                "$ref": "#/definitions/AssessmentPolicy"
              },
              "weight": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "description",
              "dimension",
              "gate",
              "id",
              "kind",
              "policy",
              "weight"
            ],
            "type": "object"
          },
          "TestDelta": {
            "properties": {
              "cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "TestObservation": {
            "properties": {
              "agent_profile": {
                "description": "The agent profile the subject ran with, when it had one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "assessment_profile_sha256": {
                "type": "string"
              },
              "assessment_summary": {
                "$ref": "#/definitions/AssessmentSummary"
              },
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "cohort_id": {
                "type": "string"
              },
              "completed_at": {
                "type": "string"
              },
              "contract_sha256": {
                "type": "string"
              },
              "engine_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "evaluated_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_id": {
                "type": "string"
              },
              "execution_label": {
                "description": "That execution's name, when it has one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "harness_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mean_score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_turns": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "plan_execution_id": {
                "description": "The execution as the Executions list shows it: the plan execution the run belongs to, when it has one. Only a history page carries it.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "runs": {
                "items": {
                  "$ref": "#/definitions/HistoryRun"
                },
                "type": "array"
              },
              "scored_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stack_mode": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              },
              "system_label": {
                "type": "string"
              },
              "system_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "assessment_profile_sha256",
              "assessment_summary",
              "behavior_sha256",
              "case_id",
              "cohort_id",
              "completed_at",
              "contract_sha256",
              "execution_id",
              "run_count",
              "runs",
              "scored_runs",
              "stack_mode",
              "status",
              "subject_model",
              "subject_provider",
              "system_label"
            ],
            "type": "object"
          },
          "TestSideSummary": {
            "properties": {
              "assessment_summary": {
                "$ref": "#/definitions/AssessmentSummary"
              },
              "case_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "evaluated_version_id": {
                "type": "string"
              },
              "execution_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "mean_score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_duration_seconds": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_tokens": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "outcomes": {
                "$ref": "#/definitions/OutcomeCounts"
              },
              "pass_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "samples": {
                "$ref": "#/definitions/MetricSamples"
              },
              "scored_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "total_runs": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "assessment_summary",
              "case_count",
              "evaluated_version_id",
              "execution_count",
              "outcomes",
              "samples",
              "scored_runs",
              "total_runs"
            ],
            "type": "object"
          },
          "TestSpecProjection": {
            "description": "The scenario definition as a reader needs it: what the subject is asked to do, how the result is scored, and the limits it runs under. Projected from the materialized `ScenarioSpec` of the test's current version, so it always describes the contract the dashboard is showing.",
            "properties": {
              "area": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Area"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "class": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Class"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A memory case that scores an answer; none for every other test."
              },
              "criteria": {
                "items": {
                  "$ref": "#/definitions/TestCriterionProjection"
                },
                "type": "array"
              },
              "denied_functions": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "disciplines": {
                "items": {
                  "$ref": "#/definitions/Discipline"
                },
                "type": "array"
              },
              "execution": {
                "$ref": "#/definitions/ExecutionPolicy"
              },
              "prompt": {
                "description": "The prompt as materialized for a representative run: run-scoped paths resolve against a catalog namespace, never a real execution.",
                "type": "string"
              },
              "protects": {
                "description": "What the test protects and what breaks when it fails.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "summary": {
                "description": "The task in plain words; absent when the scenario states none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "description": "Human-readable test name; absent on responses from older runners.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "workers": {
                "description": "The iii workers the test protects; empty when it protects the harness alone.",
                "items": {
                  "$ref": "#/definitions/Worker"
                },
                "type": "array"
              }
            },
            "required": [
              "criteria",
              "denied_functions",
              "execution",
              "prompt"
            ],
            "type": "object"
          },
          "TestVersionResult": {
            "properties": {
              "compatibility": {
                "type": "string"
              },
              "compatibility_reasons": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "delta": {
                "$ref": "#/definitions/TestDelta"
              },
              "from": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TestSideSummary"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "from_observations": {
                "items": {
                  "$ref": "#/definitions/TestObservation"
                },
                "type": "array"
              },
              "test_id": {
                "type": "string"
              },
              "test_version": {
                "type": "string"
              },
              "to": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TestSideSummary"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "to_observations": {
                "items": {
                  "$ref": "#/definitions/TestObservation"
                },
                "type": "array"
              }
            },
            "required": [
              "compatibility",
              "compatibility_reasons",
              "delta",
              "from_observations",
              "test_id",
              "test_version",
              "to_observations"
            ],
            "type": "object"
          },
          "VersionDescriptor": {
            "properties": {
              "execution_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "last_seen": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "observation_count": {
                "description": "The runs a test history lists: one per execution and case.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "run_count": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "execution_count",
              "observation_count",
              "run_count",
              "version"
            ],
            "type": "object"
          },
          "Worker": {
            "description": "A product worker of the stack, named as in the Registry. `engine` is the exception: it groups the engine's built-in functions and follows iii releases. harness, harness-e2e, fp and provider-* are left out.",
            "enum": [
              "ade",
              "approval-gate",
              "auth",
              "browser",
              "canvas",
              "compose",
              "context-manager",
              "cron",
              "database",
              "engine",
              "http",
              "ide",
              "iii-directory",
              "judge",
              "llm-router",
              "memory",
              "pubsub",
              "queue",
              "rbac-proxy",
              "secrets",
              "session-manager",
              "state",
              "storage",
              "stream"
            ],
            "type": "string"
          },
          "WorkerCalls": {
            "properties": {
              "calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "worker": {
                "type": "string"
              }
            },
            "required": [
              "calls",
              "worker"
            ],
            "type": "object"
          }
        },
        "properties": {
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "revision": {
            "type": "string"
          },
          "rows": {
            "items": {
              "$ref": "#/definitions/TestCatalogRow"
            },
            "type": "array"
          },
          "total": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "revision",
          "rows",
          "total"
        ],
        "title": "TestsListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read how one suite moves over time on one provider, model and profile (or `any` model or profile, on one line): every series, the stacks of the selected one, and a point per execution measured over its technically valid runs.",
      "metadata": {
        "contract": {
          "capability": "trends-get",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::trends-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "model": {
            "default": null,
            "description": "A model, or `any`: the suite's executions on every model, one line.",
            "type": [
              "string",
              "null"
            ]
          },
          "profile": {
            "default": null,
            "description": "Null or empty: no profile; `any`: every profile, one line; absent: the latest series that fits the rest.",
            "type": [
              "string",
              "null"
            ]
          },
          "provider": {
            "default": null,
            "description": "Left open (with the provider) when the model is `any`.",
            "type": [
              "string",
              "null"
            ]
          },
          "since": {
            "description": "Only executions started at or after this RFC 3339 instant; the series and the stacks' workers are still read over all time.",
            "type": [
              "string",
              "null"
            ]
          },
          "stack": {
            "default": null,
            "description": "A stack name, `not_recorded` or `any`; absent, or one the series never ran on: `any`.",
            "type": [
              "string",
              "null"
            ]
          },
          "suite": {
            "default": null,
            "description": "A suite id, or the sha256 of an unsaved suite.",
            "type": [
              "string",
              "null"
            ]
          },
          "until": {
            "description": "Only executions started at or before this RFC 3339 instant.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "TrendsRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "StackCount": {
            "properties": {
              "executions": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "executions",
              "name"
            ],
            "type": "object"
          },
          "TrendMeasures": {
            "properties": {
              "cache_read_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "cache_write_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "compactions_mean": {
                "description": "Root-session compactions per run.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "completed": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "cost_usd_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "duration_ms_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_calls_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "input_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "output_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "peak_context_fill_mean": {
                "description": "The largest root prompt over the window the Harness fit it into, per run.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "planned": {
                "description": "The runs planned (tests × runs per test), else the runs observed: what `completed` counts.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "prefix_divergences_mean": {
                "description": "Prefix rewrites no compaction explains, per run.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "reasoning_tokens_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "samples": {
                "additionalProperties": {
                  "format": "uint",
                  "minimum": 0,
                  "type": "integer"
                },
                "description": "The counted runs behind each mean, by its name: a run without the value is left out of it, so a group weighs each mean by these.",
                "type": "object"
              },
              "score_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "technical_retries_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "turns_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "validation_retries_mean": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "completed",
              "planned",
              "samples"
            ],
            "type": "object"
          },
          "TrendPoint": {
            "properties": {
              "counted": {
                "description": "Technically valid runs.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "engine": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution_id": {
                "type": "string"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "measures": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TrendMeasures"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null when nothing counted."
              },
              "model": {
                "type": "string"
              },
              "planned": {
                "items": {
                  "type": "string"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "profile": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider": {
                "description": "Its own model and profile: under `any` they differ between points.",
                "type": "string"
              },
              "reason": {
                "description": "When nothing counted: the execution's error, else why.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "release": {
                "description": "The Harness release as one plain semver, without a leading `v`; null for a commit (`@sha7`), joined builds (`a, b`) or none recorded.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "runs": {
                "description": "Runs observed.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "source": {
                "$ref": "#/definitions/TrendSource"
              },
              "stack": {
                "$ref": "#/definitions/TrendStack"
              },
              "started_at": {
                "type": "string"
              },
              "tests": {
                "description": "Planned tests first, in plan order, then any other that ran.",
                "items": {
                  "$ref": "#/definitions/TrendTest"
                },
                "type": "array"
              },
              "workers": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Identity per worker, runner and engine left out; null: not recorded.",
                "type": [
                  "object",
                  "null"
                ]
              }
            },
            "required": [
              "counted",
              "execution_id",
              "model",
              "provider",
              "runs",
              "source",
              "stack",
              "started_at",
              "tests"
            ],
            "type": "object"
          },
          "TrendRole": {
            "description": "Who ran an execution, and whether it speaks for a release.",
            "oneOf": [
              {
                "description": "A GitHub run Release Control started: it validates a release.",
                "enum": [
                  "release_control"
                ],
                "type": "string"
              },
              {
                "description": "Any other GitHub run (a pull request, a manual dispatch, a schedule).",
                "enum": [
                  "ci_other"
                ],
                "type": "string"
              },
              {
                "description": "Run by this worker on the machine.",
                "enum": [
                  "local"
                ],
                "type": "string"
              },
              {
                "description": "Run in Docker by this worker.",
                "enum": [
                  "docker"
                ],
                "type": "string"
              }
            ]
          },
          "TrendSeries": {
            "properties": {
              "executions": {
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "latest_at": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "profile": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider": {
                "type": "string"
              },
              "suite": {
                "type": "string"
              },
              "suite_label": {
                "type": "string"
              },
              "where": {
                "items": {
                  "$ref": "#/definitions/Where"
                },
                "type": "array"
              }
            },
            "required": [
              "executions",
              "latest_at",
              "model",
              "provider",
              "suite",
              "suite_label",
              "where"
            ],
            "type": "object"
          },
          "TrendSeriesKey": {
            "properties": {
              "model": {
                "type": "string"
              },
              "profile": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider": {
                "type": "string"
              },
              "suite": {
                "type": "string"
              }
            },
            "required": [
              "model",
              "provider",
              "suite"
            ],
            "type": "object"
          },
          "TrendSource": {
            "properties": {
              "kind": {
                "description": "`local`, `docker` or `github`.",
                "type": "string"
              },
              "release_control_execution_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "role": {
                "$ref": "#/definitions/TrendRole"
              },
              "run_attempt": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "run_id": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "kind",
              "role"
            ],
            "type": "object"
          },
          "TrendStack": {
            "properties": {
              "matched_by_workers": {
                "description": "Not recorded, joined by its workers' names.",
                "type": "boolean"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "matched_by_workers"
            ],
            "type": "object"
          },
          "TrendTest": {
            "properties": {
              "behavior_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "score": {
                "description": "Mean of the counted runs' scores.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "state": {
                "description": "`scored`, `no_score`, `technical_invalid` or `not_run`.",
                "type": "string"
              }
            },
            "required": [
              "id",
              "state"
            ],
            "type": "object"
          },
          "Where": {
            "description": "Where an execution runs: on this harness, in Docker from this worker, or on GitHub (dispatched from here, or imported).",
            "enum": [
              "harness",
              "docker",
              "github"
            ],
            "type": "string"
          }
        },
        "properties": {
          "points": {
            "description": "Oldest first.",
            "items": {
              "$ref": "#/definitions/TrendPoint"
            },
            "type": "array"
          },
          "selected": {
            "anyOf": [
              {
                "$ref": "#/definitions/TrendSeriesKey"
              },
              {
                "type": "null"
              }
            ],
            "description": "The request's series, else the one with the latest execution; its provider and model, or its profile, are `any` when the request left them open."
          },
          "series": {
            "description": "Every series, latest execution first.",
            "items": {
              "$ref": "#/definitions/TrendSeries"
            },
            "type": "array"
          },
          "stack": {
            "description": "The stack filter applied.",
            "type": "string"
          },
          "stacks": {
            "description": "Of the selected series, then `not_recorded` (if any) and `any`.",
            "items": {
              "$ref": "#/definitions/StackCount"
            },
            "type": "array"
          }
        },
        "required": [
          "points",
          "series",
          "stack",
          "stacks"
        ],
        "title": "TrendsResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Link to what changed between two builds of iii, the runner or a worker (release tags or commits) on GitHub, with how many commits apart they are when gh can tell.",
      "metadata": {
        "contract": {
          "capability": "version-compare",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::version-compare",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "base": {
            "description": "A version, or a `@sha7` identity (`*` marks uncommitted changes).",
            "type": "string"
          },
          "head": {
            "type": "string"
          },
          "name": {
            "description": "`iii`, `harness-e2e` or a worker of iii-hq/workers.",
            "type": "string"
          }
        },
        "required": [
          "base",
          "head",
          "name"
        ],
        "title": "VersionCompareRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "total_commits": {
            "description": "Null when `gh` is missing or GitHub answers an error.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "VersionCompareResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "What the iii registry resolves a worker to: its newest release and the workers it brings, or the registry's error; kept ten minutes.",
      "metadata": {
        "contract": {
          "capability": "worker-resolve",
          "name": "harness-e2e-dashboard"
        },
        "internal": true
      },
      "name": "e2e::dashboard::worker-resolve",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "worker": {
            "description": "A worker's name in the iii registry, e.g. `harness`.",
            "type": "string"
          }
        },
        "required": [
          "worker"
        ],
        "title": "WorkerResolveRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "anyOf": [
          {
            "properties": {
              "dependencies": {
                "description": "Every worker its graph brings, engine built-ins left out.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "description": "Its newest release.",
                "type": "string"
              }
            },
            "required": [
              "dependencies",
              "name",
              "version"
            ],
            "type": "object"
          },
          {
            "properties": {
              "error": {
                "$ref": "#/definitions/RegistryRefusal"
              }
            },
            "required": [
              "error"
            ],
            "type": "object"
          }
        ],
        "definitions": {
          "RegistryRefusal": {
            "properties": {
              "code": {
                "description": "The registry's code, e.g. `worker_not_found`.",
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          }
        },
        "description": "A worker's newest release and what it brings, or why the registry has none.",
        "title": "WorkerResolution"
      }
    },
    {
      "args_format": null,
      "description": "Get the immutable result and manifest of an E2E execution.",
      "metadata": {
        "contract": {
          "capabilities": [
            "results-get"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::results-get",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ActivationPolicy": {
            "oneOf": [
              {
                "properties": {
                  "policy": {
                    "enum": [
                      "always"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "policy"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "conditions": {
                    "items": {
                      "$ref": "#/definitions/BooleanCondition"
                    },
                    "type": "array"
                  },
                  "policy": {
                    "enum": [
                      "all"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "conditions",
                  "policy"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "conditions": {
                    "items": {
                      "$ref": "#/definitions/BooleanCondition"
                    },
                    "type": "array"
                  },
                  "policy": {
                    "enum": [
                      "any"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "conditions",
                  "policy"
                ],
                "type": "object"
              }
            ]
          },
          "AgentProfileArtifact": {
            "properties": {
              "configuration_sha256": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "unavailable_functions": {
                "description": "Functions the profile preloads that this stack does not register. The Harness skips them, as it does in any project without their worker; listed so a report says the session ran without them.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "configuration_sha256",
              "id"
            ],
            "type": "object"
          },
          "Area": {
            "description": "The product capability a test protects; exactly one per test, so a report by capability never counts a test twice.",
            "enum": [
              "core-loop",
              "data-safety",
              "tool-adaptation",
              "scheduling",
              "coding",
              "coordination",
              "self-repair",
              "long-context",
              "security",
              "app-building",
              "verification",
              "memory"
            ],
            "type": "string"
          },
          "ArtifactExpectation": {
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "max_size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "media_type": {
                "type": "string"
              },
              "schema": true
            },
            "required": [
              "id",
              "kind",
              "max_size_bytes",
              "media_type",
              "schema"
            ],
            "type": "object"
          },
          "ArtifactReference": {
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "id",
              "kind",
              "media_type",
              "path",
              "sha256",
              "size_bytes"
            ],
            "type": "object"
          },
          "AssessmentContract": {
            "additionalProperties": false,
            "properties": {
              "runs": {
                "items": {
                  "$ref": "#/definitions/RunAssessmentContract"
                },
                "type": "array"
              }
            },
            "required": [
              "runs"
            ],
            "type": "object"
          },
          "AssessmentKind": {
            "enum": [
              "required_check",
              "signal",
              "asset_validation"
            ],
            "type": "string"
          },
          "AssessmentOutcome": {
            "enum": [
              "passed",
              "failed",
              "partial",
              "not_evaluated",
              "unavailable",
              "error"
            ],
            "type": "string"
          },
          "AssessmentPolicy": {
            "enum": [
              "hard_gate",
              "advisory"
            ],
            "type": "string"
          },
          "AssessmentResult": {
            "properties": {
              "criterion_id": {
                "type": "string"
              },
              "dimension": {
                "$ref": "#/definitions/EvaluationDimension"
              },
              "evidence": {
                "items": {
                  "$ref": "#/definitions/EvidenceReference"
                },
                "type": "array"
              },
              "kind": {
                "$ref": "#/definitions/AssessmentKind"
              },
              "outcome": {
                "$ref": "#/definitions/AssessmentOutcome"
              },
              "policy": {
                "$ref": "#/definitions/AssessmentPolicy"
              },
              "score": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/AssessmentScore"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "summary": {
                "type": "string"
              },
              "target": {
                "$ref": "#/definitions/AssessmentTarget"
              }
            },
            "required": [
              "criterion_id",
              "dimension",
              "kind",
              "outcome",
              "policy",
              "summary",
              "target"
            ],
            "type": "object"
          },
          "AssessmentScore": {
            "properties": {
              "awarded": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "possible": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "awarded",
              "possible"
            ],
            "type": "object"
          },
          "AssessmentTarget": {
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "$ref": "#/definitions/AssessmentTargetKind"
              }
            },
            "required": [
              "id",
              "kind"
            ],
            "type": "object"
          },
          "AssessmentTargetKind": {
            "enum": [
              "criterion"
            ],
            "type": "string"
          },
          "AssetValidationOutcome": {
            "enum": [
              "valid",
              "invalid",
              "malformed",
              "oversized",
              "not_produced",
              "unreadable",
              "unsafe_path",
              "removed_during_cleanup",
              "unexpected",
              "not_evaluated"
            ],
            "type": "string"
          },
          "AssetValidationResult": {
            "properties": {
              "asset_id": {
                "type": "string"
              },
              "evidence": {
                "items": {
                  "$ref": "#/definitions/EvidenceReference"
                },
                "type": "array"
              },
              "outcome": {
                "$ref": "#/definitions/AssetValidationOutcome"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "asset_id",
              "outcome",
              "summary"
            ],
            "type": "object"
          },
          "AuditEvidence": {
            "properties": {
              "detail": {
                "description": "Sanitized, bounded description. Never contains secret material.",
                "type": "string"
              },
              "function_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "message_index": {
                "description": "Index of the transcript message the observation anchors to.",
                "format": "uint",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "detail"
            ],
            "type": "object"
          },
          "AuditFlag": {
            "properties": {
              "confidence": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "evidence": {
                "items": {
                  "$ref": "#/definitions/AuditEvidence"
                },
                "type": "array"
              },
              "kind": {
                "$ref": "#/definitions/AuditFlagKind"
              },
              "severity": {
                "$ref": "#/definitions/AuditSeverity"
              },
              "source": {
                "$ref": "#/definitions/AuditFlagSource"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "severity",
              "source",
              "summary"
            ],
            "type": "object"
          },
          "AuditFlagKind": {
            "oneOf": [
              {
                "description": "The subject invoked the E2E control plane or another function the scenario explicitly denies — the verification mechanism itself.",
                "enum": [
                  "verifier_tampering"
                ],
                "type": "string"
              },
              {
                "description": "The subject addressed a session outside its own session tree.",
                "enum": [
                  "out_of_scope_session_access"
                ],
                "type": "string"
              },
              {
                "description": "Live secret material from the runner environment appeared in the transcript.",
                "enum": [
                  "secret_exposure"
                ],
                "type": "string"
              },
              {
                "description": "The subject invoked a destructive session or state operation.",
                "enum": [
                  "destructive_action"
                ],
                "type": "string"
              },
              {
                "description": "One step of the root session sent a prompt larger than the window the Harness fit the session into: on a model with that window the step would have failed.",
                "enum": [
                  "context_over_window"
                ],
                "type": "string"
              },
              {
                "description": "The run's reconciled calls took more than 2.5 s at the p95.",
                "enum": [
                  "slow_reconciled_calls"
                ],
                "type": "string"
              }
            ]
          },
          "AuditFlagSource": {
            "enum": [
              "deterministic"
            ],
            "type": "string"
          },
          "AuditReport": {
            "properties": {
              "flags": {
                "items": {
                  "$ref": "#/definitions/AuditFlag"
                },
                "type": "array"
              }
            },
            "required": [
              "flags"
            ],
            "type": "object"
          },
          "AuditSeverity": {
            "enum": [
              "info",
              "warning",
              "critical"
            ],
            "type": "string"
          },
          "BooleanCondition": {
            "additionalProperties": false,
            "properties": {
              "equals": {
                "type": "boolean"
              },
              "node_id": {
                "type": "string"
              },
              "port": {
                "type": "string"
              }
            },
            "required": [
              "equals",
              "node_id",
              "port"
            ],
            "type": "object"
          },
          "Capability": {
            "description": "What a scenario needs from the engine, the runner host or a fixture to run. The closed list keeps the catalog honest: a new need is a new variant, and every id is spelled once.",
            "enum": [
              "browser::interactive",
              "cross_repo_contract_simulator::v1",
              "curl",
              "docker",
              "e2e::adaptive-flow-v1",
              "e2e::control-plane-v1",
              "e2e::filesystem",
              "e2e::git",
              "e2e::run-scoped-fixtures",
              "e2e::shell",
              "e2e::subagents",
              "e2e::workflow-resume-v1",
              "fixture::multi-origin-http",
              "git",
              "git::deterministic-fixture-v1",
              "git::offline-bundle",
              "github::trusted-handoff",
              "go",
              "harness::independent_session",
              "harness::post-turn-validation",
              "harness::scripted-dialogue-v1",
              "iii::coder",
              "iii::compose",
              "iii::database",
              "iii::functions",
              "iii::registry",
              "iii::shell",
              "iii::state",
              "iii::triggers",
              "iii::workers",
              "incident_fixture::v1",
              "node",
              "playwright",
              "python3",
              "release_shadow::read-only-v1",
              "release_train_simulator::v1"
            ],
            "type": "string"
          },
          "CapturedInvariant": {
            "properties": {
              "id": {
                "type": "string"
              },
              "passed": {
                "type": "boolean"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "passed",
              "reason"
            ],
            "type": "object"
          },
          "Class": {
            "description": "Memory cases only: whether the answer returns a stored value as it was stored, or builds on stored facts or rules.",
            "enum": [
              "lookup",
              "synthesis"
            ],
            "type": "string"
          },
          "CompletionState": {
            "enum": [
              "completed",
              "task_incomplete",
              "undetermined"
            ],
            "type": "string"
          },
          "ContaminationScope": {
            "enum": [
              "none",
              "case",
              "execution"
            ],
            "type": "string"
          },
          "ControlPlaneEvidence": {
            "properties": {
              "functions": {
                "items": {
                  "$ref": "#/definitions/FunctionContractEvidence"
                },
                "type": "array"
              }
            },
            "required": [
              "functions"
            ],
            "type": "object"
          },
          "CostReport": {
            "properties": {
              "subject_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "total_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "CriterionReport": {
            "properties": {
              "awarded": {
                "format": "uint8",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gate": {
                "default": false,
                "description": "A gate criterion decides completion: the task counts as completed only when every gate passed. Always written, so a reader can tell \"no gate\" from a report older than the field.",
                "type": "boolean"
              },
              "gate_minimum": {
                "description": "The points a gate needs to count as passed when fewer than `possible` already mean the task's purpose was met. Absent: full points.",
                "format": "uint8",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "label": {
                "description": "The criterion as a short statement; absent in reports older than the field and for criteria that state none. Readers fall back to `description`.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "possible": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "possible",
              "reason"
            ],
            "type": "object"
          },
          "DeliverableContentFormat": {
            "enum": [
              "json",
              "text_utf8"
            ],
            "type": "string"
          },
          "DeliverableContract": {
            "properties": {
              "artifacts": {
                "items": {
                  "$ref": "#/definitions/ArtifactExpectation"
                },
                "type": "array"
              },
              "capture_before_cleanup": {
                "type": "boolean"
              },
              "invariants": {
                "items": {
                  "$ref": "#/definitions/InvariantSpec"
                },
                "type": "array"
              },
              "provenance_required": {
                "type": "boolean"
              }
            },
            "required": [
              "artifacts",
              "capture_before_cleanup",
              "invariants",
              "provenance_required"
            ],
            "type": "object"
          },
          "DeliverableReport": {
            "properties": {
              "artifact": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ArtifactReference"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "content_format": {
                "$ref": "#/definitions/DeliverableContentFormat"
              },
              "content_sha256": {
                "type": "string"
              },
              "content_size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "invariants": {
                "items": {
                  "$ref": "#/definitions/CapturedInvariant"
                },
                "type": "array"
              },
              "kind": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "preview": true,
              "provenance": {
                "items": {
                  "$ref": "#/definitions/ProvenanceEvidence"
                },
                "type": "array"
              },
              "provenance_valid": {
                "type": "boolean"
              },
              "schema_valid": {
                "type": "boolean"
              },
              "screenshots": {
                "default": [],
                "description": "The screenshots embedded in the content, so a reader can list them without opening the artifact. Empty when there are none.",
                "items": {
                  "$ref": "#/definitions/ScreenshotReference"
                },
                "type": "array"
              }
            },
            "required": [
              "content_format",
              "content_sha256",
              "content_size_bytes",
              "id",
              "invariants",
              "kind",
              "media_type",
              "preview",
              "provenance",
              "provenance_valid",
              "schema_valid"
            ],
            "type": "object"
          },
          "DependencyPolicy": {
            "enum": [
              "succeeded",
              "terminal"
            ],
            "type": "string"
          },
          "DimensionReport": {
            "properties": {
              "dimension": {
                "$ref": "#/definitions/EvaluationDimension"
              },
              "passed": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "points": {
                "description": "The raw points the run's criteria of this dimension awarded. The dimensions' points add up to the run score: a breakdown of it, not a second score. Absent when the run has no score or a scored criterion declared no dimension.",
                "format": "uint16",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "signals": true
            },
            "required": [
              "dimension",
              "signals"
            ],
            "type": "object"
          },
          "Discipline": {
            "description": "The kind of software the subject delivers: a question about the model and the agent, not about iii. `testing` means the subject writes or fixes tests (running a suite does not count); `data` means the deliverable carries a schema, a migration or a persisted data model (ad hoc SQL to finish the task does not count).",
            "enum": [
              "frontend",
              "backend",
              "data",
              "infra",
              "testing"
            ],
            "type": "string"
          },
          "DurableArchiveReference": {
            "additionalProperties": false,
            "properties": {
              "archive_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "execution_id": {
                "type": "string"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_sha256": {
                "type": "string"
              },
              "manifest": {
                "$ref": "#/definitions/StorageObjectReference"
              },
              "manifest_backup": {
                "$ref": "#/definitions/StorageObjectReference"
              },
              "retention_class": {
                "$ref": "#/definitions/RetentionClass"
              }
            },
            "required": [
              "archive_id",
              "created_at",
              "execution_id",
              "identity_sha256",
              "manifest",
              "manifest_backup",
              "retention_class"
            ],
            "type": "object"
          },
          "E2eManifest": {
            "additionalProperties": false,
            "properties": {
              "control_plane": {
                "$ref": "#/definitions/ControlPlaneEvidence"
              },
              "execution": {
                "$ref": "#/definitions/ExecutionIdentity"
              },
              "observation_contract": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ObservationRunContract"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "subject": {
                "$ref": "#/definitions/ModelArtifact"
              },
              "system_under_test": {
                "$ref": "#/definitions/SystemUnderTestIdentity"
              },
              "worker_contracts": {
                "items": {
                  "$ref": "#/definitions/ObservedWorkerContract"
                },
                "type": "array"
              }
            },
            "required": [
              "control_plane",
              "execution",
              "subject",
              "system_under_test"
            ],
            "type": "object"
          },
          "E2eObservationEnvelope": {
            "additionalProperties": false,
            "properties": {
              "evidence": {
                "$ref": "#/definitions/ObservationEvidence"
              },
              "identity": {
                "$ref": "#/definitions/ObservationIdentity"
              },
              "mode": {
                "$ref": "#/definitions/ObservationMode"
              },
              "outcome": {
                "$ref": "#/definitions/ObservationOutcome"
              },
              "provenance": {
                "$ref": "#/definitions/ObservationProvenance"
              },
              "samples": {
                "items": {
                  "$ref": "#/definitions/ObservationSample"
                },
                "type": "array"
              },
              "schema": {
                "type": "string"
              }
            },
            "required": [
              "evidence",
              "identity",
              "mode",
              "outcome",
              "provenance",
              "samples",
              "schema"
            ],
            "type": "object"
          },
          "E2eReport": {
            "additionalProperties": false,
            "properties": {
              "assessment_contract": {
                "$ref": "#/definitions/AssessmentContract"
              },
              "engine_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "execution": {
                "$ref": "#/definitions/ExecutionIdentity"
              },
              "manifest": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ArtifactReference"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "objective_outcome": {
                "$ref": "#/definitions/ObjectiveOutcome"
              },
              "observation_contract": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ObservationRunContract"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "passed": {
                "type": "boolean"
              },
              "persistence_errors": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "redaction": {
                "allOf": [
                  {
                    "$ref": "#/definitions/RedactionReport"
                  }
                ],
                "default": {
                  "redacted_fields": 0,
                  "redacted_values": 0,
                  "rules": []
                }
              },
              "report_state": {
                "$ref": "#/definitions/ReportState"
              },
              "result_contract_sha256": {
                "type": "string"
              },
              "scenarios": {
                "items": {
                  "$ref": "#/definitions/E2eScenarioReport"
                },
                "type": "array"
              },
              "slot_start_deadline_seconds": {
                "description": "Soft scheduling deadline: prevents starting slots after this interval.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "subject": {
                "$ref": "#/definitions/ModelArtifact"
              },
              "system_under_test": {
                "$ref": "#/definitions/SystemUnderTestIdentity"
              }
            },
            "required": [
              "assessment_contract",
              "execution",
              "objective_outcome",
              "passed",
              "report_state",
              "result_contract_sha256",
              "scenarios",
              "subject",
              "system_under_test"
            ],
            "type": "object"
          },
          "E2eRunReport": {
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "attempt_number": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "audit": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/AuditReport"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Advisory behavioral audit over the captured transcript and metrics. Never contributes to score, status, gates, or longitudinal inputs."
              },
              "cause": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/RunCause"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Why the run ended as it did; `technical` follows from it. Absent only in reports written before causes, which keep the earlier rule: every subject error left the mean, and an evaluator's own failure could count as a valid zero."
              },
              "completion": {
                "$ref": "#/definitions/CompletionState"
              },
              "cost": {
                "$ref": "#/definitions/CostReport"
              },
              "criteria": {
                "items": {
                  "$ref": "#/definitions/CriterionReport"
                },
                "type": "array"
              },
              "deliverables": {
                "items": {
                  "$ref": "#/definitions/DeliverableReport"
                },
                "type": "array"
              },
              "dimensions": {
                "items": {
                  "$ref": "#/definitions/DimensionReport"
                },
                "type": "array"
              },
              "duplicate_entry_events": {
                "description": "`session::message-added` deliveries of the root session past the first of each entry; absent when the run did not count them.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "efficiency": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/EfficiencyReport"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evaluators": {
                "$ref": "#/definitions/EvaluatorStates"
              },
              "evidence": {
                "items": {
                  "$ref": "#/definitions/ArtifactReference"
                },
                "type": "array"
              },
              "failures": {
                "items": {
                  "$ref": "#/definitions/FailureRecord"
                },
                "type": "array"
              },
              "harness_preflight": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/HarnessPreflight"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The Harness configuration and routing the run started from."
              },
              "harness_violations": {
                "description": "Harness invariants the run broke; README Completion says what each costs the run.",
                "items": {
                  "$ref": "#/definitions/HarnessViolation"
                },
                "type": "array"
              },
              "injected_prompt_tokens": {
                "description": "Tokens (bytes / 4) of the prompt parts `pre_generate` hooks declare they inject into the root session; absent when they were not read.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mechanism_evidence": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/MechanismEvidence"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "What the runner observed and probed for the scenario's mechanism gates, before teardown."
              },
              "metrics": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/SessionMetricsPayload"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "prompt": {
                "type": "string"
              },
              "reconciliation_judge_ms": {
                "description": "Milliseconds of each of the root session's `judge::evaluate` calls, the round trip of argument reconciliation; absent when not read.",
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "retry_attempts": {
                "items": {
                  "$ref": "#/definitions/RetryAttemptReport"
                },
                "type": "array"
              },
              "run_id": {
                "type": "string"
              },
              "scenario_flow": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ScenarioFlowEvidence"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Evidence-only flow identity emitted by Rust. This value is never accepted as runner input and cannot reconstruct executable configuration."
              },
              "scenario_measurements": {
                "items": {
                  "$ref": "#/definitions/ScenarioMeasurement"
                },
                "type": "array"
              },
              "score": {
                "format": "uint8",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "semantic_tests": {
                "description": "Semantic tests executed inside a code-defined composite scenario. Product requests, polling and captures stay inside these meaningful test units.",
                "items": {
                  "$ref": "#/definitions/WorkflowStepReport"
                },
                "type": "array"
              },
              "session_id": {
                "type": "string"
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              },
              "technical": {
                "$ref": "#/definitions/TechnicalState"
              },
              "transcript": true,
              "transient_recovery": {
                "description": "The turns that resumed after a stream cut, in every session of the tree. Absent when the transcripts were not read: a report written before it, or a composite or adaptive run.",
                "items": {
                  "$ref": "#/definitions/TurnRecovery"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "trigger_bindings": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TriggerBindings"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The session tree's trigger bindings and what teardown left of them. Absent on a report written before it, or a composite or adaptive run."
              },
              "turn_lifecycle": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/TurnLifecycleEvidence"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The turn events and session state the Harness invariants judge."
              },
              "wall_time_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "worker_contracts": {
                "description": "Exact request/response schemas observed after this scenario's setup. Run-scoped fixture functions cannot be observed in the suite preflight, so attempts retain them here and the suite folds them into the manifest.",
                "items": {
                  "$ref": "#/definitions/ObservedWorkerContract"
                },
                "type": "array"
              }
            },
            "required": [
              "attempt_id",
              "attempt_number",
              "completion",
              "cost",
              "criteria",
              "evaluators",
              "prompt",
              "run_id",
              "session_id",
              "status",
              "technical",
              "wall_time_ms"
            ],
            "type": "object"
          },
          "E2eScenarioReport": {
            "properties": {
              "aggregate": {
                "$ref": "#/definitions/ScenarioAggregate"
              },
              "area": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Area"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "behavior_sha256": {
                "description": "Digest of the definition the case was materialized from. Absent only when no case could be materialized.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "case": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ScenarioCase"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "case_id": {
                "default": "",
                "type": "string"
              },
              "class": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Class"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A memory case that scores an answer; none for every other test."
              },
              "deferral_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "disciplines": {
                "items": {
                  "$ref": "#/definitions/Discipline"
                },
                "type": "array"
              },
              "execution_policy": {
                "$ref": "#/definitions/ExecutionPolicy"
              },
              "passed": {
                "type": "boolean"
              },
              "protects": {
                "description": "What the test protects and what breaks when it fails.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "runs": {
                "items": {
                  "$ref": "#/definitions/E2eRunReport"
                },
                "type": "array"
              },
              "scenario_id": {
                "type": "string"
              },
              "summary": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "description": "Presentation captured when this result was produced; absent in older results.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "workers": {
                "description": "The iii workers the test protects; empty when it protects the harness alone.",
                "items": {
                  "$ref": "#/definitions/Worker"
                },
                "type": "array"
              }
            },
            "required": [
              "aggregate",
              "execution_policy",
              "passed",
              "runs",
              "scenario_id"
            ],
            "type": "object"
          },
          "EfficiencyReport": {
            "properties": {
              "cache_comparable": {
                "default": null,
                "description": "False when a session's provider reported a prompt that does not match the Harness's own count of what it sent (claude-code adds a prompt of its own): its prompt and cache figures are not comparable with another provider's.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "cache_read_tokens": {
                "default": null,
                "description": "Prompt tokens served from the provider's cache.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "child_sessions": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "child_turns": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "compactions": {
                "default": null,
                "description": "Compactions of the root session: the `compaction` records the Harness wrote to its transcript, automatic or asked for. The snapshot's `compacted` only says the session holds a summary now.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "critical_path_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "effective_fan_out": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "input_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "observed_complexity": {
                "$ref": "#/definitions/ObservedComplexityReport"
              },
              "observed_work": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "peak_context_tokens": {
                "default": null,
                "description": "The largest prompt one step of the root session sent, from the usage each assistant message recorded in the transcript. Given only when the steps add up to the root session's totals.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "prefix_divergences": {
                "default": null,
                "description": "Already-sent rows the run's requests rewrote that no compaction explains, over every session's context snapshot: where a prefix-matching provider cache stopped reusing. Null when no session has a snapshot.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "processed_prompt_tokens": {
                "default": null,
                "description": "Every prompt token the provider processed: input, cache reads and cache writes. `input_tokens` alone leaves the cache out, and the cache is most of a long session's prompt.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "prompt_surface_digests": {
                "additionalProperties": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "description": "The Harness prompt-surface digest of each session role (`root`, `child`): data, not drift, since every Harness release changes it.",
                "type": "object"
              },
              "root_turns": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "technical_attempts": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "total_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "transient_resumes": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "unavailable": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "usable_context_tokens": {
                "default": null,
                "description": "The prompt budget the Harness fit the root session's window into (its context snapshot's `usable`).",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "validation_retries": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wake_resumes": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wall_time_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "observed_complexity",
              "technical_attempts",
              "wall_time_ms"
            ],
            "type": "object"
          },
          "EvaluationDimension": {
            "enum": [
              "deliverable",
              "structural_integrity",
              "efficiency",
              "robustness",
              "e2e_infrastructure"
            ],
            "type": "string"
          },
          "EvaluatorAvailability": {
            "enum": [
              "not_required",
              "pending",
              "available",
              "unavailable"
            ],
            "type": "string"
          },
          "EvaluatorStates": {
            "properties": {
              "completion": {
                "$ref": "#/definitions/EvaluatorAvailability"
              }
            },
            "required": [
              "completion"
            ],
            "type": "object"
          },
          "EvidenceReference": {
            "properties": {
              "artifact_id": {
                "type": "string"
              },
              "artifact_sha256": {
                "type": "string"
              },
              "locator": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "artifact_id",
              "artifact_sha256"
            ],
            "type": "object"
          },
          "ExecutionIdentity": {
            "properties": {
              "completed_at": {
                "type": "string"
              },
              "execution_id": {
                "type": "string"
              },
              "lane": {
                "type": "string"
              },
              "started_at": {
                "type": "string"
              }
            },
            "required": [
              "completed_at",
              "execution_id",
              "lane",
              "started_at"
            ],
            "type": "object"
          },
          "ExecutionPhase": {
            "enum": [
              "requested",
              "admitted",
              "preflighting",
              "materializing",
              "setting_up",
              "executing",
              "collecting",
              "evaluating",
              "persisting",
              "cleaning_up",
              "finalizing",
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          },
          "ExecutionPolicy": {
            "properties": {
              "max_output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_total_tokens": {
                "description": "Shared Harness token budget. `None` leaves the Harness budget unbounded for this scenario.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_turns": {
                "description": "Subject turn ceiling. `None` leaves the run without one: only `stuck_timeout_seconds` stops it, and lane admission does not count it.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_validation_retries": {
                "description": "Optional per-session cap for post-turn validation denials. `None` preserves the Harness-configured default.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stuck_timeout_seconds": {
                "description": "Stop only after this many seconds without observable useful progress. Large scenarios have no fixed wall-clock deadline.",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "stuck_timeout_seconds"
            ],
            "type": "object"
          },
          "ExecutionRealism": {
            "enum": [
              "synthetic",
              "realistic_simulator",
              "frozen_real_artifact"
            ],
            "type": "string"
          },
          "FailureDomain": {
            "enum": [
              "subject",
              "resource",
              "e2e_infrastructure"
            ],
            "type": "string"
          },
          "FailurePhase": {
            "enum": [
              "setup",
              "execute",
              "collect",
              "evaluate",
              "cleanup"
            ],
            "type": "string"
          },
          "FailureRecord": {
            "properties": {
              "code": {
                "default": "",
                "type": "string"
              },
              "contamination": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ContaminationScope"
                  }
                ],
                "default": "none"
              },
              "domain": {
                "$ref": "#/definitions/FailureDomain"
              },
              "message": {
                "type": "string"
              },
              "phase": {
                "$ref": "#/definitions/FailurePhase"
              },
              "retry_scope": {
                "allOf": [
                  {
                    "$ref": "#/definitions/RetryScope"
                  }
                ],
                "default": "none"
              },
              "status": {
                "allOf": [
                  {
                    "$ref": "#/definitions/RunStatus"
                  }
                ],
                "description": "The failure's original classification, independent of the primary run status."
              }
            },
            "required": [
              "domain",
              "message",
              "phase",
              "status"
            ],
            "type": "object"
          },
          "FunctionContractEvidence": {
            "properties": {
              "function_id": {
                "type": "string"
              },
              "request_schema": true,
              "response_schema": true,
              "sha256": {
                "type": "string"
              }
            },
            "required": [
              "function_id",
              "request_schema",
              "response_schema",
              "sha256"
            ],
            "type": "object"
          },
          "HarnessInvariant": {
            "oneOf": [
              {
                "description": "A message whose calls the Harness dispatched (some have results) left one without a result: the persisted history is malformed.",
                "enum": [
                  "lost_function_result"
                ],
                "type": "string"
              },
              {
                "description": "A session's context was fit into the context-manager's fallback limits while the model's catalog window is far larger: the router could not resolve the model's limits (unreachable, or the stack names a model it does not list), so compaction fires on a fraction of the window.",
                "enum": [
                  "fallback_context_limits"
                ],
                "type": "string"
              },
              {
                "description": "The run's tokens or a priced run's cost were not counted, or a generation that ended or called a function carries no usage.",
                "enum": [
                  "usage_unmetered"
                ],
                "type": "string"
              },
              {
                "description": "The counters disagree: the sessions' costs do not add up to the total, a session's running cost drifts from its metered cost, or `free` is not what the window leaves.",
                "enum": [
                  "usage_misaccounted"
                ],
                "type": "string"
              },
              {
                "description": "A generation ran on a model or provider its session was not routed to.",
                "enum": [
                  "model_misrouted"
                ],
                "type": "string"
              },
              {
                "description": "The subject disabled thinking and still reasoned.",
                "enum": [
                  "reasoning_while_disabled"
                ],
                "type": "string"
              },
              {
                "description": "A transient resume in a turn that neither failed nor stopped has no `recovered` row of its attempt or a later one: the Harness lost the recovery's outcome.",
                "enum": [
                  "unrecovered_transient_resume"
                ],
                "type": "string"
              },
              {
                "description": "A turn resumed more often than its `max_transient_resumes`.",
                "enum": [
                  "transient_resumes_over_limit"
                ],
                "type": "string"
              },
              {
                "description": "A `trigger_fired` record has an outcome outside `TriggerOutcome`, or retired its binding without a `retirement_reason`.",
                "enum": [
                  "malformed_trigger_record"
                ],
                "type": "string"
              },
              {
                "description": "A wake binding's `delivered` records and the `e_fire_` entries it injected differ in number: a wake was lost or doubled.",
                "enum": [
                  "wake_delivery_mismatch"
                ],
                "type": "string"
              },
              {
                "description": "A `once` binding was delivered more than once.",
                "enum": [
                  "once_binding_redelivered"
                ],
                "type": "string"
              },
              {
                "description": "A binding of the run outlived `harness::teardown`, on the engine or in the binding store.",
                "enum": [
                  "leaked_trigger_binding"
                ],
                "type": "string"
              },
              {
                "description": "A session froze a built-in prompt other than the default identity (or the subject's agent profile prompt).",
                "enum": [
                  "frozen_prompt_drift"
                ],
                "type": "string"
              },
              {
                "description": "The runtime context frozen into a session's prompt misnames the session, the working directory, the co-author or the dispatch policy.",
                "enum": [
                  "runtime_context_malformed"
                ],
                "type": "string"
              },
              {
                "description": "An English prompt pinned another response language, or none.",
                "enum": [
                  "response_language_mispinned"
                ],
                "type": "string"
              },
              {
                "description": "A turn record holds its prompt inline, or names a body the prompt store does not hold under that hash.",
                "enum": [
                  "prompt_ref_broken"
                ],
                "type": "string"
              },
              {
                "description": "The turn events broke their contract: a root turn did not start exactly once, a turn never completed, a sent turn completed only through the status poll, or a completion's `terminal` contradicts the wakes.",
                "enum": [
                  "turn_events"
                ],
                "type": "string"
              },
              {
                "description": "A session of the completed tree is not `done` (a child may be `error`, and a root whose scenario expects a failed turn must be).",
                "enum": [
                  "session_status"
                ],
                "type": "string"
              },
              {
                "description": "`session::get` lost a session or reads back other than what was sent: the root's kind, title and run metadata, a child's kind and parent link.",
                "enum": [
                  "session_read_back"
                ],
                "type": "string"
              },
              {
                "description": "A session's requests carried no shared prompt prefix (`prompt_sections_fallback`), so the provider cache reuses nothing.",
                "enum": [
                  "prompt_sections_fallback"
                ],
                "type": "string"
              },
              {
                "description": "A multi-step run's cache-hit ratio fell below half the median of its setup's latest executions.",
                "enum": [
                  "prompt_cache_regressed"
                ],
                "type": "string"
              },
              {
                "description": "A turn ran one call into the same error more than twice: the repeated-failure breaker answers the third locally.",
                "enum": [
                  "repeated_failure_executed"
                ],
                "type": "string"
              },
              {
                "description": "A mechanism the scenario exercises broke its contract; the detail names the gate (`crate::mechanism_gates`).",
                "enum": [
                  "mechanism_gate"
                ],
                "type": "string"
              }
            ]
          },
          "HarnessPreflight": {
            "description": "What the preflight read of the stack the run measures.",
            "properties": {
              "allow_prune": {
                "description": "`harness::context-policy` `allow_prune` for the subject model: false on a model that binds thinking (Claude 5.5, Fable 5.1), which the Harness never relieves by pruning aged results: only by compaction and, when a compacted request stays over budget, the emergency result reduction.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "configuration_id": {
                "description": "The Harness's configuration entry and the SHA-256 of its value.",
                "type": "string"
              },
              "configuration_sha256": {
                "type": "string"
              },
              "route_candidates": {
                "default": [],
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "route_provider": {
                "description": "`router::route` for the subject model with no provider pinned.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "configuration_id",
              "configuration_sha256"
            ],
            "type": "object"
          },
          "HarnessViolation": {
            "properties": {
              "detail": {
                "type": "string"
              },
              "invariant": {
                "$ref": "#/definitions/HarnessInvariant"
              }
            },
            "required": [
              "detail",
              "invariant"
            ],
            "type": "object"
          },
          "HumanHorizon": {
            "properties": {
              "basis": {
                "allOf": [
                  {
                    "$ref": "#/definitions/HumanHorizonBasis"
                  }
                ],
                "default": "unknown"
              },
              "max_minutes": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "min_minutes": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "HumanHorizonBasis": {
            "enum": [
              "unknown",
              "author_estimate",
              "measured"
            ],
            "type": "string"
          },
          "InvariantSpec": {
            "properties": {
              "description": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "description",
              "id"
            ],
            "type": "object"
          },
          "MechanismEvidence": {
            "properties": {
              "probes": {
                "additionalProperties": true,
                "description": "What the runner observed or probed for this scenario's gates, by name. A gate whose probe is absent is not judged: a replayed run has none.",
                "type": "object"
              },
              "scenario": {
                "type": "string"
              }
            },
            "required": [
              "scenario"
            ],
            "type": "object"
          },
          "ModelArtifact": {
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/AgentProfileArtifact"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "context_window": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "max_output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "model": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              },
              "supports_tools": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "supports_vision": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "context_window",
              "max_output_tokens",
              "model",
              "provider"
            ],
            "type": "object"
          },
          "ModelUsage": {
            "description": "The route of the steps one model generated (`harness::metrics` `by_model`); its counters stay in the raw payload. Empty from a Harness that predates it.",
            "properties": {
              "model": {
                "type": "string"
              },
              "provider": {
                "type": "string"
              },
              "turns": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "model",
              "provider",
              "turns"
            ],
            "type": "object"
          },
          "ObjectiveOutcome": {
            "enum": [
              "passed",
              "failed",
              "inconclusive"
            ],
            "type": "string"
          },
          "ObservationCorrelation": {
            "additionalProperties": false,
            "properties": {
              "deployment_id": {
                "type": "string"
              },
              "operation_id": {
                "type": "string"
              },
              "system": {
                "type": "string"
              }
            },
            "required": [
              "deployment_id",
              "operation_id",
              "system"
            ],
            "type": "object"
          },
          "ObservationDataAvailability": {
            "enum": [
              "complete",
              "partial",
              "unavailable"
            ],
            "type": "string"
          },
          "ObservationDecision": {
            "enum": [
              "observe_only"
            ],
            "type": "string"
          },
          "ObservationEnvironment": {
            "enum": [
              "demonstration"
            ],
            "type": "string"
          },
          "ObservationEvidence": {
            "additionalProperties": false,
            "properties": {
              "artifacts": {
                "items": {
                  "$ref": "#/definitions/ArtifactReference"
                },
                "type": "array"
              },
              "manifest_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "results_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "ObservationExecutionIdentity": {
            "additionalProperties": false,
            "properties": {
              "attempt": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "completed_at": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "request_sha256": {
                "type": "string"
              },
              "run_contract_sha256": {
                "type": "string"
              },
              "started_at": {
                "type": "string"
              }
            },
            "required": [
              "attempt",
              "completed_at",
              "id",
              "request_sha256",
              "run_contract_sha256",
              "started_at"
            ],
            "type": "object"
          },
          "ObservationIdentity": {
            "additionalProperties": false,
            "properties": {
              "execution": {
                "$ref": "#/definitions/ObservationExecutionIdentity"
              },
              "plan": {
                "$ref": "#/definitions/ObservationPlanIdentity"
              },
              "runner": {
                "$ref": "#/definitions/RunnerIdentity"
              },
              "target": {
                "$ref": "#/definitions/ObservationTargetIdentity"
              }
            },
            "required": [
              "execution",
              "plan",
              "runner",
              "target"
            ],
            "type": "object"
          },
          "ObservationMetric": {
            "additionalProperties": false,
            "description": "A metric is explicit about its unit and availability so a recorded zero cannot be mistaken for a missing measurement. The legacy `metrics` object remains alongside this additive projection for current consumers.",
            "properties": {
              "availability": {
                "$ref": "#/definitions/ObservationDataAvailability"
              },
              "origin": {
                "$ref": "#/definitions/ObservationMetricOrigin"
              },
              "unit": {
                "type": "string"
              },
              "value": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "availability",
              "origin",
              "unit"
            ],
            "type": "object"
          },
          "ObservationMetricDerivation": {
            "additionalProperties": false,
            "properties": {
              "formula": {
                "type": "string"
              },
              "formula_version": {
                "type": "string"
              },
              "metric": {
                "type": "string"
              },
              "origin": {
                "$ref": "#/definitions/ObservationMetricOrigin"
              }
            },
            "required": [
              "formula",
              "formula_version",
              "metric",
              "origin"
            ],
            "type": "object"
          },
          "ObservationMetricOrigin": {
            "enum": [
              "observed",
              "derived_from_observed"
            ],
            "type": "string"
          },
          "ObservationMode": {
            "additionalProperties": false,
            "properties": {
              "decision": {
                "$ref": "#/definitions/ObservationDecision"
              },
              "environment": {
                "$ref": "#/definitions/ObservationEnvironment"
              }
            },
            "required": [
              "decision",
              "environment"
            ],
            "type": "object"
          },
          "ObservationObjective": {
            "enum": [
              "passed",
              "hard_gate_failed",
              "technical_failed",
              "infrastructure_failed",
              "cancelled",
              "unsupported_plan"
            ],
            "type": "string"
          },
          "ObservationOutcome": {
            "additionalProperties": false,
            "properties": {
              "control_phase": {
                "type": "string"
              },
              "data_availability": {
                "$ref": "#/definitions/ObservationDataAvailability"
              },
              "error": {
                "type": "string"
              },
              "objective": {
                "$ref": "#/definitions/ObservationObjective"
              },
              "passed": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "control_phase",
              "data_availability",
              "objective"
            ],
            "type": "object"
          },
          "ObservationPlanIdentity": {
            "additionalProperties": false,
            "properties": {
              "catalog_sha256": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              }
            },
            "required": [
              "catalog_sha256",
              "id",
              "revision",
              "sha256"
            ],
            "type": "object"
          },
          "ObservationProvenance": {
            "additionalProperties": false,
            "properties": {
              "subject_model": {
                "type": "string"
              },
              "subject_provider": {
                "type": "string"
              },
              "system_under_test": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/SystemUnderTestIdentity"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "subject_model",
              "subject_provider"
            ],
            "type": "object"
          },
          "ObservationRunContract": {
            "additionalProperties": false,
            "properties": {
              "attempt": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "correlation": {
                "$ref": "#/definitions/ObservationCorrelation"
              },
              "mode": {
                "$ref": "#/definitions/ObservationMode"
              },
              "plan": {
                "$ref": "#/definitions/ObservationPlanIdentity"
              },
              "runner": {
                "$ref": "#/definitions/RunnerIdentity"
              },
              "selected_cases": {
                "items": {
                  "$ref": "#/definitions/ObservationSelectedCase"
                },
                "type": "array"
              },
              "target": {
                "$ref": "#/definitions/ObservationTargetIdentity"
              }
            },
            "required": [
              "attempt",
              "correlation",
              "mode",
              "plan",
              "runner",
              "selected_cases",
              "target"
            ],
            "type": "object"
          },
          "ObservationSample": {
            "additionalProperties": false,
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "behavior_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "case_id": {
                "type": "string"
              },
              "data_availability": {
                "$ref": "#/definitions/ObservationDataAvailability"
              },
              "derivations": {
                "items": {
                  "$ref": "#/definitions/ObservationMetricDerivation"
                },
                "type": "array"
              },
              "metric_values": {
                "additionalProperties": {
                  "$ref": "#/definitions/ObservationMetric"
                },
                "default": {},
                "type": "object"
              },
              "metrics": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/EfficiencyReport"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "origin": {
                "$ref": "#/definitions/ObservationMetricOrigin"
              },
              "run_id": {
                "type": "string"
              },
              "scenario_id": {
                "type": "string"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              }
            },
            "required": [
              "attempt_id",
              "case_id",
              "data_availability",
              "origin",
              "run_id",
              "scenario_id",
              "seed",
              "status"
            ],
            "type": "object"
          },
          "ObservationSelectedCase": {
            "additionalProperties": false,
            "properties": {
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "contract_sha256": {
                "type": "string"
              },
              "inputs_sha256": {
                "type": "string"
              },
              "scenario_id": {
                "$ref": "#/definitions/ScenarioId"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "behavior_sha256",
              "case_id",
              "contract_sha256",
              "inputs_sha256",
              "scenario_id",
              "seed"
            ],
            "type": "object"
          },
          "ObservationTargetIdentity": {
            "additionalProperties": false,
            "properties": {
              "application": {
                "type": "string"
              },
              "stack": {
                "$ref": "#/definitions/StackIdentity"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "application",
              "stack",
              "version"
            ],
            "type": "object"
          },
          "ObservedComplexityReport": {
            "properties": {
              "ambiguity_level": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "artifact_count": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "coordination_edges": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "dependency_depth": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "external_systems": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "parallel_branches": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "planning_depth": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "state_transitions": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "unavailable": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "validation_loops": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wake_cycles": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "ObservedWorkerContract": {
            "additionalProperties": false,
            "properties": {
              "function_id": {
                "type": "string"
              },
              "request_schema_sha256": {
                "type": "string"
              },
              "response_schema_sha256": {
                "type": "string"
              }
            },
            "required": [
              "function_id",
              "request_schema_sha256",
              "response_schema_sha256"
            ],
            "type": "object"
          },
          "PortValueKind": {
            "enum": [
              "boolean",
              "json",
              "text_utf8",
              "assessment"
            ],
            "type": "string"
          },
          "ProvenanceEvidence": {
            "properties": {
              "kind": {
                "type": "string"
              },
              "relation": {
                "type": "string"
              },
              "source_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "relation",
              "source_id"
            ],
            "type": "object"
          },
          "RedactionReport": {
            "properties": {
              "redacted_fields": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "redacted_values": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "rules": {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "uniqueItems": true
              }
            },
            "required": [
              "redacted_fields",
              "redacted_values",
              "rules"
            ],
            "type": "object"
          },
          "ReportState": {
            "enum": [
              "complete",
              "partial"
            ],
            "type": "string"
          },
          "RetentionClass": {
            "enum": [
              "temporary",
              "pull_request",
              "longitudinal",
              "canonical"
            ],
            "type": "string"
          },
          "RetryAttemptReport": {
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "attempt_number": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "completion": {
                "$ref": "#/definitions/CompletionState"
              },
              "cost": {
                "$ref": "#/definitions/CostReport"
              },
              "deliverables": {
                "items": {
                  "$ref": "#/definitions/DeliverableReport"
                },
                "type": "array"
              },
              "dimensions": {
                "items": {
                  "$ref": "#/definitions/DimensionReport"
                },
                "type": "array"
              },
              "efficiency": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/EfficiencyReport"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evaluators": {
                "$ref": "#/definitions/EvaluatorStates"
              },
              "evidence": {
                "items": {
                  "$ref": "#/definitions/ArtifactReference"
                },
                "type": "array"
              },
              "failures": {
                "items": {
                  "$ref": "#/definitions/FailureRecord"
                },
                "type": "array"
              },
              "metrics": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/SessionMetricsPayload"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "run_id": {
                "type": "string"
              },
              "scenario_flow": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ScenarioFlowEvidence"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "score": {
                "description": "The points the attempt's evaluated criteria awarded, as on the run.",
                "format": "uint8",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "semantic_tests": {
                "items": {
                  "$ref": "#/definitions/WorkflowStepReport"
                },
                "type": "array"
              },
              "session_id": {
                "type": "string"
              },
              "status": {
                "$ref": "#/definitions/RunStatus"
              },
              "technical": {
                "$ref": "#/definitions/TechnicalState"
              },
              "transcript": true,
              "wall_time_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "attempt_id",
              "attempt_number",
              "completion",
              "cost",
              "evaluators",
              "failures",
              "run_id",
              "session_id",
              "status",
              "technical",
              "wall_time_ms"
            ],
            "type": "object"
          },
          "RetryScope": {
            "enum": [
              "none",
              "same_slot"
            ],
            "type": "string"
          },
          "RobustnessReport": {
            "properties": {
              "cost_per_successful_deliverable": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "deliverable_success_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "eligible": {
                "type": "boolean"
              },
              "flaky_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_wall_time_ms": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "minimum_sample_size": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "p95_wall_time_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sample_size": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "structural_integrity_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "tail_minimum_sample_size": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "technical_failure_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "unavailable": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "wall_time_variance": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "eligible",
              "minimum_sample_size",
              "sample_size",
              "tail_minimum_sample_size"
            ],
            "type": "object"
          },
          "RunAssessmentContract": {
            "properties": {
              "assessments": {
                "items": {
                  "$ref": "#/definitions/AssessmentResult"
                },
                "type": "array"
              },
              "assets": {
                "items": {
                  "$ref": "#/definitions/AssetValidationResult"
                },
                "type": "array"
              },
              "attempt_id": {
                "type": "string"
              },
              "run_id": {
                "type": "string"
              },
              "system_status": {
                "$ref": "#/definitions/SystemStatus"
              }
            },
            "required": [
              "attempt_id",
              "run_id",
              "system_status"
            ],
            "type": "object"
          },
          "RunCause": {
            "description": "Why a run ended as it did. It decides whether the run counts toward the mean: a failure of the subject or a spent budget counts, keeping the points already measured; one of the provider, the stack, the evaluator's machine or the operator does not, and is counted apart.",
            "oneOf": [
              {
                "description": "No failure: the run reached evaluation.",
                "enum": [
                  "evaluated"
                ],
                "type": "string"
              },
              {
                "description": "A token, cost or turn budget, or no progress, stopped the subject.",
                "enum": [
                  "resource_limit"
                ],
                "type": "string"
              },
              {
                "description": "The provider refused a request the Harness built.",
                "enum": [
                  "invalid_provider_request"
                ],
                "type": "string"
              },
              {
                "description": "The conversation outgrew the model's context.",
                "enum": [
                  "context_overflow"
                ],
                "type": "string"
              },
              {
                "description": "The adaptive planner answered in the wrong format.",
                "enum": [
                  "planner_format"
                ],
                "type": "string"
              },
              {
                "description": "Any other failure of the subject.",
                "enum": [
                  "subject_failure"
                ],
                "type": "string"
              },
              {
                "description": "The provider was unreachable, rate limited, out of balance or not authorized.",
                "enum": [
                  "provider_infrastructure"
                ],
                "type": "string"
              },
              {
                "description": "The stack lacked a function or database the test relies on, or does not route the configured provider or model.",
                "enum": [
                  "test_environment_incomplete"
                ],
                "type": "string"
              },
              {
                "description": "The evaluator could not validate the delivery for a reason of its own machine, such as a Docker daemon that stopped answering.",
                "enum": [
                  "evaluation_environment"
                ],
                "type": "string"
              },
              {
                "description": "Any other failure of the runner or its fixtures.",
                "enum": [
                  "e2e_infrastructure"
                ],
                "type": "string"
              },
              {
                "description": "The operator cancelled the execution.",
                "enum": [
                  "operator_cancelled"
                ],
                "type": "string"
              },
              {
                "description": "Nobody can be blamed from the evidence: another worker timed out, the turn was cancelled without an error, or the provider rejected a request for a reason no rule recognises.",
                "enum": [
                  "undetermined"
                ],
                "type": "string"
              }
            ]
          },
          "RunStatus": {
            "enum": [
              "passed",
              "hard_gate_failed",
              "subject_error",
              "resource_limit",
              "infrastructure_error"
            ],
            "type": "string"
          },
          "RunnerIdentity": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "revision",
              "version"
            ],
            "type": "object"
          },
          "ScenarioAggregate": {
            "properties": {
              "causes": {
                "additionalProperties": {
                  "format": "uint32",
                  "minimum": 0,
                  "type": "integer"
                },
                "description": "Observed runs per cause: the counted ones are the technically valid runs. Runs from reports written before causes are left out of it.",
                "type": "object"
              },
              "completed_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "completion_evidence_coverage": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "completion_rate": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "cost": {
                "$ref": "#/definitions/CostReport"
              },
              "deferred_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "execution_reliability": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "failed_attempt_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mean_score": {
                "description": "Mean score of the technically valid runs that have one; null when none.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "observed_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "pass_rate": {
                "format": "double",
                "type": "number"
              },
              "passed_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "planned_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "required_passes": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "robustness": {
                "$ref": "#/definitions/RobustnessReport"
              },
              "scored_runs": {
                "description": "Technically valid runs that have a score.",
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "task_incomplete_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "technical_failures": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "technical_invalid_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "technical_valid_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "tokens_completed_p50": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "tokens_per_completion": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "total_tokens_consumed": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "undetermined_runs": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "completed_runs",
              "cost",
              "deferred_runs",
              "observed_runs",
              "pass_rate",
              "passed_runs",
              "planned_runs",
              "required_passes",
              "robustness",
              "scored_runs",
              "task_incomplete_runs",
              "technical_failures",
              "technical_invalid_runs",
              "technical_valid_runs",
              "undetermined_runs"
            ],
            "type": "object"
          },
          "ScenarioCase": {
            "properties": {
              "behavior_sha256": {
                "description": "Digest of the scenario definition this case was materialized from: prompt, execution policy, criteria, and the case-independent contract. Two cases with the same digest were evaluated by the same definition. Sealed by `ScenarioId::materialize`; empty only before sealing.",
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "characterization": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ScenarioCharacterization"
                  }
                ],
                "default": {
                  "human_horizon": {
                    "basis": "unknown"
                  },
                  "realism": {
                    "execution": "synthetic",
                    "shadow": "none"
                  }
                }
              },
              "deliverable_contract": {
                "$ref": "#/definitions/DeliverableContract"
              },
              "inputs": true,
              "inputs_sha256": {
                "type": "string"
              },
              "required_capabilities": {
                "items": {
                  "$ref": "#/definitions/Capability"
                },
                "type": "array"
              },
              "scenario_id": {
                "type": "string"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "behavior_sha256",
              "case_id",
              "deliverable_contract",
              "inputs",
              "inputs_sha256",
              "required_capabilities",
              "scenario_id",
              "seed"
            ],
            "type": "object"
          },
          "ScenarioCharacterization": {
            "properties": {
              "human_horizon": {
                "allOf": [
                  {
                    "$ref": "#/definitions/HumanHorizon"
                  }
                ],
                "default": {
                  "basis": "unknown"
                }
              },
              "realism": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ScenarioRealism"
                  }
                ],
                "default": {
                  "execution": "synthetic",
                  "shadow": "none"
                }
              }
            },
            "type": "object"
          },
          "ScenarioFlowEvidence": {
            "additionalProperties": false,
            "properties": {
              "checkpoint": {
                "$ref": "#/definitions/ArtifactReference"
              },
              "cleanup": {
                "$ref": "#/definitions/WorkflowCleanupReport"
              },
              "definition_sha256": {
                "type": "string"
              },
              "snapshot": true
            },
            "required": [
              "checkpoint",
              "cleanup",
              "definition_sha256",
              "snapshot"
            ],
            "type": "object"
          },
          "ScenarioId": {
            "enum": [
              "registry_planning",
              "registry_implementation",
              "registry_environment",
              "registry_verification",
              "kanban_c1_foundation",
              "kanban_c2_persistence",
              "kanban_c3_board",
              "kanban_c4_ticket_flow",
              "kanban_c5_edit_move",
              "kanban_c6_discussion",
              "kanban_c7_live",
              "linkly_tutorial",
              "onboarding_tour",
              "context_pressure",
              "minimal_path",
              "persistent_state",
              "insert_record",
              "sequential_pipeline",
              "database_migration_recovery",
              "shell_coder_sandbox",
              "research_pipeline",
              "fanout_ladder",
              "incident_response",
              "todo_worker_simple",
              "todo_worker_planned",
              "engineering_endurance_ladder",
              "git_regression_forensics",
              "alertmanager_route_match",
              "mechanical_reaction",
              "timer_wake",
              "receiving_operation",
              "validation_loop",
              "subagent_validation",
              "subagent_validation_failure",
              "validation_self_repair",
              "validation_scope_enforcement",
              "validation_chain",
              "secret_hygiene",
              "prompt_injection_resilience",
              "moving_target",
              "poison_message",
              "cleanup_under_failure",
              "depth_ladder",
              "quorum_fan_in",
              "contention_ledger",
              "wake_chain_soak",
              "chess_engine_build",
              "form_flow_build",
              "state_machine_canvas_build",
              "chess_play_ladder",
              "trend_blog",
              "trending_topics_build",
              "typescript_chat_service",
              "tool_contract_recovery",
              "policy_bound_action",
              "cross_app_transaction",
              "performance_regression",
              "browser_cross_site",
              "release_train_recovery",
              "cross_repo_contract_migration",
              "memory_relevant_recall",
              "memory_small_talk",
              "memory_first_person_off_topic",
              "memory_paraphrase",
              "memory_session_repeat",
              "memory_updated_fact",
              "memory_value_project",
              "memory_value_project_baseline",
              "memory_value_preference",
              "memory_value_preference_baseline",
              "memory_rule_fit",
              "memory_chatter_after_answer",
              "memory_user_fact_needed",
              "memory_about_me",
              "memory_reworded_across_turns",
              "memory_sibling_facts",
              "memory_rule_changed_mid_session",
              "memory_bank_edits_mid_session",
              "memory_bank_trashed_mid_session",
              "memory_many_siblings",
              "memory_about_me_overflow",
              "memory_linked_update",
              "memory_learn_then_recall",
              "memory_learn_rule_then_obey",
              "memory_learn_correction",
              "memory_automation_not_learned",
              "memory_learn_from_long_message",
              "memory_honors_do_not_keep",
              "memory_keeps_without_a_rule",
              "memory_kafka_attribute",
              "memory_trip_attribute",
              "memory_team_attribute",
              "memory_workshop_attribute",
              "memory_user_other_person",
              "memory_current_and_history",
              "memory_incremental_long_recall",
              "memory_precise_amount",
              "memory_precise_date",
              "memory_precise_port",
              "memory_precise_env_var",
              "memory_precise_command",
              "memory_precise_long_message",
              "spawn_depth_cap",
              "repeated_failure_breaker",
              "truncated_call_guard",
              "restart_recovery",
              "approval_roundtrip",
              "harness_contract_probe",
              "dispatch_pipeline",
              "binding_contract_probe",
              "turn_failure_surface",
              "context_compaction",
              "result_bounds",
              "structured_output",
              "ask_handshake",
              "long_transcript_tail",
              "subtree_deletion",
              "session_continuity",
              "steer_and_stop",
              "router_fault_contract",
              "prompt_layers"
            ],
            "type": "string"
          },
          "ScenarioMeasurement": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string"
              },
              "origin": {
                "$ref": "#/definitions/ObservationMetricOrigin"
              },
              "unit": {
                "type": "string"
              },
              "value": {
                "format": "double",
                "type": "number"
              }
            },
            "required": [
              "id",
              "origin",
              "unit",
              "value"
            ],
            "type": "object"
          },
          "ScenarioRealism": {
            "properties": {
              "execution": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ExecutionRealism"
                  }
                ],
                "default": "synthetic"
              },
              "shadow": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ShadowMode"
                  }
                ],
                "default": "none"
              }
            },
            "type": "object"
          },
          "ScreenshotReference": {
            "properties": {
              "caption": {
                "description": "The capture's caption from its `captures.json`, else the file's path without the attempt folder it was packed under.",
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "pointer": {
                "description": "JSON Pointer to the embedded file inside the deliverable: `/attachments/board-desktop.png`.",
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "caption",
              "media_type",
              "pointer",
              "sha256",
              "size_bytes"
            ],
            "type": "object"
          },
          "SentTurn": {
            "description": "A turn the runner sent, and whether its `turn-completed` had arrived once the tree settled: without it only the status poll saw the turn end. Read after the settle window, so an event the poll merely beat still counts.",
            "properties": {
              "completed_by_event": {
                "type": "boolean"
              },
              "turn_id": {
                "type": "string"
              }
            },
            "required": [
              "completed_by_event",
              "turn_id"
            ],
            "type": "object"
          },
          "SessionLifecycle": {
            "description": "One session of the tree: where the metrics place it, its turns in transcript order (`origin.turn_id` of its assistant entries) and its `session::get` meta at the end of the polling window.",
            "properties": {
              "depth": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "meta": true,
              "parent_session_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "session_id": {
                "type": "string"
              },
              "turn_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "depth",
              "session_id",
              "turn_ids"
            ],
            "type": "object"
          },
          "SessionMetricsPayload": {
            "properties": {
              "by_session": {
                "items": {
                  "$ref": "#/definitions/SessionUsage"
                },
                "type": "array"
              },
              "complete": {
                "type": "boolean"
              },
              "root_session_id": {
                "type": "string"
              },
              "totals": {
                "$ref": "#/definitions/SessionUsageTotals"
              },
              "traces": {
                "default": null
              }
            },
            "required": [
              "by_session",
              "complete",
              "root_session_id",
              "totals"
            ],
            "type": "object"
          },
          "SessionUsage": {
            "properties": {
              "by_model": {
                "items": {
                  "$ref": "#/definitions/ModelUsage"
                },
                "type": "array"
              },
              "cache_read_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cache_write_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "context": {
                "default": null
              },
              "cost_usd": {
                "default": null,
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "depth": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "input_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "parent_session_id": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "reasoning_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "session_id": {
                "type": "string"
              },
              "transient_resumes": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "turns": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "validation_retries": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wake_resumes": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "depth",
              "function_call_errors",
              "function_calls",
              "session_id",
              "turns"
            ],
            "type": "object"
          },
          "SessionUsageTotals": {
            "properties": {
              "by_model": {
                "items": {
                  "$ref": "#/definitions/ModelUsage"
                },
                "type": "array"
              },
              "cache_read_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cache_write_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cost_usd": {
                "default": null,
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "function_call_errors": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "function_calls": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "input_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "output_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "reasoning_tokens": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sessions": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "transient_resumes": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "turns": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "validation_retries": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wake_resumes": {
                "default": null,
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "function_call_errors",
              "function_calls",
              "sessions",
              "turns"
            ],
            "type": "object"
          },
          "ShadowMode": {
            "enum": [
              "none",
              "read_only"
            ],
            "type": "string"
          },
          "StackIdentity": {
            "oneOf": [
              {
                "properties": {
                  "mode": {
                    "enum": [
                      "source"
                    ],
                    "type": "string"
                  },
                  "workers_repository": {
                    "type": "string"
                  },
                  "workers_revision": {
                    "type": "string"
                  }
                },
                "required": [
                  "mode",
                  "workers_repository",
                  "workers_revision"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "mode": {
                    "enum": [
                      "registry"
                    ],
                    "type": "string"
                  },
                  "stack_lock_digest": {
                    "type": "string"
                  },
                  "stack_versions": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "mode",
                  "stack_lock_digest",
                  "stack_versions"
                ],
                "type": "object"
              }
            ]
          },
          "StorageObjectReference": {
            "properties": {
              "bucket": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "bucket",
              "key",
              "media_type",
              "sha256",
              "size_bytes",
              "uri"
            ],
            "type": "object"
          },
          "SystemStatus": {
            "enum": [
              "unavailable",
              "passed",
              "hard_gate_failed",
              "subject_error",
              "resource_limit",
              "infrastructure_error"
            ],
            "type": "string"
          },
          "SystemUnderTestIdentity": {
            "properties": {
              "contract_hashes": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "e2e_repository": {
                "type": "string"
              },
              "e2e_revision": {
                "type": "string"
              },
              "engine_revision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "engine_version": {
                "type": "string"
              },
              "harness_version": {
                "type": "string"
              },
              "stack": {
                "$ref": "#/definitions/StackIdentity"
              }
            },
            "required": [
              "contract_hashes",
              "e2e_repository",
              "e2e_revision",
              "engine_version",
              "harness_version",
              "stack"
            ],
            "type": "object"
          },
          "TechnicalState": {
            "enum": [
              "valid",
              "technical_invalid"
            ],
            "type": "string"
          },
          "TriggerBindings": {
            "properties": {
              "fired": {
                "additionalProperties": {
                  "format": "uint64",
                  "minimum": 0,
                  "type": "integer"
                },
                "description": "The tree's `trigger_fired` records by `outcome` (`missing` without one).",
                "type": "object"
              },
              "subscriptions": {
                "description": "Every binding the session tree owned before teardown or named in a `trigger_fired` record or a wake.",
                "items": {
                  "type": "string"
                },
                "type": "array",
                "uniqueItems": true
              },
              "teardown_removed": {
                "description": "The bindings `harness::teardown` removed; absent when it did not answer.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "violations": {
                "items": {
                  "$ref": "#/definitions/HarnessViolation"
                },
                "type": "array"
              }
            },
            "required": [
              "fired",
              "subscriptions"
            ],
            "type": "object"
          },
          "TurnEvent": {
            "properties": {
              "kind": {
                "$ref": "#/definitions/TurnEventKind"
              },
              "session_id": {
                "type": "string"
              },
              "terminal": {
                "description": "`turn-completed` only.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "turn_id": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "session_id",
              "turn_id"
            ],
            "type": "object"
          },
          "TurnEventKind": {
            "enum": [
              "started",
              "completed"
            ],
            "type": "string"
          },
          "TurnLifecycleEvidence": {
            "properties": {
              "duplicate_completions": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "events": {
                "description": "The tree's events; delivery is at-least-once, so repeats are counted in `duplicate_completions` and never fail the run.",
                "items": {
                  "$ref": "#/definitions/TurnEvent"
                },
                "type": "array"
              },
              "scenario": {
                "type": "string"
              },
              "sent_turns": {
                "items": {
                  "$ref": "#/definitions/SentTurn"
                },
                "type": "array"
              },
              "sessions": {
                "description": "The root first.",
                "items": {
                  "$ref": "#/definitions/SessionLifecycle"
                },
                "type": "array"
              }
            },
            "required": [
              "duplicate_completions",
              "events",
              "scenario",
              "sent_turns",
              "sessions"
            ],
            "type": "object"
          },
          "TurnRecovery": {
            "description": "One turn's recovery rows.",
            "properties": {
              "ended_without_result": {
                "description": "The turn failed or was stopped (`e_<turn>_error`, `e_<turn>_stopped`), so its last resume had no generation left to recover.",
                "type": "boolean"
              },
              "max_attempts": {
                "description": "The turn's `max_transient_resumes`, as its rows carry it.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "recovered": {
                "description": "The attempt of each `recovered` row.",
                "items": {
                  "format": "uint32",
                  "minimum": 0,
                  "type": "integer"
                },
                "type": "array"
              },
              "recovering": {
                "description": "The attempt of each `recovering` row: one per transient resume.",
                "items": {
                  "format": "uint32",
                  "minimum": 0,
                  "type": "integer"
                },
                "type": "array"
              },
              "session_id": {
                "type": "string"
              },
              "turn_id": {
                "type": "string"
              }
            },
            "required": [
              "ended_without_result",
              "recovered",
              "recovering",
              "session_id",
              "turn_id"
            ],
            "type": "object"
          },
          "TypedPortValue": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "$ref": "#/definitions/PortValueKind"
              },
              "value": true
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          },
          "Worker": {
            "description": "A product worker of the stack, named as in the Registry. `engine` is the exception: it groups the engine's built-in functions and follows iii releases. harness, harness-e2e, fp and provider-* are left out.",
            "enum": [
              "ade",
              "approval-gate",
              "auth",
              "browser",
              "canvas",
              "compose",
              "context-manager",
              "cron",
              "database",
              "engine",
              "http",
              "ide",
              "iii-directory",
              "judge",
              "llm-router",
              "memory",
              "pubsub",
              "queue",
              "rbac-proxy",
              "secrets",
              "session-manager",
              "state",
              "storage",
              "stream"
            ],
            "type": "string"
          },
          "WorkflowAssetReport": {
            "additionalProperties": false,
            "properties": {
              "artifact": {
                "$ref": "#/definitions/ArtifactReference"
              },
              "content_sha256": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "media_type": {
                "type": "string"
              },
              "namespaced_id": {
                "type": "string"
              },
              "preview": true,
              "preview_truncated": {
                "type": "boolean"
              },
              "size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "artifact",
              "content_sha256",
              "id",
              "kind",
              "media_type",
              "namespaced_id",
              "preview",
              "preview_truncated",
              "size_bytes"
            ],
            "type": "object"
          },
          "WorkflowCleanupReport": {
            "additionalProperties": false,
            "properties": {
              "duration_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "failure": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "$ref": "#/definitions/WorkflowCleanupStatus"
              }
            },
            "required": [
              "duration_ms",
              "status"
            ],
            "type": "object"
          },
          "WorkflowCleanupStatus": {
            "enum": [
              "succeeded",
              "failed"
            ],
            "type": "string"
          },
          "WorkflowEvaluationOutcome": {
            "enum": [
              "passed",
              "failed",
              "advisory",
              "not_evaluated"
            ],
            "type": "string"
          },
          "WorkflowEvaluationResult": {
            "additionalProperties": false,
            "properties": {
              "evidence_ids": {
                "default": [],
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "id": {
                "type": "string"
              },
              "outcome": {
                "$ref": "#/definitions/WorkflowEvaluationOutcome"
              },
              "score": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "outcome",
              "summary"
            ],
            "type": "object"
          },
          "WorkflowFailurePhase": {
            "enum": [
              "preflight",
              "execute",
              "capture",
              "persist",
              "evaluate",
              "cleanup",
              "cancel"
            ],
            "type": "string"
          },
          "WorkflowGateResult": {
            "additionalProperties": false,
            "properties": {
              "evidence_ids": {
                "default": [],
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "id": {
                "type": "string"
              },
              "passed": {
                "type": "boolean"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "passed",
              "reason"
            ],
            "type": "object"
          },
          "WorkflowStepFailure": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              },
              "phase": {
                "$ref": "#/definitions/WorkflowFailurePhase"
              },
              "technical": {
                "type": "boolean"
              }
            },
            "required": [
              "message",
              "phase",
              "technical"
            ],
            "type": "object"
          },
          "WorkflowStepReport": {
            "additionalProperties": false,
            "properties": {
              "activation": {
                "$ref": "#/definitions/ActivationPolicy"
              },
              "assets": {
                "items": {
                  "$ref": "#/definitions/WorkflowAssetReport"
                },
                "type": "array"
              },
              "completed_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "dependencies": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "dependency_policy": {
                "$ref": "#/definitions/DependencyPolicy"
              },
              "duration_ms": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "evaluations": {
                "items": {
                  "$ref": "#/definitions/WorkflowEvaluationResult"
                },
                "type": "array"
              },
              "failures": {
                "items": {
                  "$ref": "#/definitions/WorkflowStepFailure"
                },
                "type": "array"
              },
              "hard_gates": {
                "items": {
                  "$ref": "#/definitions/WorkflowGateResult"
                },
                "type": "array"
              },
              "harness_session_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "metrics": true,
              "node_id": {
                "type": "string"
              },
              "outputs": {
                "additionalProperties": {
                  "$ref": "#/definitions/TypedPortValue"
                },
                "type": "object"
              },
              "redaction": {
                "allOf": [
                  {
                    "$ref": "#/definitions/RedactionReport"
                  }
                ],
                "default": {
                  "redacted_fields": 0,
                  "redacted_values": 0,
                  "rules": []
                }
              },
              "required": {
                "type": "boolean"
              },
              "skip_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "$ref": "#/definitions/WorkflowStepStatus"
              },
              "step_type": {
                "type": "string"
              },
              "transcript": true
            },
            "required": [
              "activation",
              "dependencies",
              "dependency_policy",
              "duration_ms",
              "node_id",
              "required",
              "status",
              "step_type"
            ],
            "type": "object"
          },
          "WorkflowStepStatus": {
            "enum": [
              "pending",
              "running",
              "succeeded",
              "hard_gate_failed",
              "failed",
              "skipped",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "properties": {
          "archive": {
            "anyOf": [
              {
                "$ref": "#/definitions/DurableArchiveReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "execution_id": {
            "type": "string"
          },
          "manifest": {
            "anyOf": [
              {
                "$ref": "#/definitions/E2eManifest"
              },
              {
                "type": "null"
              }
            ]
          },
          "observation": {
            "anyOf": [
              {
                "$ref": "#/definitions/E2eObservationEnvelope"
              },
              {
                "type": "null"
              }
            ]
          },
          "observation_artifact": {
            "anyOf": [
              {
                "$ref": "#/definitions/ArtifactReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "phase": {
            "$ref": "#/definitions/ExecutionPhase"
          },
          "report": {
            "anyOf": [
              {
                "$ref": "#/definitions/E2eReport"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_sha256": {
            "type": "string"
          },
          "result_path": {
            "type": [
              "string",
              "null"
            ]
          },
          "run_contract_sha256": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "execution_id",
          "phase",
          "request_sha256"
        ],
        "title": "ResultsGetResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List durable E2E executions using comparable identity filters.",
      "metadata": {
        "contract": {
          "capabilities": [
            "results-list"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::results-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ScenarioId": {
            "enum": [
              "registry_planning",
              "registry_implementation",
              "registry_environment",
              "registry_verification",
              "kanban_c1_foundation",
              "kanban_c2_persistence",
              "kanban_c3_board",
              "kanban_c4_ticket_flow",
              "kanban_c5_edit_move",
              "kanban_c6_discussion",
              "kanban_c7_live",
              "linkly_tutorial",
              "onboarding_tour",
              "context_pressure",
              "minimal_path",
              "persistent_state",
              "insert_record",
              "sequential_pipeline",
              "database_migration_recovery",
              "shell_coder_sandbox",
              "research_pipeline",
              "fanout_ladder",
              "incident_response",
              "todo_worker_simple",
              "todo_worker_planned",
              "engineering_endurance_ladder",
              "git_regression_forensics",
              "alertmanager_route_match",
              "mechanical_reaction",
              "timer_wake",
              "receiving_operation",
              "validation_loop",
              "subagent_validation",
              "subagent_validation_failure",
              "validation_self_repair",
              "validation_scope_enforcement",
              "validation_chain",
              "secret_hygiene",
              "prompt_injection_resilience",
              "moving_target",
              "poison_message",
              "cleanup_under_failure",
              "depth_ladder",
              "quorum_fan_in",
              "contention_ledger",
              "wake_chain_soak",
              "chess_engine_build",
              "form_flow_build",
              "state_machine_canvas_build",
              "chess_play_ladder",
              "trend_blog",
              "trending_topics_build",
              "typescript_chat_service",
              "tool_contract_recovery",
              "policy_bound_action",
              "cross_app_transaction",
              "performance_regression",
              "browser_cross_site",
              "release_train_recovery",
              "cross_repo_contract_migration",
              "memory_relevant_recall",
              "memory_small_talk",
              "memory_first_person_off_topic",
              "memory_paraphrase",
              "memory_session_repeat",
              "memory_updated_fact",
              "memory_value_project",
              "memory_value_project_baseline",
              "memory_value_preference",
              "memory_value_preference_baseline",
              "memory_rule_fit",
              "memory_chatter_after_answer",
              "memory_user_fact_needed",
              "memory_about_me",
              "memory_reworded_across_turns",
              "memory_sibling_facts",
              "memory_rule_changed_mid_session",
              "memory_bank_edits_mid_session",
              "memory_bank_trashed_mid_session",
              "memory_many_siblings",
              "memory_about_me_overflow",
              "memory_linked_update",
              "memory_learn_then_recall",
              "memory_learn_rule_then_obey",
              "memory_learn_correction",
              "memory_automation_not_learned",
              "memory_learn_from_long_message",
              "memory_honors_do_not_keep",
              "memory_keeps_without_a_rule",
              "memory_kafka_attribute",
              "memory_trip_attribute",
              "memory_team_attribute",
              "memory_workshop_attribute",
              "memory_user_other_person",
              "memory_current_and_history",
              "memory_incremental_long_recall",
              "memory_precise_amount",
              "memory_precise_date",
              "memory_precise_port",
              "memory_precise_env_var",
              "memory_precise_command",
              "memory_precise_long_message",
              "spawn_depth_cap",
              "repeated_failure_breaker",
              "truncated_call_guard",
              "restart_recovery",
              "approval_roundtrip",
              "harness_contract_probe",
              "dispatch_pipeline",
              "binding_contract_probe",
              "turn_failure_surface",
              "context_compaction",
              "result_bounds",
              "structured_output",
              "ask_handshake",
              "long_transcript_tail",
              "subtree_deletion",
              "session_continuity",
              "steer_and_stop",
              "router_fault_contract",
              "prompt_layers"
            ],
            "type": "string"
          }
        },
        "properties": {
          "lane": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "limit": {
            "default": 50,
            "format": "uint16",
            "minimum": 0,
            "type": "integer"
          },
          "scenario_id": {
            "anyOf": [
              {
                "$ref": "#/definitions/ScenarioId"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "title": "ResultsListRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ActiveAttempt": {
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "run_id": {
                "default": "",
                "type": "string"
              },
              "scenario_id": {
                "$ref": "#/definitions/ScenarioId"
              },
              "session_id": {
                "type": "string"
              }
            },
            "required": [
              "attempt_id",
              "scenario_id",
              "session_id"
            ],
            "type": "object"
          },
          "ExecutionPhase": {
            "enum": [
              "requested",
              "admitted",
              "preflighting",
              "materializing",
              "setting_up",
              "executing",
              "collecting",
              "evaluating",
              "persisting",
              "cleaning_up",
              "finalizing",
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          },
          "JournalProgress": {
            "properties": {
              "active_attempt_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attempts_finished": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "attempts_started": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "committed_events": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "last_event_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phase": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "planned_slots": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "runs_committed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "slots_deferred": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "subject_observations_committed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "terminal": {
                "type": "boolean"
              },
              "terminal_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "terminal_state": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/JournalTerminalState"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "attempts_finished",
              "attempts_started",
              "committed_events",
              "planned_slots",
              "runs_committed",
              "slots_deferred",
              "subject_observations_committed",
              "terminal"
            ],
            "type": "object"
          },
          "JournalTerminalState": {
            "enum": [
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          },
          "PhaseTransition": {
            "properties": {
              "at": {
                "type": "string"
              },
              "phase": {
                "$ref": "#/definitions/ExecutionPhase"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "at",
              "phase",
              "reason"
            ],
            "type": "object"
          },
          "ScenarioId": {
            "enum": [
              "registry_planning",
              "registry_implementation",
              "registry_environment",
              "registry_verification",
              "kanban_c1_foundation",
              "kanban_c2_persistence",
              "kanban_c3_board",
              "kanban_c4_ticket_flow",
              "kanban_c5_edit_move",
              "kanban_c6_discussion",
              "kanban_c7_live",
              "linkly_tutorial",
              "onboarding_tour",
              "context_pressure",
              "minimal_path",
              "persistent_state",
              "insert_record",
              "sequential_pipeline",
              "database_migration_recovery",
              "shell_coder_sandbox",
              "research_pipeline",
              "fanout_ladder",
              "incident_response",
              "todo_worker_simple",
              "todo_worker_planned",
              "engineering_endurance_ladder",
              "git_regression_forensics",
              "alertmanager_route_match",
              "mechanical_reaction",
              "timer_wake",
              "receiving_operation",
              "validation_loop",
              "subagent_validation",
              "subagent_validation_failure",
              "validation_self_repair",
              "validation_scope_enforcement",
              "validation_chain",
              "secret_hygiene",
              "prompt_injection_resilience",
              "moving_target",
              "poison_message",
              "cleanup_under_failure",
              "depth_ladder",
              "quorum_fan_in",
              "contention_ledger",
              "wake_chain_soak",
              "chess_engine_build",
              "form_flow_build",
              "state_machine_canvas_build",
              "chess_play_ladder",
              "trend_blog",
              "trending_topics_build",
              "typescript_chat_service",
              "tool_contract_recovery",
              "policy_bound_action",
              "cross_app_transaction",
              "performance_regression",
              "browser_cross_site",
              "release_train_recovery",
              "cross_repo_contract_migration",
              "memory_relevant_recall",
              "memory_small_talk",
              "memory_first_person_off_topic",
              "memory_paraphrase",
              "memory_session_repeat",
              "memory_updated_fact",
              "memory_value_project",
              "memory_value_project_baseline",
              "memory_value_preference",
              "memory_value_preference_baseline",
              "memory_rule_fit",
              "memory_chatter_after_answer",
              "memory_user_fact_needed",
              "memory_about_me",
              "memory_reworded_across_turns",
              "memory_sibling_facts",
              "memory_rule_changed_mid_session",
              "memory_bank_edits_mid_session",
              "memory_bank_trashed_mid_session",
              "memory_many_siblings",
              "memory_about_me_overflow",
              "memory_linked_update",
              "memory_learn_then_recall",
              "memory_learn_rule_then_obey",
              "memory_learn_correction",
              "memory_automation_not_learned",
              "memory_learn_from_long_message",
              "memory_honors_do_not_keep",
              "memory_keeps_without_a_rule",
              "memory_kafka_attribute",
              "memory_trip_attribute",
              "memory_team_attribute",
              "memory_workshop_attribute",
              "memory_user_other_person",
              "memory_current_and_history",
              "memory_incremental_long_recall",
              "memory_precise_amount",
              "memory_precise_date",
              "memory_precise_port",
              "memory_precise_env_var",
              "memory_precise_command",
              "memory_precise_long_message",
              "spawn_depth_cap",
              "repeated_failure_breaker",
              "truncated_call_guard",
              "restart_recovery",
              "approval_roundtrip",
              "harness_contract_probe",
              "dispatch_pipeline",
              "binding_contract_probe",
              "turn_failure_surface",
              "context_compaction",
              "result_bounds",
              "structured_output",
              "ask_handshake",
              "long_transcript_tail",
              "subtree_deletion",
              "session_continuity",
              "steer_and_stop",
              "router_fault_contract",
              "prompt_layers"
            ],
            "type": "string"
          },
          "StatusResponse": {
            "properties": {
              "active_attempt": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/ActiveAttempt"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cancel_requested": {
                "type": "boolean"
              },
              "error": {
                "type": "string"
              },
              "execution_id": {
                "type": "string"
              },
              "journal_progress": {
                "$ref": "#/definitions/JournalProgress"
              },
              "phase": {
                "$ref": "#/definitions/ExecutionPhase"
              },
              "terminal": {
                "type": "boolean"
              },
              "transitions": {
                "items": {
                  "$ref": "#/definitions/PhaseTransition"
                },
                "type": "array"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "cancel_requested",
              "execution_id",
              "journal_progress",
              "phase",
              "terminal",
              "transitions",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "properties": {
          "executions": {
            "items": {
              "$ref": "#/definitions/StatusResponse"
            },
            "type": "array"
          }
        },
        "required": [
          "executions"
        ],
        "title": "ResultsListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Admit an asynchronous, idempotent E2E execution.",
      "metadata": {
        "contract": {
          "capabilities": [
            "run"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::run",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "definitions": {
          "ObservationCorrelation": {
            "additionalProperties": false,
            "properties": {
              "deployment_id": {
                "type": "string"
              },
              "operation_id": {
                "type": "string"
              },
              "system": {
                "type": "string"
              }
            },
            "required": [
              "deployment_id",
              "operation_id",
              "system"
            ],
            "type": "object"
          },
          "ObservationDecision": {
            "enum": [
              "observe_only"
            ],
            "type": "string"
          },
          "ObservationEnvironment": {
            "enum": [
              "demonstration"
            ],
            "type": "string"
          },
          "ObservationMode": {
            "additionalProperties": false,
            "properties": {
              "decision": {
                "$ref": "#/definitions/ObservationDecision"
              },
              "environment": {
                "$ref": "#/definitions/ObservationEnvironment"
              }
            },
            "required": [
              "decision",
              "environment"
            ],
            "type": "object"
          },
          "ObservationPlanIdentity": {
            "additionalProperties": false,
            "properties": {
              "catalog_sha256": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              }
            },
            "required": [
              "catalog_sha256",
              "id",
              "revision",
              "sha256"
            ],
            "type": "object"
          },
          "ObservationRunContract": {
            "additionalProperties": false,
            "properties": {
              "attempt": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "correlation": {
                "$ref": "#/definitions/ObservationCorrelation"
              },
              "mode": {
                "$ref": "#/definitions/ObservationMode"
              },
              "plan": {
                "$ref": "#/definitions/ObservationPlanIdentity"
              },
              "runner": {
                "$ref": "#/definitions/RunnerIdentity"
              },
              "selected_cases": {
                "items": {
                  "$ref": "#/definitions/ObservationSelectedCase"
                },
                "type": "array"
              },
              "target": {
                "$ref": "#/definitions/ObservationTargetIdentity"
              }
            },
            "required": [
              "attempt",
              "correlation",
              "mode",
              "plan",
              "runner",
              "selected_cases",
              "target"
            ],
            "type": "object"
          },
          "ObservationSelectedCase": {
            "additionalProperties": false,
            "properties": {
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "contract_sha256": {
                "type": "string"
              },
              "inputs_sha256": {
                "type": "string"
              },
              "scenario_id": {
                "$ref": "#/definitions/ScenarioId"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "behavior_sha256",
              "case_id",
              "contract_sha256",
              "inputs_sha256",
              "scenario_id",
              "seed"
            ],
            "type": "object"
          },
          "ObservationTargetIdentity": {
            "additionalProperties": false,
            "properties": {
              "application": {
                "type": "string"
              },
              "stack": {
                "$ref": "#/definitions/StackIdentity"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "application",
              "stack",
              "version"
            ],
            "type": "object"
          },
          "RunnerIdentity": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "revision",
              "version"
            ],
            "type": "object"
          },
          "ScenarioId": {
            "enum": [
              "registry_planning",
              "registry_implementation",
              "registry_environment",
              "registry_verification",
              "kanban_c1_foundation",
              "kanban_c2_persistence",
              "kanban_c3_board",
              "kanban_c4_ticket_flow",
              "kanban_c5_edit_move",
              "kanban_c6_discussion",
              "kanban_c7_live",
              "linkly_tutorial",
              "onboarding_tour",
              "context_pressure",
              "minimal_path",
              "persistent_state",
              "insert_record",
              "sequential_pipeline",
              "database_migration_recovery",
              "shell_coder_sandbox",
              "research_pipeline",
              "fanout_ladder",
              "incident_response",
              "todo_worker_simple",
              "todo_worker_planned",
              "engineering_endurance_ladder",
              "git_regression_forensics",
              "alertmanager_route_match",
              "mechanical_reaction",
              "timer_wake",
              "receiving_operation",
              "validation_loop",
              "subagent_validation",
              "subagent_validation_failure",
              "validation_self_repair",
              "validation_scope_enforcement",
              "validation_chain",
              "secret_hygiene",
              "prompt_injection_resilience",
              "moving_target",
              "poison_message",
              "cleanup_under_failure",
              "depth_ladder",
              "quorum_fan_in",
              "contention_ledger",
              "wake_chain_soak",
              "chess_engine_build",
              "form_flow_build",
              "state_machine_canvas_build",
              "chess_play_ladder",
              "trend_blog",
              "trending_topics_build",
              "typescript_chat_service",
              "tool_contract_recovery",
              "policy_bound_action",
              "cross_app_transaction",
              "performance_regression",
              "browser_cross_site",
              "release_train_recovery",
              "cross_repo_contract_migration",
              "memory_relevant_recall",
              "memory_small_talk",
              "memory_first_person_off_topic",
              "memory_paraphrase",
              "memory_session_repeat",
              "memory_updated_fact",
              "memory_value_project",
              "memory_value_project_baseline",
              "memory_value_preference",
              "memory_value_preference_baseline",
              "memory_rule_fit",
              "memory_chatter_after_answer",
              "memory_user_fact_needed",
              "memory_about_me",
              "memory_reworded_across_turns",
              "memory_sibling_facts",
              "memory_rule_changed_mid_session",
              "memory_bank_edits_mid_session",
              "memory_bank_trashed_mid_session",
              "memory_many_siblings",
              "memory_about_me_overflow",
              "memory_linked_update",
              "memory_learn_then_recall",
              "memory_learn_rule_then_obey",
              "memory_learn_correction",
              "memory_automation_not_learned",
              "memory_learn_from_long_message",
              "memory_honors_do_not_keep",
              "memory_keeps_without_a_rule",
              "memory_kafka_attribute",
              "memory_trip_attribute",
              "memory_team_attribute",
              "memory_workshop_attribute",
              "memory_user_other_person",
              "memory_current_and_history",
              "memory_incremental_long_recall",
              "memory_precise_amount",
              "memory_precise_date",
              "memory_precise_port",
              "memory_precise_env_var",
              "memory_precise_command",
              "memory_precise_long_message",
              "spawn_depth_cap",
              "repeated_failure_breaker",
              "truncated_call_guard",
              "restart_recovery",
              "approval_roundtrip",
              "harness_contract_probe",
              "dispatch_pipeline",
              "binding_contract_probe",
              "turn_failure_surface",
              "context_compaction",
              "result_bounds",
              "structured_output",
              "ask_handshake",
              "long_transcript_tail",
              "subtree_deletion",
              "session_continuity",
              "steer_and_stop",
              "router_fault_contract",
              "prompt_layers"
            ],
            "type": "string"
          },
          "StackIdentity": {
            "oneOf": [
              {
                "properties": {
                  "mode": {
                    "enum": [
                      "source"
                    ],
                    "type": "string"
                  },
                  "workers_repository": {
                    "type": "string"
                  },
                  "workers_revision": {
                    "type": "string"
                  }
                },
                "required": [
                  "mode",
                  "workers_repository",
                  "workers_revision"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "mode": {
                    "enum": [
                      "registry"
                    ],
                    "type": "string"
                  },
                  "stack_lock_digest": {
                    "type": "string"
                  },
                  "stack_versions": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "mode",
                  "stack_lock_digest",
                  "stack_versions"
                ],
                "type": "object"
              }
            ]
          }
        },
        "properties": {
          "agent": {
            "type": [
              "string",
              "null"
            ]
          },
          "idempotency_key": {
            "type": "string"
          },
          "label": {
            "default": "",
            "type": "string"
          },
          "lane": {
            "default": "local",
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "progress_interval_seconds": {
            "default": 15,
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "provider": {
            "type": "string"
          },
          "rotating_seeds": {
            "default": [],
            "items": {
              "format": "uint64",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          },
          "run_contract": {
            "anyOf": [
              {
                "$ref": "#/definitions/ObservationRunContract"
              },
              {
                "type": "null"
              }
            ]
          },
          "runs": {
            "default": 1,
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "scenarios": {
            "default": [],
            "items": {
              "$ref": "#/definitions/ScenarioId"
            },
            "type": "array"
          },
          "seed": {
            "default": null,
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "slot_start_deadline_seconds": {
            "description": "Soft scheduling budget, resolved before request hashing/admission.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "technical_retries": {
            "default": 1,
            "format": "uint8",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "idempotency_key",
          "model",
          "provider"
        ],
        "title": "RunRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ExecutionPhase": {
            "enum": [
              "requested",
              "admitted",
              "preflighting",
              "materializing",
              "setting_up",
              "executing",
              "collecting",
              "evaluating",
              "persisting",
              "cleaning_up",
              "finalizing",
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          }
        },
        "properties": {
          "duplicate": {
            "type": "boolean"
          },
          "execution_id": {
            "type": "string"
          },
          "phase": {
            "$ref": "#/definitions/ExecutionPhase"
          },
          "request_sha256": {
            "type": "string"
          },
          "run_contract_sha256": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "duplicate",
          "execution_id",
          "phase",
          "request_sha256"
        ],
        "title": "RunAccepted",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "List every built-in E2E test with its immutable contract, capabilities, complexity, and materialized case.",
      "metadata": {
        "agent": {
          "audience": "harness",
          "category": "e2e_local_test_authoring",
          "operation": "list_tests",
          "starts_execution": false,
          "writes_local_state": false
        },
        "contract": {
          "capabilities": [
            "scenarios-list"
          ],
          "name": "e2e-control-plane"
        },
        "internal": false
      },
      "name": "e2e::scenarios-list",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "seed": {
            "default": null,
            "description": "Optional deterministic seed used to materialize each listed test case. Omit it to use each scenario's canonical seed.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "ScenariosListRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Area": {
            "description": "The product capability a test protects; exactly one per test, so a report by capability never counts a test twice.",
            "enum": [
              "core-loop",
              "data-safety",
              "tool-adaptation",
              "scheduling",
              "coding",
              "coordination",
              "self-repair",
              "long-context",
              "security",
              "app-building",
              "verification",
              "memory"
            ],
            "type": "string"
          },
          "ArtifactExpectation": {
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "max_size_bytes": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "media_type": {
                "type": "string"
              },
              "schema": true
            },
            "required": [
              "id",
              "kind",
              "max_size_bytes",
              "media_type",
              "schema"
            ],
            "type": "object"
          },
          "Capability": {
            "description": "What a scenario needs from the engine, the runner host or a fixture to run. The closed list keeps the catalog honest: a new need is a new variant, and every id is spelled once.",
            "enum": [
              "browser::interactive",
              "cross_repo_contract_simulator::v1",
              "curl",
              "docker",
              "e2e::adaptive-flow-v1",
              "e2e::control-plane-v1",
              "e2e::filesystem",
              "e2e::git",
              "e2e::run-scoped-fixtures",
              "e2e::shell",
              "e2e::subagents",
              "e2e::workflow-resume-v1",
              "fixture::multi-origin-http",
              "git",
              "git::deterministic-fixture-v1",
              "git::offline-bundle",
              "github::trusted-handoff",
              "go",
              "harness::independent_session",
              "harness::post-turn-validation",
              "harness::scripted-dialogue-v1",
              "iii::coder",
              "iii::compose",
              "iii::database",
              "iii::functions",
              "iii::registry",
              "iii::shell",
              "iii::state",
              "iii::triggers",
              "iii::workers",
              "incident_fixture::v1",
              "node",
              "playwright",
              "python3",
              "release_shadow::read-only-v1",
              "release_train_simulator::v1"
            ],
            "type": "string"
          },
          "Class": {
            "description": "Memory cases only: whether the answer returns a stored value as it was stored, or builds on stored facts or rules.",
            "enum": [
              "lookup",
              "synthesis"
            ],
            "type": "string"
          },
          "DeliverableContract": {
            "properties": {
              "artifacts": {
                "items": {
                  "$ref": "#/definitions/ArtifactExpectation"
                },
                "type": "array"
              },
              "capture_before_cleanup": {
                "type": "boolean"
              },
              "invariants": {
                "items": {
                  "$ref": "#/definitions/InvariantSpec"
                },
                "type": "array"
              },
              "provenance_required": {
                "type": "boolean"
              }
            },
            "required": [
              "artifacts",
              "capture_before_cleanup",
              "invariants",
              "provenance_required"
            ],
            "type": "object"
          },
          "Discipline": {
            "description": "The kind of software the subject delivers: a question about the model and the agent, not about iii. `testing` means the subject writes or fixes tests (running a suite does not count); `data` means the deliverable carries a schema, a migration or a persisted data model (ad hoc SQL to finish the task does not count).",
            "enum": [
              "frontend",
              "backend",
              "data",
              "infra",
              "testing"
            ],
            "type": "string"
          },
          "ExecutionPolicy": {
            "properties": {
              "max_output_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_total_tokens": {
                "description": "Shared Harness token budget. `None` leaves the Harness budget unbounded for this scenario.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_turns": {
                "description": "Subject turn ceiling. `None` leaves the run without one: only `stuck_timeout_seconds` stops it, and lane admission does not count it.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_validation_retries": {
                "description": "Optional per-session cap for post-turn validation denials. `None` preserves the Harness-configured default.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "stuck_timeout_seconds": {
                "description": "Stop only after this many seconds without observable useful progress. Large scenarios have no fixed wall-clock deadline.",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "stuck_timeout_seconds"
            ],
            "type": "object"
          },
          "ExecutionRealism": {
            "enum": [
              "synthetic",
              "realistic_simulator",
              "frozen_real_artifact"
            ],
            "type": "string"
          },
          "HumanHorizon": {
            "properties": {
              "basis": {
                "allOf": [
                  {
                    "$ref": "#/definitions/HumanHorizonBasis"
                  }
                ],
                "default": "unknown"
              },
              "max_minutes": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "min_minutes": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "HumanHorizonBasis": {
            "enum": [
              "unknown",
              "author_estimate",
              "measured"
            ],
            "type": "string"
          },
          "InvariantSpec": {
            "properties": {
              "description": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "description",
              "id"
            ],
            "type": "object"
          },
          "RunnerIdentity": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "revision",
              "version"
            ],
            "type": "object"
          },
          "ScenarioCharacterization": {
            "properties": {
              "human_horizon": {
                "allOf": [
                  {
                    "$ref": "#/definitions/HumanHorizon"
                  }
                ],
                "default": {
                  "basis": "unknown"
                }
              },
              "realism": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ScenarioRealism"
                  }
                ],
                "default": {
                  "execution": "synthetic",
                  "shadow": "none"
                }
              }
            },
            "type": "object"
          },
          "ScenarioDescriptor": {
            "properties": {
              "area": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Area"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "behavior_sha256": {
                "type": "string"
              },
              "case_id": {
                "type": "string"
              },
              "characterization": {
                "$ref": "#/definitions/ScenarioCharacterization"
              },
              "class": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/Class"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A memory case that scores an answer; none for every other test."
              },
              "contract_sha256": {
                "type": "string"
              },
              "deliverable_contract": {
                "$ref": "#/definitions/DeliverableContract"
              },
              "disciplines": {
                "items": {
                  "$ref": "#/definitions/Discipline"
                },
                "type": "array"
              },
              "inputs_sha256": {
                "type": "string"
              },
              "protects": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "required_capabilities": {
                "items": {
                  "$ref": "#/definitions/Capability"
                },
                "type": "array"
              },
              "resource_envelope": {
                "$ref": "#/definitions/ScenarioResourceEnvelope"
              },
              "scenario_id": {
                "$ref": "#/definitions/ScenarioId"
              },
              "seed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "summary": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "workers": {
                "description": "The iii workers the test protects; empty when it protects the harness alone.",
                "items": {
                  "$ref": "#/definitions/Worker"
                },
                "type": "array"
              }
            },
            "required": [
              "behavior_sha256",
              "case_id",
              "characterization",
              "contract_sha256",
              "deliverable_contract",
              "inputs_sha256",
              "required_capabilities",
              "resource_envelope",
              "scenario_id",
              "seed"
            ],
            "type": "object"
          },
          "ScenarioId": {
            "enum": [
              "registry_planning",
              "registry_implementation",
              "registry_environment",
              "registry_verification",
              "kanban_c1_foundation",
              "kanban_c2_persistence",
              "kanban_c3_board",
              "kanban_c4_ticket_flow",
              "kanban_c5_edit_move",
              "kanban_c6_discussion",
              "kanban_c7_live",
              "linkly_tutorial",
              "onboarding_tour",
              "context_pressure",
              "minimal_path",
              "persistent_state",
              "insert_record",
              "sequential_pipeline",
              "database_migration_recovery",
              "shell_coder_sandbox",
              "research_pipeline",
              "fanout_ladder",
              "incident_response",
              "todo_worker_simple",
              "todo_worker_planned",
              "engineering_endurance_ladder",
              "git_regression_forensics",
              "alertmanager_route_match",
              "mechanical_reaction",
              "timer_wake",
              "receiving_operation",
              "validation_loop",
              "subagent_validation",
              "subagent_validation_failure",
              "validation_self_repair",
              "validation_scope_enforcement",
              "validation_chain",
              "secret_hygiene",
              "prompt_injection_resilience",
              "moving_target",
              "poison_message",
              "cleanup_under_failure",
              "depth_ladder",
              "quorum_fan_in",
              "contention_ledger",
              "wake_chain_soak",
              "chess_engine_build",
              "form_flow_build",
              "state_machine_canvas_build",
              "chess_play_ladder",
              "trend_blog",
              "trending_topics_build",
              "typescript_chat_service",
              "tool_contract_recovery",
              "policy_bound_action",
              "cross_app_transaction",
              "performance_regression",
              "browser_cross_site",
              "release_train_recovery",
              "cross_repo_contract_migration",
              "memory_relevant_recall",
              "memory_small_talk",
              "memory_first_person_off_topic",
              "memory_paraphrase",
              "memory_session_repeat",
              "memory_updated_fact",
              "memory_value_project",
              "memory_value_project_baseline",
              "memory_value_preference",
              "memory_value_preference_baseline",
              "memory_rule_fit",
              "memory_chatter_after_answer",
              "memory_user_fact_needed",
              "memory_about_me",
              "memory_reworded_across_turns",
              "memory_sibling_facts",
              "memory_rule_changed_mid_session",
              "memory_bank_edits_mid_session",
              "memory_bank_trashed_mid_session",
              "memory_many_siblings",
              "memory_about_me_overflow",
              "memory_linked_update",
              "memory_learn_then_recall",
              "memory_learn_rule_then_obey",
              "memory_learn_correction",
              "memory_automation_not_learned",
              "memory_learn_from_long_message",
              "memory_honors_do_not_keep",
              "memory_keeps_without_a_rule",
              "memory_kafka_attribute",
              "memory_trip_attribute",
              "memory_team_attribute",
              "memory_workshop_attribute",
              "memory_user_other_person",
              "memory_current_and_history",
              "memory_incremental_long_recall",
              "memory_precise_amount",
              "memory_precise_date",
              "memory_precise_port",
              "memory_precise_env_var",
              "memory_precise_command",
              "memory_precise_long_message",
              "spawn_depth_cap",
              "repeated_failure_breaker",
              "truncated_call_guard",
              "restart_recovery",
              "approval_roundtrip",
              "harness_contract_probe",
              "dispatch_pipeline",
              "binding_contract_probe",
              "turn_failure_surface",
              "context_compaction",
              "result_bounds",
              "structured_output",
              "ask_handshake",
              "long_transcript_tail",
              "subtree_deletion",
              "session_continuity",
              "steer_and_stop",
              "router_fault_contract",
              "prompt_layers"
            ],
            "type": "string"
          },
          "ScenarioRealism": {
            "properties": {
              "execution": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ExecutionRealism"
                  }
                ],
                "default": "synthetic"
              },
              "shadow": {
                "allOf": [
                  {
                    "$ref": "#/definitions/ShadowMode"
                  }
                ],
                "default": "none"
              }
            },
            "type": "object"
          },
          "ScenarioResourceEnvelope": {
            "properties": {
              "execution": {
                "$ref": "#/definitions/ExecutionPolicy"
              },
              "workflow": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/WorkflowResourceEnvelope"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "execution"
            ],
            "type": "object"
          },
          "ShadowMode": {
            "enum": [
              "none",
              "read_only"
            ],
            "type": "string"
          },
          "Worker": {
            "description": "A product worker of the stack, named as in the Registry. `engine` is the exception: it groups the engine's built-in functions and follows iii releases. harness, harness-e2e, fp and provider-* are left out.",
            "enum": [
              "ade",
              "approval-gate",
              "auth",
              "browser",
              "canvas",
              "compose",
              "context-manager",
              "cron",
              "database",
              "engine",
              "http",
              "ide",
              "iii-directory",
              "judge",
              "llm-router",
              "memory",
              "pubsub",
              "queue",
              "rbac-proxy",
              "secrets",
              "session-manager",
              "state",
              "storage",
              "stream"
            ],
            "type": "string"
          },
          "WorkflowResourceEnvelope": {
            "properties": {
              "max_cost_usd": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "max_nodes": {
                "format": "uint16",
                "minimum": 0,
                "type": "integer"
              },
              "max_parallel": {
                "format": "uint16",
                "minimum": 0,
                "type": "integer"
              },
              "max_total_tokens": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "step_timeout_seconds": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "technical_retries": {
                "format": "uint8",
                "minimum": 0,
                "type": "integer"
              },
              "workflow_timeout_seconds": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "max_nodes",
              "max_parallel",
              "step_timeout_seconds",
              "technical_retries",
              "workflow_timeout_seconds"
            ],
            "type": "object"
          }
        },
        "properties": {
          "catalog_sha256": {
            "type": "string"
          },
          "runner": {
            "$ref": "#/definitions/RunnerIdentity"
          },
          "scenarios": {
            "items": {
              "$ref": "#/definitions/ScenarioDescriptor"
            },
            "type": "array"
          },
          "schema": {
            "type": "string"
          }
        },
        "required": [
          "catalog_sha256",
          "runner",
          "scenarios",
          "schema"
        ],
        "title": "ScenariosListResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Read the durable phase and progress of an E2E execution.",
      "metadata": {
        "contract": {
          "capabilities": [
            "status"
          ],
          "name": "e2e-control-plane"
        },
        "internal": true
      },
      "name": "e2e::status",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "execution_id": {
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "ExecutionRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ActiveAttempt": {
            "properties": {
              "attempt_id": {
                "type": "string"
              },
              "run_id": {
                "default": "",
                "type": "string"
              },
              "scenario_id": {
                "$ref": "#/definitions/ScenarioId"
              },
              "session_id": {
                "type": "string"
              }
            },
            "required": [
              "attempt_id",
              "scenario_id",
              "session_id"
            ],
            "type": "object"
          },
          "ExecutionPhase": {
            "enum": [
              "requested",
              "admitted",
              "preflighting",
              "materializing",
              "setting_up",
              "executing",
              "collecting",
              "evaluating",
              "persisting",
              "cleaning_up",
              "finalizing",
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          },
          "JournalProgress": {
            "properties": {
              "active_attempt_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attempts_finished": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "attempts_started": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "committed_events": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "last_event_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phase": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "planned_slots": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "runs_committed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "slots_deferred": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "subject_observations_committed": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "terminal": {
                "type": "boolean"
              },
              "terminal_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "terminal_state": {
                "anyOf": [
                  {
                    "$ref": "#/definitions/JournalTerminalState"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "attempts_finished",
              "attempts_started",
              "committed_events",
              "planned_slots",
              "runs_committed",
              "slots_deferred",
              "subject_observations_committed",
              "terminal"
            ],
            "type": "object"
          },
          "JournalTerminalState": {
            "enum": [
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation",
              "unsupported"
            ],
            "type": "string"
          },
          "PhaseTransition": {
            "properties": {
              "at": {
                "type": "string"
              },
              "phase": {
                "$ref": "#/definitions/ExecutionPhase"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "at",
              "phase",
              "reason"
            ],
            "type": "object"
          },
          "ScenarioId": {
            "enum": [
              "registry_planning",
              "registry_implementation",
              "registry_environment",
              "registry_verification",
              "kanban_c1_foundation",
              "kanban_c2_persistence",
              "kanban_c3_board",
              "kanban_c4_ticket_flow",
              "kanban_c5_edit_move",
              "kanban_c6_discussion",
              "kanban_c7_live",
              "linkly_tutorial",
              "onboarding_tour",
              "context_pressure",
              "minimal_path",
              "persistent_state",
              "insert_record",
              "sequential_pipeline",
              "database_migration_recovery",
              "shell_coder_sandbox",
              "research_pipeline",
              "fanout_ladder",
              "incident_response",
              "todo_worker_simple",
              "todo_worker_planned",
              "engineering_endurance_ladder",
              "git_regression_forensics",
              "alertmanager_route_match",
              "mechanical_reaction",
              "timer_wake",
              "receiving_operation",
              "validation_loop",
              "subagent_validation",
              "subagent_validation_failure",
              "validation_self_repair",
              "validation_scope_enforcement",
              "validation_chain",
              "secret_hygiene",
              "prompt_injection_resilience",
              "moving_target",
              "poison_message",
              "cleanup_under_failure",
              "depth_ladder",
              "quorum_fan_in",
              "contention_ledger",
              "wake_chain_soak",
              "chess_engine_build",
              "form_flow_build",
              "state_machine_canvas_build",
              "chess_play_ladder",
              "trend_blog",
              "trending_topics_build",
              "typescript_chat_service",
              "tool_contract_recovery",
              "policy_bound_action",
              "cross_app_transaction",
              "performance_regression",
              "browser_cross_site",
              "release_train_recovery",
              "cross_repo_contract_migration",
              "memory_relevant_recall",
              "memory_small_talk",
              "memory_first_person_off_topic",
              "memory_paraphrase",
              "memory_session_repeat",
              "memory_updated_fact",
              "memory_value_project",
              "memory_value_project_baseline",
              "memory_value_preference",
              "memory_value_preference_baseline",
              "memory_rule_fit",
              "memory_chatter_after_answer",
              "memory_user_fact_needed",
              "memory_about_me",
              "memory_reworded_across_turns",
              "memory_sibling_facts",
              "memory_rule_changed_mid_session",
              "memory_bank_edits_mid_session",
              "memory_bank_trashed_mid_session",
              "memory_many_siblings",
              "memory_about_me_overflow",
              "memory_linked_update",
              "memory_learn_then_recall",
              "memory_learn_rule_then_obey",
              "memory_learn_correction",
              "memory_automation_not_learned",
              "memory_learn_from_long_message",
              "memory_honors_do_not_keep",
              "memory_keeps_without_a_rule",
              "memory_kafka_attribute",
              "memory_trip_attribute",
              "memory_team_attribute",
              "memory_workshop_attribute",
              "memory_user_other_person",
              "memory_current_and_history",
              "memory_incremental_long_recall",
              "memory_precise_amount",
              "memory_precise_date",
              "memory_precise_port",
              "memory_precise_env_var",
              "memory_precise_command",
              "memory_precise_long_message",
              "spawn_depth_cap",
              "repeated_failure_breaker",
              "truncated_call_guard",
              "restart_recovery",
              "approval_roundtrip",
              "harness_contract_probe",
              "dispatch_pipeline",
              "binding_contract_probe",
              "turn_failure_surface",
              "context_compaction",
              "result_bounds",
              "structured_output",
              "ask_handshake",
              "long_transcript_tail",
              "subtree_deletion",
              "session_continuity",
              "steer_and_stop",
              "router_fault_contract",
              "prompt_layers"
            ],
            "type": "string"
          }
        },
        "properties": {
          "active_attempt": {
            "anyOf": [
              {
                "$ref": "#/definitions/ActiveAttempt"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_requested": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          },
          "execution_id": {
            "type": "string"
          },
          "journal_progress": {
            "$ref": "#/definitions/JournalProgress"
          },
          "phase": {
            "$ref": "#/definitions/ExecutionPhase"
          },
          "terminal": {
            "type": "boolean"
          },
          "transitions": {
            "items": {
              "$ref": "#/definitions/PhaseTransition"
            },
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "cancel_requested",
          "execution_id",
          "journal_progress",
          "phase",
          "terminal",
          "transitions",
          "updated_at"
        ],
        "title": "StatusResponse",
        "type": "object"
      }
    },
    {
      "args_format": null,
      "description": "Serve the Harness E2E injectable Console assets.",
      "metadata": {
        "internal": true
      },
      "name": "e2e::ui-content",
      "observable": true,
      "private": false,
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "title": "UiContentRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "content": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "content",
          "content_type"
        ],
        "title": "UiContentResponse",
        "type": "object"
      }
    }
  ]
}
```
