docs: state subagent carrier invariant
This commit is contained in:
parent
160bb08a5c
commit
1bb9995128
1 changed files with 1 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ interface SessionRecord {
|
|||
|
||||
/** Recover the delegating parent carried by every service-owned subagent lifecycle event. */
|
||||
function subagentParentOf(carrier: Scoped<SubagentService>): Agent {
|
||||
// SubagentService emits this lifecycle pair only through scopeTarget(this, parent).
|
||||
return carrierKeyOf(carrier) as Agent
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue