Skip to content

fix(review): ReviewProfile verdict_distributions schema rejects float citation_rates #640

Closed

Description

@dan-petty

Problem Description

During review execution, session completion crashed when generating ReviewProfile:

ValidationError: 1 validation error for ReviewProfile
verdict_distributions.citation_rates.unknown
  Input should be a valid integer, got a number with a fractional part [type=int_from_float, input_value=0.61, input_type=float]

Root Cause

compute_verdict_distributions populates citation_rates: dict[str, float].
ReviewProfile.verdict_distributions in src/devops_cli/ai/review/profile.py is typed as dict[str, dict[str, int]]. Pydantic v2 rejects float values when int is specified.

Remediation

  1. Update ReviewProfile.verdict_distributions and ReviewProfiler annotations to dict[str, dict[str, int | float]].
  2. Add regression tests with citation_rates in ReviewProfile serialization.

Activity

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

    @dan-petty
    OwnerAuthor

    Closed by #641, 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/p1-highscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions