Refactor: Simplify complex logic in actor/config.py #1395

Open
opened 2026-04-02 17:27:01 +00:00 by freemo · 0 comments
Owner

The logic for parsing v2 actor configs in src/cleveragents/actor/config.py is complex and deeply nested. The _extract_v2_actor and _extract_v2_options methods are hard to read and understand. This is a sign of technical debt and should be refactored to be more modular and easier to maintain.

The _restore_template_syntax function is also a bit of a hack. It's replacing placeholders with the original template syntax. This could be made more robust by using a proper template engine that supports this kind of transformation.

This file needs a lot of work. This should be refactored to be more modular and easier to maintain.

The logic for parsing v2 actor configs in `src/cleveragents/actor/config.py` is complex and deeply nested. The `_extract_v2_actor` and `_extract_v2_options` methods are hard to read and understand. This is a sign of technical debt and should be refactored to be more modular and easier to maintain. The `_restore_template_syntax` function is also a bit of a hack. It's replacing placeholders with the original template syntax. This could be made more robust by using a proper template engine that supports this kind of transformation. This file needs a lot of work. This should be refactored to be more modular and easier to maintain.
freemo added the
State
Unverified
label 2026-04-02 18:16:47 +00:00
freemo self-assigned this 2026-04-02 18:45:15 +00:00
freemo added the
Priority
Backlog
label 2026-04-02 19:29:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#1395