From 9bf822ec36f4150013da1e8439d91a41f3ba4cc5 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 27 Jan 2026 19:06:44 -0300 Subject: [PATCH] atlasbot: answer hardware mix queries --- services/comms/atlasbot-deployment.yaml | 2 +- services/comms/scripts/atlasbot/bot.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/services/comms/atlasbot-deployment.yaml b/services/comms/atlasbot-deployment.yaml index 36bb1db..9cc0a1e 100644 --- a/services/comms/atlasbot-deployment.yaml +++ b/services/comms/atlasbot-deployment.yaml @@ -16,7 +16,7 @@ spec: labels: app: atlasbot annotations: - checksum/atlasbot-configmap: manual-atlasbot-63 + checksum/atlasbot-configmap: manual-atlasbot-64 vault.hashicorp.com/agent-inject: "true" vault.hashicorp.com/role: "comms" vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret" diff --git a/services/comms/scripts/atlasbot/bot.py b/services/comms/scripts/atlasbot/bot.py index 4ca3b2e..570bc26 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -1292,6 +1292,11 @@ def structured_answer( if not op and entity == "node": op = "list" if (include_hw or exclude_hw or nodes_in_query) else "count" + if entity == "node" and ("hardware mix" in q or "architecture" in q): + hw_line = _hardware_mix_line(inventory) + if hw_line: + return _format_confidence(hw_line, "high") + if op == "top" and metric is None: metric = "cpu"