← Back to Pull requests

Brief quality eval: ten-dimension rubric, external roles, config comparison #9

Closed
unknown closed this pull request without merging on Nov 22, 2026 19:31 UTC
View on GitHub
unknown unknown commented on Nov 22, 2026 19:30 UTC
Author

Brief quality has never been measured. This PR builds a reproducible evaluation for it. It contains no quality results: running it needs a real Anthropic key, and none was used here.

What's in it


  • Rubric (eval/quality.ts): ten dimensions, each scored 1–5 against written anchors:

  • - understanding
    - role specificity
    - project relevance
    - technical feasibility
    - weekend feasibility
    - actionability
    - requirement accuracy
    - outreach quality
    - assumption discipline
    - overall usefulness

    The judge also lists unsupported claims and names each brief's biggest weakness.

  • Deterministic checks, kept separate from the judge: correct outcome, company and title match, verbatim evidence, format rules, no injected strings, and no numbers that aren't in the post.

  • Dataset: 25 frozen cases, recorded by hash in each results file:

  • - 11 speedrun posts
    - 10 roles at non-speedrun companies, one per function, frozen with eval/build-external.mts (paced, read-only)
    - 4 adversarial cases
  • Config comparison: --config prod,opus-medium,sonnet-low.

  • Spend guard: the command prints a cost estimate (about $1.90 for production alone, about $5.20 for all three configs) and runs nothing without --confirm.

  • Free dry run: --dry-run exercises the whole pipeline with stub models, and its output is labeled as not real results.

  • Report: eval/quality-report.mts produces a markdown summary of the weakest dimensions and briefs, and recommends reading flagged briefs and rerunning with --runs 3 before changing the prompt.

  • Generator overrides: generateBrief takes optional { model, effort } for the eval. Production defaults are unchanged.
  • Verification


  • 237 tests pass. 5 new tests cover the deterministic checks, the rubric schema, summaries and the weakness ranking.

  • A dry run across two configs completes and renders the report.

  • Without a key, the command refuses to run. Without --confirm, it prints only the estimate.
  • 🤖 Generated with Claude Code

    Diff: 258 lines (+193 / -65) across 3 files Reviewer: cursor[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.43 = Change Risk (0.62) × (1 − Review Confidence (0.30)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 258 lines diff across 3 files
    0.62
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 24% · Reviewer familiarity: 35%
    30%
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #9"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 30.3% reviewed sensitive_module
    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: 62.4% (MEDIUM) · Higher = larger blast radius
    62.4%
    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: 30.3% · Lower = rushed or shallow review
    30.3%
    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: 43.5% · Moderate risk
    43.5%