Repository navigation
Conversation
…S 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QcqxZNMaR9T12TRGzAjZaj
2 of 6 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Scheduled dead-code scan. Comment-only: two
POSSIBLY DEADmarkers inkenny_server/hardware_catalog.py, no behaviour change.Flagged (medium confidence)
queried_events()tests/test_hardware_catalog.pycalls it, as the seam check between the agent's Windows query andATTRIBUTED_EVENTS.ATTRIBUTED_LINUX_KEYS_LINUX_COMPONENTSdirectly; only the same test reads the set.Both are the Windows/set-side siblings of
queried_linux_keys, which #332 flags. They are flagged rather than removed because the tests that use them are seam checks, so deleting them is a decision about the test, not about dead code.Removed (high confidence)
Nothing. No statically unreachable code turned up:
cargo check --all-targetsis warning-free,ruff check --select Fpasses, vulture reports no unreachable code, and knip reports no unused files or dependencies inkenny-web.Skipped because an open PR already covers it
#369, #363, #358, #351, #342, #332 (for example the unused
proploop binding instewards/builder.py,wait_previews,evidence_providers,count_running,pcie_width_regression,error_rate_rising,queried_linux_keys).Looked at and left alone
chat.CHAT_EVENT_TYPESis test-only, and its own comment already says it exists fortests/test_chat_event_seam.py.deleted_byon steward specs,blocked_nudged_at,last_human_at,assignee_user_idon tickets): they mirror live columns, and ADR-0062 keepsassignee_user_idon purpose.kenny-webthat knip lists are all used inside their own file; only theexportkeyword is surplus.allow(dead_code)innvidia.rs,disk_smart::coreandos_support::cpu: with the allowances dropped, the 23 items that warn on Linux all have Windows-only callers.Checklist
pytest -q(server) andcargo test(agent) — not run here; the session's Python environment lacks the server's dependencies (httpx). The change is comments only and the module parses.ruff checkpasses on the touched filemainGenerated by Claude Code