formatRequired
1
Version of the persisted envelope; unsupported versions are refused.
idRequired
string
Stable identifier of this resource, independent of its materialization path.
kindRequired
"ephemeral" | "directory"
Discriminant selecting Git, a directory source or an initially empty workspace.
sourceRequired
FileWorkspaceSource
Declared source for an owned resource; mutually exclusive with borrowing an open workspace.
ownershipRequired
"owned"
Owned materializations may be cleaned up; borrowed mounted sources are never deleted.
ownerRequired
{ readonly nonce: string; readonly state: "open" | "released" | "recovering"; }
Owner nonce and lifecycle state used to fence resume and explicit recovery.
locksRequired
{ readonly materialization: string; readonly source?: string; }
Exact host lock identifiers for materialization and mounted source; recovery releases only these locks.
materializationRequired
{ readonly device: number; readonly inode: number; }
Device and inode identity used to detect replacement and known filesystem aliases.
directoryRequired
string
Absolute local materialization or source directory; it is not a portable resource identity.
runtimeRequired
WorkspaceRuntime
Control directory and logical namespace, separate from the workspace files.
inputFingerprintRequired
string
Canonical fingerprint of initial inputs and their declared selection, independent of later work.
preparationOptional
"failed" | "preparing" | "ready" | undefined
Preparation state recorded before file copies and hooks. Incomplete or failed preparation retains files and requires explicit adoption during recovery; absent means a ready record from the earlier format.
inputsOptional
readonly WorkspaceFileEntry[] | undefined
Verified initial manifest retained to detect input identity and protect publication back to the copied source.
publicationBaselinesOptional
readonly { readonly options: WorkspaceOutputOptions; readonly expected: readonly WorkspaceFileEntry[]; }[] | undefined
Declared destinations and their expected pre-execution manifests, retained across resume.
publicationsOptional
readonly { readonly id: string; readonly state: "applying" | WorkspacePublication["state"]; readonly reference: TransportReference; }[] | undefined
Publication states and Transport journal references, retained independently of workflow task status.
mountedFingerprintOptional
string | undefined
Fingerprint of the exposed mounted source; a changed or unavailable source refuses resume.
generationRequired
number
Monotonically increasing number recorded only after a settled file generation is verified.
fingerprintRequired
string
Canonical digest of the last verified settled file generation.
snapshotOptional
TransportReference | undefined
Transport reference to a verified file snapshot; restoration does not imply sandbox disposal.
conversationsOptional
readonly WorkspaceConversationArchive[] | undefined
Archived native conversation references relocated with the restored owned workspace.
allocationOptional
WorkspaceAllocationRecord | undefined
Sandbox allocation state, including uncertain allocations that require explicit release evidence.