Function: executeLimitExceededSequence()
ts
function executeLimitExceededSequence<THandle>(params): Promise<LimitExceededFlushResult>;Defined in: runtime/policy/execute-limit-exceeded-flush.ts:262
Executes the 4-step crash-safe .onLimitExceeded() epistemic flush and abort sequence (SPEC.md §3.5).
- Synthesizes
[Aborted: Limit Exceeded]results for unfinishedremainingCallsand writes therole: 'tool'wire frame. - Injects
[LIMIT_EXCEEDED_FLUSH], invokes 1 finaltoolChoice: 'none'turn witheffort: 'low'andflushInterrupt.schema, and persistsflushedInterruptPayloadJson. - Quiesces all active
ServiceSessiondaemons, runsabortHook(or restoresbaseScopeCheckpoint), and resets step-scoped topology overlay mutations. - Atomically transitions the step to
'INTERRUPTED'(discarding step lessons) and promotes any.replaceWith()executable.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
params | LimitExceededFlushParams<THandle> | Limit-exceeded flush parameters and stores. |
Returns
Promise<LimitExceededFlushResult>
Flushed interrupt payload, abort metadata, and updated frame.