From b4cff2e359e120f21f93cd65d44e87f949fcf6c6 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 3 Feb 2026 03:04:50 -0300 Subject: [PATCH] atlasbot: catch node-3 hallucinations --- atlasbot/engine/answerer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlasbot/engine/answerer.py b/atlasbot/engine/answerer.py index 998cbb2..265c296 100644 --- a/atlasbot/engine/answerer.py +++ b/atlasbot/engine/answerer.py @@ -1571,7 +1571,7 @@ def _allowed_namespaces(summary: dict[str, Any]) -> list[str]: def _find_unknown_nodes(reply: str, allowed: list[str]) -> list[str]: if not reply or not allowed: return [] - pattern = re.compile(r"\b(titan-[0-9a-z]+|node\d+)\b", re.IGNORECASE) + pattern = re.compile(r"\b(titan-[0-9a-z]+|node-?\d+)\b", re.IGNORECASE) found = {m.group(1) for m in pattern.finditer(reply)} if not found: return []