← Back to Pull requests

Make server configuration parameters fully reconfigurable at runtime #146

Closed
unknown closed this pull request without merging on Nov 22, 2026 00:09 UTC
View on GitHub
unknown unknown commented on Nov 21, 2026 07:28 UTC
Author

Closes #58

#93 made storing_period, allow_dynamic_typing and must_save_on_update reactive to parameter changes. This PR closes the remaining gaps so that the server configuration is handled consistently as node parameters.

Changes

  • Always declare the configuration parameters. storing_period, allow_dynamic_typing and must_save_on_update are now declared explicitly with descriptors (DeclareServerParameters), so they are visible and reconfigurable via the parameter API even with --allow-override false. Previously they were only read from the overrides and never declared in that case, so ros2 param get failed and a client set would implicitly declare them as dynamically typed.

  • Validate configuration parameters in the on-set callback. Wrong type, deletion (NOT_SET), negative values and values that would overflow the wall timer period are rejected with a reason. Before, a wrong-typed or deleted parameter would throw from as_int() / as_bool() inside the callbacks.

  • Make the allow_dynamic_typing toggle effective for already declared parameters. Parameters loaded from the persistent file are now declared dynamically typed at the rclcpp level, and the typing policy is enforced by the server in checkValidParams based on the current allow_dynamic_typing value. This removes the "only affects parameters declared after the change" limitation noted in #93. With allow_dynamic_typing false, no served parameter may change type (including deletion), which matches the rclcpp semantics for statically typed parameters.

  • Keep the declared storing_period consistent when an invalid initial value is coerced to 0 at startup.

  • Tests: client_dynamic_param_change now verifies that a type change succeeds after enabling dynamic typing and fails again after disabling it, and that invalid configuration values are rejected without side effects. test.py gains a 5th stage running the same client with allow_override:=false (new allow_override launch argument).

  • README: new "Runtime Reconfiguration" section.
  • Behavior notes for review

  • Parameters loaded from the persistent file now report dynamic_typing: true in ros2 param describe; the effective policy is the server's allow_dynamic_typing parameter.

  • Client-created parameters (implicitly declared, always dynamic in rclcpp) are now also subject to the policy, so with allow_dynamic_typing false their type can no longer be changed. This matches the documented behavior ("parameter type can be changed dynamically only when allow-dynamic-typing is set").
  • Testing

    Built with -D CLIENT_TEST_DEMO=ON on rolling (rclcpp 33) and ran test/test.py. All 5 stages pass, including the new test cases in both the default and allow_override:=false stages.

    🤖 Generated with Claude Code

    Diff: 357 lines (+267 / -90) across 4 files Reviewer: fujitatomoya Review duration: 1000m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.66) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 357 lines diff across 4 files
    0.66
    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%
    57%
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #146"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    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: 65.8% (HIGH) · Higher = larger blast radius
    65.8%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 27.6% · Safe to merge
    27.6%