A provenance/entailment audit CONFIRMED the grounding moat is sound (500k+ adversarial fuzz
iterations could not break the slice(start,end)===text invariant; fabricated spans always
dropped) and pharmacovigilance math exact. It found real verdict-INVERTING bugs in
detectPolarity, whose output multiplies the final support/refute label:
- Double negation ('the therapy was not without benefit') was read as negative -> a true
benefit claim was REFUTED by confirming evidence. Now negation PARITY: an even number of
negations cancels, odd denies. Overlapping cues ('did not' contains 'not') merge to one
instance so parity is correct.
- Scoped negation ('reduced mortality but not blood pressure') flipped the whole claim
negative. Polarity is now decided on the PRIMARY clause (before any contrastive marker),
so a negation scoped to a secondary clause no longer inverts the primary assertion.
- Lexicon gaps: added 'negligible', 'ruled out', 'devoid of', 'absent'.
Also (low severity, from the same audit sweep): variantPathogenicity now resolves a combined
'Benign/Likely benign' to the stronger 'Benign' tier, symmetric with the pathogenic side, so a
benign claim against ClinVar's real aggregate is not spuriously flagged overstated_certainty.
Full suite green (1072 passed). Grounding invariant, pharmacovigilance disproportionality
(PRR/ROR/CIs/chi-square/BCPNN), and ClinVar star-mapping were all audited and CONFIRMED correct.