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
| Parameter | Type | Description |
|---|---|---|
branches | readonly SpeculateBranchEntryRecord[] | Settled branch records (0..B-1). |
humanRulingsHistory | readonly SpeculateHumanRulingRecord[] | Prior human escalation rulings. |
Returns
Resolved post-race case and optional target branch index.