From 043d1cbab39201b1888d80708e42efbd602f8d08 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Wed, 28 Jan 2026 04:00:13 -0300 Subject: [PATCH] atlasbot: clean fact labels and non-cluster confidence --- services/comms/atlasbot-deployment.yaml | 2 +- services/comms/scripts/atlasbot/bot.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/services/comms/atlasbot-deployment.yaml b/services/comms/atlasbot-deployment.yaml index 7994618..58a5564 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-95 + checksum/atlasbot-configmap: manual-atlasbot-96 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 357941b..59a8c2d 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -2945,6 +2945,7 @@ def _open_ended_system() -> str: "If the question is ambiguous, pick a reasonable interpretation and state it briefly. " "Avoid repeating the exact same observation as the last response if possible; vary across metrics, workload, or hardware details. " "Always include at least one substantive answer sentence before the score lines. " + "Do not mention fact IDs or internal labels (e.g., F1/F2) in your response. " "When the fact pack includes hottest_cpu/ram/net/io lines, use them to answer hottest/busiest node questions. " "When the fact pack includes postgres_hottest_db, use it for questions about the busiest database. " "Do not invent numbers or facts. " @@ -4091,6 +4092,7 @@ def _non_cluster_reply(prompt: str, *, history_lines: list[str], mode: str) -> s system_override=system, model=model, ) + reply = re.sub(r"\\bconfidence\\s*:\\s*(high|medium|low)\\b\\.?\\s*", "", reply, flags=re.IGNORECASE).strip() return _ensure_scores(reply)