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 added the
State
Unverified
label 2026-04-02 18:17:00 +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#1400