A Run can finish every step and still not do the job. The Outcome tab defines what "done" means. The Safety tab stops a Run before it goes too far.
Outcome: define success
On the Outcome tab, under What counts as done, you can set:
- Highlight 1: In your own words (optional): the plain-language check.
- Highlight 2: It is judged by AI against everything the Run produced.
- Results that must be present — named results, separated by commas. Any step can produce them, and a recorded action counts as proof.
- Results that must have a particular value — values those results must have.
- In your own words (optional) — a plain-language check, such as "The summary contains exactly one next action." The plain-language check is evaluated by AI against the Run. Treat its verdict as a signal to review—not proof that the task succeeded or that its facts are correct.
Click Save definition of done when you finish.
The verdict looks at the whole Run: every step's output and every external action, not only the last step. A Run whose steps all finished can still fail its outcome.
Reading the verdict
- The verdict is a second opinion, not a status change. A Run that finished every step stays completed even when the verdict says something was not met. Read the Run's output yourself and decide.
- If no verdict appears, refresh first. The verdict can take a moment after a Run finishes. Refresh the Run before you conclude it is missing.
- The checks use shortened evidence. Outcome checks can look at a shortened version of a step's output. If a verdict says text is missing or cut off, expand the step and compare its full output before you retry or change the workflow. If the verdict still disagrees with what you can see, ask your admin or contact support.
Keep it simple and measurable
Good outcomes can be checked without guessing:
Required result: summary
Required result: next_action
In your own words: The summary only contains facts stated in the run objective.Avoid vague goals such as "the summary is good." A check nobody can measure gives you a verdict nobody can trust.
For your first Loop
The first Loop returns no named results, so it uses only In your own words — a plain description of what a good summary contains. That check is judged by AI, so it will not pass every Run automatically. Treat a not-met verdict as a reason to read the output yourself, not as proof the Loop is broken.
Safety: set limits
Every Run has four limits. If a Run reaches one, it stops.
- Highlight 1: The Safety tab.
- Highlight 2: Max steps per run: 4
- Highlight 3: Token cap per run: 10000
- Highlight 1: Deadline (seconds): 300
- Highlight 2: Max external actions per run: 1 (not 0)
- Highlight 3: Click Save limits.
| Limit (field on the Safety tab) | Default | What it caps |
|---|---|---|
| Max steps per run | 25 | Steps a Run may perform, including revisits. |
| Token cap per run | 200,000 | Recorded AI usage in the Run. It may not include every hidden tool call an agent makes. |
| Deadline (seconds) | 3,600 (60 minutes) | Elapsed time, including time waiting for approvals. |
| Max external actions per run | 10 | Actions outside raia Command, such as sending messages or creating records. |
To change them:
- Open the Safety tab.
- Enter new values.
- Click Save limits.
- Publish the Loop. New limits apply to future Runs.
Choose your own limits
The defaults are generous. Lower limits catch problems sooner.
- Run several tests with realistic inputs.
- Open each Run and note the steps, tokens, and time it used.
- Set each limit a little above the highest value you saw.
- Set external actions to the number your Loop actually needs. Use at least 1, even for a text-only Loop.
For the two-step first Loop, the tutorial uses 4 steps, 10,000 tokens, 300 seconds, and 1 external action.
Do not set external actions to 0
Today, a Max external actions per run of 0 stops the Run before step 1 — even when every step only works with text. Use 1 instead. A cap of 1 does not add an action or make one happen; it is only a ceiling.
Worked example
The examples use fictional data. Follow the same checks with approved, non-sensitive information for your own task.
If Max external actions per run is set to 0 and the Run stops before any step, read Why it stopped. This text-only example needs a cap of 1 even though its steps do not take external actions; the cap is a limit, not an instruction to perform an action.
- Highlight 1: This run stopped without finishing
- Highlight 2: Why it stopped
With the cap set to 1, inspect the finished draft Run’s step output and confirm 0 external actions. Compare the output with the input facts. If the page still shows Working after the Run ends, reload to check the current status.
- Highlight 1: Step output
- Highlight 2: Tokens, steps and external actions
- Highlight 3: Loop version: Draft (test run)
Limits are a safety net, not a guarantee
Limits reduce risk; they do not replace approvals. Token and action counts reflect recorded usage; some agent tool work may not be counted perfectly. Keep an approval step in front of anything that matters.
Checkpoint
Your Loop has an outcome you can check, and limits based on tested Runs rather than the defaults.