← Back to Pull requests

ai:chore: Implement direct types for: VertexAIPersistentResource #11408

Open
unknown opened this pull request with 185 lines diff across 2 files
View on GitHub
unknown unknown commented on Jul 07, 2026 00:38 UTC
Author

This PR implements the direct KRM types, Custom Resource Definition (CRD), IdentityV2 support, and reference helper logic for the VertexAIPersistentResource resource under the aiplatform.cnrm.cloud.google.com group (Greenfield Phase 1).

Proposed Changes


  • Added base types and validation schemas in apis/aiplatform/v1alpha1/vertexaipersistentresource_types.go.

  • Implemented standard identity.IdentityV2 in apis/aiplatform/v1alpha1/vertexaipersistentresource_identity.go with full support for GCP URL parsing using gcpurls.Template.

  • Added companion unit tests under apis/aiplatform/v1alpha1/vertexaipersistentresource_identity_test.go verifying the correct conversion and parsing of canonical GCP persistent resource URIs.

  • Registered references and configured the fallback normalization logic in apis/aiplatform/v1alpha1/vertexaipersistentresource_reference.go.

  • Updated the API generator configurations in generate.sh, and updated the generated deepcopy methods, protobuf mappings, and GVK catalog reports.
  • This PR does NOT contain any controller or mapper steps, as requested.

    Reference Chore File


    .agents/greenfield-direct-new-resource-types.md

    Fixes #9245


    This PR was generated by the
    overseer,overseer,priority/medium,area/direct,step/gen-types,greenfield,chore/ai
    * agent (powered by the gemini-3.5-flash model).

    Diff: 185 lines (+138 / -47) across 2 files Reviewer: ada-coder-bot Review duration: 140709m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.43) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 185 lines diff across 2 files
    0.43
    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%
    40%
    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.313
    Real PR Conversation Timeline
    1 comments
    "Review active on #11408"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.9% 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: 42.7% (MEDIUM) · Higher = larger blast radius
    42.7%
    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: 40.9% · Lower = rushed or shallow review
    40.9%
    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: 25.2% · Safe to merge
    25.2%