Skip to content

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 ParameterDefault typeDescription
TInunknownValidated loop input payload type.
TOutunknownValidated loop output payload type.
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
accumulatedLessonOutcomesreadonlyRecord<string, LessonOutcome>Deduplicated per-lesson 4-state outcome map accumulated across the loop.runtime/loop/loop-execution-state.ts:39
continuationQueuereadonlyStepContinuationQueueSerialized per-stepExecId continuation stack queue.runtime/loop/loop-execution-state.ts:49
ctxreadonlyStepExecutionContext<THandle>Active step execution context.runtime/loop/loop-execution-state.ts:33
currentActModelNodepublicModelASTNodeCurrently selected ModelASTNode for the .act() actor.runtime/loop/loop-execution-state.ts:59
humanAdaptersByIdreadonlyReadonlyMap<string, HumanAdapter>Map of HumanAdapter instances keyed by humanNode.id.runtime/loop/loop-execution-state.ts:55
lastInnerAgentFrame?publicContinuationFrameMost recent inner .act() ContinuationFrame captured on exit or interruption.runtime/loop/loop-execution-state.ts:61
lastSuspendedAtCallId?publicstringTool call ID at which the inner .act() agent suspended, if any.runtime/loop/loop-execution-state.ts:63
ledgerStore?readonlyLedgerStoreOptional durable LedgerStore.runtime/loop/loop-execution-state.ts:41
lessonStore?readonlyLessonStoreOptional LessonStore.runtime/loop/loop-execution-state.ts:45
lockManagerreadonlyScopeLockManagerShared-read / exclusive-write scope lock manager.runtime/loop/loop-execution-state.ts:47
loopFramepublicLoopContinuationFrameMutable current LoopContinuationFrame state.runtime/loop/loop-execution-state.ts:35
nodereadonlyLoopNode<TIn, TOut, THandle>Passive LoopNode AST definition.runtime/loop/loop-execution-state.ts:29
outerFramesreadonlyContinuationFrame[]Outer continuation frames prefixing loopFrame.runtime/loop/loop-execution-state.ts:37
outputTypeMarker?readonlyTOutOptional phantom reference to TOut so the generic parameter is structurally used.runtime/loop/loop-execution-state.ts:65
poolManagerreadonlyPoolManagerCapacity pool manager for model and seat selection.runtime/loop/loop-execution-state.ts:51
serviceRegistryreadonlyServiceSessionRegistryReference-counted ServiceSessionRegistry.runtime/loop/loop-execution-state.ts:53
topologyStore?readonlyTopologyStoreOptional TopologyStore.runtime/loop/loop-execution-state.ts:43
validatedInputreadonlyTInSchema-validated loop input payload.runtime/loop/loop-execution-state.ts:31
wirePrefixesByGroupIdreadonlyReadonlyMap<string, CompiledWirePrefix>Map of compiled wire prefixes keyed by prefixGroup.id.runtime/loop/loop-execution-state.ts:57

Released under the MIT License.