Skip to main content

Module drone_fire

Module drone_fire 

Source
Expand description

An agent fires a drone it did not make and was not given: the drone_fire sensitive operation (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §6.5). The request says who asked, which drone, what its graph can do and what payload goes in; the super agent reviews it and the person can stop it in the countdown. When the countdown ends unstopped the run starts, recorded as the agent that asked, on the graph the person was shown: a drone edited since is not run.

The payload is not a fact (a banner line is short), so it waits here by the request’s id, with the graph’s hash. It is kept in memory, as the requests are: after a restart the request is gone too.

Structs§

Held 🔒

Constants§

HOLD 🔒
How long a payload waits for its request: longer than the longest countdown and its review.
MAX_HELD 🔒
The most payloads held at once. A request that is never decided ends (prune in the registry); this is the same bound, so a flood of fires cannot fill memory with payloads of 64 KB.

Statics§

HELD 🔒

Functions§

ask 🔒
File the request for slug (whose uid is uid) to fire drone with input, and keep the payload for it.
can_do 🔒
What the banner says the drone can do: its node kinds and how many of its nodes start an agent (each one spends).
drone_fact 🔒
The drone as a fact: its name and its whole id. A long name is cut, never the id, so two drones are never one request.
fit 🔒
text cut to what a fact of a request may hold.
held 🔒
hold 🔒
Keep the payload for request_id, after letting go of the payloads of requests that ended without running (cancelled, denied, vetoed or expired) or waited too long. False when the room is full.
payload_fact 🔒
run_after_countdown 🔒
The runner: the countdown ended unvetoed.