Logic Tunnels: Preventing Infinite Recursive Depth
Stopping agents from creating endless sub-tasks that never return to the main goal.
Steps
- Implement a hard recursion depth counter.
- Require progress reports at each sub-task level.
- Set maximum time-to-complete limits for nested loops.
- Flatten complex tasks into sequential steps.
- Enable human-in-the-loop for depth > 3.