You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
design(gate): one ripr-waive label waives EVERY blocking finding — no per-finding scope or expiry #1935
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.
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):
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?
Activity
EffortlessSteven commentedon Jul 19, 2026
Scoped acknowledgement track
ripr-waivecompatibility decision.The intended sequence is design/schema/fixtures first, then production evaluation and generated-CI parity.
EffortlessSteven commentedon Aug 5, 2026
Deep code-verified review at HEAD
Premise fully verified.
acknowledgement_label(policy, labels)at gate.rs:778 returnsSomefor 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):
scopematcher to the policy label schema (mirrors whatSuppressionEntry.static_classalready does — see design(suppressions): path-glob suppression entries can match broadly — static_class narrowing is opt-in #1956).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?