Oversized model on routine turns
IF a task's sessions succeed almost every time while using far fewer turns than the median → THEN apply a model-downgrade recommendation for that task → RESULT the same work runs on the cheapest comparable model, and the per-task delta is attributed as realized savings.
The signal in the agentic log
The model-upgrade/downgrade detector groups calls by task type and compares success rate and turn count against the repo's median.
- Downgrade signal — success rate > 0.95 and average turns ≤ the median for that task. The task is easy for the current model; the model is doing more than the work needs.
- Upgrade signal — success rate < 0.70, or average turns > 2× the median. The opposite problem: the model is too weak, retries are inflating cost.
- Field source:
Outcome,TurnSeq,TurnCount,Model,Tokens,Cost.
The setup
- Open the recommendation for the affected task and choose downgrade.
- The detector proposes the cheapest comparable model within a 10% benchmark tolerance.
- Accept the recommendation to create a
PolicyVersion; the SDK applies the model switch on the next calls.
The result
- The switch is recorded as an
AugmentationEvent(BeforeValue→AfterValue, with the reason and the originating detector), so the change is auditable. - The per-task saving is computed from the actual calls after the change, not from a projection, and appears in Savings.
- The Projected figure (what the arbitrage/rightsizing model expects) is shown separately from Realized savings; only the latter counts as realized.
Behind it
- Detector: model upgrade / downgrade rightsizing.
- Recommendation action:
ModelSwitchwith adirectionofupgradeordowngrade. - Related: Provider opportunity for cross-provider options.