Refactor: Relocate misplaced files from application/services #3867

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

Several files in the src/cleveragents/application/services directory have been identified as being misplaced. These files are not services in the traditional sense, but rather utilities, data loaders, or data models. Their presence in the application/services directory violates the "clear, single purpose per directory" rule.

Misplaced Files:

  • src/cleveragents/application/services/decomposition_clustering.py: This file contains a stateless class with static methods for clustering files. It should be moved to a utils or helpers module.
  • src/cleveragents/application/services/decomposition_graph.py: This file contains a class for computing graph algorithms. It should be moved to a utils or helpers module.
  • src/cleveragents/application/services/decomposition_models.py: This file contains only data models and should be moved to src/cleveragents/domain/models.
  • src/cleveragents/application/services/uko_loader.py: This file is a parser for TTL files and should be moved to the infrastructure layer, under a parsing or data_loading module.

Recommendation:

Relocate these files to more appropriate directories within the project structure. This will improve the organization of the codebase and make it easier to understand and maintain.


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

Several files in the `src/cleveragents/application/services` directory have been identified as being misplaced. These files are not services in the traditional sense, but rather utilities, data loaders, or data models. Their presence in the `application/services` directory violates the "clear, single purpose per directory" rule. **Misplaced Files:** * `src/cleveragents/application/services/decomposition_clustering.py`: This file contains a stateless class with static methods for clustering files. It should be moved to a `utils` or `helpers` module. * `src/cleveragents/application/services/decomposition_graph.py`: This file contains a class for computing graph algorithms. It should be moved to a `utils` or `helpers` module. * `src/cleveragents/application/services/decomposition_models.py`: This file contains only data models and should be moved to `src/cleveragents/domain/models`. * `src/cleveragents/application/services/uko_loader.py`: This file is a parser for TTL files and should be moved to the `infrastructure` layer, under a `parsing` or `data_loading` module. **Recommendation:** Relocate these files to more appropriate directories within the project structure. This will improve the organization of the codebase and make it easier to understand and maintain. --- **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#3867
No description provided.