SubagentRosterEntry
One roster row: a durable child’s identity, place, and state, projected
from its control records. Rows carry no result content — the transcript
stays on the child session / subagent/readResult.
Fields and variants
Section titled “Fields and variants”agentPathchildSessionIdcontrolStatusdefinitionNamedepthdurationMsnameobjectiveparentPathparentSubagentIdresultReadyrolesubagentIdterminalReasonworkflowRunId
Source
schema/msp/experimental/msp.schema.json#/types/SubagentRosterEntry
{ "description": "One roster row: a durable child's identity, place, and state, projected\nfrom its control records. Rows carry no result content — the transcript\nstays on the child session / `subagent/readResult`.", "properties": { "agentPath": { "description": "The agent definition path (`agent_path`), verbatim from the spawn.", "type": "string" }, "childSessionId": { "description": "The child's own session id, readable via `session/read`/`view/page`.\n**Additive-optional**: absent until the child's start is attested.", "type": "string" }, "controlStatus": { "$ref": "#/$defs/SubagentControlStatus", "description": "The child's control status: `Accepted` at spawn, then the latest\n`StatusUpdated` / `Closed` / `ResultReady` / `RecoveryAvailable` /\n`RecoveryDecision` (`Accepted | Starting | Running | ResultReady |\nClosing | Closed | RecoveryPending | ManualReconciliation`)." }, "definitionName": { "description": "The granted definition's name (`definition_grant_audit`\n`definition_name`). **Additive-optional**: absent on spawns without\na grant audit (historical records). The resolved definition id is\nnot persisted on the spawn record, so the name is what the roster\ncan truthfully carry.", "type": "string" }, "depth": { "description": "The spawn depth (1 = a root-session child).", "type": "integer" }, "durationMs": { "description": "The child's observed wall-clock duration in ms, when the runtime\nobserved one. **Additive-optional**: absent until first observation.", "type": "integer" }, "name": { "description": "The child's display name: the spawn `description`, falling back to\nthe spawn `role`. **Additive-optional**: absent when neither carries\none; never parsed from `agentPath`.", "type": "string" }, "objective": { "description": "The spawn objective. **Additive-optional**: absent when the spawn\ncarried none.", "type": "string" }, "parentPath": { "description": "The parent row's `agentPath`. **Additive-optional**: absent whenever\n`parentSubagentId` is.", "type": "string" }, "parentSubagentId": { "description": "The parent's `subagentId`: the roster row whose child session issued\nthis child's spawn. **Additive-optional**: absent when the parent is\nthe root session, or when the parent row is not in the roster or not\nyet attested — never guessed, never derived from `agentPath`.", "type": "string" }, "resultReady": { "description": "Whether the child's latest attempt's result is ready (a\n`ResultReady` for the latest admitted attempt seen).", "type": "boolean" }, "role": { "description": "The spawn role. **Additive-optional**: absent when the spawn\ncarried none.", "type": "string" }, "subagentId": { "description": "The durable child identity (`subagent_id`). Rows without one are not\nroster rows: a rejected spawn names no child.", "type": "string" }, "terminalReason": { "description": "The terminal reason: the result envelope's `errorKind` when present,\nelse the cancel outcome's `reason`. **Additive-optional**: absent on\nlive rows and on terminals that carry no reason — never fabricated\nfrom the close outcome's status word.", "type": "string" }, "workflowRunId": { "description": "The owning dynamic workflow run id, when the child was\nworkflow-admitted. **Additive-optional**: absent for native spawns.", "type": "string" } }, "required": [ "agentPath", "controlStatus", "depth", "resultReady", "subagentId" ], "type": "object"}