Refactor: Add depth limit to recursive function in actor/compiler.py #1400

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

The _detect_subgraph_cycles function in src/cleveragents/actor/compiler.py is recursive, which 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 `_detect_subgraph_cycles` function in `src/cleveragents/actor/compiler.py` is recursive, which 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#1400
No description provided.