← Back to Pull requests

Track callable and pointer flow through nested standard containers #301

Closed
unknown closed this pull request without merging on Nov 30, 2026 11:50 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 10:45 UTC
Author

Model a container element that is itself a modeled container with a nested owner keyed by the parent owner and a canonical inner specialization identity. Named inner containers copy their element cell and matching descendant cells into the nested chain; omitted template defaults are filled before comparison, so aliases and explicit default allocators share both copy descent and nested cell keys. By-value range variables get their own seeded cells while explicit references bind the source. Nested owners report their root variable so header file-static initializers replay through merge, and nested pair members are seeded and copied through their modeled member cells. A container-typed call result uses its return temp rather than writing a container value into the inner element cell; call-return element summaries remain a follow-up.

Validate every bracket in a subscript chain against the configured access model. Gate braced inner lists on the inner initializer_list opt-in and standalone constructor and allocator checks, reuse inner constructor viability for outer list validation, keep an ordinary inner constructor viable, and preserve the allocator reading when the one-argument reading is not viable. Detect braced copies by canonical type before a list reading, route typed braced temporaries and named copies through the same copy-or-list path, and accept matching typed mapped temporaries in entry lists. Single-pair map readings preserve mapped braces and allocator clauses only when the key clause is compatible, including allowed implicit class-key conversions; entry-list readings require every clause to fit a full entry, a known pair key to have both clauses, and a non-braced mapped value to be the inner container. Key inference is limited to recognized map layouts. Insertion effects require an emitted, unfiltered call site, and ignored macros filter typed, named and field-nested braced sources before copying.

Honor ignored field macros beneath range and nested subscripts, keep unevaluated chained subscript sites distinct, and validate the fixture with an explicit initializer_list, allocator-qualified inner vectors, an allocator-capable initializer-list constructor, a count/value inner constructor, and a usable iterator. Exercise vector-of-vector, map-of-vector, vector-of-map, three-level, alias, explicit-allocator and mixed-allocator copies, shared header statics, named and braced pair inserts, typed mapped entries, class/callback/pair keys, custom entry models, model opt-outs, explicit and by-value ranges, pointer elements, and unrelated-container isolation in tests/fixtures/cpp_nested_containers.

Recapture the canonical container-cell probes: HiView 35 -> 39 and Camera 8 -> 10 for the new outer and nested cells, with every other global and probe unchanged. Map iteration, structured bindings, and chained find-second lookups remain documented follow-ups.

Verified with cargo test --workspace, cargo clippy --workspace --all-targets -- -D warnings, cargo fmt --check, clang syntax-only checks of the fixture, the canonical HiView and Camera debug checks (44/44), and identical --jobs 1 and --jobs 8 exports.

Diff: 395 lines (+296 / -99) across 4 files Reviewer: ArcsinX Review duration: 5825m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 395 lines diff across 4 files
0.43
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.358
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #301"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
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: 43.2% (MEDIUM) · Higher = larger blast radius
43.2%
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: 17.1% · Safe to merge
17.1%