From 44e938a00bf305c9b51b51582bd03080d426da4b Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 8 Aug 2026 04:17:45 +0000 Subject: [PATCH] fix(hermes): This is a localized two-line replacement. It returns exactly when all three values are None, as before, while removing boolean-chain cognitive complexity. (incident sonar/atlasbot/python:S3776/AZ2y3T38Ky9i4pkIpSiX) --- atlasbot/engine/answerer/spine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlasbot/engine/answerer/spine.py b/atlasbot/engine/answerer/spine.py index 3f9c80c..804b4a4 100644 --- a/atlasbot/engine/answerer/spine.py +++ b/atlasbot/engine/answerer/spine.py @@ -255,7 +255,7 @@ def _spine_from_counts(summary: dict[str, Any]) -> dict[str, str]: not_ready = len(inventory.get("not_ready_names") or []) workers_ready = workers.get("ready") workers_total = workers.get("total") - if total is None and ready is None and not_ready is None: + if all(value is None for value in (total, ready, not_ready)): return {} parts = [] if total is not None: -- 2.47.2