Seven AWML Findings in Yegge's Design

October 2026
Seven AWML Findings in Yegge's Design

Steve Yegge published The Counting House this week, a design for letting cheap AI models handle customer service one kind of case at a time.1 He calls it “a postcard introduction”, and it is a good design, so I drew it in AWML to test both the modelling language and the design. An evening of drawing turned up seven findings, before anyone built anything.

Last week I argued that you must draw your AI workflow to control it. When I drew six of my own workflows, I found a slew of problems I had missed. The examples on GitHub include a family’s meal planning (something I have done a lot of thinking about), but it was not a complex enough example to really show how AWML can help. This time I wanted a serious design for a large company written by someone who has run one of these departments.

Yegge ran Amazon’s customer service tools group in the early 2000s. His design is for contact centres, claims processing and other casework handling millions of cases a year.

In his Counting House system his cheap models (called “clerks”) start fresh, handle one case and stop. They hold no credentials and cannot write to real systems. A policy table has one row per kind of case, or “intent”, such as a refund or rebooking. It sets the model, its freedom to act and who must approve what.

People first score a few hundred real cases per intent. Two score blind; a third settles disputes. A judge model must agree with them about as often as they agree with each other. Errors are priced: leaving a child at the gate costs far more than misrouting an email.

When a clerk proposes a change, plain code, the orchestrator, checks it against the live system and carries it out using the “saga” pattern.2

I mapped out the whole thing. Here are the findings.

1. The “Shadow” Stage Is 75% of the Cost

By my estimate, about three quarters of the build goes into shadow, before any model answer reaches a customer.

I drew a fictional airline rebooking a passenger after a missed connection at all five levels. At off, people do everything. At shadow, models answer alongside them for scoring. At assist, models suggest and people decide. At contain, models reply to customers. At transact, their proposals change real systems through the orchestrator.

Off to shadow added twelve parts, including the gateway hiding personal details, the model, judge and score stores. Assist added two, contain three and transact seven. Yegge says shadow “doesn’t save you money yet”, but every later level depends on its scores.

Those twelve parts are only the shadow drawing itself. Before shadow can score anything, the system also needs the scored set of real cases, the test that decides when to trust the judge, and the five sign-offs to move up a level. Count those and shadow carries about two thirds of the parts, including the hardest: Yegge puts the human scoring for the first intent alone at about 150 hours. That is why I put it at three quarters of the cost.

Fund shadow as the main project. Each later promotion is a small change you can read in a minute. Back in February I wrote that autonomy is earned through evidence, without skipping levels.

This is the hard part for whoever holds the budget. You are going to get three quarters of the way through the build before you gain any value at all. It is going to look expensive, and it is going to feel like a waste of time. You have to be persistent: it will save you time if you follow through.

2. Name Who Accepts Risk

A customer reply cannot be taken back. AWML flags contain because nobody reads the reply before it goes out.

Part of the AWML drawing of promotion: code drafts the change to the intent's policy row, then five reviews in a row, finance, legal and compliance, CS ops, QA and data science, and platform, each say yes before code writes the change into the policy table.

Yegge already names the right people, in his section on getting buy-in. Before a model moves up a level, someone from each of five departments signs off its row in the policy table, and each signs for their own piece. CS ops and floor supervisors own the standard procedure, and the knowledge in people’s heads that has to be written down. QA and data science own the scored cases, the rubric and the judge. Finance owns the cost of each kind of mistake and the approval thresholds. Legal and compliance decide which intents may ever reach contain or transact. Platform and IT own the gateway, the orchestrator and the rest of the plumbing.

Drawn in AWML, those sign-offs are a chain of five reviews. Each is a yes to the exact change, and only after the last one does code write it into the policy table.

That chain approves the promotion once. After it, contain sends thousands of replies that nobody reads, so the drawing also needs the decision that covers them. Put it on the drawing as a standing approval (a yes given once, in advance, within limits), naming who accepted the risk and the evidence they used. In my example, customer experience and legal accept it on the October test cases, for replies on this one intent only. Anyone can see where models reply without a person checking, and who agreed to it. In a smaller company one person may wear several of these hats, and the drawing still shows which one they wore.

3. Price Each Kind of Reply

Yegge prices one kind of mistake: picking the wrong intent. His confusion matrix puts a dollar cost on each mix-up, such as a goodwill credit given to someone who wanted a rebooking. A wrong reply on the right intent has no price. The rubric asks yes or no questions like “did they follow SOP” and “was their tone compliant”, so a reply with a slightly off tone and a reply that promises a refund the customer is not owed each count as one failed answer.

Part of the AWML drawing of the contain level: the clerk drafts a reply, code swaps the real values back in and sends it, under CX and legal's standing approval, to the outside action Reply to the customer. Orange lines carry the customer's text all the way through.The contain level, zoomed in. Ask marks an action a person must agree to. Open the full drawing on awml.io.

Split replies into types, such as stating a checked fact, explaining a policy, saying no and promising something, and give each type a price for getting it wrong. The promotion to contain then weighs reply mistakes as well as intent mix-ups. A flight status reply is cheap to get wrong, so it can go first. A reply that promises money stays with a person until the scores show models make those mistakes no more often than your reps.

4. Check the Judge

A message meant to fool a model could affect which intents the judge is trusted on, and which models get promoted.

To illustrate this, I drew an example judge system of six workflows sharing data: live contacts, refused cases, building the scored set, testing the judge, promoting a model, and scoring every contact to send contact reasons to their owners. (The last is the loop Yegge ran with Jeff Bezos each week, and to my mind it is the most valuable piece of the whole design: every contact tells the business what to fix next.)

Open the full map to explore each workflow.

Real messages enter the scored set, then test the judge, with no human check of that test in my drawing. The scorers already read every message. Have them flag attempts to steer a model and keep those out of the judge’s exam.

5. Define the Demotion Rule

Demotion needs a rule the system can act on. Yegge calls the judge “the scorer for promotions and demotions”, and writes that “a bad score just moves a model down the autonomy tier until it’s fixed”. That is the right rule, but he does not spell out the threshold or the workflow.

Promotion from assist to contain needs five departments’ approval. For falling scores, perhaps after a model update, draw the return path too. Every night code compares each intent’s last seven days of scores with the bar in its policy row, so one bad night does not knock it down. When an intent falls below its bar, it drops a level straight away, and QA and data science find the cause before putting it up for promotion again.

Dropping a level needs no sign-off, because it makes the system safer. Going back up takes the full five. Plan for where the work goes, too: every case a demoted intent stops handling lands back on the human queue.

6. Record the System Fixes

The contact chart needs a record of what got fixed. At Amazon, owners of the top contact reasons “were held accountable for fixing their own issues”. Yegge describes that accountability, but no record linking a fix to its result.

Record each fix against its contact reason, and the next week’s chart shows whether it worked - this is the magic that Yegge talks about where Bezos was 25 years ahead of the competition, writ large for all to see. Drawn in AWML, it is a small workflow beside the weekly chart: each owner logs the fix they shipped, and code compares that reason’s contacts before and after.

7. Keep Prices Current

The price list sets how much risk each intent can carry. Yegge gives finance ownership of these prices, and says that when a cheap mistake turns out expensive, “you just update your grid with the new cost per mistake”. That is the right instinct, but no workflow does it, and nothing says who signs off the change.

AWML drawing: when a mistake costs more than its price, finance's price keeper reads the case and the current price, writes the new price into finance's cost table, and records the change and why.

Draw the list as a store with a named finance owner. Send every mistake that cost more than its price to that person, who updates it and records why.

In the drawing, the price keeper is one amber box. It sits between the costly mistake and finance’s cost table. The promotion workflow reads that same table, so the next model to go up for promotion is judged on the new prices.

What AWML Cannot Check

AWML is not an evaluation tool. It shows who scores what and where the scores go, but not the scores themselves. The evaluations, Yegge’s scored cases, judge and priced mistakes, live in the platform that runs the work, and that is where they should be. Undo steps, acting only once and blind scoring remain labels too; the platform must make them work.

Yegge describes people “moving up the stack”: scoring cases, settling disputes, handling refusals and training clerks. Every amber box on the map is one of those people, doing work the system cannot do without them.

Is there an AI design you have only read? Draw it and you will gain much more insight. Or try drawing a workflow you already run, even outside contact centres, such as your coding assistant rollout or a compliance check. You can read more about AWML, and draw your own, at awml.io.

  1. Steve Yegge, The Counting House, 27 October 2026. ↩

  2. Temporal, Saga pattern. Yegge recommends Temporal for this - I have also been an early customer and it is a great piece of software. ↩