All 14 step types: what they take, what they write, and how they fail.
These are app-owned authoring types, not Platform opcodes. Provider/configuration examples compile to closed syntax; the new inline-template example illustrates that boundary.
For the model behind them — the chain, the three gates on a human step, why the categories do not predict behavior — see steps.
Categories match STEP_TYPE_META in applications/main/src/operator-ui/metadata.ts, which the editor
palette and the runner both read.
Known failures have library-specific soft-warning, terminal-failure or explicit recovery/backoff policies. An uncertain post-dispatch outcome instead holds for reconciliation; it is not blindly retried. See deployment bindings.
All non-human activity bodies execute through the generic worker. Source type names do not select native runtime handlers. The old per-handler exception table no longer describes the architecture.
Retired types. telegram_notify and request (the Gemini-backed AI request) were removed and
cannot be authored. Stored runs that contain them still display. A run pinned to an execution that
still has a Telegram send finishes that step with the usual "not configured" delivery warning.
input — FormThe only step that waits for a person.
{
key: "input_description",
type: "input",
title: "Provide Description",
permissions: [],
nextStepKey: "review_description",
inputs: [
{ key: "_view_0", type: "string", title: "Feedback from OEA",
readOnly: true, defaultValue: "${review_description.description_review}" },
{ key: "description", type: "string", title: "Describe why you need a new Halo" },
],
confirmationMessage: "Thank you. A member of the OEA team will be in touch.",
}
| Config | inputs[], permissions[], completeExpression? |
| Writes | the fields you defined, under context[stepKey] |
| Advanced by | a user completing the step |
permissions[] gates who may edit. completeExpression gates whether the step may be
finished — a separate question, with hasPermission("name") in scope. Individual
fields may carry their own permissions[]; writes are filtered to permitted keys.
See field types.
sendBack)In a loose-mode template a step's fields can be edited after the process has moved on. When a later decision depends on one of those values, the step can declare that changing it reopens the decision (spell-request v19: moving an item to another Executive Vote sends it back to Prepare strategic review):
{
key: "s01_deal_registration", type: "input", /* … */
// Execution authority: an edit that changes assignedCycle while the process is at Prepare or later
// sends it back to Prepare, removing these fields.
sendBack: {
fields: ["assignedCycle"],
when: 'currentProcess.currentStep === "s08_prepare_strategic_review" || …',
stepKey: "s08_prepare_strategic_review",
clear: { s08_prepare_strategic_review: ["holdBack", "holdBackReason", "holdBackOutcome"], s09_strategic_decision: ["decision", "decidedBy", /* … */] },
},
}
sendBack compiles to the execution's ActivityBinding.sendBack (it changes the digest, so a versioned template
needs a new version). Registration checks that the step is an input step, that fields are its own, that stepKey
is another input step and that every cleared field is declared on its step. At runtime it applies only to an edit of
a step that is not the active one (completing a step never sends back), only when the edit changes one of fields
(an absent, null or empty value is no value; writing the same value again is not a change) and only when when
holds against the process as it was before the edit. Then, in the same compare-and-set as the edit: the open visit is
abandoned, the clear fields are removed, the target step's bucket gets sentBack: { at, from, fields, userId, name }
(from: the step the process was at), and the process re-enters the step graph at stepKey (as a migration and a
manual entry do) and waits there for input. The edit, every cleared value and the marker are field-audit entries
under the editor; earlier values stay in the field audit (when they were recorded) and the state audit's before
image. The process must be at rest: waiting for input, or between effects in a step that is safe to restart (the
manual-entry rule); with a check in flight the whole edit is refused (409 checking) and nothing is written. The
editor needs only the field's own permissions: the template's declaration is the authority for the rest.
No credentials, no network.
condition — Decision{
key: "review_description_condition",
type: "condition",
title: "Review Description Condition",
expression: "review_description.description_review_ok === true",
thenStepKey: "input_risk_model_availability",
elseStepKey: "input_description", // ← backwards = rework loop
nextStepKey: null,
}
nextStepKey is ignored. Pointing elseStepKey at an earlier step builds a loop; each
pass appends another ProcessStep.
File: entities/template/condititon-template-step.ts (misspelled in the repo).
automatic — Set context{
key: "derive_total",
type: "automatic",
title: "Compute total",
contextKey: "total",
expression: "amounts.a + amounts.b",
nextStepKey: "review",
}
Writes the evaluated result to contextKey. Not used by any shipped template.
wait — Wait{
key: "wait_until_monday_8pm_utc",
type: "wait",
title: "Wait until Monday 20:00 UTC",
waitUntilExpression: "nextUtcWeekdayTime(1, 20, 0)",
nextStepKey: "execute_safe",
confirmationMessage: "Monday 20:00 UTC reached — proceeding to auto-execute.",
}
Evaluated once on arrival and stored as context[stepKey].waitUntil. The worker
skips the step each tick until that time passes.
Both use the soft contract for logical failures — a bad channel, a missing token — recording the outcome and letting the run continue.
The outcome is stored one level in, under the runner's own key:
context["notify"] = {
slackNotify: { at, ok, error, channelId, resolvedChannelId,
resolvedMentionUserIds, skippedNotInChannel, … },
}
Read it with stepAutomationOutcomes() from lib/automation-outcome.ts rather than
reaching into the bucket — context["notify"].ok is always undefined, which is how a
failed send once rendered as a green tick.
A transport failure is different: the fetch is unguarded, so a network error throws
and the step is retried instead.
slack_notify{
key: "notify",
type: "slack_notify",
title: "Notify team",
channelId: "ops-notifications",
mentionUsers: ["ops@soterlabs.com", "signer@soterlabs.com"],
messageExpression: '"Intake form completed."',
nextStepKey: null,
}
| Credentials | SLACK_BOT_TOKEN |
| Preconditions | the bot must be in the channel; private channels must be joined to be listable |
| Writes | slackNotify: { ok, error?, channelId, resolvedMentionUserIds, skippedNotInChannel } |
channelId takes a C…/G… id or a channel name with or without #. Mentions accept
emails (resolved via users.lookupByEmail) or U… ids — only users already in the
channel are mentioned. mentionUsersExpression overrides the static list, which is how
you notify a signer chosen on an earlier step.
All fail the run.
template — Closed composition{
key: "calculation", type: "template", title: "Calculate",
body: { tag: "pure", expression: { tag: "literal", value: { value: 1 } } },
contextMode: "merge", errorPolicy: "fail-process", nextStepKey: null,
}
The complete body is inspectable syntax. Imported library builders may construct it at authoring
time; no runtime JavaScript source or native callback is admitted. Historical script nodes require
explicit offline conversion to closed definitions. Unknown source is rejected.
A body that keeps checking something (a watcher: look, sleep on a timer, look again) can declare two more things (#129):
{
key: "s13_watch_forum_thread", type: "template", title: "Find the forum thread",
body: watchForumThread(), contextMode: "replace", errorPolicy: "fail-process",
// Execution authority: while the step rests between checks, the people who complete
// s13_publish_technical_scope may stop it and enter the value there by hand.
manualEntry: { stepKey: "s13_publish_technical_scope" },
// Display only: how pages describe the wait.
waiting: { lookingFor: "the Prime's proposed changes thread …", everyMinutes: 15, forDays: 21 },
nextStepKey: "s13_publish_technical_scope",
}
manualEntry compiles to the execution's ActivityBinding.manualEntry (it changes the digest, so a
versioned template needs a new version). Its stepKey must be an input step. The runtime command
enterManually (POST /api/process/{id}/steps/{stepId}/enter-manually) is accepted only while the
step rests between effects (asleep on its timer or a scheduled retry, or just entered with nothing dispatched
yet: never with a check in flight or a hold), only in a step that is safe to restart (every effect is safe to repeat), and only from someone who
may complete stepKey. It ends the step, re-enters the step graph at stepKey (no timer or effect is
left pending, so no late result can land) and records who ended it: the step's visit is completed by
them and its bucket gets enteredManually: { at, userId, name }, in the state and field audit. One
compare-and-set on the checked revision: if the worker woke the step first, nothing is written (409).
The process view's automaticWait says what the process waits on (nextCheckAt, checking) and
whether the viewer may enter it by hand; the runners render it in plain words with the button. A step whose
compiled body only computes, reads and writes process state and reads the time and the process's details (a
condition, #201) waits on nothing and has no automaticWait, unless one of those reads failed and is
scheduled to retry.
fan_out — Start children and wait for them{
key: "fan", type: "fan_out", title: "Check every signer", templateKey: "signer-check",
items: "setup", seed: "({ signer: item, position: index, batch: p01.batch })",
require: "all-succeeded", nextStepKey: "done",
}
Starts one child run of templateKey per entry of the items list (at most 50), each seeded from
seed (item and index name the entry), then waits until every child has ended (Phase 5 slice F).
A repeated start returns the existing child, never a second one. The output lists each child's
processId, templateKey, status (completed, failed, abandoned or missing) and outcome
(the value its template declares). require: "all-succeeded" fails the step when any child did not
complete; "all-settled" passes every result on. Known failures: join-not-own-child,
join-request, join-too-large. Abandoning the parent abandons its open children, and a child that
fed a join cannot be reopened.
dune — Dune Query Read{
key: "fetch_rates",
type: "dune",
title: "Read latest rates",
queryId: 3421567, // from dune.com/queries/{id}
nextStepKey: "compute",
}
Credentials: DUNE_API_KEY. Writes context[stepKey] = result.rows, all pages merged
— an array, not an object, unlike every other type.
sheets_append_row{
key: "log_payment",
type: "sheets_append_row",
title: "Append to payments sheet",
spreadsheetId: "1AbC…", // from /d/{id}/ in the URL
sheetGid: 0, // from gid= in the URL
valueExpressions: ["todayIsoDate()", "payment.amount", "payment.recipient"],
nextStepKey: null,
}
Credentials: GOOGLE_SERVICE_ACCOUNT_JSON (or _EMAIL + _PRIVATE_KEY). The service
account needs edit access to the sheet. Use sheetName when you do not have the gid.
notion_create_database_item{
key: "record_in_notion",
type: "notion_create_database_item",
title: "Record topup in Notion",
databaseId: CURVE_TOPUP_NOTION_DATABASE_ID,
items: [{
properties: {
Payment: { type: "title", expression: 'todayIsoDate() + " — Skybase Curve IB"' },
},
}],
nextStepKey: null,
}
Credentials: NOTION_API_KEY. The integration must be shared with the database.
Each entry in items[] creates one page. Property types: title, rich_text, number,
select, multi_select, date, url, checkbox, email, phone_number, and the id
kinds people (Notion user ids), relation (page ids) and status (a status name). Rows from
itemsExpression are appended after the static items and require propertyTypes.
The Notion integration (@processos/integrations/declarative) also provides page and user
programs for template steps: createNotionPage, updateNotionPage, appendNotionBlocks,
getNotionPage and findNotionUserByEmail, plus notionParagraphs/notionHeading for page
bodies. Each answers a Notion refusal as { ok: false, error } rather than failing the run; the
deployment's notion credential allows GET, POST and PATCH on the Notion API.
follow-up-task-sync is the run behind a process's follow-up lists (followUps in a
template's presentation; see permissions): one run per tracker operation
for one (follow-up, person) task — create the task in [DB] Tasks (Name from the first line,
Status To Do, Assigned To, Project, Context, the text and a From: line as the body), update
its name and assignee after an edit (the new text is appended, nothing rewritten), set Status
Cancelled when the person or the entry is removed (never deleted), or read its status back. Only
the ProcessOS account starts it (processes:sync-follow-ups, its sole start permission); the
step runner's follow-up tick decides which runs to start and records each run's answer on the
item's task. It is off until the deployment configures the tracker.
database_read{
key: "load_vendors",
type: "database_read",
title: "Load vendors",
collectionKey: "vendors",
filterExpression: '{ active: true }', // optional; omit / {} = all
limit: 100, // optional; default 100
nextStepKey: "next",
}
Reads from the document database. Writes
context[stepKey] = { documents: [{ _id, …fields }], count }. Fails the run if the
collection is missing or the filter expression is invalid.
database_write{
key: "save_vendor",
type: "database_write",
title: "Upsert vendor",
collectionKey: "vendors",
mode: "upsert", // insert | update | upsert
documentExpression: "{ name: form.name, active: true }",
documentIdExpression: "form.vendor_id", // optional
filterExpression: '{ name: form.name }', // optional; required (with/instead of id) for update/upsert
nextStepKey: null,
}
Writes to the document database. When both id and filter are
set, id wins (single document). Filter alone updates all matches. update fails
if nothing matches; upsert inserts in that case. Result:
{ mode, matched, upserted, documents }.
safe_execute{
key: "execute_safe",
type: "safe_execute",
title: "Auto-execute Safe transaction",
safeAddress: SKYBASE_SAFE_ADDRESS,
safeTxHashExpression: "execution.curve_safe_tx_hash",
chainId: 1,
privateKeyEnv: "SAFE_EXECUTOR_PRIVATE_KEY",
rpcUrlEnv: "ETH_RPC_URL",
nextStepKey: "record_in_notion",
}
| Credentials | SAFE_EXECUTOR_PRIVATE_KEY, ETH_RPC_URL, SAFE_API_KEY |
| Preconditions | the Safe tx must already be signed to threshold; a Transaction Service URL must exist for chainId |
Fetches a pre-signed multisig transaction from the Safe Transaction Service and
broadcasts execTransaction. Any EOA may execute once threshold is met — the executor
key pays gas, it is not a signer.
privateKeyEnv and rpcUrlEnv name which env var to read, so one deployment can hold
several executor keys.
Credentials and RPC/service endpoints are deployment bindings. Missing capability configuration is diagnosed when used; it must not alter the immutable compiled definition. See deployment bindings.
The public Process status still preserves running/completed plus error. enabledExpression remains
round-tripped metadata, not an execution gate. Stronger reconciliation/retry policy and production
cutover verification remain explicit work; see current status.