PRACTITIONERCHAPTER 05

Scoping an AI feature

Before you choose a model, write the job, the no-model alternative that sets the baseline, the success criteria, and what a wrong answer costs; then let the numbers say whether a model earns its place and where

40 MINAI ENGINEERUPDATED 2026-11-21
PREDICT

Owoleaf's keyword router puts 90% of tickets in the right queue. An LLM classifier gets 96% on the same held-out tickets, at fifty times the cost per ticket. Odera has to recommend something on Monday. What does she check first?

A language model makes a lot of things look possible, which moves the hard part of the job. Building is no longer the scarce step. Deciding what to build, how good it must be and what to do when it is not is the scarce step. This chapter is about that decision, as a document you write before building: a feature scope with a job, a no-model alternative, success criteria and a price for being wrong. It does not teach the techniques you might choose. The AI Engineering course does that, and this chapter links to it. The running example is Owoleaf at 200 people, with 44 engineers in six teams and a support desk whose human queues take about 30,000 tickets a month. That is about a third of the roughly 3,000 tickets a day that the desk and the customer assistant receive between them; the assistant closes the rest. All figures are illustrative unless a source is named.

The model: five answers

A scope is five answers on about two pages. If you cannot write one of them, you are not ready to build.

  1. The job. What decision or output the feature produces, for whom, and what they do with it. “Route each ticket to one of four queues” is a job. “Use AI in support” is not. Writing the PRD covers the problem statement, and a scope should be traceable to one.
  2. The no-model alternative. The best version you could build without a model, written down and measured.
  3. Success criteria. The numbers the feature must reach, written before you run the candidate, with a cost and a latency ceiling alongside quality.
  4. The cost of being wrong. What each kind of failure costs the customer and the business, in the same units as the cost of running the feature.
  5. The way out. The result that returns the feature to the no-model version, a date to review it, and who decides.

The third and fourth answers carry the decision. The first and second give them something to be measured against. The fifth makes the whole thing safe to try.

Start with the no-model alternative

The usual scoping meeting compares a model with nothing. Nothing is the wrong comparison, because there is always a system doing the job today: rules, a spreadsheet, a person, or a lookup. The right comparison is the best version of that system you could build in a week or two. Google’s “Rules of Machine Learning” opens with Rule 1, which says not to be afraid to launch a product without machine learning. The argument there is about trained models, but the point carries to language models: the simple version is often most of the value, and it ships sooner. Our philosophies chapter calls this the simplest thing that works. Scoping is where that belief becomes a document.

Write the no-model alternative as a real design, with its own numbers:

  • What it is. For the router, keyword lists per queue. For a reply-drafting feature, a template with merge fields filled from a database lookup. For a long-document question, search and a link.
  • How it performs. Run it on the same labelled cases you will use for the model. Without this number you cannot say whether the model is better, only that it works.
  • What it costs to keep. Someone edits the keyword lists. Someone updates the template when the policy changes. Count that time. The usual argument for a model is that it removes upkeep, and it only counts if you price the upkeep honestly.
  • How it could be improved. A better rule list is a rung on the ladder too. If the cheapest fix for the rules’ worst failures is ten new keywords, that is the first thing to try.

The alternative has three jobs after the decision. It is the baseline every later claim is measured against. It is the fallback when the provider has an outage, or retires the model, or the model does something it must not. And it is the brake on cost: a model whose gain over the alternative is too small to pay for itself has not earned its place, however good it looks.

When a model earns its place

A model is not better in general. It is better on certain kinds of input. The table lists the usual signs on each side. Use it to find where to look, then measure.

Points towards a model Points away from a model
Input is free text, speech or images with many phrasings Input is a small set of codes or fields
The right answer depends on meaning, not on a pattern The right answer follows a rule someone can write down
Output is open-ended: a draft, a summary, an answer in the customer’s words Output is one of a few fixed values or an exact figure
The long tail is large and a rule list would never cover it Ninety per cent of cases fall into a handful of patterns
A wrong answer is cheap, or a person checks it before it reaches anyone A wrong answer is costly, unreviewed or must be explained to an auditor
Latency of a second or more is acceptable The answer is needed in milliseconds

Two cautions. First, the left column is a reason to try, not a result. Second, a feature often contains both kinds of input. Owoleaf’s tickets are free text, but a large share contain “card”, “top-up” or an error number, and a keyword catches those exactly. The interesting question is not “model or rules” but “which tickets need the model”.

Success criteria before the run

Success criteria are the numbers the feature must reach to ship, written before the candidate is run. A threshold set after seeing the score is a description of the score. Written first, it can fail, which is what makes it a criterion. AI products covers launch criteria by slice and why a single pass rate misleads, so this chapter does not repeat it. The AI engineer’s part is to make each criterion measurable on a held-out set. Anthropic’s guidance on success criteria says they should be specific, measurable and achievable, and relevant to what the application is for.

A scope’s criteria have four parts:

  • Quality, by slice. A bound for each slice and a zero-tolerance line for must-pass behaviours, as AI products sets out.
  • Cost per task. What one successful task may cost, counting retries and the tail, as the tokens, context and cost chapter and choosing a model show. Price per million tokens is an input to it, not the answer.
  • Latency. A ceiling at the 95th percentile for the place the feature sits. A router can take seconds, because the ticket waits in a queue anyway. A reply as the customer types cannot.
  • A comparison against the alternative. The model must beat the no-model alternative by a stated margin on the same set, or it has not earned its cost.

Measure both on a set that cannot flatter either

Both systems must be scored on the same held-out set, and the set must be built so that neither can have seen it. Tickets are the standard trap. Customers resubmit, follow up and paste the same error after an app update, so a random split puts near-copies on both sides. The data leakage lesson shows a toy router that scores 100% on a random split and 42% in production. For the router, hold out the most recent four weeks by time, drop near-copies of anything in the tuning or prompt-example data, and have the desk lead label them. The eval set chapter says how to build it. The chapter on the eval set before the feature, which comes next in this track, covers building a bigger set and rubric.

Size matters too. Say the held-out set is 600 tickets. The rules score 540, which is 90%. The classifier scores 576, which is 96%. By the usual normal approximation, a rule of thumb, the first is about 88% to 92% and the second about 94% to 98%. The intervals do not overlap, so the gap is real. A gap of one or two points on 600 would not be.

The cost of being wrong

An accuracy figure says how often the system is wrong. The scope needs what that costs, in naira, and it varies by kind. A ticket sent to the wrong queue costs the desk some minutes of re-triage and the customer some waiting. A card ticket held in the wrong queue while money is outstanding costs more than a login ticket in the wrong queue.

Quang’s desk timed re-queues last quarter: about six minutes of agent time, at an agent cost of ₦25 a minute (₦1,500 an hour, illustrative), which makes about ₦150 per misroute and ignores the customer’s wait. Use that and the following figures, scaled to a month of 30,000 tickets (illustrative). The 600-ticket set splits into 450 tickets where a keyword matches one queue and 150 where none matches or two queues tie. The router sends those to the transfer queue by default. Scaled up, that is 22,500 tickets the rules can place and 7,500 they cannot.

Slice (per month) Rules correct Classifier correct Extra correct from the model
Rules can place (22,500) 21,600 (96%) 22,200 (98.7%) 600
Rules cannot place (7,500) 5,400 (72%) 6,600 (88%) 1,200
All (30,000) 27,000 (90%) 28,800 (96%) 1,800

Running the rules costs about ₦0.12 a ticket for hosting and upkeep. The classifier costs ₦6.00, fifty times as much. A model earns its cost on a slice when

extra correct per ticket × cost of a wrong answer must exceed extra cost per ticket

so the break-even cost of a misroute is the extra cost per ticket divided by the extra correct per ticket.

  • Tickets the rules cannot place. The model adds 1,200 correct out of 7,500, or 0.16 per ticket, and costs ₦6.00 more. Break-even: ₦6.00 ÷ 0.16 = ₦37.50. At ₦150 a misroute, the model pays for itself here four times over.
  • Tickets the rules can place. The model adds 600 out of 22,500, or about 0.027 per ticket, and costs ₦5.88 more (₦6.00 less the rules’ ₦0.12). Break-even: about ₦220. At ₦150 a misroute, the model costs more than it saves.

Now total the three designs at ₦150 a misroute. Rules alone: 3,000 misroutes cost ₦450,000, plus ₦3,600 to run, so ₦453,600. Classifier on every ticket: 1,200 misroutes cost ₦180,000, plus ₦180,000 to run, so ₦360,000. Rules first and the classifier on the 7,500 they cannot place: 1,800 misroutes cost ₦270,000, the classifier costs ₦45,000, and the rules still run on everything for ₦3,600, so ₦318,600. The hybrid is cheapest, by ₦135,000 a month against the rules and ₦41,400 against the classifier on everything.

Three honest notes. The ranking depends on the cost of a misroute. Below about ₦38, even the hybrid loses and the rules stay. Above about ₦220, the classifier on every ticket wins. The scope should show that range, because the misroute cost is the least certain number in it. Second, the stakes are modest: ₦135,000 a month is about ₦1.6 million a year, so the build has to be small. Third, the table treats the slices as fixed, but the seam between them is a design choice. How the router decides that it “cannot place” a ticket is itself a rule, and it needs its own measurement.

Designs between rules and model

The extremes are rarely best. These are the usual shapes between them, which the choosing a model chapter treats from the model side.

Design How it works What to measure
Rules first, model for the rest Rules answer when sure; the model gets only what they cannot place How often the rules are sure and wrong; the share sent on
Model first, rules as a check The model answers; a rule overrides it for must-pass cases How often the override fires; whether the rule is itself right
Model drafts, a person decides The output is a suggestion; a person accepts or edits The acceptance rate, edit distance and time saved
Model with an abstain The model returns “unsure” below a threshold and the ticket goes to a person Accuracy on answered items; the share abstained

Each has a seam, and the seam is where new bugs live. Measure the whole design on the held-out set, not each part alone.

What the scope says about stopping

The fifth answer is the one teams skip, and it decides whether you can retire a feature without a fight. Write three things: the result that returns the feature to the no-model version (for example, accuracy on the weekly sample below the criterion two weeks running), a review date (a month after launch is typical), and who decides. A scope with no way out turns every disappointing result into an argument about whether it is early. A scope with one makes the argument about numbers.

Where practitioners disagree

Prototype first or scope first? One view holds that you cannot scope what you have not seen: build a rough version in a day, read forty of its outputs and write the criteria from what you learn. The other says the prototype anchors everyone on a demo. A workable middle is to prototype to learn what failure looks like and write the scope before anything is promised to anyone.

Is the no-model baseline a straw man? If the baseline is bad on purpose, the model always wins. A fair baseline is built by someone who wants it to win, with the same time budget as the model version.

One system or two? The strongest case for the classifier on every ticket is that it is one system with no keyword lists to maintain, and the hybrid has two systems and a seam. That is a real cost. Price it: if upkeep of the lists and the seam is a day a month, say so in the scope, and the hybrid’s advantage shrinks by that much.

Will falling model prices make this moot? Prices have fallen, and a scope written today may be wrong in a year. That is a reason to set a review date and to keep the cost inputs in the document, not to assume the answer. The question stays the same: a cheaper model still has to earn its place against the alternative.

Day to day

Scoping is a few days spread over a week or two, shared with a partner who owns the outcome.

  • Day 1: the job and the people. Meet whoever owns the outcome, here Quang for the desk, and the PM for the feature. Write the job in one sentence and list the three or four kinds of failure that would matter. Ask who decides if the result is borderline.
  • Day 1 to 2: the sample. Pull 100 recent items, read them with the desk lead and label them. This is the first time anyone sees what the input looks like, and it usually moves the scope: a share of tickets turns out to be something else altogether.
  • Day 2 to 3: the no-model alternative. Build the cheapest honest version, or describe it fully if building is not needed, and run it on the sample. Record what it gets wrong and why.
  • Day 3 to 4: the price of being wrong. Ask the owner for the cost of each failure, in time or money. If nobody knows, time ten of them. Write down the range, not one number.
  • Day 4 to 5: a candidate, once. Run one prompted model on the held-out set, with cost and latency recorded. One honest run is enough to fill the table. Do not tune yet.
  • End of week: the scope. Write the two pages, with criteria, slices and the way out. Walk the owner through the break-even table and ask which numbers they dispute.
  • Weekly after launch. Read a random sample of live items, as in an AI engineer’s week, and check the stop condition. Review the scope on its review date.
BY ORG SIZE
STARTUPunder 30 people

There is no desk to interview, and the person asking may be the founder, who decides in the meeting. Scoping is an hour: write the job, the no-model version and what a wrong answer costs you, in a page. Keep the page, because the question returns when a model gets cheaper or a customer complains. Do not build a held-out set of hundreds; label fifty real items yourself and run both versions. The risk is that the demo ships because it works, with nobody having asked what the old way would have done.

SCALE-UP30 to 300

Several teams want AI features and a scope is how you say which first. Teams ask for a model because it is the topic of the quarter, so the scope has to show why the answer might be no. Get the owner to sign the cost of a wrong answer, because those numbers become the criteria. Keep the scopes in one folder so that the next team starts from an example. Expect an argument about whether a baseline is fair, and settle it by letting its advocate improve it first.

ENTERPRISE300 and up

A scope here is also an input to review forums: model risk, security, legal and procurement, each with its own form. Write it once in plain terms and attach their forms to it, instead of the other way round. The cost of being wrong includes regulatory and reputational items that you cannot put in naira. List them separately, and say who accepted them. Expect the no-model version to be a team’s existing system, with an owner who may not welcome the comparison; involve them early and let them own the baseline’s numbers.

ARTEFACT Write a feature scope ~60 MIN
YOU PRODUCEA feature scope: the job, a measured no-model alternative, success criteria, the cost of being wrong, a design choice and a way out

Template

# Feature scope: <feature>, <date>
Owner of the outcome: <name/role> · AI engineer: <name> · Review date: <date>

## 1. The job
<One sentence: what the feature produces, for whom, and what they do with it.>
Out of scope: <what it will not do>

## 2. The no-model alternative
Design: <what you would build without a model>
Cost to keep: <upkeep, in hours or naira a month>
Measured on <n items, how split>: <score, by slice>
Cheapest improvement still untried: <what>

## 3. Success criteria (written before running the candidate)
| Slice | Share of traffic | Must reach | Measured how |
|---|---|---|---|
Must-pass behaviours: <list, with the tolerated count>
Cost per task: <ceiling> · Latency at p95: <ceiling>
Beats the alternative by: <margin>

## 4. The cost of being wrong
| Failure | Who bears it | Cost (range) | Source |
|---|---|---|---|

## 5. Candidate results and the design choice
| Design | Quality by slice | Cost per task | Monthly total incl. wrong answers |
|---|---|---|---|
Choice: <design>. It would flip if <cost of a wrong answer> goes below <x> or above <y>.

## 6. The way out
Return to the no-model version if: <result, over what period>
Review on: <date> · Decided by: <name/role>
WORKED EXAMPLE

Owoleaf at 200 people has a customer assistant that hands about 2,000 conversations a month (illustrative) to human agents. Quang’s desk measured how agents take them: the median transcript is 14 messages, and agents spend about 3 minutes reading it before replying, at ₦25 a minute. Odera scopes a feature that writes a four-sentence summary at handoff.

1. The job. Give the agent who receives a handoff a summary of what the customer asked and what the assistant did, so they can reply sooner. Out of scope: suggesting a reply.

2. No-model alternative. A handoff view that shows the last three customer messages, the session ID and the queue. Two engineer-days; no upkeep. Measured on 20 handoffs with 4 agents: reading time falls from 3.0 to 2.4 minutes.

3. Criteria. On 100 labelled handoffs from the latest four weeks (held out by time): no invented amount, date or status in any summary (zero tolerated), and at least 90% rated complete by two agents. In a two-week trial with 8 agents, median reading time at most 1.0 minute. Cost at most ₦8 a summary; p95 latency at most 6 seconds.

4. Cost of being wrong. An invented refund amount that an agent repeats costs a repeat contact, about ₦300 (assumed), and a customer told something false.

5. Choice. Summary (₦8, measured on the 100) saves 2.0 minutes against 0.6 for the baseline (measured): a further 1.4 minutes, ₦35, less ₦8, so ₦27 a handoff and ₦54,000 a month. It flips if the extra saving falls below about 0.32 minutes, since 0.32 × ₦25 = ₦8. Go ahead, with the baseline kept as the fallback view.

6. Way out. Revert to the baseline view if the weekly 40-handoff read finds any invented figure, or reading time is over 1.5 minutes after four weeks. Review on the first Friday after four weeks; Quang decides.

Now you

You are Odera. Quang wants the assistant to draft the first reply to card top-up tickets, which are 4,200 a month (illustrative). An agent takes about 6 minutes to write one (₦150 at ₦25 a minute). You label 80 of last month’s tickets: 62 are a plain “my top-up failed, where is my refund” question, 11 involve a card issued outside Nigeria, and 7 are something else. The help-centre page on fees and limits says a failed top-up is refunded to the same card within 5 business days, or 14 for a card issued outside Nigeria. A template filled from the ledger (the OWL reference and the top-up’s status) needs about five engineer-days. A model draft costs about ₦6. The complication: the ledger shows the processor’s refund status only after the next morning’s settlement file is reconciled, so any reply sent the same day cannot state it; and a reply that gives the wrong window brings a repeat contact, about ₦300 (assumed). Quang wants it live in three weeks. Write the scope: job, no-model alternative, criteria, cost of being wrong, choice and way out.

Self-check

DECIDE

Owoleaf's keyword router sends about 30,000 human-desk tickets a month to four queues. On 600 held-out tickets, chosen by time with near-copies removed, it is right 90% of the time and an LLM classifier is right 96%, at fifty times the cost per ticket (about ₦6.00 against ₦0.12). The rules are sure of about three tickets in four; on the rest they are right 72% of the time, against the model's 88%. Quang's desk timed re-queues at about six minutes of agent time, about ₦150, ignoring the customer's wait. Odera has to say what to build.

READING
  1. DOC
    Rules of Machine Learning: Best Practices for ML Engineering Google

    Its first rule is not to be afraid to launch a product without machine learning, and the rules that follow it set out when to prefer a simple heuristic. It was written for trained models, and the argument carries over to language models.

  2. DOC
    Define success criteria and build evaluations Anthropic

    Anthropic's documentation on writing criteria that are specific, measurable, achievable and relevant before you test. Use it to word the third section of your scope.

  3. POST
    What We Learned from a Year of Building with LLMs (Part I) Eugene Yan, Bryan Bischof, Charles Frye, Hamel Husain, Jason Liu and Shreya Shankar, 2024

    Six practitioners on how teams build with language models in practice, the first of three parts. Read it alongside your scope to see which of its habits your feature will need.

  4. BOOK
    AI Engineering: Building Applications with Foundation Models Chip Huyen, 2025

    The author's book list links to this reference on building applications on foundation models, including evaluation and adaptation techniques. Read: O'Reilly, 2025; the chapters on evaluation and on adapting a model.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: The eval set before the feature →