docs: state subagent carrier invariant

This commit is contained in:
Tianyi Cui
2026-07-14 09:28:41 +08:00
parent 160bb08a5c
commit 1bb9995128
+1
View File
@@ -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
}