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 self-assigned this 2026-04-02 18:45:14 +00:00
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#1403
No description provided.