robot-md 2.0.1__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robot_md-2.0.1 → robot_md-2.2.0}/PKG-INFO +2 -2
- {robot_md-2.0.1 → robot_md-2.2.0}/pyproject.toml +5 -5
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/__main__.py +47 -15
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/actuator.py +41 -16
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/manifest.py +22 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/install_backend.py +4 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/install_gateway.py +22 -7
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/resources/hotplug_pending.py +6 -16
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/server.py +10 -9
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/hotplug_confirm.py +16 -14
- robot_md-2.2.0/src/robot_md/mcp/tools/hotplug_review.py +37 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/register.py +19 -6
- robot_md-2.2.0/tests/hotplug/test_hotplug_confirm_bind_is_idempotent.py +111 -0
- robot_md-2.2.0/tests/hotplug/test_hotplug_review_is_read_only.py +62 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_actuator_lifecycle.py +103 -16
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_install_gateway.py +18 -5
- robot_md-2.2.0/tests/test_register_summary.py +17 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_tool_annotations.py +7 -2
- robot_md-2.0.1/src/robot_md/mcp/tools/hotplug_review.py +0 -36
- {robot_md-2.0.1 → robot_md-2.2.0}/.gitignore +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/README.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/docs/hotplug-roadmap.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/apikey_request.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/art11.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/audit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/auto_calibrate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/autodetect.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/_capability_default.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/base.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/capability.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/feetech_depthai/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/feetech_depthai/capabilities.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/feetech_depthai/doctor.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/feetech_depthai/motion.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/feetech_depthai/perception.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/feetech_depthai/servo.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/lerobot/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/lerobot/capabilities.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/lerobot/config.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/lerobot/motion.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/lerobot/perception.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/realsense/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/realsense/capabilities.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/realsense/perception.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/backends/registry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/benchmarks.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/bus_scan.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/calibrate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/calibrate_extrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/calibrate_intrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/claude_md.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/compliance_status.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/context.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/dashboard/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/dashboard/events.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/dashboard/server.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/dashboard/static/style.css +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/dashboard/templates/index.html +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/detectors/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/detectors/depth.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/detectors/hsv.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/discovery.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/doctor.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/eu_register.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/extrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/fria.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/gateway_client.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/gripper_silhouette.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/audit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/cli.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/config.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/daemon.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/event.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/linux.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/macos.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/matcher.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/presets_index.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/queue.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/service_installers/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/service_installers/linux_systemd.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/service_installers/macos_launchd.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/service_installers/windows_taskscheduler.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/socket_listener.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/hotplug/windows.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/ifu.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/incidents.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/_feetech_probe.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/auto_calibrate_ready.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/calibrate_extrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/calibrate_sign.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/calibrate_zero.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/compliance_scaffold.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/install_mcp.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/install_skill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/register.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/teach_poses.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/voice_setup.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/init_phases/write_manifest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/install_desktop.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/install_mcp_claude_code.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/invoke.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/kinematics.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/context.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/invocation_log.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/invocation_record.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/manifest_watcher.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/resource_subscribers.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/resources/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/discover.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/doctor_summary.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/estop.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/execute_capability.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/execute_task.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/record_skill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/render.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/_ctx.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/dry_run.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/init.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/kit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/replay.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/run_execute.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/run_full.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/run_probe.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/submit_to_rrf.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/spatial_eval/verify.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/validate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/mcp/tools/vision_find.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/motion_gates.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/parser.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/planning/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/planning/anthropic_shim.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/planning/decompose.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/planning/prompt.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/planning/types.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/poses.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/preconditions.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/aloha2.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/franka_panda.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/koch_arm.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/lego_ev3.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/lego_spike_prime.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/lekiwi.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/microduck.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/minimal.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/picar_x.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/reachy2.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/so_arm101.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/so_arm101_leader.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/stretch3.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/turtlebot3_burger.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/turtlebot4.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/unitree_go2.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/presets/ur5e.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/publisher_key.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/registry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/render.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/revoke_key.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/robot_spec.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/rotate_key.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/rrf_packages.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/ruri.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/schemas/capabilities.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/schemas/v1/robot.schema.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/schemas/v1/version.txt +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/signing.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/skill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/skills/using-robot-md.SKILL.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/cli.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/execute/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/execute/evidence.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/execute/fixtures/kit_v1.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/execute/judge.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/execute/manual_gate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/execute/trial.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/loader.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/A1/probe-001.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/A1/probe-002.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/A1/probe-003.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/A2/probe-001.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/A2/probe-002.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/A2/probe-003.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O1/probe-001.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O1/probe-002.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O1/probe-003.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O2/probe-001.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O2/probe-002.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O2/probe-003.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O3/probe-001.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O3/probe-002.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/datasets/public/O3/probe-003.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/runner.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorer.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorers/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorers/a1.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorers/a2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorers/o1.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorers/o2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/scorers/o3.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/probe/stacks.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/rrf.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/score.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/sign.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/a1_grasp.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/a2_stability.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/base.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/o1_permanence.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/o2_container.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/spatial_eval/units/o3_partial_view.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/submit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/README.md.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/hooks.json.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/plugin.json.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/pyproject.toml.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/skill.md.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/src_actuator.py.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/templates/actuator/test_actuator.py.tmpl +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/trajectory.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/trial.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/validate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/src/robot_md/verify_tier.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capabilities_schema_all_core_caps_present.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capabilities_schema_arg_validation.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capabilities_schema_loads.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capability_dataclass.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capability_metadata_default.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capability_namespace_core_accepted.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capability_namespace_malformed_rejected.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capability_namespace_skips_in_discovery.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_capability_namespace_vendor_accepted.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_describe_capabilities_cli.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_entry_points_register_sp3_backends.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_enumerate_capabilities.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_existing_capabilities_method_unchanged.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_arm_place_home.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_backend_capabilities_valid.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_backend_open_mocked.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_backend_protocols.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_build_config_so_arm101.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_capabilities_schema_compliance.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_dry_run.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_execute_arm_pick_mocked.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_execute_unknown_capability.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_gripper.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_perception.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_lerobot_teleop.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_presets_preferred_backend_lerobot.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_aligned_depth.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_backend_protocols.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_capabilities_camera_only.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_no_arm_capability.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_open_mocked.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_perceive_depth.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_perceive_rgb.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/backends/test_realsense_scene_describe_mocked.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/conftest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fake_gateway.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/autodetect/pi5-hailo-movidius.lspci +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/autodetect/pi5-hailo-movidius.lsusb +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/hybrid-fixture.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/invalid/bad-rcan-version.ROBOT.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/invalid/bad-yaml.ROBOT.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/invalid/missing-identity-section.ROBOT.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/invalid/missing-safety.ROBOT.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/invalid/no-frontmatter.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/register-fixture.json +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/robot_md_legacy_camera_singular.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/robot_md_no_intrinsic.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/robot_md_oak_d_factory_cal.yaml +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/fixtures/valid/minimal.ROBOT.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/conftest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_dashboard_frame.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_depthai_intrinsic_read.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_extrinsic_calibrate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_feetech_smoke.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_init_e2e_feetech.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_latch_recovery.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_sp1_demo_path.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_sphp_replug_so_arm101_high_tier.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_sphp_unknown_device_low_tier.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hardware/test_teach_replay_roundtrip.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_audit_log_append.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_cli_hotplug_install_service_linux.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_cli_hotplug_install_service_macos.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_cli_hotplug_review_lists_pending.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_cli_hotplug_status_reports_running.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_config.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_daemon_broadcasts_on_event.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_daemon_dedupes_replug.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_daemon_starts_and_stops_clean.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_daemon_two_instances_eaddrinuse.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_device_event.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_device_event_shape_consistent_across_platforms.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_hotplug_confirm_bind_writes_manifest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_hotplug_confirm_reject_appends_resolution.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_hotplug_review_returns_pending_only.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_linux_watch_devices.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_macos_watch_devices.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_manifest_merge_appends_driver.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_manifest_merge_locking.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_manifest_merge_no_manifest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_manifest_merge_validates_before_write.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_matcher_dataclasses.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_matcher_high_tier_exact.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_matcher_low_tier.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_matcher_medium_tier.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_matcher_recent_reject_demotes.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_mcp_inotify_reload_on_manifest_change.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_presets_index.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_queue_append_pending_atomic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_queue_hash_chain.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_queue_last_reject_lookup.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_queue_resolution_first_writer_wins.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_queue_truncation_recovery.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_queue_ttl_expiry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_socket_listener.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug/test_windows_watch_devices.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/conftest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_hotplug_pending_resource_emits_updated_on_file_poll.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_hotplug_pending_resource_emits_updated_on_nudge.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_hotplug_pending_resource_lists_pending.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_hotplug_pending_resource_registered.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_hotplug_pending_resource_subscribers_only_get_changes.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_server_subscribe_resource_v2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_session_registry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_skill_announce_high_tier_in_voice_mode.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_skill_medium_tier_surfaces_alternatives.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_skill_resolved_elsewhere_acknowledges.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_skill_text_has_hotplug_sections.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_skill_undo_after_window_warns_manifest_bound.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/hotplug_an/test_skill_undo_within_window_calls_reject.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_actuator_catalog_html.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_actuator_pip_install.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_arm_pick_depth_filtered.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_dashboard_server.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_doctor_hardware_mode.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_execute_capability_dry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_execute_task_dry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_init_calibrate_extrinsic_dry_run.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_init_default_flow.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_init_no_claude_mcp_add.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_invoke_against_real_gateway.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_mcp_discover_streaming.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_mcp_server_backfill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_mcp_server_lifecycle.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_pick_red_lego_dry_run.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_rpn_roundtrip.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/integration/test_sphp_replug_high_tier_end_to_end.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/manual/sp1_skill_smoke.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/manual/span_smoke.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/manual/sphp_smoke.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/conftest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/manual_smoke_bob.md +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_cli_submit_to_rrf.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_dataset_loader.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_evidence.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_execute_judge.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_execute_trial.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_manual_gate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_dry_run.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_init.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_kit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_replay.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_run_execute.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_run_execute_signs.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_run_full.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_run_probe.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_submit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_verify.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_verify_production.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_verify_production_rrf.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_mcp_verify_registry_attested.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_probe_runner.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_probe_stacks.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_rrf_failure_paths.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_rrf_fetch_pubkey.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_rrf_poll_status.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_rrf_submit_score.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_schema.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_score.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_scorer_a1.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_scorer_a2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_scorer_dispatch.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_scorer_o2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_scorer_o3.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_server_registration.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_units_a1.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_units_a2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_units_base.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_units_o1.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_units_o2.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/spatial_eval/test_units_o3.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_actuator_init.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_actuator_publish.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_actuator_search.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_apikey_request.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_art11.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_audit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_autodetect.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_autodetect_rcan_version.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_autodetect_tier_a.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_autodetect_v4l2_filter.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_benchmarks.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_bus_scan.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_calibrate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_claude_md.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_cli.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_cli_incidents.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_cli_install_gateway.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_cli_pose_teach.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_compliance_scaffold.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_compliance_status.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_context.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_discovery.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_doctor.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_doctor_gateway_claim.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_eu_register.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_examples.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_fria.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_ifu.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_incidents.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_init.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_install_backend.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_install_desktop.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_install_gateway_integration.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_install_skill_extended.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_invoke.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_kinematics.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_mcp_audit_integration.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_parser.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_preset_microduck.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_publisher_key.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_register.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_registry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_render.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_revoke_key.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_rotate_key.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_rrf_packages.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_ruri.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_schema.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_signing.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_skill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_skill_content.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_submit.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_trial.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_validate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_verify_tier.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_version.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/test_voice_setup.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/__init__.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/conftest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_arm_pick_dispatch.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_arm_place_dispatch.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_auto_calibrate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_autodetect_cameras.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_autodetect_probe.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_backend_registry.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_calibrate_extrinsic_plan_sweep.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_calibrate_extrinsic_solve.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_calibrate_extrinsic_wrist_wiggle.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_calibrate_intrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_cli_calibrate_hand_eye.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_dashboard_context_wiring.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_dashboard_events.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_detector_depth_bowl.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_detectors_hsv.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_discover_tool.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_discovery_payload.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_doctor_extrinsic_source.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_estop_clear.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_execute_capability_preconditions.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_execute_capability_readonly.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_extrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_capabilities.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_doctor.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_motion.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_perception.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_registration.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_safety.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_feetech_depthai_servo.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_gripper_silhouette.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_gripper_silhouette_motion_delta.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_hardware_extra_declared.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_hsv_depth_filter.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_auto_calibrate_ready.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_calibrate_extrinsic_hookup.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_cameras_merge.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_motion_extras_hint.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_no_stale_mcp_hint.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_non_interactive.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_calibrate_sign.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_calibrate_zero.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_install_mcp.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_install_skill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_register.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_teach_poses.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_init_phase_write_manifest.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_install_mcp_claude_code.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_install_mcp_deprecated.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_invocation_log.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_invocation_log_backfill.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_invocation_record.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_kinematics_analyze_envelope.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_context_fanout.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_cwd_walk.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_doctor_summary.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_gate_matching.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_gateway_check.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_motion_through_gateway.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_preset_gates.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_prompts.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_resources.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_resources_invocations.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_stop_failures.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_tools_discover_progress.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_tools_estop.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_tools_execute_capability.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_tools_render.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_mcp_tools_validate.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_motion_verify_alive.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_phase_calibrate_extrinsic_skips.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_pick_best_count_and_negative_hints.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_planning_decompose.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_planning_prompt.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_poses.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_preconditions.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_preset_cameras_migration.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_preset_so_arm101_v061.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_record_skill_tool.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_robot_spec.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_annex_iii_basis.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_cameras_xref.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_capability_contracts.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_ik_provider.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_intrinsic.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_learned_skills.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_object_descriptors.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_poses.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_rcn_rmn_rhn.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_schema_workspace.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_trajectory.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_validate_warnings.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_vision_find_tool.py +0 -0
- {robot_md-2.0.1 → robot_md-2.2.0}/tests/unit/test_workspace_depth_bounds.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: robot-md
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: ROBOT.md — a single self-describing file so Claude can safely operate your robot.
|
|
5
5
|
Project-URL: Homepage, https://robotmd.dev
|
|
6
6
|
Project-URL: Repository, https://github.com/RobotRegistryFoundation/robot-md
|
|
@@ -29,7 +29,7 @@ Requires-Dist: python-frontmatter>=1.0
|
|
|
29
29
|
Requires-Dist: pyyaml>=6.0
|
|
30
30
|
Requires-Dist: rcan[crypto,pq]<4,>=3.3
|
|
31
31
|
Requires-Dist: rich>=13.0
|
|
32
|
-
Requires-Dist: robot-md-gateway>=0.5.
|
|
32
|
+
Requires-Dist: robot-md-gateway>=0.5.0a11
|
|
33
33
|
Requires-Dist: ruamel-yaml>=0.18
|
|
34
34
|
Requires-Dist: tomli>=2.0; python_version < '3.11'
|
|
35
35
|
Requires-Dist: typer<0.17,>=0.9
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "robot-md"
|
|
7
|
-
version = "2.0
|
|
7
|
+
version = "2.2.0"
|
|
8
8
|
description = "ROBOT.md — a single self-describing file so Claude can safely operate your robot."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -35,10 +35,10 @@ dependencies = [
|
|
|
35
35
|
"fastapi>=0.110",
|
|
36
36
|
"jinja2>=3.1",
|
|
37
37
|
"rcan[pq,crypto]>=3.3,<4",
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
"robot-md-gateway>=0.5.
|
|
38
|
+
# 0.5.0a11: the first PyPI release with robot-md-gateway#35 (stops get
|
|
39
|
+
# through, heartbeat watchdog) and #37 (systemd watchdog, READY=1), which
|
|
40
|
+
# install-gateway's unit (Type=notify) needs.
|
|
41
|
+
"robot-md-gateway>=0.5.0a11",
|
|
42
42
|
"websockets>=12",
|
|
43
43
|
"watchdog>=3.0",
|
|
44
44
|
"tomli>=2.0;python_version<'3.11'",
|
|
@@ -2203,7 +2203,7 @@ def actuator_publish_cmd(
|
|
|
2203
2203
|
if dry_run:
|
|
2204
2204
|
kp = load_or_mint_publisher_key(github_user)
|
|
2205
2205
|
if cached_rpn:
|
|
2206
|
-
body = _build_version_body(meta["version"], kp)
|
|
2206
|
+
body = _build_version_body(cached_rpn, meta["version"], kp)
|
|
2207
2207
|
url = f"{RRF_PACKAGES_BASE}/{cached_rpn}/versions"
|
|
2208
2208
|
typer.echo("=== Version-update POST ===")
|
|
2209
2209
|
typer.echo(f"URL: POST {url}")
|
|
@@ -2271,7 +2271,7 @@ def actuator_revoke_cmd(
|
|
|
2271
2271
|
github_user = _resolve_github_user_or_fail()
|
|
2272
2272
|
|
|
2273
2273
|
kp = load_or_mint_publisher_key(github_user)
|
|
2274
|
-
body = _build_revoke_body(reason, kp)
|
|
2274
|
+
body = _build_revoke_body(rpn, reason, kp)
|
|
2275
2275
|
try:
|
|
2276
2276
|
revoke_package(rpn, signed_body=body)
|
|
2277
2277
|
typer.echo(f"Revoked {rpn}: {reason}")
|
|
@@ -2280,38 +2280,70 @@ def actuator_revoke_cmd(
|
|
|
2280
2280
|
raise typer.Exit(FILE_ERROR) from None
|
|
2281
2281
|
|
|
2282
2282
|
|
|
2283
|
+
@actuator_app.command("transfer-accept")
|
|
2284
|
+
def actuator_transfer_accept_cmd(
|
|
2285
|
+
rpn: str = typer.Argument(..., help="The RPN you are taking over."),
|
|
2286
|
+
out: Path = typer.Option(
|
|
2287
|
+
...,
|
|
2288
|
+
"--out",
|
|
2289
|
+
help="Where to write your signed acceptance. Send this file to the current owner.",
|
|
2290
|
+
),
|
|
2291
|
+
github_user: str = typer.Option("", "--github-user"),
|
|
2292
|
+
) -> None:
|
|
2293
|
+
"""New owner, step 1 of a transfer: sign an acceptance with the key that will own it."""
|
|
2294
|
+
import json as _json
|
|
2295
|
+
|
|
2296
|
+
from robot_md.actuator import RPN_PATTERN, _build_transfer_accept
|
|
2297
|
+
from robot_md.publisher_key import load_or_mint_publisher_key
|
|
2298
|
+
|
|
2299
|
+
if not RPN_PATTERN.match(rpn):
|
|
2300
|
+
typer.secho(f"Malformed RPN: {rpn}", fg=typer.colors.RED, err=True)
|
|
2301
|
+
raise typer.Exit(FILE_ERROR)
|
|
2302
|
+
if not github_user:
|
|
2303
|
+
github_user = _resolve_github_user_or_fail()
|
|
2304
|
+
|
|
2305
|
+
kp = load_or_mint_publisher_key(github_user)
|
|
2306
|
+
out.write_text(_json.dumps(_build_transfer_accept(rpn, kp), indent=2) + "\n")
|
|
2307
|
+
typer.echo(
|
|
2308
|
+
f"Wrote {out}. It holds only public keys and a signature; "
|
|
2309
|
+
f"send it to the current owner of {rpn}."
|
|
2310
|
+
)
|
|
2311
|
+
|
|
2312
|
+
|
|
2283
2313
|
@actuator_app.command("transfer")
|
|
2284
2314
|
def actuator_transfer_cmd(
|
|
2285
2315
|
rpn: str = typer.Argument(..., help="The RPN to transfer."),
|
|
2286
|
-
|
|
2316
|
+
accept: Path = typer.Option(
|
|
2287
2317
|
...,
|
|
2288
|
-
"--
|
|
2289
|
-
help="
|
|
2318
|
+
"--accept",
|
|
2319
|
+
help="The new owner's signed acceptance (from `robot-md actuator transfer-accept`).",
|
|
2290
2320
|
),
|
|
2291
2321
|
github_user: str = typer.Option("", "--github-user"),
|
|
2292
2322
|
) -> None:
|
|
2293
|
-
"""
|
|
2294
|
-
from robot_md.actuator import
|
|
2295
|
-
RPN_PATTERN,
|
|
2296
|
-
_build_transfer_body,
|
|
2297
|
-
_read_pub_keys_from_pem,
|
|
2298
|
-
)
|
|
2323
|
+
"""Current owner, step 2 of a transfer: co-sign and send it. Owner-only."""
|
|
2324
|
+
from robot_md.actuator import RPN_PATTERN, _build_transfer_body, _read_transfer_accept
|
|
2299
2325
|
from robot_md.publisher_key import load_or_mint_publisher_key
|
|
2300
2326
|
from robot_md.rrf_packages import PackageNotFoundError, transfer_package
|
|
2301
2327
|
|
|
2302
2328
|
if not RPN_PATTERN.match(rpn):
|
|
2303
2329
|
typer.secho(f"Malformed RPN: {rpn}", fg=typer.colors.RED, err=True)
|
|
2304
2330
|
raise typer.Exit(FILE_ERROR)
|
|
2331
|
+
try:
|
|
2332
|
+
by_new = _read_transfer_accept(accept, rpn)
|
|
2333
|
+
except (OSError, ValueError) as e:
|
|
2334
|
+
typer.secho(f"Cannot use {accept}: {e}", fg=typer.colors.RED, err=True)
|
|
2335
|
+
raise typer.Exit(FILE_ERROR) from e
|
|
2305
2336
|
|
|
2306
2337
|
if not github_user:
|
|
2307
2338
|
github_user = _resolve_github_user_or_fail()
|
|
2308
2339
|
|
|
2309
|
-
new_pq_pub, new_pq_kid, new_ed_pub = _read_pub_keys_from_pem(to_key)
|
|
2310
2340
|
kp = load_or_mint_publisher_key(github_user)
|
|
2311
|
-
|
|
2341
|
+
by_old = _build_transfer_body(
|
|
2342
|
+
rpn, by_new["new_pq_signing_pub"], by_new["new_pq_kid"], by_new["new_ed25519_pub"], kp
|
|
2343
|
+
)
|
|
2312
2344
|
try:
|
|
2313
|
-
transfer_package(rpn, signed_body=
|
|
2314
|
-
typer.echo(f"Transferred {rpn} to publisher {new_pq_kid}")
|
|
2345
|
+
transfer_package(rpn, signed_body={"by_old_key": by_old, "by_new_key": by_new})
|
|
2346
|
+
typer.echo(f"Transferred {rpn} to publisher {by_new['new_pq_kid']}")
|
|
2315
2347
|
except PackageNotFoundError:
|
|
2316
2348
|
typer.secho(f"No package with RPN {rpn}", fg=typer.colors.RED, err=True)
|
|
2317
2349
|
raise typer.Exit(FILE_ERROR) from None
|
|
@@ -340,17 +340,28 @@ def _build_register_body(meta: dict, kp: KeyPair) -> dict:
|
|
|
340
340
|
return _sign(fields, kp)
|
|
341
341
|
|
|
342
342
|
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
# RRF binds every signed package body to its RPN and to one action, so a signature
|
|
344
|
+
# made for one package or one action cannot be replayed against another.
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
def
|
|
348
|
-
return _sign({"
|
|
347
|
+
def _build_version_body(rpn: str, version: str, kp: KeyPair) -> dict:
|
|
348
|
+
return _sign({"rpn": rpn, "action": "version", "version": version}, kp)
|
|
349
349
|
|
|
350
350
|
|
|
351
|
-
def
|
|
351
|
+
def _build_revoke_body(rpn: str, reason: str, kp: KeyPair) -> dict:
|
|
352
|
+
return _sign({"rpn": rpn, "action": "revoke", "reason": reason}, kp)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
def _build_transfer_body(
|
|
356
|
+
rpn: str, new_pq_pub: str, new_pq_kid: str, new_ed_pub: str, kp: KeyPair
|
|
357
|
+
) -> dict:
|
|
358
|
+
"""One half of a transfer. RRF needs two: the current owner signs (`by_old_key`)
|
|
359
|
+
and the new owner signs the same fields with the new key (`by_new_key`), which
|
|
360
|
+
proves they hold it."""
|
|
352
361
|
return _sign(
|
|
353
362
|
{
|
|
363
|
+
"rpn": rpn,
|
|
364
|
+
"action": "transfer",
|
|
354
365
|
"new_pq_signing_pub": new_pq_pub,
|
|
355
366
|
"new_pq_kid": new_pq_kid,
|
|
356
367
|
"new_ed25519_pub": new_ed_pub,
|
|
@@ -359,17 +370,31 @@ def _build_transfer_body(new_pq_pub: str, new_pq_kid: str, new_ed_pub: str, kp:
|
|
|
359
370
|
)
|
|
360
371
|
|
|
361
372
|
|
|
362
|
-
def
|
|
363
|
-
"""
|
|
373
|
+
def _build_transfer_accept(rpn: str, kp: KeyPair) -> dict:
|
|
374
|
+
"""The new owner's half of a transfer, signed with the key that will own the package."""
|
|
375
|
+
return _build_transfer_body(
|
|
376
|
+
rpn,
|
|
377
|
+
base64.b64encode(kp.pq_signing_pub).decode(),
|
|
378
|
+
kp.pq_kid,
|
|
379
|
+
base64.b64encode(kp.ed25519_pub).decode(),
|
|
380
|
+
kp,
|
|
381
|
+
)
|
|
364
382
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
383
|
+
|
|
384
|
+
_TRANSFER_FIELDS = ("rpn", "action", "new_pq_signing_pub", "new_pq_kid", "new_ed25519_pub")
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
def _read_transfer_accept(path: Path, rpn: str) -> dict:
|
|
388
|
+
"""Load and sanity-check the new owner's signed acceptance."""
|
|
389
|
+
env = json.loads(path.read_text())
|
|
390
|
+
missing = [k for k in _TRANSFER_FIELDS if not env.get(k)]
|
|
391
|
+
if missing or "sig" not in env:
|
|
392
|
+
raise ValueError(
|
|
393
|
+
f"{path} is not a transfer acceptance (missing {', '.join(missing) or 'sig'})"
|
|
394
|
+
)
|
|
395
|
+
if env["rpn"] != rpn or env["action"] != "transfer":
|
|
396
|
+
raise ValueError(f"{path} accepts {env['rpn']}, not {rpn}")
|
|
397
|
+
return env
|
|
373
398
|
|
|
374
399
|
|
|
375
400
|
def actuator_publish_first_time(pkg_dir: Path, *, github_user: str) -> dict:
|
|
@@ -392,5 +417,5 @@ def actuator_publish_version_update(pkg_dir: Path, *, github_user: str) -> dict:
|
|
|
392
417
|
"Run `robot-md actuator publish` (without --version-update flag) first."
|
|
393
418
|
)
|
|
394
419
|
kp = load_or_mint_publisher_key(github_user)
|
|
395
|
-
body = _build_version_body(meta["version"], kp)
|
|
420
|
+
body = _build_version_body(rpn, meta["version"], kp)
|
|
396
421
|
return append_version(rpn, signed_body=body)
|
|
@@ -64,6 +64,28 @@ def merge(proposal: BindProposal, *, manifest_path: Path) -> MergeOutcome:
|
|
|
64
64
|
if "port" in proposal.inferred_fields:
|
|
65
65
|
new_driver["port"] = proposal.inferred_fields["port"]
|
|
66
66
|
|
|
67
|
+
# A driver with this id may already be there: a repeated bind, or
|
|
68
|
+
# a bind whose queue resolution never landed. Leave the file
|
|
69
|
+
# byte-identical when it matches; refuse when it does not.
|
|
70
|
+
existing = next(
|
|
71
|
+
(d for d in drivers if isinstance(d, dict) and d.get("id") == new_driver["id"]),
|
|
72
|
+
None,
|
|
73
|
+
)
|
|
74
|
+
if existing is not None:
|
|
75
|
+
if all(existing.get(k) == v for k, v in new_driver.items()):
|
|
76
|
+
return MergeOutcome(
|
|
77
|
+
success=True,
|
|
78
|
+
rrn=proposal.rrn,
|
|
79
|
+
driver_id=proposal.driver_id_suggestion,
|
|
80
|
+
reason="already_present",
|
|
81
|
+
)
|
|
82
|
+
return MergeOutcome(
|
|
83
|
+
success=False,
|
|
84
|
+
rrn=proposal.rrn,
|
|
85
|
+
driver_id=None,
|
|
86
|
+
reason=f"driver_id_conflict: {new_driver['id']!r} already declared differently",
|
|
87
|
+
)
|
|
88
|
+
|
|
67
89
|
drivers.append(new_driver)
|
|
68
90
|
|
|
69
91
|
new_frontmatter = yaml.safe_dump(data, sort_keys=False).rstrip()
|
|
@@ -34,6 +34,10 @@ _RULES: list = [
|
|
|
34
34
|
PackageMatch(
|
|
35
35
|
package="so-arm101-actuator",
|
|
36
36
|
reason="Feetech servo bus detected — the SO-ARM101 driver is the supported backend.",
|
|
37
|
+
# 0.3.0 declares the arm's stop (so-arm101-actuator#8); on 0.2.2
|
|
38
|
+
# `arm.estop` does not exist and nothing can stop the arm through
|
|
39
|
+
# the gateway.
|
|
40
|
+
min_version="0.3.0",
|
|
37
41
|
rpn="RPN-000000000002",
|
|
38
42
|
),
|
|
39
43
|
),
|
|
@@ -37,6 +37,11 @@ MANIFEST_PATH = f"{CONFIG_DIR}/ROBOT.md"
|
|
|
37
37
|
#: has it (0.5.0a9, and robot-md-gateway#35): an answer only the gateway gives.
|
|
38
38
|
HEALTH_URL = "http://127.0.0.1:8080/v1/audit/last"
|
|
39
39
|
|
|
40
|
+
#: The gateway this installer installs. 0.5.0a11 is the first release on PyPI
|
|
41
|
+
#: that sends READY=1 and WATCHDOG=1 (robot-md-gateway#37), which the unit's
|
|
42
|
+
#: Type=notify needs: an older gateway under it fails to start after 90 s.
|
|
43
|
+
GATEWAY_REQUIREMENT = "robot-md-gateway>=0.5.0a11"
|
|
44
|
+
|
|
40
45
|
#: Shortest token `install-gateway` accepts in bearers.yaml.
|
|
41
46
|
#: `secrets.token_urlsafe(32)`, which it generates, gives 43 characters.
|
|
42
47
|
MIN_TOKEN_CHARS = 32
|
|
@@ -57,6 +62,19 @@ Wants=network-online.target
|
|
|
57
62
|
AssertPathExists={BEARERS_PATH}
|
|
58
63
|
|
|
59
64
|
[Service]
|
|
65
|
+
# The gateway's safety watchdog tells systemd it is ticking: READY=1 after its
|
|
66
|
+
# first tick, then WATCHDOG=1 every quarter of WatchdogSec. If it dies or stops
|
|
67
|
+
# ticking, systemd stops the gateway and Restart=on-failure starts it again,
|
|
68
|
+
# held. Needs robot-md-gateway 0.5.0a11 or later (robot-md-gateway#37).
|
|
69
|
+
Type=notify
|
|
70
|
+
NotifyAccess=main
|
|
71
|
+
WatchdogSec=5s
|
|
72
|
+
# Where the gateway keeps its clean-shutdown marker ($STATE_DIRECTORY, here
|
|
73
|
+
# /var/lib/robot-md-gateway, writable under ProtectSystem=strict). A start that
|
|
74
|
+
# finds no marker (after a watchdog kill, a crash or a stop while armed) sends
|
|
75
|
+
# every declared stop before it serves anything. A clean stop while held leaves
|
|
76
|
+
# one, so the next start leaves the hardware alone.
|
|
77
|
+
StateDirectory=robot-md-gateway
|
|
60
78
|
User=robot-md-gateway
|
|
61
79
|
Group=robot-md-gateway
|
|
62
80
|
# On a stock Raspberry Pi OS the serial ports are root:dialout 0660, and nothing
|
|
@@ -567,15 +585,12 @@ next steps:
|
|
|
567
585
|
2. read the tokens with: sudo cat {BEARERS_PATH}
|
|
568
586
|
3. give the actuate token to the agent's client, and the supervisor token to
|
|
569
587
|
the supervising person's device: never the agent's host, never the robot.
|
|
570
|
-
4.
|
|
571
|
-
|
|
572
|
-
/v1/safety/heartbeat at least every 3 s.
|
|
588
|
+
4. the gateway starts held and moves nothing until 4 and 5 are done: from
|
|
589
|
+
that device, POST /v1/safety/heartbeat at least every 3 s.
|
|
573
590
|
5. then, as the operator, POST /v1/safety/clear with the commission token,
|
|
574
591
|
as a signed ESTOP_CLEAR body where the gateway requires signatures (a
|
|
575
592
|
gateway.env install-gateway writes does). robot-md-gateway's own
|
|
576
|
-
`heartbeat` and `clear` commands send both
|
|
577
|
-
merged yet).
|
|
578
|
-
On 0.5.0a9 and earlier, skip 4 and 5: neither route exists."""
|
|
593
|
+
`heartbeat` and `clear` commands send both."""
|
|
579
594
|
|
|
580
595
|
|
|
581
596
|
def _disable_unit_if_enabled(sudo: list[str]) -> None:
|
|
@@ -658,7 +673,7 @@ def install_gateway(
|
|
|
658
673
|
[*sudo, "chown", "root", CONFIG_DIR],
|
|
659
674
|
[*sudo, "chmod", "go-w", CONFIG_DIR],
|
|
660
675
|
[*sudo, "python3", "-I", "-m", "venv", "/opt/robot-md-gateway/.venv"],
|
|
661
|
-
[*sudo, "/opt/robot-md-gateway/.venv/bin/pip", "install",
|
|
676
|
+
[*sudo, "/opt/robot-md-gateway/.venv/bin/pip", "install", GATEWAY_REQUIREMENT],
|
|
662
677
|
]
|
|
663
678
|
for cmd in steps:
|
|
664
679
|
r = subprocess.run(cmd)
|
|
@@ -7,27 +7,17 @@ lives in resource_subscribers.py + the FastMCP lifespan hook in server.py.
|
|
|
7
7
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
from robot_md.hotplug.queue import EventQueue
|
|
10
|
+
from robot_md.hotplug import queue as _queue_mod
|
|
11
|
+
from robot_md.hotplug.queue import EventQueue, _safe_iter_records
|
|
13
12
|
|
|
14
13
|
URI = "robot-md://hotplug/pending"
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
def build_pending_payload(*, _queue: EventQueue | None = None) -> dict:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
records: list[dict] = []
|
|
23
|
-
for line in q.path.read_text().splitlines():
|
|
24
|
-
line = line.strip()
|
|
25
|
-
if not line:
|
|
26
|
-
continue
|
|
27
|
-
try:
|
|
28
|
-
records.append(json.loads(line))
|
|
29
|
-
except Exception:
|
|
30
|
-
continue
|
|
17
|
+
# Read the file directly: constructing an EventQueue creates the file
|
|
18
|
+
# when missing and appends a daemon_alert on malformed lines.
|
|
19
|
+
path = _queue.path if _queue is not None else _queue_mod._DEFAULT_PATH
|
|
20
|
+
records, _ = _safe_iter_records(path)
|
|
31
21
|
|
|
32
22
|
resolved_refs = {r["ref"] for r in records if r.get("kind") == "resolved" and r.get("ref")}
|
|
33
23
|
|
|
@@ -647,15 +647,15 @@ def build_server(ctx: McpContext):
|
|
|
647
647
|
functools.partial(submit_to_rrf_tool, ctx, run_dir=run_dir)
|
|
648
648
|
)
|
|
649
649
|
|
|
650
|
-
#
|
|
651
|
-
#
|
|
652
|
-
#
|
|
650
|
+
# Read-only: it reads ~/.robot-md/hotplug-events.jsonl directly and never
|
|
651
|
+
# opens an EventQueue, so a missing queue is not created and malformed
|
|
652
|
+
# lines are counted in the reply, not appended to the file as an alert.
|
|
653
653
|
@server.tool(
|
|
654
654
|
**_tool_meta(
|
|
655
655
|
"Review pending hot-plug events",
|
|
656
|
-
read_only=
|
|
656
|
+
read_only=True,
|
|
657
657
|
destructive=False,
|
|
658
|
-
idempotent=
|
|
658
|
+
idempotent=True,
|
|
659
659
|
open_world=False,
|
|
660
660
|
)
|
|
661
661
|
)
|
|
@@ -665,15 +665,16 @@ def build_server(ctx: McpContext):
|
|
|
665
665
|
|
|
666
666
|
return hotplug_review_tool()
|
|
667
667
|
|
|
668
|
-
# Destructive: bind rewrites ROBOT.md frontmatter with yaml.safe_dump.
|
|
669
|
-
#
|
|
670
|
-
#
|
|
668
|
+
# Destructive: bind rewrites ROBOT.md frontmatter with yaml.safe_dump.
|
|
669
|
+
# Idempotent: a repeated call on a resolved event returns already_resolved
|
|
670
|
+
# before any write, and a bind whose driver is already declared leaves
|
|
671
|
+
# ROBOT.md byte-identical, so repeating a call changes nothing.
|
|
671
672
|
@server.tool(
|
|
672
673
|
**_tool_meta(
|
|
673
674
|
"Bind or reject a hot-plug event",
|
|
674
675
|
read_only=False,
|
|
675
676
|
destructive=True,
|
|
676
|
-
idempotent=
|
|
677
|
+
idempotent=True,
|
|
677
678
|
open_world=False,
|
|
678
679
|
)
|
|
679
680
|
)
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
import json
|
|
6
5
|
from pathlib import Path
|
|
7
6
|
|
|
8
7
|
from robot_md.hotplug.manifest import merge as manifest_merge
|
|
9
8
|
from robot_md.hotplug.matcher import BindProposal
|
|
10
|
-
from robot_md.hotplug.queue import AlreadyResolvedError, EventQueue
|
|
9
|
+
from robot_md.hotplug.queue import AlreadyResolvedError, EventQueue, _safe_iter_records
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
def hotplug_confirm_tool(
|
|
@@ -25,21 +24,24 @@ def hotplug_confirm_tool(
|
|
|
25
24
|
q = _queue or EventQueue()
|
|
26
25
|
manifest_path = _manifest_path or Path.cwd() / "ROBOT.md"
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
try:
|
|
34
|
-
r = json.loads(line)
|
|
35
|
-
except Exception:
|
|
36
|
-
continue
|
|
37
|
-
if r.get("kind") == "pending" and r.get("id") == event_id:
|
|
38
|
-
target = r
|
|
39
|
-
break
|
|
27
|
+
records, _ = _safe_iter_records(q.path)
|
|
28
|
+
target = next(
|
|
29
|
+
(r for r in records if r.get("kind") == "pending" and r.get("id") == event_id),
|
|
30
|
+
None,
|
|
31
|
+
)
|
|
40
32
|
if target is None:
|
|
41
33
|
return {"ok": False, "error": f"event {event_id!r} not found"}
|
|
42
34
|
|
|
35
|
+
# Check before any write. A repeated bind used to merge the driver into
|
|
36
|
+
# ROBOT.md a second time and only then learn from the queue that the
|
|
37
|
+
# event was already resolved.
|
|
38
|
+
resolved = next(
|
|
39
|
+
(r for r in records if r.get("kind") == "resolved" and r.get("ref") == event_id),
|
|
40
|
+
None,
|
|
41
|
+
)
|
|
42
|
+
if resolved is not None:
|
|
43
|
+
return {"ok": False, "error": "already_resolved", "by": resolved.get("by") or "unknown"}
|
|
44
|
+
|
|
43
45
|
if decision == "reject":
|
|
44
46
|
try:
|
|
45
47
|
q.append_resolution(ref_id=event_id, resolution="reject", by=_by, outcome=None)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""MCP tool: hotplug_review — list pending (un-resolved) hot-plug events.
|
|
2
|
+
|
|
3
|
+
Read-only: it never constructs an EventQueue, whose constructor creates the
|
|
4
|
+
queue file when missing and appends a daemon_alert on malformed lines. A
|
|
5
|
+
missing queue reads as empty; malformed lines are counted, not recorded.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
from robot_md.hotplug import queue as _queue_mod
|
|
13
|
+
from robot_md.hotplug.queue import EventQueue, _safe_iter_records
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def hotplug_review_tool(_queue: EventQueue | None = None, _path: Path | None = None) -> dict:
|
|
17
|
+
path = _queue.path if _queue is not None else (_path or _queue_mod._DEFAULT_PATH)
|
|
18
|
+
records, dropped = _safe_iter_records(path)
|
|
19
|
+
pending_ids = {r["id"] for r in records if r.get("kind") == "pending"}
|
|
20
|
+
resolved_refs = {r["ref"] for r in records if r.get("kind") == "resolved" and r.get("ref")}
|
|
21
|
+
pending_unresolved = pending_ids - resolved_refs
|
|
22
|
+
|
|
23
|
+
out = []
|
|
24
|
+
for r in records:
|
|
25
|
+
if r.get("kind") == "pending" and r["id"] in pending_unresolved:
|
|
26
|
+
out.append(
|
|
27
|
+
{
|
|
28
|
+
"event_id": r["id"],
|
|
29
|
+
"tier": r["decision"]["tier"],
|
|
30
|
+
"device": r["event"],
|
|
31
|
+
"decision": r["decision"],
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
result: dict = {"pending": out}
|
|
35
|
+
if dropped:
|
|
36
|
+
result["malformed_lines"] = dropped
|
|
37
|
+
return result
|
|
@@ -57,6 +57,24 @@ def load_apikey(rrn: str) -> str | None:
|
|
|
57
57
|
return p.read_text().strip() or None
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
def robot_page_url(rrn: str, endpoint: str) -> str:
|
|
61
|
+
"""The human-readable page for `rrn` on the registry that `endpoint` belongs to."""
|
|
62
|
+
base = endpoint.split("/v2/", 1)[0].rstrip("/") if "/v2/" in endpoint else "https://robotregistryfoundation.org"
|
|
63
|
+
return f"{base}/r/{rrn}"
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def registered_summary(rrn: str, endpoint: str) -> str:
|
|
67
|
+
"""What `robot-md register` prints after a successful mint."""
|
|
68
|
+
key_path = _keystore_dir() / f"{rrn}.signing.json"
|
|
69
|
+
return (
|
|
70
|
+
f"\n✓ registered on RRF\n"
|
|
71
|
+
f" RRN: {rrn} (written to ROBOT.md)\n"
|
|
72
|
+
f" Robot page: {robot_page_url(rrn, endpoint)}\n"
|
|
73
|
+
f" Private key: {key_path}\n"
|
|
74
|
+
f" Back it up. You need it to rotate keys, transfer or remove this robot."
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
|
|
60
78
|
def delete_from_rrf(endpoint: str, rrn: str, api_key: str, *, timeout: float = 15.0) -> None:
|
|
61
79
|
"""DELETE `endpoint/rrn` with `Authorization: Bearer <api_key>`.
|
|
62
80
|
|
|
@@ -722,10 +740,5 @@ def cli_register(
|
|
|
722
740
|
print(f" Exported keypair + apikey to {export_dir}", file=sys.stderr)
|
|
723
741
|
|
|
724
742
|
# 6. Friendly output.
|
|
725
|
-
print(
|
|
726
|
-
f"\n✓ registered on RRF\n RRN: {result.rrn}\n Record URL: {result.record_url or '—'}",
|
|
727
|
-
file=sys.stderr,
|
|
728
|
-
)
|
|
729
|
-
public_url = f"https://rcan.dev/r/{result.rrn}"
|
|
730
|
-
print(f"Public resolver: {public_url}", file=sys.stderr)
|
|
743
|
+
print(registered_summary(result.rrn, endpoint), file=sys.stderr)
|
|
731
744
|
return 0
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"""A repeated hotplug_confirm bind must not write ROBOT.md again.
|
|
2
|
+
|
|
3
|
+
Before the fix, the second bind merged the driver a second time and only
|
|
4
|
+
then learned from the queue that the event was already resolved.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
import yaml
|
|
12
|
+
|
|
13
|
+
from robot_md.hotplug.event import DeviceEvent
|
|
14
|
+
from robot_md.hotplug.manifest import merge
|
|
15
|
+
from robot_md.hotplug.matcher import BindProposal, Decision
|
|
16
|
+
from robot_md.hotplug.queue import EventQueue
|
|
17
|
+
from robot_md.mcp.tools.hotplug_confirm import hotplug_confirm_tool
|
|
18
|
+
|
|
19
|
+
_MANIFEST = """---
|
|
20
|
+
id: RRN-test
|
|
21
|
+
metadata: {manufacturer: T, author: a@b}
|
|
22
|
+
drivers: []
|
|
23
|
+
---
|
|
24
|
+
# body
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _proposal(backend: str = "lerobot") -> BindProposal:
|
|
29
|
+
return BindProposal(
|
|
30
|
+
rrn="RRN-test",
|
|
31
|
+
driver_id_suggestion="arm_servos",
|
|
32
|
+
backend_name=backend,
|
|
33
|
+
preset_name="so_arm101",
|
|
34
|
+
capability_preview=[],
|
|
35
|
+
inferred_fields={"port": "/dev/ttyACM0", "transport": "feetech"},
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _pending(q: EventQueue):
|
|
40
|
+
decision = Decision(
|
|
41
|
+
tier="MEDIUM", unambiguous=False, bind_proposal=_proposal(), alternatives=[], reasons=[]
|
|
42
|
+
)
|
|
43
|
+
return q.append_pending(
|
|
44
|
+
DeviceEvent(
|
|
45
|
+
kind="tty_added",
|
|
46
|
+
vid="1a86",
|
|
47
|
+
pid="7523",
|
|
48
|
+
serial="AB12",
|
|
49
|
+
path="/dev/ttyACM0",
|
|
50
|
+
transport="feetech",
|
|
51
|
+
raw_metadata={},
|
|
52
|
+
detected_at="2026-04-27T19:30:11Z",
|
|
53
|
+
),
|
|
54
|
+
decision,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def _driver_ids(manifest: Path) -> list[str]:
|
|
59
|
+
front = manifest.read_text().split("---\n")[1]
|
|
60
|
+
return [d["id"] for d in yaml.safe_load(front)["drivers"]]
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _bind(q: EventQueue, manifest: Path, event_id: str) -> dict:
|
|
64
|
+
return hotplug_confirm_tool(
|
|
65
|
+
event_id=event_id, decision="bind", _queue=q, _manifest_path=manifest, _by="claude"
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def test_second_bind_leaves_manifest_byte_identical(tmp_path: Path) -> None:
|
|
70
|
+
manifest = tmp_path / "ROBOT.md"
|
|
71
|
+
manifest.write_text(_MANIFEST)
|
|
72
|
+
q = EventQueue(path=tmp_path / "q.jsonl")
|
|
73
|
+
pending = _pending(q)
|
|
74
|
+
|
|
75
|
+
first = _bind(q, manifest, pending.id)
|
|
76
|
+
assert first == {"ok": True, "driver_id": "arm_servos"}
|
|
77
|
+
after_first = manifest.read_bytes()
|
|
78
|
+
queue_after_first = q.path.read_bytes()
|
|
79
|
+
|
|
80
|
+
second = _bind(q, manifest, pending.id)
|
|
81
|
+
assert second == {"ok": False, "error": "already_resolved", "by": "claude"}
|
|
82
|
+
assert manifest.read_bytes() == after_first
|
|
83
|
+
assert q.path.read_bytes() == queue_after_first
|
|
84
|
+
assert _driver_ids(manifest) == ["arm_servos"]
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def test_bind_after_lost_resolution_does_not_duplicate_driver(tmp_path: Path) -> None:
|
|
88
|
+
"""The merge landed but the resolution did not: a retry must not re-add."""
|
|
89
|
+
manifest = tmp_path / "ROBOT.md"
|
|
90
|
+
manifest.write_text(_MANIFEST)
|
|
91
|
+
q = EventQueue(path=tmp_path / "q.jsonl")
|
|
92
|
+
pending = _pending(q)
|
|
93
|
+
assert merge(_proposal(), manifest_path=manifest).success
|
|
94
|
+
before = manifest.read_bytes()
|
|
95
|
+
|
|
96
|
+
out = _bind(q, manifest, pending.id)
|
|
97
|
+
assert out == {"ok": True, "driver_id": "arm_servos"}
|
|
98
|
+
assert manifest.read_bytes() == before
|
|
99
|
+
assert _driver_ids(manifest) == ["arm_servos"]
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def test_merge_refuses_same_id_with_different_driver(tmp_path: Path) -> None:
|
|
103
|
+
manifest = tmp_path / "ROBOT.md"
|
|
104
|
+
manifest.write_text(_MANIFEST)
|
|
105
|
+
assert merge(_proposal(), manifest_path=manifest).success
|
|
106
|
+
before = manifest.read_bytes()
|
|
107
|
+
|
|
108
|
+
out = merge(_proposal(backend="other"), manifest_path=manifest)
|
|
109
|
+
assert out.success is False
|
|
110
|
+
assert out.reason.startswith("driver_id_conflict")
|
|
111
|
+
assert manifest.read_bytes() == before
|