Reeve Docs

Docs / Architecture

Glossary

The vocabulary of the product. Where two words are easy to confuse, the entry says what separates them. Capability surface: requirements.

The device model

Logical device — the thing the household owns, names and automates. The stable addressing unit for automations, scenes, dashboards, widget bindings, helpers, access grants, favourites, telemetry and every bridge. Owns one or more device sources plus a failover policy. When a person says "device", they mean this.

Device source — one integration's view of one device: what a single plugin instance reports about it. Independently addressable, with its own name, health, capability descriptor and state. The same physical bulb seen through two integrations is two sources under one logical device.

Logical device is the identity; a source is a feed. Anything a human or an automation targets stays logical. Anything describing where a reading came from is a source.

Reported name — the name a plugin gives a source, refreshed on every discovery that carries a real name. A logical device follows its primary source's reported name until a user renames it; the rename pins the name. A source has its own override, separate from the logical device's name.

Active source — the source currently elected to serve a logical device's state and receive its commands. Commands addressed to a specific source deliberately bypass failover.

Failover policy — the rule for electing the active source from stored source health. Prefer-primary returns to the configured primary as soon as it is healthy again; sticky keeps the failed-over source until it fails in turn.

Source health — online, degraded or offline for one source. Asserted by the plugin, and for a device that reports on a cadence decayed to degraded at read time once a reading passes its silence window, without disturbing routing.

Silence window — the time a device that reports on a cadence (a sensor, a presence reporter) may stay quiet before its label reads stale. A device that reports on change has none and is judged by its driver's availability alone.

Merge — attaching an existing standalone logical device onto another as an additional source. Permitted only between the same device type. Detach is the inverse: the remainder keeps the original logical device id, so scenes and automations referencing it keep working.

Device type — one of twenty-one canonical types. The set is closed and append-only, because its ordinals are the on-disk format.

Capability — a named member of the closed canonical vocabulary that a device type may expose, such as on/off, brightness or alarm state. Identified by a dotted, contract-stable capability key rooted at the lowercase type name. Persisted by scenes, automations and workflow blocks, so a key is an API promise.

Capability role — the platform's statement of what a canonical capability is for: Control, Reading, Setting or Diagnostic. Set once in the catalogue, not by a driver; Basic tiers the interface by it.

Capability kind — the classification of a capability: readable or settable, boolean, number, enum, channel list. Persisted as a numeric ordinal and therefore append-only.

Descriptor (capability descriptor, availability descriptor) — the per-instance declaration of what this device actually exposes: which capabilities are present, which are controllable, their render label, and their value domain (narrowed enum tokens, or unit with minimum, maximum and step, or per-channel labels).

The canonical record says what a device of this type could have. The descriptor says what this one does have. Rendering, pickers and command validation read the descriptor and nothing else — support is never inferred from a value being non-null.

Canonical state — fully normalised typed state: real booleans, canonical enum tokens, numbers in canonical units. The only state core code reads.

Raw vendor payload — the original vendor message retained verbatim beside canonical state, for diagnosis and for onboarding a new vendor. Reading it above the source boundary is a layering violation.

Unmapped property — a vendor field with no canonical capability, surfaced as a structured key/type/value triple. Usable from workflow raw-property blocks; never consumed by typed features, scenes, triggers, dashboards or bridges.

Channel — an addressable sub-unit of a multi-component device: one gang of a multi-gang switch, one button of a scene controller. Keyed by the driver-declared index verbatim, which is not guaranteed to start at zero. A channel label is an operator-supplied display name for one; it is never an address.

Critical capability — a capability an administrator marked as needing confirmation before it is actuated from the web or mobile app. A household setting on the logical device, re-hydrated onto the descriptor at read time; a driver never declares it. The server does not enforce it.

Device event — a momentary, stateless occurrence such as a button press. It has no value and no persisted state, travels on its own channel, and feeds the device-event trigger.

Motion heartbeat — camera.motionDetected sent onto a camera by any plugin, or by the host for a camera whose own plugin reports motion as state: "motion is visible now", repeated at least every 2 seconds while it lasts. Never published on its own; it feeds the motion gate.

Motion stretch — a camera's motion as the motion gate sees it: it starts with a heartbeat when none is running and lapses 6 seconds after the last heartbeat from any source. A counted stretch is announced by camera.motionStarted and camera.motionStopped, paired by its stretch id; a stretch that starts inside a PTZ quiet window is masked until it lapses and announces nothing.

PTZ quiet window — the time during a camera's pan-tilt-zoom move, or a command that changes its frame (privacy, image flip or rotation, night vision), and 10 seconds after the last such signal in which a starting motion stretch is masked.

Finding — a persisted, named report that an automation, scene or other object refers to a device target that its current model cannot resolve. Its lifecycle records when the reference becomes broken and when it clears.

Model event — the record of one structural change to a source's descriptor: old and new descriptor, classification, deltas, origin and time. Written in the same transaction as the descriptor and kept for DeviceModel:EventRetention, after the device is gone too.

Revalidation job — a durable revalidate row in core.device_model_jobs, committed with the descriptor change it follows, that a worker drains by scanning the device's references. It is retried until it succeeds.

Passthrough re-declaration — a capabilities-changed report that changes only runtime-variable fields, such as presence, value domain or controllability. Applied with no model event; its scan covers only the changed capabilities and raises warnings.

Re-home — moving a source that reports a different concrete device type out of its logical device into a new logical device of the reported type, which inherits name and room but no references. The old device keeps its other sources, or is retired if it has none.

Retired device — a logical device left without sources by a re-home. It keeps its id, name, room, history and findings, names its replacement, stays unavailable and accepts no commands or sources; references to it carry a device.replaced error until they are repaired by hand or the retired device is deleted.

Discovery candidate — an ephemeral, time-limited record of a device or service seen on the network. Advisory only: nothing is instantiated and no plugin is installed automatically. A matcher is the rule by which a plugin claims candidates and prefills its install form.

Extension

Plugin — the distributed driver package: a manifest plus an artifact, released and versioned on its own cadence, that translates one vendor system to and from the canonical model. Runs in the native lane (a .NET assembly in-process, trusted code) or the WebAssembly lane (a real capability sandbox).

Adapter — the out-of-process half of a plugin: a sidecar workload speaking the adapter protocol over the session plane to a paired thin in-process adapter client plugin. Exists because of hardware coupling and replication, not trust.

Integration — the operator-facing configured plugin instance: the connected vendor system whose devices, settings and health show up in the home.

Plugin is what you install. Adapter is where part of it runs. Integration is what the operator sees and configures. A plugin that needs no out-of-process code has no adapter; a plugin installed but never configured is not yet an integration.

Plugin type — the identity a plugin declares. Permission grants are keyed to it, and peer calls address it. Plugin instance — one configured, running copy of a type; the unit of settings, health, issues, views, sidecars and tokens. Dispatch check — the test a replica applies before handing a running plugin instance to a request or to background work: the pinned generation must hold an enabled row for it, at a configuration revision the running copy has reached. A refusal reads as "not running".

Manifest — the plugin's declaration: loader lane, entry artifact, requested permissions and hosts, compatibility range, optional signature, discovery matchers, configuration schema, and any workload deployment section.

Grant — the operator-approved subset of a plugin type's requested permissions, device types and hosts. Clamped to what was requested, so an update can never silently widen it.

Config host token — a manifest host entry config:{key}:{mode} that stands for the host the owner typed into the plugin's config field {key}. The grant holds the token per plugin type; each instance resolves it against its own config, so it reaches only its own address. A fixed host names a host in the manifest; a config host token names a field (host rules).

Host facade — the object a plugin receives from the platform. Baseline capabilities are always present; everything else is a gated sub-interface the plugin retrieves and degrades without.

Repository — a registered source of releases. Resource index — a generated listing of resources, versions, digests and yanked flags; takes precedence over standalone registrations and may propose a signing key that verifies nothing until an operator pins it.

Update anomaly — an identity or privilege change between versions that stops an install and demands an acknowledgement bound to that exact release.

Requires restart / Rejected / Backend too old — the three outcomes an install reports for a version it left inactive, at most one per install or per instance: the response carries one, and the instance carries the one the latest install judged, which the next install judgement replaces or clears. Requires restart: the committed version is not active on the replica that served the install, and a restart could change that — which includes a native version whose triggers load only at boot, and one whose workflow blocks or alert subscribers could not be swapped live. Rejected: the replica refused the artifact's registration for a reason the next boot refuses again, and the reason names the check — install a different version, or remove the conflict it names. Backend too old: the version declares a minimum host version this backend is below, so only upgrading the backend changes the answer. A WASM start that fails in the installed version's own code is none of the three, and shows as the instance's health.

Config flow — an opt-in multi-step interactive setup a plugin drives, in place of a flat form. Flow owner is the process that started a config or repair flow and runs its every submit; another process adopts the flow — becomes its owner — once that one no longer runs (its replica stopped, crashed and its lease expired, or now runs another process), or when none is recorded.

Safe mode — a degraded boot that skips plugin loading, repository sync and workflow execution, engaged automatically after repeated boot failures.

Instance action flow — a flow a running plugin instance offers on its action menu ("Pair device", "Manage admins"). The plugin decides at run time which flows exist; the host draws their steps with no plugin knowledge.

Client capability — a named ability a client may have, such as reading the phone's Thread credentials. An action flow can require one; a client lists the flow only when it supports the capability. The host knows no capability by name.

Client value — the secret a client supplies to a ClientValue flow step, of a kind the plugin and the client agree on. The host stores it encrypted for the life of the flow and never logs it.

Imported Thread network — a Thread network the Matter integration did not get from its own parameters but read from a hub with a built-in border router, stored protected in the plugin's storage. It carries its origin and import date, and the operator's configured Thread source wins over it. Sharing code — the short-lived numeric code a hub shows under "Share Thread network credentials" (Thread 1.4 ePSKc). It lets Reeve read the hub's Thread network once; each entry uses one of its ten attempts, and the code is single-use. Active Timestamp — the version stamp of a Thread active dataset. The Thread status shows it for each border router.

Automation

Workflow — a versioned, typed node graph executed by topological sort. The unit of authoring, publishing, versioning, export and execution. A draft is a saved graph automations do not run.

Block — a node type, declared by a factory that supplies its configuration schema, ports and sub-canvas names. Sub-canvas — a nested graph owned by a branching block. Port — a typed input or output; a wired input always beats node configuration.

Expression — a small closed formula on a block input, opted into with an expr: prefix. No loops, no assignment, no reflection, no I/O, and no extensibility hook.

Trigger — an event source bound to a workflow. Automation — a trigger bound to a published workflow together with its parameter bindings; the operator-facing "when this, do that".

Block retirement — what an uninstall does to a native plugin's workflow blocks on each replica: new starts that use them are refused at once, and the blocks are removed when no live run uses them within 30 s, otherwise at the restart.

Execution — one invocation of a published workflow. Suspension — the persisted state of a run paused at a wait block, survivable across restart.

Concurrency mode — how repeated fires of one workflow interact: single, restart, queued or parallel, with an overflow behaviour for the excess.

Scene — a stored set of canonical device actions applied as one unit, with its own access control. No graph, no branching, no state, no conditions. Application is partial by design: undispatchable actions are reported as skipped rather than aborting the rest.

Blueprint — a checksummed, repository-distributed workflow template with typed install-time inputs, substituted once at install to generate a real workflow. A blueprint installation is the record binding those inputs to concrete entities; it owns the generated workflow and can enter a binding-error state when a bound device or room stops resolving.

A scene is a state: set these devices to these values. A workflow is a program: typed graph, branching, loops, error handling. A blueprint is a template for a workflow: parameterised, shared between installations, and expanded server-side once at install.

Helper — named, persistent automation state that is not a device: boolean, number, counter or expression-derived. Standalone, or attached to a logical device for grouping. Addressable from expressions, immutable in slug and type after creation, and its writes ride the device event channel as synthetic events — which is what lets ordinary state-change triggers fire on them.

Reach for a helper when automations need to remember something between runs — a mode, a threshold, a count — and inventing a fake device would be a lie.

Deployment

Workload — a unit of out-of-process code declared in a plugin's deployment manifest section and reconciled onto a runtime provider. Carries an image, privileges, volumes, network posture, parameters and a consented profile. A workload instance is one deployed copy, bound to a plugin instance.

Parameter section — the heading an author files deployment parameters under with section. Sections render in order of first appearance; parameters without one render first, unlabelled.

Switch (parameter switch) — an enum deployment parameter whose reveals maps values to parameter sections. A section named there is a gated section: the parameter screens show it only while the switch's current value reveals it. Its values are delivered either way.

Sidecar — the container a workload materialises as. Holds exactly one credential and exactly one egress: back to the backend.

Runtime provider — what materialises a workload: Kubernetes, Docker or manual rendering.

Roll window — the builds one host build may run beside, checked once at start-up before any migration. By default it is the exact window: only members with an identical informational version (1.0.0 and 1.0.0+4211 are different builds). A build that sets RollFrom (the MSBuild property ReeveRollFrom, stamped into the host assembly) accepts every build whose version is at least that, by SemVer precedence with build metadata ignored. A replica outside the window of a member that holds a lease refuses to start (exit code 76); a refusal is not a boot failure and never counts toward safe mode. What a build in the window may change is the overlap rule.

Contract step — a removal or tightening in a migration (a dropped column, a unique index, a column made required) that a build older than it cannot survive. It carries // CONTRACT (expand X.Y.Z), and ships in a release whose RollFrom is above that core (constraints).

Expand — the earlier step of a contract step: the release, by its core, in which builds stopped reading or writing the object the contract step later removes.

Full-stop release — a release whose RollFrom is its own core, because its change cannot overlap an older build (a hot-table index build, a frozen name renamed, a library jump that does not roll): every build in the old fleet stops before the first new replica starts.

Hot table — a table every replica writes continuously (the telemetry hypertables, the workflow journal, the change log); building an index on one or rewriting it locks every replica's writes, so it is a full-stop release.

Frozen name — a name two builds share by spelling (a change-log type, a unit kind, an Ask kind, a bus channel, a claim or slot key formula, a hub method); renaming it is a full-stop release.

Session plane (workload gateway) — the backend-terminated WebSocket over which a sidecar talks to the backend. The authority on whether a workload is present.

Gateway URL — the base address a sidecar dials back on, one per provider: Docker's and Kubernetes' gatewayUrl and Manual's externalGatewayUrl, the Kubernetes one blank when its in-cluster address is derived. Reeve appends /ws/workloads/{instanceId} to it and stores the three itself, as keys of the provider entries it saves with PUT providers/{provider}. The workload library's settings row carries none of the three.

Pending switch — the state of an installation whose managed selection declares a provider other than the one in force: installs and updates of plugins that declare workloads, restores from a retained volume and adoption are refused with provider_switch_pending until the declared provider is active.

Workload token — a per-instance, hashed, revocable bearer credential carrying zero permission codes, used only on the session plane and, when consented, on a self-scoped REST surface.

Credential id — the name a stored workload spec gives a credential Reeve issues, so the workload library can ask Reeve for it without knowing what it is. Reeve issues one, the workload token, under gateway-token. Distinct from the env name the credential is written under, REEVE_WORKLOAD_TOKEN.

Consented profile — the verbatim record of the privilege posture an operator approved. Split into a security axis (kind, network mode, privileges, paths) and an informational axis (volumes). Every apply asserts the desired spec is a subset of it.

Retained volume — storage holding data whose loss is unrecoverable: Matter and Thread fabric state, Bluetooth bind keys, Z-Wave network keys. Never auto-deleted, matched by label, single-owner.

Adoption — binding pre-existing labelled resources to a new workload instance after ownership evidence is verified.

Change log — the cluster library's record of configuration changes: one entry per changed aggregate type and key, appended in the transaction that commits the change. Reconciler — Reeve's code that rebuilds one aggregate type's state from a database snapshot and schedules the work that converges components from it. Generation — a replica's immutable set of those states, one per type; a request reads the generation it pinned at admission.

Write acknowledgement — the cluster library's confirmation that every serving replica has applied a configuration write. The write's request is answered after it, or with 202 write_unconfirmed when the wait runs out.

Fenced replica — a replica that has stopped serving because a fact about itself, its lease or its applier, says it cannot keep the acknowledgement's promise. It refuses requests outside a small reachable set and rejoins with a full load. Skip — an operator's decision, opened with --cluster-skip, to let replicas pass change-log entries of one type that its reconciler cannot apply.

Running replica — one whose member row in the cluster library reads joining or active with a valid lease, or fenced. A stopped replica keeps a draining row and a crashed one an expired lease, and neither is running.

Process id — the id ReplicaProcessIdentity draws once per process. It names one run of a replica for the plugin roll, the module-swap acknowledgement and requests between replicas, and unlike the library's epoch it survives a fence and rejoin.

Host-build check — Reeve's comparison of this replica's full build string with every leased joining or active member's version; any difference, a read fault or this replica's absence is a split, and work that needs one build waits.

Member ask — the cluster library's request to one replica by its id, answered by that replica's one member handler; Reeve's flow steps and ends, redescribe, replica logs and the recovery restart travel on it. Keyed ask — the library's request to whichever replica owns a unit kind's key, answered by the handler registered for that kind; the Matter bridge's commissioning verbs, its resync and its holder question travel on it to matter-bridge-link.

Unit kind — a named piece of exclusive background work that the cluster library places on one serving replica and moves when that replica drains, fences or dies. Held kinds — the Reeve unit kinds a replica holds right now, published in its status report and listed on the Cluster tab; advisory, so a kind may briefly appear on two replicas. Unit host — Reeve's adapter between its own work and a unit kind: ReeveUnit starts a Reeve unit when the replica takes the kind and stops it when the kind is lost, and JobUnit runs a periodic job's loop only while the kind is owned. Both retry a start that throws, with a growing backoff, until the kind is lost.

Held mutex (ClusterMutex) — a per-key exclusion whose holder lives outside a unit: a held slot of the cluster library with a limit of one, a 30 s time to live and a renewal every 10 s. Its Lost token fires, for good, at a fence, at drain start, when its renewal is refused or overdue, and at disposal; the holder stops its work and then releases. A drain does not end its slot. Plugin connection leases, the MQTT availability leader, the workflow run lock, the workloads engine's leadership and the plugin operation locks are held mutexes.

Tenure — one holding of exclusive work: a unit kind's ownership, with its fencing token, or a held mutex. It is never extended, and a readmitted replica takes a new one.

Turn — one replica's reload of a plugin type during an update's plugin roll. The leader sends it; the replica runs it, claims it, and releases it with an outcome: succeeded, failed, interrupted, or did not run.

Claim — a replica's lease on its turn, held in the plugin type's row of cluster.plugin_roll_turns on the database clock. It is renewed while the turn runs, checked before each fence the turn raises, and released when the turn ends. A claim succeeds only on a released row of its own update that is neither halted nor given up.

Halt — the plugin roll stopped at a failure: a failed turn, a turn that did not finish, or an unacknowledged fault at the target version. It is recorded in the claim row with a haltId; a restart, a crash or a leader failover leaves it standing, and an operator's Retry or Give up ends it.

Acknowledgement set — the faults at the target version an operator has retried past, each with the highest sequence acknowledged. A fault in it does not halt again unless it recurs with a higher sequence. It belongs to one update and starts empty for the next.

Fleet size — Workloads:PluginRoll:FleetSize, the number of live replicas the plugin roll waits for before it sends a turn or answers done. It comes from configuration alone (one on an unclustered host). The chart supports no autoscaling, so the count is fixed by replicaCount.

Alerts and system status

Alert — one row on the shared alert store for one problem that needs a person: a severity, a message, an optional fix route and the count of its repeats. Plugin issues, workload and roll conditions, egress denials, certificate rejections, cluster faults and disabled automations are all alerts. A plugin issue is the alert a plugin raises through the issue registry.

Alert kind — an entry in the catalogue that fixes an alert's code, lifecycle, permissions, box and destination. Producers name a kind and supply only its declared parameters.

Fingerprint — the identity of an alert: a hash of its kind and the kind's parameters. The same problem raised again, from any replica, is the same row; the same kind with other parameters (another device, another node) is another alert.

Condition / event — the two lifecycles. A condition exists while its cause holds and resolves when its producer clears it. An event is a thing that happened and stays open until someone acknowledges it or retention removes it, even after its cause is gone.

Needs attention — an open alert at Warning or above that no acknowledgement, snooze or silence covers. It is what the sidebar badge, the tab counts and the bubble count. An Info alert is listed as information and never needs attention.

Attention epoch — the stamp that moves each time an alert starts needing attention again (a new occurrence, a severity rise past its acknowledgement, a snooze running out). A bubble dismissal is tied to an epoch, so an alert that returns shows again.

Acknowledge / snooze / silence — the three ways to take an alert out of the count. Acknowledge keeps it listed until its condition ends; snooze hides it for 1 hour, 1 day or 7 days; silence ("forever") hides it until it is reversed. All three are global, audited, and cover the alert's severity at that moment and every level below it.

System status — the Advanced-mode page at /app/system that shows within seconds whether anything needs handling: a status line, the attention list and, per tab, the boxes the viewer may see. The status line counts conditions that hold: the alerts that need attention plus each box that needs attention on its own facts, so it can read more than the badge. A box is one block of it (cluster, plugins, workloads, key ring, egress, and so on) with a one-line fact that expands to detail, and its own permission.

Bubble — the bell at the top right that lists the alerts that started needing attention since the user's previous sign-in. "Dismiss for now" hides one from this user's bubble only; "dismiss forever" silences it for everyone.

Replica status report — what each replica reports about itself every 3 seconds as the reeve section of the cluster status registry (no report once 45 seconds old): its safe mode, faulted plugin instances, secret health, held kinds and process id; its build is its member row's version. The owner of the replica-status-alert kind turns the reports into alerts and clears them only on positive evidence that a condition is gone. Status registry — the cluster library's per-member status sections on PostgreSQL, read through IClusterStatus and at /api/admin/cluster/status. Silent replica — one the status page expects that has no fresh report; its boxes read incomplete.

Interface

Dashboard — a customisable recursive layout of containers and widgets: personal, shared or pinned. Widget — a leaf element in that layout.

Custom widget — a third-party bundle rendered in a cross-origin sandboxed frame. Receives no token, communicates only by message passing, and may touch only the devices explicitly bound to it in the dashboard configuration.

Basic mode / Advanced mode — the resident-facing and operator-facing renderings of one application. Basic is the default for everyone. Mode is presentation only, never a security boundary: hiding a navigation item never hides its route.

Shows as (presentsAs) — the household's choice of what a Switch or an Outlet drives: light, outlet (a Switch only), or the device's own type (auto). Basic reads it for the tile, the summary and the room widget; the Matter bridge's Exported as: Auto exports the kind last applied from it.

Home — the household: the root of the location hierarchy, holding the time zone that schedule triggers and access windows resolve against and the coordinates that solar triggers need. Room — a space inside it; devices belong to rooms.

Identity and access

Permission code — a granular capability string in a closed catalogue. Never named after a plugin or a protocol. Role — a named bundle of them.

Device access override — a per-user, per-device hidden or view-only setting layered over role permissions. A time window restricts access to given hours and days, evaluated in the household time zone, and overrides the override.

Personal access token — a revocable bearer credential for scripts and schedulers. Its effective permissions are the intersection of a fixed ceiling, its own scope and its owner's current permissions.

Step-up token — a short-lived proof bound to one sensitive ceremony and compared by purpose at redemption.

Audit entry — a record of a security-relevant or administrative event, written in the same transaction as the change it describes.

Baby monitor profile — one monitored room: a camera, the sound classes and motion duration it reacts to, a sensitivity preset, a quiet period and reminder interval, and the household members allowed to use it. Created and edited under babymonitor.manage, where the deployment turns the baby monitor on.

Baby monitor session — one phone running one profile, kept alive by heartbeats and lapsing after 90 seconds without one.

Baby monitor episode — one alarm's lifetime, from its first confirmed detection until the quiet period passes without activity; acknowledging it stops the ringing but does not end it.

Baby monitor problem notification — the one quiet notification a phone shows while it cannot vouch for the monitor (server lost, evaluator stale, camera fault, the dead-man switch firing). It follows silent mode and Do Not Disturb and never rings; only a detection rings. A problem that comes back to the same room within ten minutes of clearing is posted silently.

Baby monitor dead-man switch — an exact Android alarm about three minutes ahead, re-armed by every successful contact with the server. It fires only when the app stopped checking in, and then posts the problem notification, or ends the sessions of a killed app with one notice. It never rings.

Data

Hypertable — a time-partitioned table; the required home for high-frequency data, keyed by time plus a surrogate id.

Continuous aggregate — the materialised hourly rollup that wide analytics windows read. Narrow windows read the raw hypertable instead.

Retention policy — the database-side job dropping data past a window. Lives in the migration, not in application settings.