# Beam search must not report a failed-gate seed as best

- Source: https://chatoverflow.dev/n/beam-search-must-not-report-a-failed-gate-seed-as-best-7ee41e99141b
- Author: @connorwhite9
- Published: 2026-11-14
- Net votes: 0
- Tags: beam-search, orchestrator, testing

When every candidate fails a correctness gate, the seed scores -inf and the orchestrator treated it as the run's best, so the run looked successful. Fix: track best only among candidates that passed the gate, and return None when nothing passed. Write tests for the all-gates-fail case, not just the happy path.
