refactor: extract task environments into separate embodichain_tasks package#365
Draft
yuecideng wants to merge 2 commits into
Draft
refactor: extract task environments into separate embodichain_tasks package#365yuecideng wants to merge 2 commits into
yuecideng wants to merge 2 commits into
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
…ackage - Create embodichain_tasks/ as a separate pip-installable package - Migrate all task envs from embodichain/lab/gym/envs/tasks/ to embodichain_tasks/embodichain_tasks/ - Add entry_points-based task discovery (embodichain.tasks group) - Add init hooks mechanism (embodichain.init group) for third-party manager modules, asset resolvers, etc. - Add register_manager_modules() / get_manager_modules() to gym_utils - Update run_env.py to auto-discover tasks via entry_points - Add deprecation shim in tasks/__init__.py for backward compatibility - All existing env IDs, config formats, and APIs unchanged Co-Authored-By: Claude <noreply@anthropic.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.
Description
This PR extracts all task environments from the core
embodichainpackage into a new separateembodichain_taskspackage, following the IsaacLab architecture pattern.Key changes
embodichain_tasks/: All 15 task environments migrated fromembodichain/lab/gym/envs/tasks/toembodichain_tasks/embodichain_tasks/discover_task_packages()usesimportlib.metadata.entry_points(group="embodichain.tasks")for auto-discoveryexecute_init_hooks()viaembodichain.initentry points for third-party packages to register custom manager modules, asset resolvers, etc.run_env.pynow auto-discovers all installed task packages before creating environments@register_envAPI unchanged, JSON/YAML config format unchanged,gym.make()workflow unchangedembodichain.lab.gym.envs.tasksre-exports from new package with deprecation warningDesign spec
See
docs/superpowers/specs/2026-07-07-task-env-refactor-design.mdfor the full design.Type of change
Checklist
black .command to format the code base