From 8bd4d9fc7af48a84915c83fc9e3a81ffdd2fb207 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 27 Jan 2026 18:56:14 -0300 Subject: [PATCH] atlasbot: prioritize hardware for subjective prompts --- services/comms/atlasbot-deployment.yaml | 2 +- services/comms/scripts/atlasbot/bot.py | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/services/comms/atlasbot-deployment.yaml b/services/comms/atlasbot-deployment.yaml index 1212505..cbc79e5 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-59 + checksum/atlasbot-configmap: manual-atlasbot-60 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 7f92d8e..613b0c6 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -1707,12 +1707,14 @@ def _select_insight( return candidate return candidates[1] if prefer_keys: - for key, text, conf in candidates: - if key in prefer_keys and key not in used: - return key, text, conf - for key, text, conf in candidates: - if key in prefer_keys: - return key, text, conf + for prefer in prefer_keys: + for key, text, conf in candidates: + if key == prefer and key not in used: + return key, text, conf + for prefer in prefer_keys: + for key, text, conf in candidates: + if key == prefer: + return key, text, conf if used: for candidate in candidates: if candidate[0] not in used: