Repository navigation
Description
Friction
tests/test_codebase_hygiene_and_shims.py pins the names of deleted things forever (aliases, a model verifier, vLLM settings), so every deletion refactor edits it, and a regular expression stands in for a dead-code tool in one place. The Zero Zombie Code rule is enforced by remembering what was deleted, not by finding what is unused.
Evidence
- Twelve tests, 188 lines, assert deleted names stay deleted:
test_tool_has_no_func_alias,test_no_native_mcp_toolset_alias,test_devops_cli_error_has_no_code_alias,test_rag_app_has_no_reset_alias,test_the_model_verifier_its_catalog_and_its_guards_are_gone,test_vllm_dead_settings_commands_and_mcp_tools_are_removedand six more. test_security_module_private_functions_all_have_callersfinds uncalled private functions with a regular expression, insecurity/*.pyonly. The review proposedvultureat 100% confidence for it. The verification pass found that at 100% vulture reports 11 unused variables and no function, and functions appear only at 60% (1,814 findings, including__getattr__and framework callbacks). Not re-run here: vulture is not installed in the repository environment.- Git history already records that a thing was deleted.
Proposed remedy
- Delete the twelve tombstone tests.
- Trial
vultureat 60% with a committed whitelist in a scratch directory and report the false-positive count; adopt it as adevops cirow only if the whitelist stays short, and delete the caller test when it does. Otherwise keep the caller test and say why in the pull request. - Keep the three hardcoded-extension tests until library classification replaces them (item 6).
What it deletes
- 188 lines.
Tests
- No new test for the deletion. If vulture is adopted, one test runs it over a
tmp_pathmodule with a known dead function.
Dependencies
- None.
Acceptance criteria
- The twelve tests are gone and
uv run devops cipasses. - The pull request records the vulture trial result and the decision.
Size: S.
Proposed design
Problem statement
The issue addresses the friction caused by tombstone tests that pin names of deleted code, making every deletion refactor require editing these tests. Additionally, a regular expression is used instead of a dead-code tool to find unused private functions, violating the Zero Zombie Code rule which should enforce this through automated detection rather than manual record-keeping.
Acceptance criteria
- Criterion 1: The twelve tombstone tests are deleted from the test suite.
Verification: Runuv run devops ciand confirm that the tests no longer exist intests/test_codebase_hygiene_and_shims.py. - Criterion 2: A trial of vulture dead-code detection tool is conducted at 60% confidence with a committed whitelist.
Verification: Verify that a vulture run on a scratch directory with known dead functions shows fewer false positives than expected, and record the result in the pull request. - Criterion 3: The pull request records the decision on adopting vulture or retaining the caller test.
Verification: Check that the pull request description contains a clear statement of whether vulture was adopted or not, along with the rationale for the decision.
Key questions
- Should the caller test be kept until library classification replaces the hardcoded-extension tests?: Yes, the three hardcoded-extension tests should be kept until library classification replaces them. (proposed)
Open questions
- What are the twelve tombstone tests that need to be deleted? (missing verified source)
- Is vulture installed in the repository environment? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate proposes deleting unused code and trialling a dead-code tool, which aligns with refactor type.It addresses zombie code and improves hygiene but is not critical or urgent.Improves codebase health and maintainability for users and developers.Involves deleting tests and trialling a tool, which is a small task.test(hygiene): delete the eleven tombstone tests and keep the caller …
dan-petty commentedon Oct 22, 2026
What changed
#1894, merged into
release/v0.2.39as f68621b.8 file(s) changed.
How it was verified
Check runs at f80f2ec:
Acceptance Criteria of
docs/agent/tasks/task-1871-tombstone-tests-and-dead-code-tool.md:src,tests,AGENTS.mdanddocsoutsidedocs/agent/tasksfor their names finds nothing.test_run_context_instance_functionalitypasses intests/test_pydantic_agent.py.tests/test_codebase_hygiene_and_shims.pypass.tests/test_agent_task_files.pyandtests/test_release_changelog_fragments.py.tests/test_architectural_invariants.pyandtests/test_swallowed_failures_ratchet.py.tests/test_agents_md_claims.pyandtests/test_docs_inventory.py.tests/test_test_module_independence.pyandtests/test_public_export_surface.py.ruff check,ruff format --check,mypyanddeptrypass, anduv run devops docs checkreports every file up to date.vulturetrial result and the decision.uv run devops cipasses on the delivering tree. This change ran the targeted tests, not the gate.feat(release): v0.2.39 (#1947)
docs(openspec): fix plan #2175 five dead names (#3022)