mirror of
https://gh-proxy.org/https://github.com/klinsmaya/workdsh.git
synced 2026-11-09 18:07:02 +08:00
docs: state subagent carrier invariant
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user