Skip to content

fix(review): the review plan job passes its reply no validator, so a plan that fails its checks would be cached once the job is wired #1810

Closed

Description

@dan-petty

run_review_plan_job (src/devops_cli/review/analysis.py) asks the model for the review plan with chat(...) and no validator, so the response cache stores the reply whether or not it parses and passes verify_review_plan, and the client may resend an unusable reply up to four more times. #1013 fixed this for the group-analysis call: a validator built from the job's own parse and G10 checks, max_retries=0, and a ReplyRejectedError handler that reads the finish reason from the rejected reply.

Evidence

Proposed remedy

When a plan_client is wired into the pipeline, give the plan job the same shape as the group job: a judge function that parses and runs verify_review_plan once, max_retries=0, and one ReplyRejectedError branch. Share the chat-and-judge step between the two jobs instead of copying it. Do this in the PR that wires the client, so the code is exercised by a test through a real client.

Activity

  1. added
    type/bug
    scope/review
    source/agent
    on Oct 21, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P2-Medium. This is a correctness issue in the review system that affects caching behavior.
    • Value: Medium. Fixes an issue with caching of review plan responses, affecting system reliability.
    • Effort: Medium. Requires modifying the job to pass a validator and share code between jobs.
    • Related: fix(review): a group-analysis reply that fails its checks is neither cached nor served #1013, which asks for a different change. Both items deal with validation of replies in review analysis, but the candidate focuses on the plan job while #1013 fixed group-analysis.
  3. added a commit that references this issue on Oct 26, 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

    scope/reviewsource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions