← Back to Pull requests

Greenfield: Implement direct KRM types, identity, and generate.sh for StorageInsightsDatasetConfig #11252

Closed
unknown closed this pull request without merging on Jul 15, 2026 09:09 UTC
View on GitHub
unknown unknown commented on Jul 02, 2026 23:34 UTC
Author

This Pull Request implements direct KRM types, identity, and generate.sh for the StorageInsightsDatasetConfig resource under the storageinsights.cnrm.cloud.google.com/v1alpha1 package.

Implementation Details:


1. Types Generation (storageinsightsdatasetconfig_types.go):
- Scaffolded StorageInsightsDatasetConfigSpec and StorageInsightsDatasetConfigObservedState mapped to standard GCP DatasetConfig protobuf message from google.cloud.storageinsights.v1.
- Appended the mandatory system, managed-by-kcc, and stability labels for the alpha resource.

2. Identity Support (storageinsightsdatasetconfig_identity.go):
- Implemented IdentityV2 interface using the gcpurls.Template format "projects/{project}/locations/{location}/datasetConfigs/{datasetConfig}".
- Resolved the identity dynamically from ProjectRef, location, and resourceID/metadata.name.
- Included status-to-spec identity cross-checking to prevent resource drift.

3. Reference Support (storageinsightsdatasetconfig_reference.go):
- Implemented the StorageInsightsDatasetConfigRef struct conforming to the refs.Ref interface and registered it under the references registry.
- Handled standard normalization and reference resolution with unstructured fallbacks.

4. Testing & Validations:
- Implemented unit tests for the identity resolution.
- Added storageinsights template formatting exception in pkg/gcpurls/registry_test.go to prevent registered CAI templates test failure.
- Regenerated all CRD schemas, install components and verified that code fully builds and vets without warnings.

This PR was generated by the overseer,overseer,step/gen-types,greenfield agent (powered by the gemini-3.5-flash model).

Fixes #11243

Diff: 223 lines (+167 / -56) across 2 files Reviewer: lovelace-coder-bot Review duration: 17855m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.60) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 223 lines diff across 2 files
0.60
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.324
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #11252"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed sensitive_module
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: 60% (MEDIUM) · Higher = larger blast radius
60%
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: 25.9% · Safe to merge
25.9%