Skip to content

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:

RequestDecision ownerAllowed outcome
Status of one owned orderOrdinary service codeReturn the recorded status
Two possible orders in the messageModel proposes a clarificationAsk which order the customer means
Refund above the shop's limitPolicy serviceEscalate with the proposed amount
Carrier lookup unavailableHarness retry budgetRetry 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.

Diagram
Choose against a contract

Each candidate gets the same task fixtures.

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.

CandidateTotal attempt costAccepted outcomesCost per accepted outcomePolicy violations
Fixed route12612 / 6 = 20
Model-assisted route24824 / 8 = 30
Unrestricted loop30930 / 9 = 3.331

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.

Diagram
Apply the contract before comparing cost

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

Synthetic arithmetic only. All candidates attempt the same ten tasks; these are not vendor measurements.

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.

  1. Start here

    Can the loop win by counting its prohibited refund as a resolved request?

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

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.

  1. 1Why can cost per successful run reward an agent that abandons hard cases?

  2. 2When should Fernhill add a loop to status lookup?

Sign in to track which lessons you have finished.