Lesson 3 of 6 · 0%Set goals, budgets, stop conditions, and escalationNext
Course map

Multi-Agent Workflows, Goals and Production Operations

0 of 6 complete0 of 6

Lesson 3.1 · 45 minutes

Set goals, budgets, stop conditions, and escalation

Turn “keep working” into measurable completion and a safe, named escalation path before a workflow consumes more time or cost.

Skip course map
Current lessonSet goals, budgets, stop conditions, and escalation0% complete · 0/6 lessons

Multi-Agent Workflows, Goals and Production Operations

0% complete · Current: Set goals, budgets, stop conditions, and escalation

Verifiedon 2026.7.1-2

Action boundary

Before you act

Expected result
Each task terminates as accepted, rejected, timed out, or escalated with a named owner and retained evidence.
Failure mode
A goal is conversational rather than testable, so retries conceal drift and a budget is discovered only after the workflow has exhausted it.
Rollback
Pause new dispatch, preserve partial outputs and run metadata, notify the escalation owner, then resume only under a revised written limit.

A goal needs a terminal state

A useful goal says what will be delivered, how it will be checked, and when the work stops. For the researcher: “By 10:00 UTC, return no more than eight official URLs from the approved source list, each with a one-sentence claim and retrieval time. Stop when the list is complete, the time limit is reached, or a source is unavailable.”

Do not define success as “the agent feels finished.” Define terminal outcomes: accepted, rejected with reason, timed out, or escalated. Each terminal outcome produces a durable record.

OpenClaw’s agent exec --json run envelope can expose status, usage when available, estimated costUsd when model pricing is known, assistant turns, and tool summary. Use those as operational inputs, not as proof that an output is correct.

Lab: write the control card

For one task, record:

  • acceptance test and independent reviewer;
  • deadline and wall-clock limit;
  • cost ceiling or maximum turns/tool calls where cost is unavailable;
  • prohibited actions and required approval boundary;
  • stop conditions: missing receipt, repeated identical failure, exceeded budget, or unsafe input;
  • escalation owner and required packet (artifact, error class, run ID, cost/usage, recommended next action).

Check: A different operator should be able to terminate the task from the card without asking its author what “enough” means.

Checkpoint: budget gate

A verifier has spent 80% of a $5 research budget and still has two unverified claims. The correct next step is not an automatic retry. Record partial evidence, stop the task at the threshold, and escalate the choice to increase budget, reduce scope, or hold the bulletin.

Learner artifact

Draw a state machine from queued → running → accepted/rejected/timed-out/escalated. Add red transitions for budget breach and unsafe-input detection. No state should point directly from running to published.

Source provenanceVerification and sources

Review receipt rr_multi_agent_goals_stop_conditions

Outcome
approved
Method
source-review
Reviewer
scout-independent-review
Reviewed

Evidence

Limitations

  • Run metadata is an operational signal, not authority for consequential action.

Open the public evidence snapshot

Lesson checkpoint

Ready to move on?

Mark this lesson complete when you can apply its outcome without relying on the examples above.