Skip to content

feat(review): review reports state only what was checked, with a tested empty outcome #604

Closed

Description

@dan-petty

Context & Rationale

The review report asserts checks it never ran. extract_good_patterns (src/devops_cli/ai/review/stages/reporting.py:49-70) ignores its findings and always emits three fixed patterns, including "cyclomatic complexity <= 10". It adds "zero unpinned critical/high CVEs" and "Zero-Trust Network Isolation" whenever the dependency or network list is empty, and the pipeline always passes lists (src/devops_cli/ai/review/pipeline.py:2417-2430); a dependency never queried also defaults to CLEAN (src/devops_cli/models/vulnerability.py:14). Zero findings read "exceptional engineering quality" (reporting.py:138-143); any finding reads "High-priority remediation ... path traversal defenses, and transport protocol safeguards" (:144-150). The knowledge base says the section "validates adherence" (src/devops_cli/ai/knowledge_base/devops_cli/tasks/ai_code_review.md:55, echoed at docs/SDLC.md:232). devops review pr --post posts each persona's model-written positive_observations and summary verbatim (src/devops_cli/commands/review.py:710-726, src/devops_cli/ai/review/runner.py:503-509), src/devops_cli/ai/tasks/compose.md:20 asks for praise, and no test covers --post. Two null paths already work: empty findings derive APPROVE (tests/test_prompt_programmatic_functions.py:147) and errored files suppress the clean verdict (tests/test_review_report_summary.py:123). vibes gives each harness prompt an explicit refusal clause and bans adjectives standing in for measurements.

Scope & Deliverables

  • Context & Rationale*: The review report asserts checks it never ran. extract_good_patterns (src/devops_cli/ai/review/stages/reporting.py:49-70) ignores its findings and always emits three fixed patterns, including "cyclomatic complexity <= 10". It adds "zero unpinned critical/high CVEs" and "Zero-Trust Network Isolation" whenever the dependency or network list is empty, and the pipeline always passes lists (src/devops_cli/ai/review/pipeline.py:2417-2430); a dependency never queried also defaults to CLEAN (src/devops_cli/models/vulnerability.py:14). Zero findings read "exceptional engineering quality" (reporting.py:138-143); any finding reads "High-priority remediation ... path traversal defenses, and transport protocol safeguards" (:144-150). The knowledge base says the section "validates adherence" (src/devops_cli/ai/knowledge_base/devops_cli/tasks/ai_code_review.md:55, echoed at docs/SDLC.md:232). devops review pr --post posts each persona's model-written positive_observations and summary verbatim (src/devops_cli/commands/review.py:710-726, src/devops_cli/ai/review/runner.py:503-509), src/devops_cli/ai/tasks/compose.md:20 asks for praise, and no test covers --post. Two null paths already work: empty findings derive APPROVE (tests/test_prompt_programmatic_functions.py:147) and errored files suppress the clean verdict (tests/test_review_report_summary.py:123). vibes gives each harness prompt an explicit refusal clause and bans adjectives standing in for measurements.
  • Deliverable*: Start with failing tests: a review with no findings and nothing scanned makes no positive claim, and one LOW finding is described by its own theme only. Then derive every report sentence from a recorded input: severity counts, themes of the actual findings, and the analyzer states already recorded (pipeline.py:1231-1235). Delete the three fixed patterns. Record per dependency whether it was queried, so an unqueried one reads "not queried", not clean; the network line states counts. Correct the knowledge-base and SDLC text. For --post, add a fixed, tested zero-findings comment naming the files, personas and analyzers that ran. Remove positive_observations from the schema, prompts, merge and renderers with no shim; post summary under a "model notes, not verified" heading, because src/devops_cli/ai/tasks/review.md:40 routes suggestions there. Stop the console, knowledge-base diagram and --no-verification help calling two substring rules (src/devops_cli/ai/review/stages/adversarial_debate.py:14-30) a "Multi-Agent Adversarial Debate"; replacing the rules belongs to Semantic Validator Deprecation. Two PRs: report, then post.
  • Constraint*: Model-written praise in place of fixed praise is worse than either, because it reads as evidence; a positive statement with no tool output behind it is omitted, not softened. Inferring "not scanned" from an empty list repeats the bug, since a scan that found nothing also yields one. The errored-files branch keeps precedence over the clean verdict, and the summary leaves room for Attribute Verification Failure's error counts. Tests pinning today's wording (tests/test_review_report_summary.py:19-37) change with it.
  • Measured*: uv run --no-sync python probe/exec_summary_probe.py: synthesize_report_executive_summary([], all_deps=[], all_nets=[]) emits 5 good-pattern bullets plus "exceptional engineering quality"; with None lists, 3. uv run --no-sync python probe/exec_summary_low.py: one LOW "Missing docstring" finding gets "High-priority remediation ... path traversal defenses". uv run --no-sync python probe/rw_nullterm_dep.py: an unqueried DependencySpec reads CLEAN and still yields 5 patterns.
  • Source*: vibes artifacts/prompts/experience-contribution-harness.md

Strategic Alignment

  • Milestone: v0.2.23 (devops ai Review Quality, LLM Routing & Multi-Language Validation)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.23 milestone on Sep 25, 2026
  2. added
    type/feature
    scope/review
    priority/p0-critical
    on Sep 25, 2026
  3. dan-petty commented on Sep 26, 2026

    @dan-petty
    OwnerAuthor

    Closed by #623, 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/p0-criticalscope/reviewtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions