Skip to main content
Read a Deepest response in two steps: first check the API envelope (ok, retry, error.code), then inspect the operation-specific result. A network timeout is not proof that nothing happened, and ok: true on exec is not proof that the guest program exited 0. @deepest/sdk preserves valid envelopes untouched and never retries automatically.

Success and failure envelopes

Success (Exec)
Failure (LIMIT_EXCEEDED)
Always branch on error.code, retry, and structured fields like error.limit or error.retry_after_seconds—never parse prose inside error.message. Omitted optional fields mean absent/unknown, never 0 or success.

Three retry dispositions

UNKNOWN is an outcome boundary

The control API returns UNKNOWN with HTTP 502 and retry: "query-first". The SDK also emits UNKNOWN on transport loss or malformed responses (where no HTTP status may exist). Preserve the original resource_id, target ID, and idempotency_key (where supported). Note that resource_id: "request" is a fallback identifier when creation lacked a known Machine ID—never a Computer ID. Observing state === "running" resolves lifecycle state, not whether an arbitrary command sent an external request; check task-specific effects separately. See Reliability and recovery.

Limits (LIMIT_EXCEEDED and quota errors)

LIMIT_EXCEEDED returns HTTP 409 (retry: "no-retry"). Inspect error.limit.dimension and error.limit.scope:
  • STORAGE_LIMIT_EXCEEDED (409): Product Storage used >= limit. Blocks Create, Clone, and Snapshot, while still permitting existing Computer Start for cleanup (subject to eligibility and Memory). See Storage Reclaim.
  • SANDBOX_NOT_ENABLED (403): Account entitlement does not include Sandboxes (for example on Starter). Reducing Memory size does not bypass this.
  • An empty machine_count_constraints list in resources.get() means no numeric limit is currently reported—not unlimited commercial or physical capacity.

HTTP 429 rate & contention errors

All three HTTP 429 responses share retry: "safe", an HTTP Retry-After header, and an equal JSON error.retry_after_seconds integer. No action was dispatched:
HTTP 429 responses reflect pre-dispatch contention or rate protection—they are not a published requests-per-minute quota, and they never justify building an unbounded automatic retry loop.

Complete stable error families

Always inspect retry on every response. The actions below guide investigation rather than replacing retry semantics: Runtime URLs return HTTP statuses directly rather than control-API envelopes—for example, Share returns 410 for expired/revoked links, 409 for a stopped Computer, and 503 when the Guest service is unreachable. Diagnose runtime URLs with Share.

Inspect process results and record evidence

  • Exec: Inspect exit_code, timed_out, and output_truncated. A nonzero exit or timeout can still have written partial files or triggered external calls.
  • Resize & Vault: Check disposition (live, next_start, restart_required).
  • Tools: Inspect status and error.details; installation never guarantees third-party authentication.
  • Support reports: Record timestamp, operation, original Machine ID, idempotency_key (if any), error.code, retry, and minimal non-secret observations. Always redact Agent Keys, Human tokens, invite codes, runtime URLs, and Secret values.