Greenfield: Implement direct controller, E2E fixtures, and fuzzer for ComputeVMExtensionPolicy #15541
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 #15541"
general
weight: 0.35
anhdle-sso
Implements the direct controller, round-trip KRM fuzzer, and real-GCP recorded E2E fixtures for
ComputeVMExtensionPolicyundercompute.cnrm.cloud.google.com/v1alpha1following Greenfield Step 2 (.gemini/skills/kcc-direct-controller-logic-greenfield-implementer/SKILL.md).Summary of Changes
pkg/controller/direct/compute/computevmextensionpolicy_controller.gousing GAPIC REST clientgcp.NewZoneVmExtensionPoliciesRESTClient(ctx, opts...). The controller adheres to all 5 canonical Greenfield standards:- REST client options configured via
m.config.RESTClientOptions().- Greenfield reference normalization via
common.NormalizeGreenfieldReferences(ctx, reader, obj, nil).- Identity extraction via
ComputeVMExtensionPolicyIdentity(obj.GetIdentity).- In-place mutation detection via
common.CompareGreenfieldSpecwithstructuredreporting.ReportDiff.- Consistent
setStatusexecution across all reconcile branches.ComputeVMExtensionPolicyinpkg/controller/resourceconfig/static_config.gowithDefaultController: DirectandSupportedControllers: [Direct].pkg/controller/direct/compute/computevmextensionpolicy_fuzzer.generated.goviacontrollerbuilder generate-fuzzer --prepopulate-resource. Verified round-trip fidelity withFOCUS=ComputeVMExtensionPolicy go test ./pkg/fuzztesting/fuzztests -run TestFocusedMappers.pkg/test/resourcefixture/testdata/basic/compute/v1alpha1/computevmextensionpolicy/and recorded authentic HTTP traffic against real GCP usingRECORD_AUDIT_PROBE=1 ./hack/record-gcpin projectcnrm-barni-4. Verified zero-diff re-reconciliation, clean deletion, and 7/7 automated lifecycle checks (V1–V7).tests/apichecks/testdata/exceptions/alpha-missingfields.txtas all spec fields are now covered by test fixtures..gemini/journals/compute.md.Real GCP Verification
cnrm-barni-4-
v1.compute.zoneVmExtensionPolicies.insert-
v1.compute.zoneVmExtensionPolicies.update-
v1.compute.zoneVmExtensionPolicies.delete- Actuation probe event:
RESOURCE_ACTUATED_AND_VERIFIED(logName: projects/cnrm-barni-4/logs/kcc-e2e-actuation-audit)Workflow feedback
ZoneorRegionprefix (such asZoneVmExtensionPolicies) require specifying the exact GAPIC clientNewZoneVmExtensionPoliciesRESTClientwhen initial generation heuristics fall back to parent service scopes.Fixes #15517
``
release-noteComputeVMExtensionPolicyNONE
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`): PassDetailed Findings / Actions Required:
None. All criteria and invariants are satisfied.
This pull request was generated by an AI coding agent.
Fixes #15584
<!-- factory:group-step issue=15584 -->