Skip to content

design(gate): one ripr-waive label waives EVERY blocking finding — no per-finding scope or expiry #1935

Open

Description

@EffortlessSteven

Problem

acknowledgement_label (gate.rs:710-716) returns Some(label) if any policy label matches any present label. The cascade turns would_block && ack_label.is_some() into acknowledged for EVERY candidate. There is:

  • no per-finding scoping (the label applies to all decisions)
  • no wildcard/pattern matching (exact ==)
  • no expiry checking on labels
  • no count limit

Adding ripr-waive to a PR waives every blocking finding with no per-finding review. The default policy is one label waives everything.

This is documented (CALIBRATED_GATE_POLICY.md:89-103) and by design, but worth tracking as a known design limitation for when finer-grained acknowledgement is needed.

Evidence

  • gate.rs:710-716 — acknowledgement_label (any match)
  • gate.rs:523-524 — acknowledged for all candidates
  • gate.rs:962-968 — defaults to ripr-waive

Activity

  1. added
    status/needs-work
    on Jul 19, 2026
  2. EffortlessSteven commented on Jul 19, 2026

    @EffortlessSteven
    MemberAuthor

    Scoped acknowledgement track

    The intended sequence is design/schema/fixtures first, then production evaluation and generated-CI parity.

  3. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    Deep code-verified review at HEAD

    Premise fully verified. acknowledgement_label(policy, labels) at gate.rs:778 returns Some for ANY policy label in the PR label set — structurally global, no per-finding dimension possible because the input is one label set for the whole evaluation.

    Better approach than 'track as limitation': Per-finding scope can be added backward-compatibly because the acknowledgement path is a pure function of (policy, labels):

    1. Add optional scope matcher to the policy label schema (mirrors what SuppressionEntry.static_class already does — see design(suppressions): path-glob suppression entries can match broadly — static_class narrowing is opt-in #1956).
    2. Absent scope = current global behavior. Present scope = narrow to matching static_class / canonical_gap_id.

    This issue and #1956 are the same problem ('overly-broad selector with optional narrowing') on two surfaces (acknowledgement, suppression). They should share one scope-matcher abstraction. Doing them separately invents parallel mechanisms.

    Warning for #1954: If exceptions also gain per-finding scope while acknowledgement (#1935) and suppressions (#1956) also have it, that's THREE parallel suppression mechanisms. Resolve the product question first: should exceptions ever suppress individual findings, or are they a ledger hygiene tool?

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

    status/needs-work

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions