Skip to content

Interface: SpeculateBranchEntryRecord ​

Defined in: ports/speculate-continuation-frame.ts:10

Per-branch execution entry inside a SpeculateContinuationFrame.

Tracks the branch index, child scope fork ID, tournament status, parked escalation payload, and nested branch worker continuation stack.

Properties ​

PropertyModifierTypeDescriptionDefined in
branchIndexreadonlynumberZero-based index of the candidate branch (0..branchCount - 1).ports/speculate-continuation-frame.ts:12
childScopeCheckpoint?readonlystringOptional serialized scope checkpoint captured when the branch parks or completes.ports/speculate-continuation-frame.ts:23
continuationStackreadonlyreadonly ContinuationFrame[]Nested outer-to-inner continuation stack for the branch worker executable.ports/speculate-continuation-frame.ts:35
errorSummary?readonlystringOptional error diagnostic summary when status === 'FAILED'.ports/speculate-continuation-frame.ts:29
forkIdreadonlystringUnique child scope fork identifier for this candidate branch.ports/speculate-continuation-frame.ts:14
outputJson?readonlystringOptional JSON-serialized output payload when status === 'COMPLETED' or 'WINNER_COMMITTED'.ports/speculate-continuation-frame.ts:25
parkedEscalationPayloadJson?readonlystringOptional JSON-serialized escalation/interrupt payload when parked.ports/speculate-continuation-frame.ts:33
parkedInterruptId?readonlystringOptional identifier of the interrupt on which the branch parked (status === 'PARKED_ON_ESCALATION').ports/speculate-continuation-frame.ts:31
scopeReceiptJson?readonlystringOptional JSON-serialized TReceipt from scope.inspect(childHandle) or commitChild().ports/speculate-continuation-frame.ts:27
statusreadonly| "RUNNING" | "COMPLETED" | "FAILED" | "PARKED_ON_ESCALATION" | "WINNER_COMMITTED"Current tournament status of the candidate branch.ports/speculate-continuation-frame.ts:16

Released under the MIT License.