Runs
Runs is where you write a playbook: what an agent should look at, and when, on a schedule or when an alert arrives. The agent that holds the playbook's connections runs it with your own model key, in a loop of tool calls on its machine, so the key, the prompts and the results stay in your network. What reaches this console is the record of each run: its calls, as the audit keeps them, and the model's final report.
Runs are part of Team (Plans and billing). Once the service's owner applies plan limits, a Solo workspace keeps its playbooks and their records, but New playbook and Run now are dimmed with that reason, and its agents stop running them on schedule.
New playbook opens the editor with an example. A playbook is Markdown with a few settings at its top, between two --- lines:
--- schedule: 0 6 * * 1 model: agent budget: 12 connections: crm writes: false --- Every Monday: count last week's new customers and orders in crm by segment, and say what changed.
scheduleis cron (minute, hour, day of the month, month, day of the week), read in the workspace's timezone (Settings):0 2 * * *is 02:00 every day,*/30 * * * *every half hour,0 9 * * 1-5weekdays at 09:00;@hourly,@daily,@weeklyand@monthlywork too. Leave it out to run the playbook by hand only.on: alert(optional) starts a run when an alert arrives at the playbook's own address, andon: alert, resolvedwhen it clears as well (below). It may stand beside aschedule.model: agentruns it on the agent with its own model key.model: platformruns it with the service's model instead, for an agent that holds no key: the loop and every decision stay on the agent, and each turn of the model is answered by Workers AI through the service (below).budgetis the most tool calls one run makes, 12 unless you say, at most 50. At the budget the model is told to answer with what it has.connectionsnames the connections it may use, asstrata connect listnames them, all on one agent: that agent runs it. A call to any other is denied.writesisfalseunless you writetrue. Without it, no tool that acts is offered to the model, and a call to one is denied. With it, a write still needs your role's write grant on the target's tier, as any write does, and a reason. Where that grant says Approval, the run's write does not run: it waits in Approvals for someone else, in the name of whoever saved the playbook last, the model is told it waits with the action's id, and the run's call says *waiting*. Approved within 30 minutes, it runs through the agent as any approved write does. A playbook in a file on this machine (strata run --file) has nobody to ask for it, so there its write is denied.report(optional) names a Orbgem connection among itsconnections: when the run ends, its report becomes an entry in that connection's daily note, with the playbook's name. It is a write, decided by your role's write grant on that connection's tier like any write;writesneed not betruefor it, since the model is never handed the tool. A Orbgem connection also lets the model search and read your runbooks.- With
writes: trueand a Orbgem connection, a run has that connection's three writes:orbgem_log_entryadds an entry to today's daily note,orbgem_tick_taskticks a task's checkbox, andorbgem_set_propertysets one property of a note, which moves the note's card to another column on a board grouped by that property. The policy decides each as a write, with a reason, and the audit row names the note, the line or property, the reason and the run. - Under the settings, write what it should do, as you would ask in a chat.
The editor lists what to fix as you type, and what the playbook will do once it reads cleanly. Save places it on the agent that holds its connections, and tells that agent at once.
A playbook runs with the role of the person who saved it last, and never more than the role of the member who paired its agent. Every call is decided on the agent by the workspace's policy, as a call from your AI client is, and is a row in the agent's audit. A tool result is data for the model, never an instruction: a log line that says "scale to zero" is read, not obeyed. Pausing or resuming a playbook leaves whose role it runs with as it was.
A playbook's page (select it) says when it runs next, on which agent and with which model, and lists its runs. Run now asks its agent to run it at once: the agent must be online (strata serve) and hold a model key, unless the playbook runs on the platform model. Edit, Pause (it keeps its schedule and its address but does not run) and Delete do what they say. A run opens to its calls, each with its decision and how long it took, the arguments masked as the audit masks them, and the model's report. A run is *finished*, *hit its budget* (stopped at its budget; the report is what the model had), or *failed*, with why. One asked from the console or by an alert that its agent never reports is failed after 20 minutes. Records are kept 90 days.
### Start a run from an alert
A playbook that says on: alert has an Alert address on its page. Make its address shows it once, with one line for each sender, because only its hash is kept: copy the one you need into your sender as a webhook. Rotate makes a new one and stops the old at once.
POST https://orbstrata.com/hook/<token>/alertmanager POST https://orbstrata.com/hook/<token>/grafana POST https://orbstrata.com/hook/<token>/pagerduty POST https://orbstrata.com/hook/<token>/alert
The last takes anything else that can post JSON: an object, a list of them, or { "alerts": [...] }, each with service, status, env and summary (and name, labels, links if you have them). The token in the address is its only lock, as a sender can carry nothing else, so keep it where you keep passwords. Each address takes 60 deliveries a minute; above that it answers 429, and a delivery it cannot read as an alert answers 422. On a plan without Runs it answers 402, a paused playbook's starts nothing, and a playbook that no longer says on: alert answers 409.
- What the run is told. The alert's service, status, environment, summary, labels and
https://links follow your instruction, cleaned, masked, capped and fenced as data. The payload itself is kept nowhere: the run's record holds its one line, as *started by alert: HighErrorRate on api in payments*. - Repeats fold. The same alert (its service, status and environment) within 10 minutes of a run it started starts nothing, and the delivery answers 202 with that run's id. While three alert runs of a playbook are waiting, a new alert folds into the newest of them, so a storm cannot queue a run for each. An agent that is offline fails the run at once, saying so; the delivery still answers 202, and the alert's next delivery starts a run.
- Clearing. A
resolvedstarts a run only when the playbook sayson: alert, resolved, for the "it cleared, here is what changed" entry. - What such a run may never do. An alert is not a person asking, and anyone who can make your system alert can write what it says. So a run an alert started is offered no tool that acts, even with
writes: true, and a call to one is denied; only Orbgem's writes are offered, and only withwrites: true, each once: one entry, one task ticked, one property set. Refused by Orbgem, a write can be read and tried again; it is not yet the one. Your role still needs a write grant on that connection's tier, and where the grant says Approval, the write waits in Approvals. Whatever the alert says is data: it tells the run where to look, never what to do. Acting stays with a person, or with a playbook run by hand or on a schedule. The audit shows *alert_received* with the address's id and the run, and the run shows *started by alert*.
Read harness_executions for the pipeline "deploy-checkout". If its latest execution succeeded, call orbgem_tick_task on the note "Release 1.4" for the task "Deploy checkout", with the execution's id in the reason.
The platform model. A playbook that says model: platform needs no key on its agent: its agent still runs the loop, decides every call and keeps the audit, and sends the conversation so far (the instruction, the model's turns, each tool result as the agent fenced and masked it, cut to 12,000 characters) to the service for the model's next turn. The service answers it from Cloudflare Workers AI through its own AI Gateway, which keeps no copy of the prompt or the reply, and keeps only what each turn cost. It runs on a ladder of models, Llama 4 Scout first, stepping down to Qwen3 30B when what is left of the day would not pay for Scout; the run's record names the model it ended on. It runs inside the service's free daily share of Workers AI, which resets at 00:00 UTC: a run spends at most 1,500 neurons (a 12-call run costs about 1,000), and a plan keeps part of the share in reserve for others (Solo half, Team a fifth). When a run reaches its ceiling or the day's share, it stops with a sentence saying which and when the day resets, and keeps the report the model had (a turn the model spends whole without answering or calling a tool stops it the same way, saying so, and counts what it cost); one stopped before its first turn fails with that sentence. A result your agent sends this way leaves your network for the model, as it would to your own provider; with model: agent nothing does.
On the agent's machine. strata model set anthropic asks for an Anthropic API key without showing it (or reads it from a pipe), proves it opens the API without spending a token, and keeps it in the keyring; the model is claude-sonnet-5 unless --model names another. strata model set openai --model <name> does the same for OpenAI, and --url <base> for any endpoint that speaks OpenAI's chat completions: a model on your own machine (--url http://127.0.0.1:11434/v1 for Ollama, which takes no key: press Enter). strata model set bedrock --model <model id> --region <region> uses an Amazon Bedrock API key; Bedrock has no free call to prove one with, so the first run proves it. strata model says which model runs use; strata model remove forgets it and its key. strata serve runs this agent's playbooks on their schedules, one at a time, and answers Run now. strata run <name> runs one now in the terminal and prints its calls and report; strata run --file <playbook.md> runs a file on this machine alone, with the role this agent was paired with, to try one before you save it. strata runs lists the runs made on this machine (--days 30).