Epic: Core Architecture Modernization & Concurrency Hardening
Labels: epic, architecture, tech-debt
Status: In Progress
📖 Context & Background
As the imednet-python-sdk scales to support multi-threaded orchestration tools (like Apache Airflow) and complex UI plugins (like Streamlit dashboards), our foundational architecture must be bulletproof.
Currently, the SDK suffers from a monolithic structure, legacy Mixin patterns, and critical concurrency hazards involving shared mutable state. This Epic tracks the comprehensive refactoring required to transition the SDK into a stateless, composition-based, multi-package workspace.
🎯 Epic Objectives
- Zero Data Leaks: Eradicate global state to make the SDK 100% thread-safe and async-safe.
- Strict Package Isolation: Decouple opinionated workflows and CLI logic from the lightweight API client.
- Forward Compatibility: Ensure Pydantic models gracefully handle unannounced upstream API additions.
- Developer Experience: Replace opaque Mixin inheritance with flat, explicit Composition.
🛤️ Execution Plan & Ticket Tracking
Note: Tickets are grouped by phase. A phase must be completed and merged before work begins on the next phase.
Phase 1: Critical Production Blockers 🚨
These issues pose a direct threat to runtime stability and data integrity. They must be resolved immediately.
Phase 2: Architectural Foundations 🧱
These tickets resolve deep architectural debts that block safe scaling. We must split the monolith before adding new plugins.
Phase 3: Maintainability & Developer Experience 🛠️
These issues affect the developers maintaining the SDK and the end-user IDE experience.
🛑 Definition of Done (DoD) for Epic
Epic: Core Architecture Modernization & Concurrency Hardening
Labels:
epic,architecture,tech-debtStatus: In Progress
📖 Context & Background
As the
imednet-python-sdkscales to support multi-threaded orchestration tools (like Apache Airflow) and complex UI plugins (like Streamlit dashboards), our foundational architecture must be bulletproof.Currently, the SDK suffers from a monolithic structure, legacy Mixin patterns, and critical concurrency hazards involving shared mutable state. This Epic tracks the comprehensive refactoring required to transition the SDK into a stateless, composition-based, multi-package workspace.
🎯 Epic Objectives
🛤️ Execution Plan & Ticket Tracking
Note: Tickets are grouped by phase. A phase must be completed and merged before work begins on the next phase.
Phase 1: Critical Production Blockers 🚨
These issues pose a direct threat to runtime stability and data integrity. They must be resolved immediately.
Phase 2: Architectural Foundations 🧱
These tickets resolve deep architectural debts that block safe scaling. We must split the monolith before adding new plugins.
Phase 3: Maintainability & Developer Experience 🛠️
These issues affect the developers maintaining the SDK and the end-user IDE experience.
🛑 Definition of Done (DoD) for Epic
packages/directory with isolatedpyproject.tomlfiles.pytestsuites for concurrency and state isolation pass with 100% reliability.v0.6.0) is cut containing these breaking structural changes, complete with a migration guide for existing users.