inspectExecution
Purpose and behavior
Section titled “Purpose and behavior”Plans an execution from sandbox options without allocating, uploading files or starting an agent. For file workspaces it reports the binding the source needs, what the sandbox provider offers, each agent’s declared file features, the requirements of the optional dispatch settings and every incompatibility; createSandbox() and dispatch() refuse the first diagnostic with the same message. Git options return the sandbox and agents with no file requirements. Extension providers are read from their runtime capabilities.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
optionsRequiredFileSandboxOptions | SandboxOptionsOptions that createSandbox() would receive: Git options with repository or workspace, or file options with workspaceSource or a file workspace. The agent declared here is inspected unless settings selects another one.options.hooksOptionalLifecycleHooks | undefinedDeclared workspaceReady, hostReady and sandboxReady preparation commands.options.limitsOptionalPick<StageLimits, "copyMs" | "collectMs"> | undefined | StageLimits | undefinedCopy and collection deadlines for file execution; Git preparation and integration limits are refused.options.observationOptionalObservationHub | undefinedExplicit observation hub preserving scoped delivery and synchronous usage accounting.options.loggingOptionalLogging | undefinedDeclared execution journal; replayable file effects are refused when reproduction is unsupported.options.activityTransportOptionalTransport | undefinedTransport for bounded resource activity observations; liveness does not authorize recovery.options.recoveryTransportOptionalTransport | undefinedExplicit Transport retaining sandbox recovery evidence independently of file snapshots.options.sandboxProviderVariant-dependentSandboxProvider | SandboxProvider | undefinedExecution provider with the required file binding capability; legacy providers remain usable for Git.options.agentOptionalDispatchAgent | undefinedExplicitly composed agent compatible with the selected file execution and conversation capabilities.options.signalOptionalAbortSignal | undefinedCancellation signal propagated to the operation and its process group; reusable sandboxes remain usable.options.variablesVariant-dependentReadonly<Record<string, string>> | undefinedOnly explicitly declared environment variables reach the sandbox; no implicit .env loading.options.workspaceVariant-dependentFileWorkspace | undefined | Workspace | undefinedOpen workspace borrowed for this operation; its caller remains responsible for closing it.options.workspaceSourceVariant-dependentundefined | FileWorkspaceSourceDeclared source for an owned resource; mutually exclusive with borrowing an open workspace.options.recoveryVariant-dependentFileWorkspaceRecoveryAuthorization | undefinedExplicit stopped-process recovery authorization; interrupted replay remains a separate workflow decision.options.storageQuotaVariant-dependentOmit<StorageReservationOptions, "signal"> | undefinedAdmission reservation through Transport; coordinates cooperating writers without enforcing a physical disk quota.options.inputsVariant-dependentreadonly WorkspaceInput[] | undefinedExplicit file inputs; JSON workflow parameters are never implicitly written to disk.options.runtimeVariant-dependentWorkspaceRuntimeOptions | undefinedControl directory and logical namespace, separate from the workspace files.options.pathsVariant-dependentreadonly string[] | undefinedExplicit relative path selection; copy selection does not implicitly apply .gitignore.options.retentionVariant-dependentWorkspaceRetention | undefinedrun cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.options.includeUncommittedVariant-dependentboolean | undefinedRemote providers only: also send the managed worktree’s uncommitted changes and untracked, non-ignored files, default false. Without it, synchronization fails with code workspace when the sandbox touches one of those files, which includes any copies entry not ignored by a committed .gitignore.options.bootstrapVariant-dependentboolean | undefinedInstall a built-in CLI agent missing from a remote sandbox, at its pinned version, before its first use; default true. Mounted and host providers never install: the CLI must be in the image or on the host.options.conversationHomeVariant-dependentstring | undefinedHost directory used in place of your home directory to store and find captured native conversations. Default: your home directory for Claude and Codex transcripts, the repository for Copilot and Kimi session bundles.options.guardVariant-dependentDiffGuard | undefinedOptional committed-diff policy owned by this workspace and reused by every sandbox and agent. Requires named or integrate; current fails with code configuration before execution. Successful dispatches and terminal sessions check it after synchronization; integrate checks again under the merge lock. Refusal throws code guard and retains the branch and worktree when this workspace closes, even without preserve. Named workspaces compare their opening commit with the current commit across executions; integration workspaces compare the candidate with its unique merge base with the host, including inherited commits.options.repositoryVariant-dependentstring | undefinedPath inside the host Git checkout, default the process working directory. Outpost works from the checkout’s top-level directory; an unavailable directory fails with code workspace.options.branchVariant-dependentBranchPolicy | undefinedBranch policy: current, named or integrate. Default { mode: “current” }; createSandbox() and dispatch() on a remote provider default to integrate.options.copiesVariant-dependentreadonly string[] | undefinedRepository-relative files or directories copied from the host checkout into the new worktree before workspaceReady; missing entries are skipped. Requires named or integrate, and absolute, .. or .git paths fail with code configuration. An untracked or ignored copy keeps the worktree when it closes. On a remote provider without includeUncommitted, a copy not ignored by a committed .gitignore makes the first synchronization fail with code workspace.options.labelVariant-dependentstring | undefinedName used in the integrate branch (outpost/<label>-<id>), the worktree directory under .outpost/workspaces and the startup-failure journal; lowercased, other characters replaced by -, cut to 48.settingsOptionalExecutionInspectionSettings | undefinedOptional dispatch settings whose agent, continuation, response repairs and steering add the matching agent requirements. Defaults to a plain dispatch, which only requires file dispatch support.settings.steeringOptionalSteering | undefinedController from createSteering(), attached for the whole dispatch and released when it ends. resume() and fork() do not reuse it.settings.agentOptionalDispatchAgent | undefinedAgent that runs the brief: one from createAgent() or createReplayAgent(), or a createFallbackAgent() that moves to its next candidate on a listed quota or unavailable fault. A fallback agent cannot take continuation.settings.responseOptionalResponseSpec<unknown> | undefinedTyped response contract: appends final-answer format instructions and the JSON input schema after the rendered brief and steering messages included at turn start. Parses and validates the tagged answer, with up to repairs correction turns. Requires one pass; injection cannot be disabled.settings.continuationOptional{ readonly id: string; readonly fork?: boolean; } | undefinedNative conversation to continue, by id; fork: true continues a copy and leaves the original unchanged. Requires one pass and an agent that supports resume.

