Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/cliCore CLI framework, Typer subcommands, options, and tablessource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/lowValue Low: the delivery of the item matters little
Description
What happened
Five functions and properties in src/ have no caller, and #1910 does not list them. git grep -n -w <name> origin/main -- src tests docs '*.md' '*.yaml' '*.toml' at b170358 finds only the definition. None of them carries a decorator that registers it, and none overrides a method of a library class.
| Definition | Name |
|---|---|
src/devops_cli/ai/client/streaming.py:164 |
StreamingTokenProcessor.thinking_detected (property) |
src/devops_cli/ai/client/unified.py:215 |
LLMClient._get_ollama_semaphore (classmethod) |
src/devops_cli/ai/thinking_stream.py:339 |
ThinkingStreamProcessor.unique_thinking (property) |
src/devops_cli/config/settings.py:219 |
_validation_error_key |
src/devops_cli/grafana/schema.py:145 |
Dashboard.grid_width (property) |
What should happen
The five definitions are deleted, with any import or constant that only they use.
Evidence
- The coverage audit of 2026-10-24 listed 43 candidates (
dead-code-candidates.json, at f4d7066). Each was checked again at b170358 for callers, decorators and base classes. 19 were live (framework hooks,@mcp.resourcefunctions, names used as strings). 17 of the rest are in refactor: Delete unused functions after manual caller check #1910, and refactor: Delete unused functions after manual caller check #1910 listsset_mcp_sampling_modelandto_clifor the same check. These five are the rest.
Acceptance criteria
- The five definitions are deleted.
-
git grep -n -w <name>prints nothing insrc/,tests/anddocs/for each name. - A test that only calls a deleted name goes with it, and the pull request names it.
-
uv run devops cipasses, and the coverage stays at or abovefail_under.
Related: #1910 deletes the other 17 names.
Source: #1910
Proposed design
Problem statement
Five functions and properties in src/ have no caller, no registering decorator, and no library override. Issue #1910 lists 17 other dead-code names for the same check. These five are the remainder and should be deleted to remove dead code from the tree.
Acceptance criteria
- Criterion 1: All five definitions are deleted from their files.
Verification: Open each of the five files and confirm the named definition is absent. - Criterion 2: No reference to any of the five names remains in src/, tests/, or docs/.
Verification: Rungit grep -n -wfor each of the five names. Confirm the output is empty across src/, tests/, and docs/. - Criterion 3: Any test that exclusively calls a deleted name is removed, and the pull request description names it.
Verification: Read the pull request description. Confirm it lists every removed test by name. Confirm the test file no longer contains the removed test. - Criterion 4: The CI gate passes and coverage stays at or above the fail_under value.
Verification: Runuv run devops ci. Confirm the exit code is 0 and the reported coverage is at or above thefail_undervalue inpyproject.toml.
Key questions
- Are any of the five names called, registered by a decorator, or overriding a library method?: No. A git grep at commit b170358 finds only the definition line for each name. None carries a decorator, and none overrides a base-class method. [sources: src/devops_cli/ai/client/streaming.py:164, src/devops_cli/ai/client/unified.py:215, src/devops_cli/ai/thinking_stream.py:339, src/devops_cli/config/settings.py:219, src/devops_cli/grafana/schema.py:145]
- Is issue refactor: Delete unused functions after manual caller check #1910 a prerequisite for this work?: No. Issue refactor: Delete unused functions after manual caller check #1910 deletes 17 other dead-code names. This issue deletes the remaining five. They are independent and can be delivered in any order. (proposed)
- Do any of the five definitions have exclusive imports or constants that must also be removed?: This must be confirmed during implementation. If a deleted name is the sole user of an import or constant, that import or constant is removed in the same pull request. (proposed)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/cliCore CLI framework, Typer subcommands, options, and tablessource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/lowValue Low: the delivery of the item matters little
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate proposes a refactor to remove unused code elements from the source tree.The task removes dead code that improves codebase hygiene but does not fix a bug or add a feature.Removing dead code has minimal direct value to end users but improves maintainability.Deleting unused functions and properties is a simple task with no complex logic involved.Both items relate to dead code hygiene. However, the candidate deletes specific unused functions while item #1871 addresses tombstone tests for deleted code.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).
devops-cli-service commentedon Nov 1, 2026
Staged: branch
refactor/2175-the-five-functions-and-properties-that, draft pull request #2983. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
14 remaining items
devops-cli-service commentedon Nov 1, 2026
Cleared the stop at group 2 by the rule
digest: the runner image changed since the stop, from sha256:59fd1dd8fc8586f5c4fc86d4fe6818fa0a6706468788fcfc6508544092eb788e to sha256:a90f6ade2b0e8f17e7e6ceb55a64b5ec8cc7571040ea99968cc09598b784566c. The item is Planned again, and the Service takes it in the next round. The Service clears a stop one time for each runner image. A new stop on this image waits for a commentimplement: retry.docs(openspec): fix plan #2175 five dead names (#3022)
devops-cli-service commentedon Nov 1, 2026
Pull request #3086 is ready for review. The checks passed.
Spend: 138 model requests, 2800221 input tokens, 13240 output tokens.
devops-cli-service commentedon Nov 1, 2026
The runner Job devops-cli-runner-20261101-151258-42fe ended: succeeded.
Image digest: sha256:04d655904252706a7321aed38fa5cafd293625c5db469f252f57163a7c463f16
The last lines of its log:
test(roadmap): use a neutral example name in the kind fixtures (#2175)
docs(openspec): leave the eval fixtures out of the deleted-name greps (…
fix(roadmap): write the Verification line under a staged task (#3268)