← Back to Pull requests

Greenfield: Implement MockGCP and Alignment for SecurityCenterMuteConfig #11112

Closed
unknown closed this pull request without merging on Jul 22, 2026 22:46 UTC
View on GitHub
unknown unknown commented on Jul 01, 2026 11:03 UTC
Author

Overview


This PR implements a MockGCP mock service for securitycenter.googleapis.com to support the execution of SecurityCenterMuteConfig end-to-end tests against MockGCP, which allows fully offline, reliable, and deterministic verification of the direct reconciler.

Changes


1. MockGCP Implementation:
- Added mockgcp/mocksecuritycenter containing mock implementations of the GetMuteConfig, CreateMuteConfig, UpdateMuteConfig, and DeleteMuteConfig methods.
- 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 securitycenter protos into Go gRPC Gateway files with make generate-grpc-for-google-protos.

2. Test Alignment:
- Enabled SecurityCenterMuteConfig in the config/tests/samples/create/harness.go MockGCP target list.
- Updated the securitycentermuteconfig test fixtures (minimal, maximal, and dynamic) to utilize the canonical organizations/{TEST_ORG_ID} format for organizationRef.external, matching the pattern expected by refs.ResolveOrganization.

Verification


Ran all securitycentermuteconfig tests locally with E2E_GCP_TARGET=mock and 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

Diff: 179 lines (+134 / -45) across 2 files Reviewer: ada-coder-bot Review duration: 30943m
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
0.59
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%
60%
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.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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% 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: 58.7% (MEDIUM) · Higher = larger blast radius
58.7%
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: 60.5% · Lower = rushed or shallow review
60.5%
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: 23.2% · Safe to merge
23.2%