RuntimeWorktree
The runtime-owned git worktree a child session runs in, mirrored from the
subagent.worktree.* records on its parent’s log. The three enums are open: clients
treat an unknown value as unknown.
Fields and variants
Section titled “Fields and variants”baseCommitcleanupPolicycleanupStateheadCommitownershipparentDirtyExcludedworktreeRoot
Source
schema/msp/experimental/msp.schema.json#/types/RuntimeWorktree
{ "description": "The runtime-owned git worktree a child session runs in, mirrored from the\n`subagent.worktree.*` records on its parent's log. The three enums are open: clients\ntreat an unknown value as unknown.", "properties": { "baseCommit": { "description": "The commit the worktree was created from.", "type": "string" }, "cleanupPolicy": { "$ref": "#/$defs/RuntimeWorktreeCleanupPolicy", "description": "How the worktree is cleaned up." }, "cleanupState": { "$ref": "#/$defs/RuntimeWorktreeCleanupState", "description": "Where the worktree's cleanup stands." }, "headCommit": { "description": "The head commit the active lease recorded.", "type": "string" }, "ownership": { "$ref": "#/$defs/RuntimeWorktreeOwnership", "description": "Who owns the worktree." }, "parentDirtyExcluded": { "description": "True exactly when the parent's uncommitted changes were recorded as\nexcluded from the checkout.", "type": "boolean" }, "worktreeRoot": { "description": "The recorded worktree root, verbatim (recorded history; serving it\nnever probes the path).", "type": "string" } }, "required": [ "baseCommit", "cleanupPolicy", "cleanupState", "headCommit", "ownership", "parentDirtyExcluded", "worktreeRoot" ], "type": "object"}