From 18e543d95a09956967a92dd1f6094b3ce90171be Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 27 Jan 2026 19:42:04 -0300 Subject: [PATCH] atlasbot: refine insight tone and status --- services/comms/atlasbot-deployment.yaml | 2 +- services/comms/scripts/atlasbot/bot.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/services/comms/atlasbot-deployment.yaml b/services/comms/atlasbot-deployment.yaml index 4ac3582..609c245 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-67 + checksum/atlasbot-configmap: manual-atlasbot-68 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 0d0f92b..db0f560 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -118,7 +118,7 @@ CONFIDENCE_RE = re.compile(r"confidence\s*:\s*(high|medium|low)\b", re.IGNORECAS OPERATION_HINTS = { "count": ("how many", "count", "number", "total"), "list": ("list", "which", "what are", "show", "names"), - "top": ("top", "hottest", "highest", "most", "largest", "max", "maximum"), + "top": ("top", "hottest", "highest", "most", "largest", "max", "maximum", "busiest", "busy"), "status": ("ready", "not ready", "unready", "down", "missing", "status"), } @@ -1414,6 +1414,11 @@ def structured_answer( names = [node["name"] for node in filtered] if op == "status": + if "missing" in q and ("ready" in q or "readiness" in q): + return _format_confidence( + "Not ready nodes: " + (", ".join(names) if names else "none") + ".", + "high", + ) if "missing" in q and expected_workers: missing = sorted(set(expected_workers) - {n["name"] for n in inventory}) return _format_confidence(