Expand description
A value in a run, with what the engine must remember about where it came from (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §4.2, §4.5).
Two bits travel with every value:
tainted: some text in it came from outside the person’s own design (an event payload, an API response, a Run step’s output, an Agent’s answer). It may be quoted, never used as a command, a path or a target.derived: a clean number or boolean made inside the run from tainted input (acountof a tainted list, an exit code, an enum cleared byin_set). It is clean as data, and still chosen by an attacker as control (a branch, a loop guard) and as a numeric argument. Only a field typed by the trigger’s own schema is exempt (§4.5, the derived-value rule).
Every module of the engine takes and returns Tv, so a taint bit is never
dropped at a module boundary. Both bits are always written and always
required when read: a value with a bit missing is an error, never “clean”.
Structs§
Functions§
- join
- The bits of a value made from
inputs: tainted if any input is, derived if any input is derived and the result is not tainted. This is the default for anything computed from several values; an operation that cannot carry text may lowertaintedtoderived(seetransform::taint_out).