Make Service::send_response take a const response #3400
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 174 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.309
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3400"
general
weight: 0.35
skyegalaxy
Service<ServiceT>::send_response now takes const ServiceT::Response &, and GenericService::send_response takes const SharedResponse &. The response is only forwarded to rcl_send_response, which now takes a const pointer. Existing callers passing non-const responses continue to compile.
Companion change for ros2/rmw#437, which makes rmw_send_response take a const void ros_response. A response only needs to be read to be serialized and sent, so the pointer should be const, consistent with rmw_send_request.
Description
<!--
Please include a summary of the changes and the related issue.
Highlight any key points or areas of concern.
-->
<!--
Automatically closes linked issue when PR is merged.
Usage:
Fixes #<issue number>, orFixes (paste link of issue).*-->
Fixes # (issue)
Is this user-facing behavior change?
technically yes.
<!--
If no, just leave this section empty.
If yes, please explain how user-experience changes with this pull request.
-->
Did you use Generative AI?
Yes, Claude Fable 5
<!--
If this pull request was generated using Generative AI, please specify the tool and model used (e.g., GitHub Copilot, GPT-4.1).
If only specific parts were generated by Generative AI, please list those parts (e.g., function A, class B, etc.).
-->
Additional Information
<!--
If applicable, provide any additional context or details about the changes.
-->