← Back to Pull requests

Greenfield: Prepopulate direct KRM types, identity, and judgement queue for ComputeVMExtensionPolicy #15375

Closed
unknown closed this pull request without merging on Nov 12, 2026 22:45 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 01:46 UTC
Author

Prepopulates direct KRM types, IdentityV2, reference, and judgement_queue.yaml for ComputeVMExtensionPolicy under compute.cnrm.cloud.google.com/v1alpha1 following Greenfield Step 1a (prepopulate/SKILL.md):

  • Patched dev/tools/controllerbuilder/generate-proto.sh to include VmExtensionPolicy messages and ZoneVmExtensionPolicies service in google/cloud/compute/v1/compute.proto during proto compilation.

  • Updated apis/compute/generate.sh to include ComputeVMExtensionPolicy in generate-types and generate-identity.

  • Generated computevmextensionpolicy_types.go, identity, reference, deepcopy, and CRD.

  • Added ComputeVMExtensionPolicy to BLOCKED_KINDS in dev/tasks/build-release-bundle.

  • Implemented minimal mapper helpers in pkg/controller/direct/compute/computevmextensionpolicy_mapper.go for ExtensionPolicies map conversion.

  • Generated apis/compute/judgement_queue.yaml with open triage findings for Step 1b.

  • Updated tests/apichecks/testdata/exceptions/alpha-missingfields.txt golden exceptions.

  • Documented service notes in .gemini/journals/compute.md.
  • Fixes #15353

    ``release-note
    NONE

    
    This pull request was generated by an AI coding agent.
    
    <sub>🤖 [Agent session](https://staging.repoagent.dev/#/overseers/kcc/task-session/fix-k8s-config-connector-15353/recipe-fix-20261111-000123-b4fb)</sub>
    
    <!-- factory:task-output kind=Change task=recipe-fix-20261111-000123-b4fb -->
    
    ---
    
    ### Greenfield: Triage judgement queue and finalize direct KRM types and identity for ComputeVMExtensionPolicy
    
    Triage `apis/compute/judgement_queue.yaml` and finalize direct KRM types, identity, and reference types for `ComputeVMExtensionPolicy` under `compute.cnrm.cloud.google.com/v1alpha1` following Greenfield Step 1b:
    
    - Lock in `projects/{project}/zones/{zone}/vmExtensionPolicies/{vmextensionpolicy}` in `apis/compute/generate.sh` via `--pattern ComputeVMExtensionPolicy=...`, matching the `ZoneVmExtensionPolicies` REST API.
    - Keep `spec.location` as a required string representing the zone name, matching Compute resource conventions.
    - Update `+kcc:source:resource-docs` to point to the `zoneVmExtensionPolicies` REST reference and remove guess markers.
    - Identify `globalResourceLink`, `managedByGlobal`, `state`, and `updateTimestamp` as output-only per proto comments and move them from `ComputeVMExtensionPolicySpec` to `ComputeVMExtensionPolicyObservedState`.
    - Implement custom `ComputeVMExtensionPolicySpec` mappers in `pkg/controller/direct/compute/computevmextensionpolicy_mapper.go` to override automatic mapping in `mapper.generated.go`.
    - Add unit tests in `apis/compute/v1alpha1/computevmextensionpolicy_identity_test.go` covering `FromExternal`, `ParentString`, `GetIdentity` (including status drift checks), and `ComputeVMExtensionPolicyRef.ValidateExternal`/`Normalize`.
    - Update golden exceptions in `tests/apichecks/testdata/exceptions/alpha-missingfields.txt` and document findings in `.gemini/journals/compute.md`.
    
    Fixes #15399
    
    
    release-note
    NONE
    ``

    This pull request was generated by an AI coding agent.

    <!-- factory:group-step issue=15399 -->

    Diff: 390 lines (+292 / -98) across 4 files Reviewer: ada-coder-bot Review duration: 2698m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.43) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 390 lines diff across 4 files
    0.43
    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%
    56%
    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.357
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #15375"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.6% · Safe to merge
    18.6%