From 057bdd5c6c21d97b45a641bab37219933e7c7720 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 12:39:32 +0200 Subject: [PATCH] B2-3d: status shows a survival-only record on a generation that no longer routes cargo-mutants on the 3d diff missed `|| -> &&` in render_supervision: no test held meters with only survival entries under an unrouted generation. Co-Authored-By: Claude Opus 5.5 --- src/control_plane.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/control_plane.rs b/src/control_plane.rs index f2e78e4..28185cc 100644 --- a/src/control_plane.rs +++ b/src/control_plane.rs @@ -15334,6 +15334,13 @@ mod tests { // An unrouted, unmetered target shows no route line at all. let lines = render_supervision("plain", Some(&unrouted_generation()?), None, now).join("\n"); assert!(!lines.contains("route actuations"), "{lines}"); + // A generation that no longer routes, whose meters hold only survival + // actuations, still shows the record. + let mut survived = TargetSupervision::new("plain"); + survived.route_survivals = vec![now - 1]; + let lines = + render_supervision("plain", Some(&unrouted_generation()?), Some(&survived), now).join("\n"); + assert!(lines.contains("route survival actuations 1 in window"), "{lines}"); Ok(()) }