← Back to Pull requests

Greenfield: Triage judgement queue and finalize direct KRM types and identity for DataMigrationMappingRule #16742

Closed
unknown closed this pull request without merging on Nov 29, 2026 23:00 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 19:04 UTC
Author

This pull request was generated by an AI coding agent.

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

  • Parent Hierarchy (PARENT_AND_IDENTITY.md, Case B):

  • - DataMigrationMappingRule is a child resource of DatabaseMigrationConversionWorkspace (proto pattern projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}/mappingRules/{mapping_rule}).
    - Generated DatabaseMigrationConversionWorkspaceRef in apis/datamigration/v1alpha1 by adding --resource DatabaseMigrationConversionWorkspace:ConversionWorkspace to generate-identity in apis/datamigration/generate.sh.
    - Modeled parent as one required, immutable spec.parentRef *DatabaseMigrationConversionWorkspaceRef, removing separate projectRef and location fields.
    - Resolved parent-ref-not-modelled, location-or-parent-ref, and identity-root-unknown as edited.
  • Spec Fields & Judgement Queue Triage:

  • - Preserved user-configurable desired state spec.state in DataMigrationMappingRuleSpec (resolution: accepted).
    - Deferred well-known proto types for google.protobuf.Empty in value transformations pending team conventions.
    - Resolved root untriaged-bulk-generation entry as edited.
    - Retained DataMigrationMappingRule:MappingRule under --prepopulate-resource in generate.sh to preserve EmitRequired and +required OpenAPI validations on nested structs.
  • Testing & Alignment:

  • - Regenerated CRD, deepcopy, identity, and types via apis/datamigration/generate.sh.
    - Verified identity conformance test, focused mapper fuzz tests (FOCUS=DataMigrationMappingRule), apis/datamigration/..., and tests/apichecks/... all pass cleanly.
    - Updated tests/apichecks/testdata/exceptions/alpha-missingfields.txt.
    - Documented findings in .gemini/journals/datamigration.md.

    Fixes #16731

    ``release-note
    NONE
    ``

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261129-180810-ada7 -->

    Diff: 284 lines (+213 / -71) across 3 files Reviewer: reviewbot-robot Review duration: 236m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.63) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 284 lines diff across 3 files
    0.63
    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%
    57%
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #16742"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% 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: 62.9% (MEDIUM) · Higher = larger blast radius
    62.9%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 26.4% · Safe to merge
    26.4%