← Back to Pull requests

Greenfield: Triage judgement queue and finalize direct KRM types and identity for DataplexEntryLink #16745

Closed
unknown closed this pull request without merging on Nov 29, 2026 21:52 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 19:33 UTC
Author

This pull request was generated by an AI coding agent.

Triage apis/dataplex/judgement_queue.yaml and finalize direct KRM types, identity, references, controller, and fuzzer for DataplexEntryLink (dataplex.cnrm.cloud.google.com/v1alpha1) following Greenfield Step 1b:

  • parent-ref-guessed, location-or-parent-ref, & identity-root-unknown: Modelled DataplexEntryLink as a child resource of DataplexEntryGroup (projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}) with spec.parentRef EntryGroupRef (+required, immutable via self == oldSelf CEL rule), removing ProjectRef and Location.

  • identity-server-generated-id: Resolved as accepted (client-specified ID via CreateEntryLinkRequest.entry_link_id; implements identity.IdentityV2).

  • possible-reference-by-description: Moved EntryLink_EntryReference into dataplexentrylink_types.go and converted .name to entryRef DataplexEntryRef (+required). Hand-coded EntryLink_EntryReference_FromProto and EntryLink_EntryReference_ToProto in dataplexentrylink_mapper.go.

  • possible-reference-by-description-loose: Resolved .spec.entryLinkType as not-applicable (references predefined Dataplex system entry link types such as projects/dataplex-types/locations/global/entryLinkTypes/synonym, not a KCC-managed GCP resource).

  • message-map-derived: Resolved .spec.aspects as accepted (verified Go type map[string]Aspect and proto mapping).

  • untriaged-bulk-generation: Triaged root spec definition and resolved all entries.

  • Regenerated identity, deepcopy, CRD, and mappers via apis/dataplex/generate.sh.

  • Regenerated direct controller and round-trip fuzzer via controllerbuilder generate-controller and generate-fuzzer, verifying passing TestFocusedMappers.

  • Updated API check golden test exceptions (alpha-missingfields.txt).

  • Recorded service learnings in .gemini/journals/dataplex.md.
  • Fixes #16738

    ``release-note
    NONE
    `

    Review Instructions

    Use .gemini/skills/reviewgen-greenfield-new-types/SKILL.md to conduct the review.

    KCC Greenfield Step 2 (Judgement Queue) Auto-Review Results


    Trigger criteria matched: Yes
    Judgement Queue Completeness: Pass - (
    untriaged-bulk-generation and all 8 entries for DataplexEntryLink resolved, no entries deleted, no leftover +kcc:guess markers)
    Queue Resolution Accuracy: Pass - (Parent modeled as
    spec.parentRef, entryReferences[].name converted to entryRef DataplexEntryRef, entryLinkType confirmed as predefined system URI, client-specified ID confirmed via CreateEntryLinkRequest.entry_link_id)
    Parent, Identity & References: Pass - (Single
    spec.parentRef EntryGroupRef per go/kcc-oneparent, deterministic identity generation via controllerbuilder generate-identity, client-specified ID conformance verified with identity.AssertConformance)
    Unflagged Proto-vs-KRM Audit & Struct Isolation: Pass - (Moved
    EntryLink_EntryReference with // +kcc:proto= to dataplexentrylink_types.go, all primitive fields properly typed with pointers, observed state properly modeled)
    Generated Files, Pre-Existing Controller/Fuzzer Sync, & BLOCKED_KINDS: Pass - (CRD, mappers, deepcopy in sync; pre-existing controller and fuzzer regenerated and passing TestFocusedMappers; DataplexEntryLink preserved in BLOCKED_KINDS; missingrefs.txt` untouched)

    Detailed Findings / Actions Required:


    None. All Greenfield Step 1b types judgement criteria and invariants are satisfied.

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261129-184647-b40a -->

    Diff: 473 lines (+354 / -119) across 5 files Reviewer: reviewbot-robot Review duration: 138m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 473 lines diff across 5 files
    0.46
    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.369
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16745"
    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: 45.7% (MEDIUM) · Higher = larger blast radius
    45.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: 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: 18.1% · Safe to merge
    18.1%