Skip to content

Function: resolvePostRaceCases() ​

ts
function resolvePostRaceCases(branches, humanRulingsHistory): PostRaceResolution;

Defined in: runtime/speculate/internal/resolve-tournament-race.ts:74

Classifies a completed speculative tournament race into Post-Race Cases 1–4 (SPEC.md §3.7.2 Capability 2).

Never short-circuits the arbiter when $\ge 1$ branch is parked alongside a completed branch, when $\ge 2$ branches are parked, or when humanRulingsHistory.length > 0.

Parameters ​

ParameterTypeDescription
branchesreadonly SpeculateBranchEntryRecord[]Settled branch records (0..B-1).
humanRulingsHistoryreadonly SpeculateHumanRulingRecord[]Prior human escalation rulings.

Returns ​

PostRaceResolution

Resolved post-race case and optional target branch index.

Released under the MIT License.