python/envctl_engine is organized by domain:
actions/: action execution, git/test/worktree action supportconfig/: local config loading, persistence, wizard supportdebug/: debug bundle, diagnostics, doctor helpersplanning/: planning discovery, planning menu, worktree planning, and plan-agent launch orchestrationruntime/: runtime facade, dispatch, lifecycle, startup support bridgesshared/: cross-domain primitives such as parsing, process/port helpers, toolingstartup/: startup/resume/bootstrap orchestrationstate/: run-state models, repository, runtime-map, state actionsrequirements/: dependency adapters and requirement orchestrationui/: dashboard, command loop, selector, terminal integrations
- New implementation code should import from the domain package path, not from the deprecated flat top-level shim modules.
- Public compatibility shims remain at the old flat paths while the migration is in progress.
envctl_engine.config,envctl_engine.planning, andenvctl_engine.stateare now package surfaces rather than flat modules.- Capability probes belong in
python/envctl_engine/ui/capabilities.py. - Interactive command parsing belongs in
python/envctl_engine/ui/command_parsing.py. - Reusable selector target resolution belongs in
python/envctl_engine/ui/selection_support.py. - Shared Textual list navigation belongs in
python/envctl_engine/ui/textual/list_controller.py. - Shared prompt-toolkit list execution belongs in
python/envctl_engine/ui/prompt_toolkit_list.py. - Plan-agent launch internals belong in
python/envctl_engine/planning/plan_agent/; keepplanning/plan_agent_launch_support.pyas the public compatibility facade for old public imports only. Internal code and tests must import private helpers from the owner modules underplanning/plan_agent/. - New shared helpers should be imported from their owning module, not redefined locally.
startup/*_support.pyandresume_restore_support.pyare the behavior owners for startup and resume internals.startup_orchestrator.pyandresume_orchestrator.pyshould compose those helpers and keep only compatibility wrappers or orchestration flow.engine_runtime.pyandengine_runtime_ui_bridge.pyshould stay thin bridges over the shared UI and runtime support modules.
- Old Python flat module paths must remain importable until the migration is complete.
- New code and tests should prefer the grouped layout.