Greenfield: Triage judgement queue and finalize direct KRM types and identity for SecuritycenterEventThreatDetectionCustomModule #16782
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.69) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 457 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.367
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #16782"
general
weight: 0.35
reviewbot-robot
This pull request was generated by an AI coding agent.
Triage
apis/securitycenter/judgement_queue.yamland finalize direct KRM types, identity, references, CRD, and controller forSecuritycenterEventThreatDetectionCustomModule(securitycenter.cnrm.cloud.google.com/v1alpha1) following Greenfield Step 1b:1. Multi-Parent Scoping:
-
google.cloud.securitycenter.v1.EventThreatDetectionCustomModulesupports three parent patterns (projects/{project}/...,folders/{folder}/...,organizations/{organization}/...).- Added optional
ProjectRef,FolderRef, andOrganizationRefonSecuritycenterEventThreatDetectionCustomModuleSpecwith a CEL validation rule requiring exactly one parent.- Resolved
identity-multi-patternasedited.2. Server-Generated ID:
- Confirmed
CreateEventThreatDetectionCustomModuleRequesthas no ID parameter and the proto specifiesevent_threat_detection_custom_module.nameis ignored and server-generated.- Verified
SecuritycenterEventThreatDetectionCustomModuleIdentityimplementsidentity.ServerGeneratedIdentity.- Resolved
identity-server-generated-idasaccepted.3. Judgement Queue Triage:
- Triaged root spec definition and resolved
untriaged-bulk-generationasedited.4. Generation & Verification:
- Ran
apis/securitycenter/generate.shto regenerate CRD, deepcopy, identity, and reference files.- Added unit tests in
securitycentereventthreatdetectioncustommodule_identity_test.goverifying parsing, formatting, and resolution across all three root parents and server-generated status resolution.- Added
common.NormalizeGreenfieldReferencesinAdapterForObject.- Verified
TestFocusedMapperspasses forSecuritycenterEventThreatDetectionCustomModule.- Updated
tests/apichecks/testdata/exceptions/alpha-missingfields.txt.- Documented learnings in
.gemini/journals/securitycenter.md.Fixes #16777
``
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 actionable entries forSecuritycenterEventThreatDetectionCustomModuleresolved, no entries deleted, no leftover+kcc:guessmarkers)projectRefQueue Resolution Accuracy: Pass - (Multi-parent modeled with optional
,folderRef, andorganizationRefwith CEL one-of rule; server-generated ID confirmed via Create RPC lacking ID parameter)controllerbuilder generate-identityParent, Identity & References: Pass - (Multi-parent identity generated via
, conformance verified withidentity.AssertConformance, unit tests added for all root scopes)BLOCKED_KINDSUnflagged Proto-vs-KRM Audit & Struct Isolation: Pass - (All primitive fields properly typed with pointers, no unflagged references, observed state properly modeled)
Generated Files, Pre-Existing Controller/Fuzzer Sync, &
: Pass - (CRD, deepcopy, identity, and references in sync; controller and fuzzer compile and passTestFocusedMappers;SecuritycenterEventThreatDetectionCustomModulepreserved inBLOCKED_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-20261130-002720-96d1 -->