Expand description
Run block: runs a fixed command line in a container (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.6).
Block config (node.data):
commandrequired, a list of strings: the program and its arguments. It is an argv, run directly, never through a shell: no pipes, no expansion.envoptional, an object of environment variables.cwdoptional, a directory inside the container.imageoptional, the container image; this AgentMux’s base image when absent.where"container"(the default)."host"is refused: it needs a named allowance that this build has no way to give.ok_exit_codesoptional, the exit codes that are not a failure ([0]when absent).timeout_secondshow long it may run: 5 minutes when absent, at most 60 minutes.
The command line is never built from outside text. Every {{reference}} in command, env
and cwd must read a clean value (written in the graph, or a number or id made of it); one that
reads text from outside the drone (an event, a web response, an agent’s answer, or a number
worked out from one) is refused when the block runs.
The container has no network, no mounts, a read-only root, no capabilities and limits on
memory, processes and CPU (backend::container::oneshot). Mounts, network hosts and secrets are
not supported yet: a block that asks for them is refused, so none is given by mistake.
Output: { "exit_code", "stdout", "stderr", "duration_ms", "truncated" }, with stdout and
stderr cut at 64 KB. All of it is outside text (the block’s output is tainted). An exit code
that is not in ok_exit_codes fails the block.
Structs§
- RunSpec 🔒
- A command, with its references still to fill in.
Constants§
- ERROR_
TAIL_ 🔒CHARS - How much of stderr is put in the error of a block that failed.
- MAX_
TIMEOUT_ SECONDS - The longest a Run block may be given, in seconds.
- NOT_YET 🔒
- What a block asking for these gets, until they are supported.
Functions§
- check
- The block is set rightly. Called when a graph is checked.
- compose 🔒
- What to run, with every reference filled in; refused when one reads outside text.
- outcome_
of 🔒 - What the command came to, as the block’s output; a code that is not an ok one fails the block.
- parse 🔒
- The block’s settings, as written. Pure: nothing is filled in or run.
- run
- tail_
line 🔒 - The end of
texton one line.