← Back to Pull requests

Greenfield: Prepopulate direct KRM types, identity, and judgement queue for DesignCenterSpace #15412

Closed
unknown closed this pull request without merging on Nov 18, 2026 01:58 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 09:35 UTC
Author

Prepopulates direct KRM types, IdentityV2, reference, and judgement queue for DesignCenterSpace under designcenter.cnrm.cloud.google.com/v1alpha1 following Greenfield Step 1a (prepopulate/SKILL.md):

  • Created apis/designcenter/generate.sh pinning PROTO_SHA="547f8fdb4b91dbac70d540b3757520f0608ae356" for GA proto google.cloud.designcenter.v1.Space.

  • Generated designcenterspace_types.go, types.generated.go, designcenterspace_identity.generated.go, designcenterspace_reference.generated.go, and pkg/controller/direct/designcenter/mapper.generated.go.

  • Initialized apis/designcenter/judgement_queue.yaml with open findings (including untriaged-bulk-generation) ready for Step 1b triage.

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

  • Synchronized RBAC definitions in config/installbundle/components/clusterroles/cnrm_admin.yaml, cnrm_viewer.yaml, and updated operator test expectations in _expected.yaml.

  • Added cloud.google.com/go/designcenter v0.1.0 to go.mod with replace google.golang.org/genproto to protect legacy genproto packages from breaking changes.

  • Updated alpha-missingfields.txt golden exception file for DesignCenterSpace.

  • Documented service learnings in .gemini/journals/designcenter.md.
  • KCC Greenfield Step 1 (Prepopulate) Auto-Review Results


    Trigger criteria matched: Yes
    generate.sh & Flags Check: Pass (Verified generate-types --prepopulate-resource, generate-identity, generate-mapper --prepopulate-resource, and no --allow-non-ga-proto)
    Judgement Queue Open Check: Pass (Confirmed apis/designcenter/judgement_queue.yaml has untriaged-bulk-generation with status: open and no premature manual resolutions)
    Mechanical Output & Idempotency: Pass (Confirmed ./apis/designcenter/generate.sh produces zero diff and <kind>_types.go was not hand-edited)
    Release Bundle Blocklist (BLOCKED_KINDS): Pass (Confirmed "DesignCenterSpace" is added in alphabetical order to BLOCKED_KINDS in dev/tasks/build-release-bundle)
    Mapper Compilation & apichecks: Pass (Confirmed apis/designcenter/... and pkg/controller/direct/designcenter/... build and tests/apichecks/... passes without unauthorized exception edits)

    Workflow feedback


  • For net-new services whose protos are only available in recent googleapis revisions, generate.sh pinning a specific PROTO_SHA cleanly isolates the dependency without mutating the repository-wide apis/git.versions.

  • Adding newer Google Cloud Go client libraries that transitively require newer genproto can be safely accommodated by maintaining a replace google.golang.org/genproto directive in go.mod to protect legacy direct controllers.
  • Fixes #15404

    ``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-15404/recipe-fix-20261111-081830-0b49)</sub>
    
    <!-- factory:task-output kind=Change task=recipe-fix-20261111-081830-0b49 -->
    
    ---
    
    ### Greenfield: Triage judgement queue and finalize direct KRM types and identity for DesignCenterSpace
    
    This pull request was generated by an AI coding agent.
    
    Triages `apis/designcenter/judgement_queue.yaml` and finalizes direct KRM types, identity,
    and reference types for `DesignCenterSpace` under `designcenter.cnrm.cloud.google.com/v1alpha1`
    following Greenfield Step 1b (`judgement/SKILL.md`):
    
    - Inlined `*parent.ProjectAndLocationRef` in `DesignCenterSpaceSpec` resolving `location-or-parent-ref`.
    - Converted `gcsBucket` (*string) to `gcsBucketRef` (*storagev1beta1.StorageBucketRef) resolving
      `possible-reference-by-description`.
    - Verified URL template `//designcenter.googleapis.com/projects/{project}/locations/{location}/spaces/{space}`
      against proto `google.api.resource` pattern resolving `identity-not-in-cai`.
    - Documented public service and resource reference doc URLs resolving `verify-service-docs-link`
      and `verify-resource-docs-link`.
    - Resolved `untriaged-bulk-generation` in `apis/designcenter/judgement_queue.yaml`.
    - Regenerated CRD, deepcopy, and `pkg/controller/direct/designcenter/mapper.generated.go`.
    - Updated `tests/apichecks/testdata/exceptions/alpha-missingfields.txt` golden exceptions for
      `DesignCenterSpace`.
    - Documented service learnings in `.gemini/journals/designcenter.md`.
    
    ### KCC Greenfield Step 2 (Judgement Queue) Auto-Review Results
    * **Trigger criteria matched**: Yes
    * **Judgement Queue Completeness**: Pass (Confirmed `untriaged-bulk-generation` and all 5 actionable entries for `DesignCenterSpace` are resolved, no entries were deleted, and no `+kcc:guess` comments remain in handwritten files)
    * **Queue Resolution Accuracy**: Pass (No false `not-applicable` or `accepted` resolutions; `gcsBucket` converted to `gcsBucketRef`, no doc comments stripped, `ObservedState` retains `createTime` and `updateTime`)
    * **Parent, Identity & References**: Pass (Embedded `*parent.ProjectAndLocationRef` per `go/kcc-oneparent`, deterministic `generate-identity` conformance passed, `IdentityV2` implemented, and `DesignCenterSpaceRef` delegates to `refs.Normalize`)
    * **Unflagged Proto-vs-KRM Audit & Struct Isolation**: Pass (`+kcc:spec:proto` accurately points to `Space`, no unflagged references or top-level `Labels`, all scalar spec fields are pointers except embedded location)
    * **Generated Files, Pre-Existing Controller/Fuzzer Sync, & `BLOCKED_KINDS`**: Pass (CRD, mapper, deepcopy in sync; no pre-existing controller or fuzzer yet; `DesignCenterSpace` is present in `BLOCKED_KINDS`; `missingrefs.txt` untouched)
    
    ### Workflow feedback
    - Converting a string field to a reference type like `*storagev1beta1.StorageBucketRef` is seamlessly handled by `controllerbuilder generate-mapper`, automatically generating both proto-to-KRM and KRM-to-proto mapping logic without handwritten mapper overrides.
    
    Fixes #15454
    
    
    release-note
    NONE
    ``

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

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: lovelace-coder-bot Review duration: 9622m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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%
    60%
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #15412"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 20.5% · Safe to merge
    20.5%