Commands
BuiltCatalog, under Actions: Commands (with command_type:read, covered by every viewer’s *:read floor) is
the fleet’s “do” catalog: the directory of what a component can be told. The other
catalogs name what the fleet knows (a property is a value, a
metric is a quantity) and what happened (an
event is an occurrence); a command type names an instruction
(set-input, reboot) and carries the two facts that belong to the driver, not the abstract
signal: the target it sets and the settle window the device needs to act. The name is
its canonical identifier, a single lowercase kebab segment.
A command type is used in two moves, and this page walks both: the catalog names the instruction, and issuing records an invocation typed by it, which a settleable command then reconciles against what the device reports (commands).
The console page lives at /command-types, the type-named route, since what a component was told
is read on the component itself: its Activity tab carries its command history
(commands on a component).
The catalog is fleet-wide reference data, not a scoped resource, so every command type is visible to every reader; the write gates decide who may change it.
-
The directory lists every command type sorted by name, each showing its name (the canonical identifier, with its label on the line above it), target (the property or metric it sets, labelled with its lane, or fire-and-forget), settle window (seconds), and origin (official or custom). name filters by the name or its label; official narrows the list.
-
The target is two-armed: a settleable command names the value it sets in exactly one lane, a property (
set-inputtargetsvideo-input) or a metric (a volume command targets a numeric level), never both. A command with no target is fire-and-forget (reboot): it records that it was told, with no value to settle, so the outpost’s report of carrying it out decides it. The create and edit forms offer one picker over both catalogs, grouped by lane, so a selection sets exactly one arm; through the API, naming both arms is refused (422, naming the exclusive arc), and a target must be a registered property or metric type. -
The settle window is the driver’s fact about actuation time: how long the device is given to act before a mismatch between what was told and what is observed counts as failure. Within the window, a difference is not yet a settlement. It is a duration, so it has no negative: the field refuses one where you type it, and the API refuses one with a 422.
-
The window belongs to the target, so the console asks for it only where it decides something. A settleable type must state one: the create form starts the field blank, and both the create and a blade’s Save are refused while it is empty beside a target arm. 0 is a legitimate answer there, and the field says what it does before you commit to it (the command is judged at the moment it is issued, settling only if the target already reports what it was told, and failing if it does not); it is an answer you give rather than one the form gives for you (ADR-0108). A fire-and-forget type has nothing for a window to judge, so leave the field blank: the type records a window of 0 and nothing ever consults it. Its outpost’s execution report decides it instead, within a ten minute delivery window. That is
reboot’s shape. -
New command type (with
command_type:create, granted to operators) opens a create drawer: give it a name (a single lowercase kebab segment, for exampleset-inputorreboot), optionally add a label and description, pick a target (or None), and, if you picked one, state the settle window. An invalid name (an uppercase letter, an underscore, a leading hyphen, a dot) is refused with a message. -
Pick a row to open its detail blade. The footer Edit pencil (with
command_type:update) edits the label, description, target, and settle window; the name is fixed at creation, since it is what every invocation is typed by. Delete (withcommand_type:delete) removes a custom command type, behind a confirm. A verb you lack greys just that button, its hover reason naming the permission (Requires command_type:update,Requires command_type:delete); the pair never disappears. -
A command type can carry a params schema (a JSON Schema for the invocation params), set through the API; the console does not show it. A schema whose
requiredlist names a property itspropertiesblock does not declare is refused at write with the name, and the stored schema is enforced at issue: an invocation whose params violate it is refused (422, naming the violated constraint), and absent params validate as the empty object, so a schema with required fields refuses a bare invocation. -
An official command type is always read-only: the blade footer shows one note, “Official, read-only”, with the reason on hover: “Official: ships with Omniglass and updates with it.” The shared vocabulary is the same from install to install, the same deliberate exception to the operator-owned rule the Properties catalog makes, and for the same reason: a command type name is the vocabulary a driver maps onto, so a release has to be able to correct it (the seed model).
The baseline ships this catalog, rendered from the seed itself (
make gen) so the list cannot drift from the binary:Name Description set-inputTell a display or switcher which video input to select. A settleable command: it opens an intended video-input and settles when the device reports that input within the settle window. rebootTell a component to restart. A fire-and-forget command: it opens no intended value, so its outpost's execution report settles or fails it, and it times out when no report arrives within its delivery window. A disruptive one: its delivery closes the gates of its hold set on that outpost (the component's in-band endpoints and those of what it hosts), the outpost runs nothing against them for the quiet period, then each reopens on its own first up reading, with the hold as the backstop for one that never reads up. outlet-offSwitch one outlet of a PDU off. A fire-and-forget command and a power command: its delivery closes the gates of what that outlet feeds on the outpost (every endpoint of a component with a power dependency on the outlet, its out-of-band ones included, and the in-band endpoints of what those host), never the PDU's own, so the outpost sends nothing to a component while its power is cut. Each reopens on its own first up reading after the quiet period, with the hold as the backstop for one that stays dark. outlet-onSwitch one outlet of a PDU on. A fire-and-forget command that disrupts nothing: restoring power holds no gate, and what the outlet feeds reads up again on its own probes as it boots. set-volumeTell a component its output volume, as a fraction of its range (0 to 1). A settleable command: it opens an intended volume and settles when the component reports it, or when its reply confirms the change. set-muteTell a component to mute ("true") or unmute ("false") its audio. A settleable command against the mute state. set-powerTell a component to turn on, turn off, or enter standby. A settleable command against the power state. -
A duplicate name is refused (409), and an attempt to change an official command type is refused too: the catalog has exactly one entry per name.
-
A target must be a key a command may write. A command opens an intended value on it and its reply lands as an observation of it, so a native probe key (the outpost’s own observation),
health(the rollup’s) or a calc rule’s output is refused (422) naming the key (who writes a key).
Issue a command
Section titled “Issue a command”Issuing is POST /components/{name}/commands:issue (with command:issue, granted to
operators); the component resolves within your read scope, so a component outside it is a
non-disclosing 404. One transaction records three things:
- the command row: the invocation itself, with its params and who issued it;
- a caused event, typed
command-issued, on the component’s event log; and - for a settleable command given a value, an intended series row in the target’s lane:
the value the device was told to hold, landing beside the observed series so intent and
reality can be compared. The row names the command that opened it (its
command_idlineage), so every want traces to the invocation that wanted it. A metric target’s intended value must be a JSON number (422 otherwise).
The issue response returns the computed settlement (none for fire-and-forget,
else pending, settled, or failed): a matching observation taken after the intent settles
the command as soon as it arrives, within the window a difference is still pending, and past it
the latest observed value either matches the intended one or does not. A command given no
instance is judged on the endpoint that carries it (the one it went out over, or the one it is
queued for), and one no endpoint can carry on every endpoint reporting its target, settling when any
of them agrees
(which observation). The command row also
records a terminal status, issued until it is stamped settled, failed (the device
reported a different value, or its reply said no), or timed-out (the window expired with
nothing observed), with settled_at as the terminal moment. A fire-and-forget command has no
value to observe, so its outpost’s execution report decides it: settled when the outpost carried it
out, failed when the execution failed (or its binding could not render), and timed-out when
no report arrives within its ten minute delivery window, the reason saying where it stopped. Which evidence settles a command is
the driver’s declaration on its binding: the device’s reply, or the next observation of the
target (commands). The check runs at issue, when the execution report
lands, when an observation of the target lands, and on a sweep every few seconds for commands
past their window, so a zero-window command returns already terminal, a fire-and-forget command
returns issued and waits on its report, and no command stays issued past its window. A
command that has reached a terminal status is never delivered to an outpost. An outpost carries the invocation to the device over the endpoint whose driver binds the
type (commands).
Read a command back
Section titled “Read a command back”The issue answers with the command as it stands, and every command reads back whole afterwards,
under its component (with command:read, which every viewer’s *:read floor carries and every
issuer holds where it may issue): GET /components/{name}/commands/{id} for one, and
GET /components/{name}/commands for the history, newest first, narrowed by status, since and
until (RFC3339) and limit. A component you cannot read is a non-disclosing 404, and one you can
read but whose commands you may not is a 403. Each command carries:
- its status and a time for each transition: issued, delivered (an outpost last took it), executed
(the outpost’s report landed) and settled, plus its first delivery (
first_delivered_at) and how many times an outpost took it (delivery_count). A count above one means the outpost went silent after taking it and the queue redelivered it; the console’s arc shows the count and the first delivery’s offset beside the last; - its phase, where it sits while in flight: queued for its outpost, delivered (its binding
settles on observation, so the reply decides nothing), awaiting reply, or awaiting
observation within its window, with the
deadlinewhen the window closes (a fire-and-forget command reads queued then delivered until its report lands, itsdeadlinethe end of its delivery window); - how it settles (from the reply, from an observation, or not at all) and the endpoint, outpost and driver that carry it;
- the evidence: the component’s reply, masked of the endpoint’s credentials and of anything
labeled a credential before it is stored, or the observed sample that decided it, plus what
decided it (
settled_by) and a reason in words. A timed-out command’s reason says where it stopped: queued for an outpost that never took it, delivered with no report, answered with nothing observed after, or carried by no endpoint at all; - who issued it.
Each terminal status also lands on the component’s event log
as command-settled, command-failed or command-timed-out, naming the command (its reason and
evidence stay on the command, which takes command:read). A reply the server cannot mask, because
it could not read the endpoint’s credentials, is withheld rather than stored.
Waiting on an issue. Add wait=true to the issue (--wait on the CLI) and it answers once the
command settles, fails or times out, or once wait_timeout passes (1 to 120 seconds, 30 by default),
with the command as it stands then. A waiting issue judges the command itself when its window closes,
so a timeout comes back at the window. Waits are bounded: a server holds 64 at once and a user 4,
and a wait past either is refused with a 429 before anything is issued, so issue without wait and
read the command back, or retry.
From the CLI, the catalog is omniglass command-type list|get|create|update|delete; issuing is
omniglass component command issue <component> --command-type <type> [--value <v>] [--wait], and the
reads are omniglass component command list <component> [--status <s>] [--since <t>] [--limit <n>]
and omniglass component command get <component> <id> (see the CLI reference).