Skip to content

fix(review): review.toml severity caps apply at admission without capping secret-scanner findings #1301

Closed

Description

@dan-petty

Problem

Copilot thread 7 on #1283, verified at 61f9b67. [severity_caps] in .devops/review.toml never reaches admit() [code: src/devops_cli/ai/review/pipeline.py:645], so the policy is inert. No release note claims it, and #948 calibration already caps test and docs findings at LOW. Passing the caps through as suggested would demote secrets found in docs to INFO.

Acceptance criteria

  • Either the caps apply at admission (head and base revision) and exempt secret-scanner findings, or the inert [severity_caps] section and the unused parameter are deleted. Tests cover the chosen behaviour.
  • uv run devops ci passes.

Strategic alignment

Update 2026-10-08: refinement

Drop the delete option: #871 caps severity by path class (review/severity.py:78-113), and #1150 deletes the only cap today. _admit_single_candidate (ai/review/pipeline.py:636-656) passes [severity_caps]; secret-scanner findings stay uncapped.

Activity

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

    @dan-petty
    OwnerAuthor

    Linked: #1352 and #1143. _admit_single_candidate (ai/review/pipeline.py:636-656) passes none of severity_caps, manifest_objects or canary_passed; whichever lands second rebases. Found by the 2026-10-08 backlog review.

  3. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. A broken severity-cap policy degrades review quality but is not a security hole and #1150 may remove the only cap anyway.
    • Value: Medium. Users who configure [severity_caps] get no effect, undermining trust in the review pipeline's policy controls.
    • Effort: Low. The fix is either threading one parameter into admit() with a secret-scanner exemption or deleting the dead section and parameter.
  4. dan-petty commented on Oct 25, 2026

    @dan-petty
    OwnerAuthor

    resolved by PR #1529

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