Greenfield: Implement direct controller, E2E fixtures, and fuzzer for AIPlatformModelMonitor #15741
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.57) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.388
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #15741"
general
weight: 0.35
lovelace-coder-bot
Implements the direct controller, round-trip KRM fuzzer, and real-GCP recorded E2E fixtures for
AIPlatformModelMonitorunderaiplatform.cnrm.cloud.google.com/v1alpha1following Greenfield Step 2 (.gemini/skills/kcc-direct-controller-logic-greenfield-implementer/SKILL.md).Summary of Changes
pkg/controller/direct/aiplatform/aiplatformmodelmonitor_controller.go(// +generated:controller) using GAPIC clientgcp.NewModelMonitoringClient(ctx, opts...)withm.config.GRPCClientOptions(). Reorderedcommon.NormalizeGreenfieldReferences(ctx, reader, obj, nil)beforeobj.GetIdentity(ctx, reader)inAdapterForObject.AIPlatformModelMonitorinpkg/controller/resourceconfig/static_config.gowith direct reconciler configuration viadev/tasks/generate_static_config.py.pkg/controller/direct/aiplatform/aiplatformmodelmonitor_fuzzer.generated.go(// +generated:fuzzer) viacontrollerbuilder generate-fuzzer --prepopulate-resource. Verified round-trip fidelity withFOCUS=AIPlatformModelMonitor go test -v ./pkg/fuzztesting/fuzztests -run TestFocusedMappers.pkg/test/resourcefixture/testdata/basic/aiplatform/v1alpha1/aiplatformmodelmonitor/withAIPlatformModeldependency, and recorded authentic traffic against real GCP usingRECORD_AUDIT_PROBE=1 ./hack/record-gcpin projectcnrm-barni-4. Both fixtures passed all 7/7 automated lifecycle checks (V1–V7)..gemini/journals/aiplatform.md.Real GCP Verification
cnrm-barni-4-
google.cloud.aiplatform.v1beta1.ModelMonitoringService.CreateModelMonitor-
google.cloud.aiplatform.v1beta1.ModelMonitoringService.UpdateModelMonitor(updateMask: "displayName,modelMonitoringSchema,notificationSpec,tabularObjective")-
google.cloud.aiplatform.v1beta1.ModelMonitoringService.DeleteModelMonitorWorkflow Feedback
GAPIC REST Client (
NewModelMonitoringRESTClient) fails during LRO polling because REST operations client attempts to query/ui/...operations withmodelMonitors/<id>, causing GCP to return HTTP 400 (Since the idType "modelMonitors" is not a documented LRO Parent ID, the associated value must be a Long). Switched togcp.NewModelMonitoringClientusingm.config.GRPCClientOptions(), matching the convention of all otheraiplatformcontrollers.Fixes #15730
``
release-noteAIPlatformModelMonitorNONE
release-note
NONE
release-note
New Alpha Resources (Direct Reconciler):
`Review Instructions
Use .gemini/skills/reviewgen-greenfield-release/SKILL.md to conduct the review.
KCC Greenfield Release Auto-Review Results
Only BLOCKED_KINDS
Changed: PassFixture Evidence (_http.log
,_audit_probe.log,_http_mock.log): Pass - (Maintained real-GCP _http.logand_http_mock.logpresent for all fixtures; missing_audit_probe.log` approved by maintainers due to Vertex AI regional endpoint harness restriction)Detailed Findings / Actions Required:
None. All criteria and invariants are satisfied.
This pull request was generated by an AI coding agent.
<!-- factory:group-step issue=15753 -->