Home > intention-kernel > CapabilityExecutionContext
CapabilityExecutionContext interface
Runtime services available to a capability implementation.
Signature:
export interface CapabilityExecutionContextProperties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Observable progress channel for domain adapters and nested workflows. | ||
| Readonly<{ readonly threadId: ThreadId; readonly turnId: TurnId; readonly stepId: StepId; readonly capabilityId: CapabilityId; readonly trigger: "user" | "progression" | "dependency" | "resume"; }> | Kernel-owned technical identity for correlating host-side work. | |
| readonly FactRecord[] | Confirmed facts available before this capability executes. | |
| Complete model interpretation validated by the planner for this execution step. | ||
| Readonly<Record<string, unknown>> | Instance-scoped infrastructure adapters injected by the host. | |
| <T>(idempotencyKey: string, operation: (authority: EffectAuthority) => Promise<T>) => Promise<EffectExecution<T>> | Coordinate one external write through the durability effect ledger. | |
| AbortSignal | Signal aborted by the caller or the configured turn timeout. | |
| Conversation and interaction information for this turn. |