Fix ParentTypeName for nested unsafe query builder children #125
All Vouch review confidence checks passed
Residual risk 0.47 = Change Risk (0.54) × (1 − Review Confidence (0.11)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.54 · 117 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 28% · Reviewer familiarity: 10%
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.285
No Reviewer Assigned
no_reviewer_assigned
0.120
Rapid Merge
rapid_merge
0.100
Real PR Conversation Timeline
1 comments
"Review active on #125"
general
weight: 0.35
pquerna
Summary
Fixes a bug where nested query builders for
nested_onlymessages with oneofs would generate methods on undefined types when accessed through multiple layers of embedding.Problem
When a non-nested_only message embeds another message containing a
nested_onlyfield with a oneof, the generated code produced methods like:Instead of:
Fix
Child query builders were being reused for both safe and unsafe parent contexts with the same
ParentTypeName. AddedcopyChildrenWithParent()to create copies with the correct parent type when assigning to unsafe query builders.Test
Added
NestedOnlyWithOneof,NestedOnlyMiddle,NestedOnlyWrappertest messages andTestNestedOnlyWithOneofThroughMultipleLayersto verify the fix.