# VAIL Agent Assurance Engine API Reference

> Generated from https://agents.projectvail.com/openapi.json (version `0.1.0`). The interactive browser reference is https://agents.projectvail.com/docs/api.

## Core API (v1)

### `POST /v1/agents/{agent_id}/behaviors/{behavior_id}/classifications`

**Set Behavior Classification Override.**

Parameters:
- `behavior_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ClassificationOverrideRequest`
  - `addedCodes` (optional, object<string, array of `string`>)
  - `removedCodes` (optional, object<string, array of `string`>)
  - `modelBased` (optional, `string` | null)
  - `notes` (optional, `string`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/agents/{agent_id}/review/assurance`

**Review Assurance.**

Parameters:
- `agent_id` (path, required, `string`)
- `impact` (query, optional, `string`)
- `framework` (query, optional, `string`)
- `code` (query, optional, `string`)
- `model_based` (query, optional, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/agents/{agent_id}/review/behaviors`

**List Review Behaviors.**

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/agents/{agent_id}/review/probes`

**List Review Probes.**

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/open`

**Open Live Review Probe.**

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ReviewOpenRequest`
  - `probeId` (required, `string`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}`

**Get Review Probe.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/approve`

**Approve Review Probe.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ReviewDecisionRequest`
  - `notes` (optional, `string`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/arm`

**Arm Review Probe.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ReviewArmRequest`
  - `armed` (optional, `boolean`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/critique`

**Critique Review Probe.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/parameters`

**Download Parameters.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/parameters`

**Upload Parameters.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `multipart/form-data`: `Body_upload_parameters_v1_agents__agent_id__review_probes__kind___probe_id__parameters_post`
  - `file` (required, `string`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/parameters/apply`

**Apply Parameters.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ApplyParameters`
  - `uploadRevision` (required, `string`)
  - `expectedVersion` (required, `integer`)
  - `sourceRunId` (required, `string`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/reject`

**Reject Review Probe.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ReviewDecisionRequest`
  - `notes` (optional, `string`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/agents/{agent_id}/review/probes/{kind}/{probe_id}/run`

**Run Review Probe.**

Parameters:
- `kind` (path, required, `string`)
- `probe_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ReviewRunRequest`
  - `repetitions` (optional, `integer`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/metrics/timeseries`

**Timeseries.**

Parameters:
- `probe_id` (query, required, `string`)
- `metric_key` (query, optional, `string` | null)
- `window_days` (query, optional, `integer`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/probe-runs`

**Create Probe Run.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ProbeRunRequest`
  - `probeId` (required, `string`)
  - `repetitions` (optional, `integer`)

Responses:
- `202`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/probe-runs/latest`

**Latest Probe Runs.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/probe-runs/{run_id}`

**Get Probe Run.**

Parameters:
- `run_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/probes`

**List Probes.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/probes/{probe_id}`

**Get Probe.**

Parameters:
- `probe_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/schedules`

**List Schedules.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/schedules/{probe_id}`

**Get Schedule.**

Parameters:
- `probe_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `PUT /v1/schedules/{probe_id}`

**Update Schedule.**

Parameters:
- `probe_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ScheduleRequest`
  - `enabled` (required, `boolean`)
  - `frequency` (required, `string`)
  - `intervalMinutes` (optional, `integer` | null)
  - `repetitions` (optional, `integer`)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/spend`

**Spend.**

Recorded spend on probing this agent over the last `window_days`.

Rates default to the `AGENT_*` settings; override any of them per request
to reprice the same recorded usage.

Parameters:
- `window_days` (query, optional, `integer`)
- `input_usd_per_mtok` (query, optional, `number` | null)
- `cached_input_usd_per_mtok` (query, optional, `number` | null)
- `output_usd_per_mtok` (query, optional, `number` | null)
- `tool_call_usd` (query, optional, `number` | null)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

## Health

### `GET /health`

**Health.**

Responses:
- `200`: Successful Response (`application/json` (object<string, `string`>))

### `GET /ready`

**Ready.**

Whether this deployment is configured to do its job.

Reports every check either way rather than only the first failure, because
the reader is usually someone who just deployed and wants the whole list,
not one item to fix before learning the next. `mode` is included because a
deployed service reporting `local` is itself the finding: the default is
`local`, and a service that never set it relaxes the TLS assumption and
offers source kinds that read the host's own filesystem.

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json` (object))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

## Experiments

### `GET /agents/{agent_id}/experiments/api/results`

**List Experiments.**

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}`

**Experiment Detail.**

Parameters:
- `experiment_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}/executions/{execution_id}`

**Execution Detail.**

Parameters:
- `experiment_id` (path, required, `string`)
- `execution_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}/progress`

**Experiment Progress.**

Parameters:
- `experiment_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}/progress.svg`

**Sweep Chart.**

Parameters:
- `experiment_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}/report.json`

**Report Json.**

Parameters:
- `experiment_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}/report.md`

**Report Markdown.**

Parameters:
- `experiment_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/results/{experiment_id}/snapshot`

**Experiment Snapshot.**

Parameters:
- `experiment_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments`

**List Experiments.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}`

**Experiment Detail.**

Parameters:
- `experiment_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}/executions/{execution_id}`

**Execution Detail.**

Parameters:
- `experiment_id` (path, required, `string`)
- `execution_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}/progress`

**Experiment Progress.**

Parameters:
- `experiment_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}/progress.svg`

**Sweep Chart.**

Parameters:
- `experiment_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}/report.json`

**Report Json.**

Parameters:
- `experiment_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}/report.md`

**Report Markdown.**

Parameters:
- `experiment_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/experiments/{experiment_id}/snapshot`

**Experiment Snapshot.**

Parameters:
- `experiment_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

## Workflows

### `GET /agents/{agent_id}/experiments/api/workflows`

**List Workflows.**

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows`

**Create Workflow.**

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `NewWorkflow`
  - `id` (required, `string`)
  - `campaign` (required, `string`)
  - `limit_usd` (optional, `number`)
  - `baseline_repetitions` (optional, `integer`)
  - `comparison_repetitions` (optional, `integer`)
  - `source_experiment` (optional, `string` | null)

Responses:
- `201`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/workflows/{name}`

**Workflow Detail.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/cases`

**Save Case.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `CaseEdit`
  - `revision` (required, `integer`)
  - `case` (required, `ExperimentCase`)
  - `key` (optional, `string` | null)
  - `included` (optional, `boolean`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `DELETE /agents/{agent_id}/experiments/api/workflows/{name}/cases/{key}`

**Remove Case.**

Parameters:
- `name` (path, required, `string`)
- `key` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `Revision`
  - `revision` (required, `integer`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/freeze`

**Freeze.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `Revision`
  - `revision` (required, `integer`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/jobs`

**Launch.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `Launch`
  - `revision` (required, `integer`)
  - `kind` (required, `string`)
  - `max_new_runs` (optional, `integer` | null)
  - `sweep_config` (optional, `SweepConfig` | null)
  - `comparison_repetitions` (optional, `integer` | null)

Responses:
- `202`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/jobs/{job_id}/pause`

**Pause.**

Parameters:
- `name` (path, required, `string`)
- `job_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/profiles`

**Save Profiles.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ProfileEdit`
  - `revision` (required, `integer`)
  - `profiles` (required, array of object)
  - `comparison_repetitions` (optional, `integer` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/workflows/{name}/promotions/{profile_id}`

**Promotion Options.**

Parameters:
- `name` (path, required, `string`)
- `profile_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/promotions/{profile_id}/preview`

**Preview Promotion.**

Parameters:
- `name` (path, required, `string`)
- `profile_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `PromotionPreview`
  - `file` (optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/experiments/api/workflows/{name}/promotions/{profile_id}/publish`

**Publish Promotion.**

Parameters:
- `name` (path, required, `string`)
- `profile_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `PromotionPublish`
  - `plan_id` (required, `string`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/workflows/{name}/status`

**Workflow Status.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/experiments/api/workflows/{name}/sweep-results`

**Sweep Results.**

Parameters:
- `name` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/workflows`

**List Workflows.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows`

**Create Workflow.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `NewWorkflow`
  - `id` (required, `string`)
  - `campaign` (required, `string`)
  - `limit_usd` (optional, `number`)
  - `baseline_repetitions` (optional, `integer`)
  - `comparison_repetitions` (optional, `integer`)
  - `source_experiment` (optional, `string` | null)

Responses:
- `201`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/workflows/{name}`

**Workflow Detail.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/cases`

**Save Case.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `CaseEdit`
  - `revision` (required, `integer`)
  - `case` (required, `ExperimentCase`)
  - `key` (optional, `string` | null)
  - `included` (optional, `boolean`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `DELETE /v1/workflows/{name}/cases/{key}`

**Remove Case.**

Parameters:
- `name` (path, required, `string`)
- `key` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `Revision`
  - `revision` (required, `integer`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/freeze`

**Freeze.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `Revision`
  - `revision` (required, `integer`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/jobs`

**Launch.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `Launch`
  - `revision` (required, `integer`)
  - `kind` (required, `string`)
  - `max_new_runs` (optional, `integer` | null)
  - `sweep_config` (optional, `SweepConfig` | null)
  - `comparison_repetitions` (optional, `integer` | null)

Responses:
- `202`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/jobs/{job_id}/pause`

**Pause.**

Parameters:
- `name` (path, required, `string`)
- `job_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/profiles`

**Save Profiles.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `ProfileEdit`
  - `revision` (required, `integer`)
  - `profiles` (required, array of object)
  - `comparison_repetitions` (optional, `integer` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/workflows/{name}/promotions/{profile_id}`

**Promotion Options.**

Parameters:
- `name` (path, required, `string`)
- `profile_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/promotions/{profile_id}/preview`

**Preview Promotion.**

Parameters:
- `name` (path, required, `string`)
- `profile_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `PromotionPreview`
  - `file` (optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /v1/workflows/{name}/promotions/{profile_id}/publish`

**Publish Promotion.**

Parameters:
- `name` (path, required, `string`)
- `profile_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/json`: `PromotionPublish`
  - `plan_id` (required, `string`)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/workflows/{name}/status`

**Workflow Status.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /v1/workflows/{name}/sweep-results`

**Sweep Results.**

Parameters:
- `name` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

## Application endpoints

### `POST /agents/{agent_id}/connector`

**Issue Connector.**

A new connector token, shown once. Any token before it stops working at once.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/connector/revoke`

**Revoke Connector.**

Stop the connector at once. An agent reached through it is no longer connected.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/connector/status`

**Connector Status.**

The connector's state on its own, for the connect page to poll.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/connector/test`

**Test Connector.**

Queue validation and return before waiting for the agent to answer.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (optional):
- `application/x-www-form-urlencoded`: `Body_test_connector_agents__agent_id__connector_test_post`
  - `assistant_id` (optional, `string`)
  - `agent_id` (optional, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/connector/tests/{job_id}`

**Connector Test Result.**

Parameters:
- `job_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/connector/tests/{job_id}/status`

**Connector Test Status.**

Parameters:
- `job_id` (path, required, `string`)
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /agents/{agent_id}/findings`

**Findings Page.**

Parameters:
- `agent_id` (path, required, `string`)
- `rebuilt` (query, optional, `integer` | null)
- `sent` (query, optional, `integer` | null)
- `created` (query, optional, `integer`)
- `traces` (query, optional, `integer`)
- `langsmith_error` (query, optional, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/findings/langsmith`

**Send Findings To Langsmith.**

One annotation queue per finding on the page, created or brought up to date.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/findings/rebuild`

**Rebuild Findings.**

Recount every finding from the agent's run history.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /agents/{agent_id}/langsmith/auto`

**Set Auto.**

Turn sending after every finished run on or off for this agent.

Parameters:
- `agent_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (optional):
- `application/x-www-form-urlencoded`: `Body_set_auto_agents__agent_id__langsmith_auto_post`
  - `enabled` (optional, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /changelog`

**Changelog Page.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /changelog.md`

**Changelog Markdown.**

Responses:
- `200`: Successful Response (`text/plain` (`string`))

### `GET /docs/faq`

**Faq Page.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /docs/faq.md`

**Faq Markdown.**

Responses:
- `200`: Successful Response (`text/plain` (`string`))

### `GET /docs/guides/connector`

**Setup Guide Page.**

HTML twin of `/docs/guides/connector.md`, rendered from `agent-connector/SETUP.md`.

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /docs/guides/connector.md`

**Setup Guide.**

The connector's setup guide, public, so a coding agent can fetch it with no session.

Responses:
- `200`: Successful Response (`text/plain` (`string`))

### `GET /get-started`

**Get Started.**

Parameters:
- `client` (query, optional, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /get-started/token`

**Create Onboarding Token.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (optional):
- `application/x-www-form-urlencoded`: `Body_create_onboarding_token_get_started_token_post`
  - `client` (optional, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /invite`

**Invite Page.**

Parameters:
- `token` (query, optional, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /invite/accept`

**Accept Invite.**

Do what the page described, having worked it out again rather than trusting the form.

Request body (required):
- `application/x-www-form-urlencoded`: `Body_accept_invite_invite_accept_post`
  - `token` (required, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /settings/tokens`

**Tokens Page.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /settings/tokens`

**Create Token.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (optional):
- `application/x-www-form-urlencoded`: `Body_create_token_settings_tokens_post`
  - `name` (optional, `string`)
  - `expires_in_days` (optional, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /settings/tokens/oauth/{grant_id}/revoke`

**Revoke Oauth.**

Parameters:
- `grant_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /settings/tokens/{token_id}/revoke`

**Revoke Token.**

Parameters:
- `token_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`application/json`)
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `GET /team`

**Team Page.**

Who has access to this organization, and, for owners, the controls to change it.

Parameters:
- `invited` (query, optional, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /team/invite`

**Invite Person.**

Parameters:
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/x-www-form-urlencoded`: `Body_invite_person_team_invite_post`
  - `email` (required, `string`)
  - `role` (optional, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /team/invites/{invite_id}/revoke`

**Revoke Invite.**

Parameters:
- `invite_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /team/people/{user_id}/remove`

**Remove Person.**

Take someone's access away, effective on their next request.

Their session is signed rather than stored, so it is not revoked as such:
every signed-in request checks the account still exists here, and this
deletes it.

Parameters:
- `user_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

### `POST /team/people/{user_id}/role`

**Change Role.**

Parameters:
- `user_id` (path, required, `string`)
- `X-API-Key` (header, optional, `string` | null)
- `vail_assurance_session` (cookie, optional, `string` | null)

Request body (required):
- `application/x-www-form-urlencoded`: `Body_change_role_team_people__user_id__role_post`
  - `role` (required, `string`)

Responses:
- `200`: Successful Response (`text/html` (`string`))
- `422`: Validation Error (`application/json` (`HTTPValidationError`))

## Schemas
- **`ApplyParameters`**: `uploadRevision`*, `expectedVersion`*, `sourceRunId`*
- **`Body_accept_invite_invite_accept_post`**: `token`*
- **`Body_change_role_team_people__user_id__role_post`**: `role`*
- **`Body_create_onboarding_token_get_started_token_post`**: `client`
- **`Body_create_token_settings_tokens_post`**: `name`, `expires_in_days`
- **`Body_invite_person_team_invite_post`**: `email`*, `role`
- **`Body_set_auto_agents__agent_id__langsmith_auto_post`**: `enabled`
- **`Body_test_connector_agents__agent_id__connector_test_post`**: `assistant_id`, `agent_id`
- **`Body_upload_parameters_v1_agents__agent_id__review_probes__kind___probe_id__parameters_post`**: `file`*
- **`CaseEdit`**: `revision`*, `case`*, `key`, `included`
- **`ClassificationOverrideRequest`**: `addedCodes`, `removedCodes`, `modelBased`, `notes`
- **`ConsistencyMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `source`, `check`, `minimum_score`
- **`ContainsMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `values`*, `case_sensitive`
- **`DoesNotContainMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `values`*, `case_sensitive`
- **`EvidenceReference`**: `dataset_name`, `record_ids`, `fields`, `document_paths`, `tool_names`, `subagent_names`, `summary`*
- **`ExactValueMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `expected_value`*, `case_sensitive`
- **`ExperimentCase`**: `role`*, `split`, `probe`*, `success_keys`*, `review`*, `authorized_action`
- **`ForbiddenEntitiesMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `entities`*, `source`*, `case_sensitive`
- **`GeneratedProbe`**: `id`*, `behavior_ids`*, `message`*, `metrics`*, `measurement_limits`*, `response_format`*, `response_schema`*, `response_contract_source`, `requirement_modalities`, `side_effect`, `mutation_justification`, `warnings`, `evidence`, `bindings`
- **`HTTPValidationError`**: `detail`
- **`JsonPathExistsCheck`**: `type`*, `path`*
- **`JsonPathExistsMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `path`*
- **`JsonPathValueCheck`**: `type`*, `path`*, `expected_value`, `contains`, `minimum`, `maximum`, `case_sensitive`
- **`JsonPathValueMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `path`*, `expected_value`, `contains`, `minimum`, `maximum`, `case_sensitive`
- **`Launch`**: `revision`*, `kind`*, `max_new_runs`, `sweep_config`, `comparison_repetitions`
- **`NewWorkflow`**: `id`*, `campaign`*, `limit_usd`, `baseline_repetitions`, `comparison_repetitions`, `source_experiment`
- **`NumericRangeMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `minimum`*, `maximum`*, `source`*
- **`ProbeRunRequest`**: `probeId`*, `repetitions`
- **`ProfileEdit`**: `revision`*, `profiles`*, `comparison_repetitions`
- **`PromotionPreview`**: `file`
- **`PromotionPublish`**: `plan_id`*
- **`RequiredEntitiesMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `entities`*, `source`*, `case_sensitive`
- **`RequirementReference`**: `behavior_id`*, `requirement_id`*
- **`ReviewArmRequest`**: `armed`
- **`ReviewDecisionRequest`**: `notes`
- **`ReviewOpenRequest`**: `probeId`*
- **`ReviewRunRequest`**: `repetitions`
- **`Revision`**: `revision`*
- **`ScheduleRequest`**: `enabled`*, `frequency`*, `intervalMinutes`, `repetitions`
- **`ScopedModality`**: `behavior_id`*, `requirement_id`*, `modality`*
- **`SetEqualityMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `expected_entities`*, `source`
- **`SubagentInvokedCheck`**: `type`*, `subagent_name`*, `expected`
- **`SubagentInvokedMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `subagent_name`*, `expected`
- **`SubagentOutcomeCheck`**: `type`*, `subagent_name`*, `expected_outcome`
- **`SubagentOutcomeMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `subagent_name`*, `expected_outcome`
- **`SweepConfig`**: `max_candidates`, `patience`, `methods`
- **`ToolCallCountCheck`**: `type`*, `tool_name`*, `minimum`*, `maximum`
- **`ToolCallCountMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `tool_name`*, `minimum`*, `maximum`
- **`ToolCalledCheck`**: `type`*, `tool_name`*, `expected`
- **`ToolCalledMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `tool_name`*, `expected`
- **`ToolInputMatchesCheck`**: `type`*, `tool_name`*, `path`*, `expected_value`, `contains`, `minimum`, `maximum`, `case_sensitive`, `quantifier`, `expected`, `normalize`
- **`ToolInputMatchesMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `tool_name`*, `path`*, `expected_value`, `contains`, `minimum`, `maximum`, `case_sensitive`, `quantifier`, `expected`, `normalize`
- **`ToolOrderCheck`**: `type`*, `first_tool`*, `then_tool`*
- **`ToolOrderMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `first_tool`*, `then_tool`*
- **`ToolOutcomeCheck`**: `type`*, `tool_name`*, `expected_outcome`
- **`ToolOutcomeMetric`**: `key`*, `description`*, `requirement_refs`*, `severity`, `minimum_pass_fraction`, `type`*, `tool_name`*, `expected_outcome`
- **`ValidationError`**: `loc`*, `msg`*, `type`*, `input`, `ctx`
