Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablestype/refactorType refactor: a new structure, same behavior
Milestone
Description
Problem Statement
In accordance with AGENTS.md ("Clean Solutions Over Legacy Remnants (Zero Zombie Code)"):
When modifying, refactoring, or replacing features, schemas, configurations, or interfaces, implement clean, complete solutions and ruthlessly remove obsolete code, variables, aliases, fallback shims, and legacy workarounds. Never leave remnants or vestigial fallback paths.
A thorough AST analysis of src/devops_cli/ reveals several categories of dead shims, redundant aliases, trivial pass-through proxy functions, and vestigial backward compatibility shims that provide no additional functionality:
- Ad-hoc Inner Class Shims:
_GhCliLabelShimand_GhCliMilestoneShiminsrc/devops_cli/commands/gh.py. - Dynamic
__getattr__Backwards-Compatibility Proxies:src/devops_cli/commands/review.pylines 37–135 exporting moved internal symbols fromai.review.*, andsrc/devops_cli/dry_run/__init__.py. - Redundant Module-Level & Class Aliases:
LabelAuditFinding = LabelAuditResultinsrc/devops_cli/github/labels.py&devops_cli/github/__init__.py._diff_pages = diff_pages,_diff_stream_chunks = diff_stream_chunks,_find_repo_files = find_repo_filesinsrc/devops_cli/ai/review/chunker.py._sanitize_prompt_boundary_tags = sanitize_prompt_boundary_tagsand_mask_secrets_in_content = mask_secretsinsrc/devops_cli/ai/review/sanitization.py.ai_app = appinsrc/devops_cli/commands/ai.py.process_tokenalias insrc/devops_cli/ai/thinking_stream.py.instructionsandrun_stream_syncaliases insrc/devops_cli/ai/agents/agent.py.
- Trivial Zero-Functionality Wrapper/Proxy Functions:
_validate_dirinsrc/devops_cli/commands/tf.py(pure forward tovalidate_dir)._validate_pathinsrc/devops_cli/commands/kustomize.py(pure forward tovalidate_path)._project_python_versioninsrc/devops_cli/commands/devcontainer.py(pure forward toget_project_python_version)._validate_version_strinsrc/devops_cli/commands/install_tools.py(pure forward tovalidate_version_str)._is_git_ignoredinsrc/devops_cli/ai/review/runner.py(pure forward tois_ignored_by_git)._extract_segment_filenamesinsrc/devops_cli/ai/review/chunker.py(pure forward to_extract_header_filenames).
Acceptance Criteria
- Remove all identified ad-hoc shims, aliases, and pass-through proxy functions.
- Update any internal references and tests to call canonical targets directly.
- Ensure all modified code adheres to cyclomatic complexity <= 10 and nesting depth <= 5.
- Pass all 10/10
devops ciquality gates.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablestype/refactorType refactor: a new structure, same behavior
Type
Projects
- StatusShow more project fieldsDone
Activity
refactor(core): eliminate obsolete shims, aliases, proxy wrappers, an…
dan-petty commentedon Sep 10, 2026
Resolved and delivered via PR #95 merged into
release/v0.2.15.feat(release): v0.2.15 (#92)