Skip to main content

Module payload_schema

Module payload_schema 

Source
Expand description

What a drone can read of what started it ({{trigger.*}}), field by field, and which of it is outside text (Drone real-world jobs spec §3.6).

Every trigger kind publishes a schema: each field is clean (a number, a flag, a value from a short list, an id AgentMux made) or tainted (a text somebody outside the person’s own design wrote: a title, a log, a body, a file name). The canvas lists the fields to complete {{trigger.…}} and marks a reference to a tainted one.

This is what the graph can be told about its input; it is not what keeps a run safe. The engine still treats the whole trigger as outside text (ExecutionScope::bits_of) until the taint rules of phase 4 read these schemas, so a mistake here shows a wrong mark and never lets a value through.

Structs§

PayloadField
One field a run reads as {{trigger.<path>}}.

Functions§

app_event_fields 🔒
The fields of the event named in an app_event filter, as app_events::event_of builds them.
by_hand_fields
What a run started by hand or by an agent (fire) reads: whatever the caller gave. Not even the framing is AgentMux’s here, because only a job’s run has it (job_actions::drone_trigger); a caller can send or leave out any of it.
field 🔒
fields_of
The fields a run reads, for a job started by source (an event_source, or None for a timer or a hand run) with the trigger’s own filter. The framing fields come first.
framing 🔒
What every run of a drone job has, whatever started it. These are set by AgentMux, never by the sender.
is_tainted
Whether {{trigger.<path>}} is outside text under fields: it is unless the path, or a parent of it, is a clean field. A path no field names is outside text (it can only come from the sender).
poll_fields 🔒
The fields of one poll item, by query. item is one entry of the list the check answered with.