Repository navigation
Feature & Refactor: Batch planning and views planner - #57
Merged
Merged
Conversation
Add grouped freshness, typed health signals, optional ROS previews and native-depth encoders. Drain daemon clients during graceful shutdown and cover ownership, release, and restart paths with regression tests.
Signed-off-by: 班扬 <xingjun.wxj@alibaba-inc.com>
- Stop tracking .qoder/ (Qoder agent scratch space: build artifacts, repo snapshots and vendored wheels, ~70MB) and ignore it going forward. Local files are retained. - Map the tooling-mislabeled "Cheney Zhang <chen.zhang@zilliz.com>" author, written by a commit skill that hardcoded --author, to the committer's real identity via .mailmap. Published history on main and the release branches is deliberately not rewritten. Signed-off-by: wangxingjun778 <wangxingjun778@163.com>
The 18 commits whose author field was overridden by the commit skill are now rewritten in history, so the display-layer alias is dead weight. Signed-off-by: wangxingjun778 <wangxingjun778@163.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features
hardware/skills/planning.py,runtime_planning.py) with bounded, supervised spawn workers (planning_worker.py) — onehw_skill_runcall can submit complete, task-equivalent candidates; the node ranks them lexicographically and only the selected plan passes the existing approval, permit, freshness and lease gates. New settings:hardware.skills_planning_{workers,max_candidates,max_jobs,timeout_s,max_bytes,cancel_grace_s,auto_variants}.PreparedPlanningSkill,PlanningAlternativesSkill,PlanConfirmationSkillkeep alternatives and final live confirmation inside the plugin.perceive.surveyskill: bounded, governed finite observation (skills/survey*.py,scene_observation.py,observability.py) with declared swept-volume clearance, support thresholds andObservationReportevidence; never commands the gripper.view_priors.py,view_prior_learning.py,storage/view_prior_store.py) learned only from filtered survey signals through the shared noise pipeline, stored as bounded DuckDB trials, scoped to node/workcell, re-validated live by the node — hints reorder proposals and never grant motion or trust.leapflow.hardware.view_planners(ring→RingViewPlanner); proposals are pure geometry.reach_envelope.pypublishes per-azimuth/yaw height bands intoarm.state/hw_skill_list, andmotion.sequencenow pre-checks reach at plan time; unreachable/out-of-workspace failures report the bindinglimit, reachablereachand limiting joint.TransportStatus.stop_effect(hold/output_off/device_latched/none) plusstop_verified;_piper_halt.pyholds reported joints under power and releases torque only through a governedTorqueReleasePolicy;robot_armhalt returns a fresh observation instead of a zero vector and refuses when a target is unknown; ROS2 topics must declarehalt_commands.hw_estopaudits both fields and warns to use the physical stop when unverified.leap hw serve --log-file PATH [--verbose]; append-only, size-rotated by the node itself (hardware.node_log_{file,level,max_mb,backups},init_node_logging).Enhancements
succeeded / repaired / refused / failed / skipped(engine/tools/tool_execution.result_tier), propagated to tool-result metadata,TurnUsageTrackercounters and plugin trust (plugin_stats.trust_verdict) — a correct refusal or self-repair no longer demotes a tool.hw_skill_runargument repair (skill_arguments.py): envelope fields are lifted out ofargsonly when the skill'sargs_schemadoes not declare them; newfailure_class: invalid_requestwith parameter-specific next steps.↺ self-repairand⊘ no effectfrom real failures; only failures stay red.grasp:infeasiblereports measured width, gripper opening, margin and cause instead of a bare refusal.hw_actuate/hw_batch_actuatecarry admissiondemotionsand the rules behind them.config_list/config_getreturn typedconfig_unknown_categoryfailures with a next step;guardrail_argument_scoped_tools(defaulthw_skill_run) makesDominationGuardcount distinct operations rather than raw repetition.opencv-python<5pinned in[vision]/[robot]; LeapSpace task YAMLs shipped via aleapspace.app_spacepackage-data glob.Refactors
motion.sequencedecomposed into_sequence_schema.py,_sequence_planner.py,_sequence_guards.py,_observation_gate.py,_grasp_planning.py; orchestration resolves one owner-captured snapshot.motion_geometry.py(governed commands and pure workers use the same geometry); body capsules/segment distance moved tobody_visibility.py._piper_link/_piper_motion/_piper_feedback/_piper_halt/_piper_envelope.skill_tools/skill_resultsrebuilt around typed failure classes and per-skill cards (batch_planning,reach,advisories).lhp/planning_requests.py, client/server/skill methods) — pure planning is cancellable, effectful runs never are.display_clock.py+install_render_guardreplace the 0.5 s refresh timer (refresh_interval=None).Fixes
hw_skill_runnested-envelope and missing-parameter refusals; config health misclassification of unknown categories.Docs
robot_armhalt description corrected.hw_estopreportsstop_effect/stop_verified;leap hw serve --log-fileusage.docs/plugins/third_party_plugin_development.md: planning extension points,PlanningSettings.auto_variants,ScenePort.grasps,relocate(commit=False).0.8.0.