Refactor: Add depth limit to recursive function in actor/schema.py #1403

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

The RouteDefinition.detect_cycles method in src/cleveragents/actor/schema.py is using a recursive DFS algorithm. This is fine, but it could be made more robust by adding a depth limit to prevent infinite recursion in case of a bug.

This should be updated to improve robustness.

The `RouteDefinition.detect_cycles` method in `src/cleveragents/actor/schema.py` is using a recursive DFS algorithm. This is fine, but it could be made more robust by adding a depth limit to prevent infinite recursion in case of a bug. This should be updated to improve robustness.
freemo added the
State
Unverified
label 2026-04-02 18:17:02 +00:00
freemo self-assigned this 2026-04-02 18:45:14 +00:00
freemo added the
Priority
Backlog
label 2026-04-02 19:29:13 +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#1403