Core Modules:
- asset_lock_manager.py - Asset synchronization
- asset_manager.py - Asset lifecycle management
- celery_tasks.py - Task definitions
- celery.py - Celery configuration
- container.py - DI container (already exists!)
- decorators.py - Cross-cutting concerns
- orchestrator.py - High-level coordination
- protocol_code_manager.py - Protocol management
- protocol_execution_service.py - Execution logic
- run_context.py - Execution context management
- scheduler.py - Task scheduling
- workcell_runtime.py - Runtime management
- workcell.py - Workcell abstraction
Dependency Analysis Required
Phase 0: Dependency Mapping
Refactoring Strategy
Phase 1: Foundation Layer
Start with most isolated modules
Phase 2: Core Services
Modules with minimal dependencies
Phase 3: Business Logic
Core domain services
Phase 4: Runtime & Execution
Complex orchestration modules
Phase 5: Orchestration
Highest-level coordination
Implementation Guidelines
Dependency Injection Patterns
Container Enhancement Strategy
Success Criteria
Technical Goals:
Quality Gates:
Risk Mitigation
Potential Issues:
Mitigation Strategies:
Create feature flags for gradual rollout
Comprehensive integration testing at each phase
Testing Strategy
Acceptance Criteria
Priority: High Labels: refactoring, architecture, dependency-injection, core
Next Steps:
Core Modules:
Dependency Analysis Required
Phase 0: Dependency Mapping
Refactoring Strategy
Phase 1: Foundation Layer
Start with most isolated modules
Phase 2: Core Services
Modules with minimal dependencies
Phase 3: Business Logic
Core domain services
Phase 4: Runtime & Execution
Complex orchestration modules
Phase 5: Orchestration
Highest-level coordination
Implementation Guidelines
Dependency Injection Patterns
Container Enhancement Strategy
Success Criteria
Technical Goals:
*the current testing suite is out of date and incomplete, for now pyright and ruff linting errors should be resolved as much as possible
Quality Gates:
Risk Mitigation
Potential Issues:
Mitigation Strategies:
Create feature flags for gradual rollout
Comprehensive integration testing at each phase
Testing Strategy
Acceptance Criteria
Priority: High Labels: refactoring, architecture, dependency-injection, core
Next Steps: