fix(master): never reassign on a primary that did not answer its status probe

An unknown fact is not a failed one: the unsupported promotion path now
moves the line only on the current primary's own not-ready report, like
the supported path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-24 10:28:49 -08:00
1 parent af8473c561
commit 3aafd4e1f1
1 file changed
+3 -1
@@ -336,7 +336,9 @@ func (h *Host) applyUnsupportedPromotionEvidenceGate(placements []lifecycle.Plac
break
}
}
if enabledCandidate && (!result.CurrentKnown || !result.Current.Ready) {
// Only a positive not-ready report from the current primary moves the
// line. A primary that did not answer is unknown, never failed.
if enabledCandidate && result.CurrentKnown && !result.Current.Ready {
// Unsupported does not mean the current primary is unhealthy:
// a different slot may be stale. Judge the current primary
// from its own fresh heartbeat slot, never from placement.