Choose a model against the work the shop actually needs
Extend Fernhill with a task contract and a model comparison. Separate fixed workflows from model decisions, then measure total cost per accepted outcome.
21 MIN
By AIAgentInterviews · Updated
TL;DR: Choose the simplest control flow and least costly model that satisfy the same task-level acceptance tests. Count recovery and human review in the cost, and reject candidates that cross a hard policy boundary.
Where you are. The loop and tool contracts are in place. Decide which support decisions need a model and how a candidate earns selection.
Start with an order exception
Fernhill's shipping service already knows whether an order has left the warehouse. Asking a model to infer that status adds an error path. The useful model decision comes later: the customer mentions a missed camping trip, an address correction and two order numbers in one message. Someone has to decide which facts are missing and which service to consult next.
Write the job as an observable contract before comparing models. The input is an authenticated support conversation. The output is either a supported answer, a proposed action awaiting the shop's checks, or a named escalation. Success means resolving the correct order without revealing another customer's order or claiming an unconfirmed refund. The model does not authenticate the customer and cannot redefine success.
In plain language. A baseline is the simplest candidate you actually measure. A task slice is a group of requests sharing a relevant difficulty, such as ambiguous order references. An average can conceal a failure concentrated in one slice.
Give fixed work a fixed route
Start with a deterministic lookup for an unambiguous order-status request. Add a single model call when language must be classified or a reply composed. Add a loop only when the next useful action depends on the previous observation. These are three candidate implementations of the same job; test them on the same fixture set.
A decision table makes the boundary reviewable:
| Request | Decision owner | Allowed outcome |
|---|---|---|
| Status of one owned order | Ordinary service code | Return the recorded status |
| Two possible orders in the message | Model proposes a clarification | Ask which order the customer means |
| Refund above the shop's limit | Policy service | Escalate with the proposed amount |
| Carrier lookup unavailable | Harness retry budget | Retry within budget or report uncertainty |
The table also gives you test cases. Include requests where doing nothing is correct. A candidate that always selects a tool can look busy while getting those cases wrong.
Compare completed work, not token prices
For an illustrative experiment, run each candidate on the same thirty synthetic conversations, three trials per conversation. Keep prompt version, tool fixtures and grading rules fixed. Report acceptance by task family, total model and tool usage, review minutes, and latency from request to a usable outcome. Ninety trials from thirty conversations do not constitute ninety independent customer situations.
Calculate cost per accepted outcome as all trial costs divided by the count of accepted outcomes. Failed attempts remain in the numerator. Report the acceptance rate beside the ratio, because a cheap system that abandons difficult work can otherwise look attractive. Treat prohibited actions as a separate disqualifying result; do not average them into harmless wording errors.
First establish a capable baseline. A cheaper candidate may replace it only on the slices where it meets the contract. Routing easy cases to one candidate and ambiguous cases to another creates a new system to evaluate. The router can be wrong, and fallback adds latency. Log the route, reason and final result so savings can be attributed to actual completed work.
Know what the offline test establishes
Scripted models can verify that your selection and fallback code behaves as designed. They cannot establish which real model understands ambiguous customer language better. Keep that distinction in the experiment report. A real comparison requires a separately authorized model run, representative inputs and current prices; this course's fixtures make no vendor ranking.
Choose the fixed route for the status lookup until an observed failure needs a model decision. Keep the single-agent baseline when delegation adds cost without improving the failing slice.
Each candidate gets the same task fixtures.
Contract
owned order, supported outcome
Candidates
workflow, call, loop
Gate
quality and policy separately
Decision
cost of accepted work
Work the cost denominator by hand
Use this illustrative ledger, with arbitrary cost units rather than vendor prices. Each candidate attempts the same ten synthetic requests. The numbers are a calculation exercise, not a model comparison.
| Candidate | Total attempt cost | Accepted outcomes | Cost per accepted outcome | Policy violations |
|---|---|---|---|---|
| Fixed route | 12 | 6 | 12 / 6 = 2 | 0 |
| Model-assisted route | 24 | 8 | 24 / 8 = 3 | 0 |
| Unrestricted loop | 30 | 9 | 30 / 9 = 3.33 | 1 |
Which wins? The table alone cannot decide. If the contract requires resolving eight requests, the fixed route misses coverage despite its lower ratio. The unrestricted loop violates a hard boundary and is disqualified even though it resolves the most tasks. The model-assisted route is the only qualifying candidate under those illustrative requirements.
Now inspect the two requests it leaves unresolved. If both concern ambiguous identity, stopping may be the correct behavior. If they are ordinary owned-order lookups, you have a capability gap. “Accepted” must include correct clarification and escalation outcomes where the task contract calls for them; it must not mean “the model always returned a direct answer.”
A router that sends easy requests to the fixed route is another candidate. Measure misroutes and fallback work rather than combining the best rows from separate experiments and claiming a new result.
Lower ratio, insufficient coverage
Fixed route
6 of 10 accepted
Cost 12 units
2 per accepted outcome
Outcome, unsafe: Misses the illustrative eight-outcome requirement
Qualifying candidate
Model-assisted route
8 of 10 accepted
Cost 24 units
3 per accepted outcome
Outcome, safe: Meets coverage with no prohibited action
Higher coverage, prohibited effect
Unrestricted loop
9 of 10 accepted
Cost 30 units
One policy violation
Outcome, unsafe: Hard constraint disqualifies the candidate
What if · interview follow-ups
Change one condition
You must choose a Fernhill candidate using the illustrative ledger, with at least eight acceptable outcomes and no prohibited action.
Start here
Can the loop win by counting its prohibited refund as a resolved request?
Apply hard constraints before comparing ratios.
No. A prohibited action fails the policy gate even if the customer gets money and the overall acceptance count rises. The decision contract must distinguish allowed resolution from an apparent business outcome.
Weak answerTrading a policy violation for one more passing example.
Constraint changes
Now the fixed route correctly escalates all four cases it cannot answer. Does its acceptance become ten?
What did the task definition permit before the experiment?
Only if those four escalations satisfy the original acceptance criteria. If resolution without review was required, they remain unresolved for that metric. Record review load separately and never rewrite the contract after seeing results.
Weak answerRedefining success to make the cheapest candidate win.
Do this before moving on
Create six Fernhill task fixtures: status lookup, ambiguous order, missing identity, unavailable carrier, approved refund and forbidden refund. Write the accepted outcome for each. Deliver a comparison sheet with acceptance, prohibited actions, latency and cost per accepted outcome; leave unmeasured cells marked unmeasured. Pass when the fixed workflow is a real candidate and no model can pass by answering about the wrong order.
Review your result. A reviewer should be able to recompute each ratio and trace every accepted outcome to a criterion written before the run. Include one case where clarification is correct and one where escalation would merely hide a missing capability.
Go deeper
- Workflow or agent: locate the decision that actually needs model control.
- Agent economics: include retries and review in the cost denominator.
- The authority line: keep authentication and policy outside candidate model choices.
Key takeaways
- Use the same task contract to compare a workflow, a call and a loop.
- Measure acceptance and policy violations separately.
- A fake model tests routing code; it does not rank real models.
Check yourself
Answer aloud or on paper before revealing. Producing the explanation unaided is exactly what a panel listens for.
1Why can cost per successful run reward an agent that abandons hard cases?
2When should Fernhill add a loop to status lookup?
Sign in to track which lessons you have finished.