Skip to content

fix(review): verification calls have no reply cap, and a runaway reply stalled a review for 10 minutes #494

Closed

Description

@dan-petty

Problem

_validate_segment_findings (src/devops_cli/ai/review/verification.py) sends verification requests with no max_tokens. On a vLLM backend the reply can then run until the model's context window is full. During the #486 validation, verifying 05_cluster_maintenance.yaml on the 32B model took 10 min 18 s (the gateway's timeout is 600 s), while every other file verified in 10–48 s. That one call more than doubled the review's wall time (756 s against 241–284 s).

Expected

Verification replies are bounded by the size of the verdict they must contain, so one runaway generation cannot stall a review. The persona review stage should be checked for the same gap.

Acceptance criteria

  • Verification requests carry a completion cap sized to the verdict schema.
  • A capped, truncated verdict is handled as a failed verification of that finding, not as an invalidation.
  • Tests pin the cap and the truncation handling.

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/bug
    scope/review
    priority/p1-high
    on Sep 24, 2026
  3. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #496, 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.

  4. added a commit that references this issue on Sep 28, 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/p1-highscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions