1
Pick the task, not the workflow
One task from your cost split, usually the most expensive one. If you cannot
write the rule below in one sentence, the task is still too broad. Go back to
Split a workflow.
2
Write the rule
One sentence, in the language of the domain, that a non-engineer who does this
job would agree with.
The strong versions are checkable by someone who is not on the ML team. That
is the bar.
3
Collect examples, including the hard ones
Pull real inputs from the task’s traces. Aim for coverage of the shapes you
actually see, not a round number.
4
Score the incumbent
Run your current model against the set and record the score with its spread
and its cost. This is the number every candidate has to beat, and without it
“cheaper” means nothing.
What the contract buys you
Once it exists, routing can move the workload, because there is something to gate the move on. Until it exists, it stays on the model you name. It is also yours. The contract and its examples leave with you if you leave, in the same way the weights do.Next: route a task down
Use the contract to move the task to a cheaper model.