Interface: LoopExecutionState<TIn, TOut, THandle>
Defined in: runtime/loop/loop-execution-state.ts:27
Mutable execution state passed across P.loop iteration phase helpers (Rule 3.1).
Tracks the active LoopContinuationFrame, outer continuation frames, model escalation state, deduplicated lesson outcomes, and runtime managers.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Validated loop input payload type. |
TOut | unknown | Validated loop output payload type. |
THandle | unknown | Runtime handle type of the active isolation scope. |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
accumulatedLessonOutcomes | readonly | Record<string, LessonOutcome> | Deduplicated per-lesson 4-state outcome map accumulated across the loop. | runtime/loop/loop-execution-state.ts:39 |
continuationQueue | readonly | StepContinuationQueue | Serialized per-stepExecId continuation stack queue. | runtime/loop/loop-execution-state.ts:49 |
ctx | readonly | StepExecutionContext<THandle> | Active step execution context. | runtime/loop/loop-execution-state.ts:33 |
currentActModelNode | public | ModelASTNode | Currently selected ModelASTNode for the .act() actor. | runtime/loop/loop-execution-state.ts:59 |
humanAdaptersById | readonly | ReadonlyMap<string, HumanAdapter> | Map of HumanAdapter instances keyed by humanNode.id. | runtime/loop/loop-execution-state.ts:55 |
lastInnerAgentFrame? | public | ContinuationFrame | Most recent inner .act() ContinuationFrame captured on exit or interruption. | runtime/loop/loop-execution-state.ts:61 |
lastSuspendedAtCallId? | public | string | Tool call ID at which the inner .act() agent suspended, if any. | runtime/loop/loop-execution-state.ts:63 |
ledgerStore? | readonly | LedgerStore | Optional durable LedgerStore. | runtime/loop/loop-execution-state.ts:41 |
lessonStore? | readonly | LessonStore | Optional LessonStore. | runtime/loop/loop-execution-state.ts:45 |
lockManager | readonly | ScopeLockManager | Shared-read / exclusive-write scope lock manager. | runtime/loop/loop-execution-state.ts:47 |
loopFrame | public | LoopContinuationFrame | Mutable current LoopContinuationFrame state. | runtime/loop/loop-execution-state.ts:35 |
node | readonly | LoopNode<TIn, TOut, THandle> | Passive LoopNode AST definition. | runtime/loop/loop-execution-state.ts:29 |
outerFrames | readonly | ContinuationFrame[] | Outer continuation frames prefixing loopFrame. | runtime/loop/loop-execution-state.ts:37 |
outputTypeMarker? | readonly | TOut | Optional phantom reference to TOut so the generic parameter is structurally used. | runtime/loop/loop-execution-state.ts:65 |
poolManager | readonly | PoolManager | Capacity pool manager for model and seat selection. | runtime/loop/loop-execution-state.ts:51 |
serviceRegistry | readonly | ServiceSessionRegistry | Reference-counted ServiceSessionRegistry. | runtime/loop/loop-execution-state.ts:53 |
topologyStore? | readonly | TopologyStore | Optional TopologyStore. | runtime/loop/loop-execution-state.ts:43 |
validatedInput | readonly | TIn | Schema-validated loop input payload. | runtime/loop/loop-execution-state.ts:31 |
wirePrefixesByGroupId | readonly | ReadonlyMap<string, CompiledWirePrefix> | Map of compiled wire prefixes keyed by prefixGroup.id. | runtime/loop/loop-execution-state.ts:57 |