cos_backtrack_log
Log a backtrack event to track repeated failures and receive advisories, root-cause summaries, and suggested corrective actions when backtracks reach thresholds.
Instructions
Record a backtrack event. Returns {count, advisory, suggested_action, root_cause_summary}. advisory fires at ≥3/≥5 backtracks. suggested_action gives a concrete next step when root_cause is supplied. root_cause_summary shows per-cause counts for this session.
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": {
"session_id": "<session_id>",
"from_formula": "<from_formula>",
"to_formula": "<to_formula>",
"reason": "<reason>"
},
"name": "cos_backtrack_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| hypothesis | No | ||
| persona_id | No | ||
| root_cause | No | ||
| session_id | Yes | ||
| to_formula | Yes | ||
| task_marker | No | ||
| from_formula | Yes | ||
| failure_signal | No | ||
| corrective_action | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |