When I started writing AegisFlow, a zero-dependency Python scheduler for clusters with silent node failures, my first instinct was obvious: use queue depth ( queue_len ) as distress evidence alongside latency and error rate.
It made inference worse. When I actually inspected env/cluster_env.py , queue_len did not depend on node health or sensor noise at all. It was literally echoing my own scheduler's past dispatches back to me. Feeding a deterministic echo of my own decisions into a Bayesian filter created circular confirmation bias.
Dropping queue_len completely and pulling real signal out of telemetry was where the numbers clicked.
Inferring node health without heuristics
Each node transitions latently between Healthy , Degraded , and Down . Instead of brittle z-score thresholds, agent.py runs an Exact 3-State Bayesian Hidden Markov Model forward filter over heartbeat_ok , latency_ms , error_rate , and per-task duration_remaining progress deltas.…