← Back to Pull requests

Greenfield: Triage judgement queue and finalize direct KRM types and identity for SecurityCenterManagementSecurityHealthAnalyticsCustomModule #16779

Closed
unknown closed this pull request without merging on Nov 30, 2026 04:22 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 01:09 UTC
Author

This pull request was generated by an AI coding agent.

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

  • Parent Hierarchy & Location:

  • - The resource is organization-scoped with location: organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}.
    - Retained OrganizationRef and Location in spec as no shared reference type currently covers organizations/{organization}/locations/{location} (location-or-parent-ref: accepted).
  • Identity & Resource ID:

  • - Confirmed the resource ID is server-generated by GCP Security Command Center (CreateSecurityHealthAnalyticsCustomModuleRequest has no *_id parameter and name is marked IDENTIFIER; identity-server-generated-id: accepted).
    - Confirmed the organization-level resource name pattern (identity-multi-pattern: accepted).
  • Documentation & Guess Markers:

  • - Updated resource-docs link to the valid REST documentation URL https://cloud.google.com/security-command-center/docs/reference/security-center-management/rest/v1/organizations.locations.securityHealthAnalyticsCustomModules and removed the verify-resource-docs-link guess marker (verify-resource-docs-link: edited).
  • Queue Resolution & Generator Configuration:

  • - Resolved root untriaged-bulk-generation entry as edited.
    - Removed --prepopulate-resource from generate-types in apis/securitycentermanagement/generate.sh.
    - Documented service-specific findings in .gemini/journals/securitycentermanagement.md.

    Fixes #16776

    ``release-note
    NONE
    ``

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261130-002748-5b76 -->

    Diff: 254 lines (+190 / -64) across 3 files Reviewer: reviewbot-robot Review duration: 192m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.62) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 254 lines diff across 3 files
    0.62
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #16779"
    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: 62.3% (MEDIUM) · Higher = larger blast radius
    62.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: 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: 26.9% · Safe to merge
    26.9%