Skip to content

fix(review): the severity cap for unverified findings does not depend on whether the title happens to hedge #1051

Closed as not planned

Description

@dan-petty

Problem

#948's calibration caps a hedged finding at MEDIUM unless criteria verified it (ai/review/calibration.py:77-82, at da50329), and it decides "hedged" from the title only. In review session 20261003-012555 (S8) the pricing.py broad-except findings were titled with "May ..." and reported MEDIUM; in 20261003-021501 (S9) the same claims came back without "May" and were reported HIGH (.data/review-evaluation-20261003-s9.md, section 3). They deserve LOW at most. A cap that flips with the wording of an unverified finding is not a calibration.

Acceptance criteria

  • An UNVERIFIED finding is capped at MEDIUM whatever its wording, unless the persona quotes a consequence the cap names (the rule lives beside the other caps in calibration.py); the hedge-word rule goes, or applies to title and description alike if the key question below decides to keep it.
  • A table test pins S8's and S9's pricing titles (with and without "May") to the same calibrated severity.
  • changelog.d/1051.md records the change under ### Changed. CHANGELOG.md is not edited.
  • uv run devops ci passes.

Key questions

Depends on: none.
Order: after #1043 (criteria verdicts no longer final), which changes how findings reach VERIFIED.
Related: #948 (calibration), #1015 (persona severity rules).

Scope added 2026-10-03 from #1015's re-run (.data/measurements/recall2/decision.md): with both arms pinned to qwen3-coder, the persona followed #1015's severity wording 0 of 15 times. All 11 network-ingress findings came in HIGH although none quoted a NodePort, LoadBalancer, host port or Ingress route (none exists in k8s/monitoring or k8s/otel), and all 4 broad-except findings came in MEDIUM although the prompt asks for LOW. Prompt wording does not set severity; the cap belongs in calibration. 9 of the 11 network findings carry CWE-284, which maps to access_control, not network_exposure, so a cap keyed on the class alone would catch 2 of 11.

  • Calibration caps a finding on a NetworkPolicy, Ingress, Service or firewall manifest that admits every address (whatever its category, CWE-284 included) at MEDIUM unless the finding quotes the NodePort, LoadBalancer, host port or Ingress route that publishes the port. A table test with the re-run's 11 network findings (fixtures from .data/measurements/recall2/{a,b}/reviews) asserts MEDIUM.
  • Calibration caps a broad-except (error-handling) finding at LOW unless it quotes a worse consequence. A test with the re-run's 4 pricing.py findings asserts LOW.

Activity

  1. added
    type/bug
    scope/review
    priority/p2-medium
    on Oct 3, 2026
  2. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Frozen by the evidence-first review redesign (#1137, owner direction of 2026-10-03): patches to the model generator and verifier stop, and tool-layer fixes continue. This item (the severity cap that depends on whether the title hedges) is superseded by #871, re-scoped on 2026-10-03 as the redesign's single admission step: findings carry their producer's anchor, a location checked against the reviewed commit, severity from the tool and a policy table, and suppressions read at the base revision.

    It stays open, labelled status/blocked, and closes as not planned with "Superseded by #871" when #871 lands. Merging it into #871 now was proposed by the consolidation; that is left to a person.

  3. added
    status/blocked
    on Oct 3, 2026
  4. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Closing as not planned: superseded by #871 (PR #1278, v0.2.28), as the 2026-10-03 freeze comment and #1137's table say. A scanner finding's severity now comes from the tool at admission (review/severity.py:99-113); the .devops/review.toml caps are not passed to admission yet, which #1301 tracks. The title-hedge cap (ai/review/calibration.py:77-78, :106-110) acts on model findings, which #1150 and #1151 delete.

    Found by the 2026-10-08 backlog review.

  5. removed
    status/blocked
    on Oct 30, 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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions