← Resources

Level 4 · Agents · 65 min · Workflow guide

Define an Agent's Job With an End State, a Verifier and a Stop Rule

Before an agent starts, write four things: the end state that counts as finished, how the result will be checked and by whom, what is off limits and when it must stop. Use a check that did not do the work, cap failed attempts and stop on no progress. You approve the definition before work begins.

By La Raven Gordon · LCGIS · Published 2026-11-17

Saved in this browser. Join free to keep it everywhere.

Tool menus and features change. This guide teaches tool-independent skills; check any product-specific detail against that tool's current documentation.

01 — Quick answer

How do you let an AI work on its own without it running off track?

Before an agent starts, write four things: the end state that counts as finished, how the result will be checked and by whom, what is off limits and when it must stop. Use a check that did not do the work, cap failed attempts and stop on no progress. You approve the definition before work begins.

02 — Outcome

What will you have when you finish?

A written job definition for one agent task with an end state, a check, boundaries and stop conditions.

03 — Who it's for

Who is this for?

Good fit: People giving an AI a multi-step task to run with little supervision.

Not the best fit: quick one-step requests. Ask them in a normal chat.

04 — Time needed

How long does it take?

Estimates for this guide.

05 — Before you begin

What do you need first?

Terms used in this guide

End state
What is true when the job is finished.
Verifier
A check by something other than the worker.
Stop rule
A condition that makes the agent stop and report.

06 — Steps

How do you define the job?

Step 1: Write the end state

Objective: say what finished means.

Describe what will be true when the job is done, in terms you can check, such as ten files renamed and a list of changes saved.

Why this matters: an agent without a finish line either stops too soon or never stops.

Check: a checkable end state.

Step 2: Name the verifier

Objective: separate doing from checking.

Decide how the result will be checked and by what: a second AI session, a script, a checklist or you. The checker must not be the one that did the work.

Why this matters: a worker checking its own work tends to approve it.

Check: a named check.

Step 3: Set boundaries and stop rules

Objective: contain the risk.

List what the agent must not touch, what needs your approval and when it must stop: after a set number of failed attempts, when it stops making progress or when it repeats itself.

Why this matters: boundaries and stop rules prevent runaway work and wasted effort.

Check: limits and stop rules written.

Step 4: Approve the definition before work starts

Objective: stay in charge.

Ask the AI to restate the job, the check and the limits in its own words and to ask any questions. Fix misunderstandings, then approve.

Example prompt

Example of a job definition

Written for this guide, not taken from any source. It shows the context to give the AI for this step and why; replace every [bracket] with your own details.

Job: [task]. Finished means: [end state I can check]. The result
will be checked by [verifier], not by you. Do not touch [off
limits] and ask me before [actions needing approval]. Stop and
report if you fail [number] times, make no progress or start
repeating yourself. Restate this in your own words and ask any
questions before you begin.

Customize: the task, end state, verifier and limits.

How to judge the result: the restatement matches your intent.

Adapting to other tools: any agent-capable tool. Correct it before starting.

Why this matters: a restatement shows whether the AI understood before it acts.

Check: an approved job definition.

Step 5: Run, review and refine

Objective: learn from each run.

Let it run. Review the result against the end state. Note where stop rules saved effort or came too early and adjust.

Why this matters: the definition improves with use.

Check: a reviewed run and updated definition.

07 — Test it

How do you know it worked?

What to test: that the definition keeps the agent in bounds.

How: give it a task it should fail and see whether it stops.

Success looks like: it stops and reports.

If it fails: tighten the stop rules if it does not.

08 — Troubleshooting

What usually goes wrong?

ProblemPossible causeFixHow to verify
Agent never finishesNo end stateDefine what finished meansIt stops at the finish line
Agent approves its own workNo separate checkUse a different checkerIndependent check
Agent loopsNo failure capAdd a limitStops after the limit
Touches things it should notNo boundariesList off-limits itemsStays in scope
Stops too earlyRules too tightLoosen one ruleCompletes the job

09 — FAQ

Common questions

Do I need a verifier for every task?

For anything you will rely on, yes.

Can the verifier be me?

Yes, if you review the result against the end state.

What is a good failure cap?

Two to five attempts, depending on the task.

10 — What next

Where do you go from here?

Hand an agent a complete job brief and give an AI more responsibility in levels.

Related guides

Sources

Based on my notes from reviewing public AI training material (free written guides and YouTube lessons by several creators), expanded with my own explanations, examples, steps and checks, and reorganized into an independent LCGIS guide. Example prompts were written for this guide. Tool names appear only as examples; check any product-specific detail against that tool's current documentation.