From 178ae5470dfb11bef4427e86896ad4097f1a920f Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 2 Feb 2026 12:47:02 -0300 Subject: [PATCH] atlasbot: include node pods for hotspot namespace --- atlasbot/engine/answerer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/atlasbot/engine/answerer.py b/atlasbot/engine/answerer.py index a8e7fd9..a9e6e85 100644 --- a/atlasbot/engine/answerer.py +++ b/atlasbot/engine/answerer.py @@ -328,6 +328,12 @@ class AnswerEngine: if hottest_facts and not hardware_facts and focus_entity != "class" and not hotspot_request: metric_facts = hottest_facts key_facts = _merge_fact_lines(metric_facts, key_facts) + if "namespace" in lowered_q and any(term in lowered_q for term in ("hotspot", "hot spot", "hottest")): + for line in summary_lines: + if line.startswith("node_pods_top:"): + metric_facts = _merge_fact_lines([line], metric_facts) + key_facts = _merge_fact_lines([line], key_facts) + break if classify.get("question_type") in {"metric", "diagnostic"} and not hottest_facts and not hardware_facts: metric_candidates = _metric_candidate_lines(summary_lines, keyword_tokens) selected_facts = await _select_metric_facts(call_llm, normalized, metric_candidates, plan)