Skip to content

Remove the review stage modules the pipeline never calls #530

Closed

Description

@dan-petty

Found while fixing #516.

src/devops_cli/ai/review/stages/ exports seven run_*_stage functions. The orchestrated pipeline (pipeline.py) calls only run_adversarial_debate_stage, and from stages/reporting.py it uses only synthesize_report_executive_summary. These have no caller in src/:

  • run_pre_analysis_stage (pre_analysis.py)
  • run_static_scan_stage (static_scan.py, 242 lines)
  • run_persona_review_stage (persona_review.py)
  • run_verification_stage (verification.py)
  • run_reranking_stage (reranking.py)
  • run_reporting_stage (reporting.py)

They duplicate the pipeline's own logic and have drifted from it. static_scan.py still prints "Static analyzers completed (0 finding(s) detected)" after naming six analyzers, and never calls Trivy. #516 fixed that message in the pipeline only. Tests import them (tests/test_review_stages.py, tests/test_subsystem_containment_and_redaction.py), which keeps them looking alive.

Deliverables

  • Remove the unused stage functions and modules. Keep adversarial_debate.py and synthesize_report_executive_summary, or move them to the modules that use them.
  • Move any containment coverage the removed tests gave (_resolve_target_path) onto the pipeline's own path resolution (_resolve_file_path), or confirm that it already has it.
  • Remove the tests of the removed functions.
  • 100% passing across the gated CI validation suite (uv run devops ci).

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/refactor
    scope/review
    priority/p2-medium
    on Sep 24, 2026
  3. dan-petty commented on Sep 25, 2026

    @dan-petty
    OwnerAuthor

    Closed by #561, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/reviewtype/refactor

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions