[ConstraintAnalysis] Fix asymmetry in provesPair overlap check #9258
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.36) × (1 − Review Confidence (0.81)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 203 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 2 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.318
Real PR Conversation Timeline
5 items
Seems confusing to now have aSpans meaning "a's proven spans" while bSpans means "b's exact spans". Perhaps rename one?
Another option might be to change how we assert on when a contradiction arrives, but making it symmetrical seems nicer actually. lgtm % comment on variable names.
Done, renamed aSpans to aProvenSpans.
Approved
Approved these changes.
kripken
tlively
Fixes
provesPairto symmetrically check disjointness using proven spans rather than exact spans, since a disjoint superset implies disjoint subsets. This addresses an assertion failure inapproximateOrwhere asymmetric comparison of constraints incorrectly produced an OR-induced contradiction.Removes unreachable
empty()span checks inprovesPairsince empty spans are only produced by immediate contradictions, which are evaluated to contradictions prior to reachingprovesPair.