STRΛTΛ19

Routines

Run repeatable, resumable project workflows with explicit approvals and receipts

What it does

A routine is a versioned workflow graph: a definition declares action nodes and the edges between them, a run advances through those actions one at a time, and a receipt records what each step actually executed. Publishing a definition and starting a run are two separate decisions — a published routine does not run itself, and nothing here is triggered by a timer or a file save.

strata19.automation_run drives a run: start, get_next_action, submit_action_result, pause, resume, cancel, get_receipts, and more. strata19.automation_author (list_definitions, get_definition) inspects the live registry of what is available to run — this page covers running an already-published routine; drafting, validating, and publishing a new one is Author routines. strata19.automation_approvals grants the durable, persisted approval a routine's human_gate actions require before they can dispatch — a routine can never grant itself one.

See the routine catalog for the current bundled list — this page does not repeat it, so the two cannot drift apart.

When to use it

Use strata19.automation_author (list_definitions/get_definition) to see what a routine actually does — its declared actions and which of them are locally dispatchable — before starting it. Use strata19.automation_run (start) once you have decided to run a specific, already -published workflowKey and version. Use strata19.automation_approvals (grant) only when a human has decided in advance to pre-authorize a gated step, for a driver identity other than the one that will consume the grant.

Do not assume a routine's action names imply they all dispatch to real work — some report a typed, honest unsupported outcome instead (see Limits). Do not treat a step's own claimed status: "success" as proof — for a dispatcher-bound action, the engine independently re-derives the real outcome rather than trusting the caller's claim. Do not report a run complete from a step's return value; read strata19.automation_run's get_receipts instead.

How to use it

Inspect what's available before starting anything. A real call against this repository returned one representative entry (of the full catalog):

Call — strata19.automation_author
{ "action": "list_definitions" }
Response (one routine, excerpted)
{
  "workflowKey": "routine.security-sweep",
  "name": "Security Sweep",
  "description": "Run the native taint-based security detectors and compiler-backed semantic detectors over the project. The periodic trigger surfaces a due reminder every 7 days — it never auto-runs the scan; starting it always remains an explicit action.",
  "autonomyMode": "review",
  "availability": {
    "freeLocal": true,
    "premiumRequired": false,
    "perAction": [
      { "actionKind": "run_native_security_analysis", "minimumTier": "free-local", "locallyExecutable": true }
    ]
  }
}

availability.perAction states, per action, whether it dispatches locally at the free tier — the honest answer, not an assumption from the routine's name.

Start a run of a published routine:

Call — strata19.automation_run
{ "action": "start", "workflowKey": "routine.security-sweep", "version": 1 }

Advance it, one pending action at a time:

Call — strata19.automation_run
{ "action": "get_next_action", "executionKey": "exec-..." }

Grant an approval only when a gated step needs one, from a different driver identity than the one that will consume it:

Call — strata19.automation_approvals
{
  "action": "grant",
  "targetActorId": "driver-b",
  "actionAllowlist": ["create_commit"],
  "scope": { "kind": "branch", "value": "feat/checkout-v2" },
  "riskLevel": "low"
}

Pause before disconnecting, and read receipts rather than trusting a step's own claim:

Calls — strata19.automation_run
{ "action": "pause", "executionKey": "exec-..." }
{ "action": "get_receipts", "executionKey": "exec-..." }

Parameters

Prop

Type

strata19.automation_author requires action (list_definitions, get_definition, plus the authoring actions covered on Author routines) and, for get_definition, a workflowKey. strata19.automation_approvals requires action (grant, revoke, list_grants, list_audit) and, for grant, targetActorId, actionAllowlist, scope, and riskLevel — targetActorId can never equal the identity issuing the grant.

What you get back

strata19.automation_author (list_definitions) returns each routine's workflowKey, name, description, autonomyMode, and availability (including the per-action dispatch table shown above). strata19.automation_run (start) returns an executionKey to drive the run with; get_next_action returns the pending step; get_receipts returns every receipt recorded for the run, including a server-computed attestation (tool name, output digest, dispatch id) when the step's action kind has a real dispatcher binding.

Limits

Not every declared action kind dispatches to real work. strata19.automation_run reports a typed, honest unsupported outcome for an action kind with no local binding rather than fabricating a result or silently no-opping — some of those have a real implementation elsewhere that this local dispatcher cannot reach (tenant-scoped, needs network/unattended runtime, or conflicts with the action's own declared contract), and the response's reasonCode says which. A step's claimed status: "success" is not trusted for a dispatcher-bound action kind — the engine re-dispatches the real tool and derives the actual outcome. Publishing a routine with an agent-supplied approving decision is rejected outright, every time; publication is a human decision. A periodic trigger declaration is never a background scheduler — it surfaces a due reminder at an existing touch point (starting a routine, listing resumable runs) and never starts anything by itself.