Refactor: Reduce length of strategy_registry.py #3869

Open
opened 2026-04-06 07:03:01 +00:00 by freemo · 0 comments
Owner

The src/cleveragents/application/services/strategy_registry.py file has been identified as violating the 500-line limit guideline.

Issue:

The file is over 500 lines long, which makes it difficult to read, understand, and maintain. It contains a significant amount of logic for registration, configuration, validation, and discovery of strategies.

Recommendation:

Refactor the StrategyRegistry class into smaller, more focused components. For example, the configuration and validation logic could be extracted into separate helper classes or modules. This will reduce the size of the main registry file and improve its readability and maintainability.


Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: ca-architecture-guard

The `src/cleveragents/application/services/strategy_registry.py` file has been identified as violating the 500-line limit guideline. **Issue:** The file is over 500 lines long, which makes it difficult to read, understand, and maintain. It contains a significant amount of logic for registration, configuration, validation, and discovery of strategies. **Recommendation:** Refactor the `StrategyRegistry` class into smaller, more focused components. For example, the configuration and validation logic could be extracted into separate helper classes or modules. This will reduce the size of the main registry file and improve its readability and maintainability. --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: ca-architecture-guard
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#3869
No description provided.