Skip to main content

Module graph

Module graph 

Source
Expand description

The Drone graph a template carries in graph.json (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md, “What is a template?”).

A graph is checked when the package is read, so a template that names a node this build does not have is invalid in the list, with the node named, and never reaches the operator’s approval. summarize is what the approval prompt shows of the graph itself: how many nodes, how many of them start an agent, and every call that writes outside AgentMux.

Structs§

DroneSummary
What the approval prompt shows of a template’s graph.

Constants§

MAX_EDGES
MAX_NODES
The most nodes and edges a template graph holds.

Functions§

approval_guards_every_write
Whether the graph has a node that writes outside AgentMux (an API call that is not a read) and an Approval block stands on every path to each of them, so no run reaches a write without a person’s yes. False when it has no such write, or one of them can be reached without passing an Approval.
check
A graph this build can hold: within its limits, every node of a kind it has, every edge between nodes that exist.
credentials
Every Vault entry the template reads a credential from, as where: entry: an auth.vault on a node or anywhere in the trigger (its poll’s filter), whether the entry is a literal id or a {{param.x}}. This is what the template does, whatever its manifest’s secrets says.
param_names
The parameter names the graph uses, each of which the manifest must declare.
param_names_in
The parameter names a JSON value’s strings use (a template’s trigger default), each of which the manifest must declare.
parse
graph.json read and checked.
render
The graph with each {{param.NAME}} replaced by its parameter’s value (the given one, else the default). The values go in once and are never read for placeholders. A {{ that a value contains, or that a value forms with the text next to it, is refused: the drone’s own templating would read it at run time.
render_value
value with each {{param.NAME}} in its strings replaced, for a template’s trigger default: the repository a poll asks about is the one the drone’s calls name. params are the resolved ones.
summarize
What the prompt shows of a checked graph. An api node that is not a plain read writes outside; a Spawn node starts an agent, so it counts with the Agent nodes; the other nodes this build has stay inside AgentMux (a message goes to an agent on this computer).