tune_decision_weights
Re-fit decision confidence weights from accumulated approve/reject review events to improve future confidence predictions. Requires a minimum number of events with both labels.
Instructions
Re-fit decision confidence weights from accumulated review feedback (approve/reject events). Requires >= min_events reviews and at least one of each label. Mutating: when dry_run=false and the fit succeeds, persists to ~/.trace-mcp/confidence_weights.json and resets the in-memory weight cache so subsequent remember_decision calls use the new weights. Returns: { ok, reason, events_used, weights?, before?, loss_before?, loss_after?, applied }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | No | Filter review events to a specific project (default: current project root). | |
| min_events | No | Minimum review events before tuning will fit (default: 25, configurable via memory.weight_tuning.min_events). | |
| dry_run | No | When true (default), compute weights without persisting to disk. Set false to apply the fit. |