← Back to Pull requests

Fix curly apostrophes reversing benchmark answer grading #845

Merged
alexdimmock95 merged 2 files (12 lines) on Nov 23, 2026 10:15 UTC
View on GitHub
alexdimmock95 alexdimmock95 commented on Nov 17, 2026 15:27 UTC
Author

The Big Bench Audio scorer recognises isn't valid as invalid, but
extracts valid from the equivalent isn’t valid. A curly apostrophe
can therefore cause a correct answer to be marked wrong.

Accept straight and curly apostrophes in the existing negation regex.
Add regression coverage for isn't and aren't, both apostrophe forms,
marker and scan extraction, and correct/incorrect grading.

Validation:

  • 29 scoring tests passed.

  • Ruff check passed.

  • git diff --check passed.
  • Diff: 12 lines (+11 / -1) across 2 files Reviewer: andimarafioti Review duration: 8327m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.20) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.20 · 12 lines diff across 2 files
    0.20
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.35 · 1 substantive comment(s)
    0.35
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    67%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.153
    Real PR Conversation Timeline
    2 items
    andimarafioti andimarafioti approved these changes on Nov 23, 2026 10:15 UTC
    Approved Reviewer
    Reviewers
    Assignees
    alexdimmock95 alexdimmock95
    Labels
    risk: low confidence: 67.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 19.8% (LOW) · Higher = larger blast radius
    19.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 67.5% · Lower = rushed or shallow review
    67.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 6.4% · Safe to merge
    6.4%