← Back to Pull requests

Update AGENTS.md with megatron stub evolution and trl 1.8+ learnings #129

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

Summary

Adds 2 new practices, 2 new past incidents, and 1 updated reference configuration to AGENTS.md from training_hub PR #127 (merged 2026-07-23).

New practices (2):

  • Megatron stubs use dynamic sys.meta_path finder instead of hardcoded submodule lists — ART's import surface grows across versions

  • trl 1.8+ rejects empty reward_funcs — monkey-patch GRPOTrainer to provide a no-op reward function, handling both positional and keyword arg paths
  • New past incidents (2):

  • Enumerated megatron stub list broke on ART 0.5.18 upgrade — the hardcoded megatron.bridge. list missed megatron.core.models, megatron.core.ssm, and decorator/base-class usage

  • trl 1.8+ rejected ART's reward_funcs=[] — code review caught the positional vs keyword arg edge case in the monkey-patch
  • Updated reference configuration (1):

  • AIPCC 3.5 GA validated stack: ART 0.5.18, vLLM 0.21.0+rhaiv.10, trl 1.8.0, transformers 5.13.0, torch 2.11.0
  • Sources

  • training_hub PR #127 — Fix megatron stub and reward_funcs for ART 0.5.18 + trl 1.8+ (merged 2026-07-23)
  • Context

  • Last merged AGENTS.md update: PR #116 (July 7, 2026)

  • Open AGENTS.md PRs: #119 (June-July learnings), #120 (PRs #117/#118), #121 (July 7-17), #125 (ValidationScheduler)

  • This PR covers only the learning from PR #127, which merged after all the above open PRs were created

  • Independent of all open AGENTS.md PRs — can be merged in any order
  • Test plan

  • No duplicates with existing AGENTS.md entries

  • No duplicates with pending PR #119/#120/#121/#125 entries

  • No contradictions with existing entries

  • Only AGENTS.md modified — no code changes
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Added operational guidance for handling third-party integration compatibility issues.
    Documented updated backend configuration details, dependency versions, and validated LoRA model support.
    * Expanded incident references with troubleshooting information for related integration failures.

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

    Diff: 277 lines (+207 / -70) across 3 files Reviewer: None requested Review duration: 6240m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.57) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 277 lines diff across 3 files
    0.57
    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.337
    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 #129"
    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: 56.6% (MEDIUM) · Higher = larger blast radius
    56.6%
    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: 23.8% · Safe to merge
    23.8%