recoverFileWorkspace
Purpose and behavior
Section titled “Purpose and behavior”Claims an inspected abandoned file workspace after explicit stopped-process authorization and verified allocation release. File or mounted-source adoption is separate and explicit.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”recordRequiredFileWorkspaceRecordVersioned workspace description retaining ownership, settled generation and recovery references.optionsRequiredFileWorkspaceRecoveryOptionsInspected revision, stopped-process confirmations and explicit adoption choices for interrupted files or a changed mount.options.expectedRevisionRequiredstringRevision obtained by inspection; recovery refuses a changed persisted record.options.processesStoppedRequiredtrueExplicit assertion that the prior owner and its processes have stopped; never inferred from heartbeat expiry.options.sandboxProviderOptionalSandboxProvider | undefinedExecution provider with the required file binding capability; legacy providers remain usable for Git.options.runtimeOptionalWorkspaceRuntimeOptions | undefinedControl directory and logical namespace, separate from the workspace files.options.retentionOptionalWorkspaceRetention | undefinedrun cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.options.portableOptionalboolean | undefinedRestore a verified snapshot into a new owned materialization; mounted sources must remain accessible and unchanged.options.recoverOptional{ readonly processesStopped: true; readonly expectedRevision?: string; readonly allocationReleased?: true; readonly adoptInterruptedFiles?: boolean; readonly adoptMountedSource?: boolean; } | undefinedExplicit stopped-process recovery authorization; interrupted replay remains a separate workflow decision.

