-
Notifications
You must be signed in to change notification settings - Fork 51
Add AutoGPT runaway task loop detection rule (CRE-2025-0171) #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add AutoGPT runaway task loop detection rule (CRE-2025-0171) #151
Conversation
Implements critical failure detection for AutoGPT autonomous agents that enter runaway task execution loops, causing resource exhaustion and system unresponsiveness. Addresses GitHub issue prequel-dev#129 bounty challenge requirements. Key features: - Detects infinite task retry cycles and recursive task generation - Monitors CPU, memory, and API quota exhaustion patterns - Critical severity (0) for immediate incident response - 4-stage sequence detection with 180s window - Comprehensive mitigation strategies for production environments Test scenario reproduces realistic failure: API rate limiting causing infinite retry loops with escalating resource consumption.
- Updated category from 'ai-agent-problem' to 'task-management-problem' - Removed invalid tags and kept only validated tags from tags.yaml - Added comprehensive PR.md documentation for bounty submission - Rule now passes make validation successfully Ready for GitHub issue prequel-dev#129 AutoGPT bounty submission.
|
Hi @Sahelisaha04 thanks for submitting the CRE! mostly LGTM please take a look at the review. |
|
@amanycodes did u added the review ? |
yes! |
Screencast.From.2025-10-30.16-04-51.mp4@amanycodes there is no review |
|
@Sahelisaha04 I think now they would be visible. thanks for letting me know. |
| - regex: "(Starting task.*|Executing.*|Task created:|Creating subtask)" | ||
| - regex: "(Starting task.*|Executing.*|Task created:|Creating subtask)" | ||
| - regex: "(Starting task.*|Executing.*|Task created:|Creating subtask)" | ||
| - regex: "(Memory usage.*[0-9]+MB|CPU usage.*[0-9]+%|API calls.*rate limit|Resource exhaustion detected|Out of memory|System overload)" No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the regex expression: regex: "(Starting task.|Executing.|Task created:|Creating subtask)" is being repeated. Also, this regex is noisy as "starting task", "executing task" and "creating subtask" are informational messages, we don't want our CRE to trigger when this is logged. we can remove these.
Overview
This PR implements CRE-2025-0171, a critical failure detection rule for AutoGPT autonomous agents that enter runaway task execution loops. This addresses the bounty challenge outlined in GitHub issue #129.
Problem Description
AutoGPT agents can enter infinite task retry cycles when encountering API rate limits or resource constraints, leading to:
Solution
CRE Details
Test Results
$ cat test.log | preq -r autogpt-runaway-task-loop.yaml -dThe rule successfully detects 4 critical hits in the test scenario, demonstrating effective pattern matching for runaway task loops with resource exhaustion.
/claim #129
fixes #129