← Back to Pull requests

docs(adr): propose ADR-027 AICR Operator #3466

Closed
unknown closed this pull request without merging on Oct 28, 2026 18:38 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 12:06 UTC
Author

Summary

Proposes ADR-027, adding the AICR Operator: an opt-in, in-cluster component that keeps a running cluster on a validated recipe through day-2 change by coordinating AICR's own commands and the deployment engine. One new file, no implementation.

Motivation / Context

Answers the three questions in #3285: where the component lives (in AICR, under pkg/operator, with its own boundary), what an approval asserts for manual, unknown and unversioned verdicts, and the minimum qualification.

Fixes: N/A
Related: #3285

Type of Change

  • Documentation update
  • Component(s) Affected

  • Docs/examples (docs/, examples/)
  • Implementation Notes

    Points worth reviewer attention:

  • Coordination, not configuration. The operator takes the CLI's inputs and adds none. Every AICR stage runs as a Job from the pinned image, so each bundle it deploys is identical to what aicr bundle renders from the same recipe and flags.

  • Boundary. On acceptance, docs/contributor/index.md gains one exception for pkg/operator (wording in the ADR). As with ADR-025, the guide itself is edited on acceptance, not in this PR.

  • Non-goals. It does not replace GPU Operator, allocate GPUs, infer training performance from healthy pods, roll back automatically, or run node drains.

  • Release and stability. It ships in AICR's release train at AICR's version; its v1alpha1 API stays outside the v1 stability gates.

  • Evidence. A prototype of this design passed the ADR's qualification list on H100 training with Kubeflow on GKE, against AICR v1.0.0 and v1.1.2, with a training job running throughout.
  • Testing

    make check-docs-filenames check-docs-mdx check-docs-mdx-parse check-docs-links
    

    All pass. Docs-only change: one new ADR file.

    Risk Assessment

  • Low — One new ADR in Proposed status; no code.
  • Rollout notes: N/A

    Checklist

  • Tests pass locally (make test with -race) — N/A, docs only

  • Linter passes (docs checks above)

  • I did not skip/disable tests to make CI green

  • I added/updated tests for new functionality — N/A

  • I updated docs if user-facing behavior changed

  • Changes follow existing patterns in the codebase

  • Commits are signed off and cryptographically signed (git commit -s -S)
  • Diff: 288 lines (+216 / -72) across 3 files Reviewer: yuanchen8911 Review duration: 392m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 288 lines diff across 3 files
    0.40
    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: 35%
    60%
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3466"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.7% · Safe to merge
    15.7%
    Repository