failure_analysis
Record a failed task as a templated lesson entry by generating antibody, vaccine, and catalyst artifacts from its result, error, and tags. Use on failed tasks that will not be retried.
Instructions
Record a failed task as a templated lesson entry (failure alchemy).
Frozen: still callable, no longer developed.
The watchdog runs this itself once it stops retrying a failed task; call it by hand only on a failed task that will not be retried. The three artifacts are fixed templates filled from the task's title, result, recorded error, and tags; nothing is inferred beyond those fields, so the output is only as specific as the task's recorded result and error. For a diagnosis of why a task failed, use diagnose_task_failure.
Antibody: defensive-rule suggestion built from the failure reason
Vaccine: failure case (description, assignee, result, prevention)
Catalyst: improvement proposal keyed on the task's tags The combined text is appended to the task as an issue memo (task_memo_read shows it).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>",
"team_id": "<team_id>"
},
"name": "failure_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ID of the failed task | |
| team_id | Yes | ID of the owning team |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||