Accept a `.inf` string for unbounded process thresholds #25422
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 373 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25422"
general
weight: 0.35
Yqnn
Checklist before requesting review
What does this PR do?
Lets the
processcheck'sthresholds.warningandthresholds.criticaltake the string'.inf'as an unbounded upper bound, and rejects threshold values the check can't use at config load.spec.yaml: each bound isanyOf: [number, '.inf']; the description states the bound rules. The generated model andconf.yaml.examplematch.process.py: converts'.inf'tofloat('inf')before comparing, and treats an explicitnullrange as the default[1, inf]instead of crashing.config_models/validators.py:instance_thresholdschecks every bound on the raw config, before pydantic's lax float parsing. Only numbers, or'.inf'as the upper bound, pass; other strings, booleans, NaN, infinite bounds in the wrong direction or past the two bounds, and inverted ranges fail with aConfigurationErrornaming the value.test_process.py: end-to-enddd_run_checkcases for'.inf',nullranges, and every rejected input.Motivation
Customer report (Zendesk 3018831): an unbounded threshold set in Fleet Automation's Remote Config UI didn't work. Local YAML
.infis a float, but Remote Config sends JSON, which has no infinity, so it arrived asnull. The string'.inf'survives JSON. Follows #25140, which madewarning/criticalstructured. Fleet form support for this shape is still to do (ddoghq/web-ui#17846 was backed out and has no net changes).Compatibility
'.inf':process5.5.3 rejects it at load, and 5.5.2 and earlier load it but fail every run with aTypeError. Fleet should only offer it to Agents withprocess6.0.0 or later.anyOfcan't express position, so a schema-valid['.inf', 5]passes the form but fails at load. The Fleet form should offer.infonly for the upper bound; this agent-side load error is the intended backstop..changed, major bump ofprocessfrom 5.5.3 to 6.0.0): a customer with an odd threshold today (for example[10, 5],[.inf, 5],[1, .nan],[true, 5], or[2, 'inf'], which fails only after the metrics are sent) still has a running check that sends process metrics, even though the threshold is wrong. After they upgrade, that check fails to load and sends nothing, so their dashboards and monitors for it go quiet. Something that was running stops running, which is why this is.changed. Normal configs like[5, 10]or[2, '.inf']are unaffected..fixedcovers'.inf'and thenullcrash.