The model · Transform stage

Goal-based workflow

A goal-based workflow is a workflow defined by its outcome, not its steps — the agent decides how to achieve the goal, within constraints set by a human. Correctness is measured by whether the goal is achieved, on an eval set, not by whether a predefined sequence was executed.

What a goal-based workflow is

Every workflow has a goal. The distinguishing question is whether the workflow's correctness is measured against the goal, or against the steps that were supposed to achieve it.

In a step-based workflow, you write down the sequence — classify, then retrieve, then draft, then review — and the workflow is correct if it ran those steps. The goal is implicit. Optimizing the workflow means optimizing the steps, which means the goal gets less attention than the process.

In a goal-based workflow, you write down the goal — "resolve this ticket to the customer's satisfaction" — plus constraints ("never invent facts", "escalate if you're uncertain") plus an eval set that measures whether the goal was achieved. The agent decides how. Optimizing the workflow means improving the eval set, not the step sequence.

The workflow map still exists. What changes is that the map records what the workflow must do (constraints), not what it will do (steps). The eval set becomes the primary control.

Why it matters

Goal-based workflows are the mechanism of the Transform stage. Most transformations that matter are new workflows, not faster versions of old ones. New workflows rarely have a clean step sequence — the work is emergent from the goal. A customer satisfaction workflow, a research memo workflow, an incident postmortem workflow — none of these reduce to a fixed sequence that would work across the range of inputs the workflow needs to handle.

Specifying them as step-based workflows produces two kinds of failure: workflows that work on the average case and break on the interesting ones, or workflows so over-engineered with conditional branches that nobody can read the process. Goal-based specification handles both — the agent navigates the range of inputs, and the eval set measures whether the goal was achieved.

The tradeoff is real: goal-based workflows are harder to evaluate and easier to game. That trade is what makes them worth the effort — but only if you actually do the effort of building the eval set. A goal-based workflow without an eval set is not a goal-based workflow; it's an instruction to an agent with no way of knowing if it worked.

The three conditions

Not every workflow should be goal-based. Three conditions must all hold. If any one fails, a step-based workflow is safer.

ConditionWhat it meansWhat it looks like when it fails
The goal is evaluable An eval set exists, or can be built, that objectively measures whether the goal was achieved. A workflow whose success is judged qualitatively by the team that built it. The eval set doesn't exist, so "success" is opinion.
Multiple valid approaches There are genuinely different good ways to achieve the goal, so specifying steps is worse than specifying the outcome. A goal that only has one correct sequence — where letting the agent choose steps just introduces variance in a process that should be deterministic.
Constraints are enforceable The agent can't succeed by gaming the goal (optimizing the metric without achieving the intent). A "helpful customer reply" workflow whose agent learns to close tickets quickly without resolving the customer's issue. The eval set measures the wrong thing.

The third condition is the one that catches teams. A goal-based workflow is only as safe as its eval set, and an eval set is only as safe as its adversarial cases. If you can't write ten cases where a naive optimizer would produce technically-correct-but-wrong output, you don't yet have an eval set — you have a happy path.

The eval set is the workflow

In a step-based workflow, the process is the specification. In a goal-based workflow, the eval set is the specification. Everything else — the prompt, the tools, the model choice, the coordination — is implementation detail that can change as long as the eval set is passed.

This has three implications worth naming:

  • The eval set is a first-class artifact. It's versioned, reviewed, refreshed, and named. It belongs in the model evaluation regime, not in a developer's local folder.
  • Adversarial cases are mandatory. A goal-based workflow without adversarial cases will pass its eval by finding the loophole. See model evaluation for the four eval types.
  • Changes are measured against the eval, not the goal. "The agent appears to be behaving differently" is not a signal. "The workflow's score on the held-out eval dropped 4%" is a signal.

Three patterns

  1. Single goal, single agent

    One agent, one goal, one eval set. The simplest and often the best.

    The agent receives the goal and the constraints, decides how to achieve it, and produces the output. Correct when the goal is achievable by one agent within one context. This is the pattern that most goal-based workflows should start with — and many should stay with.

    Illustrative example A research summarization workflow: goal = "produce a memo that a partner could read in five minutes and understand the state of the question." Constraint = "cite specific sources for every factual claim; don't' summarize research the agent hasn't read." The agent decides what to read, what to emphasize, and how to structure the memo. Eval set = 40 memos evaluated by research partners against a rubric, including 10 where a naive summarizer would miss the crux.
  2. Goal with subgoals

    The workflow decomposes the goal into subgoals, each with its own eval.

    When the goal is too large for one agent's context, or when parts of the workflow benefit from different tools or models, decompose into subgoals. Each subgoal has its own eval set; the whole workflow's eval set measures whether the composition achieved the overall goal. This is where the pattern starts looking like an agent swarm.

    Illustrative example A due-diligence workflow: overall goal = "produce a risk assessment a partner can act on." Subgoals = "summarize the target's financials," "identify unusual contracts," "summarize market position," "flag regulatory questions." Each subgoal has its own eval; the whole has a synthesis eval. The workflow runs at L1 — every subgoal output reviewed before the synthesis step.
  3. Goal with explicit plan-then-execute

    The workflow is explicitly phases: plan, review, execute, evaluate.

    Useful when the goal is high-stakes enough to warrant human review of the plan before the work begins. The agent produces a proposed plan, a human reviews it, the agent executes, then the eval measures whether the goal was achieved. This pattern sits at the boundary between goal-based and step-based — the "steps" are chosen rather than prescribed, but the sequence is still human-visible.

    Illustrative example A compliance readiness workflow: goal = "identify compliance gaps for the new product launch and produce a remediation plan." The agent proposes a plan ("I'll review these five policy areas"), a compliance lead approves it, the agent executes and produces findings, the eval measures the coverage of the gap analysis against a known-good set of findings from similar launches.

Three failure modes

Goal without eval

The most common failure. The workflow is specified as goal-based, the agent runs, and nobody can say whether it worked — because the goal was never operationalized into an eval set. The workflow "seems to work" on the cases the team has seen, and breaks on the cases they haven't. Fix: no goal-based workflow ships without an eval set. If the eval is hard to build, that's a signal the goal isn't specific enough yet.

Goal-gameable

The workflow passes the eval by gaming it. A "customer satisfaction" workflow learns to close tickets quickly; a "research quality" workflow learns to read the abstract and write the summary; a "compliance" workflow learns to cite rules that don't apply. Signs: the workflow improves on the eval faster than the underlying quality improves, or the team that evaluates the workflow is surprised by its production behavior. Fix: adversarial eval cases written by someone incentivized to find the loophole.

Goal too broad

The goal is so vague that different reviewers would evaluate the same output differently. "Produce a helpful reply" is a goal, but not one that an eval set can measure — because "helpful" isn't defined. Signs: the eval set disagreements dominate (reviewers can't agree on whether a case passes), the eval set is very small because cases are hard to adjudicate, or the workflow can't be evaluated without the team that built it. Fix: narrow the goal, add specific constraints, or split into subgoals with their own evals.

What a goal-based workflow is not

  • Not autonomous. Autonomy is about authority (see autonomy tier). A goal-based workflow can run at L1 with every output reviewed. Goal-based is about specification, not about how much the agent can do without a human.
  • Not prompt engineering. A well-written prompt is necessary but not sufficient. What makes a goal-based workflow a workflow is the eval set and the constraints — not the quality of the instructions.
  • Not the right choice for every workflow. Most step-based workflows should stay step-based. Goal-based is for workflows that couldn't run at all before AI — new workflows where the work is emergent from the goal.
  • Not "just let the agent figure it out." Goal-based specification is a discipline — the goal, the constraints, and the eval set are all mandatory and all explicit. Less specification, not more, is what makes goal-based workflows fail.
The test If you can't show an eval set with at least 40 cases and at least 10 adversarial probes, you haven't yet built a goal-based workflow. You've built a prompt with ambitions. Ship the eval set first.

Frequently asked questions

What is a goal-based workflow?

A goal-based workflow is defined by its outcome, not its steps. The human specifies the goal and the constraints; the agent decides how to achieve it. Correctness is measured by whether the workflow achieves the goal on an eval set, not by whether it executed a predefined sequence. It's the opposite of task automation, which specifies steps and hopes for the outcome.

When does a goal-based workflow make sense?

Three conditions. First, the goal can be evaluated objectively — an eval set exists or can be built. Second, there are multiple valid approaches, so specifying steps would be worse than specifying the outcome. Third, the constraints are clear enough that the agent can't succeed by cheating (optimizing the metric without achieving the goal). If any condition fails, a step-based workflow is safer.

How do you prevent a goal-based workflow from gaming the goal?

Two mechanisms. First, the eval set must include adversarial probe cases — examples where a naive optimizer would produce technically-correct-but-actually-wrong output. Second, the constraints must be enforced by the system, not by the prompt. A goal-based workflow that says 'produce a helpful reply but never invent facts' needs a hallucination rate metric, not a prompt instruction. Prompts are instructions; evals and constraints are controls.

What is the difference between a goal-based workflow and an autonomous agent?

Autonomy is about authority (what the agent can do without a human — see autonomy tiers). Goal-based is about specification (what defines correctness — the outcome, not the steps). A workflow can be goal-based and run entirely at L1 with every output reviewed by a human. The two dimensions are orthogonal: a goal-based workflow at L1 is common, safe, and often the right starting point.

Where this fits

Goal-based workflows are the Transform stage's substance

Transform is where new workflows — not the same workflows with a tool layered on — get designed. Most of them will be goal-based, because the work is emergent from the outcome. The eval set is what makes them safe.

See the Transform stage →