> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.runtype.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.runtype.com/_mcp/server.

# Troubleshooting

> Match Runtype Connect error codes, HTTP statuses, and symptoms to their causes and fixes.

Use this reference to match an error code, HTTP status, or symptom to its cause and fix. With `--json`, CLI errors print one JSON line (`{"error": {...}}`) with `code`, `message`, `hint`, `exitCode`, and often `reason`. CLI exit codes are `1` (tool error), `2` (configuration or usage), `3` (sign-in), `4` (network), `5` (input required), `6` (wait timed out), and `130` (interrupted). MCP tool errors include `code` and `error`.

## Trace ingest errors

When traces don't appear in Runtype, test the OpenTelemetry Protocol (OTLP) endpoint, API key, and content type with an empty JSON export:

**`cURL smoke test`**

```bash title="cURL smoke test"
curl -X POST https://api.runtype.com/v1/otel/v1/traces \
  -H "Authorization: Bearer rt_YOUR_TELEMETRY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"resourceSpans": []}'
```

Replace `rt_YOUR_TELEMETRY_KEY` with your telemetry API key or product ingest key. Runtype returns HTTP `200` with `{}` when it accepts the request.

### OTLP status and rejection codes

The following table lists the HTTP status codes and rejection codes that the OTLP endpoints return:

| Status | Rejection code                                | Cause                                                                                                                                                                                                           | Fix                                                                                                                                                                                                                           |
| ------ | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`  | `missing_agent_attribution`                   | No attribute or header names an agent.                                                                                                                                                                          | Set `gen_ai.agent.name` on the invocation span with a product ingest key, or `runtype.agent.id` or `x-runtype-agent-id` with a telemetry key.                                                                                 |
| `400`  | `no_agent_activity`                           | With a product ingest key, the spans name no agent and show no model call, tool call, or agent invocation, such as background-job or workflow-engine spans. Traces whose spans name the agent are not affected. | Leave those spans out of the export. If the trace is an agent run, set `gen_ai.agent.name` on its invocation span.                                                                                                            |
| `400`  | `ambiguous_agent_attribution`                 | Spans in one trace carry different `runtype.agent.id` resource or span attributes.                                                                                                                              | Set one `runtype.agent.id`, export separate traces, or use `gen_ai.agent.name` with a product ingest key. See [Run several agents in one process](/connect/instrument-a-custom-agent-loop#run-several-agents-in-one-process). |
| `400`  | `agent_limit_reached`                         | The product reached 50 trace-created agents.                                                                                                                                                                    | Reuse an existing agent name, or send the extra agent's traces to another product.                                                                                                                                            |
| `400`  | `run_limit_reached`                           | One trace hands off across more than 20 agent runs.                                                                                                                                                             | Export each conversation or invocation as its own trace.                                                                                                                                                                      |
| `400`  | `invalid_request`, or none                    | A span lacks a valid `traceId` or `spanId`, the payload is malformed, or Runtype can't read the export.                                                                                                         | Fix the payload and send OTLP over HTTP as protobuf or JSON to `/v1/otel/v1/traces`.                                                                                                                                          |
| `401`  | None                                          | The API key is invalid or expired, or you sent a Connect sign-in token instead of an API key or ingest key.                                                                                                     | Send a telemetry API key or product ingest key in `OTEL_EXPORTER_OTLP_HEADERS` or `RUNTYPE_INGEST_KEY`.                                                                                                                       |
| `401`  | None                                          | The 72-hour claim window closed for an unclaimed organization (one created without a browser sign-in).                                                                                                          | Run `npx @runtypelabs/connect claim --forget` and `init --no-browser`, or run `login` and `init`.                                                                                                                             |
| `403`  | None                                          | The credential isn't an API key, or lacks `TELEMETRY:WRITE` and `AGENTS:WRITE`.                                                                                                                                 | Send a telemetry API key or product ingest key.                                                                                                                                                                               |
| `404`  | `unreachable_agent`                           | The agent doesn't exist in this organization or product, or this trace started with another product's key.                                                                                                      | Check the agent ID, product, and key. With a product ingest key, remove `runtype.agent.id` and `x-runtype-agent-id`.                                                                                                          |
| `408`  | None                                          | Reading the request body exceeded 10 seconds.                                                                                                                                                                   | Check your network connection or send smaller batches.                                                                                                                                                                        |
| `409`  | `execution_conflict`                          | The run ID belongs to another agent or organization.                                                                                                                                                            | Start the run with a new trace ID.                                                                                                                                                                                            |
| `409`  | `trace_expired`, `trace_deleted`              | The trace's seven-day ingest window closed, or someone deleted its run.                                                                                                                                         | Start a new trace.                                                                                                                                                                                                            |
| `413`  | `trace_too_large`, `too_many_traces`, or none | The export exceeded a batch or trace size cap.                                                                                                                                                                  | Lower `OTEL_BSP_MAX_EXPORT_BATCH_SIZE` or `OTEL_BSP_SCHEDULE_DELAY`, or split exports by service. See [Limits and pricing](/reference/limits-and-pricing).                                                                    |
| `415`  | None                                          | The `Content-Type` or `Content-Encoding` header isn't supported.                                                                                                                                                | Send `application/x-protobuf` or `application/json`, with `gzip`, `deflate`, or no compression.                                                                                                                               |
| `429`  | None                                          | Your account's ingest rate or concurrency capacity is full.                                                                                                                                                     | Retry after the `Retry-After` delay in seconds.                                                                                                                                                                               |
| `503`  | None                                          | Runtype couldn't store the export or verify the key.                                                                                                                                                            | Retry after the `Retry-After` delay.                                                                                                                                                                                          |
| `200`  | `partial_success`                             | Runtype rejected some traces in the batch, or the organization reached its monthly span limit (`span_quota_exceeded`).                                                                                          | Read the error message. For `span_quota_exceeded`, claim the organization or add a card on **Billing**. Otherwise, fix the named traces.                                                                                      |

Runtype accepts or rejects each trace whole. When every trace fails with different causes, Runtype returns `400`. When some traces succeed and others fail, Runtype returns `200` with an OTLP `partial_success` naming the rejected traces.

Your exporter retries `429` and `503` after the `Retry-After` delay. Retried exports don't duplicate runs or spans. A `200` response means Runtype accepted the export, and it can take a short time to appear in **Logs**.

Compatibility ingest (`POST /v1/executions/ingest`) uses the same statuses, with three differences: a product ingest key returns `403`, an `executionId` that starts with `otel-` or exceeds the eight-day update window returns `409`, and a storage failure returns `500` (safe to retry).

### Common trace symptoms

The following list matches common telemetry symptoms to their causes and fixes:

* **A run stays in flight (`running`)**: Runtype didn't receive the closing `invoke_agent` span because a short-lived script or serverless handler exited before sending its spans. Call `sdk.shutdown()` or `provider.forceFlush()` before exit. For examples, see [Instrument a supported framework](/connect/instrument-a-supported-framework).
* **An attributed trace appears in Logs with no run**: The trace contains no GenAI operation (`invoke_agent`, `chat`, `execute_tool`) or model telemetry. Check that your instrumentation loads before the agent runs.
* **Token counts and cost are doubled**: Two instrumentations export the same run to Runtype. Point only one instrumentation at Runtype.
* **Runtype discards OTLP log records**: `LogRecord` entries without `runtype.agent.id` or `x-runtype-agent-id` return `200` `partial_success` and aren't stored. Set one of those values on your logs pipeline.

### Inspect ingest health

When accepted exports don't appear in **Logs**, inspect ingest health with an API key that has `ANALYTICS:READ` or `AGENTS:READ`. A `TELEMETRY:WRITE` key receives `403`.

Send a `GET` request to check ingest health over the last 30 days:

**`Check ingest health`**

```bash title="Check ingest health"
curl https://api.runtype.com/v1/telemetry/ingest-health \
  -H "Authorization: Bearer rt_YOUR_READ_API_KEY"
```

Replace `rt_YOUR_READ_API_KEY` with an API key that has `ANALYTICS:READ` or `AGENTS:READ`. To inspect one trace, append `?traceId=YOUR_HEX_TRACE_ID`, where `YOUR_HEX_TRACE_ID` is 1 to 32 lowercase hexadecimal characters. For every response field, see the [API Reference](/api-reference/overview).

The following table describes each `status` value:

| Status      | Meaning                                            | What to do                                               |
| ----------- | -------------------------------------------------- | -------------------------------------------------------- |
| `idle`      | No accepted records remain from the last 30 days.  | Confirm that the exporter runs and targets Runtype.      |
| `observing` | Runtype is still delivering some accepted records. | Wait and check again.                                    |
| `degraded`  | Some accepted records weren't delivered.           | Inspect `errors`, or query with `traceId` for one trace. |
| `queryable` | Runtype delivered every accepted record.           | No action needed.                                        |

## First-trace check failures

Run `npx @runtypelabs/connect check` or call `check_first_trace` after one development run of your agent. After applying a fix, pass the ISO 8601 time before that run as `--since` or `since` so the check ignores older runs.

### Check statuses and CLI exit codes

The following table lists each overall `status` value and exit code from `check`:

| Status            | Exit code | Cause                                                                                                                                                 | Fix                                                                                                                                                                                  |
| ----------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `healthy`         | `0`       | At least one run arrived and every required check passed.                                                                                             | Continue to the next step in `next`.                                                                                                                                                 |
| `degraded`        | `5`       | A run arrived and nothing failed, but a check warned that the traces are below the fidelity Runtype needs, such as content the app declares withheld. | Nothing needs fixing. The check says what is missing and what it costs, and a coding agent relays that from `fixPrompt`. Turn content capture on only where the app owner allows it. |
| `needs_attention` | `1`       | A run, a held trace (arrived without an agent name), or a rejected export arrived and a required check failed.                                        | Apply each item in `fixPrompt`, trigger a run, and check again with `since`.                                                                                                         |
| `processing`      | `6`       | Runtype accepted a run and is still processing it.                                                                                                    | Wait a moment and check again.                                                                                                                                                       |
| `no_traces`       | `6`       | No run, held trace, or rejected export arrived in the window.                                                                                         | Confirm the agent ran without errors, check `RUNTYPE_OTLP_URL`, and flush spans before exit.                                                                                         |

An `unknown` check outcome and a failed optional `end_user_id` check don't fail the overall status. A `warn` outcome makes the status `degraded`: the `content` check warns with reason `withheld_by_app` when the app declares with `runtype.content.capture` that it keeps conversation content out of its traces and the run carries none, so the traces are below the fidelity Runtype needs.

### Failing check IDs and reason codes

The following table lists each check ID from `check_first_trace`, its failing `reason` codes, and how to fix each one:

| Check ID                                                  | Reason code                                                           | Cause                                                                                                                                                                                              | Fix                                                                                                                                                                                                                                                   |
| --------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `attribution`                                             | `agent_not_named`, `agent_name_missing`                               | Traces arrived with no agent name (`heldTraces` is greater than zero). Runtype names the agent from `service.name` when it's set, or records no run.                                               | Set `gen_ai.agent.name` on the invocation span, or set `service.name` (`OTEL_SERVICE_NAME`).                                                                                                                                                          |
| `attribution`                                             | Any OTLP rejection code                                               | Runtype refused exports from this ingest key. `rejections` lists each code.                                                                                                                        | Follow `fixPrompt` or the matching row in [OTLP status and rejection codes](#otlp-status-and-rejection-codes).                                                                                                                                        |
| `attribution`                                             | `no_agent_activity`                                                   | Runtype refused traces that name no agent and show no agent activity, and no run of the product has arrived. Once a run arrives, these refusals stay in `rejections` but no longer fail the check. | Send one agent run. To stop the refusals, leave those spans out of the export.                                                                                                                                                                        |
| `attribution`                                             | `several_agents_in_one_run`                                           | One run holds spans that name more than one agent.                                                                                                                                                 | Set `gen_ai.agent.name` on each agent's own invocation span.                                                                                                                                                                                          |
| `attribution`                                             | `reply_on_shared_span`                                                | Model-call content sits outside every agent's invocation span, in a trace that holds more than one agent.                                                                                          | Send `gen_ai.input.messages` and `gen_ai.output.messages` on each agent's own model-call spans.                                                                                                                                                       |
| `content`                                                 | `input_not_sent`, `output_not_sent`                                   | Model-call spans carry user messages or assistant replies, but not both.                                                                                                                           | Send the missing side: `gen_ai.input.messages` or `gen_ai.output.messages`.                                                                                                                                                                           |
| `content`                                                 | `exporter_not_sent`                                                   | Model calls arrived with no conversation content. The `system_prompt`, `tool_definitions`, and `tool_io` checks read `unknown` with `content_not_readable`.                                        | Decide whether content may leave the app. If it may, enable message content capture (OpenTelemetry GenAI instrumentations read `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true`). If it may not, declare it with `RUNTYPE_CONTENT=withheld`. |
| `content`                                                 | `looks_redacted`                                                      | Every content attribute is a redaction marker. The other content checks read `unknown` with `content_not_readable`.                                                                                | Confirm whether the app redacts on purpose. If content may be sent, export to Runtype before the redaction runs; otherwise declare `RUNTYPE_CONTENT=withheld`.                                                                                        |
| `content`                                                 | `withheld_by_app` (warning)                                           | The app declares its content withheld and the run carries none. The status is `degraded`.                                                                                                          | Nothing needs fixing. The check says what Runtype cannot do without the content. To send it, turn content capture on where the app owner allows it and remove `RUNTYPE_CONTENT=withheld`.                                                             |
| `content`                                                 | `no_model_calls`                                                      | The app declares its content withheld, but the run has no model-call spans.                                                                                                                        | Send one `chat` span per model request.                                                                                                                                                                                                               |
| `content`                                                 | `exporter_redacted`                                                   | The exporter replaced message content with a redaction placeholder.                                                                                                                                | Turn off prompt and response redaction for development runs.                                                                                                                                                                                          |
| `content`, `system_prompt`, `tool_definitions`, `tool_io` | `runtype_capture_off`, `runtype_redaction`, `runtype_setting_changed` | The agent's **Logging** policy is off or **PII redaction** is on.                                                                                                                                  | Turn **Logging** on or **PII redaction** off on the agent, then trigger a run. For `runtype_setting_changed`, trigger a new run.                                                                                                                      |
| `system_prompt`                                           | `system_prompt_not_sent`                                              | Model calls carry messages without a system prompt.                                                                                                                                                | Send `gen_ai.system_instructions` on each model-call span, or include a `system` message in `gen_ai.input.messages`.                                                                                                                                  |
| `tool_definitions`                                        | `tool_definitions_not_sent`                                           | The agent called tools without sending tool definitions.                                                                                                                                           | Send each tool's name, description, and JSON schema in `gen_ai.tool.definitions` on model-call spans.                                                                                                                                                 |
| `tool_io`                                                 | `tool_io_not_sent`, `tool_inputs_not_sent`, `tool_outputs_not_sent`   | Tool-call spans omit tool inputs, outputs, or both.                                                                                                                                                | Send `gen_ai.tool.call.arguments` and `gen_ai.tool.call.result` on each `execute_tool` span.                                                                                                                                                          |
| `conversation_id`                                         | `missing`                                                             | No span carries a conversation ID.                                                                                                                                                                 | Set `gen_ai.conversation.id` (or `session.id`, `ai.telemetry.metadata.sessionId`, or LangGraph `thread_id`) on every span of one conversation.                                                                                                        |
| `environment`                                             | `missing`                                                             | The trace reports no deployment environment.                                                                                                                                                       | Set `deployment.environment.name` to `development` locally and `production` in production.                                                                                                                                                            |
| `end_user_id` (optional)                                  | `missing`                                                             | No span carries an end-user ID.                                                                                                                                                                    | Optional. Set `user.id` (or `enduser.id` or `ai.telemetry.metadata.userId`) to an opaque end-user ID.                                                                                                                                                 |

### Unknown check reason codes

An `unknown` outcome means the examined run couldn't prove whether the check passed or failed. The following table lists the `unknown` reason codes:

| Reason code            | Check IDs                                      | Meaning                                                                              | What to do                                                               |
| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `spans_not_readable`   | All except `attribution` and `environment`     | The run arrived and is still processing.                                             | Run the check again shortly.                                             |
| `content_too_large`    | `system_prompt`                                | The messages were too large to scan for a `system` message.                          | No action needed if your instrumentation sends a system prompt.          |
| `not_readable_for_sdk` | `system_prompt`, `tool_definitions`            | The check can't always read these from AI SDK runs.                                  | No action needed when the overall status is `healthy`.                   |
| `no_model_calls`       | `tool_definitions`                             | The run has no `chat` model-call spans.                                              | Trigger a run that calls a model to verify tool definitions.             |
| `no_tool_calls`        | `tool_definitions`, `tool_io`                  | The run called no tools.                                                             | Trigger a run that calls a tool to verify tool definitions and tool I/O. |
| `content_not_readable` | `system_prompt`, `tool_definitions`, `tool_io` | The run carries no readable conversation content, which the `content` check reports. | Resolve the `content` check.                                             |
| `no_runs`              | All except a failing `attribution`             | No run arrived in the lookback window.                                               | Fix any `attribution` refusal or trigger a run, then check again.        |

## Setup findings from doctor

Run `npx @runtypelabs/connect doctor` to inspect your repository setup without changing files. The command exits with `0` when no check fails (warnings are allowed), `1` when a check fails, `3` when sign-in is refused, and `4` when the traces URL or the ingest key check can't reach Runtype or gets an unexpected HTTP status.

The following table lists every check ID from `doctor`, its findings, and how to resolve them:

| Check ID        | Failure or warning                                                                                                                                | Cause                                                                                                                                                                                    | Fix                                                                                                                                                                                                          |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `env_file`      | Missing file, tracked or unignored by git, missing `RUNTYPE_INGEST_KEY` or `RUNTYPE_OTLP_URL` (`fail`), or missing `RUNTYPE_ENVIRONMENT` (`warn`) | No `.env` file exists (including after `setup` before `init`), git tracks or doesn't ignore it, or a variable is absent.                                                                 | Run `init`. If git tracks `.env`, run `git rm --cached .env` and add `.env` to `.gitignore`. Add `RUNTYPE_ENVIRONMENT=development` when only the environment variable is missing.                            |
| `otlp_endpoint` | Invalid URL, unreachable (`fail`, exit `4`), or different API                                                                                     | `RUNTYPE_OTLP_URL` is malformed, unreachable, or targets a different API than `--api-url`.                                                                                               | Check your network connection, run `init`, or pass `--api-url`.                                                                                                                                              |
| `session`       | Not signed in (`warn`) or sign-in refused (`fail`, exit `3`)                                                                                      | No Connect credential is stored, or the server refused it.                                                                                                                               | Run `login` or `init`.                                                                                                                                                                                       |
| `product`       | No product connected (`no_product`, `fail`) or key matches no candidate (`product_ambiguous`, `warn`)                                             | No product is connected, or several products exist and `.env` matches none.                                                                                                              | Run `init`, or pass `--product PRODUCT_ID`, replacing `PRODUCT_ID` with the target product ID.                                                                                                               |
| `ingest_key`    | Malformed key, `401`, `403`, or `404` (`fail`, exit `1`), unreachable or other HTTP status (`fail`, exit `4`), or product unresolved (`warn`)     | `RUNTYPE_INGEST_KEY` is malformed, inactive, bound to another product, couldn't be verified, or `doctor` had no sign-in or `--product` to check it against.                              | Delete `RUNTYPE_INGEST_KEY` from `.env` and run `init`. For `404`, check `--api-url` and `--product`. When unchecked, sign in or pass `--product PRODUCT_ID`. For transient HTTP errors, run `doctor` again. |
| `mcp_server`    | Points at another server (`fail`) or not installed (`fail` with `--agent` or inside a detected coding agent, `warn` otherwise)                    | The coding agent's `runtype-connect` MCP entry is absent or targets another server URL.                                                                                                  | Run `init --agent AGENT`, replacing `AGENT` with `claude-code`, `codex`, `cursor`, `gemini-cli`, `opencode`, or `vscode`.                                                                                    |
| `skill`         | Skill file not installed (`warn`)                                                                                                                 | No `runtype-connect` `SKILL.md` exists in `.claude/skills/runtype-connect/` or `.agents/skills/runtype-connect/` in the repository, or under `~/.claude/`, `~/.agents/`, or `~/.codex/`. | Run `init` or `skill install`. Commands and MCP tools work without the skill file.                                                                                                                           |
| `permissions`   | Rules missing, blocked, or conflicting (`warn`)                                                                                                   | Claude Code rules for Connect are missing, a deny rule blocks one, or `.mcp.json` defines another server with the same name. Never fails `doctor`.                                       | Run `setup --allow-rules`. For a deny rule, keep or remove it. For a name conflict, rename or remove the other server in `.mcp.json`.                                                                        |

## Repository setup, sign-in, and claim errors

The following tables list errors and `reason` codes from `init`, `login`, `claim`, `sync`, and `uninstall` (invoked with `npx @runtypelabs/connect`).

### Repository setup and session refusals from init

The following table lists the `reason` codes and refusals from `init`, `init --no-browser`, `sync`, and `uninstall`:

| Reason or symptom                                                                                                                                                   | Cause                                                                                                                                                                                                          | Fix                                                                                                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `env_file_tracked`, `env_file_target_not_ignored`, `env_file_not_ignored`                                                                                           | Git tracks `.env`, `.env` links to a tracked or unignored target, or a `.gitignore` negation rule keeps it unignored.                                                                                          | Run `git rm --cached .env`, add `.env` to `.gitignore`, and commit, or run `init --env-file .env.local`. Inspect rules with `git check-ignore -v --no-index .env`.                                                                                                                 |
| `env_file_outside_repository`, `env_file_not_a_file`                                                                                                                | `--env-file` resolves outside the repository or points to a non-regular file or broken symlink.                                                                                                                | Pass a regular file path inside the repository, such as `--env-file .env.local`.                                                                                                                                                                                                   |
| `non_interactive_sign_in` (`auth_required`)                                                                                                                         | The shell can't open an interactive browser sign-in.                                                                                                                                                           | Run `init --no-browser`, run `login --device`, or set `RUNTYPE_CONNECT_TOKEN`.                                                                                                                                                                                                     |
| `ingest_key_malformed`, `ingest_key_other_product`, `ingest_key_inactive`, `ingest_key_invalid`, `ingest_key_unverified`, `ingest_key_present`                      | The existing `RUNTYPE_INGEST_KEY` in `.env` is malformed, inactive, refused, unverified, bound to another product, or already present during `init --no-browser`.                                              | Delete `RUNTYPE_INGEST_KEY` from `.env` and run `init` (or `init --no-browser` for `ingest_key_present`). For `ingest_key_other_product`, pass `--name PRODUCT_NAME`, replacing `PRODUCT_NAME` with that product's name. For `ingest_key_unverified`, check `--api-url` and retry. |
| `ingest_key_other_signup`, `ingest_key_refused`                                                                                                                     | During `init --no-browser`, the key in `.env` belongs to another sign-up, or the server refused it.                                                                                                            | For `ingest_key_other_signup`, run `init` without `--no-browser`. For `ingest_key_refused`, run `claim`, or run `claim --forget` then `init --no-browser`.                                                                                                                         |
| `connect_session_exists`                                                                                                                                            | This computer already has a no-browser sign-up from another directory.                                                                                                                                         | Run `claim` and `init`, or discard it with `claim --forget` and run `init --no-browser`.                                                                                                                                                                                           |
| `session_dir_in_repository`, `session_dir_not_owned`                                                                                                                | The CLI config directory sits inside a git work tree or belongs to another user.                                                                                                                               | Set `RUNTYPE_CONNECT_CONFIG_DIR` to a directory you own outside every git repository.                                                                                                                                                                                              |
| `session_locked`, `session_lock_failed`                                                                                                                             | Another `init --no-browser` holds the setup lock, or the CLI couldn't create the lock file.                                                                                                                    | Wait for the other run to finish, or delete the lock file named in the error if nothing is running. For `session_lock_failed`, check config directory permissions.                                                                                                                 |
| `signup_timeout`, `signup_unavailable`, `signup_refused`, `signup_unavailable_now`, `signup_incomplete`                                                             | No-browser sign-up timed out after 30 seconds, isn't offered (`404`), was refused (`429` or another error), is temporarily unavailable (`503`), or returned incomplete fields (`signup_incomplete`, exit `4`). | For `signup_timeout` or `signup_incomplete`, retry `init --no-browser`. For `signup_unavailable`, run `init` without `--no-browser`. For a rate limit, wait the time in the hint, or sign in with `login` and run `init`.                                                          |
| `no_agent_detected` (in `init --json` `mcp.reason`)                                                                                                                 | `init` detected no coding agent and skipped adding the MCP server.                                                                                                                                             | Run `init --agent AGENT`, replacing `AGENT` with `claude-code`, `codex`, `cursor`, `gemini-cli`, `opencode`, or `vscode`, or add `https://mcp.runtype.com/mcp` in your coding agent's MCP settings.                                                                                |
| `server_flag_after_command` (exit `2`)                                                                                                                              | `--api-url` (or `--api`) appeared after `doctor`, `check`, or the command of a read-only tool such as `get-status`.                                                                                            | Put `--api-url` before the command name, as in `npx @runtypelabs/connect --api-url URL doctor`, replacing `URL` with the Runtype API URL.                                                                                                                                          |
| `allow_rules_need_terminal` (exit `2`)                                                                                                                              | `--allow-rules` was passed outside a terminal or with `--json` for a custom API URL.                                                                                                                           | Run the command in a terminal, or omit `--allow-rules`.                                                                                                                                                                                                                            |
| `credential_store_not_writable` (exit `2`)                                                                                                                          | The CLI can't write its configuration directory or credentials file.                                                                                                                                           | Set `RUNTYPE_CONNECT_CONFIG_DIR` to a writable directory, or set `RUNTYPE_CONNECT_TOKEN`.                                                                                                                                                                                          |
| Skill write failure (`skill.status: failed`, `setup` exits `1`)                                                                                                     | `init` or `setup` couldn't write the `runtype-connect` skill file.                                                                                                                                             | Run `skill install --print` and save the output at the reported path.                                                                                                                                                                                                              |
| `install_registry_locked`, `install_registry_lock_failed`, `install_registry_unreadable`, `install_registry_invalid` (exit `2`), or `init` install-tracking warning | Another `init`, `sync`, or `uninstall` holds the install-registry lock, or the install record file can't be read or written.                                                                                   | Wait or remove the lock file named in the error if nothing is running. For permission or corrupt-file errors, fix permissions on the config directory or remove the file named in the error, then run `init` again.                                                                |
| `modified_by_user` (in `sync` or `uninstall`)                                                                                                                       | A tracked skill file was edited after installation, so `sync` or `uninstall` left it alone.                                                                                                                    | Pass `--force` to overwrite or remove it.                                                                                                                                                                                                                                          |

### Claim and unclaimed-organization errors

An organization created with `init --no-browser` must be claimed within 72 hours. The following table lists claim errors and fixes, where `OWNER_EMAIL` is the organization owner's email address and `EMAILED_CODE` is the 6-digit verification code:

| Error or reason code                                         | Status              | Cause                                                                                                                                                                                                                                                        | Fix                                                                                                                                                   |
| ------------------------------------------------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `claim_required`                                             | `403`               | The organization isn't claimed. Before claim, you can send traces (up to 10,000 spans per month) and read status, traces, profiles, signals, and reports. Every tool that runs a model, spends money, shares a report, or connects a test target is refused. | Run `claim` (or `claim --email OWNER_EMAIL` then `claim --otp EMAILED_CODE`). See Limits and pricing for the per-tool breakdown.                      |
| `email_already_registered`                                   | `409`               | The email address already has a Runtype account.                                                                                                                                                                                                             | Run `claim --forget`, then `login`, then `init`.                                                                                                      |
| `claimed_or_in_flight`                                       | `409`               | A claim is in progress or complete for this organization.                                                                                                                                                                                                    | Run `claim --otp EMAILED_CODE`, or check with `claim --status`.                                                                                       |
| `previously_claimed`                                         | `409`               | The registration was already claimed.                                                                                                                                                                                                                        | Confirm with `claim --status`.                                                                                                                        |
| `otp_expired`                                                | `410`               | The 6-digit code expired after 10 minutes.                                                                                                                                                                                                                   | Request a new code with `claim --email OWNER_EMAIL`.                                                                                                  |
| `otp_invalid`                                                | `401`               | The 6-digit code doesn't match, or five wrong attempts locked the registration.                                                                                                                                                                              | Re-enter the code. If locked after five attempts, run `claim --forget` and `init --no-browser`.                                                       |
| `claim_expired`, `invalid_claim_token`                       | `400`, `404`, `410` | The 72-hour claim window closed, the registration was locked after five wrong codes, `claim --email` wasn't run first, or the token is invalid.                                                                                                              | Run `claim --forget`, then `init --no-browser`, or sign in with `login`.                                                                              |
| `credential_expired`                                         | `410`               | The no-browser sign-up credential stopped working before the claim finished.                                                                                                                                                                                 | Run `claim --forget`, then `init --no-browser` (or `login`, then `init`).                                                                             |
| `email_send_failed`                                          | `502`               | Runtype failed to send the verification email.                                                                                                                                                                                                               | Retry `claim --email OWNER_EMAIL`.                                                                                                                    |
| `workspace_not_ready`                                        | `503`               | The account is still being set up after verification.                                                                                                                                                                                                        | Wait a moment and retry `claim --otp EMAILED_CODE`.                                                                                                   |
| `session_refused` (`auth_failed`)                            | `401`               | The unclaimed session and ingest key stopped working at the 72-hour deadline.                                                                                                                                                                                | Run `claim --forget`, then `init --no-browser`, or sign in with `login` and `init`.                                                                   |
| `no_connect_session`, `missing_claim_token`, `no_ingest_key` | CLI                 | No saved no-browser session exists for this API, the saved sign-up can't be claimed from this computer, or `claim --forget` found no `RUNTYPE_INGEST_KEY` in `.env`.                                                                                         | For `no_connect_session`, run `init --no-browser`. For `missing_claim_token`, run `claim --status`. For `no_ingest_key`, no `.env` cleanup is needed. |

## Coding agent, relay, and MCP connection problems

The following table lists errors when a coding agent, `runtype-connect mcp`, or `runtype-connect relay` connects to Runtype. For `.runtype/agents.yaml` validation errors and relay auto-start failures, see [Agent manifest errors](/reference/agent-manifest#errors).

| Symptom or error                                                                                     | Cause                                                                                                                                                            | Fix                                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| HTTP `401` with JSON-RPC `-32001` (`Authorization required`)                                         | The MCP client hasn't authenticated to `https://mcp.runtype.com/mcp`.                                                                                            | Approve the OAuth sign-in prompt in your coding agent, or supply a `Bearer` API key.                                                                                                                  |
| Stdio proxy JSON-RPC `-32001` (`This computer has no Runtype Connect session`)                       | `runtype-connect mcp` found no saved session or login.                                                                                                           | Run `init --no-browser` or `login`.                                                                                                                                                                   |
| Stdio proxy JSON-RPC `-32002` (`The server refused this computer's session`)                         | The saved session expired, was revoked, or passed its claim deadline.                                                                                            | Run `claim --forget` and `init --no-browser`, or run `login` and `init`.                                                                                                                              |
| Stdio proxy JSON-RPC `-32003` (`Could not reach ...` or HTTP `4xx` or `5xx`)                         | The proxy couldn't reach the Connect MCP server.                                                                                                                 | Check your network connection and `--api-url`.                                                                                                                                                        |
| `runtype-connect` tools don't appear after `init`                                                    | The coding agent reads MCP config at startup, or `init` didn't detect the agent (`no_agent_detected`).                                                           | Restart your coding agent. If `doctor` reports `mcp_server` missing, run `init --agent AGENT` (replacing `AGENT` with your coding agent), or add `https://mcp.runtype.com/mcp` manually.              |
| `PRODUCT_NOT_FOUND` (`404`) or `no_product`                                                          | No product is connected, or `productId` doesn't exist.                                                                                                           | Run `init`, or check `productId` with `doctor`.                                                                                                                                                       |
| `This organization has several products` or `product_ambiguous`                                      | A product-scoped call omitted `productId` in an organization with multiple products.                                                                             | Find the product ID with `doctor`, then pass `productId` (or `--product-id` in the CLI).                                                                                                              |
| `Unknown tool`, `tool_unavailable`, or `relay_unavailable`                                           | The server URL is wrong or the CLI is outdated.                                                                                                                  | Check `--api-url`, run `tools`, and update `@runtypelabs/connect`.                                                                                                                                    |
| `relay` exits with `session_refused` (`auth_failed`), `relay_failed` (exit `2`), or a server refusal | The server refused an unclaimed or expired session, the relay couldn't listen or forward locally, or the agent already has a non-relay HTTP endpoint configured. | Claim the organization or sign in with `login`. For `relay_failed`, check `--forward-to` and run `relay --help`. For a non-relay endpoint refusal, target an agent without an existing HTTP endpoint. |

## Trace and run inspection refusals

The following table lists refusals from `query_traces`, `read_trace`, `get_run_outline`, `search_run`, `read_span_payload`, and `get_span_context`. For usage, see [Investigate a large run](/analyze/investigate-a-large-run).

| Error code                                                              | Status       | Cause                                                                                                                                                         | Fix                                                                                                              |
| ----------------------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `TRACE_NOT_FOUND`                                                       | `404`        | No run with that execution ID exists in this product.                                                                                                         | Take the ID from `query_traces` or `check_first_trace`, and pass the matching `productId`.                       |
| `SPAN_NOT_FOUND`                                                        | `404`        | No span with that `spanId` exists in this run.                                                                                                                | Take span IDs from `get_run_outline` or a `detailed` `read_trace`.                                               |
| `PATH_NOT_FOUND`, `INVALID_PATH`, `PAYLOAD_NOT_JSON`                    | `404`, `400` | The JSON path matched nothing, uses unsupported syntax such as `..`, or targets a non-JSON value.                                                             | Read the payload without a path first, use `$.field`, `$["key"]`, or `$[0]`, or read non-JSON text with offsets. |
| `INVALID_SLICE`, `INVALID_OUTLINE`, `INVALID_CONTEXT`, `INVALID_SEARCH` | `400`        | A numeric option is out of range, offsets are reversed, or the search pattern is invalid or too complex.                                                      | Use the range or pattern rules named in the error.                                                               |
| `INVALID_WINDOW`, `WINDOW_TOO_WIDE`, `TOO_MANY_RUNS`                    | `400`        | `from` isn't before `to`, the window exceeds 30 days (or 7 days for span-level queries such as a `model` breakdown), or too many runs match before filtering. | Narrow `from` and `to`, or add filters.                                                                          |
| `INVALID_CURSOR`                                                        | `400`        | `cursor` wasn't issued by this tool.                                                                                                                          | Pass `nextCursor` unchanged, or omit it.                                                                         |

## Agent map, business context, and pending-action refusals

The following table lists refusals from `describe_agents`, `save_business_context`, and `resolve_pending_action`:

| Error code                                                                                                  | Status       | Cause                                                                                                                                                                                    | Fix                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AGENT_MAP_EMPTY_NAME`                                                                                      | `422`        | An agent name or tool name is blank.                                                                                                                                                     | Provide a non-empty `name` for every agent and tool.                                                                                                                                                     |
| `AGENT_MAP_TEXT_TOO_LONG`                                                                                   | `422`        | A field exceeds its character limit: 255 for agent names, 2,000 for roles, tool names, and sources, 100,000 for prompts, 10,000 for tool descriptions, and 500 for surface notes.        | Shorten the value at `path`.                                                                                                                                                                             |
| `AGENT_MAP_TOO_MANY_AGENTS`, `AGENT_MAP_TOO_MANY_TOOLS`, `AGENT_MAP_TOO_MANY_SURFACES`                      | `422`        | The map exceeds 50 agents, 128 tools per agent, or 10 surfaces per agent.                                                                                                                | Trim entries at `path` to stay within `limit`.                                                                                                                                                           |
| `AGENT_MAP_DUPLICATE_AGENT`, `AGENT_MAP_DUPLICATE_TOOL`                                                     | `422`        | Two agents share a name, or one agent declares duplicate tool names.                                                                                                                     | Give every agent and tool a unique name.                                                                                                                                                                 |
| `AGENT_MAP_TOOL_SCHEMA_TOO_LARGE`, `AGENT_MAP_TOO_LARGE`                                                    | `422`        | A tool's `inputSchema` exceeds 65,536 bytes, or the serialized map exceeds 2 MiB (2,097,152 bytes).                                                                                      | Reduce the schema or map size at `path` to stay within `limit`.                                                                                                                                          |
| `AGENT_MAP_UNKNOWN_HANDOFF`                                                                                 | `422`        | `handsOffTo` names an agent not declared in the map.                                                                                                                                     | Add the target agent or fix the spelling in `handsOffTo`.                                                                                                                                                |
| `AGENT_MAP_ENDPOINT_CREDENTIALS`                                                                            | `422`        | An endpoint URL contains credentials, or an MCP server entry includes `headers`.                                                                                                         | Remove credentials and `headers`, and send only the reachable address.                                                                                                                                   |
| `AGENT_MAP_ENDPOINT_INVALID`                                                                                | `422`        | An endpoint isn't a valid URL, uses `http://` on a public host, or has a blank or duplicate MCP server name.                                                                             | Use `https://` for public hosts (or `http://` on a loopback or private address) and unique MCP server names.                                                                                             |
| `AGENT_LIMIT_REACHED`                                                                                       | `422`        | Storing the map would exceed 50 agents created from traces or maps.                                                                                                                      | Delete unused agents or declare fewer agents.                                                                                                                                                            |
| `BUSINESS_CONTEXT_LIMIT_REACHED`                                                                            | `422`        | Saving the facts would exceed 500 business-context facts on the product.                                                                                                                 | Remove unused facts or combine related facts, then retry.                                                                                                                                                |
| `PENDING_ACTION_NOT_FOUND`                                                                                  | `404`        | No pending action with that `actionId` exists.                                                                                                                                           | Read current action IDs from `get_status`.                                                                                                                                                               |
| `PENDING_ACTION_ALREADY_RESOLVED`                                                                           | `409`        | The pending action was already resolved with a different resolution or different facts. (Repeating the same `resolution`, `factIds`, and `edits` succeeds with `alreadyResolved: true`.) | Read `get_status` for open pending actions.                                                                                                                                                              |
| `PENDING_ACTION_RESOLUTION_NOT_ALLOWED`, `PENDING_ACTION_EDITS_NOT_ALLOWED`, `PENDING_ACTION_EDITS_INVALID` | `400`        | `resolution` isn't in `allowedResolutions`, `edits` was sent without `resolution: confirm`, or `edits` is invalid.                                                                       | Send an allowed resolution from `get_status`, pass `edits` only with `confirm`, and fix invalid edits.                                                                                                   |
| `PENDING_ACTION_ESTIMATE_REQUIRED`, `PENDING_ACTION_ESTIMATE_MISMATCH`                                      | `400`, `409` | `resolve_pending_action` omitted `estimateId` or passed a different ID than the `approve_spend` action holds.                                                                            | Read the open `approve_spend` action from `get_status` and pass its `estimateId`. Each product holds one open `approve_spend` action at a time. Settle it before you price another run for that product. |

## Simulation, signal, and change-brief refusals

Connect tools return structured error codes when prerequisites, spend approvals, estimates, or limits block a request. In these tables, the copy is the simulation copy of your agent that Runtype builds from traces. For an overview of baselines, proposal runs, and reports, see [How Runtype works](/how-runtype-works).

### Baseline, estimate, and run refusals

The following table lists refusals from `start_baseline_simulation`, `estimate`, and `run_simulation`:

| Error code                                                                                                                | Status              | Cause                                                                                                                                                                       | Fix                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AGENT_COPY_NO_PROFILE`                                                                                                   | `409`               | The agent has no traces in the last 14 days to build a copy from.                                                                                                           | Run the agent once so a trace arrives (a development run is enough), then retry `start_baseline_simulation`.                                                            |
| `AGENT_COPY_SOURCE_NOT_FOUND`, `AGENT_COPY_SOURCE_UNSUPPORTED`                                                            | `404`, `422`        | The agent doesn't exist in this organization, or isn't a connected external agent.                                                                                          | Check the agent ID in `get_status` and target a connected external agent.                                                                                               |
| `AGENT_COPY_CREDENTIAL_REFUSED`                                                                                           | `403`               | You sent a product ingest key instead of a signed-in session or API key.                                                                                                    | Use your signed-in Connect session or an organization API key.                                                                                                          |
| `AGENT_COPY_CONTENT_NOT_CAPTURED`                                                                                         | `422`               | Traces carry no content, or the agent's **Logging** or **PII redaction** setting keeps content out.                                                                         | Enable content capture in your instrumentation, turn **Logging** on and **PII redaction** off, and send traces again.                                                   |
| `AGENT_COPY_PROMPT_UNAVAILABLE`                                                                                           | `422`               | No system prompt appears in enough of the agent's traces to copy, or Runtype can't read the stored prompt.                                                                  | Send `gen_ai.system_instructions` (or a `system` message in `gen_ai.input.messages`) on model-call spans.                                                               |
| `TOOL_DEFINITIONS_MISSING`                                                                                                | `422`               | The agent's traces call tools with no recorded definitions or recorded calls.                                                                                               | Send `gen_ai.tool.definitions` on model-call spans with the product ingest key, and verify with `check_first_trace`.                                                    |
| `PRODUCT_REQUIRED`, `AGENT_AMBIGUOUS`                                                                                     | `422`               | Several products match the request, or several agents share the name passed in `agent`.                                                                                     | Pass `productId` or the agent's ID in `agent`.                                                                                                                          |
| `PAYMENT_REQUIRED`                                                                                                        | `402`               | The product's first simulation can't be paid for: Connect credit is used up and the organization has no payment method or provider key.                                     | Add a payment method or a provider key, then retry `start_baseline_simulation`.                                                                                         |
| `BASELINE_IN_PROGRESS`                                                                                                    | `409`               | Another call is preparing or updating this baseline.                                                                                                                        | Wait a moment and retry.                                                                                                                                                |
| `BASELINE_RUN_ACTIVE`                                                                                                     | `409`               | `start_baseline_simulation` was called with `drawScenarios: true` while a baseline run is queued or running.                                                                | Retry after the active run finishes.                                                                                                                                    |
| `BASELINE_WAITING_FOR_RECORDINGS`                                                                                         | `409`               | The last baseline run scored no conversations and needs more production traffic first.                                                                                      | Follow the step in the error message, then retry `start_baseline_simulation`.                                                                                           |
| `SPEND_NOT_APPROVED`                                                                                                      | `403`               | The run costs money and its `approve_spend` action isn't approved.                                                                                                          | Call `resolve_pending_action` with `resolution: approve` and the matching `estimateId`.                                                                                 |
| `insufficient_scope`                                                                                                      | `403`               | The API key lacks the `SIMULATIONS:RUN` scope.                                                                                                                              | Use an API key with `SIMULATIONS:RUN` or your signed-in Connect session.                                                                                                |
| `ESTIMATE_REQUIRED`, `ESTIMATE_NOT_FOUND`, `ESTIMATE_MISMATCH`, `ESTIMATE_EXPIRED`, `ESTIMATE_STALE`, `ESTIMATE_CONSUMED` | `404`, `409`, `422` | `estimateId` is missing, unknown, for another subject, past its 24-hour lifetime, outdated after a configuration, model pricing, or Connect credit change, or already used. | Call `start_baseline_simulation` or `estimate` for a new `estimateId`.                                                                                                  |
| `CONNECT_CREDIT_IN_USE`                                                                                                   | `429`               | Another run is using your Connect credit.                                                                                                                                   | Wait for that run to finish, then call `run_simulation` again with the same `estimateId`.                                                                               |
| `SIMULATION_TOO_MANY_RUNNING`                                                                                             | `429`, `409`        | `429`: the organization reached its concurrent run limit. `409`: scenarios are already being drawn for this baseline.                                                       | For `429`, wait for a run in `details.activeRuns` to finish, then call `run_simulation` with the same `estimateId`. For `409`, call again after `details.retryAfterMs`. |
| `SIMULATION_LIMIT_EXCEEDED`                                                                                               | `422`, `429`        | Simulated conversations (episodes), scenarios, or variants exceed the limit, or live runs reached 200 per day per external host (`429`).                                    | Reduce the run size, or wait for the UTC day to reset.                                                                                                                  |
| `SIMULATION_QUOTA_EXCEEDED`                                                                                               | `402`               | The organization reached its daily simulation allowance or its monthly spend cap.                                                                                           | Wait for the daily allowance to reset, or raise your spend cap on **Billing**.                                                                                          |
| `SIMULATION_TARGET_OPTED_OUT`                                                                                             | `403`               | The external agent host's `robots.txt` disallows Runtype simulations for that address.                                                                                      | Allow the simulation user agent named in the error in `robots.txt`, or test against a local agent through `runtype-connect relay`.                                      |
| `FIRST_RUN_CREDIT_UNAVAILABLE`                                                                                            | `503`               | Runtype couldn't apply Connect credit, so the run didn't start and incurred no charge.                                                                                      | Call `run_simulation` again shortly. If it persists, the run needs spend approval.                                                                                      |

### Proposal, test-target, change-brief, and signal refusals

The following table lists refusals when you test proposals, run against a test target, share a report, export a change brief, or save a custom signal:

| Error code                                                | Status       | Cause                                                                                                                                | Fix                                                                                                                                                                                                         |
| --------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PROPOSALS_NOT_READY`                                     | `409`        | Runtype hasn't finished generating post-run proposals.                                                                               | Call `get_report` until `followUp` is `done`, then call `estimate` again.                                                                                                                                   |
| `NO_PROPOSALS`                                            | `422`        | The baseline run proposed no changes to test.                                                                                        | Read `notes` in the baseline report.                                                                                                                                                                        |
| `PROPOSAL_RUN_RUNNING`                                    | `409`        | A proposal run is still in progress.                                                                                                 | Wait for it to finish before pricing or starting another.                                                                                                                                                   |
| `SCENARIOS_NOT_READY`                                     | `409`        | No baseline has scenarios ready to play against the target.                                                                          | Prepare scenarios with `start_baseline_simulation`, then call `estimate` again.                                                                                                                             |
| `RUN_NOT_FOUND`                                           | `404`        | No run with that ID exists in this organization.                                                                                     | Take run IDs from `list_runs`.                                                                                                                                                                              |
| `TARGET_NOT_FOUND`, `TARGET_PRODUCT_MISMATCH`             | `404`, `422` | The test target ID doesn't exist, or `productId` doesn't match the target's product.                                                 | Start `relay`, call `connect_test_target`, and pass the target's `productId` or omit it.                                                                                                                    |
| `MCP_SERVER_UNREACHABLE`                                  | `502`        | Runtype couldn't reach the local MCP server through the paired computer.                                                             | Check that `relay --protocol mcp` is running and forwards to that address.                                                                                                                                  |
| `VARIANT_NOT_FOUND`, `VARIANT_NOT_RUN`                    | `404`, `422` | No variant with that ID or key exists in the simulation, or that run didn't include it.                                              | Pass a `variantId` and `evaluation.runId` from `get_report`.                                                                                                                                                |
| `CHANGE_BRIEF_NOT_READY`                                  | `409`        | Runtype hasn't finished checking the copy against production conversations.                                                          | Call `get_report` until `followUp` is `done`, then export again.                                                                                                                                            |
| `CHANGE_BRIEF_NOT_VERIFIED`                               | `422`        | The report's `confidence` is `directional`, and you requested a brief for a variant other than the run's pick.                       | Export the brief for the run's pick, or test against your real agent. See [Test against your real agent](/simulate/test-against-your-real-agent).                                                           |
| `CHANGE_BRIEF_NOT_COMPARABLE`, `CHANGE_BRIEF_UNAVAILABLE` | `422`        | The run couldn't compare the variant with the copy, ended without a result, or couldn't be checked against production conversations. | Check `get_report` for the reason, or run the proposals again.                                                                                                                                              |
| `SIMULATION_REPORT_NOT_READY`                             | `404`        | You tried to share a run that doesn't have a finished report.                                                                        | Wait for the run to finish before sharing.                                                                                                                                                                  |
| `SIMULATION_RATE_LIMITED`                                 | `429`        | Public report link reads exceeded 60 requests per minute per client IP address.                                                      | Retry after the `Retry-After` delay.                                                                                                                                                                        |
| `SIGNAL_SET_INVALID`                                      | `400`        | The custom signal definition failed validation.                                                                                      | Fix the fields in `issues` and retry.                                                                                                                                                                       |
| `SIGNAL_TOO_MANY_AGENTS`                                  | `422`        | The product has more than 50 agents, exceeding the per-signal cap.                                                                   | Remove unused agents until at most 50 remain, then save the signal.                                                                                                                                         |
| `SIGNAL_MEASUREMENT_ALLOWANCE_EXCEEDED`                   | `422`        | Saving the custom signal exceeds the remaining monthly signal measurement allowance.                                                 | Add a payment method on **Billing** or wait until the monthly count resets.                                                                                                                                 |
| `AGENT_NOT_IN_PRODUCT`, `SIGNAL_TARGET_NOT_FOUND`         | `404`        | `agentId` doesn't belong to this product.                                                                                            | Take agent IDs from `get_status` or `get_signals`.                                                                                                                                                          |
| `SIGNALS_LOGGING_OFF`                                     | `422`        | The agent's **Logging** policy is off, so it has no content to score.                                                                | Turn **Logging** on for the agent.                                                                                                                                                                          |
| `SIGNALS_ZERO_DATA_RETENTION`                             | `422`        | The organization uses zero data retention, and `decisionModel` or `extractionModel` isn't one of the default signal models.          | Remove `decisionModel` and `extractionModel` to use the default signal models.                                                                                                                              |
| `SIGNALS_EXTERNAL_PROCESSING_UNACKNOWLEDGED`              | `409`        | The organization handles protected health information and the signal uses a non-default model.                                       | After a person confirms, pass `acknowledgeExternalProcessing: true`.                                                                                                                                        |
| `CONTEXT_FACT_NOT_FOUND`, `CONTEXT_FACT_OTHER_PRODUCT`    | `404`, `422` | A fact ID in `sourceFactIds` doesn't exist in this organization or belongs to another product.                                       | Pass only confirmed fact IDs from this product's business context.                                                                                                                                          |
| `CONTEXT_FACT_NOT_CONFIRMED`                              | `422`        | A fact ID in `sourceFactIds` isn't confirmed (`draft`, `inferred`, or `rejected`).                                                   | Confirm the open `confirm_business_context` action with `resolve_pending_action`, or remove the fact ID from `sourceFactIds`. To reopen a dismissed action, save another fact with `save_business_context`. |

## Next steps

Continue with one of these reference pages or guides:

* [Connect a repository](/connect/connect-a-repository): review `init` options, the no-browser path, and claiming an organization.
* [Send a first trace](/connect/send-a-first-trace): instrument an agent and pass the first-trace check.
* [Connect CLI](/reference/connect-cli): look up every `runtype-connect` command, option, and exit code.
* [Connect MCP tools](/reference/connect-mcp-tools): check inputs and outputs for every tool on the Runtype Connect MCP server.
* [Trace attributes](/reference/trace-attributes): verify the OpenTelemetry attributes that Runtype reads.