From fc10eed704d4288c3cce20325526ff84059572c2 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 27 Jan 2026 22:32:25 -0300 Subject: [PATCH] atlasbot: fix score formatting --- services/comms/atlasbot-deployment.yaml | 2 +- services/comms/scripts/atlasbot/bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/comms/atlasbot-deployment.yaml b/services/comms/atlasbot-deployment.yaml index 17e2cb2..7ad44d4 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-75 + checksum/atlasbot-configmap: manual-atlasbot-76 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 0668521..9ecd06d 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -2614,7 +2614,7 @@ def _candidate_note(candidate: dict[str, Any]) -> str: def _ensure_scores(answer: str) -> str: text = answer.strip() - lines = [line for line in text.splitlines() if line.strip()] + lines = [line.strip() for line in text.splitlines() if line.strip()] has_relevance = any(line.lower().startswith("relevance") for line in lines) has_satisfaction = any(line.lower().startswith("satisfaction") for line in lines) has_confidence = any(line.lower().startswith("confidence") for line in lines)