Skip to content

Interface: LimitExceededFlushParams<THandle> ​

Defined in: runtime/policy/limit-exceeded-flush-params.ts:47

Parameters for executing the 4-step crash-safe .onLimitExceeded() sequence (SPEC.md §3.5).

Consolidates the active AgentContinuationFrame, PendingToolBatch, PolicyLimitExceededConfig, ModelDriver, LedgerStore, TopologyStore, ServiceSessionRegistry, and optional .replaceWith() promotion.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
agentFramereadonlyAgentContinuationFrameActive AgentContinuationFrame being flushed and aborted.runtime/policy/limit-exceeded-flush-params.ts:49
baseScopeCheckpoint?readonlystringOptional base scope checkpoint restored when no abortHook is configured.runtime/policy/limit-exceeded-flush-params.ts:71
continuationQueue?readonlyStepContinuationQueueOptional StepContinuationQueue serializing updateContinuationStack writes.runtime/policy/limit-exceeded-flush-params.ts:65
ctxreadonlyStepExecutionContext<THandle>Step execution context providing runId, stepExecId, scopeHandle, scope, and registry.runtime/policy/limit-exceeded-flush-params.ts:75
ledgerStorereadonlyLedgerStoreDurable LedgerStore persisting wire frames, continuation stacks, and step transitions.runtime/policy/limit-exceeded-flush-params.ts:63
limitConfigreadonlyPolicyLimitExceededConfig<THandle>Policy .onLimitExceeded() configuration specifying flushInterrupt and optional abortHook.runtime/policy/limit-exceeded-flush-params.ts:55
modelDriverreadonlyModelDriverActive ModelDriver instance.runtime/policy/limit-exceeded-flush-params.ts:59
modelNodereadonlyModelASTNodeActive ModelASTNode used for the toolChoice: 'none' flush turn.runtime/policy/limit-exceeded-flush-params.ts:57
outerFrames?readonlyreadonly ContinuationFrame[]Outer continuation frames (loop-frame, etc.) prefixing agentFrame in LedgerStore.runtime/policy/limit-exceeded-flush-params.ts:51
pendingToolBatch?readonlyPendingToolBatchOptional unfinished PendingToolBatch whose remainingCalls must be synthesized as [Aborted: Limit Exceeded].runtime/policy/limit-exceeded-flush-params.ts:53
replacementPromotion?readonlyLimitExceededReplacementConfigOptional .replaceWith() promotion configuration executed in Step 4.runtime/policy/limit-exceeded-flush-params.ts:77
serviceRegistry?readonlyServiceSessionRegistryOptional ServiceSessionRegistry quiesced in Step 3.runtime/policy/limit-exceeded-flush-params.ts:69
topologyStore?readonlyTopologyStoreOptional TopologyStore whose step-scoped overlay is reset in Step 3.runtime/policy/limit-exceeded-flush-params.ts:67
tripReasonreadonlystringDiagnostic reason explaining which quantitative limit or quota tripwire tripped.runtime/policy/limit-exceeded-flush-params.ts:73
wirePrefix?readonlyCompiledWirePrefixOptional pinned CompiledWirePrefix for the actor.runtime/policy/limit-exceeded-flush-params.ts:61

Released under the MIT License.