blob: 05a1aa999877194ae04efac0ffc1cd89f5486ea7 [file]
/**
* Stable compatibility handle for subagent work during the child-session migration.
*
* New work is addressed by its durable child Session. Historical child AgentRuns
* remain readable in the parent Session without rewriting their ledgers.
*/
export type SubagentExecutionRef =
| {
kind: 'child_session';
sessionId: string;
currentRunId?: string;
}
| {
kind: 'legacy_child_run';
sessionId: string;
runId: string;
};