From 41b131c347a731a40b2ec6d8aa52543d6b833cdf Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 27 Jan 2026 12:47:28 -0300 Subject: [PATCH] atlasbot: preserve response text with confidence --- 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 7ec373f..b3e617d 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-34 + checksum/atlasbot-configmap: manual-atlasbot-35 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 6644afb..c790f5c 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -149,7 +149,7 @@ def _ensure_confidence(text: str) -> str: match = CONFIDENCE_RE.search(line) if match: level = match.group(1).lower() - lines[idx] = f"Confidence: {level}" + lines[idx] = CONFIDENCE_RE.sub(f"Confidence: {level}", line) return "\n".join(lines) lines.append("Confidence: medium") return "\n".join(lines)