← Back to Pull requests

Greenfield: Prepopulate direct KRM types, identity, and judgement queue for CCInsightsIssueModel #16097

Open
unknown opened this pull request with 444 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 19, 2026 04:31 UTC
Author

Prepopulate the initial direct KRM types, identity, reference, CRD, and judgement_queue.yaml for CCInsightsIssueModel (contactcenterinsights.cnrm.cloud.google.com/v1alpha1) following Greenfield Step 1a (.gemini/skills/kcc-direct-greenfield-types-implementer/prepopulate/SKILL.md):

  • Configured apis/contactcenterinsights/generate.sh with --prepopulate-resource and generate-identity for CCInsightsIssueModel

  • Generated KRM types, IdentityV2, Ref types, conformance tests, mappers, and CRD definition for CCInsightsIssueModel

  • Verified CCInsightsIssueModel is present in BLOCKED_KINDS in dev/tasks/build-release-bundle

  • Added untriaged findings for CCInsightsIssueModel to apis/contactcenterinsights/judgement_queue.yaml with status open

  • Added service journal entry to .gemini/journals/contactcenterinsights.md
  • Fixes #16090

    ``release-note
    NONE

    
    ## Review Instructions
    
    Use .gemini/skills/reviewgen-greenfield-new-types/SKILL.md to conduct the review.
    
    ### KCC Greenfield Step 1 (Prepopulate) Auto-Review Results
    * **Trigger criteria matched**: Yes
    * **`generate.sh` & Flags Check**: Pass - (`generate-types --prepopulate-resource` and `generate-identity` configured cleanly without `--allow-non-ga-proto`)
    * **Judgement Queue Open Check**: Pass - (`apis/contactcenterinsights/judgement_queue.yaml` has `untriaged-bulk-generation` and related entries with `status: open` and no premature manual resolutions)
    * **Mechanical Output & Idempotency**: Pass - (`./apis/contactcenterinsights/generate.sh` produces zero uncommitted diff and generated files have not been hand-edited)
    * **Release Bundle Blocklist (`BLOCKED_KINDS`)**: Pass - (`CCInsightsIssueModel` is present in `BLOCKED_KINDS` in `dev/tasks/build-release-bundle`)
    * **Mapper Compilation & `apichecks`**: Pass - (`apis/contactcenterinsights/...` and `pkg/controller/direct/contactcenterinsights/...` build cleanly and `tests/apichecks/...` passes without unauthorized exception edits)
    
    #### Detailed Findings / Actions Required:
    None. All Greenfield Step 1a criteria and invariants are satisfied.
    
    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-16090/recipe-fix-20261119-031511-a1a5)</sub>
    
    <!-- factory:task-output kind=Change task=recipe-fix-20261119-031511-a1a5 -->
    
    ---
    
    ### Greenfield: Finalize direct KRM types and identity for CCInsightsIssueModel
    
    Triage `apis/contactcenterinsights/judgement_queue.yaml` entries and finalize direct KRM types and identity for `CCInsightsIssueModel` (`contactcenterinsights.cnrm.cloud.google.com/v1alpha1`) following Greenfield Step 1b:
    
    - Inlined `*parent.ProjectAndLocationRef` in `CCInsightsIssueModelSpec` to replace separate `projectRef` and `location` fields.
    - Confirmed `identity.ServerGeneratedIdentity` because `CreateIssueModelRequest` has no `issue_model_id` parameter and `name` is assigned by the server; updated doc comment on `ResourceID`.
    - Retained deprecated `medium` field in `IssueModel_InputDataConfig` to maintain CRD backward compatibility against the existing CRD schema on `master`.
    - Verified `map[string]IssueModelLabelStats_IssueStats` Go type and mapping.
    - Resolved all open entries in `apis/contactcenterinsights/judgement_queue.yaml` for `CCInsightsIssueModel`.
    - Documented findings in `.gemini/journals/contactcenterinsights.md`.
    
    Fixes #16110
    
    
    release-note
    NONE
    ``

    This pull request was generated by an AI coding agent.

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

    Diff: 444 lines (+333 / -111) across 5 files Reviewer: barney-s Review duration: 14416m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.50) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 444 lines diff across 5 files
    0.50
    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%
    42%
    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.365
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #16097"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 50.3% (MEDIUM) · Higher = larger blast radius
    50.3%
    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: 43.0% · Lower = rushed or shallow review
    43.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: 28.7% · Safe to merge
    28.7%