← Back to Pull requests

Update AGENTS.md with multi-iteration GRPO fix learnings from PR #135 #136

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

Summary

Adds 1 new incident, 2 updated practices, and 1 reference config from training_hub PR #135 (merged 2026-07-27): multi-iteration GRPO fix for art 0.5.18.

Changes

Updated practice — ART subprocess shutdown (replaces two contradictory bullets):

  • Unified the "do not use os._exit()" and "must use os._exit()" bullets into a single defense-in-depth explanation: conditional os._exit() (only when result is set) + parent-side proc.join(timeout=...) as the hang backstop
  • New practice:

  • ART 0.5.18 removed model.train() API — use hasattr check for cross-version compatibility
  • New incident:

  • Unconditional os._exit() from the hang fix (PRs #132/#133) broke multi-iteration GRPO — killed the subprocess after iteration 1 before the loop could continue
  • New reference config:

  • AIPCC 3.5 GA stack: art 0.5.18, vllm 0.21.0, torch 2.11.0, trl 1.8.0 — 3-iteration GRPO validated on H100
  • Sources

  • training_hub PR #135 — Fix multi-iteration GRPO with art 0.5.18 (merged 2026-07-27)
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Clarified guidance for ART and vLLM shutdown behavior.
    Documented compatibility requirements for ART 0.5.18 and newer training workflows.
    Added a validated multi-iteration GRPO configuration and related testing details.
    * Recorded a past incident involving interrupted multi-iteration GRPO runs and its resolution.

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

    Diff: 211 lines (+158 / -53) across 2 files Reviewer: None requested Review duration: 1921m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.54) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.54 · 211 lines diff across 2 files
    0.54
    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.320
    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 #136"
    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: 53.5% (MEDIUM) · Higher = larger blast radius
    53.5%
    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.5% · Safe to merge
    22.5%