veto_record_outcome
Record quality scores and metadata for completed tasks to train the self-learning router, automatically improving task routing decisions over time.
Instructions
Records a task outcome (quality score) to feed the self-learning router. Call after completing any task. The router auto-applies learned tier thresholds every 20 recorded outcomes (disable via config auto_apply_learning=false); veto_learning_apply forces an update on demand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | The worker agent type used (optional but useful for agent performance tracking). | |
| file_ext | No | File extension of the primary file worked on (e.g. ".ts", ".sql", ".tsx"). Enables predictive agent routing — next time you work on the same extension, veto_route_task will recommend the best agent. | |
| task_type | Yes | Short consistent label for the task category (e.g. "write-unit-tests", "fix-auth-bug"). Use the same label for similar tasks to enable pattern detection. | |
| complexity | Yes | The complexity score from veto_route_task (0–100). | |
| model_tier | Yes | The tier that was actually used (1, 2, or 3). | |
| tokens_used | No | Approximate tokens used (optional). | |
| output_quality | Yes | Output quality score 0–100. 90–100=excellent, 70–89=good, 50–69=acceptable, 30–49=poor, 0–29=failed. |