← Back to Pull requests

Add support for robot-specific configuration files across packages #24

Closed
unknown closed this pull request without merging on Oct 20, 2026 08:05 UTC
View on GitHub
unknown unknown commented on Oct 11, 2026 13:44 UTC
Author

Fix https://github.com/gbionics/resolve-robotics-uri-py/issues/23 .

Add uri_overrides, a map from URI scheme names to resolver callbacks, to resolve_robotics_uri. The default robot:// handler searches the working directory, robot-specific files across packages, then an optional default package:

resolve_robotics_uri("robot://config/controller.ini", default_package_name="ControlLib")

Robot selection uses ACTIVE_ROBOT_NAME, falling back to YARP_ROBOT_NAME. Package discovery is cached. Custom callbacks can handle new prefixes or replace existing ones; the parsed scheme matches exactly (keys omit ://, e.g. "home"). All callbacks receive the search options and default_package_name.

The CLI supports robot:// and --default-package-name. Plain paths and existing URI schemes retain their behavior. Includes documentation and a runnable home:// example.

get_default_uri_overrides() returns a fresh default mapping for callers to extend.

Validation: 37 Python tests pass, including CLI and callback coverage; the custom example was also exercised.

C++ counterpart: https://github.com/gbionics/resolve-robotics-uri-cpp/pull/10 .

Diff: 146 lines (+109 / -37) across 1 files Reviewer: traversaro Review duration: 12620m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.56) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 146 lines diff across 1 files
0.56
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.299
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #24"
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: 56% (MEDIUM) · Higher = larger blast radius
56%
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: 23.5% · Safe to merge
23.5%