Skip to content

fix(review): record active personas accurately in review session findings and candidates #720

Closed

Description

@dan-petty

Problem Description

When executing devops ai review (or devops review path/branch/pr) with --persona <persona> (e.g. --persona devsecops), the review orchestrator executes only the designated persona and produces findings strictly labeled with that persona. However, generate_consolidated_report in ReviewPipelineOrchestrator hardcodes personas=["devsecops", "architect", "qa"] when serializing findings.json (line 3463 of src/devops_cli/ai/review/pipeline.py), and omits personas in candidates.json (defaulting to empty []).

Expected Behavior

findings.json and candidates.json should accurately record the active personas that participated in the review session (["devsecops"] when --persona devsecops was provided, or the specific set of active personas evaluated).

Solution

  1. Store self.personas on ReviewPipelineOrchestrator initialized from __init__ or set when execute_multi_persona_review(payloads, ..., personas=...) is called.
  2. Accept optional personas: list[str] | None = None in generate_consolidated_report, falling back to self.personas and then default personas.
  3. Pass personas=active_p from _run_orchestrator_review into generate_consolidated_report.
  4. Serialize the resolved personas list into both findings.json (payload_out.personas) and candidates.json (candidates.personas).

Activity

  1. added this to the v0.2.24 milestone on Sep 29, 2026
  2. added
    type/bug
    scope/review
    priority/p2-medium
    on Sep 29, 2026
  3. dan-petty commented on Sep 29, 2026

    @dan-petty
    OwnerAuthor

    Closed by #721, merged into release/v0.2.24.

    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.

  4. added a commit that references this issue on Oct 1, 2026
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/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions