← Back to Pull requests

Update AGENTS.md with ValidationScheduler coalescing lesson #125

Closed
RobotSail closed this pull request without merging on Jul 28, 2026 18:04 UTC
View on GitHub
RobotSail RobotSail commented on Jul 23, 2026 10:04 UTC
Author

Summary

Adds 1 new learning to the OSFT section of AGENTS.md from mini_trainer PR #116 (event-based validation system, merged 2026-07-22):

  • ValidationScheduler trigger coalescing — When multiple validation triggers (step, epoch, samples, final) fire on the same training step, validation must run at most once. Each trigger type needs its own last-validated sample counter to prevent cross-type suppression (e.g., step-based validation suppressing epoch-end validation). This was a P0 caught in code review.
  • Sources

  • mini_trainer PR #116 — feat: replace frequency-based validation with configurable event-based system (merged 2026-07-22)
  • Test plan

  • No duplicates with existing AGENTS.md entries

  • No contradictions with existing entries

  • Only AGENTS.md modified — no code changes
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Added guidance for coordinating validation triggers during training.
    Clarified that validation should run no more than once per training step when multiple triggers coincide.
    Documented separate tracking requirements for different validation trigger types.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 176 lines (+132 / -44) across 2 files Reviewer: None requested Review duration: 7680m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 176 lines diff across 2 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    57%
    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.310
    Shallow Review Depth shallow_review_depth
    0.289
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #125"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    RobotSail RobotSail
    Labels
    risk: low confidence: 58.0% 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: 52.4% (MEDIUM) · Higher = larger blast radius
    52.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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 22% · Safe to merge
    22%