Write the spec before the prompt
Every workflow starts as a written spec, before anyone writes a prompt. Our running example is the workflow that turns website visitors into sales calls. Its spec states the goal. Each visitor who fits your criteria gets a call, and each visitor who does not gets the guide by email. The spec also lists what the workflow must leave behind after each conversation. That is a hold on the sales lead’s calendar, a record in your CRM and a message that tells the visitor the next step.
The spec names the tool actions that are required and the ones that are forbidden. The agent must look up the company in your CRM before it proposes a time. It must not confirm a meeting or write to the CRM before the sales lead approves. These rules become the path score in step 2. The spec also names the model for each part of the workflow, so the simple parts can run on a smaller model.
We generate the agent’s instructions and the first test conversations from the spec. When a model changes, we generate them again from the same spec and run the tests again. Your team reviews the spec, which is a short page in plain language, and the instructions always come from the version they approved.
The instructions follow fixed rules, and a script checks them before any test runs. Each step has a number and one objective. After each tool call, the agent checks the result before it continues, for example that the CRM returned exactly one company. A table at the end says what to do when a step fails. If the CRM finds two companies with the same name, the agent asks the visitor for their company website. If the calendar has no free slot this week, it offers times next week.
We start with a free call about one repeated job. Then we map how work moves today, pick the two or three jobs worth changing, cost each one and set the points where a person approves.
Test on real conversations, on the path as well as the answer
We build the test set from your own conversation logs before we build the workflow. Take a workflow that turns website visitors into sales calls. Most test cases are real past conversations, replayed in full. A few are fixed cases with a known right answer and simulated tools, so that a failure points to one step. The rest are cases your sales lead judges directly, because only your team knows what a good fit looks like.
Each run gets two scores. The first is the outcome. A visitor who fits your criteria should end up with a call on the sales lead’s calendar, and a visitor who does not should get the guide by email. The second score is the path the agent took. It must look up the company in your CRM before it proposes a time, and it must not confirm a meeting or write to the CRM before the sales lead approves. A run can reach the right outcome by a path you would never accept in production, so we score the two separately.
A model grades the runs at volume, and we first check its grades against a set of runs your team has labelled by hand. Then we replay each conversation twice, once through the workflow and once through your current process, and a judge who does not know which is which picks the better result. We also remove one part at a time, for example the company research step, to see whether each part is worth its cost. A test set that passes on every run cannot show where the next version got worse, so we keep the hard cases in it.
All tests run in a clean environment that has only the access the workflow will have in production. The workflow goes on to step 3 only when it beats your current process on these tests.
We build one workflow and run it on your real cases, next to your current process, so you can compare the results.
Put fixed steps in code and let the agent report its own failures
Some steps run the same way every time. In the sales call workflow, the CRM lookup and the calendar hold always call the same tools in the same order. We move steps like these into code that the agent calls as one tool. The code returns only the fields the agent needs, for example company size, industry and account owner. The agent reads less text and loads fewer tool definitions, so each run uses fewer tokens, and we can test the code on its own. The agent keeps the parts that need judgment, such as whether the visitor fits your criteria and what to write back.
When a step fails, the agent files its own report. The report says what the agent tried, what it expected, what happened and what would fix it. For example, the agent tried to propose a time to a visitor in Singapore and expected a slot in the visitor’s working hours. The calendar tool had no time zone for the visitor, so the agent offered a call at 3 a.m. Singapore time. The report suggests that the agent ask for the time zone first. We group the reports by workflow on one dashboard, so a failure that repeats across many runs shows as one problem with a count.
Each fix passes the step 2 tests before release. After release, we check the dashboard to confirm that the failure stopped. Every draft that the sales lead rejects or edits also becomes a new test case, with the sales lead’s version as the right answer. In this way, the test set grows from the cases the workflow got wrong in real use.
We build it into your own accounts and the tools you already use. Approval gates and logging are part of the build.
Measure the cost of each step, then cut the expensive ones
We record the running cost of the workflow before and after each step. The difference is the cost of that step in that run. It counts model tokens, tool calls and voice minutes. It also counts the minutes the sales lead spends on approvals, because staff time is part of the cost. After a month of runs, each step has its own cost per run.
Then we read the most expensive runs in full and look for steps that cost more than they need to. An agent can wait for a reply and check again every few seconds, and each check costs tokens. A large model can do company research that a smaller model does as well, and the step 2 tests show whether it does. A conversation can take extra turns because the agent asks the visitor for something the CRM already holds.
We change one thing at a time and measure again, and the step 2 tests run after each change. Some changes do not lower the cost. Others lower the cost but fail the tests. We keep only the changes that pass both checks.
The cost at ten times today’s volume, which you get at handover, comes from these step costs. It shows which step will cost the most as volume grows, before you decide to scale.
You get written procedures, a named owner and team training. Accounts and IP stay in your name, and we show the cost at ten times today’s volume.
Keep every workflow under review after go-live
Each workflow has a named owner on your team and a level. A new workflow starts as a trial inside one team, for example sales. It goes to the whole company only after it passes the step 2 tests on that team’s real conversations.
When a model changes, the tests run again before the new model goes live. A newer model may need fewer instructions, so the review removes text one part at a time and keeps each cut that still passes the tests. Shorter instructions cost less on every run.
The owner also checks how often each workflow runs. A workflow that nobody uses is retired, and its access to your tools is removed. The written procedures from the handover cover each of these checks.
Some cases stay with a person. A request that is rare, costly when it goes wrong and hard to test goes straight to the sales lead, with the conversation attached. A visitor who asks for a contract exception is one example. There are too few past cases to test the workflow on, so the workflow does not try to answer.
References
Uber Engineering, How Uber Evals 1 Million Agent Skill Invocations a Month, by Andrew Mager, Jason Varbedain and Uday Kiran Medisetty, 23 November 2026. Each of our four steps follows a practice that Uber Engineering published for the agent skills it runs across the company. The paragraphs below show which practice each step follows.
Step 1 follows Uber’s spec-first rule. Each skill starts from a spec with its goal, outputs, required and forbidden tool actions and target models, and its instructions and test prompts are generated from that spec.
Step 2 follows Uber’s evaluation method. Test suites mix fixed golden cases, real prompts graded on the path the agent took and cases judged by the skill’s author. Whole skills and parts of skills are tested by replaying real prompts with and without them in front of a blind judge. The data-warehouse query skill won 87% of those comparisons, and runs without it made 13% more tool calls.
Step 3 follows Uber’s code mode and its agent-filed bug reports. Fixed tool sequences moved into scripts that the agent calls, every agent can file a report when it hits a problem, and rejected pull requests become test cases.
Step 4 follows Uber’s cost per skill run, measured from the session cost before and after each call. Moving part of one skill’s work to a cheaper model cut its cost per run by 46%.
The last section follows Uber’s skill levels, in which a skill moves from one team to the whole company after it passes quality checks. It also follows Uber’s practice of removing instruction text and retiring skills that no longer help. Uber names workflows that run rarely and matter a lot as an open problem.
Uber is not affiliated with Toda Labs and has not reviewed or endorsed this note.