Documentation
¶
Overview ¶
Package execution owns invocation lifecycles; context values live in rctx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChild ¶
func NewChild(parent context.Context, opts ChildOptions) (context.Context, context.CancelFunc, error)
NewChild creates a synchronous execution with separate history and parent-owned delivery/approval. Close only retires this execution's cancel registration; it never closes the parent broker or consumes parent steering. The parent context must identify a trusted workspace and logical conversation, Nested children inherit the original approval target and cancellation owner. Depth limits belong to the invoking host/tool. Async jobs need their own lifecycle.
func NewIdentity ¶
func NewIdentity(parent context.Context) capexecution.Identity
NewIdentity assigns an invocation independent of its history and backend turn. Hosts without a root turn start a new ownership domain.
Types ¶
type ChildOptions ¶
ChildOptions is supplied by a trusted host, never decoded from model tool arguments. HistorySessionID must already be namespaced for the parent's workspace; this constructor does not select or generate persistent histories.