Add traits for regular and lifecycle nodes #3423
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.31) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 101 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: 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.277
Real PR Conversation Timeline
1 comments
"Review active on #3423"
general
weight: 0.35
fujitatomoya
Add
rclcpp::is_nodeandrclcpp::is_lifecycle_node, along with their_vforms. Nowis_nodematchesrclcpp::Nodeand its subclasses andis_lifecycle_nodematchesrclcpp_lifecycle::LifecycleNodeand also its subclasses.Fixes #2875
Is this user-facing behavior change?
Yes, now users can include
rclcpp/node_traits.hppfor regular nodes andrclcpp_lifecycle/node_traits.hppfor lifecycle nodes to check a node’s class family at compile time.Did you use Generative AI?
Yes, Gpt 6.1 Sol to write tests and help me with review and documentation
Additional Information
Verified locally on Ubuntu 26.
test_lifecycle_nodeand 2 intest_interface_traits