Missions, workflows and schedules
Schedules is the product name for time and event triggers. This is distinct from the Automations app, where specialists teach repeatable tasks. Developer contracts keep their existing names: automations/*.yaml, automation_* tools and /api/v1/automations routes.
| Use it for | Owned by | |
|---|---|---|
| Mission | A standing goal that needs judgment ("no Contoso deal goes quiet for ten days") | One agent |
| Workflow | Fixed steps with a person's approval where it matters | The workspace |
| Schedule / event trigger | When something runs: a schedule or an event | The workspace |
Since 8.0, time and event triggers live in automations/*.yaml, shown as Schedules in the app. A mission says what it is for and where its result goes; a trigger says when it runs. A mission's own schedule: is an error in a version-2 workspace. See Upgrading to 8.0.
Mission
# missions/pipeline-watch.yaml
slug: pipeline-watch
name: Pipeline watch
goal: No open Contoso or Acme deal goes ten days without a next step.
agent: northwind-lead
successCriteria:
- Every open deal has a dated next step.
autonomyPolicy: { level: 2 } # 1–5, for planned runs
deliver: { email: true } # mail the result when a check finishes
A mission run plans, works, files asks and produces artifacts under review. Start one from chat, /dashboard/missions, or the MCP tool mission_start.
deliver sends the result when a check finishes: the briefing the check published is mailed (true is the workspace's accountable person, or give a list of addresses). A check that published nothing sends nothing; a failed check sends a short note with the reason and the run, never an older briefing. autonomyPolicy.level gates what a planned run may do; what a check may do unattended is set by the trust rules (trust.yaml).
Workflow
# workflows/send-followup/workflow.yaml (this exact path)
slug: send-followup
name: Send follow-up
trigger: { type: manual } # manual | event | schedule (deprecated)
steps:
- { name: refresh, type: sync, sources: [hubspot] }
- { name: confirm-recipient, type: ask, prompt: Who should receive this?, outputAs: recipient }
- { name: review, type: approve, prompt: Approve the follow-up email. }
- { name: send, type: action, action: gmail.send, input: {} }
Step types: approve, ask, action, sync. Approve and ask steps put an item on Review and the run waits, durably, until someone decides. Start a run with POST /api/v1/workflows/{slug} or workflow_run_start.
Schedules and event triggers
# automations/weekday-check.yaml
slug: weekday-check
label: Weekday pipeline check
agent: northwind-lead
when:
schedule: '0 6 * * 1-5' # 5-field cron
timezone: workspace # or an IANA zone; holds across daylight saving
do:
checkMission: pipeline-watch
prompt: List deals with no next step and file one ask per owner.
# automations/new-request.yaml
slug: new-request
when:
event: [object.created, object.updated]
filter: { objectType: deal } # matches fields of the event payload
maxFiresPer10m: 6 # default 6
do:
workflow: send-followup
when takes exactly one of schedule or event (a name or a list). timezone goes with schedule: an IANA zone, or workspace for the workspace's defaults.timezone. With neither, a version-2 workspace reads the schedule on its own zone; a version-1 workspace reads it in UTC. do takes exactly one of workflow, checkMission or job, plus input. prompt and requireTool only go with checkMission. Post your own events with POST /api/v1/events. Pause and resume a trigger from /dashboard/schedules or POST /api/v1/automations/{slug}/pause.
How they run
Schedules, workflows, missions and background jobs run on a durable executor (DBOS) inside the app, in a durable schema of the app's own Postgres. There is no separate workflow server. Exactly one app process must set VOCION_SCHEDULE_OWNER=1; it fires schedules once per tick (missed ticks are not replayed) and runs housekeeping. DURABLE_EXECUTOR=off turns the executor off for a process.
Every fire, scheduled or from an event, goes through the same guards: a run log, an overlap guard, a hold while the work waits on a person, pause and retry. /dashboard/schedules shows each trigger's next run and its last outcome, and a skipped tick says why.
Upgrading to 8.0
8.0 is a breaking release. Migration 0220 runs with the deploy: it backs up every schedule, pins the ones with no time zone to UTC (what they always meant), and moves each mission schedule to an automation named <mission>-check. Run workspace:apply right after the deploy.
Move each workspace repo to version: 2 with the codemod. It prints a diff first and is safe to run twice:
npm run migrate:automations -w @vocion/core -- path/to/workspace [--write] [--localize]
It sets version: 2, pins unzoned schedules to UTC (or, with --localize, moves simple ones onto the workspace's clock), turns a mission's schedule: into an automation or drops it where an automation already checks the mission, and turns a report mail timed after a check into the mission's deliver:. Version 1 still loads through 8.x with warnings and is removed in 9.0. See Release lines for rollback.