Skip to main content

Module drone_agent

Module drone_agent 

Source
Expand description

The routes of the Drone tool (SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §6.5): an agent lists the drones on this computer, reads one, fires one with a payload, and reads its runs.

POST /api/v1/drone/{list,get,fire,runs} { agent_id, drone_id?, input?, limit? }

The agent’s token decides who acts; the body’s agent_id must be a name that agent answers to. A fired run is recorded in the ledger as that agent, never as the operator.

What an agent may fire is narrower than what a person may run from the pane. The payload of a fire is outside text (the run treats the whole trigger as tainted), so a drone that could turn that text into a change outside AgentMux is refused here: one that writes outside (an API call that is not a read), reads a Vault credential, runs a command, or calls another drone (what that one does is not in this graph). Those a person runs from the Drone pane, where the person is the reader. This is the Rule of Two with no Approval step to lean on yet; a drone with an Approval step will be allowed by a later change.

Constants§

DEFAULT_RUNS 🔒
MAX_RUNS 🔒
The most runs runs returns, and how many it returns when limit is left out.
OUTPUT_CHARS 🔒
A run’s output is cut to this many characters in an answer; the pane has all of it.

Functions§

act 🔒
brief 🔒
find 🔒
The drone the body names, by id or by its exact name (case-insensitive).
handle_drone 🔒
input_of 🔒
What a fire starts the run with: an object, at most the input limit. Left out means none.
kinds 🔒
The node kinds of a drone, each once, as the graph names them.
run_brief 🔒
text 🔒
why_not_fireable 🔒
Why an agent may not fire this drone, or None when it may. The Drone tool and an agent’s own rundrone call both ask it.
with_yours 🔒
Whether the agent made the drone or was given it: what fire runs at once.