Match real gcp behavior in MockGCP for DialogflowCXPage #15975
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 238 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.328
Real PR Conversation Timeline
1 comments
"Review active on #15975"
general
weight: 0.35
anhdle-sso
This pull request implements MockGCP support and matches real GCP behavior for
DialogflowCXPage(dialogflowcx.cnrm.cloud.google.com/v1alpha1).Summary of Changes
- Ran
hack/record-gcpagainst live GCP projectcnrm-barni-4fordialogflowcxpage-minimalanddialogflowcxpage-maximalfixtures.- Removed
DialogflowCXPagefrom ratcheting exclusions intests/e2e/ratcheting.go.- Registered
DialogflowCXPageunder mock-supported kinds inconfig/tests/samples/create/harness.go.- Committed the authentic golden baseline logs (
_http.log) and fixtures in a dedicated commit.- Implemented
pagesServerimplementingcloud.google.com/go/dialogflow/cx/apiv3/cxpb.PagesServer(CreatePage,GetPage,UpdatePage,DeletePage,ListPages) inmockgcp/mockdialogflow/page.go.- Registered
cxpb.RegisterPagesServerand REST routes viaRegisterCXPagesHandlerinmockgcp/mockdialogflow/service.go.- Added mock support for server-generated IDs for pages, transition routes, and event handlers.
- Generated
_http_mock.logfiles and confirmedhack/compare-mock "fixtures/dialogflowcxpage"passes cleanly.- Confirmed
TestGoldenLogAlignmentandTestRealHTTPLogsDoNotContainMockGCPpass.- Ran
tests/apichecks/...and updatedtests/apichecks/testdata/exceptions/alpha-missingfields.txtas tested fields are now covered.- Added journal under
.gemini/skills/add-new-mockgcp-resource/journal/dialogflowcxpage.md.Fixes #15964
``
release-note
``NONE
This pull request was generated by an AI coding agent.
<!-- factory:task-output kind=Change task=recipe-fix-20261117-232602-9d6f -->
<sub>🤖 Agent session</sub>