Greenfield: Implement MockGCP and Alignment for SecurityCenterMuteConfig #11112
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 179 lines diff across 2 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.311
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #11112"
general
weight: 0.35
ada-coder-bot
Overview
This PR implements a MockGCP mock service for
securitycenter.googleapis.comto support the execution ofSecurityCenterMuteConfigend-to-end tests against MockGCP, which allows fully offline, reliable, and deterministic verification of the direct reconciler.Changes
1. MockGCP Implementation:
- Added
mockgcp/mocksecuritycentercontaining mock implementations of theGetMuteConfig,CreateMuteConfig,UpdateMuteConfig, andDeleteMuteConfigmethods.- Handled standard update masks (such as updating the description, filter, type, and
expiryTime).- Integrated with the MockGCP operation and storage systems, registering it in
mockgcp/register.go.- Re-compiled
securitycenterprotos into Go gRPC Gateway files withmake generate-grpc-for-google-protos.2. Test Alignment:
- Enabled
SecurityCenterMuteConfigin theconfig/tests/samples/create/harness.goMockGCP target list.- Updated the
securitycentermuteconfigtest fixtures (minimal, maximal, and dynamic) to utilize the canonicalorganizations/{TEST_ORG_ID}format fororganizationRef.external, matching the pattern expected byrefs.ResolveOrganization.Verification
Ran all
securitycentermuteconfigtests locally withE2E_GCP_TARGET=mockand confirmed they pass 100%.---
This PR was generated by the overseer agent (powered by the gemini-2.5-flash-preview-09-2025 model).
Fixes #11102