← Back to Pull requests

Greenfield: Implement direct KRM types, identity, and generate.sh for AIPlatformModelMonitor #12856

Open
unknown opened this pull request with 165 lines diff across 2 files
View on GitHub
unknown unknown commented on Sep 09, 2026 21:35 UTC
Author

This Pull Request implements direct KRM types, identity, and generate.sh for AIPlatformModelMonitor.

Key Changes


1. generate.sh Configuration: Registered AIPlatformModelMonitor:ModelMonitor in apis/aiplatform/generate.sh and set service compilation and post-processing correctly.
2. KRM Types: Generated the types, deepcopy, and CRD for AIPlatformModelMonitor under apis/aiplatform/v1alpha1.
3. Identity V2: Implemented IdentityV2 and getIdentityFromAIPlatformModelMonitorSpec under apis/aiplatform/v1alpha1/aiplatformmodelmonitor_identity.go.
4. Reference Implementation: Implemented AIPlatformModelMonitorRef under apis/aiplatform/v1alpha1/aiplatformmodelmonitor_reference.go.
5. Deduplication Fix: Solved multiple service package (v1/v1beta1) type name collision / redeclaration panics in typegenerator.go by deduplicating types based on GoName and explicitly prioritizing v1 messages for overlapping ones.
6. Robust Mapping: Hand-written custom Interval and ExplanationSpec mappings to ensure direct controller continues to build cleanly with both v1 and v1beta1 loaded.

Fixes #12836

``release-note
NONE
``


This PR was generated by the
overseer,overseer,step/gen-types,greenfield,overseer/review
* agent (powered by the gemini-3.6-flash model).

Diff: 165 lines (+123 / -42) across 2 files Reviewer: seans3 Review duration: 31301m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 165 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.306
Real PR Conversation Timeline
1 comments
"Review active on #12856"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 35% (MEDIUM) · Higher = larger blast radius
35%
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: 46.7% · Lower = rushed or shallow review
46.7%
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: 18.7% · Safe to merge
18.7%