Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

spec changelog

  • 0.1.0 (2026-10-20): initial — 01–06, tables.json, 22 fixtures.
  • 0.1.1 (2026-10-20): 06 — permissions.maxperm ≤ write (validation step 7). No fixture change.
  • 0.1.2 (2026-10-20): 02 — profiles: "extends" text key, inheritance rules, ?expand=true; fixture profile_extends.
  • 0.1.3 (2026-10-20): 04 — origin bound to the token subject (sub or <sub>/...). No fixture change.
  • 0.1.4 (2026-10-21): 06 — flow ~val gets optional deployed_by. No fixture change.
  • 0.1.5 (2026-10-21): 01 — peer broker nodes: downstream sites at down/<d>, upstream at up/<u> (wy:broker, attr.root, connected); up/ is no longer a reserved virtual prefix. No fixture change.
  • 0.1.6 (2026-10-22): 02 — UI fields: action display, group; param-meta display, description, placeholder, editor (password, textarea); fixture meta_action_ui.
  • 0.1.7 (2026-10-22): 02 — param-meta editor: "file" (binary parameter from a local file). No fixture change.
  • 0.1.9 (2026-10-22): README rule 4 — the protocol version is attr.proto of wy/<site>/sys/~meta; wy/<site>/sys/broker stays the broker’s liveliness token, without a node. No fixture change.
  • 0.1.8 (2026-10-22): README rule 6 — nesting of arrays, maps and tags in one value is at most 32; deeper input is invalid_message. No fixture change (every fixture is shallower).
  • 0.1.10 (2026-10-22): 01, 03, 05 — history: since=, agg and|or, any <n>s|m|h|d|w window, limit ≤ 100 000; the answer is one or more arrays from the broker’s historian (ADR 0014), errors as a status attachment; rights as subscribe (session ACL on ~val), no history:read token (owner decision). Fixtures hist_raw, hist_agg (HistRow in both SDKs).
  • 0.1.11 (2026-10-23): 02 — view=list summaries carry unit (key 2) and writable (key 4, already sent by the SDK); the UI writes the unit after numeric values. Fixture meta_view_list (first child has 2: "°C").
  • 0.2.0 (2026-10-23, breaking): 01, 06 — site sections under full names: down → downstream, up → upstream, flows → dataflows (owner decision, backlog items 3 and 4). Fixture ptok_claims_v1 (grant keys). Stored grants and history watches replay under the new names (registry SCHEMA 14, gateway users SCHEMA 4), and the historian’s recorded series are renamed when its store opens; deployed flows must be deployed again (their proofs name the old keys).
  • 0.2.1 (2026-10-23): 02 — view=list summaries carry key 16 has_history (true when attr.history is not empty); attr.history = array of store keys, a key under wy/<site>/sys/history/ answers at the point’s own key (ADR 0016). Fixture meta_view_list (second child has 16: true).
  • 0.2.2 (2026-10-24): 01 — site section storage (wy/<site>/storage/**): broker storage of folders and values people create, as a DSA broker’s /data (ADR 0017); link id storage is reserved. No fixture change.
  • 0.2.3 (2026-10-24): 01 — commands from upstream sites: ~set/~act on downstream, dataflows, storage of a site below always, on sys only with that site’s allow_config; tokens carry the target site; wy/<site>/sys/signing_keys lists the keys that sign them (ADR 0018). No fixture change.
  • 0.2.4 (2026-10-24): 02 — param-meta editor values daterange (<from>/<to> in RFC 3339, with preset ranges), date (one instant) and duration (seconds, typed in a chosen unit) for UIs. No fixture change.
  • 0.2.5 (2026-10-24): 06 — ~def.layout {<node_id>: [x, y]} (editor positions, ignored by the compiler and outside a node’s config) and dataflows/~act/node_types (the node-type catalog for editors). No fixture change.
  • 0.2.6 (2026-10-28): 02 — key 17 has_nodes (bool, on a container’s ~meta and in view=list): a child without type exists, so a tree UI draws a triangle only where it has nodes to show; the responder publishes the container’s ~meta again when it changes. Fixture meta_view_list (fourth child, a folder with 17: true).
  • 0.2.7 (2026-10-28): 02 — a site’s historian also answers at each watch key (wy/<site>/sys/history/<group>/<watch>/~val?history=); a downstream site’s point that it records is read there, and its attr.history comes from the recording site (sys/overlays/.sites, merged by that site’s gateway; ADR 0020). No fixture change.
  • 0.2.8 (2026-10-28): 04 — status 0x2B resource_exhausted (a bound of the callee reached; ADR 0023). No fixture change.
  • 0.2.9 (2026-10-31): 01 — allow_config of an upstream opens config on the whole site below (downstream, dataflows, storage and sys), not on sys alone (owner decision, ADR 0018 amendment): link actions such as Export, Edit, Stop run from above. No fixture change.
  • 0.2.10 (2026-10-31): 04 — optional ptok claim auth: the caller’s full grant set on this site, sent only on ~act/* tokens, never used to authorize the request; a responder that acts for the caller (DQL, ADR 0025 item 4, owner decision) checks the keys the caller names against it, capped as the effective level and to a limited key’s scopes; no auth = refused where it is needed. Fixture ptok_claims_auth.
  • 0.2.11 (2026-10-31): 04 — jti is single-use per responder (remembered until exp, in memory: a responder restart forgets it), exp at most 15 min ahead, a full cache refuses new tokens (ADR 0029, decision 3). No fixture change.
  • 0.2.12 (2026-11-01): 04 — the grant lookup comes before the replay check: a token with no grant for the request key is refused and never remembered; one sub holds at most a quarter of the replay cache (16 384 live tokens), so one caller cannot lock out the others (security review, ADR 0029 decision 3). No fixture change.
  • 0.2.13 (2026-11-01): 06 — validation step 9: a subscribe or liveliness source reads the own site’s downstream, dataflows or storage only (security review, ADR 0031). No fixture change.
  • 0.2.14 (2026-11-01): 04 — optional ptok claim args: SHA-256 of the request payload; the responder refuses another payload (permission_denied). wyrm-mcp takes human approvals only with it (security review, ADR 0031). Fixture ptok_claims_args.
  • 0.2.15 (2026-11-08): 06 — fields as outputs: every parameter p of a node is also an output p (its effective value, at start and on each change) and every input x that is not a parameter’s port an output x (each sample, before the node handles it); a declared output keeps its name, an input’s echo comes before a parameter’s (latch.reset); an unwired echo is never built. node_types adds (additive) params[].port, a typed params[].default, params[].echo, port_types, echo_inputs. dataflows/<id>/~act/watch (stream: snapshot, changes at most max_hz ≤ 20, heartbeat 10 s, ttl 30 min, {redeployed} on a redeploy; ≤ 8 per flow, ≤ 64 per site, the same caller’s oldest ends at a cap) and ~act/ports (one snapshot), both read with the caller’s auth covering every source and every command target (ADR 0038). No fixture change.
  • 0.2.16 (2026-11-08): 06 — dataflows/~act/preview {def, nodes?, max_hz?} (level read, stream): a draft compiled as for deploy runs in a sandbox (nothing persists, no tree node, reads without tokens) with set/invoke/publish as capture nodes that cannot write; rows as watch’s plus an optional sinks: [{node, op, key, value}] (what a sink would do, latest per node), recorded from the start; rights as watch; ttl 10 min, ≤ 2 per subject (a third ends the oldest), ≤ 16 per site (busy). Validation step 8: at most 1000 nodes per flow (deploy and validate too). ADR 0038 §5. No fixture change.
  • 0.2.17 (2026-11-08): 06 — parameter ports of the older node types (ADR 0032 §2 style: config or default first, the last good sample wins): scale in.k, in.b; alarm in.high, in.low, in.hysteresis, in.delay_s, in.return_delay_s; delay in.ms; window in.size_s; deadband in.abs, in.pct; timer in.period_ms, all number; a sample that is not a finite number in the parameter’s bounds is ignored; a new period or delay takes effect at once. node_types lists them in inputs and as params[].port (ADR 0038 §5a). No fixture change.
  • 0.2.18 (2026-11-08): 06 — the engine keeps the last sample of every input and output of a deployed flow from the start, watched or not (one slot per port), so watch’s snapshot and ports show what variables sent once at deploy; the 5 s keep time after the last watch is gone (ADR 0038 §6). No fixture change.
  • 0.2.19 (2026-11-08): 06 — operand constants: a logic block’s config key values: {<port>: <value>} (operand inputs only: in, in.<inputs>; not a parameter’s port, not stopwatch.reset, not the variables) gives an input its value until a sample replaces it; a constant calculates nothing, so a deploy never fires a command through one; watch/ports/preview show it as the input’s value from the start; node_types adds values: true per type (ADR 0038 §7). No fixture change.
  • 0.2.20 (2026-11-08): 06 — ports for the remaining block parameters: concat in.strict, if in.op (a known operator only), hub in.ignore_null, trace in.tracing, in.msg; node_types lists them in inputs and params[].port (ADR 0038 §5b). No fixture change.
  • 0.2.21 (2026-11-08): 06 — text operators, round.text and case: if.op !=, contains, starts_with, ends_with; round.min_precision (port in.min_precision) and output text; new block case (in, op, else, variable inputs in pairs of case and then, constants in values; no regexp) (ADR 0038 §8). No fixture change.
  • 0.2.22 (2026-11-09): 06 — a key from a port inside a scope: subscribe and liveliness get the input in.key, the output error and the parameter key_scope (a key expression inside this site’s downstream, dataflows or storage; required when in.key is wired, validation step 4a; no default). The deployer’s auth reads all of the scope (a grant below read that touches it refuses, a read grant on a part leaves the rest to later grants); watch, ports and preview ask the same of their caller. At run time a value is taken only as one concrete node key (text, ≤ 512 bytes, segments [A-Za-z0-9_.-]+) inside the scope; a new key ends the old read first (out null/uncertain until its first sample), a refused value reads nothing and gives a text on error, null reads nothing; changes ≥ 100 ms apart, the latest wins. Command targets keep no port. node_types adds params[].scope (ADR 0040 §1). No fixture change.
  • 0.2.23 (2026-11-09): 06 — the action block: invoke.args keys are fields with ports arg.<name> (constant, then the last sample; ≤ 64); invoke and set get interval_ms (0 or 100 … 86 400 000; first run one full period after the start), auto_run (invoke false: a changed argument runs it; set true: today’s write on in), enabled, the input trigger (an event, or a value that differs from the last one) and the outputs sent, ok, error ({event, id, code, message}), running, last_run, invoke also result (out kept). A sample born at the start (a variable’s or const’s start value, a parameter echo’s start value, a clock’s first tick, the first sample of a read, and what a node sends while it handles one) never runs a command through trigger or auto_run. dataflows/<id>/~act/trigger {node} (level write; the caller’s auth holds max(maxperm, write) on the block’s target, as the deployer’s proof; a running flow only). run_on_start (bool, default false, no port; owner decision 2026-11-09: one action block whose fields set its behaviour, no block type per behaviour): true runs the block exactly once at each start of the flow, 250 ms after the node started, the one sanctioned exception to the start rule. In a preview the command blocks report sent and never an answer. node_types adds dyn_inputs.keys and trigger (ADR 0040 §2). No fixture change.
  • 0.2.24 (2026-11-09): 06 — custom blocks: ~def.blocks: {<name>: {description?, inputs: [{name, to, default?}], outputs: [{name, from}], nodes, edges, layout?}} and a node of type block:<name> with values: {<input>: <value>}. The compiler replaces an instance by the block’s nodes (<instance>/<inner>), rewires the edges and puts an input’s constant where the inner input keeps one; nesting ≤ 4, ≤ 64 blocks, ≤ 64 instances inside one block, a block that contains itself is refused before expansion; the 1000 nodes count every expanded node and every instance, and a flow has at most 4000 edges with its blocks expanded (step 8), both charged while the definition is expanded; validation step 7a (a publish inside a block: one use). watch/ports/preview show the inner nodes under their ids, and nodes takes an instance id. Library on dataflows: put_block {name, def} and remove_block {name} (config), get_block {name} → {name, version, def, requires} and list_blocks (read); a flow copies a block into its definition, the engine never reads the library at compile (ADR 0040 §3). No fixture change.
  • 0.2.25 (2026-11-10): 06 — the second set of blocks: readers load_value (key/in.key/key_scope) and list_children (path/in.path/path_scope; rows {name, path, type?, display?, is?, unit?, writable, has_children}, ≤ 1000) with trigger, interval_ms, auto_run (default true: at the start and on a new key), enabled and outputs out, ok, error, running, last_run, checked as sources; text substring, replace, split, join; data make_object, make_array, get, stats; events and state changed, rising_edge, falling_edge, counter, toggle, sample_and_hold, select; time debounce, throttle. A port for every parameter; the event blocks never act on a sample born at the start. node_types lists 55 types (ADR 0040 §4). No fixture change.
  • 0.2.26 (2026-11-10): 06 — a layout key is a node id or an editor key <node>~<name>~<rest> (~ cannot occur in a node id; the Studio editor keeps pin choices as <node>~pin~<field>: [1|0, 0]); values stay two finite numbers; the engine ignores editor keys and does not ask the node to exist; bounds (new): layout ≤ 16 384 entries, a key ≤ 256 bytes (decided under ADR 0029). No fixture change.
  • 0.2.27 (2026-11-10): 06 — list_children is read with its children: deploy, watch, ports and preview ask read on <path>/* and <path_scope>/* too (one denied child refuses it). A float that is not finite is no number for a block, from a port or from the config; such a sample on a parameter’s port is ignored (security review, ADR 0040 §4). No fixture change.
  • 0.2.28 (2026-11-11): 02 — names people read (ADR 0042): attr.display / key 12 is the node’s optional human name, never part of a path; the driver framework takes it as the optional display of add_* and edit on connections, devices and points (the key display is reserved there). A responder SDK fills a missing action or param-meta display from the key by one rule (wyrm_core::display::humanize: sentence case, acronym list, a unit token in brackets); a client may derive one from the key for older responders. Explicit display texts are in sentence case. Fixture meta_action_ui ("Add Device" → "Add device").
  • 0.2.29 (2026-11-11): 06 — the third set of blocks (ADR 0044): math constant, factorial, log, power, root, bound, round_up, round_down, format_number, parse_number; trigonometry in degrees sin, cos, tan, cot, asin, acos, atan, to_degrees, to_radians; statistics average, median, mode, std_deviation, variance; text and codecs left, right, trim, base64_encode, base64_decode, url_encode, url_decode, to_camel_case, from_camel_case, hash, json_parse, json_stringify; substring.end, replace.regexp and case operator regexp (bounded patterns; an older config gives the same output); date and time now, date_time, date_format, date_parse, date_math, date_range (dates in microseconds, time_zone IANA/UTC/±HH:MM, default UTC; week_start; previousN is the period before currentN); readers load_history (a table {t, v, q}, truncated in ok) and get_node (summary and actions), every reader runs on ~act/trigger with a read check on its key and scope (trigger: true in node_types); the table value {columns, rows} with its bounds; logic router (outputs out.<case> and else; node_types gives them as dyn_outputs with prefix out.), event_gate, catch_error; tables table, table_recorder, table_from_csv, table_to_csv, table_from_json, table_to_json, table_map_columns, table_sort, table_filter, table_remove_rows, table_edit_rows, table_group_by, table_join, table_page, table_rollup, table_aggregate, table_select_rows, table_select_columns, table_columns, table_row_cells, table_add_row, table_transpose, table_from_map (per-row rhai over row, index, checked at compile step 6). ~act/trigger asks max(maxperm, write) on the target of every command block downstream of the node it runs. node_types adds params[].display. No fixture change.
  • 0.2.30 (2026-11-11): 06 — what calculates at start: a pure logic block (math, trigonometry, statistics, not, if, case, select, text, codecs, make_object, make_array, get, stats, the date blocks but now, the table blocks but table_page and table_recorder; 83 types) with no edge into any of its ports calculates once at start from its constants and parameters; a block with a wired input waits for its first sample as before. What it sends is made of constants, a mark the runtime carries on as it carries “born at the start”: such a sample runs no command, not even through in of set/invoke (a variable’s start value still does). now gets interval_ms (port, default 1000, 0 = only on in, else 100 … 86 400 000): the time at start (made of constants), then every period as ordinary samples, and on each sample of in; its in takes no constant (values: true dropped from its catalog entry; a stored values is read and ignored). A now stored before 0.2.30 has no interval_ms and so also sends every second after the upgrade; interval_ms: 0 keeps the old behaviour. The liveliness catalog entry gets its own key description (a node whose presence is read). No fixture change (no wire format change).
  • 0.2.31 (2026-11-12): 06 — flow metrics: ~val gets the text key stats {nodes, edges, samples_in, samples_out, dropped, restarts, commands: {sent, ok, error}, last_sample_t?} (additive; old readers ignore it). samples_in = samples a node takes from an edge or from its own source (answers, read requests and triggers are not samples); samples_out = samples sent on a wired output; dropped = inbox drops of policy.overflow; commands = the sent/ok/error events of invoke/set. Counters reset at each deploy (so at every engine start and ACL rebuild), start and reload, and are kept across a restart after a panic (restarts + 1) and while stopped. A refused draft’s state: 2 and error stay in the later ~vals until the next state change. A state change publishes ~val at once as before; otherwise ~val goes out again only when the counters moved, at most once per period (wyrmd: metrics_interval_ms, at least 5 s) (ADR 0045). No fixture change.
  • 0.2.32 (2026-11-13): 04 — the “no details in err” rule covers the token check and the level check of the request; a refusal the responder gives after them by its own rule (a key outside a link’s grants or its author’s rights, an action that writes outside the node granted) says why in err. The responder logs the reason of every refusal. No fixture change. 06 — permissions.maxperm is a code or a name ("write"), as the engine already read it; its refusal names both (2 (read) < 3 (write)). No fixture change.
  • 0.2.33 (2026-11-13): 01, 05 — ~act/<a>?check: the responder checks a call as the action would take it (token, level, arguments against the meta, its driver’s own parsing) and does nothing; the answer is ok or the refusal the action would give; the audit records check. A responder that answers it has attr.check = true on its root ~meta; a requester sends ?check only there (an older responder would run the action). A WASM component of world 0.3.0 checks against the meta only (ADR 0047). No fixture change.
  • 0.2.34 (2026-11-14): 06 — the 100 ms of a table’s per-row scripts are CPU time of the thread that runs them; time the host keeps that thread off a core does not count, and the wall clock counts only where the platform has no thread CPU clock. No fixture change.
  • 0.2.35 (2026-11-15): 01 — a ~val selector with history or since names each of history | since (not both), agg, window, limit at most once and no other parameter; names that start with _ are Zenoh’s and are not read; a duplicate or another parameter is invalid_parameter (typing audit 2026-11-15: a from text could add its own limit to the gateway’s selector, and the historian took the first). A requester makes the selector from parsed values only. No fixture change.
  • 0.2.36 (2026-11-20): 04 — a ptok is at most 65 536 bytes; a responder refuses a longer one (permission_denied) before it checks the signature, and a minter makes none (security audit of PR #150: the cost of a refused token grows with its length times the number of trusted keys). The wire format does not change. No fixture change.