Core entities
PartialThe fleet is everything an install manages: the locations, the systems in them, and the components that make them up, with the outposts that reach them. Each is a row with its own identity, so every sample, event, alarm, command and config value names exactly one owner. To work with them in the console, see entities; the full relational shape is the data model.
The fleet: four structural entities
Section titled “The fleet: four structural entities”- A component is one managed device, app or service (a display, a DSP, a cloud calling
service). It is an instance of a product, and the pointer is required: three shipped generic
products (
generic-device,generic-app,generic-service) cover anything not modeled more specifically. - A system is a set of components doing one job (a meeting room, a classroom, a video wall). It is the unit Omniglass monitors and the one support troubleshoots through, with one health of its own. It may conform to a standard and be classified by a system type, both optional.
- A location is where things sit, from a campus down to a room, in the customer’s own tree. A location’s location type is required, and is the only thing that shapes it.
- An outpost is the collection process (
omniglass outpost run) that runs tasks and commands over endpoints and reports back (outposts). It is structural because it owns its own telemetry and alarms.
A system is the logical grouping the business cares about; a location is the physical one. Where a location holds exactly one system the two coincide, and the console shows them as one detail view (ADR-0139). A component joins a system through membership (below), and may also carry a location of its own.
| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
name | text | not null | |
label | text | ||
parent_id | uuid | FK → component.id | The component tree: a chassis over its cards |
location_id | uuid | FK → location.id | Where it sits, when set explicitly |
created_at | timestamp with time zone | not null, default now() | |
updated_at | timestamp with time zone | not null, default now() | |
product_id | uuid | FK → product.id, not null | What it is: required, on delete restrict |
name_generated | boolean | not null, default false | True while the platform owns the name |
ordinal | integer | The number a generated name was minted from; null on a name an operator chose | |
label_generated | boolean | not null, default false |
CHECK constraints and unique indexes on component
-
component_ordinal_check:CHECK (((ordinal IS NULL) OR (ordinal >= 1))) -
component_location_name_key:CREATE UNIQUE INDEX component_location_name_key ON public.component USING btree (location_id, name) WHERE ((parent_id IS NULL) AND (location_id IS NOT NULL)) -
component_orphan_name_key:CREATE UNIQUE INDEX component_orphan_name_key ON public.component USING btree (name) WHERE ((parent_id IS NULL) AND (location_id IS NULL)) -
component_parent_name_key:CREATE UNIQUE INDEX component_parent_name_key ON public.component USING btree (parent_id, name) WHERE (parent_id IS NOT NULL)
| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
name | text | not null | |
label | text | ||
parent_id | uuid | FK → system.id | The system tree: a hall over its rooms |
location_id | uuid | FK → location.id | Where it is located; optional today |
created_at | timestamp with time zone | not null, default now() | |
updated_at | timestamp with time zone | not null, default now() | |
standard_id | uuid | FK → standard.id | The contract it is built to; optional |
system_type_id | uuid | FK → system_type.id | What it is for; optional |
label_generated | boolean | not null, default false | |
name_generated | boolean | not null, default false | |
ordinal | integer |
CHECK constraints and unique indexes on system
-
system_ordinal_check:CHECK (((ordinal IS NULL) OR (ordinal >= 1))) -
system_location_name_key:CREATE UNIQUE INDEX system_location_name_key ON public.system USING btree (location_id, name) WHERE ((parent_id IS NULL) AND (location_id IS NOT NULL)) -
system_orphan_name_key:CREATE UNIQUE INDEX system_orphan_name_key ON public.system USING btree (name) WHERE ((parent_id IS NULL) AND (location_id IS NULL)) -
system_parent_name_key:CREATE UNIQUE INDEX system_parent_name_key ON public.system USING btree (parent_id, name) WHERE (parent_id IS NOT NULL)
| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
name | text | not null | |
label | text | ||
parent_id | uuid | FK → location.id | The location tree; a forest with any number of tops and no root |
created_at | timestamp with time zone | not null, default now() | |
updated_at | timestamp with time zone | not null, default now() | |
location_type | uuid | FK → location_type.id, not null | What kind of location it is; required |
label_generated | boolean | not null, default false | |
name_generated | boolean | not null, default false | |
ordinal | integer |
CHECK constraints and unique indexes on location
-
location_ordinal_check:CHECK (((ordinal IS NULL) OR (ordinal >= 1))) -
location_parent_name_key:CREATE UNIQUE INDEX location_parent_name_key ON public.location USING btree (parent_id, name) WHERE (parent_id IS NOT NULL) -
location_root_name_key:CREATE UNIQUE INDEX location_root_name_key ON public.location USING btree (name) WHERE (parent_id IS NULL)
| Column | Type | Constraints | Notes |
|---|---|---|---|
user_id | uuid | PK, FK → users.id | |
name | text | not null | The address it enrolls and heartbeats under, also its NATS subject; fixed at create |
description | text | not null, default ''::text | |
last_heartbeat_at | timestamp with time zone | Liveness, stamped by the heartbeat | |
enrolled_at | timestamp with time zone | ||
labels | jsonb | not null, default '{}'::jsonb | |
created_at | timestamp with time zone | not null, default now() | |
updated_at | timestamp with time zone | not null, default now() | |
label | text | ||
location_id | uuid | FK → location.id | |
orphaned_batches | bigint | not null, default 0 | |
last_orphaned_at | timestamp with time zone | ||
platform_component_id | uuid | FK → component.id |
CHECK constraints and unique indexes on outpost
-
outpost_name_key:CREATE UNIQUE INDEX outpost_name_key ON public.outpost USING btree (name) -
outpost_platform_component_id_key:CREATE UNIQUE INDEX outpost_platform_component_id_key ON public.outpost USING btree (platform_component_id)
The catalogs that classify the fleet
Section titled “The catalogs that classify the fleet”A catalog row is something the fleet is typed by. Every catalog shares one pattern: shipped rows
(official, namespace og) that the boot seed writes and a release may improve, beside an
admin’s own rows (namespace local). The classifiers are:
| Classifies | Catalog | Nests | Admin page |
|---|---|---|---|
| a product | component_type | yes, by parent_id | products |
| a component | product (with vendor and driver) | a variant points at its base | products |
| a system, by purpose | system_type | yes, by parent_id | standards |
| a system, by contract | standard | a variant points at its base | standards |
| a location | location_type | no; allowed_parent_types constrains the tree | location types |
Catalog reference data: vendor, driver
Section titled “Catalog reference data: vendor, driver”A vendor is an organization behind products, of kind manufacturer, integrator or
developer. A driver is the declared recipe that collects from a product and sets its signals
(collection); a product names at most one.
Catalog reference data: component_type
Section titled “Catalog reference data: component_type”A component type is the device class a product belongs to (display, projector, dsp,
mic). It nests: category roots, subcategories and leaves, after the OpenAVCloud AV Device Taxonomy
(ADR-0131).
It classifies the product, never the component directly
(ADR-0085),
so a component’s type is read through component.product_id -> product.component_type_id.
A type carries the identity facts that span its products, each inherited down the tree and
shadowable at any level: the naming stem, label, icon, the short abbrev, a label_rule and
default_tags. A blank fact means “inherit the nearest ancestor’s”; patching a fact to "" puts it
back to inheriting. A root must state its own stem. The catalog listing serves each row’s resolved
icon and what it would inherit, with the ancestor each fact comes from, in one statement however
deep the tree runs, so no client re-implements the walk. A subtype exists only where a standard’s
slot would name it: wireless-mic beside ceiling-mic, never lcd beside led.
| Type | Stem | Abbrev | Icon |
|---|---|---|---|
display-device (Display Device)
| display | disp | monitor |
display (Display)
| display | fp | monitor |
interactive-display (Interactive Display)
| inherits | inherits | inherits |
projector (Projector)
| projector | proj | projector |
screen (Screen)
| screen | scr | tv |
video-wall (Video Wall)
| videowall | vw | grid |
interactive-whiteboard (Interactive Whiteboard)
| whiteboard | iwb | pencil |
audio-device (Audio Device)
| audio | aud | speaker |
mic (Microphone)
| mic | mic | mic |
wireless-mic (Wireless Microphone)
| inherits | inherits | inherits |
ceiling-mic (Ceiling Microphone)
| inherits | inherits | inherits |
boundary-mic (Boundary Microphone)
| inherits | inherits | inherits |
gooseneck-mic (Gooseneck Microphone)
| inherits | inherits | inherits |
speaker (Speaker)
| speaker | spk | speaker |
audio-mixer (Audio Mixer)
| mixer | mix | sliders |
dsp (DSP)
| dsp | dsp | cpu |
dante-card (Dante Card)
| dante | dc | network |
amplifier (Amplifier)
| amp | amp | speaker |
video-device (Video Device)
| video | vid | video |
camera (Camera)
| camera | cam | camera |
ptz-camera (PTZ Camera)
| inherits | inherits | inherits |
capture-encoder (Capture Encoder)
| encoder | enc | video |
codec (Codec)
| codec | cdc | video |
control-device (Control Device)
| control | ctl | touchpad |
touch-panel (Touch Panel)
| panel | tp | touchpad |
button-panel (Button Panel)
| keypad | bp | grip-vertical |
control-processor (Control Processor)
| processor | cp | cpu |
scheduling-panel (Scheduling Panel)
| scheduler | sp | clock |
occupancy-sensor (Occupancy Sensor)
| sensor | occ | eye |
signal-device (Signal Device)
| signal | sig | shuffle |
presentation-switcher (Presentation Switcher)
| switcher | sw | shuffle |
matrix-switcher (Matrix Switcher)
| matrix | mx | shuffle |
av-extender (AV Extender)
| extender | ext | network |
distribution-amplifier (Distribution Amplifier)
| da | da | shuffle |
collaboration-device (Collaboration Device)
| collab | col | video |
video-bar (Video Bar)
| videobar | vb | video |
wireless-presenter (Wireless Presenter)
| presenter | wp | video |
playback-device (Playback Device)
| media | med | tv |
media-player (Media Player)
| player | mp | tv |
recorder (Recorder)
| recorder | rec | server |
infrastructure-device (Infrastructure Device)
| infra | inf | server |
power-device (Power Device)
| power | pwr | box |
network-device (Network Device)
| network | net | network |
platform (Platform)
| platform | plat | server |
omniglass-outpost (Omniglass Outpost)
| outpost | outpost | cpu |
omniglass-server (Omniglass Server)
| server | srv | server |
generic-device (Generic Device)
| device | dev | box |
generic-app (Generic App)
| app | app | app-window |
generic-service (Generic Service)
| service | svc | server |
Catalog reference data: product
Section titled “Catalog reference data: product”A product is a concrete model a vendor sells: a required kind (device, app or service,
no default), a required component_type_id (on delete restrict), and optional vendor_id,
driver_id, parent_product_id (a variant), icon override and label_rule. A product still
referenced by a component cannot be deleted (409).
Catalog reference data: system_type
Section titled “Catalog reference data: system_type”A system type says what a system is for (meeting, teaching, signage), never the space it sits
in (ADR-0096).
It nests like component_type and carries the same inherited stem, label, icon, abbrev and
label_rule, without default_tags. A type still classifying a system or parenting another type
cannot be deleted.
| Type | Stem | Abbrev | Icon |
|---|---|---|---|
av (AV)
| av | av | layers |
collaboration (Collaboration)
| collaboration | collab | door-open |
board (Board Meeting)
| board-meeting | bm | inherits |
class (Teaching)
| teaching | tch | inherits |
meeting (Meeting)
| meeting | mtg | inherits |
training (Training)
| training | trn | inherits |
conference (Conference)
| conference | conf | inherits |
huddle (Huddle)
| huddle | hud | inherits |
auditorium (Auditorium)
| auditorium | aud | theater |
sign (Signage)
| signage | sgn | tv |
video-wall (Video Wall)
| video-wall | vw | inherits |
interactive-sign (Interactive Sign)
| interactive-sign | isgn | touchpad |
platform (Platform)
| platform | plat | server |
Catalog reference data: standard
Section titled “Catalog reference data: standard”A standard is the contract a system is built to: the slots it fills and the properties and metrics every conforming system exposes. Type and standard are separate axes: one fleet can hold ten signage standards under a single signage type, and a one-off system carries neither. A conforming system reads the standard’s slots and defaults live, never a copy.
Declared properties: the classifier contracts and the declared rows
Section titled “Declared properties: the classifier contracts and the declared rows”A classifier also declares what its instances expose. product_property, standard_property and
location_type_property each bind a property type
with an optional default_value and a required flag; product_metric, standard_metric and
location_type_metric do the same for metric types. An operator’s value is a declared row in the
property series itself
(ADR-0079),
so an edit appends and the history is the series.
One read, EffectiveProperties(ownerKind, ownerID), serves every owner kind. It returns each
contract property as coalesce(the owner's latest declared value, the contract default), plus any
value set on the owner off contract. A component with a generic product, a one-off system, or an
outpost (which has no classifier) resolves its off-contract values alone. The pairs differ only in
five identifiers held as data, so the SQL is written once:
| Owner kind | Classifier column | Contract table |
|---|---|---|
component | component.product_id | product_property |
system | system.standard_id | standard_property |
location | location.location_type | location_type_property |
outpost | none | none |
A write outside the caller’s scope is a non-disclosing 404. To declare a contract, see the properties admin page.
System slots: what a system needs filled
Section titled “System slots: what a system needs filled”A system slot is a position in a system a component fills: a main display, a table microphone. A slot is a position, not a component, so an unfilled slot is visible rather than absent. A slot is declared on a standard (every conforming system inherits it live) or on one system (how a one-off system gets any, or a conforming one adds more). Each carries:
- a quorum, how many fillers it wants (two ceiling mics is one slot with quorum 2), and an optional capacity at or above it;
- an impact,
outage,degradedornone: what the slot being impaired means for its system’s health. It lives on the slot because the same broken box matters differently per slot; - a typed-slot guard: the component types a filler’s product must fall within (self or a descendant; none listed accepts any), and optionally the exact products it may be.
A standard can also state choices: an exclusive-or group of alternates (an all-in-one video bar, or a component-built kit), each slot joining one alternate. Health folds only the best-satisfied alternate’s slots, so the unbuilt alternate never takes the room down.
A slot name means one slot in a system: a system declaring a name its standard already declares is refused with a 409, never shadowed (ADR-0503). Assignment is refused when the component cannot fill the slot, naming both parties:
component "panel-1" is a display; slot "table-mic" wants a video-barChanging a system’s standard carries each occupant onto the new standard’s slot of the same name
when it still fits, and releases the rest (they keep their membership), in one audited transaction
(ADR-0506).
EffectiveSlots(system) is the one read: the standard’s slots and the system’s own, each with its
guard, quorum, fillers and how understaffed it is.
| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
owner_kind | text | FK → choice_alternate.owner_kind, not null | |
name | text | not null | |
label | text | ||
quorum | integer | not null, default 1 | How many fillers it wants before health degrades |
created_at | timestamp with time zone | not null, default now() | |
updated_at | timestamp with time zone | not null, default now() | |
impact | text | not null, default 'degraded'::text | What an impaired slot does to its system |
system_id | uuid | FK → system.id | |
standard_id | uuid | FK → standard.id | |
capacity | integer | ||
position_labels | ARRAY | not null, default '{}'::text[] | |
alternate_id | uuid | FK → choice_alternate.id | The alternate this slot belongs to, when it is part of a choice |
owner_ref | uuid | FK → choice_alternate.owner_ref |
CHECK constraints and unique indexes on system_slot
-
system_slot_capacity_check:CHECK (((capacity IS NULL) OR (capacity >= quorum))) -
system_slot_impact_check:CHECK ((impact = ANY (ARRAY['outage'::text, 'degraded'::text, 'none'::text]))) -
system_slot_owner_arc_check:CHECK ((((owner_kind = 'standard'::text) AND (standard_id IS NOT NULL) AND (system_id IS NULL)) OR ((owner_kind = 'system'::text) AND (system_id IS NOT NULL) AND (standard_id IS NULL)))) -
system_slot_owner_kind_check:CHECK ((owner_kind = ANY (ARRAY['standard'::text, 'system'::text]))) -
system_slot_quorum_check:CHECK ((quorum >= 1)) -
system_slot_name_key:CREATE UNIQUE INDEX system_slot_name_key ON public.system_slot USING btree (owner_kind, standard_id, system_id, name) NULLS NOT DISTINCT
| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
slot_id | uuid | FK → system_slot.id, not null | |
created_at | timestamp with time zone | not null, default now() | |
component_id | uuid | FK → component.id, not null | The filler; on delete restrict, so a filling component cannot vanish |
system_id | uuid | FK → system.id, not null | |
position | integer | not null | Its position within the slot |
CHECK constraints and unique indexes on system_slot_assignment
-
system_slot_assignment_position_check:CHECK (("position" >= 1)) -
system_slot_assignment_component_key:CREATE UNIQUE INDEX system_slot_assignment_component_key ON public.system_slot_assignment USING btree (system_id, component_id) -
system_slot_assignment_position_key:CREATE UNIQUE INDEX system_slot_assignment_position_key ON public.system_slot_assignment USING btree (system_id, slot_id, "position") -
system_slot_assignment_system_id_slot_id_component_id_key:CREATE UNIQUE INDEX system_slot_assignment_system_id_slot_id_component_id_key ON public.system_slot_assignment USING btree (system_id, slot_id, component_id)
Membership: what a slot attaches to
Section titled “Membership: what a slot attaches to”A component doing a job in a system is a member of it (system_member), and a slot is what that
membership does. Membership is many-valued: a rack DSP feeding three rooms is a member of all three.
Filling a slot creates the membership; giving the slot up does not end it, and a member with no slot
is ordinary. is_primary marks the one membership that seeds the
cascade for a caller
with no system in hand; the first membership takes it, and a partial unique index forbids a second.
A membership writes onto both its ends, so binding, unbinding, re-defaulting or staffing costs
system:update on the system and component:update on the component
(ADR-0510).
A component create that names a system writes the same row, so it costs the same
(ADR-0107).
Membership is its own verb (/systems/{name}/members, :setPrimary), never a field on the
component’s update.
| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
is_primary | boolean | not null, default false | The membership that seeds the cascade for a context-free caller |
created_at | timestamp with time zone | not null, default now() | |
updated_at | timestamp with time zone | not null, default now() | |
component_id | uuid | FK → component.id, not null | |
system_id | uuid | FK → system.id, not null |
CHECK constraints and unique indexes on system_member
-
system_member_one_primary_idx:CREATE UNIQUE INDEX system_member_one_primary_idx ON public.system_member USING btree (component_id) WHERE is_primary -
system_member_system_id_component_id_key:CREATE UNIQUE INDEX system_member_system_id_component_id_key ON public.system_member USING btree (system_id, component_id)
The seed model: templates versus canonical catalogs
Section titled “The seed model: templates versus canonical catalogs”Shipped content comes in two kinds, never conflated:
- Example content is created from a template
(
POST /standards:createFromTemplateand its siblings). The copy is one-time with no link back: what lands is an operator-owned row, audited once as a create carryingfrom_template. The boot seed plants no standard (ADR-0827). - Canonical vocabulary (the metric, property, event and command type catalogs, and the
classification catalogs
vendor,driver,component_type,product,system_typeandlocation_type) is the shared namespace a driver maps onto, identical install to install. The boot seed writes it with an authoritative upsert on every start, asogrows an operator never writes (ADR-0106).
Copying applies from template to row, never from classifier to instance: a system conforms, it never copies.
An admin who wants a shipped row to read differently forks it
(ADR-0095).
The edit stores the admin’s version of the row’s mutable facts in catalog_shadow, keyed on the
shipped row’s uuid, and every read resolves the shadow over it. The shipped row is never written, so
the next release can still improve it, and :restore (on component types and location types)
discards the shadow. A fork restates facts, never structure: the uuid, name, official flag and
parent stay shipped, so foreign keys, tree walks and URLs keep naming the same row. The console
reads three origins: official, custom, and overridden.
The variable-depth trees
Section titled “The variable-depth trees”component, system and location each nest by a parent_id self-reference to any depth
(campus, building, floor, room). The trees are what the cascade resolves
over. A move re-parents through the :move custom method, guarded against cycles
(ADR-0088):
placement is an authorization act, so it is its own verb gated <resource>:move, and clearing a
parent needs the same all-scoped grant creating a root does. Classification (product, standard,
system type, location type) stays on PATCH
(ADR-0064).
A location type’s allowed_parent_types (location type ids and the root sentinel; empty means
unconstrained) is enforced on create and move. The location tree has no root: a fleet is a forest of
tops, and “everything” is the cascade’s platform tier, never a location.
Sub-components and sub-systems
Section titled “Sub-components and sub-systems”Nesting is same-kind: a chassis over its line cards, a hall over its rooms. It feeds the cascade (deeper wins) but not the health rollup: a system’s health rolls up to its location, never through the system tree (health). Containment implies nothing about power or reach: a parent’s reboot holds none of its children for being its children.
Dependency edges: what a component needs, apart from where it sits
Section titled “Dependency edges: what a component needs, apart from where it sits”What a component needs is a separate fact from where it sits: a component_dependency row from
the dependent to its upstream, of one kind.
| Kind | Reads as | What it widens |
|---|---|---|
power | fed from the named outlet of the upstream | a power command on that outlet holds the dependent |
host | hosted by the upstream (a panel paired to a codec, a card in a chassis) | a reboot of the upstream holds the dependent too |
path | reached through the upstream (a peripheral behind a gateway) | while the upstream’s gates are closed, the dependent’s in-band endpoints hold too (outposts) |
A power edge names its outlet and no other kind does; a component never depends on itself; an
edge that would close a cycle within its kind is refused; deleting either end deletes the edge.
Recording one costs component:update on the dependent and component:read on the upstream. The
edges feed a disruptive command’s hold set.
omniglass component dependency create codec-1 --upstream pdu-1 --kind power --outlet 3omniglass component dependency list codec-1omniglass component dependency delete codec-1 power pdu-1| Column | Type | Constraints | Notes |
|---|---|---|---|
id | uuid | PK, default uuidv7() | |
component_id | uuid | FK → component.id, not null | The dependent |
upstream_id | uuid | FK → component.id, not null | What it depends on |
kind | text | not null | |
outlet | text | The upstream outlet that feeds it; power edges only | |
created_at | timestamp with time zone | not null, default now() |
CHECK constraints and unique indexes on component_dependency
-
component_dependency_kind_check:CHECK ((kind = ANY (ARRAY['power'::text, 'host'::text, 'path'::text]))) -
component_dependency_outlet_check:CHECK ((((kind = 'power'::text) AND (outlet IS NOT NULL) AND ((char_length(outlet) >= 1) AND (char_length(outlet) <= 64))) OR ((kind <> 'power'::text) AND (outlet IS NULL)))) -
component_dependency_self_check:CHECK ((component_id <> upstream_id)) -
component_dependency_edge_key:CREATE UNIQUE INDEX component_dependency_edge_key ON public.component_dependency USING btree (component_id, upstream_id, kind)
Ownership: the exclusive-arc
Section titled “Ownership: the exclusive-arc”Everything observed, asserted or told attaches to exactly one owner through the exclusive-arc:
an owner_kind column, the matching typed foreign key (component_id, system_id, location_id,
outpost_id), and a CHECK that exactly the matching one is set. The sample lanes, event and
command carry it, so a system and an outpost own telemetry as first-class owners: a
system owns its health and what a push or a calc rule reports for it as a whole, an outpost its
self-health. A location owns its declared properties and calculated health, and no observed sample
(ADR-0422).
Alarms are component-owned today (alarms and actions).
The config cells ride a sibling arc with a platform arm instead of outpost: a variable, secret
or tag binding is owned at platform, a location, a system or a component (a tag also at an
outpost; a secret never at a system), and resolves down the cascade. The
DDL pattern is on storage.
Lifecycle: delete today
Section titled “Lifecycle: delete today”A delete is refused while the row still has structural children or something still references it: a location with child locations, a system with subsystems, a component filling a slot, a product or type still classifying something. Deleting a system removes its memberships and keeps the components. The console shows what is in the way (entities).
How an entity is identified
Section titled “How an entity is identified”Three things, and no fourth:
- id, a uuid: immutable, the primary key, what every foreign key and
audit_log.resource_idstores, so a rename rewrites nothing. - name, the renameable identifier an operator types and a URL or CLI argument carries. The rule
is an allowlist,
^[a-z0-9][a-z0-9-]*$, so a name never collides with a path separator, an accessor, a NATS wildcard or the router’s:verbsuffix. Renaming is its own custom method,:rename, gated<resource>:rename, with nonamein thePATCHbody (ADR-0076). - label, an optional friendly string a person reads (“HQ Boardroom DSP”). Absent is SQL
NULL, never the empty string, and a surface with no label renders the name verbatim (ADR-0118).
A name is unique within its placement, not across the fleet: a component or system scopes to its parent, else its location, else the fleet; a location to its parent, else the fleet. A top location’s name and an outpost’s name stay fleet-wide.
Every exception is declared in internal/storage/identity_shape.go and rendered here. A
keyspace table’s name is fleet-wide vocabulary a telemetry record is typed by, on the same rule:
| table | why it is not on the entity name rule |
|---|---|
command_type | set-input, a command name |
event_type | call-started, an occurrence name |
metric_type | icmp-rtt-avg, a numeric-series name referenced from drivers and templates |
property_type | serial-number, a signal name referenced from drivers and templates |
A human identifier that is not a name looks name-shaped and must never acquire the name rule:
| table | why it is not on the entity name rule |
|---|---|
blob | content-addressed by sha256, for the same reason |
file | a filename with an extension (codec-firmware-2.1.4.txt): not unique and already the label; a file route takes it where exactly one file the caller can see carries it, and the uuid always (#1133) |
machine | the username analogue for kind=machine: unique like one (#563), on its own rule rather than the entity name rule; a user route takes it beside the uuid, and a word that is both a username and a service name addresses neither (#1133) |
oauth_code | keyed by the hash of a minted authorization code (#2048), not a name: it lives five minutes and is spent by its one exchange |
oauth_refresh | keyed by the hash of a minted refresh token (#2073), not a name: it is spent by its one refresh and pruned when its credential rotates |
oidc_state | keyed by the hash of a minted single sign-on state (#2362), not a name: it lives ten minutes and is spent by its one callback |
person | a username: its own rule and its own uniqueness, not the entity name rule; a user route takes it beside the uuid (#163, #1133) |
platform_server | the identity a server boots under (OMNIGLASS_SERVER_NAME, else its hostname), not an operator's name: a hostname need not be a kebab token, and the server's component carries the operator-facing name (#1627) |
task | content-addressed, the id IS hash(interface, kind, schedule, params), so a name would be a second identity for the same row |
telemetry_receipt | a publisher-minted batch id (the subject a batch arrived on and its Nats-Msg-Id, ADR-0311), not a name: it identifies one landed ingest batch for as long as its horizon keeps it |
Everything else is id-only. Every table an operator names carries a label, or declares why not (ADR-0119):
| table | why it carries no label |
|---|---|
assistant_conversation | a private working name its owner picks to resume by; nobody else reads it, so there is no audience a friendlier string would be for |
blob | no operator surface of its own: a blob is reached through the file that references it, and nothing renders a blob row for a label to appear on |
file | its name is already the label, so a second string would be a second label rather than the identifier a label sits beside (#613 out of scope, D1 deferred to #755) |
machine | the identifier IS what every surface shows: userIdent resolves a service user to service.name, and it cannot resolve to a label, which is optional and not unique |
oauth_code | no operator surface of its own: only the token exchange reads a code |
oauth_refresh | no operator surface of its own: only the refresh grant reads a refresh token |
oidc_state | no operator surface of its own: only the sign-in callback reads a state |
platform_server | no operator surface of its own: the server is shown through its platform component, which carries the label |
telemetry_receipt | no operator surface of its own: only the ingest's conflict check reads a receipt, and nothing renders a receipt row for a label to appear on |
An address: a uuid or a dotted path
Section titled “An address: a uuid or a dotted path”Every component, system and location resolves through one {ref} path parameter, three ways,
tried in order (ADR-0089):
- a uuid, the address: the only reference the platform generates or stores;
- a bare name, resolved within the resource’s own collection;
- a dotted path, a positional lookup: location segments from a top, an accessor that switches
tree (
$comp,$sys), then segments within it.boi.17c.415a.$comp.dsp-1.dante-card-1is a Dante card in a DSP chassis in room 415a. Quote it in a shell ('...$comp...'), which would otherwise expand$compto nothing.
A bare name matching more than one row the caller can read is a 409 listing each match as its
dotted path and uuid; a name matching nothing is a 404
(ADR-2334).
A read carries the resolved path and path_segments beside two display-only renders, dashed
(boi-17c-415a-display-1) and compact (boi17c415afp1, the type’s abbrev for the stem), which do
not resolve back.
Generated names and labels
Section titled “Generated names and labels”A name or label the platform derives is a default that tracks until touched
(ADR-0090):
a stored value plus a pen (name_generated, label_generated) saying who owns it.
Names. A component or system created with no name mints its type’s resolved stem plus the
lowest free ordinal in its placement bucket (display-3). A system suppresses the ordinal on the
first of a stem in its bucket (board-meeting, then board-meeting-2)
(ADR-0101).
A location type opts in through a nullable name_rule; no shipped type carries one, since a floor or
a room has a real-world name
(ADR-0103).
While the platform owns a name it re-mints only when an input to the mint changes: a reclassify that
changes the resolved stem, or a move that changes the bucket. :rename freezes it, and
:resetName hands it back. Editing a rule renames nothing.
A create form previews the name a blank field will get through :renderLabel, which reads the next
free ordinal without allocating it. The create posts that name back as expected_name, and is a
409 if allocation would now stamp a different one
(ADR-0104).
Labels. A label reads three rungs: the one an operator typed, else the one a rule rendered, else
the name. Rules resolve most-specific first: product, then the component_type chain, then the
global rule for components; standard, then the system_type chain, then the global rule for systems;
location type, then the global rule for locations
(ADR-0098).
A rule is Go text/template over a closed map of strings and a closed grammar, checked when the rule
is edited (422 if it does not parse or reaches outside the grammar). A rule that fails on one entity
renders no label rather than failing the write.
| Function | What it does | Example |
|---|---|---|
title | Upper-cases the first letter of each word and leaves the rest of the word alone, so casing a vendor chose survives. A word in the acronym list is replaced by that list's own form. | ceiling mic renders Ceiling Mic |
upper | Upper-cases every letter. | dsp renders DSP |
lower | Lower-cases every letter. | DSP renders dsp |
slug | Reduces a string to one kebab token of lowercase letters, digits and single hyphens, which is exactly the shape a name has to have. | HQ Boardroom (North) renders hq-boardroom-north |
words | Turns the separators a name is built from into spaces, which is what lets a rule read a kebab name as something a person would say. It is slug's opposite number. | north-wing renders north wing |
Beside those, a rule may name the logic and comparison builtins (
and , or , not , eq , ne , lt , le , gt , ge
), and nothing else text/template offers. A rendered label is capped at 200
characters.
A component rule reads 9 keys:
| Key | What it holds |
|---|---|
{{.Name}} | The component's own name, whether an operator typed it or the platform minted it. |
{{.Ordinal}} | The number the component's NAME carries, and empty when it carries none: an operator named the row, or the mint suppressed the first of its stem in the bucket (ADR-0101). Empty is falsy, so {{if .Ordinal}} is the whole of the suppression rule a rule author writes. |
{{.TypeName}} | The label of the component_type the product classifies it as, resolved over an operator's fork of a shipped row. |
{{.TypeAbbrev}} | The abbreviation inherited down the component_type chain, first non-null wins. |
{{.Stem}} | The naming stem inherited down the component_type chain, the token generated names are built from. |
{{.ProductName}} | The product's label. |
{{.VendorName}} | The vendor's label, empty when the product names no vendor. |
{{.LocationLabel}} | How the location this component sits AT reads: the label an operator typed or the platform rendered, else that location's own name. It is the row's own location, never an ancestor's and never its plane root's, so a nested component with no location of its own reads it as absent. |
{{.SystemTypeLabel}} | The label of the type of the system this component is a PRIMARY member of, empty when it is a member of none. |
A system rule reads 8 keys:
| Key | What it holds |
|---|---|
{{.Name}} | The system's own name, whether an operator typed it or the platform minted it. |
{{.Ordinal}} | The number the system's NAME carries, and empty when it carries none, so the two halves of a divisible boardroom read as the name shows them (ADR-0101). |
{{.TypeName}} | The label of the system_type it is classified as. |
{{.TypeAbbrev}} | The abbreviation inherited down the system_type chain, first non-null wins. |
{{.Stem}} | The naming stem inherited down the system_type chain. |
{{.StandardName}} | The label of the standard it conforms to, empty when it conforms to none. |
{{.LocationLabel}} | How the location this system sits at reads: the label an operator typed or the platform rendered, else that location's own name. |
{{.SharesLocation}} | Set when another system sits at the same location, empty when this one is alone there: a room's sole system reads as the room, and once it holds several each names its kind. |
A location rule reads 2 keys:
| Key | What it holds |
|---|---|
{{.Name}} | The location's own name, which an operator types unless its type carries a name rule. |
{{.TypeName}} | The label of the location_type it is classified as, resolved over an operator's fork. |
A rule reads what an entity is and the label of the location it sits at, never its ancestry, so
a campus rename restamps nothing beneath it. Where the blast radius is one placement (a location’s
relabel, a system’s reclassify, a primary-membership change), labels restamp inside the act’s own
transaction. Where it is the whole fleet (editing a rule, a type’s label, or the acronym list),
nothing restamps until an admin runs :previewLabels and then :recomputeLabels
(ADR-0100).
title consults the label.acronyms setting, one replaceable
install-wide list, so dsp renders DSP
(ADR-0099).