← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for SaaSServiceMgmtRollout #13980

Open
unknown opened this pull request with 294 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 14, 2026 05:31 UTC
Author

This PR implements the direct controller reconciliation logic, KRM fuzzer, and minimal/maximal E2E test fixtures for SaaSServiceMgmtRollout (saasservicemgmt.cnrm.cloud.google.com/v1alpha1).

Fixes #13974

Key Changes


1. Direct Controller:
- Implemented SaaSServiceMgmtRolloutAdapter in pkg/controller/direct/saasservicemgmt/saasservicemgmtrollout_controller.go using the official GAPIC REST client (SaasRolloutsClient).
- Implemented Find, Create, Update, Delete, and Export logic.
- Handled Control defaulting in compareRollout to avoid spurious diffs during re-reconciliation when control is unspecified by the user.
- Registered SaaSServiceMgmtRollout in pkg/controller/resourceconfig/static_config.go.
2. Fuzzer:
- Implemented saasservicemgmtrollout_fuzzer.go and verified round-trip fidelity with TestFocusedMappers.
3. E2E Test Fixtures & Real GCP Recording:
- Added saasservicemgmtrollout-minimal and saasservicemgmtrollout-maximal fixtures under pkg/test/resourcefixture/testdata/basic/saasservicemgmt/v1alpha1/saasservicemgmtrollout/.
- Golden traffic and live REST audit probe were recorded against real GCP (cnrm-barni-4) using ./hack/record-gcp.
- Updated alpha-missingfields.txt to resolve all 8 missing fields for SaaSServiceMgmtRollout.
4. Journal:
- Documented reconciliation observations and findings in .gemini/journals/saasservicemgmt.md.

Real GCP Audit Log Verification


TIMESTAMP                       METHOD_NAME                                                                      RESOURCE_NAME
2026-10-14T05:08:24.573020929Z  google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRollout     projects/cnrm-barni-4/locations/us-central1
2026-10-14T05:08:29.580698248Z  google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRollout     projects/cnrm-barni-4/locations/us-central1/rollouts/saasservicemgmtrollout-bazs5frqxckrp6q
2026-10-14T05:08:32.911302928Z  google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRollout     projects/cnrm-barni-4/locations/us-central1/rollouts/saasservicemgmtrollout-bazs5frqxckrp6q

``release-note
NONE
``

This pull request was generated by an AI coding agent.

<!-- factory:task-output kind=Change task=recipe-fix-20261014-025906-3e92 -->

Diff: 294 lines (+220 / -74) across 3 files Reviewer: seans3 Review duration: 17679m
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 294 lines diff across 3 files
0.40
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%
42%
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.340
Real PR Conversation Timeline
1 comments
"Review active on #13980"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 43.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: 39.9% (MEDIUM) · Higher = larger blast radius
39.9%
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: 43.0% · Lower = rushed or shallow review
43.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.8% · Safe to merge
22.8%