Description
Thedebug-failure prompt provides a systematic approach to diagnosing and fixing failed container operations.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
operation_id | string | Yes | - | Operation ID to debug |
Generated Instructions
When invoked with:Example Usage
Debug Build Failure
Debug Test Failure
Common Error Patterns
Missing Dependencies
Symptom:ModuleNotFoundError or command not found
Solution: Install missing packages with install-packages or use a prepared environment.
File Not Found
Symptom:No such file or directory
Solution: Verify path with list_files, ensure files are synced with rsync.
Timeout
Symptom:timed_out: true
Solution: Increase timeout parameter or break into smaller operations.
Permission Denied
Symptom:Permission denied
Solution: Commands run as root, so check if file exists and is accessible.
Implementation Notes
The agent should:-
Retrieve operation with
get_operation: -
Analyze the result:
- Check
exit_code(0 = success, non-zero = failure) - Read
stderrfor error messages - Check
timed_outflag - Review
stdoutfor partial output
- Check
-
Diagnose based on error patterns:
- Import errors → missing packages
- File not found → path issues
- Timeout → need more time or optimization
- Suggest and implement fixes
See Also
- inspect-image - Explore image contents
- Error Handling Guide - Common errors and solutions
- build-project - Retry build after fix