← Back to Pull requests

Level probes finish: batch serves probe-level articles, probe scores count since the probe began #145

Closed
unknown closed this pull request without merging on Nov 10, 2026 15:49 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 15:45 UTC
Author

<!-- claude-projects-attribution: {"github_login":"waynevaughan"} -->
_Requested by Claude · project thread_

Closes #144.

Problem. The morning batch, which delivers nearly every article, served only student.reading_level and never read feed_mix. A probe almost never got a probe-level article, so it could neither move the student nor end. Probe scores also counted only while they were in the last 8 reports, because none results aren't saved.

Changes

  • morning-batch.ts: when a student is probing, some of the picks go out as the same story at the probe level: about 1 in 3 in phase 1, 2 in 3 in phase 2, and at least one on any day something is served. The ranked fill carries the probe first, the stories written for the student's own interests last, so the own-stories serving from #140/#143 is unchanged. A pick with no probe-level version stays at the student's level. served_as_level is recorded, as on serve-cached.

  • analyzeStudents: probe levels in use join levelsNeeded, so new articles and the 7-day backfill get adapted to them.

  • level-progression.ts: a probe's scores are every report on a probe-level article since probeStartDate, read from the reports.

  • level-progression-rules.ts: the probe evaluators no longer add the recent window's probe scores to feedMix.probeScores. This removes the double count where one score of 78 was counted several times. New pure helpers probeLevelOf, probeServeCount and probeSlotOrder, with tests.

  • docs/level-progression.md updated.
  • No changes to thresholds, the tutor, the report prompt or article writing. Still open, as the issue notes: a student in a down probe isn't checked against the upward rule.

    Checks: npm test and npm run build pass locally.

    ---
    _Generated by Claude Code_

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: github-actions[bot] Review duration: 3m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.44) × (1 − Review Confidence (0.51)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 247 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 63% · Reviewer familiarity: 35%
    51%
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #145"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 51.4% 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: 43.9% (MEDIUM) · Higher = larger blast radius
    43.9%
    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: 51.4% · Lower = rushed or shallow review
    51.4%
    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: 21.4% · Safe to merge
    21.4%