From 9214a101150e03b142026ce15193288c758e3749 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 08:04:08 +0000 Subject: [PATCH] chore(hardware_catalog): flag queried_events and ATTRIBUTED_LINUX_KEYS as possibly dead Neither has a production reader: attribution checks ATTRIBUTED_EVENTS and _LINUX_COMPONENTS directly, and only tests/test_hardware_catalog.py reads these two, as the seam check against the agent's query list. Comment-only. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01QcqxZNMaR9T12TRGzAjZaj --- kenny-server/kenny_server/hardware_catalog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kenny-server/kenny_server/hardware_catalog.py b/kenny-server/kenny_server/hardware_catalog.py index ca1ce16a..e8209bb2 100644 --- a/kenny-server/kenny_server/hardware_catalog.py +++ b/kenny-server/kenny_server/hardware_catalog.py @@ -106,6 +106,8 @@ def _event_id(value: Any) -> int | None: return None +# POSSIBLY DEAD: no production caller — only tests/test_hardware_catalog.py uses +# this, as the seam check between the agent query and ATTRIBUTED_EVENTS. def queried_events() -> frozenset[tuple[str, int]]: """The ``(canonical provider, event_id)`` pairs the agent queries on Windows.""" @@ -383,6 +385,8 @@ def _bugcheck_codes(details: Any) -> dict[str, int]: "ata": "storage", "pcie_aer": "pcie", } +# POSSIBLY DEAD: no production caller reads this set — attribution looks keys up +# in _LINUX_COMPONENTS directly; only tests/test_hardware_catalog.py reads it. ATTRIBUTED_LINUX_KEYS: frozenset[str] = frozenset(_LINUX_COMPONENTS) # Severity per Linux key for a *journal* group. A journal line cannot say