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

WYRM

WYRM is an industrial IoT broker. Devices, services and logic live in one tree of nodes. Every client reads it the same way: list a node’s children, subscribe to values, set a value, invoke an action. Under the tree runs Eclipse Zenoh 1.x as the transport. WYRM adds the semantics on top: key-space conventions, canonical CBOR, tokens and static plugins. Zenoh itself is not patched or forked.

Status: before 1.0 (version 0.1.0). The protocol (spec/ 0.2.36) and the broker are tested on every commit (unit, fixture and end-to-end tests). Every protocol link is tested against its own simulator. No link has been checked against a real device yet (ADR 0029, decision 5). Expect changes.

Links connect devices and services to the broker. This table comes from links/official.json.

LinkCategorySummaryForms
ModbusEquipmentModbus TCP, RTU over TCP and serial RTU devices, as a master or as a slavebuiltin, process
OPC UA clientEquipmentNodes of OPC UA servers as points: batched reads, typed writes, browsebuiltin, process
BACnet/IPEquipmentBACnet/IP devices: Who-Is discovery, batched reads, writes with priorities, BBMDbuiltin, process
Siemens S7EquipmentS7-300/400/1200/1500 PLCs over S7comm (ISO-on-TCP)builtin, process
SNMPEquipmentSNMP v2c and v3 agents: batched GET, table columns, SET, walkbuiltin, process
MQTTEquipmentMQTT topics as points (JSON, raw, Sparkplug B)builtin, process
HTTP / RESTEquipmentJSON APIs polled on a schedule, JSONPath selectors as points, JSON writesbuiltin, process
PrometheusEquipmentPrometheus and OpenMetrics endpoints scraped into pointsbuiltin, process
S3 and compatiblesFile storesA bucket of AWS S3, MinIO, R2, Wasabi, B2 or GCS as a tree of folders and filesbuiltin, process
Google DriveFile storesA Google Drive folder or shared drive as a tree of folders and filesbuiltin, process
WebDAVFile storesA folder of Nextcloud, ownCloud or another WebDAV server as a treebuiltin, process
Local folderFile storesA directory of the host (disk, USB/SD card, network mount) as a treebuiltin, process
PostgreSQL / TimescaleDBHistory syncSends the historian’s journal to PostgreSQL or TimescaleDBprocess, wasm
MySQL / MariaDBHistory syncSends the historian’s journal to MySQL or MariaDBprocess, wasm
MongoDBHistory syncSends the historian’s journal to MongoDBprocess, wasm
InfluxDB 2.x / 3.xHistory syncSends the historian’s journal to InfluxDBprocess, wasm
DynamoDBHistory syncSends the historian’s journal to Amazon DynamoDBprocess, wasm
SchedulerAppsWeekly schedules and special days that write values to pointsprocess, wasm
AlarmsAppsAlarm classes on points, records, acknowledgement and exportprocess, wasm
DQL queriesAppsStanding and ad-hoc queries over the tree, as tablesprocess, wasm
Platform upstreamsAppsLive values to MQTT/UNS, Sparkplug B, ThingsBoard, Azure IoT Hub, AWS IoT Coreprocess, wasm
TelegramMessagingTelegram bots: templates, recipients, paired chat usersprocess, wasm
SlackMessagingSlack bots: templates and recipients, send onlyprocess, wasm
Assistant agentAppsAn AI agent that plans changes for a person to approvebuiltin
Mock deviceTestSimulated devices on the driver framework, for trials and testsbuiltin, process

Latest architecture decisions

All decisions: architecture decisions.

Latest specification changes

  • 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.
  • 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.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.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.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.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.

All changes: specification changelog.


This site is built from the repository after every merge to main. Do not edit it by hand: change docs/, spec/ or links/official.json.