By default, each workflow step runs in sequence and passes its output to the next step. Routing rules let you alter that flow based on the engine’s output or a fixed condition.Documentation Index
Fetch the complete documentation index at: https://docs.mira-app.dev/llms.txt
Use this file to discover all available pages before exploring further.
Rule structure
Each routing rule has three fields:| Field | Description |
|---|---|
| Action | What to do: continue, retry:N, or skip |
| Trigger | When to apply the action: auto or a keyword/phrase to match in the step’s output |
| Condition | Optional: contains, does_not_contain, always |
Actions
- continue
- retry:N
- skip
continue
Move to the next step immediately. This is the default behaviour — adding an explicitcontinue rule lets you attach a trigger condition to it.Example: Continue only if the output contains “APPROVED”:Auto trigger
Set Trigger toauto to apply the action unconditionally at the end of the step.
Multiple rules
A step can have multiple routing rules. MIRA evaluates them top-to-bottom and applies the first rule whose condition is satisfied. If no rule matches, the defaultcontinue behaviour applies.
Example: Quality gate with retry
This configuration retries the “Summarise” step up to two times if the output is shorter than expected:Edit this page — Open a pull request