fix(dispatch): sort local dispatch candidates for stable output

main

Commit

alishakawaguchi2mo ago

Trail review: the trailer fallback pass ranges over a map (reachableCheckpointIDs), and Go randomizes map iteration order, so candidates were appended in a non-deterministic order. Nothing downstream re-sorts, so re-running dispatch --local over the same window could emit bullets in a different order — and thus a different LLM-authored summary — each time.

Sort the collected candidates most-recent-first (tiebreak by checkpoint ID) before returning, so dispatch output is stable across runs.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01Wi6WfsYgVrWDrZXpu62u8u Entire-Checkpoint: 01KXPGN48RDVZMVM8X80Y074EH