Execution surfaces for Automations
An Automation execution is always one of three surfaces:- agent-session: persistent chat thread for a single automation run
- mission: full multi-step mission runtime with workers, gates, and artifacts
- built-in-task: ADE-native synchronous job without a full mission lifecycle
agent-session
agent-session
A lightweight, single-thread session created for the automation run.
- Starts from a single prompt and optional system context
- Runs through the normal chat runtime with ADE-scoped tool access
- Produces normal agent messages and tool events
- Best when you need direct, low-latency automation output
Agent-session runs are recorded as automation-only chat threads. These threads are visible from Automations → History.
mission
mission
A full mission runtime for work that needs validation gates, parallel workers, or durable workflow history.
- Planner and phase logic
- Retry and intervention handling
- Worker lifecycle and lane-affinity tracking
- Artifacts, step events, and intervention feed
built-in-task
built-in-task
A structured ADE-native task for short, deterministic work that does not require agent memory.
- No full mission thread
- Useful for refreshes, status checks, and prebuilt operations
- Strongly typed inputs/outputs
- Consistent with other background ADE tasks
Choosing a surface
Pick the surface based on required control and operational cost:| Surface | Best for |
|---|---|
agent-session | lightweight checks, short summaries, deterministic text outputs |
mission | multi-step code changes, PR/open/merge flows, long-running workflows |
built-in-task | one-off built-in operations and maintenance checks |
Building automation rules
When creating a rule:- Pick a time-based or action-based trigger.
- Pick one execution surface for the initial run:
agent-sessionfor quick AI outputsmissionfor complex or risky workflowsbuilt-in-taskfor internal operations
- Set a tool palette and memory policy.
- Configure guardrails and budget mode in Settings defaults.
- Add verification behavior and output routing.
agent-session, you can still attach outputs to artifacts, PR notes, or Linear updates through output routing options.
Example flows
-
PR reviewer
- Trigger:
git.pr_opened - Execution:
agent-session - Output: Automation thread in history + optional PR comment
- Trigger:
-
Nightly test sweep
- Trigger:
schedule(0 8 * * 1-5) - Execution:
mission - Output: Mission artifacts + validation findings
- Trigger:
-
Cache cleanup
- Trigger:
github.webhook - Execution:
built-in-task - Output: Internal usage and history marker with a status event
- Trigger: