kilo_log_decision
Records orchestration routing and outcome decisions to a JSONL log so metrics can summarize delegation versus inline choices, escalations, discarded runs, and follow-up rates.
Instructions
Record an orchestration routing or outcome decision to decisions.jsonl under DATA_DIR so kilo_metrics can summarize delegation vs inline choices, escalations, discarded runs, and inline follow-up rates.
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": {
"branch": "<branch>",
"reason": "<reason>"
},
"name": "kilo_log_decision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Orchestration branch taken: 'delegate' | 'inline' | 'escalate' | 'discarded'. | |
| reason | Yes | Why this branch was chosen (or why a run was escalated/discarded). | |
| run_id | No | Optional run_id / task_id from kilo_implement when logging delegate/escalate/discarded. | |
| task_ref | No | Optional task identifier (e.g. T001, 02.3) or file reference. | |
| followup_needed | No | True if an inline edit or delegated run required an immediate follow-up fix. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |