Skip to content

Decision log

The pages are written in the present tense as the target design, and each rebuilt page carries a status badge that says how much of it is built (implementation status). Neither axis carries history: why a call was made, when it was reversed, or why the shipped code differs from the page that describes it. That is what this log is for.

A page tells you what the design is and how much is built. This log tells you how it got there: the decisions that bind the design, the ones that were reversed in the open, and the points where the implementation has deliberately (or accidentally) drifted from the prose. It is the project’s architecture decision record (ADR), kept lightweight and append-only.

  • One entry per decision that reverses a prior call, settles an open question, or records a point where the build diverges from a page’s present-tense design.
  • Each entry carries a date, a status (Proposed, Accepted, Resolved, or Superseded), the decision in one line, the context that forced it, and the page(s) it touches.
  • A divergence entry is the partner of a page’s inline note: the page says what is true now, this log says why and when it diverged, and which issue tracks closing the gap.
  • Entries are never edited away. A reversed decision is marked Superseded and points at the entry that replaced it, so the trail of reasoning survives. Nothing in this log is deleted when a page changes.
  • Two numbering ranges. ADR-0001 to ADR-0163 were numbered in sequence, and that range is closed. Every later decision takes the number of the issue it was decided under (ADR-1108 was decided under issue #1108), so two decisions made at once never compete for one number; a second decision on the same issue takes a suffix (ADR-NNNN.2, anchored as #adr-NNNN2-...). The index lists both ranges in number order.
  • New reversals and divergences are added per slice, as part of the ship gate: if a slice changes a settled call or ships something that differs from its architecture page, the entry lands in the same PR.

This log was seeded on 2026-06-30 from the first architecture-drift review, which backfilled the entries below from the project’s history. From here it grows one slice at a time.

IDDateStatusDecision
ADR-00012026-06-27AcceptedAI acts as a human / service principal; a first-class agent principal is deferred
ADR-00022026-06-27AcceptedAuthorization is role + scope grants, not a per-principal allow-list
ADR-00032026-06-27Superseded by ADR-0050The healthy state is named ok, not up
ADR-00042026-06-27ResolvedBearer shipped first; password credentials (argon2id) landed in identity slices 1-2. NATS still deferred; the OIDC deferral is reversed by ADR-2361
ADR-00052026-06-27Resolvedomniglass bootstrap <username> [--password]; the password-on-create path shipped, the iam namespace is deferred
ADR-00062026-06-27ResolvedThe single-owner invariant is now a DEFERRABLE constraint trigger, landed with grant revocation
ADR-00072026-07-01AcceptedA principal is not a scope-tree entity; the principal capability confers access only at all-scope
ADR-00082026-07-06AcceptedDisable revokes live sessions via the per-request active re-read; no token-version column (nothing consumes it)
ADR-00092026-07-06Superseded by ADR-0011The deploy “act on the subtree but not the root” capability is an exclude_root grant modifier, not a new scope kind
ADR-00102026-07-06AcceptedImpersonation ships view-as + act-as as an impersonation_session (not a credential), guarded by capability-cover, with a real-actor audit column
ADR-00112026-07-06AcceptedGeneralize the exclude_root boolean into a scope_op operator (subtree / subtree_excl_root / self), a flat enum, not a predicate-expression tree
ADR-00122026-07-07AcceptedOwner accounts are un-impersonatable by anyone; impersonate stays swept by principal:*; drop act-as scope intersection (#101)
ADR-00132026-07-07AcceptedGrant creation is refused when the granted role’s capabilities exceed the granter’s all-scope capabilities (admin cannot self-promote to owner)
ADR-00142026-07-07Superseded by ADR-0015The audit trail is admin/owner-only: audit is a sensitive resource that *:read does not confer, only an explicit audit:read or *:*
ADR-00152026-07-07AcceptedPermissions match like NATS subjects (* one token, > tail); admin-sensitivity is a deeper :admin token no partial wildcard reaches; owner is >
ADR-00162026-07-09AcceptedA principal can be hard-deleted (purge, gated on archival); the audit trail survives via a denormalized actor label and ON DELETE SET NULL, retiring the “never hard-deleted” rule (soft-delete verb: archive)
ADR-00172026-07-09AcceptedThe access-secret member of the config / credential / variable trio is renamed credential to secret: an encrypted-at-rest typed value resolved most-specific-wins down the cascade
ADR-00182026-07-10AcceptedA profile picture is read through a JSON image_base64 endpoint the console renders as a data URL, not a raw image/jpeg handler, so every route stays under the Huma authz middleware
ADR-00192026-07-11AcceptedEvery credential is time-bounded (reverses tokens-never-expire): session 12h, token / bootstrap 90d default with a --ttl capped at 365d; a credential.purpose column, not the expiry shape, tells session from token
ADR-00202026-07-11AcceptedThe variable member ships plaintext, typed inline against a value_type enum (no variable_type registry), on the secret owner arc; template scope, groups, the $var: consumer deferred
ADR-00212026-07-12AcceptedThe tag primitive ships its first slice (governed key registry, per-entity bindings, cascade); minting a key is admin tag:create, setting a value is the entity’s own update
ADR-00222026-07-13AcceptedDirectory rows carry batch-resolved effective tags; effective resolution extends to systems and locations, and a placed system inherits its location’s tags
ADR-00232026-07-13AcceptedThe IAM directory reads (principal, role, principal_group) move to the admin tier (<resource>:read:admin), so viewer’s *:read floor no longer reaches Users, Roles, and Groups
ADR-00242026-07-13AcceptedA tag key may declare an allowed_values enum (empty = free text), enforced on the binding write; a free key autocompletes its distinct in-use values
ADR-00252026-07-13Acceptedsecret leaves the bare * wildcard’s reach (direct match and read floor); a per-secret admin_sensitive flag flips a secret to the :admin tier, so operators read operational device secrets in scope while platform credentials stay admin/owner-only at the same scope
ADR-00262026-07-13AcceptedConsole nav IA: Variables, Secrets, and Config get their own top-level Values group; Inventory holds the estate entities including Nodes; Interfaces and Tasks become facet panels; the Settings group is renamed Admin
ADR-00272026-07-14AcceptedInventory create/edit unify on the detail accordion: New routes to /<entity>/create (a draft) and Save hands off to /<entity>/<id> in edit; view is read-only, edit is the sole writer; the create/edit Drawer is retired
ADR-00282026-07-14Acceptedrank is dropped from location_type, system_type, and component_type; the three list operations sort by display_name, id instead
ADR-00292026-07-14AcceptedFiles slice 1: a content-addressed blob store primitive (pgblobs) and a tenant-wide file handle; no placement arc (a file is 1:many, its locality is a future attachment), a binary sensitive flag reusing the secret :admin tier (defaults off), a delete frees its unreferenced blob synchronously (async mark-sweep GC deferred), base64-in-JSON on the wire
ADR-00302026-07-14Acceptedallowed_parent_types constrains where a location may be placed
ADR-00312026-07-14Acceptedcomponent_make slice 1: an official boolean (not an origin enum) for consistency with the type registries; the in-use referential delete guard deferred to the component_model slice (nothing references a make yet); website scheme-validated to http/https, client and server, against stored XSS
ADR-00322026-07-17AcceptedEvery gated route stamps its required permission into the OpenAPI (x-omniglass-permission), so the permission universe is derived from the routes rather than a hand-kept catalog
ADR-00332026-07-17AcceptedThe settings engine persists only the override level; the code and file base layers are recomputed in memory each boot, so restore is a delete (diverges from scaling.md’s “materialized in Postgres”)
ADR-00342026-07-17AcceptedSettings Gateway methods are unscoped: ABAC storage-scope is not applicable to platform / principal config; only the settings:<action> permission gates them
ADR-00352026-07-17AcceptedSettings resolve down the principal hierarchy reusing the cascade primitive, with per-key provenance and a top-down broader-wins lock
ADR-00362026-07-07AcceptedA node is a principal of kind=node with a 1:1 detail table and a bearer credential row (interim shared secret), and per-node NATS isolation is static per-connection subject permissions via an in-process auth callback; nkey/JWT deferred
ADR-00372026-07-07AcceptedTelemetry is a protobuf Event over a JetStream durable consumer; the consumer binds the owner from the task’s interface and confines a node to its own tasks inline (no separate raw-telemetry table or Postgres queue); raw persistence + replay and label-based multi-owner routing deferred
ADR-00382026-07-07AcceptedThe per-interface reachability verdict interface.reachable is a built-in state (not a metric); availability is time_in_state over it; readiness is interface-type-defaulted and interface-overridable, node-executed, not a calc_rule
ADR-00392026-07-08AcceptedAn interface is a device API named by its protocol (not a NIC); interface_type = its transport (the reach gate), a driver = the collect layer (protocol handler + transports + normalized menu, what a device CAN do), a template curates (SHOULD), the instance holds what IS there; OIDs/commands live in the driver, not the template
ADR-00402026-07-14AcceptedThe task is derived read-only plumbing: creating an interface derives its one poll task, so task create/update/delete routes and the task:create / :update grants are dropped; task.node_name is removed and projected from interface.node_name (the worklist and telemetry owner-confinement join the interface), and a node purge cascades its interfaces and their tasks. Reverses the checkpoint-5d task-CRUD build; refines ADR-0039
ADR-00412026-07-19AcceptedA setting is declared once, as a tagged field on a canonical Settings Go struct; reflection produces the code defaults layer and the namespace registry, Huma reflects the struct into the OpenAPI schema so the typed client values is a Settings struct, and both the server PATCH and the generated client validate against that same reflected schema. Closes the slice-0 write-validation thin cut; retires the hand-kept defaults.yaml and Namespaces() slice
ADR-00422026-07-19AcceptedA field’s resolved value is deepest-set-wins down product -> location -> system -> component, falling to the field’s type default when nothing is set at any scope; the type default is the floor of the cascade, not a competitor to it. This slice is component-only (resolved = the component’s set value, else the type default); the multi-scope cascade is tracked by #291
ADR-00432026-07-19AcceptedThe datapoint_type catalog is generalized into a primitive-agnostic property catalog (the typed set of signals a datapoint observes and a field declares): the unused scope ladder becomes an official boolean, value_type becomes data_type (text to string, add bool), kind is nullable (a declared-only property has none), and validation is a JSON Schema validated by Huma’s own validator (zero new dependencies). Value/source tables key by name (no FK), so the rename is behavior-preserving; the type-schema (field_definition.key) is the only binding and lands in PR-B
ADR-00442026-07-20AcceptedThe component_make catalog is generalized into vendor (a kind of manufacturer / integrator / developer), and two new leaf catalogs join it, driver (id, display_name, version) and capability (id, display_name), as the component-classification reference data: each a gated CRUD Catalog console page with read-only official seeded rows. product + product_capability + component.product are the next slice. This is PR2 of the estate-model shift toward property / event / command + vendor / product / driver / capability / standard / role / health
ADR-00452026-07-20Acceptedproduct lands as a first-class catalog entity, the concrete SKU that binds a vendor, a driver, a kind (device / app / service / vm), and a capability set via the product_capability join; parent_product_id models variants, and component.product_id (on delete restrict) points a component at the SKU it is, making the product the source of a component’s shape and retiring the component_type-as-shape notion. PR3 of the estate-model shift; consumes the vendor / driver / capability catalogs from ADR-0044
ADR-00462026-07-20Accepted; superseded in part by ADR-0066A log-kind observation is no longer dropped at ingest: it lands in a new event table, the log-kind sink (a past occurrence) beside metric_datapoint / state_datapoint (a sampled present value). event carries the same datapoint owner exclusive-arc and provenance, plus message + attributes, and the reserved event_id FK stubs on the two datapoint tables are closed (on delete set null). Scope excludes the datapoint->sample rename (a later cleanup) and property_value / the current-value store (the fold-fields slice). P1 follow-up of the estate-model roadmap
ADR-00472026-07-21Accepted; superseded in part by ADR-0085 (the component_type registry returns, above the product)The standalone fields feature retires and folds into the estate model: a field was only ever a property with declared provenance, never a primitive of its own. product_property is the product’s declared-property contract (product_id, property_name, default_value, required), replacing field_definition; property_value is the value store, carrying the same owner exclusive-arc as metric_datapoint / event plus instance and provenance, replacing field_value. EffectiveProperties unions the contract arm (coalesce(set value, contract default)) with the off-contract arm, so a productless component still resolves. field_definition, field_value, component.component_type, and the whole component_type registry retire. PR5 of the estate-model shift
ADR-00482026-07-21Acceptedsystem_type is promoted to standard, the blueprint a system conforms to and the system-side counterpart of product: it gains parent_standard_id (variants), a declared-property contract, and its own standard:* Catalog resource, and system.standard_id becomes optional. standard_property and location_type_property join product_property, and one owner-generic EffectiveProperties(ownerKind, ownerID) resolves component, system, location, and node off a single parameterized template. A standard and a location type are created by forking an in-code template (one-time, no inheritance), so a shipped row is operator-owned (official: false, seeded if absent), while a system conforms to its standard with live inheritance; only the canonical catalogs keep the authoritative upsert. PR6 of the estate-model shift
ADR-00492026-07-21Superseded by ADR-0087A system_role is a slot a system needs filled (a table microphone, a main display), declared on a standard (inherited live by every conforming system) or on one system (ad-hoc) over the same exclusive arc property_value uses, requiring a conjunctive role_capability set and carrying a quorum. A component’s capabilities become a resolved set (EffectiveCapabilities = its product’s, plus its own component_capability present=true rows, minus its present=false ones), because product is optional and a strict guard over a product-only fact would lock a productless component out of every role. AssignRole refuses (422) and names the missing capabilities, joining the location placement constraint as a refusal on modeled grounds that names the parties. Quorum ships here (staffing is visible without health); impact and the SLI rollup land in PR8. Supersedes the system_template_member role-requirement design. PR7 of the estate-model shift
ADR-00502026-07-21AcceptedHealth is recorded as a transition and recomputed at the write, never on read. An alarm is component-local and names the capabilities it degrades; a component satisfies a role only when it provides every required capability and none of them is degraded; a role below its quorum is impaired and contributes its impact (outage / degraded / none); a system takes the worst of its roles, a location the worst of its systems. The verdict domain is healthy / degraded / outage and the judgement is a pure package (internal/health), unit-tested with no database. The recorded carrier is state_datapoint, already transition-only, so the history is edges and only edges; compute-on-read (no history) and write-through-on-read (the edge timestamped when somebody looked) are both rejected. A read never writes, and it computes the verdict it serves from the same rows it shows, so a report cannot contradict its own evidence. PR8 of the estate-model shift, closing epic #266
ADR-00512026-07-21AcceptedMembership is the attachment, and a role is what it does
ADR-00522026-07-21AcceptedThe cascade resolves through membership, and secrets carry no system band
ADR-00532026-07-21Superseded in part by ADR-0056A name is the address, a uuid is identity
ADR-00542026-07-21AcceptedA panel’s action bar is declared, not laid out: a blade body binds through lib/blades, a Drawer form body through lib/formactions, and BladeStack / Drawer draw the result through the one PanelFooter rail. The opt-in DrawerFooter helper is deleted. A convention a body must remember can be forgotten, and was, by two forms for months while it was copied into six new pages around them
ADR-00552026-07-21Superseded by ADR-0056The tag, variable, and secret owner arcs key by name
ADR-00562026-07-22Accepted; the slug-keyed carve-out is retired by ADR-0062, the health carve-out amended (#717)Every foreign key stores a primary key. Amended (#717): the health carve-out is gone: the advisory lock hashes health/<kind>/<id> and has since the identity epic (#627) landed its addressing slice, because a name-keyed lock partitions the estate only while names do and that epic scoped a location’s name uniqueness to its placement
ADR-00572026-07-21AcceptedThe cascade’s least-specific binding tier is renamed global to platform on both axes (same rung, no precedence change); a default is off the axis entirely, a column on a type declaration rather than a tier; there is no root location; a write at the tier needs its own platform:<action> permission. Breaking: a secret sealed at the old tier can no longer be decrypted (the AEAD binds the owner kind)
ADR-00582026-07-22AcceptedA run mode is a verb under its noun, and no command may be shadowed
ADR-00592026-07-22AcceptedEvery collection segment is a command level
ADR-00602026-07-22AcceptedA resource is one kebab-case noun; nesting means ownership
ADR-00612026-07-22AcceptedA calculated series is current at its highest id, not its newest timestamp
ADR-00622026-07-22AcceptedA registry takes a uuid primary key and a renameable handle
ADR-00632026-07-23Accepted; superseded in part by ADR-0079; revised in part by ADR-0141The telemetry model is typed registries over bare-noun data tables
ADR-00642026-07-23AcceptedPlacement and classification are mutable after create
ADR-00652026-07-28Accepted; superseded in part by ADR-0079Property, sample, and current value replace the datapoint
ADR-00662026-07-28AcceptedLogs are a raw ingest lane, not events
ADR-00672026-07-28AcceptedBookings are exclusive-arc-owned schedules, reconciled against observed usage
ADR-00682026-07-30AcceptedThe API error model is Huma’s stock RFC 9457 problem+json (ErrorModel with ErrorDetail {location, message, value}); the custom code plus violations envelope sketched on the API page is retired
ADR-00692026-07-30AcceptedCycle safety is provenance-based: consequence writes carry provenance='calculated' with a source_rule naming the producer, and rules never route on their own consequences; supersedes the “alarms are terminal upstream and never write samples” premise
ADR-00702026-07-16Acceptedretire the standalone effective-secrets and effective-variables per-component panels; fields become the component value surface
ADR-00712026-07-31Accepted, amended by ADR-0827A template is an example configuration an operator clones: creating from one is a one-time fork with no inheritance and no back-pointer, so templates stay upgrade-safe because nothing remains connected to them. The versioned-shape model retires (component_template, system_template, *_version, channels, the frozen BOM, instance pinning); a component’s shape is its product, a system’s is its standard, and a system conforms to that standard with live inheritance. Reverses ADR-0045’s deferral and ADR-0049’s “templates stay Design”
ADR-00722026-07-31AcceptedTwo naming rules: a carrier is named for what it carries, never a passenger (the telemetry wire message is TelemetryBatch, since it carries samples, log lines, and later events), and a storage insert struct takes the Write suffix paired with the bare read struct (MetricSampleWrite / MetricSample), the pattern LogLineWrite set. Retires MetricSampleEvent, StateSampleEvent, EventOccurrence, and the proto Event
ADR-00732026-07-31Accepteda driver consumes transports; a transport is code, not a row
ADR-00742026-08-01Acceptedloop-executed work rolls up to one PR per approved definition; slices cascade through per-slice gates on an integration branch
ADR-00752026-08-01Acceptedalarm gains dedup_key and the one-open-per-condition partial unique index; RaiseAlarm becomes a guarded conditional insert
ADR-00762026-08-04Acceptedthe name stays renameable and addressable; rename is a custom method, every write returns the uuid, and one validator applies one of two rules
ADR-00772026-08-04Acceptedprincipal_group.name moves to the entity name rule, retiring the looser API-layer pattern
ADR-00782026-08-04Accepteda blade the operator cannot edit contains nothing shaped like a control; BladeField owns the read-or-edit switch
ADR-00792026-08-05Accepted; the collective noun revised to signal lanes by ADR-0084five telemetry lanes with five names: the catalog splits on data_type, state renames to property, the value store folds into the series (tombstone unset, current values derived), the wire goes per-lane, logs split by origin, and a command records its status; reverses the property-as-genus half of ADR-0063/0065
ADR-00802026-08-05Acceptedretention is provenance-aware: a prune never deletes a declared row and never the latest row of any series, shipped as the PruneSamples primitive before any retention feature exists
ADR-00812026-08-06Acceptedthe control-plane wire is one subject grammar, og.v1.verb.node with the node name exactly one token: the api.telemetry lane sits in its own segment, per-record subjects are rejected, and the core-NATS consumers (worklist, heartbeat) are singletons by construction with their HA fork named and deferred
ADR-00822026-08-06Acceptedthe permission resource type renames to location_type on every surface (route stamps, roles seed, console gates, guard fixtures); the generic word retires from the permission vocabulary
ADR-00832026-08-06Superseded by ADR-0084the Catalog rail is sectioned by the estate noun each registry serves, entries keep the registry’s own word (Types where that is all there is), Telemetry holds what gets recorded and Action what the platform does, and the /catalog hub teaches the map with live counts
ADR-00842026-08-07AcceptedCatalog is one rail entry opening a shell: a grouped subrail (Telemetry, Actions, Components, Systems, Locations, Metadata) navigating to the per-registry pages at canonical URLs, with an Overview landing; the organizing axis is direction (Telemetry is what you receive, Actions what you send or run), the lane collective noun becomes five signal lanes, and secret types loses its nav slot
ADR-00852026-08-07Accepted; partially reverses ADR-0047The component_type registry returns as a nested taxonomy classifying the product, not the component: it carries the identity facts that span products (naming stem, display name, icon, abbrev, default tags), inheriting down the tree with override at any node
ADR-00862026-08-07AcceptedEvery component is required to name a product (the three seeded generics cover anything unmodeled); product.kind narrows to device / app / service, no default, required at create; vm retires, folded into app
ADR-00872026-08-07AcceptedThe alarm-capability-role chain retires: an alarm impairs its component’s own verdict wholesale, an occupant satisfies its role whenever its own verdict is not outage, and the typed-slot guard is the only assignment-time check; records the 409-vs-422 refusal line and the choice/alternate boot-seed reconciliation carve-out. Supersedes ADR-0049, amends ADR-0050
ADR-00882026-08-08AcceptedPlacement (parent, location) leaves the component/system/location PATCH body and becomes its own :move custom method under its own <resource>:move permission, closing the gap where clearing parent_id to root via PATCH needed no scope check while creating the same root already required an all-scoped grant; MoveLocation deliberately gains no clear-to-root capability
ADR-00892026-08-08AcceptedA uuid is the address the platform generates; a dotted path (location segments, a $comp/$sys/$role accessor, plane-local segments) is a human-typed positional lookup, resolved by an allowlist name rule that renders as a CLI argument, a REST path, or a NATS subject with no escaping; dash and bare renders are display-only and never accepted back. Extends ADR-0062, amends ADR-0076 in justification
ADR-00902026-08-08AcceptedA derivable value fills at create, tracks live while the platform holds the pen, freezes on the operator’s first edit, and resumes tracking only on an explicit reset; component.name_generated ships DEFAULT false, not the epic’s DEFAULT true, so no pre-existing operator-typed name is silently claimed by the platform
ADR-00912026-08-09AcceptedA PATCH body may carry an optional update_mask with AIP-134 semantics exactly (absent is the implied mask of populated fields, present writes exactly what it names so a zero value clears, ["*"] is full replacement, an unknown field is a 422 naming it); it rides in the body, the three-state string sentinel stays, the other 108 PATCH routes are not retrofitted, and the role declarations convert from PUT to PATCH as its first consumer
ADR-00922026-08-09AcceptedMoveLocation recomputes health over both ancestor chains (joined and left) inside its own transaction, the second and last member of the exception class ADR-0088 carved out for a system’s relocate; one named row per side seeds the recursive ancestry walk the query already performs, and a no-op move recomputes nothing
ADR-00932026-08-09AcceptedEffective tags are scoped by the component the cascade resolves FOR, not per band: a caller who can read the component sees every value that cascades onto it, including from systems and locations it could not list directly; the ?system= seed is a filter over that answer, never a widening of it
ADR-00942026-08-09AcceptedPerformance has two instruments: round-trip counting gates in make test, wall-clock benchmarks (make bench, two estate sizes, fixtures outside the timed section) are diagnostic and gate nothing; no CI perf job, no stored baseline, no EXPLAIN assertions (deferred), no timing assertion anywhere, and one candidate benchmark was measured as three-quarters transport and dropped rather than shipped. Amended (#725): the EXPLAIN deferral holds for the plan a planner PREFERS and is lifted for the access path a query can REACH; planned under enable_seqscan = off that answer does not move with the fixture’s size, so an access-path assertion on one relation (index name AND index condition, never plan shape, never a duration) becomes a third instrument that gates. Amended (#1640): the refusals hold for the micro-benchmarks alone; a whole scale lab measured end to end gates against a committed, generated baseline per host class, opt in in CI and never required, its times only on the baseline’s host
ADR-00952026-08-09AcceptedAn operator’s edit of a shipped (official: true) registry row does not write that row: it forks it into registry_shadow, one registry-agnostic table keyed (registry, row_id) on the shipped row’s OWN uuid, and reads resolve the shadow over the official row; restore is deleting the shadow. One uuid and one name per logical row either way, so no foreign key, walk, audit row or URL learns about the fork. A fork captures the whole mutable row and never the structure, which makes inheritance on a nested registry resolvable per node. component_type is the first adopter. Amended (#709): a fourth fact adopters must keep, that the registry row’s lock is taken in a statement of its OWN before the read that resolves the shadow, because for update on the resolving read serialises the transactions without refreshing what the waiter reads
ADR-00962026-08-09AcceptedA nested, universally seeded system_type registry lands beside standard (not inside it): the coarse taxonomy of what kind of space a system is (av / room / {board, class, ...}, av / sign / {...}), with stem, abbrev, and icon inherited down parent_id and overridable at any node, and system.system_type_id nullable for now. The identifier is reused deliberately (it was ADR-0048’s retired column name for standard_id), so its docs-lint denylist entry is removed on ADR-0085’s precedent
ADR-00972026-08-10AcceptedThe generated ordinal becomes a stored nullable component.ordinal, but sibling allocation does not read it: it reads sibling NAMES and returns the lowest ordinal whose MINTED name is free. An operator can hold a generated-shaped name with no ordinal, and the unique index is on the name, so an ordinal-only allocator would remint a taken name as a 23505. Minting candidates instead of parsing siblings is what makes a stem-less name (a floor called 1) possible, not the column; the column is what every reader DOWNSTREAM of allocation consumes. No scoped-unique index on the ordinal
ADR-00982026-08-10Accepted; the placement exclusion reversed by ADR-0100, amended (#729)A label rule is Go text/template over a closed map[string]string AND a closed grammar: the sandbox is the data map (a secret is absent rather than filtered) plus an allowlist over the parsed tree (a closed set of node types and function names, so printf and friends are refused at rule-edit time; a length cap bounds output, which is not the same as bounding work). The map carries the entity’s own columns and its resolved classification facts, and deliberately no placement: every input then changes on exactly five of the entity’s own acts (create, rename, move, reclassify, reset), which is what makes the stored label’s recompute-and-compare invariant provable. Exposing a location’s name would put a location rename in that set and stale every label under it. The global tier is one row per entity kind with TWO columns, default_template (boot-seed space, authoritative) and template (operator space, nullable). Amended (#729): the key table in the entry is the map as of this decision; each kind’s keys are now declared once in internal/storage/label_keys.go beside the accessor that produces each value, the map is built by ranging that declaration, and the docs render it from docs/src/generated/labeldata.json, so the taught set and the reachable set cannot disagree
ADR-00992026-08-10AcceptedThe acronym dictionary title consults is ONE key, label.acronyms, in a new platform,client settings namespace; an operator’s list REPLACES the shipped one and provenance tells them apart, rather than a union of shipped plus additions (which would give one key a merge rule no other setting has, make the wire value a fragment rather than the effective dictionary, and make a shipped entry unremovable). The engine resolves the dictionary at render time and caches the compiled engine against the dictionary ITSELF, so a change builds a replacement rather than mutating one and no writer has a generation counter to forget; validation uses a dictionary-less engine, since whether a rule parses is a fact about the rule alone
ADR-01002026-08-10AcceptedA label rule reads its entity’s PLACEMENT (a component’s location label and its primary system’s type label, a system’s location label), reversing ADR-0098’s exclusion, and the write paths that keep those honest are derived from the map rather than enumerated, a derivation the epic’s review pass then caught missing the one the DATABASE performs (an ON DELETE CASCADE is a write path with no Go on it, so a system’s delete now releases its memberships explicitly). The line is BLAST RADIUS, not ownership: bounded by a placement (the rows at one location, one system’s members, one component’s membership) it cascades inside the act’s own transaction; bounded only by the estate (a rule at any tier, a classification row’s display_name, the acronym list) it waits for the preview-then-apply verb. A preview is an apply that rolls back, so it lists exactly what the apply changes including the second hop. One audit row per operation, keyed on the rule, never one per changed entity
ADR-01012026-08-10AcceptedA generated system name suppresses the ordinal on the first of its stem in a placement bucket (boardroom, then boardroom-2), and the order dependence is accepted: deleting the bare one while the second survives frees the bare name again, and boardroom-1 never exists. Suppression is a field on the MINT rather than a change to the shape (a component still reads display-1), and the ALLOCATOR takes that same mint, so a suppressing mint and a non-suppressing allocator cannot disagree on ordinal 1 and turn the second create into a 23505. A placement bucket becomes a value per entity kind, so a location’s two buckets cannot be written as a system’s three, and the allocation lock loses the stem from its key, since two stems can now mint one name. The pen and both verbs spread to system and location; only a system generates, and a location’s :resetName refuses with the missing fact named. No backfill: the default false is the right value for a row an operator already named. Amended (#696, #691): the component tier’s two guards close too, its :move with the identical bucket comparison and its reclassify on the RESOLVED STEM rather than the classification id, because a component reaches its stem through a product and two products of one component_type mint the same name. Amended (#706): the system tier’s matching residual closes the same way (two system_type rows inheriting one stem from a shared ancestor mint one name), so both tiers compare the resolved stem and the divergence between them is gone
ADR-01022026-08-10AcceptedA location_type.name_rule (nullable jsonb) is a type’s opt-in to naming the locations it classifies, and it is a declaration (a stem, possibly empty, plus the first-ordinal suppression flag) rather than the label_rule template beside it. A name has to satisfy validateEntityName, it lands in a scoped-unique index, and other things reference it, so an unrenderable rule has no safe degradation the way a label’s does; a declaration IS a nameMint, so a rule is refused at RULE-EDIT time by minting from it (ordinal 1 and a nine-digit ceiling bound the whole output space), which a template’s output could only be sampled. Null is the opt-out and there is no boolean beside it. A rule change renames nothing: there is no name-side recompute verb, deliberately, because relabelling in bulk is recoverable and renaming is not. A positional type permitted at root allocates 1, 2 across the estate and that is legal, since the bucket is the placement and two positional types under one parent already share an ordinal space. Amended (#657): the entry’s “only floor is genuinely auto-nameable” is now false in both halves, since ADR-0103 was reversed for floor and no shipped type carries a rule; the composed limit is that a withdrawn shipped rule cannot be un-shipped, because insert-when-absent leaves the row alone and the wire cannot spell “clear” | Amended again (#710): the console gets the editor a declaration makes small (a tick box, a stem, the suppression flag), with #692’s clear moved INSIDE it so the affordance can no longer undo a state it cannot create, and the mask naming every field the blade writes since a mask governs the whole write. What the editor shows about what a rule PRODUCES comes from the server: name_rule reads back with examples, the first two names the same nameMint a create allocates from would stamp, so nothing in web/ knows that a counted name is <stem>-<n>. An unsaved rule is shown nothing about its output, deliberately. The mint’s own refusal is unreachable through this body (stem carries maxLength: 90, and 90 plus the widest provable ordinal is exactly the name cap), so the 422s a surface renders are the schema’s, which is why describeError now appends Huma’s errors[]
ADR-01032026-08-11AcceptedA positional name is allocation order, never a claim about the world, and the entry first kept the dev estate’s divergence (a floor named 1 labelled Level 2) on the argument that a name is an address and a label is what a human reads. Amended (#657) and REVERSED for floor: a floor’s designation is not an integer at all (B2, LG, G, M, 12A), so an ordinal is the wrong KIND of value for it rather than an imprecise one, and the basement objection dissolves with it, since nobody signs a floor -1, they sign it B1, already a legal name. floor becomes nominal, the dev estate’s floors are named level-2 and level-1 for their real designations so ADR-0105’s rule renders those labels and the two pins are released, and the cost is stated rather than hidden: NO shipped location type carries a rule, so location name generation ships dormant, kept covered by a positional type the tests create rather than by a fifth seeded type invented to keep the demo alive. Removing a shipped rule reaches new estates only (insert-when-absent), and no PATCH can clear one, so an estate that already seeded it keeps it. What survives: a stem-less positional name is right where the position is an arbitrary disambiguator (a parking deck, a rack row) and wrong where the number is a real-world fact
ADR-01042026-08-11AcceptedA create form shows the stem a generated name will carry, resolved in the browser from the classification the operator just chose, and writes the ordinal as the token n, because the ordinal is allocated against live siblings inside the create’s own transaction and does not exist until the row does. A draft-preview verb that mints and rolls back is refused: its answer is provisional (another create can take the ordinal between the preview and the commit), and the rolled-back mint takes the same advisory lock real creates need, so a form that previewed on every keystroke would serialise the estate’s creates behind a UI affordance. Re-rendering the label rule in TypeScript is refused outright, as the second implementation of an engine slice 3 swept 42 copies of. The label is therefore not previewed at all: its data map carries Name and Ordinal, so it is unknowable for the same reason. The placement bucket is shown beside the field as a PATH and never as a prefix inside it, since names became scoped to placement and a name no longer contains its ancestry. Amended (#699): a RENDER is not a mint, and both refusals were about allocating, so :renderLabel resolves the rule through the same tiers with the same one engine, writes the token where the ordinal goes, and takes no lock; the form now shows both values in LOCKED fields, gated by the entity’s :create with the placement resolved in the caller’s read scope. Amended again (#657): the lock is an inline square icon action in the field’s join, matching Settings’ own Restore to default, and a locked field is readonly rather than disabled, because a disabled input fires no click and leaves the value out of the tab order; focus does not claim the pen, since a locked field is a tab stop and tabbing past would otherwise blank both fields. Amended again (#702): READING the lowest free ordinal is not minting one either, so the form shows display-3 rather than display-n and the token retires; the answer is provisional, so the form posts it back as the create’s expected_ordinal and a create that would land a different number is a 409 naming the one that moved, located on body.expected_name so the form can tell it from a name collision. The NAME’s shape stops being client-side, which closes the naming half of #695. Amended again (#695): the ICON half closes the same way, the listing serving resolved_icon beside the raw icon, so lib/typechain.ts is deleted and no type-chain walk runs in the browser; it costs no read, since the list already loads the whole registry in one query. Amended again (#702 review): the precondition binds the drafted NAME rather than the ordinal, because a name carries the stem and the suppression rule as well as the number and an ordinal claim was met by a create that landed monitor-1 where the form showed display-1; and the draft now REFUSES the parentless bucket its create refuses, reversing this entry’s own “the draft does not rehearse the all-scope gate”, since the previewed ordinal reports which of that bucket’s names are taken and the stem asked about is the caller’s to choose Amended again (#693): the lock is the console’s ONE vocabulary for the pen, so it reaches the EDIT BLADE and the list’s full-text Generated chip retires from both list renderers: an ownership fact belongs beside the field an operator can change it on, not in a cell charging the Name column the width of the word on every platform-labelled row. The NAME’s own chip stays, on the blade beside the name, which is the same rule rather than an exception. The blade gains a state the create form has no equivalent for, a locked field showing a value about to change (the hand-back), because :renderLabel previews a row that does not exist and would answer an existing row with the NEXT sibling’s ordinal; the hint carries it instead. It closes a silent pen theft: every blade posted display() || undefined seeded from the stored label, so saving any unrelated field posted the platform’s own rendering back as an override and took the pen Amended again (#713): “the placement resolved in the caller’s read scope” no longer holds for one reference, the component’s system, which the create binds as a membership under system:update (ADR-0107); the draft resolves it in that same set and carries the same conditional permission, so a preview is never served for a create the platform would refuse
ADR-01052026-08-11Acceptedwords joins the closed FuncMap (a run of - or _ becomes one space, an edge run is dropped, everything else untouched), which is what finally lets a rule turn a kebab NAME into words: title alone leaves the separator standing, so the acronym dictionary of ADR-0099 could not be reached from a name by any spelling. Adding a function is a THREE-place act (FuncMap, AST allowlist, FuncNames) and the published set is now walked by a test rather than described. Amended (#701): it is ONE place; all three derive from a single declaration and the docs table is a fourth reader of it, so a function in the FuncMap the grammar refuses is unwritable rather than tested for. The global LOCATION rule ships as {{title (words .Name)}}, reversing the seed’s own argument on its restatement half only: a restatement that RE-CASES and runs the operator’s dictionary produces a string the read ladder’s fallback cannot, where an echo could not, and the constant half (“Room” for every room) is still refused. The ladder’s last rung stays verbatim, since this renders and STORES a label rather than prettifying on read; the estate keeps only the pins that say something a name cannot, nine at the time and seven after ADR-0103’s reversal named the two floors for their designations
ADR-01062026-08-12Acceptedlocation_type adopts the registry fork (ADR-0095) rather than growing a third ownership model: the shipped rows seed official: true, the boot seed writes them authoritatively, and an operator’s edit forks into registry_shadow with :restore discarding it. That is what makes a shipped value withdrawable, which insert-if-absent could never be, since it can add a default to every estate and remove one from none. The one-time backfill moves the edits estates already hold ON those rows into shadows first, telling an edit from a shipped value by the audit trail rather than by comparing columns against what this release ships, because a row holding a WITHDRAWN shipped value is indistinguishable from an edit by inspection and preserving it would defeat the withdrawal. A location type’s property and metric contracts stay writable on a shipped row: a contract line is a row in its own table, nothing seeds one, and the official guard was dormant on this registry until the flip would have activated it. On the wire, a nullable OBJECT field clears by being named in update_mask with no value, since an object has no empty value to overload and an explicit null is indistinguishable from an omitted key after decoding; name_rule is the first and the convention is now the API’s, not that field’s. Amended (#703): the discriminator is REMOVED and the backfill is only the official flip, because with no release cut and no operator data there is no edit to preserve; the argument for it stands unchanged for the first release that has estates, which owes them a new migration rather than this one
ADR-01072026-08-12AcceptedPOST /components accepts a system and INSERTS that system’s primary membership from it, the same row PUT /systems/{name}/members/{component} writes under system:update, while the create asked for no system permission at all: the create was the cheap way around the membership route’s gate. The create now requires system:update when the reference is present and resolves it in that scope, so two paths writing one row cost one permission. The accepted consequence is a live narrowing: operator holds component:create and no system:*, so an operator can no longer create a component INTO a system, which reads as the role line rather than collateral damage (an operator maintains components, a deploy tech builds out systems and their membership). Granting operator the permission was refused as a much larger grant than “may bind a membership while creating”. A second permission conditional on the REQUEST is published like the platform tier’s, as x-omniglass-conditional-permission, and enforced in the handler because middleware cannot see the body; the console hides the picker from a principal that cannot use it and the API’s refusal names the permission, so the narrowing is met before the form is filled in. Amended (#707 review): the console gate read the PERMISSION only, so a principal holding system:update over an empty scope (a location-scoped deploy grant, since the cross-tier expansion is unbuilt, #10) was offered the picker and refused on submit, and the API answered “system not found” for a system that caller could GET; the gate now also requires a system carrying the scope-aware update action, and the bind takes system:read beside system:update so a readable row is refused by AUTHORITY (403) rather than by absence. Amended (#713): the residual this entry accepted is closed, the :renderLabel draft resolving the same reference through the create’s own resolver and carrying its conditional permission, because a preview that resolved it in system:read alone both previewed a refusal and handed back the system’s type label; the LOCATION reference stays location:read on both routes, read and rendered rather than written
ADR-01082026-08-12AcceptedSettlement’s two timestamps come from one clock, the database’s: a sample’s ts is default now(), so the now a settle-check judges against is read with select now() inside the same transaction rather than from time.Now() in the server process. Two clocks on one comparison made the verdict a function of skew, and at settle_window_seconds: 0 there is no margin to absorb it, so a command that genuinely failed could be reported pending and never settle on any deployment whose database is on another host. Separately, a zero window is terminal by construction, checked before any arithmetic: it is the documented way to say “settle immediately”, a claim about intent rather than elapsed time, so no timestamp may make it pending. Stamping samples from Go was refused as the larger ripple (every telemetry ts defaults to now() and other readers rely on database ordering), and a tolerance was refused outright as the move that stops a test failing without stopping the behavior depending on skew. Settle stays pure and still takes now; what changed is who supplies it, at the cost of one round trip on each of the two settle paths. Amended (#718): “a check in a later transaction reads a strictly later timestamp” over-claims, since READ COMMITTED admits a concurrent issue committing after a settle-check began, so the delta can be negative; the verdict is unaffected (a negative delta is pending, and the zero case reads no timestamp), and the claim rather than the behaviour is what was corrected. Extended (#719): the same principle reaches the six history reads by a different mechanism and no round trip, since a read needs a BOUND rather than a value: the window travels as a duration and the query filters ts >= now() - make_interval(...), so the instant is never named in Go
ADR-01092026-08-13AcceptedAn alarm’s raised state belongs to its condition (ADR-0075) and an acknowledgement is a fact about a person, so the acknowledgement is two nullable columns orthogonal to cleared_at, never a status enum, and AcknowledgeAlarm is the one alarm write that does not recompute health: acknowledging is not fixing. Snooze and resolve were refused rather than deferred: snooze suppresses notification and the notification registry is unbuilt (#618), so it would be a column that lies, and resolve is either the existing clear under a second name or an unspecified concept. The permission is alarm:acknowledge, spelled out like every other seeded verb; the alarm:ack,snooze,resolve string that appeared in test fixtures and in the identity-access page was never a design and nothing ever seeded or enforced it. Its scope resolves on the component tier from alarm:acknowledge itself rather than from component:update, and it is granted to operator and not to deploy, because a location-scoped deploy grant reaches no component tier at all (#714) and would hold a capability that acknowledges nothing. A second acknowledgement is idempotent, keeping the first person and the first time and writing no second audit row
ADR-01102026-08-13Acceptedprincipal_label(uuid) is dropped. What names a principal (a human’s username, else a service account’s own identifying column) is declared once in the gateway (internal/storage/principal_ident.go) and rendered into the statements it binds. A READ projects both sources and folds them in Go; the audit insert binds the fold as one expression, because it runs inside the CALLER’s transaction on every operator write and a Go resolution there would cost a second round trip the alarm write path pins as an exact equation. Two shapes of one policy are held together by an invariant test over every principal kind, not by care. A node stayed out of the resolution, exactly as the dropped function had it. Amended (#738): it is the third source, node.name, because preserving the omission preserved a blank actor on an audit row; a node’s identifier is its unique, operator-visible name, never its optional display_name
ADR-01112026-08-13Acceptedservice.label becomes service.name: it is the username analogue for kind=service, the only handle the row has, so under the identity triad it is a name and it was the one place in the schema where label meant an identifier. The uniqueness question is answered rather than inherited: unique, matching human_username_key and node_name_key, because the string is denormalized as bare text into audit_log.actor_username and into an alarm’s acknowledgement, where a duplicate is unresolvable after the fact. The table’s declared identity shape moves from ShapeIDOnly to ShapeHumanNotAKey, and a new guard refuses any ShapeIDOnly table that carries a name. Breaking wire change: svcBody.label becomes name, and the group roster’s mixed coalesce(h.display_name, s.label, '') splits into name and display_name, two fields each meaning one thing
ADR-01122026-08-13Acceptedcmd/cligen derives each body flag’s TYPE from the OpenAPI property: an integer field is an int flag, a boolean a bool flag, a number a float64 flag, so a value the schema refuses is refused at the shell rather than by the server’s 422. Every other shape keeps ONE string flag parsed as JSON (an object, an array, an untyped any, and a nullable number or boolean), because a nested value has no shell-native flag type and null has to stay sendable: it is what clears a field named in update_mask (ADR-0106). A nullable STRING is the exception and stays a plain string flag, since this API clears a string with the empty string. --propagates=false becomes the spelling for a bool flag, and the docs flag check fails on a bool flag handed a space-separated value
ADR-01132026-08-13AcceptedA console control carries no required, min, max, pattern or step: a rule is a pure function over the typed value, the surface renders its message inline beside the field, and the binding’s disabled / valid refuses the submit. The audit decided it: 21 attributes on 24 rendered controls and zero could ever fire, because a Drawer’s rail is portaled outside the <form> (ADR-0054), a blade has no form at all, and the four on genuine form paths sit in forms whose submit is disabled in exactly the states native validation would refuse. Wiring form.requestSubmit() instead would have covered the Drawers only, left every blade needing this decision anyway, and meant undoing the disabled gate so an unstyled browser bubble could refuse in place of an inline message. aria-required stays as the honest spelling, type="email" and type="number" stay as input types, and a guard test scans every .tsx
ADR-01142026-08-14Acceptedstem, abbrev and icon on component_type and system_type join the three-state string sentinel their label_rule neighbour already honoured: omitted is unchanged, an explicit "" clears the column to NULL so the inheritance walk resumes, a value sets. Not the mask, which ADR-0106 scopes to nullable OBJECT fields because an object has no empty value to overload. The clearing spelling is a pattern alternation, ^([a-z0-9][a-z0-9-]*)?$ with minLength dropped from the PATCH body (the same spelling name_rule.stem ships), so exactly one new string is admitted and every malformed stem is still a 422; CREATE keeps minLength: 1, since a row that does not exist yet has nothing to clear. A root cannot clear its stem, the refusal create already gives moved to the second path that reaches the same broken row, stated as one pure function so the two handlers cannot disagree. The fork leg decodes the sentinel too, since a shadow image is read back as the row. Both blades now send "" for an empty box, so #677’s and #656’s “no '' ever rides the body” guards invert to assert the sentinel rather than being deleted
ADR-01152026-08-14AcceptedA type registry’s LISTING serves inherited_stem, inherited_icon and inherited_abbrev beside the raw fields, each with the name of the ancestor it came from, because resolved_icon (ADR-0104’s #695 amendment) answers what a row SHOWS and an edit blade’s placeholder asks what it would show if it stated nothing, which is a different string on every row that states its own: using the shown value would print the string an operator had just deleted back at them as the thing they were about to inherit. The console renders it as the placeholder carrying the VALUE (a placeholder natively means “leave this blank and you get this”) and a mark naming the ancestor, read from the data rather than written as “its parent” because a fact can come from any distance up the chain. The lock is not borrowed: ADR-0104 gives it one meaning, the platform owns this value, and an inherited fact is one an operator MAY set. The source is per FACT, since one type can take its stem from a grandparent and its abbrev from its parent. Amended in the same wave (#716): “no new glyph” is reversed and the read state’s inherited from <ancestor> sentence is REPLACED by one teal provenance dot beside the field’s LABEL, present when the value comes from somewhere that is not this row and absent when the row states it, because the sentence was the third telling of one fact on a line with no room for it and could not appear in the edit state at all, where a grey placeholder in a box that looks empty is the state that needed it; the label is the only placement that holds in both states (beside the VALUE, trailing is right in read and lands 380px from a 407px box’s placeholder in edit, leading is right in edit and reads as a bullet in read), the mark encodes no distance (a segment-per-rung version swung 8px to 28px on estate shape and never lined up across three labels), it carries the whole fact in its accessible name as a focusable tab stop rather than in a hover no keyboard reaches, it agrees with the hint by construction (one predicate over the text the field is showing, so a keystroke moves both), and it is threaded as a NAME rather than as an element, since a JSX.Element prop is a getter that rebuilds the mark under the pointer on every refetch. Amended again in the same wave (#742): the hint’s Inherited from <ancestor>. comes out, since the mark states that in the same field at the same moment, and its conditional twin Empty inherits from <ancestor>. STAYS, since it shows only while the box holds a value, where there is no mark and no visible placeholder and it is therefore the only thing telling an operator how to return the field to inheriting; the two take turns off the one predicate, and the CREATE forms keep their own Leave blank to inherit hints because neither the mark nor InheritedField reaches a row that does not exist yet. Cost measured rather than carried over from #695: the registry read is one statement for a registry twenty levels deeper, so the walk is a pass over rows already in hand. location_type is flat and takes none of it. The blade’s discard action reads Restore default rather than Restore shipped, matching Settings’ own restore-to-default vocabulary. Amended a third time (#743): the registry LIST renders the value a row TAKES instead of an em dash, and the provenance mark stays a BLADE and detail affordance: no mark belongs in a table row, because a table is for scanning values and the blade is where a value’s origin is explained, so a reader running down the Stem column is answering “what is this type’s stem” and a per-row attribution charges them for a question they did not ask. The Stem and Abbrev cells had gone on rendering an em dash on exactly the rows whose blade showed the value they inherit, so the two surfaces contradicted each other about one fact two clicks apart; both registries now render those cells through one InheritedCell primitive off the inherited_* fields the listing already carries, at no new query. A stated value and an inherited one render IDENTICALLY, which is the treatment rather than a consequence and is asserted as such, and it settles the dimming question with it (every value in these columns is text-base-content/60 already). The Icon cell, which has shown resolved_icon undifferentiated since #695, is the PRECEDENT the other two match rather than the odd column out, and the em dash keeps its one meaning for a row that states nothing with nothing above it. The tab-stop and duplicate-accessible-name questions a list mark would have raised do not arise, there being no mark in a row
ADR-01162026-08-14AcceptedA refusal on a targeted mutation picks its status from the difference between the read scope and the action scope, not from one set: outside visible_set(P, read) stays the non-disclosing 404, and inside the read scope but outside visible_set(P, action) is a 403 that names the missing authority. Acknowledging existence to a caller who can already GET the row discloses nothing it does not have, and the 404 it replaces was a statement about existence that the caller could see was false. The condition that makes it safe is that the read set is the caller’s own <resource>:read and never a wider convenient one; a route checking a wider set would hand the existence of a row to somebody with no grant to see it, which is the leak the 404 exists to prevent. This was already the contract for the three tree entities’ own CRUD; #736 is its adoption by the seventeen routes that hang off a tree entity (property set/clear on all three tiers, system membership and role writes, component alarm writes), through the existing resolveScoped rather than a second refusal helper, plus one owner-generic seam (ResolveActionTarget) for the routes whose write takes no scope of its own. Two carve-outs hold: resolvePlacementRef’s CROSS-TIER reference keeps its non-disclosing not-found (ADR-0107), and the estate-wide resources (principal, group, tag registry, node) are all-or-nothing and already 403. The conformance matrix asserts all three branches per ROUTE, each entity declaring the routes that hang off it, because those routes are not uniform across the registry
ADR-01172026-08-14AcceptedPOST /components/{name}/commands:issue fences its write with visible_set(P, command, issue) against the caller’s own component:read, through ADR-0116’s split. It used to resolve all three of its gateway calls with component:read, so a principal holding viewer @ all beside a room-scoped operator grant could command every component in the estate: not a wrong refusal but a wrong REQUEST, since a command records an intent a driver acts on. The load-bearing half is that command becomes a component-tier resource: it was absent from applicableKinds, where every scoped grant resolves to the empty set, so fencing on that set without registering it would have denied every scoped issuer instead of fencing them. The component tier alone, not the arc the command table’s owner columns allow, because the only route that issues addresses a component and a location- or system-tier root can never match a component’s ancestor chain. A command:issue grant at those tiers now reaches nothing, the same tier rule alarm:acknowledge lives under (ADR-0109, #714), and the anomaly was that it ever commanded. The target is resolved once and bound by id, so IssueCommand and CommandSettlement take no scope: a split cannot be applied from one parameter, and two of the route’s three name resolves go with it
ADR-01182026-08-14Accepteddisplay_name becomes label on all twenty-three tables that carry it, and display_name_generated becomes label_generated on the three that carry a pen. The rename finishes a word rather than introducing one: internal/label/ is the rule engine, label_rule is a column on five tables plus a table of its own, and the API already says :renderLabel / :previewLabels / :recomputeLabels, so until now a route called :recomputeLabels wrote a column called display_name. The column is nullable and unset is SQL NULL and nothing else, normalized in Go at the gateway write path (labelOrNull / labelPatch) rather than by a constraint. This slice first shipped the opposite, NOT NULL DEFAULT '', and reversed it before merge on the strength of its own diff: the floor forced all seven registry orderings to be spelled order by nullif(label, '') nulls last, and a read that has to convert the stored representation back is the schema saying which value it should have stored. The argument for the floor had a hole worth recording: it claimed collapsing unset on a nullable column needs a CHECK, but this repo puts that class of rule in Go (ADR-0110 had just moved principal_label out of the database), and a Go rule maps empty to NULL as cheaply as to ''. The migration is the smaller half; what makes NULL the ONLY spelling is the Go normalization, proved by a sweep that drives every write path with a WHITESPACE label and reads the raw column, complete by construction (it caught CreateStandard still binding raw). A PATCH carries a set flag beside the value, since clear and leave-alone both arrive as NULL. Reads coalesce, so the wire keeps a plain string and no generated artifact moves but the schema facts. Orderings are order by label nulls last, name; the two shadow-resolved registries resolve on jsonb key presence, so a fork that cleared its label sorts at the end rather than under the official one. stem and abbrev are NOT swept (their NULL means inherit-from-ancestor). registry_shadow.image is the one place the old word survived as DATA; audit_log’s images are left as the record they are
ADR-01192026-08-14AcceptedThe identity declaration (internal/storage/identity_shape.go) grows the third column of the triad: a table an operator NAMES carries a label, or declares in TableIdentity.NoLabel why it does not, and a guard checks the claim against the generated schema both ways (a declared label the schema lacks fails; a reason on a table that has the column fails as stale). A table nobody names carries none at all, there being no name for an unset one to fall back to. Written RED it named exactly tag, variable, secret and interface, the four key-bearing tables that had gone without one, which is why the declaration is the fix rather than the four columns: the gap existed because the shape said what the identifier was and nothing about the friendly string beside it. All four gain the column (text, nullable, no default, unset is SQL NULL per ADR-0118), with no backfill and no uniqueness, pattern or reserved words. interface is included (D2) and is the strongest of the four: its name is SERVER-derived from its type, so an interface’s only string says which protocol it speaks and nothing about what it is FOR, and the label is settable at create rather than only on a following patch, an interface labelled by a following call being unlabelled at the moment it is made. The premise D2 was argued from is corrected here and pinned by a test: a component holds at most ONE interface per protocol today (the unique index is (component, name) and the name IS the protocol), so the three-ssh-interfaces case is not reachable, and the narrower fact carries the decision on its own, every SSH interface in the estate reading ssh. Its declared name exemption in KeyProvedElsewhere STAYS: the name really is derived, which is the argument for the label rather than something the label replaces. Four exemptions are declared with reasons: interface_type (retires with the interface.type FK, ADR-0073), file (its name is already the label; #755 may revisit), service (principalIdent resolves a service principal to service.name, which a label may not be) and blob (no operator surface of its own). Lists order by the rendered label, order by label nulls last, name (D4), matching the console’s one comparator; the two CASCADE projections keep ordering by name, where the name is the cascade key grouping a winner with the candidates it shadows rather than a display order. LabelledTables() makes the declaration the only copy of the list the schema guard and the unset sweep read
ADR-01202026-08-14Accepted?edit=1 beside a detail address (or a blade’s id param, ?u=<id>&edit=1) is how the console expresses edit mode: deep links, refresh, and the create/row-pencil handoffs all carry the mode in the URL, behind the same <resource>:update the footer Edit is behind, and leaving edit strips the param via history replace. The one-shot in-memory handoffs (pendingedit, openPrincipalInEdit) are retired for one hook (web/src/lib/editurl.ts); the param is a consume-once intent (deriving the mode would re-enter edit in the Cancel gap), a blade honors it only when the URL also names it, and the name-to-uuid redirect keeps its query string. The groups blade keeps its one-shot until it gains an id deep link
ADR-01212026-08-15AcceptedThe console serves IBM Plex Sans and JetBrains Mono from its own origin (vendored under web/public/fonts/, embedded in the binary, declared by a generated web/src/fonts.css) instead of linking a font CDN: rendering correctly stops depending on reaching a third party, which is the deployment this product targets and was also the cause of a docs capture writing fallback-font PNGs the zero-tolerance freshness gate reported as UI drift. Every script the CDN served is vendored (54 files, 1,005,028 bytes) so no operator string renders differently than before; font-display: block replaces swap; the capture now aborts rather than photograph a fallback render; DOCS_SHOTS_PROXY retires
ADR-01222026-08-09AcceptedThe verdict domain gains a fourth value: a role short because its hardware was never installed reads incomplete (ranked between healthy and degraded) rather than its declared impact, which now describes failure only; impact: none stays healthy when empty and a losing alternate’s roles contribute nothing. No migration. Amends ADR-0050
ADR-01232026-08-14AcceptedThe totality-of-managed-things noun becomes fleet, everywhere at once (code identifiers, routes, docs prose, glossary, scope grammar, nav): a fleet of SYSTEMS, uniform units maintained at scale against a standard, stationed across the location tree. The old noun retires to the docs denylist. Ruled all-in rather than surface-only: two words for one referent is a permanent translation tax
ADR-01242026-08-15SupersededA healthy dot on the fleet canvas wears its system’s identity hue (the .og-system-dot OKLCH recipe over hueFor); incomplete, degraded and outage dots wear the semantic verdict colours; an unnarrowed verdict wears --og-unknown. Healthy is the wallpaper and the wallpaper is identity, so failures are the only status-coloured pixels. Diverges from the prototype, which had no per-system hue
ADR-01252026-08-15AcceptedA fleet band’s verdict chip renders the location’s server-recorded verdict, the same row its detail page reads, never the console’s fold over in-scope clusters; the fold remains as a named derivation. A band disagreeing with its own detail one click apart is a visible contradiction, and the fold covers only what the caller may read
ADR-01262026-08-15AcceptedThe deeper zooms render at the identity routes behind a query param (/locations/{id}?zoom=1), the inventory detail staying the default face: ADR-0120’s mode-rides-the-URL precedent applied to the fork where “the zoom is a function of which entity the URL names” and “the four tables stay live and untouched” collided at one address. The param may become the default later, and the table face may retire once the medium is judged
ADR-01272026-08-20AcceptedOperator surfaces carry no inline explanatory prose (explainers ride the label’s tooltip: InfoTip, Eyebrow); the system body renders components-first, role as a badge, role chrome only where it earns it (quorum > 1, short, or unstaffed)
ADR-01282026-08-20AcceptedA standard may declare a room map: one validated jsonb value (aspect + normalized 1-based role positions) on standard, display-only, rendered by every conforming system’s Map tab; JSON null clears; the visual editor stays out of v1
ADR-01292026-08-21AcceptedThe zoom/workspace/leaf render at the identity routes by default (?zoom=1 tolerated, never written); the classic detail face survives at ?view=detail only until edit-in-blade lands; the ruled target: one altitude rule, edit in blades, tables as a list-density toggle
ADR-01302026-08-21AcceptedA read that promises write order orders by a bigint identity the database assigns at insert, never by created_at or a uuidv7 id: wall-clock steps (reproduced on WSL2 under load) invert clock-derived keys across transactions; audit and principals converted, the rest tracked by #801
ADR-01312026-08-24AcceptedThe component_type tree mirrors the OpenAVCloud AV Device Taxonomy v1.1 (category roots, subcategory types, form-factor mic subtypes); the seed catalog goes fictional (the omniglass-lab brand universe, AV-iQ as the realism source); standards become integrator-style room chains with size-serialized variants, and the impossible shared bar yields to the divisible pair’s shared DSP and amplifier rack
ADR-01322026-08-25AcceptedEvery fleet workspace carries a Configure tab as the ONE deep editor; the blade stays a quick face whose rows jump into it; ?edit=1 retargets to Configure and the classic detail face retires with an explicit miss face (#800, diverging deliberately from ADR-0129’s edit-in-blade target)
ADR-01332026-08-27AcceptedA <select> whose options come from a collection the server answers for takes its value from bindSelectValue(value, ...options) (web/src/lib/selectvalue.ts) used as the element’s ref, never from a value= prop: the control keeps no value it has no option for, and a value binding does not re-run when the OPTIONS are what arrived. Thirteen controls convert, the workspace Configure face’s four among them. Two shapes stay on value= and the exemption is deliberate: a hard-coded or generated option list has no async gap, and a control whose value starts empty and only moves because the operator moved it has nothing stored to lose
ADR-01342026-08-28AcceptedThe entity formerly named interface renames to endpoint end to end (table, routes, endpoint:* permission nouns, console, docs, the endpoint-reachable datapoint renamed in place), executing #603’s naming ruling as ADR-0073’s transports-become-code lands: service was disqualified by the existing service-principal table, api by the platform’s own API vocabulary, and endpoint is the word the design already used for this thing’s address, which becomes address so the schema never reads endpoint.endpoint
ADR-01352026-08-28AcceptedA driver’s body is a versioned declarative spec (jsonb on the driver row, validated against the catalogs at every write): one transport, typed inputs with secret references, and three function families (polls, listeners, command bindings). Attach derives the endpoint and its tasks from the spec, emit lanes baked at attach; a listener’s arm conversation is session plumbing, never recorded command rows
ADR-01362026-08-28AcceptedThe command wire is a per-node pull (og.v1.command.<node>, request-reply like the worklist) with the binding’s request rendered server-side at dispatch: at-least-once delivery (redeliver after silence, a delivery TTL past which settlement’s timed-out covers abandonment), execution idempotent per command id at the node, the report (og.v1.commandstatus.<node>) stamping executed_at once under placement confinement, and the report never the verdict: settlement stays the judgment of observed against intended
ADR-01372026-08-31AcceptedExplore (/explore) is the fleet’s one door, and it draws one thing: an outline of places. A place wears the system that sits there, its components beneath; a chain of single-child places folds into one row; a collapsed row says what it holds in the registry’s own labels and counts its systems by verdict, never worst-wins. Depth and what may be added come from allowed_parent_types, never a type’s name. The filter is a predicate over live state, never a scope. One EntityForm per kind; three tabs and one counts line per workspace; the band canvas, KPI chips, jump anchors, the renderer library and the inventory tables retire (#826, #861, superseding ADR-0132’s anchors and ADR-0129’s canvas landing)
ADR-01382026-09-17AcceptedA scheduled daily session (the autopilot) ships one thin slice per day: for slices it scopes itself it files the definition in the /define-work shape with the Mode: autopilot (ADR-0138) marker and proceeds, the Define gate’s approval comment moving to the architect’s review of the PR (merge accepts, close vetoes). An in-progress loop, an approved definition, and a priority Bug outrank self-scoping; invariant surfaces (the authorization layers, the migration rules, the audit contract), breaking API changes and dependency majors stay behind a human approval comment; at most two autopilot PRs stay open; provenance is a marker line, never a new label class; the autopilot never merges
ADR-01392026-10-05AcceptedSystems are the unit Omniglass monitors; places are folders and metadata; components are pieces of systems. A detail view is one per system, its place a card of context above the system card and its tabs; a place holding exactly one system lands on it, and a place holding none or several keeps its own view (a brief card per system, then the outline rooted there). The side panel is the glance (verdict, why, context, identity and tags), configuration staying on Configure, revising #826’s one-form panel. The shipped system label rule leads with the place, and healthy is grey on every health pill (#872)
ADR-01402026-10-11AcceptedA system is the logical grouping the business cares about and support troubleshoots through; a location is the physical grouping that finds the box on site; operators add components to a system. Every system has a place, which bounds its components (checked against the primary system only) and its subsystems; a component’s place is inherited from its primary system unless set, derived at read time; systems group into systems (a divisible hall and its rooms); a place holding one system is one thing with it. The cross-tier scope expansion is decided separately (#10)
ADR-01412026-10-18AcceptedA command settles as soon as its evidence arrives: a matching observation taken after the intent, or the device’s reply when its driver binding says the reply carries it. Each binding declares its source (from: response with a value extract or a success match, or from: observe, the default); the window bounds the wait, not the settling; a sweep times out what nothing settles. Revises ADR-0063’s pending-until-the-window-passes rule
ADR-01422026-10-18AcceptedThe simulator is omniglass sim run, a run mode beside its node that holds the node’s identity and simulates the components placed on it; impairments are opt-in (--impairments and NET_ADMIN), the console’s operations run in process, a rate limit holds both ways, hits are live, not stored, and simulation:read (with component scope) is the whole gate on the simulated fleet
ADR-01432026-10-18AcceptedA simulated system is built to a standard: each role staffed with a simulated product that fits, short roles listed, names platform-minted, all in one transaction; the lab archetypes are not an operator concept
ADR-01442026-10-18Accepted; amended (#977): the dedup key names the rule by uuid, and a rule’s name is renameableAlarms are raised by event rules (one table per rule kind, rule:* authoring, raised_by_rule_id, one alarm per endpoint) at a severity level from a ranked registry referenced by name; critical became high, the outage floor
ADR-01452026-10-20AcceptedAn event rule’s alarm is optional (an informational rule raises none); a rule names the event types it writes (a required fire type, an optional clear type); its in-force state is its own condition row; it writes one event per edge, carrying the alarm the edge moved, and a severity toggled on or off moves alarms with no condition event; a hand clear holds while the condition persists
ADR-01462026-10-20AcceptedExpressions run on pinned Expr behind a per-site allowlist of vetted builtins and a per-site budget (after three adversarial passes); event rule criteria are stored as {expr}, the short form lowered on input and by a one-time backfill, with one approved bool divergence; compile errors show on the rule; validate and preview answer from the same declarations
ADR-01472026-10-21Accepted, amended (#1018)calc_rule is a sibling of event_rule with typed columns (inputs {as, key}, a named reducer or an expression, the output key by id); every write compiles the reduce against a calc expression site of its own and refuses a cycle in the key graph, a second enabled writer of a key, health as an input or output, and an output a collection declares (a native probe key or a driver’s emits); a reduce that stops compiling reads back as calc_error; Amended (#1018): the reduce is always an expression, its named reducers now list functions, and inputs are held by uuid in calc_rule_input, each bound by an alias as the list of its values
ADR-01482026-10-21Accepted, amended (#1018)Component calc rules run on a durable calc_pending set marked in the sample-write transaction and drained by a 1s server tick (SKIP LOCKED, one transaction per mark), writing calculated samples through the same path so event rules judge them; marks are held by their writer until commit, the ingest retries a deadlock, a failing mark is deferred, a rule write recomputes its owners; a write never marks its own rule; a missing input writes nothing and is recorded in calc_rule_state; an unchanged result writes no row. Diverges from the JetStream calc consumer (#430). Amended (#1018): every input binds as the list of its per-instance values, an expression’s included, and the marking probe reads calc_rule_input by key id
ADR-01492026-10-23AcceptedA PR’s walkthrough evidence (mp4, preview, poster, stills) is committed to refs/walkthroughs/pr-<n>, never the PR branch, and reached by that commit’s SHA; the PR comment links each video through jsDelivr (a public-repo dependency) so it scrubs; the docs commit each declared walkthrough’s mp4 and play it with controls, carrying no preview; a scheduled job deletes an evidence ref 30 days after its PR closes. Supersedes the #884 ruling that put evidence on the PR branch
ADR-01502026-10-23AcceptedA held session (#816) surfaces as the session-state property per endpoint (establishing, up, recovering, down; transitions only, under the endpoint’s standing listen task) plus the node’s self-logs carrying the reasons; no session_log table and no session view. The session is held for an endpoint whose worklist carries a standing listen task over a transport with a session dialer (the line protocol over tcp today), polls on that endpoint borrow it, and recovery is a jittered exponential backoff with an attempt budget before down
ADR-01512026-10-23AcceptedListeners run over the held session (#817): arm commands on every connection before up (plumbing, self-logged), match claims a pushed line, its emits land as push samples under the listen task. Every inbound line is routed listeners first, then the exchange in flight by its declared request.reply shape (or the first unclaimed line), then unclaimed (counted; unmatched: collection-failed lands one fault per tick). Commands ride the held session. Reverses the designed matcher order (outstanding poll first)
ADR-01522026-10-23Accepted, amended by ADR-1634A driver poll runs on its declared schedule.every at heartbeat granularity (#822): a per-task next-due time kept for the run, the first tick at or after it runs the poll, a new task runs at once, a late tick never bursts; probes stay per tick and pushes are never gated. Settles the nodes page’s open question for driver polls
ADR-01532026-10-23AcceptedThe stateful arc proves the held session on the line protocol over tcp (sessions, listeners, the shared reader); SSH, which #816 named as the session-lifecycle carrier, and the other held transports are deferred, each to its own issue (#1032 ssh, #1033 telnet, #1034 websocket, #1035 tls, #1036 mqtt, #1037 udp, #1038 SSE over http, #1039 modbus/tcp, #1040 bacnet/ip, #1041 knxnet/ip, #1042 ONVIF as a driver on http, #1043 the file sample with #1044 to #1047 for file-moving protocols), with server-hosted ingress at #1024; there is no serial transport, serial being reached through an IP-to-serial gateway over tcp (or tls or telnet)
ADR-01542026-10-23AcceptedHealthy reads green, reversing the grey healthy of ADR-0137 and ADR-0139 (#1067): one --og-healthy token from the success hue, full weight on the health pill and the history strip, muted (text-healthy) on the outline’s slots and the uptime figure; unknown keeps the grey chip
ADR-01552026-10-23AcceptedAuth is a layer that gates a held session (#1049, the architect’s ruling): each attempt runs dial, then the auth step (a driver’s login dialog or a transport’s own auth), then the arm, then up, and nothing borrows the connection before the step passes; its verdict is the existing endpoint-authenticated rung. A terminal refusal moves the session to rejected (amending ADR-0150’s state set), which dials no more and fails polls and commands fast with no throwaway fallback, until the endpoint’s session identity changes, an operator’s audited :retry (gated by endpoint:retry) moves the retry counter in the connection fingerprint (ADR-0158), or the driver’s slow re-probe comes due; an unrelated edit does nothing. Three silent hang-ups after the final secret are an auth refusal (the login budget). session-reason carries the reason as a property. One login dialog serves raw tcp, telnet and ssh keyboard-interactive
ADR-01562026-10-23AcceptedNon-retryable errors are defined in drivers (#1049, the architect’s ruling): a spec’s session.terminal lists the replies retrying cannot fix, each a match with a class (auth, host-key, certificate, protocol, a code-held set), applied to the login and to every answer, refusal and arm reply; a transport classifies its own protocol refusals into the same classes. The primitive is collection.TerminalError{Class, Reason}; anything unclassified stays retryable, and a terminal poll fault waits its interval rather than the failure backoff
ADR-01572026-10-23Acceptedtelnet (#1033) and ssh (#1032) are held line transports: the same session machine and line reader, telnet behind a filter refusing every option, ssh over a shell or exec channel. Their session’s login is the driver’s (session.login, session.credential), not endpoint params; the telnet probe never logs in, and the ssh probe’s params login is a known gap (#1060). The ssh host key is pinned on first use as the ssh-host-key property (observed), delivered back by the worklist, overridden by a declared value an operator sets with :retry and host_key; a changed key is a host-key refusal
ADR-01582026-10-23AcceptedOne connection fingerprint gates every connection, held or stateless (#1056 ruling): a digest the server computes over every input a connection is made with (transport, declared params, driver inputs, each secret’s sealed version, the session block, the ladder, the ssh pin, the :retry counter), held in internal/fingerprint. Connections are verified bottom up on the existing ladder (reachable, informational ping; responsive, the transport rung and the gate; authenticated, the login), declared in the driver spec with registry defaults. A terminal refusal gates its rung and above for the fingerprint; lower rungs keep running; the gate is published as endpoint-rejection and carried back so a restart honours it. Amended (#1059, #1080): the push lane refuses every native probe key by name, not only the gate and the host key
ADR-01592026-10-24AcceptedA refusal of a changed key carries both keys as data on its gate (#1078, amending ADR-0158 point 5): endpoint-rejection appends <pinned-key> <offered-key>, both or neither, declared once in internal/collection/rejection, adopted with the gate on a restart, and served as the reachability read’s pinned_key and offered_key, so no surface parses a fingerprint out of session-reason. :retry with host_key must name the gate’s offered key while one is held (409 otherwise, nothing written) and audits the pin replaced and the pin set. The console’s Trust this key confirms first and sends exactly the key it showed
ADR-01602026-10-24Acceptedtls is its own held line transport (rung handshake) over one TLS dial primitive the http, websocket and mqtt carriers consume later, so a component holds a raw port and a TLS one side by side (#1035). The verification mode is the driver input tls-mode (verify, pin, skip), the driver’s default, verify when none, skip never a default. The pin is the public key (SPKI, the ssh SHA256: form), trusted on first use as tls-certificate, delivered back by the worklist, one per endpoint shared by its session and probe; a changed key or a failed verification is a terminal certificate refusal at the transport rung, the gate carrying the pinned and offered keys as data; :retry with certificate accepts a new key. The probe lands one tls-handshake-time per answered probe and, for an accepted certificate, tls-certificate-expiry and tls-certificate-days-left
ADR-01612026-10-24Accepted, amended (#1582, #1625)Every metric, property and event type has exactly one writer class (node-probe, platform, calc, collected), resolved from code and the catalogs, never stored, and the Storage Gateway refuses any sample or event write whose writer the class does not admit: an invariant beside scope injection, not a per-route check. The reserved system family (node-probe, platform) is declared in code and closed to operator-created types by name; a node-probe key reads only as the node’s observed series, its time capped at the database’s clock, and health only as the rollup’s; fusion reconciles sources within the collected class; no reserved prefix (#1094 decides one for its platform keys). Amended (#1582): the writer is per task group inside one batch. Amended (#1625): the platform keys take no prefix either; a platform key is reserved by its declaration in the code map, and a node lands its own platform keys on its platform component
ADR-01622026-10-24Accepted; numbering amended by ADR-1108The build log, the decision log and the adversarial-review anti-pattern catalog keep one file per entry (docs/src/content/build-log/<YYYY-MM-DD>-<slug>.md, docs/src/content/decisions/adr-NNNN-<slug>.md, references/anti-patterns/<id>.md) instead of one shared file every PR appends to (#1095, the architect’s request). The docs build splices the entries into the page where a directive sits (::build-log, ::decision-index, ::decision-log), before the parse, so the page renders as one document; the decision index is generated from the files’ frontmatter. ADR numbers stay sequential: a collision fails the decisions lint naming both files, and make adr-renumber moves one and rewrites every reference. The generated OpenAPI JSON is written pretty-printed with sorted keys
ADR-01632026-10-24Acceptedudp is the line protocol as datagrams, built and stateless, its transport rung the driver’s request answered (#1037). Each endpoint binds its own socket (the listen-port input, a fingerprint input, else a kernel pick) that its requests, replies and pushes share; a datagram from another source is counted, logged once per tick and dropped. The socket is unconnected with the error queue on, so a closed port reads refused. request.retries defaults to 2 for polls and the rung, none for commands; a terminal reply gates the transport rung. The rung is the verdict and lands one udp-response-time per answered probe, never tcp-open or session-state. The simulated face’s loss is seeded per datagram
ADR-03112026-10-26Accepted, amended (#1582, #1637, #1896, #1928)The ingest consumer lands each batch (its log lines and its three sample lanes) in ONE transaction that first inserts the batch’s receipt, keyed by its subject and Nats-Msg-Id (telemetry_receipt): all or nothing, and an id that already landed writes nothing, so a redelivery after a lost ack, a consumer that died after its commit, or a publisher’s retry past the stream’s duplicate window lands each row once, log lines included. The property lane’s transition guard moves into the insert as a conditional write held per series by a transaction lock (the #455 ruling, ratified with the lock it needs under READ COMMITTED), so concurrent batches never write a consecutive duplicate; the guard still needs each publisher’s batches to land in order, which the consumer holds with one batch in flight (a refused batch dropped at once, a transient failure redelivered before anything behind it). Receipts are kept 24 hours. The (series, ts) natural key is not the mechanism. Amended (#1582): a node lands one batch per tick carrying a group per task, under one receipt; a refused group drops only itself and its siblings land. Amended (#1637): the batch is the spool’s flush window, not a tick. Amended (#1896): the one batch in flight is per partition of the node’s name, so order holds per node. Amended (#1928): the endpoint’s freshness stamp moved inside the transaction
ADR-03182026-10-29AcceptedEvery catalog that carries official keys its rows by (namespace, name). og is the platform’s namespace and only the boot seed writes it; local is the operator’s default; any other namespace is the operator’s to use. A bare name resolves local, then og, so an operator’s key shadows a shipped one of the same name and a release can never write an operator’s row. The pair is two columns (nothing parses a joined key); namespace/name is only its rendering, and a URL carries it as two path segments.
ADR-04172026-10-28AcceptedThe server prunes metric and property samples, and log lines by severity band, to a window each. The windows are install-wide settings in a platform-domain, client-visible retention namespace (metric 14 days, property 90, trend 730 for #1276; 1 to 36,500 days), not cascade-resolved. A pass runs at start in bus.Server beside the receipt prune, then hourly, or a minute later while a lane is behind. It deletes in chunks, each owner arc its own statement. Beyond ADR-0080’s floor (never declared, never a series’ latest) it keeps a command’s lineage rows, and it treats a row as latest under both reader orders (ts then id, and id). The newer-row check is a limited scalar subquery, so it stays a per-row index search on every arc; that adds metric_arc_owner_idx. PruneSamples is rewritten from a whole-table ranking to cutoff-first. A metric or property type can keep its own window (retention_days), set by a setRetention custom method that works on official types
ADR-04222026-10-27AcceptedA system owns metrics, properties and events of its own, written by a calc rule over its members (the primary path) or by a push naming it as the owner (owner.kind: system on POST /telemetry:push, fenced by telemetry:push on the system tier with ADR-0752’s refusal split, one check per batch). A system has no endpoints, so a system push names no instance and carries no log line (each a 422), and a system’s samples read on its own surfaces, an observed property through its change history (/systems/{name}/properties/{property}/samples) until the unified properties read (#1297) carries it. Node-collected system telemetry is the shared-API fan-out of #1282, never a system-owned endpoint. A location owns no observed sample: the claim that location-level samples are first-class narrows to a location’s declared properties and calculated health
ADR-04532026-10-26AcceptedEvery telemetry publish (the node lane and the push lane, the webhook path with it) is a JetStream publish that waits for the stream’s ack, carrying a Nats-Msg-Id minted once per batch (a UUIDv7, never a content hash, never the node’s name) and kept across every retry. The push route answers 202 only after the ack and 503 after three attempts. The node’s send only queues; a shipper keeps a window of 32 batches with the stream, in order, over a connection that reconnects without limit and buffers nothing across a reconnect, and holds what the stream has not acked in a bounded in-memory spool (10,000 batches, 16 MiB, 12 hours, oldest dropped and told once; a batch the bus can never take dropped) for the next tick. OG_TELEMETRY keeps a five-minute duplicate window; the consumer double-acks; the receipt (ADR-0311) is the guarantee past the window
ADR-04562026-10-26Acceptedinstance has one meaning on every lane: which one of several values of one key on one owner a row is. Each provenance has one stamper: the observer for observed (the node lane’s task endpoint, the endpoint a webhook arrives at, an endpoint of the owner a push names, any other refused with a 422), the operator for declared (owner-level on every shipped route), the command for intended, and the empty instance for calculated and, deliberately, for health. A read asking about the owner reduces across every live instance of the key (a deleted endpoint’s frozen reading left out); one naming an instance reads that series and never reduces. Reconciliation’s is is worst-case and names its instance, told the newest intended; an un-instanced command is judged on the endpoint that carries it (dispatched or queued), else on any live instance agreeing, and one no node took times out rather than failing; a current-value display shows the newest across instances and names it (#1020)
ADR-05032026-10-26AcceptedA system’s roles are its standard’s plus its own, and every staffing route addresses a role by name, so a name must mean one role in a system. A write that would give a system two roles of one name is refused with a 409 naming the role, the standard and the system: a system declaring a name its standard declares, a standard declaring a name a conforming system declares itself, and a system moving onto a standard that declares a name it declares itself. Shadowing is not an override, after #443’s ruling for the registries: a name in both is a collision, and picking a winner is the bug. The boot seed defers to the operator (a shipped role a conforming system already declares itself is not installed), and a staffing write that meets a collision written before this rule is refused naming both roles rather than binding one arbitrarily. Every write that can create a collision serializes on one advisory lock
ADR-05062026-10-26AcceptedWhen a system’s standard changes, each assignment to a role of the outgoing standard moves onto the role of the same name the new standard declares, keeping its position where it is free, when the component is still a typed match for that role and the role has room under its capacity; every other one is released. A released component stays a member (giving up a role never ends membership), so it is never wedged: it can be unbound, restaffed and deleted. Clearing the standard releases every inherited assignment; the system’s own roles keep theirs. Each move and release is audited in the change’s transaction and the system’s health recomputes after it. Staffing writes take a per-system advisory lock shared and a standard change takes it exclusive, so they serialize, and a one-time backfill releases the assignments a change already stranded
ADR-05082026-10-26Superseded by ADR-0827SeedSystemRole writes a shipped role and its typed-slot sets (accepted types, pinned products) in one transaction, so a role never lands without them. On every later boot it repairs: a shipped role the seed itself wrote (no audit row names it, since every operator write of a role is audited and the seed never is) and nobody has revised (its updated_at still equals its created_at) whose accepted-types or pinned-products set is entirely empty while the shipped declaration names some gets the shipped set, which is what a complete install would carry. A set with any rows, any role an operator declared, and any role an operator has revised are left exactly as they stand, so an edit still survives every restart
ADR-05102026-10-26AcceptedEvery route that binds, unbinds, re-defaults or staffs a component in a system (PUT and DELETE /systems/{name}/members/{component}, :setPrimary, and PUT and DELETE on a role’s assignment) needs component:update over the component as well as system:update over the system. The component end used to resolve by existence alone, so a principal scoped to one system could bind a component it could not even read, make that system the component’s primary, and inject its own system-band variables and tags onto it through the cascade. The permission half is published as the routes’ x-omniglass-conditional-permission and refused with a 403 naming it; the scope half runs in the Storage Gateway, where a bind resolves the component in component:read and requires component:update (a non-disclosing 404 out of read, a 403 out of update), and a write naming an existing member or occupant requires component:update alone (a 403, since the system’s own read names it). System-wide acts that release bindings without naming a component (deleting the system, withdrawing a role, changing the standard) stay gated on the system alone
ADR-05282026-11-11AcceptedA component delete is refused (409) while the component owns endpoints, as it already is while it has child components. Cascading the endpoints and their tasks away with the component is the entity-lifecycle story (#528), not taken here
ADR-05552026-10-26Accepted, amended by ADR-0827A vendor, driver, product, standard or location type renames through POST /<registry>/{id}:rename, gated by its own <registry>:rename (admin), not a name field on each patch as #555 first proposed. One gateway primitive (RenameRegistry) serves all five: it validates the name, refuses an official row and a seeded example standard (the boot seed owns both by name), moves the one column, carries every by-value copy of the name along (a location type’s in allowed_parent_types and in forks, a driver’s in the tasks it derives, by re-deriving them), and audits it in the transaction. The telemetry-keyed catalogs and the remaining type registries wait on #1188
ADR-05582026-10-26AcceptedThe key-encryption key’s variables are OMNIGLASS_ENCRYPTION_KEY and OMNIGLASS_ENCRYPTION_KEY_FILE, and no operator-facing string calls it a “secret key”, which names a secret’s own identifier. The old pair (OMNIGLASS_SECRET_KEY, OMNIGLASS_SECRET_KEY_FILE) is read for a deprecation window, only while neither new name is set, warning on every boot with the replacement; once a new name is set the old generation is ignored as a whole and a leftover is called out. The environment registry declares the rename (Deprecated) and the generated reference renders it. Removing the old names is a breaking change for a later release
ADR-06182026-10-28AcceptedAn alarm transition writes its notification rows in its own transaction (notification, rendered then, queued), and a 2s server tick delivers them one row per transaction under FOR UPDATE SKIP LOCKED, the send made while the row is locked: backoff from 10s doubling, failed at the 8th attempt, :retry re-queues. Replicas share the queue and never send one row twice outside the crash window between a send and its commit; a restart loses nothing. Diverges from the page’s CDC-to-JetStream action sender (#430, unbuilt), as ADR-0148 did for calc rules
ADR-07522026-10-26AcceptedPOST /telemetry:push keeps its scope fence and refuses synchronously: the owner it names in the body is a component target, resolved through ADR-0116’s split with visible_set(P, telemetry, push) as the action half and, because push is the stronger grant, the push scope itself as enough to see the target: a component inside the push scope is pushed to with no component:read needed, one outside both the push scope and the caller’s read is a non-disclosing 404, and one readable but not pushable a truthful 403. One check per batch, never per sample. telemetry resolves on the component tier alone (the ADR-0117 precedent). This supersedes the 2026-08-27 ruling on #752 that the route was capability-shaped with no per-target walk: the shipped route had always walked scope, and removing the walk would have let a component-scoped integration push to every component
ADR-08212026-10-24Acceptedsnmp is v2c, built and stateless (held: true was honoured by no code path), its transport rung a get of a standard OID answered, ladder.transport.request.get, sysUpTime.0 unless the driver names another, sent with the endpoint’s community, which the worklist now delivers to the probe (#821). Any response is an answer: responsive, one snmp-response-time, endpoint-authenticated yes, the verdict. A wrong community is dropped silently by the protocol and reads not responsive, retryable, indistinguishable from a stopped agent; only authorizationError is a terminal auth refusal at the session rung, beneath which no get is sent by the probe or a poll. The simulated faces are strict and answer a refused community with authorizationError
ADR-08272026-10-28Accepted, amended 2026-10-28 (one verb, createFromTemplate)#827 owns only ADR-0071’s clone model: standard, component, system and place templates shipped in the binary, read over GET /templates (template:read) and created through POST /standards:fork and :instantiate custom methods gated by each resource’s own create permission and scope, provenance in the audit detail only. The ComponentTemplate collection-authoring model (functions, a step DAG, inputs, :apply) is superseded by the driver spec; its remainders move to #1331 and #318, the registry scope ladder’s template rung retires, and :apply retires.
ADR-08592026-10-27AcceptedThe autopilot skill’s step that tried gh pr merge --auto is removed. Agent PRs are opened under the architect’s own token, and GitHub never lets an author approve their own PR, so a required approving review could not be the gate; without one, a required check alone merged a PR the moment CI went green (#857). The architect’s manual merge stays the approval, as ADR-0138 intended
ADR-08962026-11-02AcceptedA surface two simulated devices share (the Newtron panel’s room and source control, which the control processor also speaks) is defined once as a fragment under surfaces/ and taken in by an interface’s include: list, expanded by the simulator’s profile loader. The product catalog (seed) gains no composition primitive, and each product keeps its own driver
ADR-09022026-10-24Acceptedhttp becomes a full collection transport (#902, slice 1 of epic #1113, its decisions 1 and 4 to 7): a driver’s http polls and commands declare method, path, query, headers, a body and the response format, rendered injection-safe; the one Extract primitive gains a namespace-aware xpath over xml and parsed html beside jsonpath, regex, oid and key, one value per selector; auth is the session block’s scheme (basic, bearer, api-key, placed by the driver) over the new bearer-token and api-key secret types; a credentialed 401 is a terminal auth at the session rung, proven by the credentialed exchanges while the probe stays credential-free; the status table splits gating, waiting and backing off; https is its own registry entry over the shared TLS primitive; a listener on a transport with no listen path refuses at write (#1115)
ADR-09142026-11-12AcceptedThe embedded catalog’s room archetypes and fleet manifests are retired rather than re-expressed as standards plus counts; a simulated fleet is a dev fleet or a scale lab scenario, both built from the platform’s standards
ADR-10242026-10-25AcceptedThe webhook transport is a push transport the server hosts (#1024, slice 1 of #1146): a sender posts to POST /webhooks/{token}, the token (128 random bits, minted by the endpoint’s create and held as a webhook-token secret on its component) names one endpoint, the scheme its driver declares authenticates the post (hmac over a signed timestamp, token, basic, or none, which reads unsigned), and its listeners map the body onto any lane through the one extraction primitive, the raw post landing as a log line unless a listener says log: false. The route is ungated by necessity, as POST /nodes:claim is. A push endpoint has no ladder and reads last heard; refusals are counted, never gated; unknown senders land in a bounded inbox read under node:read
ADR-10342026-10-25AcceptedA websocket endpoint, and a wss one over the shared TLS primitive, is a held session (#1034, slice 4 of epic #1113) through the staged dialer every held session uses: its auth step logs in first when the session declares an http login, then sends session.upgrade with the session’s scheme, the login’s session and its cookies, a 401 or a 403 to it a terminal auth. A message is a text frame, routed by the line session’s precedence (ADR-0151): an arm subscribes on every connection, a listener claims a push, and a request is a frame (a line, or a JSON body rendered injection-safe) whose reply.correlate names the field the node writes a fresh random id into, its answer the frame carrying the id back. Ping and pong keep the socket proven, a frame is bounded to 1 MiB and dropped past it, and the probe is http’s
ADR-10382026-10-25AcceptedAn http session may declare session.stream (#1038, slice 3 of epic #1113): a GET held open as the endpoint’s session through the staged dialer every held session uses, its auth step the session’s scheme or login (shared with the endpoint’s polls and commands), its events offered to the listeners. The held connection’s unit widens from a line to a message (a line, an event, later a frame), and the router gains an event-name match and a JSON field match beside prefix and regex. A drop resumes with Last-Event-ID (carried across a reconnect that saw no event) after the server’s retry, held to the session backoff’s bounds, and the replayed event a resume is sent again first is dropped. A stream refusal gates the polls, a poll’s refusal stops the stream, and the polls wait for the stream’s first verdict under a fingerprint
ADR-11002026-10-24AcceptedWhat was written or declared before the one-writer ruling is held to it (#1100, amending ADR-0161): a declared pin is trusted only from the endpoint’s audited :retry (marked source key-pin, legacy ones stamped from their audit row) and a node forgets a pin the worklist stops delivering; rows the ruling refuses are retired whole into retired_sample with a reason, never deleted and never flagged; stored driver specs and derived tasks never hand a node a refused emit, and the boot audit names them; a node’s writer binds its task’s component as well as its endpoint; contracts refuse reserved keys; and command-lifecycle (command-issued) is a reserved class
ADR-11082026-10-24AcceptedADR numbers stop being sequential after ADR-0163 (#1108, the architect’s ruling): ADR-0001 to ADR-0163 stay a closed, gap-free legacy range, and every later decision takes the number of the issue it was decided under, named in its frontmatter refs (this one is ADR-1108). A second decision on one issue takes a suffix from .2 (ADR-NNNN.2), whose anchor drops the dot (#adr-NNNN2-...). The index orders both ranges by value; the lint keeps one file per number and one anchor per decision, and make adr-renumber survives only for two PRs adding one issue’s next suffix
ADR-11102026-10-24AcceptedA gate publishes its reason beside it (#1110, amending ADR-0158 point 5): endpoint-rejection-reason, the refusal’s class and the component’s own text, node-only, written in the same batch as endpoint-rejection whenever the node records a gate, held session or not; a gate adopted after a restart writes none. The reachability read serves rejection with its reason and ts whether or not a session is held, and the console’s refusal notice keys on the gate, so a probe’s refusal (a tls certificate, a udp terminal reply, an snmp authorizationError, the ssh probe’s credential) shows the same reason, Retry and Trust this key as a rejected session, a retry waiting on the gate where no session exists
ADR-11142026-10-25AcceptedAn http session may declare session.login (#1114, slice 2 of epic #1113, its decision 3): the #1061 login dialog with request steps naming only secret fields, a capture of the last answer’s values through the one extraction primitive, the headers that send them, a declared expiry, a login path and an expired match telling a lapse. The node keeps one auth state per http endpoint (a cookie jar, the captured values, a digest challenge) in memory alone, dropped when the fingerprint moves, on a terminal refusal, and on restart. A lapse logs in once and replays once; a lapse right after a fresh login, or any refusal of the login itself, is a terminal auth tried once per fingerprint. digest (RFC 7616, MD5 and SHA-256, stale) is a scheme on basic-auth. Shaped so an OAuth2 client-credentials grant (#1119) needs no new primitive
ADR-11322026-10-25AcceptedEvery PR carries a demo, a recording of its feature working: a terminal demo (a VHS tape, scripts/demo/<id>.tape, played by VHS from its own image, pinned by digest, against the walkthrough stack) for CLI and API work, a walkthrough for a console flow, n/a only with a reason. Both recorders share one label (run:demo, which keeps honoring run:walkthrough), one record job, one publish job over the existing evidence ref, one prune and one PR comment; a terminal demo’s GIF plays inline from the raw host and its MP4 scrubs through jsDelivr. A tape is held to house rules and house settings, and a command in it that fails fails the demo
ADR-11332026-10-25AcceptedEvery route that takes a uuid takes the resource’s name too (#1133): an endpoint as / on the existing top-level /endpoints/{endpoint} (not a nested route, since a server-hosted endpoint has no component and a resource gets one canonical name), a secret or variable as or / with $platform for the install-wide tier, a file by filename, a principal group by name, a member or principal by username or service account name, and a grant’s scope root by name or dotted address. Scope narrows the candidates before ambiguity is judged; a name no visible row answers to, or several do, is a 404 naming the reference and listing each visible match in a spelling that resolves. The uuid is tried first and every response still returns it. A docslint guard refuses a hard-coded uuid in the docs and the demos
ADR-11342026-11-13Superseded in part by ADR-2334A name that more than one visible row answers to now gets the same refusal on every collection (#1134): a 404 naming what was looked up and listing each candidate in a spelling that resolves on the same route. A component, system or location, which answered 409, moves to that shape: each candidate is its dotted address with its uuid beside it. A candidate the caller cannot read is neither listed nor counted, and scope still decides before ambiguity does
ADR-11452026-10-25AcceptedA driver’s emit resolves against the event catalog beside the metric and property ones and may be a log line (#1145): an event carries a message and attributes rendered into its payload, a log line its message, severity, facility, source and attributes, and any emit may read its time from the payload, clamped to arrival past five minutes. A task’s log lines ride their own wire field into log_line on the task’s component, never node_log; unmatched: log lands what no listener claims; a plain poll fires an occurrence on change. The Storage Gateway holds every log_line write to RFC 5424’s eight levels (one alias table) and 16 KiB caps
ADR-11552026-10-25Accepted, amended by ADR-1630A command reads back from issue to settlement (#1155): GET /components/{name}/commands and /commands/{id}, gated command:read on the component tier with the read and action split, carrying each transition’s time, the in-flight phase (derived, never stored), the settle mode, the evidence and a reason. The row keeps the reply, masked of the dispatched endpoint’s secrets and of credential-labeled pairs before it is stored, and what decided the outcome; each terminal status lands command-settled, command-failed or command-timed-out, joining command-lifecycle. An issue may wait (1 to 120 seconds, 64 waiters, 4 a principal, a 429 before anything is issued), judging the command at its deadline
ADR-11622026-10-25AcceptedAn API operation joins the MCP catalog by an x-omniglass-mcp stamp at its registration in Go, and cmd/mcpgen, beside cligen, generates the tools and their docs reference from api/openapi.json: generated, not hand-listed, and curated, not one tool per operation. Annotations come from one pure rule over the method and the gate; a stamp can only add caution. The server is served at /mcp over streamable HTTP and over stdio by omniglass mcp, a relay to it; both admit only a bearer token the API accepts, and every tool runs its route through the router with that token, so the gate, the scope and the audit row are the route’s. The row records how it arrived in new audit_log.channel and client columns, set server-side. Minting and revoking a token are audited
ADR-11632026-10-25AcceptedOne primitive, the on-demand node run: the server asks a node on its own run subject and waits for its one answer, a request-reply rather than the command wire’s pull, because a run is wanted now or not at all (a node that is not there is a 503, one that does not answer a 504, never a queued run). A preview (driver:preview) runs a spec’s polls once against a target and stores nothing, answering with samples, faults and a masked excerpt of the raw answer; a run now (endpoint:run) runs an attached endpoint’s poll on the run loop, borrowing its session, honoring its gate and landing its samples. Validate (driver:read) answers every finding a spec has, pinned per function. A preview’s secrets must be ones the caller may reveal; its MCP tool is destructive and open-world, since a poll’s request is whatever its spec says. Runs are bounded by a stricter in-flight class than the API’s own, and each asking is audited. Closes #1160’s API and CLI
ADR-11662026-11-17Acceptedomnibot drives the server’s MCP tools as a one-day agent token it mints from the person’s own credential, held to the omnibot channel and revoked when the run ends; the tool’s resolved agent policy is enforced in the client (always runs, ask is confirmed by the person, never is not offered), with no pending action on the server, and the omnibot channel is stamped from the credential, never declared
ADR-11672026-11-17AcceptedThe console’s omnibot panel reads the :run AG-UI stream with a small reducer of its own, folds reasoning and calls into one collapsed thought block whose rows show a generic card unless a per-tool renderer reads its result, pauses an ask on a confirm card the next run resumes, and hands omnibot a credential by name, created through the secrets route with the person’s token
ADR-11792026-11-16AcceptedAn agent token is a credential minted by a person, named for its agent, required to expire, optionally narrowed to roles and channels. Its authority is its roles intersected with its person’s current grants, checked on every request; reveal and use are stripped by construction for it and for any token on the MCP channel; it cannot mint, change the password or impersonate; audit_log.agent names it
ADR-11802026-10-25AcceptedThe run:demo label records exactly the demos the PR body tags (demo: <id>, or demo: none (<reason>)), plus any tape or walkthrough the PR adds or changes; nothing fans out from the console, a recorder or the stack. A lint fails a PR with no tag or one naming a demo its tree lacks. Each demo records on a runner of its own. The publish job writes each demo’s clip into the PR body between markers, replacing only that block, and keeps the comment as the full record. A nightly run on main re-records every demo, keeps its recordings as artifacts, and opens or updates one issue on failure. Amends ADR-1132
ADR-11852026-10-26AcceptedOne primitive (internal/clientaddr) decides who a request’s client is, for the address a session or token is stamped with and the source a webhook sender is limited and recorded by: the connection’s peer, or, only when that peer is in OMNIGLASS_TRUSTED_PROXIES, the rightmost X-Forwarded-For hop outside the list. The list is CIDRs or addresses, replaces the default whole, says none to believe no proxy, and fails the boot on a bad entry; unset, it keeps the loopback and private ranges.
ADR-11932026-10-27Acceptedomniglass lab run (make lab, the short form) brings up a working omniglass on Docker as one compose project of three containers (Postgres, the server in lab mode, and a node running the simulator in its own process with node run —simulate), published on 127.0.0.1:8080 only, seeded with the dev fleet and signed in as dev/dev. Docker is required; the image follows the binary’s version; the lab drives the Engine API with compose’s labels; a lab and a real server refuse each other’s database through a lab mark that is data the lab writes. make builds and runs nothing; the console loop is the Vite proxy against a lab.
ADR-12022026-11-14AcceptedAn observed property keeps its text-form encoding; every read that sets it beside a declared or intended value reads it typed by the property’s data_type (one SQL expression) and compares with one helper, instead of storing observed properties as typed jsonb
ADR-12472026-10-27AcceptedAfter each line a terminal demo shows, the prelude holds the screen before the prompt returns: 2.5s plus 0.5s a row of output up to 7s, and a caption 1.5s plus 0.2s a word up to 4.5s (PACE in web/e2e/tapelib.mjs). A tape writes no Sleep and types nothing that reaches the rule’s hooks. The terminal demo’s length budget rises from 120s to 180s, and make test-web fails a tape whose least possible length is already over it. Amends ADR-1132
ADR-12492026-11-09AcceptedEvery discrete request a node makes rides its endpoint’s lane on the bounded worker pool (#1249): scheduled polls and probes, and an operator’s commands, run nows and previews, one in flight per endpoint, endpoints side by side. Operator work waits in a class ahead of the scheduled work, never preempting the request in flight. Each job consults its endpoint’s gate as it is taken, so work queued behind a reboot or a refusal answers with the gate’s reason and sends nothing, the most causal reason first. A preview resolves to the inventoried endpoint its transport and target name and takes that lane, gated by that endpoint’s gate, a refusal included; one that names none runs off-lane, held only by its host. Endpoints on one host share one ping per probe slot. Operator work waiting across the lanes is capped at 64, a refusal answering at once (the API’s 429) and counted against the offers. --lane-workers replaces --poll-workers. Amends ADR-1634 and ADR-1163
ADR-12572026-11-14AcceptedThe release workflow builds and pushes the image before the binaries and stamps its digest into each (main.imageDigest); a release binary’s omniglass lab run pulls ghcr.io/hyperscaleav/omniglass@, never the v tag, and one with no digest refuses, naming —image. release.yml is the only release path, switched off until RELEASES_ENABLED is set; v* tags are protected by a repository ruleset.
ADR-12692026-11-02AcceptedRuled by the architect on 2026-11-02 for #1269. A series read given a resolution returns every regular, epoch-aligned bucket of the window, empty ones as count 0 with null values, and carries covered_from, the edge of the type’s effective retention. A bucket aggregates one instance’s measured rows (observed and calculated), never another instance’s and never a declared or intended row; an unnamed instance is the one with measured rows, or a 422 listing them (amended on review of #1485). The cadence-derived gap break and a failed check drawn as its outcome leave this slice for #1475, after #1264
ADR-12722026-10-27AcceptedA fourth performance instrument, the ingest footprint: a deterministic standard workload delivered through the real telemetry handler over the dev scenario’s fleet, holding statements per batch, rows per observation on each lane, metric rows per heap page and the metric index definitions exactly, and index bytes per row (after REINDEX) under a bound; the live index size, receipt bytes, WAL bytes and wall-clock time are reported, never held. Extends ADR-0094: a byte count that depends only on the schema and the Postgres major is a count, not a timing, so it may gate
ADR-12732026-10-28Accepted, amended by ADR-1634A node’s reachability probes run on a probe interval of their own (node run --probe-every), at heartbeat granularity through the same per-task schedule as a driver poll; unset, a probe runs every tick as before. A learner’s lab checks in every 2s and probes every 10s; a script’s throwaway lab probes on every 2s check-in so a recorded walkthrough keeps its budget. A task is due within half a heartbeat of its due time, so an interval equal to the heartbeat never skips a jittered tick. Narrows ADR-0152’s probes-every-tick clause
ADR-12742026-10-28AcceptedAn ingest batch resolves each owner and reads the transaction’s clock once for every lane (a batchTx wrapping the batch’s transaction, which ownerArcValue and dbNow answer from), and lands every metric sample whose series it carries once in one ordered statement; a series it carries more than once keeps the per-sample insert-then-judge order, so rule evaluation sees exactly what it saw before. A node batch drops from 29 to 19 statements
ADR-12752026-10-29Accepted; amended (#1527): metric is partitioned by UTC day, not by monthA metric sample is (id, series_id, ts, value) in metric, range partitioned by month from birth and rolled by the server; what it samples is a metric_series row (type, owner arc, instance, provenance, source, collecting node); a command’s intended rows live in metric_declared, never pruned. The metric floor becomes the latest row within retention (amending ADR-0080); property keeps its floor and is not partitioned. A partition-routing miss is retried, never refused.
ADR-12762026-11-05AcceptedThe trend tier is metric_trend, one row per observed metric series per UTC hour (count, min, max, sum, first, last), written by the retention pass’s compaction once an hour ended a day ago, and kept for retention.trend_days. Two marks record how far hours are announced and how far they are folded: the compaction moves the announced mark, takes an advisory lock every metric insert holds shared to wait out the inserts in flight, and folds each hour in a transaction that moves the folded mark past it. A late sample marks its hour dirty in its own insert and a later compaction recomputes it. The metric prune and the month drop never pass the folded mark.
ADR-12772026-10-29AcceptedA fifth performance instrument, diagnostic only: make lab-footprint brings up a throwaway lab at a named cadence profile (lab, walkthrough, default), reads each container’s CPU and working set (anon plus shmem) from its cgroup through the Engine, rows a minute from the cumulative statistics, growth from relation sizes and the WAL position, and times the 24 h and 30 d series reads with the server and Postgres held to one vCPU, as the median of N windows with the range beside it
ADR-12792026-10-28Accepted, amended (#1928)The telemetry consumer keeps its sample registry (the metric, property and event catalogs, with each type’s calc-rule writer) between batches and rebuilds it only when a fingerprint of the tables it is built from changes: one statement digesting (SHA-256) every row version (xmin) of metric_type, property_type, event_type and calc_rule. A batch costs one short read instead of three catalog reads; a catalog change is honored by the next batch (within five seconds since #1928, at once for a new name); a drift guard fails when a list query starts reading a table the fingerprint does not cover
ADR-12822026-10-29AcceptedA component that speaks for many owners (the conduit) collects once, and each value a driver function identifies (a match key, a registered property type, and its value) lands on the one system or component an identity_binding row ties to (conduit, key, value), through one fan-out step the node lane and the webhook lane both pass. A binding is made under the conduit (/components/{name}/identity-bindings/{key}/{value}) and costs component:update on the conduit and the owner’s update (ADR-0510’s rule), so nothing in a payload names an owner: it names an identity, resolved only against the bindings of the conduit the batch is already confined to. A fanned sample is observed, collected-only, at the empty instance, its conduit named in source as <component>/<endpoint> (amending ADR-0456’s observer stamp); an identity nobody bound lands on no owner and is kept in the conduit’s bounded unbound_identity inbox (amending ADR-1024 decision 7). The collection page’s cascade-scoped index and observed-identity fallback are deferred
ADR-12972026-10-28AcceptedAn owner’s properties read (GET /{components,systems,locations}/{name}/properties) lists every property the owner has, declared, calculated, observed or told, and every row but a calculated one carries its want/told/is reconciliation. GET /components/{name}/reconciliation and omniglass component reconciliation list are removed outright, with no deprecated alias.
ADR-12992026-10-28AcceptedThe catalog fingerprint covers command_type, and the ingest consumer keeps the property type names some command type targets beside its registry, rebuilt on the same fingerprint, and hands them to LandBatch on each batch; the property lane answers settlement’s question from the batch instead of reading command_type in the batch’s transaction. A node batch drops from 19 to 18 statements, with no new read. A node batch and an API push both carry the set; calc outputs and InsertPropertySamples read it in their own transaction as before
ADR-13072026-10-29AcceptedThe platform always owns its official rows: the boot seed upserts every one and never skips or fails on a name an operator holds. A name an official row holds in one ingest registry and an operator’s row holds in another resolves, at ingest, to the operator’s row (private shadows official), so the operator’s series keep landing where they did and nothing is refused. The registry reports the shadowed name on a rebuild and hourly. Two operator rows, two official rows, or an operator row among several still resolve to nothing. The namespace tiering of #318 is the general form of this rule
ADR-13182026-10-29AcceptedA snooze is one alarm_snooze row per condition (component, dedup_key) with a deadline (1m to 7d), set and ended from any alarm of that condition by :snooze and :unsnooze under alarm:snooze (component tier, on operator). While it holds, every row a firing rule would write is written suppressed with the reason, on every channel, a raise and a clear alike, and a row already waiting out a retry is marked suppressed by the tick. When it ends with an alarm of the condition still raised, that alarm is announced again as raised against the rules as they stand: the one operator act that queues notifications. The deadline sweep runs on the notifier tick until #419. Refines ADR-0109’s refusal of snooze and the rule that operator transitions do not notify
ADR-13412026-10-28AcceptedA group or person target expands to its human, active members inside the alarm transition (one notification row per person per channel, each with its own delivery state and Idempotency-Key), and a person is kept only when their own component read scope admits the alarm’s component, judged set-based under #618’s savepoint so it can never fail the transition. The scope is checked again where a row waits: an email row at send, an inbox entry at every read. A personal rule is gated by its owner’s scope before its when runs. Inbox entries are notification rows (channel = inbox); the recipient’s name is the recipient’s and principal:read:admin’s alone
ADR-13432026-11-23AcceptedPOST /locations (and its batch create and the template plan) resolves the parent under location:create first and, when that refuses, under location:read to pick the refusal: a parent the caller cannot read and a parent that does not exist are one 404 parent location not found, byte for byte; a readable parent outside the create scope stays 403. Revises ruling 2 of #627 for the location create path; the parent-not-found sentinel maps to 404, not 422.
ADR-13502026-10-29AcceptedA node’s own logs (node_log) may keep each severity band for a window of their own: retention.node_log_debug_days, node_log_info_days, node_log_warning_days and node_log_error_days, install-wide, 1 to 36,500 days. They declare no default, so the effective document leaves them out until an admin sets one, and while one is unset node_log follows the shared band (RetentionSettings.NodeLogDays); log_line always does. This is the first optional setting: no default tag, json omitempty, the zero value read as unset, a merge-patch null restoring it. The Admin settings page lists every key the generated schema declares, so an unset key shows as not set and stays settable. The per-node window waits for the cascade’s node leaf (#1351)
ADR-13692026-10-28AcceptedEvery endpoint carries collection telemetry as built-in data (what every endpoint gets, whatever its driver, as against the collected data its driver declares), aggregated where it is counted and reported once a report window (the platform’s collection.report_seconds, 60 by default, 10 to 3,600): the node lands poll-duration (the mean of the endpoint’s poll runs), poll-failure-count, push-message-count and push-unclaimed-count, node-probe keys refused on the push lane; the server lands webhook-post-count and webhook-refusal-count, platform keys the process writes through the gateway. Durations and message counts land every window, zero included, failure, unclaimed and refusal counts only when nonzero, and a webhook endpoint one zero after a stream stops. The row’s instance is the endpoint, so an endpoint’s polls share one series. The single window is the interim of the cadence model in #1373
ADR-13702026-10-29AcceptedA simulated service is subscribed to its webhook endpoint by the simulator: the server’s simulation device list carries, for a simulated component holding a webhook endpoint, the endpoint’s path (its token) and the secret its scheme signs with, and the simulator calls the device’s own subscribe route with the server URL it reaches plus that path, once per device instance and subscription. Fenced by facts the server holds and a node cannot assert: only a lab-marked database hands one out, only for a component in the simulated block (127.60.0.0/16, which only the seed allocates), and only on the simulator’s device list, never a node’s worklist. The lab’s first-party pusher is a service principal holding telemetry:push alone on one system, its token minted per lab run like the node’s
ADR-14422026-10-29AcceptedRuled by the architect on 2026-10-29 for #1339. Deleting or aging out an audited subject never touches audit_log. A row’s reference to its subject (resource_id) is a string, never a foreign key, and the before and after JSON images are the record that survives: an update carries each field it moved in both old and new (null where it was unset) and enough of the subject to name it. Every alarm audit row is held to this: acknowledge, clear (by hand and by a rule), snooze, unsnooze and snooze-end each carry the moved field in both images and name the component and dedup key; the raise’s new image is the whole alarm
ADR-14542026-11-14AcceptedThe component’s own verdict (the alarms read, the fleet view’s dots, a system’s members) says unknown until an alarm was raised on it or an endpoint delivered. The rollup’s vocabulary is unchanged
ADR-14832026-11-15Accepteda shared driver exists only for one product in different configurations; newtron-nvp and http-json rename to newtron-panel-nvp and tessellate-census-http, carried to existing installs by a migration that renames the driver row in place
ADR-14982026-11-15AcceptedA subtree-op location grant reaches the system and component resources for read and create as a cross-tier root (scope.Set.LocationIDs), matched by a row’s placement, never by its own ancestry; a root create places inside it, a root with no location still needs an all-scoped grant; the modify actions, the group kind and every other resource stay on their own tier (#10)
ADR-15092026-11-05AcceptedEstablished stance on #1509. Omniglass has no external deployment, no installed base, and no operator data outside dev, CI and the lab. Until the first external deployment, destructive fixes (renaming seeded keys or fixtures, reshaping schema, removing or renaming an API field, deleting a compatibility shim) take priority over back-compat paths, deprecation periods, or data-migration machinery. This rule does not change migration mechanics: applied migrations are never edited, and schema changes are always expressed as new migrations. This section will be removed in the PR that prepares the first external deployment.
ADR-15272026-11-06Acceptedmetric is range partitioned by UTC day (metric_pYYYYMMDD), not by month, amending ADR-1275. The server keeps today and the next three days partitioned and refuses to start ingest until every instant through then is covered; a routing miss is still retried. Retention drops a whole day once it is past the lane’s window and the trend’s compacted mark and holds no sample a longer type window still reaches. One create-copy-swap moved the months’ rows, refusing unless the counts agree.
ADR-15282026-11-07Accepted; amended (#1529): decision 9’s dirtied-day rebuild is replaced by the late merge into the covering block (ADR-1529); amended (#1534): decision 1’s observed-only block gains calculated series, each block carrying its rule lineage in its key (ADR-1534)Each closed UTC day of an observed metric series folds into lossless metric_block rows of int4 millisecond offsets and float8 values in landing order: hour blocks at 4,080 samples in the day or more, one day block at 170 or more, and otherwise a share of its ISO week’s block, which has no minimum. Blocks carry no hourly summaries (metric_trend holds them, ADR-1276), and timestamps are whole milliseconds. History stays retention.metric_days, whose default rises to 30; trends become a per-type setting. This slice writes blocks beside the raw rows; the late merge, the pending table, block reads and the early raw drop follow. Measured at 7.2 to 8.6 bytes a sample from 10 s to 1 h (#1525). TimescaleDB, pg_deltax, fixed hour blocks and month blocks are rejected on measurement (#1516, #1518).
ADR-15292026-11-07AcceptedA late observed sample for a day the block fold has passed merges into its covering block (the hour block of its hour, the day block of its day, else its ISO week’s block once the week has folded) in its own batch’s transaction, each block rewritten once a batch from the block alone, never from the raw rows. The fold and the merge are ordered by a block advisory lock of their own, which only late batches take, not by the trend lock. The block keeps the span it was folded at. The raw row still lands until #1530. A sample older than its series’ window is dropped and logged, the rest of its batch landing. A dirtied trend hour of a folded day recomputes from its block while the day is intact (the merge’s own test, blockIntact) and the merge did not skip one of its samples (raw_only), else from its raw rows. A late batch waits for a fold with no timeout, held by an InProgress heartbeat against the 150 s redelivery bound. #1528’s dirtied-day rebuild is removed.
ADR-15302026-11-08AcceptedEvery reader of a metric series’ samples (the bucketed read at every resolution, the raw read, the series API and the CLI; from #1573 the calc window, the current value, settlement, the rule preview and backtest and the trend recompute, held there by a guard test) reads them through one Storage Gateway read over raw metric rows and unnested metric_block rows. A late sample lands raw and merges into its block, so a folded day holds it twice; the read takes each series-day of each lineage from one source: from its blocks when a block of its lineage covers the day (an hour or day block of the day, or its ISO week’s block) and the day is intact (blockIntact, the merge’s own test), else from its raw rows. Not chosen: stopping the raw insert of a merged sample. Samples come back by ts, then lineage, then landing order, which moves a bucket’s last off the raw row id. Amends #1530’s spec: ListMetricBuckets did not read unchanged, it read raw rows only.
ADR-15342026-11-07AcceptedA calculated metric series folds into metric_block rows as an observed one does, each block carrying the one calc rule lineage (source_rule, source_rule_id, source_rule_version) its samples were written under, null for an observed block. A span splits at every lineage change and the count rule applies to each lineage alone. The block key becomes a UNIQUE NULLS NOT DISTINCT constraint over series, span start, span and the lineage, since a primary key cannot hold the nullable lineage. A late calculated sample merges into the block of its lineage that covers it or starts one. MetricBlockSamples reads a range back from the blocks with each sample’s lineage. Calculated series stay out of metric_trend, for lineage alone. A dense calculated series costs 7.25 bytes a sample in blocks against 167.10 raw; an observed block’s null lineage costs its row 8 bytes, which moves the 5 min figure to 8.70.
ADR-15622026-11-07AcceptedThe health recompute records a location’s verdict as the worst of its direct children’s latest recorded verdicts (its placed systems and its child locations), not the worst over every system in its subtree. A recompute locks its whole location chain in id order first, then rolls it up bottom-up. The verdicts and the recorded transitions are unchanged; a write’s recompute costs its chain’s length, not its subtree’s size.
ADR-15662026-11-15AcceptedA metric bucketed read over more than 48 hours, or past its series’ hot window, is raised to whole hours, at least one, and reports the width applied. At whole hours an observed series takes each hour the trend fold has closed from metric_trend and every other hour from the series read, each hour once; calculated series, mixed instances and finer resolutions read the samples. The buckets equal the series read’s, avg up to summation order. Amends ADR-1269’s coverage floor.
ADR-15672026-11-08AcceptedAmends ADR-1527 point 3: the roll keeps yesterday through three days ahead and refuses unless that span is covered. The test template is rolled when it is built. The too-old drop warning goes out when its batch commits, and the drop’s horizon reads the database clock. Behind across a UTC midnight is a backlog, never the midnight itself, and tests pin the database clock to either side of one.
ADR-15772026-11-08Accepted; the first-pull heartbeat amended by ADR-1882Accepted, narrowed from the proposal: tunes, not a rebuild. The node pulls on its own jittered interval apart from the heartbeat, retries a missed pull with jittered backoff and never exits on one, and keeps its last worklist; the server gzips a reply past 64 KB and answers pulls from a pool of 8 workers held under the database pool, dropping a pull whose node’s deadline has passed. Paging, the set-based reads and the materialized worklist are their own tickets; raising max_payload stays rejected.
ADR-15832026-11-13AcceptedAmends ADR-1577’s deferred normalized wire: a worklist reply carries each endpoint’s fields once with its tasks under it, and the task specs, session blocks and credentials its tasks share once in dictionaries named by index. The server fingerprints each endpoint once. Headquarters at 3,000 systems is 463 KB gzipped with every pin learned, under the 512 KB line, so paging is not built
ADR-15862026-11-14AcceptedAmends ADR-1577’s target (item 5): a node no longer pulls its whole worklist in one reply. It pulls a manifest (the ordered config generation, a set digest, and each endpoint’s id and content digest), is answered unchanged when it holds that set, and otherwise fetches only the endpoints whose digest moved, in batches capped by bytes. The only reply that grows with the node is the manifest, at about 62 B an endpoint, so the bus’s 1 MB limit moves from about 3,000 systems on one site to about 16,800 endpoints on one node. It adds no state on the server, so it does not wait on #1250; a key-value cache, if one comes later, is keyed per endpoint, never per node
ADR-15922026-11-08AcceptedAccepted: the two probe states (icmp-reachable, tcp-open) leave the metric lane for the property lane, written only when they flip and encoded as words (up/down, open/closed); the probe timings stay metrics, every tick. Liveness is untouched because it never read these rows. No node-side guard; the ingest insert’s guard is the one place a repeat is dropped. Landing the property lane in one statement is #1593, camera-preset is #1594.
ADR-16022026-11-09AcceptedAccepted: every non-epic issue form is the five-section ticket contract the dispatcher launches on (Goal, Spec, Acceptance criteria, Out of scope, Files likely touched), each form sets its native Issue Type, and two closed label families join the taxonomy, tier:{jr,mid,sr} and risk:{low,high}, applied from the forms’ dropdowns by a labeler workflow because a GitHub form cannot apply a label from a dropdown. The open tickets filed before the contract are rewritten into it in the same pass.
ADR-16062026-11-15AcceptedA response-settled command’s reply is recorded as an observation of its target only when nothing was observed after the command’s first delivery to a node; otherwise the reply still settles or fails the command (its evidence is valid) and records nothing. Amends ADR-0141’s recording of the reply.
ADR-16192026-11-09AcceptedAccepted: the console’s generated API types and fetch client move off openapi-typescript and openapi-fetch (both in maintenance mode; openapi-typescript runs the TypeScript compiler API and blocks TypeScript 7) onto orval’s fetch client, which emits plain source with no runtime dependency on the compiler. A generated route index keeps the path-keyed api.GET(route, …) client every data layer already calls, so the migration touches imports, not call sites. TypeScript moves to 7. Amends ADR-0041’s generated-client reference.
ADR-16252026-11-09AcceptedAccepted: the first slice of #1094 builds the platform primitive. The boot seed creates one reserved, unplaced platform system; registering a node gives it an omniglass-node component there, named on the node row, which an operator may relabel and never reshape (a typed refusal, 409). A node reports itself in the node-self block of its tick batch, which names no owner and lands on its own platform component under the platform writer class, for its declared keys only; the server writes every claimed node’s checkin-age on a 15 s timer. Platform keys take no prefix (amending ADR-0161 point 6). Only an all-scope read sees the platform rows. The windowed counts are written every window, zero when quiet. Each #1094 slice ships its own PR.
ADR-16262026-11-09AcceptedAccepted: #1626 measures every node’s command queue on its platform component. A command keeps its first delivery and its delivery count beside the last delivery. The server reads the whole fleet’s queues on a 15 s timer through the pull’s own candidate fragment, and counts a command as expired when it ages past the delivery TTL with no execution report, whatever its recorded status, split into undelivered and unexecuted. The wire writes one dispatch and one execution latency sample per command in the stamp’s transaction. Two partial indexes serve the read, and the pull’s deliverable index does not replace the first (#1728). The loss ratios derive from the counts and the samples and take no key. An idle queue’s pending age is written as zero, not left absent as the ticket had it, and the window’s redelivery and expiry counts are written every window, zero when quiet.
ADR-16272026-11-09AcceptedAccepted: each server boot ensures one omniglass-server platform component for its identity (OMNIGLASS_SERVER_NAME, else the hostname), named in a new platform_server table, and lands its request counts and durations, slow-query count and database pool figures there once a report window through a general window recorder in internal/platformmetric. A request’s instance is its method, route template and status class, never its path; a slow query is logged by its statement’s fingerprint, never its arguments. The pool’s wait time is the exhausted-acquire wait, and the recorder’s flush yields platform rows, not sample writes.
ADR-16282026-11-09Accepted, amended by ADR-1659Accepted: the server reports its pipeline on its own platform component each report window through the #1627 recorder. Ingest lag is the server’s clock when a batch’s transaction has committed minus each sample’s ts, read on the server: the window mean over each batch’s newest and oldest sample is ingest-lag, the worst oldest is ingest-lag-max, an untimed sample counts toward throughput and never toward lag, and a negative lag is kept as the evidence of a node clock ahead (#419). Every failure count is paired with its attempts so each loss reads as a ratio where 0 is healthy; the server and a node read the process-* figures through one runtime sampler; the seeded ingest-lag-high rule warns at 30 s held 2 minutes.
ADR-1628.22026-11-10AcceptedAccepted: #1094 designed the bus, the database and the worker pool as platform components of their own beside each server and node. Each server reports those figures on its one omniglass-server component instead (#1627, #1628, #1671), each told apart by its key and instance, because every one is the server process’s own view: its consumer, its pool, its ticks. A component for the NATS or Postgres service itself, read from that service’s own side, is a later decision.
ADR-16292026-11-09AcceptedAccepted: each retention pass lands its figures as platform metrics written by the process: per lane a deleted count and a behind flag keyed on the lane’s own name, a behind flag per compaction, the pass’s duration, failures and partition roll, the mark lags, and a status read of the partitions and table sizes. A lane whose prune failed is also flagged behind. The seeded retention-behind rule opens a warning after 5 minutes. The component is a bus.Config field production leaves empty until #1627 gives the server one; #1671 wires it.
ADR-16302026-11-10AcceptedA command with no value to settle (fire-and-forget, reboot) is issued issued like every other command rather than settled at its issue. Its node’s execution report decides it in the report’s transaction (settled when the node carried it out, failed with the masked error when the execution failed, both by reply); a binding that cannot render fails it at once; and with no report inside the ten minute delivery window the sweep times it out by window, with a reason naming where it stopped. A terminal command is never delivered, and both sides of a failed command pull log at Warn. Amends ADR-1155 point 5
ADR-16322026-11-09AcceptedAccepted: lab measure gains a sampling mode (—every, —samples, —append) that measures one window per interval against a running lab and writes one ScaleSample line each, at the one-shot report’s JSON paths, and a system page load (—page-clients) that issues every read a cold open of the console’s system page makes. The read list is whatever the page makes today, held equal to it by a generated fixture and a vitest, which drops the alarms read and adds the catalog reads the issue’s line references predated.
ADR-16342026-11-09AcceptedA node’s polls and probes leave the heartbeat tick for a dispatcher with its own timer (#1634): each task is due on a stable phase of its own interval (fnv of its id over a Unix-aligned grid), runs at once when new or when its fingerprint moves, and is handed to its endpoint’s lane on a bounded worker pool (--poll-workers, default 16), operator work first. A due whose run is still in flight is skipped and counted, never queued; a late pass runs a task once. The retry backoff starts at one second, not the heartbeat; a poll with no schedule runs at the heartbeat interval; --probe-every defaults to 30s and no longer means every check-in. Amends ADR-0152 and ADR-1273
ADR-16362026-11-10AcceptedAccepted: a worklist reconciles held sessions the moment it lands, with a reconcile on its own heartbeat-interval timer as the safety net; every session-layer goroutine runs under a recover that turns a panic into that session’s ordinary failure; a session’s first dial and handshake share node-wide slots (—session-dials, default 16), a redial takes none; unclaimed lines and push counts flush on a housekeeping timer at the shorter of the report window and the heartbeat. All of it stays on the one run-loop goroutine (ADR-1637), so #1634’s lock is not needed for the push count. Publishing the recovered-panic count as a node metric is #1700.
ADR-16372026-11-09AcceptedThe node’s single heartbeat tick is replaced by per-kind queues, each on its own timer with a bounded pool (heartbeat, worklist pull, polls and probes, commands, held sessions, housekeeping); discrete requests to one endpoint serialize in that endpoint’s lane, operator work ahead of scheduled work; one endpoint gate holding a set of reasons (refused, unreachable, disrupted, upstream) is the readiness check every lane consults at dispatch; a task runs on its own interval at a stable phase and a run still in flight at its next due is skipped and counted, never burst; a telemetry batch is the spool’s flush window, not a tick. Decided before any of it is built (#1624)
ADR-16382026-11-09AcceptedAccepted before any of it is built (#1624). A site with several nodes spreads its unpinned components across them. The unit is the component, all its node-run endpoints on one node; a server-hosted push endpoint stays outside it. The pool is the nodes at the component’s location or its nearest ancestor with any, later a cascaded node-pool property (#1351). Every node in a pool must reach every device in it, and shared-port pushes (syslog, traps) land on any node in the pool, claimed by source address; a VIP across the pool is the operator’s. An endpoint’s node_name is a pin that wins. A server reconcile balances on expected cost (runs a second, the sum of 1 / interval, with a listen task at a flagged weight), sticky, with soft affinity over dependency edges and a hysteresis threshold. A node is saturated, and takes nothing new, when its schedule loss ratio or a pool’s busy fraction from its latest report window is over a ceiling. A lost node’s components move after the silent window plus a grace; a join fills gradually; a move between live nodes is two-phase and completes only on the old node’s confirmation, so no device sees two sessions from live nodes. The worklist wire gains only a pull header naming the generation the node runs. Slices #1686 to #1690; the measured two-node baseline is #1690.
ADR-16392026-11-09AcceptedAccepted: every simulated endpoint counts what reached it and how it answered, and every node counts what it sent, in matched units that never reset on read; the scale lab pulls both at a window’s start and end, each pull a bracket of three (the simulator, the node, the simulator again), and reconciles them with the telemetry receipts hop by hop into named gaps, each a lower bound with its masking term beside it. Rejected: the hit stream and node-self metric rows as the source, and a latency sketch that cannot be summed across nodes.
ADR-16402026-11-10AcceptedAmends ADR-0094: make perf-check SIZE=ci|laptop (omniglass lab perf check) measures N throwaway scale labs of a named size (corporate at 300 for ci, 1000 for laptop; 2 min warm-up, a 5 min window that is a whole multiple of every poll interval) and fails when a figure regressed past the size’s committed, generated baseline. Exact figures (closed-loop gaps, ingest lag not measured, redeliveries, delivery loss per hop and kind) must be 0; host-independent counts gate on any host; host-dependent times and usage gate only on the baseline’s host fingerprint and read reported elsewhere. A gated figure is the median of the runs and fails only past its tolerance and past the baseline’s and the runs’ combined spread; runs spread past the tolerance read noisy. CI runs it opt in on the run:perf label, never as a required check; micro-benchmarks stay diagnostic
ADR-16412026-11-09AcceptedDelivery is measured as one loss ratio per telemetry kind per hop, (in - out) / in, 0 healthy (#1641). A node’s spool stamps each batch with a ledger (boot, dense seq, minted, resolved, per-kind count and running offset, field 16 of TelemetryBatch); the landing transaction writes the ledger and the committed pass’s per-kind outcome on the batch’s receipt. Refusals are loss, an unbound identity is accounted for (amended by ADR-1659), deduplicated items sit beside the ratio, a gap in a boot’s seq belongs to its lower neighbor’s window and reads as missing from the offsets, and a boot whose gaps could still fill reads unsettled with no ratio.
ADR-16442026-11-09AcceptedAccepted: #1644 ships Platform health as a hand-written page over a composed read, GET /views/platform, not a ViewResult dashboard. Its door is node:read, because its rows are the node list, and a scoped node read is a 403, not an empty table. Figures, verdicts and the server’s identity need a fleet-wide component read and are omitted short of it. The server’s start time is an RFC 3339 string, since there is no timestamp property type, and the view leaves the platform system out rather than writing it null. The Home tile carries the same gate. A count reported only when nonzero is shown only while its window is the newest.
ADR-16452026-11-10AcceptedAccepted: #1645 renders each server’s Requests, Ingest, Queues and Retention panels from storage.PlatformServerGroups. Both request keys are ranked, the busiest routes beside the slowest. A panel is flagged by an open alarm whose rule samples one of its keys, matched on the rule’s sample_key. A server figure written only for a window that saw something ages out past two report windows. A ranked key with no window reads as one not-reported row. A key’s tooltip leads in-app onto its series. Walkthroughs gained hover and an off-camera ready wait, and docs shots gained a wait step.
ADR-16462026-11-10AcceptedAccepted: Platform health draws the pipeline as the hops a declared table in storage names (node, then ingest), each read from the three delivery keys on the platform components of its class, its loss (in - out) / in over the summed counts and the end to end 1 - prod(1 - loss). A node’s Loss is a composed view field over the hops its own component records, not a key group. The schedule hop (#1693) and the node’s causes (#1692) are not drawn until their figures are written. The walkthrough lab’s seed sets the report window to 10s.
ADR-16472026-11-10AcceptedAccepted: with a simulator connected, the server brackets each node on a timer and reads the closed loop over a ring of its last ten brackets, a sliding window held in memory per process, so a loss reads while it is current and clears once the window passes it. Rejected: a since-start total, which carries every old loss into every read after it, and storing the window as platform metrics. The reconcile moved into a pure internal/closedloop package the lab and the server both use. Divergences: the window is ten brackets, the bracket is configurable from 1s to 1m, a missing simulation:read is a 403 and a scoped component read a 404, every gap is windowed, the server assumes the nodes’ cadence from its own settings, the connect gap pools every listener, received above 0 became reached, and impairment attribution is node-wide.
ADR-16482026-11-09AcceptedAccepted: a component declares what it depends on apart from where it sits, as power (fed from an outlet), host (hosted by) or path (reached through) edges in one component_dependency table. One pure resolver turns a disruptive delivery’s target and those edges into its hold set: a reboot holds the target’s in-band endpoints and what it hosts; a power command (its type names a power_outlet_param) holds every endpoint of what the outlet feeds and what those host, never the PDU’s own. Out-of-band endpoints ride through a reboot. Containment holds nothing; path is recorded and left to the upstream gate reason.
ADR-16502026-11-09AcceptedAccepted: ADR-0158’s one refusal per endpoint becomes a set of reasons, each kind with its own rank, scope and release rule; refused is one kind and unreachable, from two consecutive down probe verdicts, is the second. Polls under unreachable are held, counted as poll-held-count, never as failures or loss, with no backoff. Disrupted, upstream and cross-node reasons build on the set (#1651, #1652, #1655).
ADR-16512026-11-09AcceptedAccepted: the nodes page’s post-command wait (a lane that blocks until the host reads up, behind a fixed timeout) becomes a disrupted reason on the endpoint gate, added at delivery to every endpoint of the component on the delivering node. Nothing runs during the type’s quiet_seconds; after quiet each endpoint reopens on its own first up verdict begun after quiet; a counted hold_seconds backstop, kept apart from settle_window_seconds, reopens the rest. Reboot ships disruptive, quiet 15 s, hold 300 s.
ADR-16522026-11-10AcceptedAccepted: a path dependency edge is followed live on the node. While any endpoint of a component’s path upstream has a closed gate, for any reason, the dependent’s in-band endpoints hold an upstream reason naming the root of the closure: polls held and counted, probes not run, commands answered at once. Once the upstream opens the reason waits for the dependent’s own probe to read up. One pure function derives it, transitive and cycle-guarded, each time any reason set moves.
ADR-16592026-11-10AcceptedAccepted: the node and the server each write their own hop’s delivery as three platform keys, delivery-in-count, delivery-out-count and delivery-loss-ratio, the item kind as the instance, every report window, 0 when quiet, the ratio written as 0 when nothing came in. They replace spool-drop-count, publish-failure-count and bus-telemetry-drop-count. An item counts when it settles; a deduplicated item and a held redelivery count in and out, so a replay reads 0; a Termed batch’s items count in and not out, an undecodable batch, naming no items, counts nothing on the server hop; and an unbound identity is accounted for, not loss, at every hop and in the ledger read (amending ADR-1641).
ADR-16712026-11-09AcceptedAccepted: the boot ensures the server’s platform component before the bus starts and hands its id to the retention pass, so the boot’s own pass reports. A failed ensure, fatal under #1627, is now a WARN: the server serves and prunes with an empty id, and the retention pass and the self reporter write nothing, the reporter still re-reading the slow-query setting each window.
ADR-16862026-11-13Acceptedworker-busy-fraction lands under the single instance lane, the busy share of the one pool every kind of discrete work runs on today, rather than one instance per task kind as #1686 specified; it is busy worker time over the worker time the pool had, so a report window that spans a resized pool still reads 0 to 1. Per-kind instances arrive with per-kind pools
ADR-16912026-11-10AcceptedAccepted: a batch the consumer Terms whole records a Term receipt, its ledger with every declared item under the cause (refused-owner, refused-task, refused-batch, refused-metadata, abandoned), each loss. The receipt is marked termed: a later copy of the batch that lands replaces it, a Term never overwrites a receipt, and the closed loop’s receipt count skips it. An undecodable batch records nothing and stays missing, since its ledger cannot be read.
ADR-16922026-11-10AcceptedAccepted: a node’s own losses ride the DeliveryLedger of the batches it mints after them, as runs of dropped seqs with their cause and items (field 6, carried until a batch is acked) and running totals of items lost before any batch carried them (field 7). The receipt keeps them in a node_loss column. The read owns a dropped run with the gap it sits in, so a hole the node accounts for is its loss under its cause and the rest is ingest missing, and the node’s out is exactly the ingest’s in. A killed boot’s unshipped tail is named beside the table, not counted, until #1733.
ADR-16942026-11-10AcceptedAccepted: lab measure reads the delivery table’s sim hop from the closed loop’s marks, one row per protocol the nodes tally, counted in requests rather than per kind in items. In is every request the simulators settled on tallied traffic, out the replies that reached the node; a refusal or error that came back is returned, and the loss splits into withheld, dropped and not-returned. End to end composes one loss pooled over every protocol into each kind. Rendering the batch-count gaps published-not-landed and spool-dropped as ratios is deferred to #1738.
ADR-16962026-11-10AcceptedAccepted: the bus server stamps every batch it publishes on the push subject (the push route’s and the webhook listener’s) with the ADR-1641 ledger, one boot per server process, a dense seq, and resolved the seq below, publishing one batch at a time. A publish the stream refuses takes its items back off the offsets and keeps its seq spent. The push lane’s receipts carry no node, so the delivery read reconciles each lane apart and prints a lane column; the end-to-end line composes the node lane alone, and the missing footer names each lane’s own meaning.
ADR-16982026-11-10AcceptedAccepted: the induced refusal is a seed step, not a simulator profile flag. The scale seed registers a key, writes a copy of one device’s driver that emits it, attaches the copy, and unregisters the key; the baked task keeps the name, so ingest refuses it refused-unregistered. Off unless lab run —induce-unregistered asks.
ADR-16992026-11-12AcceptedThe receipt’s ledger and outcome are stored as integer arrays, not jsonb objects, which cuts its width by about a third. The receipts-a-day target for corporate at 1,000 systems moves from 0.5 GiB to 1.2 GiB (about 800 B a batch at 18 batches a second), because the 0.5 GiB figure predates the per-batch accounting and no receipt that carries it fits under it
ADR-17072026-11-11AcceptedAccepted: the node-down alarm the nodes and workers pages designed as a sweep of its own, raised directly with no event rule because a dead node emits no sample, is the seeded official node-silent rule over the checkin-age the server writes for every claimed node every 15 s: past 90 s it opens a high alarm on the node’s platform component, and the next heartbeat clears it. No OMNIGLASS_NODE_DOWN_AFTER; the threshold is the rule’s.
ADR-17082026-11-11AcceptedWhat the platform tells about its own work (first, the server’s housekeeping: rows pruned, hours closed into trends, days folded into blocks, partitions rolled and created, a failed pass) lands as log_line rows on the telling process’s platform component, source omniglass-server, facility retention, never as events. The separate internal_log table #1094 planned is dropped
ADR-17192026-11-10AcceptedAccepted: every lab level that measures runs the corporate scenario at a size on one ladder (20 for the smoke run, then 300, 1,000 and 3,000 systems), and a figure compares only with the same scenario at the same size. The dev fleet is the showcase, never a measurement basis. A lab stamps its scenario and size on its containers, every measure reads them from there, and the lab footprint sums a corporate lab’s per-site nodes into its one node row.
ADR-17432026-11-10AcceptedA pusher is an emulator device of a profile with a push face (a cadence and a body template rendered per system), not code in the simulator’s run mode. A scenario declares its pushers as it declares its devices (corporate: one booking service a site over four systems; the dev fleet: one booking service on the HQ boardroom), and both lab kinds provision them through one path: the seed grants each a telemetry:push principal scoped to its systems, the lab mints its token per run and sets it, and the simulator beside the pusher’s node runs it holding that token. Supersedes the simnode booking-service goroutine and its single OMNIGLASS_SIM_PUSH_TOKEN of ADR-1370’s third point
ADR-17462026-11-11AcceptedAccepted: the push lane’s publisher reports every turn it grants or refuses, and the server writes the window’s publishes, refusals and turn wait (p99 and max) on its platform component. The delivery read gives the push lane a publish row ahead of its ingest rows, counted in pushes (in every push that waited, out turn-taken, loss refused-turn), read from those metrics because a refused push mints nothing a receipt could carry. It is never composed with a kind’s items.
ADR-1746.22026-11-11AcceptedAccepted: measured on the corporate scenario with a booking service and a meeting-platform webhook account pushing at every site, the server-wide publish turn refused no push at 1,000 or 3,000 systems, its per-minute p99 wait stayed at or under 0.0125 ms and its worst wait was 2.18 ms, against the 5 second bound. The single publisher stays; the per-principal publisher is not built until a measurement shows the turn near its bound.
ADR-17472026-11-10AcceptedA scenario declares a webhook sender (a profile with a webhook face) in the same pushers list as a token pusher, and the seed makes it a component with an endpoint of the driver its profile names, a signing secret minted for that seed alone, and one identity binding per system of its site. The simulator reads the key and the bound rooms back through the node’s device list, so the lab mints nothing for it. Diverges from ADR-1743’s third point for senders only: a sender holds no bearer token and is no service principal
ADR-17672026-11-11AcceptedThe Nodes sidebar entry moves from the top level into the Admin group, beside Status (Platform health), reversing the UI page’s rule that a node keeps its own entry rather than sitting in Admin. Setting up a node is an admin’s job; the gate stays node:read plus ABAC scope
ADR-17802026-11-11AcceptedAmends ADR-1640: the perf gate’s sizes are named by the systems they measure, 300 and 1000, not by the host each was meant to run on (ci, laptop), and a baseline file is <scenario>-<systems>.json. Where a rung runs is a host fact the baseline’s fingerprint already records; the 1000 rung moves from the architect’s laptop to the Proxmox worker
ADR-17872026-11-12AcceptedAmends ADR-1640’s CI half: the perf workflow and the run:perf label are removed, and every rung’s baseline, 300 included, is generated on a test VM of 8 cores and 16 GiB. The gate is run by hand on that host class, where every figure gates, and is still never a required check
ADR-18302026-11-16AcceptedA view binding (a primitive, an entity selector, keys, a range, an optional step) is the one scoped read of the sample store a dashboard widget, an agent or the CLI makes. POST /views:run answers its history and the tail cursor the snapshot was taken at; GET /views:watch follows the in-process ingest tail from that cursor, every binding of a page over one SSE stream. view:read is the door, the binding’s :read and its scope the fence. Diverges from the ViewResult design: a binding answers typed series and rows, not {columns, rows}.
ADR-18692026-11-13Accepted--lane-workers defaults to auto rather than 16 (#1869): the node reads its cgroup’s cpu.max and memory.max, the tightest up the tree, each held to the host’s CPUs and memory, and takes the tighter of half the CPUs times a run’s whole time over its CPU time (about 23 lanes a CPU at 4.4 ms of CPU and 200 ms of wait) and a quarter of the memory at 1 MiB a lane, clamped to 4 to 256. A number still sets the pool outright. The node logs the count and its source at boot and reports it as lane-worker-count. The lab caps each node at one CPU and twice its modeled memory (#1892), so a scale run’s lane count is one figure on any host. Amends ADR-1249
ADR-18702026-11-13AcceptedEach driver poll runs locked to its OS thread and lands the CPU the kernel charged that thread as poll-cpu-time, a per-endpoint mean per report window. The lab cross-checks it against the node process’s cgroup CPU slope (#1871), not against a labelled pprof profile as the issue specified: the node serves no profile
ADR-18712026-11-13AcceptedThe lab measures each shipped driver’s memory and CPU per task as slopes across none, N, 2N and 3N tasks (N growing fourfold, to a cap, for a driver whose memory does not show) on a node whose simulator runs in a container of its own (memory over the loaded steps, with the jump from idle kept as a warm cost), refuses a figure whose steps are not near a line, and commits the table for make gen to render, each driver and the drivers rolled up by kind and poll interval; make gen never runs the sweep, and a driver the table lacks reads as not yet measured
ADR-18822026-11-16AcceptedAmends ADR-1577’s first-pull rule. A node heartbeats and sends its node-self account on every heartbeat tick from start, while its first worklist pull is still retrying, and every first pull, served or refused, counts toward worklist-pull-loss-ratio. A node refused from the start reads up with a pull loss of 1, not down
ADR-18952026-11-15AcceptedEach simulator observation carries its fleet generation (zero before the first sync, advanced by each sync that starts or stops a device) and whether such a sync is running. The closed-loop reconcile reads a window whose sim reads hold a zero generation, a changing fleet, or two generations as restarted, the state a counter reset already reads, rather than as loss or a state of its own
ADR-18962026-11-14AcceptedThe telemetry stream files each node’s batches under a partition of its name (FNV-1a modulo K, the stream’s own subject transform), and each partition has a durable of its own with one batch in flight, so the lanes land side by side while a node’s batches still land in the order it sent them. K is OMNIGLASS_INGEST_PARTITIONS, 4 by default, 1 to 64 and held under the database pool less one. The order ADR-0311 point 3 holds is per node, not across the fleet. The lab’s drain reads every live node’s newest sample rather than the newest sample anywhere
ADR-19282026-11-14AcceptedThe batch’s transaction carries the event rules it read, the owners it marked for a calc rule and the property series it locked, so no lane reads, probes or locks them a second time; the endpoints a batch carried are stamped seen inside its transaction rather than in a second commit after it (amends ADR-0311 point 2); the ingest consumer reads the catalogs’ fingerprint at most once every five seconds rather than per batch, and at once for a sample name its registry lacks (amends ADR-1279, whose catalog change was honored by the next batch); a calc mark that is already pending writes no tuple. A node batch drops from 19 to 13 statements
ADR-19292026-11-14AcceptedThe event rule reconcile reads only the days past its mark through summarized block range indexes, not through partition pruning: each day’s own id and ts index summarizes a range once it fills, and each retention pass, after its drop, summarizes every finished day’s last range. The marks stay the newest committed id, not the sequence’s high water, and no time bound is added, so a sample in flight or stamped late is still judged
ADR-19452026-11-15AcceptedA write that changes a node’s worklist issues a Postgres NOTIFY naming the node inside its own transaction; one listening connection on the server forwards each name as an empty message on og.v1.worklist-changed., and the node pulls at once, at most once every 200 ms. The notification is not durable and not replayed: the scheduled pull stays the backstop. Diverges from #1945’s spec, which named the outbox.
ADR-19572026-11-15AcceptedThe metric lane’s chunked prune works only inside a day a longer type’s sample holds; a day no such sample holds is left whole for the drop, which takes it once the day is wholly past the window. A sample with no window of its own is kept at least metric_days and leaves with its day, up to a day later. Typed prunes are unchanged. Amends ADR-1527 point 4 and ADR-1275 point 6’s exact window.
ADR-19852026-11-16AcceptedAn event rule on a metric may name a sample_window (up to a week); its criteria then bind the series’ points over it as window, oldest first and averaged into at most 360 buckets, and the generic list functions slope, span and growth fold it; age (the series’ run, a process key’s from its uptime) gates a fill or a restart’s refill, and a seeded rule may ship disabled, as db-size-growing does. The store reads both, so the evaluator stays pure. Preview refuses them, and the reconcile scan rejudges their series after the drifted ones, capped. Settles the trend half of ADR-0050’s design window.
ADR-19862026-11-15AcceptedAccepted: a stalled rule sweep is a platform gauge, rule-sweep-age, and a seeded high rule over 30 s. The sweep stamps the shared database on the database’s clock; a 10 s peer timer writes each peer’s age on its component, and a server’s own age comes from an in-memory clock. A peer is judged only while it marks itself seen, so a crashed server drops out rather than holding an alarm open; a clean stop releases both stamps. The optional heartbeat is a heartbeat notification built, signed, sent and audited through the existing target machinery, named by the heartbeat.target setting, audited on a change of outcome only.
ADR-19872026-11-18AcceptedA notification target of kind role reaches every person holding the role, directly or through a user group’s grant, read from the grant table at each transition and scope-filtered per person. The boot seed ships two inbox-only role targets (platform-admins, platform-owners, since owner does not inherit admin) and a platform-alarms-to-admins rule (when: platform, a new action-site binding read before any rule). All three are official: what the seed ships is refused to an edit or a delete, while enabled, a target’s label and operator-added targets are the operator’s. Email and the health page’s relay line wait on #2016.
ADR-20082026-11-16AcceptedAmends ADR-1896’s drain rule. A live node whose latest worklist-task-count is 0 runs no task and so lands no collected sample, and the lab’s drain no longer waits for one from it; the measure goes on to read its worklist pull loss and fails worklist_loss naming it. A node that never reported a count is still waited for
ADR-20252026-11-16AcceptedExtends ADR-1162. An operation that takes or returns a credential in plaintext is stamped x-omniglass-plaintext and can never be an MCP tool, nor can any operation gated on a reveal; the generator refuses it and a spec test finds an unstamped one. The fleet-wide alarm read an agent triages from is a new scoped GET /alarms route, not the fleet view
ADR-20262026-11-16AcceptedA skill is one internal/mcp/skills//SKILL.md in the Agent Skills format, embedded in the binary, validated strictly at load and served as an MCP prompt; omniglass mcp skill prints it for agents that read skill files, and cmd/mcpgen renders its docs page. A skill names its tools in its body as tool references; its tools and permissions are read from the catalog, never declared, and a test fails a reference the catalog lacks. A prompt get returns the workflow with the given arguments appended, not substituted into it.
ADR-20292026-11-16AcceptedEvery product word an operator or an admin reads is one row of internal/vocab/terms.yaml (word, plural, definition, API collection, schema, permission noun, nav entry, verdict, retired words). make gen renders the docs glossary from it, and a post-pass at the end of route registration sets each mapped OpenAPI component schema’s description to its term’s definition. Retired words move from the docslint hand list into the table, and guards fail an unmapped collection, nav entry or verdict
ADR-20302026-11-16AcceptedOne noun for the physical grouping on every surface: location. Place retires as a noun from the console, the docs and the API’s template bodies; placed and placement stay, because they name the relation, not the thing
ADR-20312026-11-16AcceptedThe edge process that polls, listens, carries commands and holds sessions near the gear is an outpost on every surface. Node retires as its name; edge and central stay as placement values, not part of the noun. An outpost is a run mode of the one binary, used only to reach into a private network; the server does the same work centrally and scales by replicas
ADR-20322026-11-16AcceptedRole keeps its IAM sense alone. The place in a system a component fills is a system slot on every surface; system role retires and the role disambiguation row goes with it
ADR-20332026-11-16AcceptedTemplate keeps one meaning, the catalog entry the binary ships and an operator clones once; standard keeps its meaning, the operator’s live contract a system is built to; the Go text/template string a label or notification renders from is a rule, never a template
ADR-20342026-11-16AcceptedType keeps one meaning across every *_type registry, the row that says what kind of thing an instance is, so no identifier changes; genus retires from operator surfaces; system type survives beside standard as kind against build, and names what a system is for, never the space it sits in
ADR-20352026-11-16AcceptedCatalog names the database rows the fleet is typed by, at both levels (the catalog, the metric catalog) and on every surface; registry survives only for lookups compiled into the binary. Three catalog labels change to name the thing listed: Event rules, Severity levels, Notification targets
ADR-20362026-11-16AcceptedPrincipal retires for user on every surface, the table included (users, since user is reserved in Postgres). A user’s kind is person or machine; an outpost is a machine user its outpost row points at. A set of users is a user group, so IAM no longer owns the bare word group
ADR-20372026-11-16AcceptedWhat an operator wants a device to be is a declared value, the word the schema already uses, paired with observed; config stops naming it. Override means only an operator’s sparse edit to a shipped catalog row: a value set at one cascade level is a binding (setting_override becomes setting_binding) and a deeper binding shadows a shallower one. Variable, secret, setting, tag, property and default keep their meanings
ADR-20382026-11-16AcceptedThe trouble chain is event, firing, alarm, notification: a rule fires on a component and endpoint, a firing with a severity raises an alarm, and an alarm transition sends a notification. Condition retires (event_rule_condition becomes event_rule_firing); incident is left to the ITSM record an action opens, and a system’s Activity section becomes Health history; alert never names an alarm
ADR-20472026-11-16AcceptedAmends ADR-1179. Handing a secret to a target is its own action, secret:bind, separate from secret:read (seeing it exists) and secret:reveal (its plaintext). Every write that binds a secret takes it. The agent ceiling strips only the actions whose output is a credential in plaintext (reveal, enroll), so an agent may bind what its person may bind; approval of an agent’s tool calls is the MCP client’s (always, ask, never), not a server-side hold, and every write is audited as the agent’s
ADR-20482026-11-16AcceptedOmniglass is its own OAuth 2.1 authorization server for MCP clients: discovery from the /mcp challenge (RFC 9728, RFC 8414), open dynamic client registration for public clients (RFC 7591), the code grant with S256 PKCE and the resource indicator, consent on a console page, and an exchange that mints an opaque agent token linked to the client. Refresh tokens followed in ADR-2073; client metadata documents are deferred
ADR-20632026-11-17AcceptedEvery operation has one agent class (read, write, destructive, credential destination). An admin sets always, ask or never per class in the agent settings namespace; the server refuses a never class to any agent request and audits it as the agent’s, and the MCP tool list carries each tool’s class and policy in its _meta for the client to ask on
ADR-20732026-11-16AcceptedAn OAuth-connected MCP client’s access token lives an hour and a refresh token renews it for a sliding 30 days. Each refresh rotates the same credential row in place and spends the refresh token; a spent token presented again ends the grant. A refusal for another client, an expired token or a disabled person spends nothing
ADR-20742026-11-16AcceptedAn MCP client may use an https URL serving its metadata as its client_id instead of registering. The server fetches it through the egress contract, 5 KB at most, requires the document to name its own URL, keeps it ten minutes, and refuses a client whose refetch fails. The consent page names the host serving the document
ADR-20862026-11-17AcceptedA system’s, location’s or component’s result is its health (a system’s health is degraded), not its verdict: the verdict and verdicts fields, component_verdict, the System and Reach verdict bodies, list-system-verdicts, the Go and console identifiers and the docs prose follow. Reach’s per-endpoint up/down result takes its own word, reachability, and a command’s settlement verdict is its settlement. Verdict stays only where it is a judgment of a test (the soak and perf gates, a subscription or target test). The vocabulary table’s verdict key becomes health
ADR-20872026-11-18Accepted, amended by ADR-2087.2The architecture pages freeze as dated history, beside the ADRs and the build log, and the vocabulary denylist exempts them. The overview and guide pages, rewritten one per slice in the vocabulary table’s words, become the architecture of record: they carry the Design, Partial and Built badges, the badge-fence lint and the /ship-slice status gate read them, and CLAUDE.md and docs-with-everything point at them. Generated reference pages keep following the code
ADR-2087.22026-11-18AcceptedNo in-site archive. The docs site is rebuilt from the ground up in audience sections (epic #2153), and git is the history of the pages it replaces. The old pages lose their status badges now and stay, unbannered, as the reference for their capability until the PR that rebuilds their section deletes them. The decision log, the build log, the generated reference and the screenshot and demo tooling survive the rebuild
ADR-20882026-11-17AcceptedThe agent settings namespace gains roles (a class per role name) and tools (a policy per operation ID). The resolved policy for a request is the strictest of the platform class, every role the person is granted and the tool, a tie naming the earlier layer, and every answer and refusal names the layer that set it
ADR-21092026-11-18Acceptedomnibot’s model is an OpenAI-compatible provider the assistant settings name, its key a $platform secret the server unseals in process for each run and sends only to the model. The relay route first specified is dropped: the server already runs the loop, and the CLI moves onto that run, so no client ever needs the key
ADR-21132026-11-17AcceptedStored omnibot conversations are read and written by their owner only, fenced by an owner predicate on every query rather than by a scope set, so no grant (the platform owner’s included) reaches another person’s. The one exception is impersonation, the support path that sees what its target sees. Appends name the last message seen, and a conversation is pruned by when it last moved
ADR-2113.22026-11-17AcceptedA run that paused on an ask keeps the call it waits on as a marker in its stored transcript. Nothing on the server runs, approves, expires or notifies on that marker; the owner continues the conversation in their own client, which rebuilds the proposal from the open call and the live tools and decides it as an inline ask is decided
ADR-21212026-11-17AcceptedPOST /assistant/conversations/{name}:run runs omnibot on the server over the person’s stored conversation and streams the run as AG-UI events. The run holds an omnibot token of its own, revoked when it ends, and calls its tools in process through the API router; an ask ends the run on an interrupt the next run’s resume answers. Only the person, as themselves, runs it
ADR-21222026-11-18Accepted; superseded in part by ADR-2162What a person hands omnibot from the console is references and the page as a query, never what the console rendered. A row says what it is by a subject stamp (data-subject-kind and data-subject-ref) that the shared list, tree, blade and alarm primitives set, read by one console-wide alt-click handler, rather than by the ViewResult renderer, which is still Design. A run takes the gathered subjects as AG-UI context and, for one-click triage, an embedded skill by name the server renders
ADR-21392026-11-18Superseded in part by ADR-2652A release is cut from a release/. branch made from main, as numbered candidates (v0.1.0-rc.1, rc.2) and then a final tag on the newest candidate’s commit once it has soaked. The version comes from the branch name and the tags already cut, not from commit subjects, and fixes reach the branch by cherry-pick
ADR-21622026-11-18AcceptedEvery omnibot prompt carries the page the person is on as one context entry, read at send time and shown as a chip the person can leave out of one prompt. The alt-click stamps, the gathered tray and the hand-over key of ADR-2122 are retired; context stays references only
ADR-21752026-11-18AcceptedClaude Code agents build, review and fix Omniglass work as GitHub Actions jobs on GitHub-hosted runners. They replace the homelab harness dispatcher as the only builder. The architect approves a ticket with the run:dev-gha label, only the maintainers team’s label starts a build, and only the maintainers’ and contributors’ words reach a model. A build waits for its blockers, the reviewer’s check is its verdict, and a PR the reviewer and fixer cannot settle in five rounds parks for the architect. Rulesets are unchanged, and no agent can merge
ADR-22232026-11-19AcceptedAn OMNIGLASS_SETTING____ variable feeds one setting at boot, parsed through the single-source Settings struct and fed to the resolver between the file level and the platform binding. The console (platform) still wins, since an admin’s edit is the most specific thing a process sees. Profile-domain namespaces are refused with the variable named.
ADR-2223.22026-11-20AcceptedOMNIGLASS_SECRET__ declares a $platform secret held in memory only, checked against its type at boot and resolved by every secret consumer behind the same secret:bind gate. It lists with source env and no fields, and the API refuses to write it (409, naming the variable). The binary loads .env then .env.local under the shell, and the lab’s —omnibot-key-env becomes an alias for an env secret.
ADR-23342026-11-23AcceptedA name that more than one visible row answers to is a 409 Conflict on every collection (#2334), reversing the 404 ADR-1134 chose: the body lists each match with its id and carries a path.name error detail the CLI keys on to say the name matches N rows and to use the id. A name that matches nothing is still a 404
ADR-23612026-11-23AcceptedA person signs in through one OIDC identity provider (authorization code with PKCE) by an oidc credential whose identifier is iss|sub, linked by an admin or by the person; SAML 2.0 follows on the same model. Email never links an account. IdP groups sync IdP-sourced memberships at each sign-in and may not reach an owner grant. Removal at the provider is not instant: a 15-minute re-check refreshes each link and revokes its sessions and API tokens once the provider refuses, which leaves a window and depends on the provider; immediate revocation needs SCIM, deferred. One provider per install, shaped so a second is additive. Owners keep password sign-in as break-glass; an enforce mode refuses it for everyone else. Reverses ADR-0004’s OIDC deferral
ADR-23622026-11-23AcceptedAn OIDC sign-in stores only the hash of its state and the hash of its browser binding (the value in the short-lived og-oidc cookie). The PKCE verifier and the nonce are HMACs of the binding, recomputed at the callback from the cookie, so neither is stored at all. Refines ADR-2361 point 3’s ‘stored hashed as oauth_code is’.
ADR-23632026-11-23AcceptedRefines ADR-2361 point 4 where it is silent. One membership row per group and user, so an admin adding a member the provider brought turns that row local (it stops following the provider). Deleting a group’s last mapping from an issuer removes that issuer’s idp memberships of the group at once; deleting one of several waits for the next sync. The owner guard counts an owner grant at any scope. A refresh’s id_token syncs only when it verifies, names the link’s own subject, and carries the claim.
ADR-23682026-11-23AcceptedLocations, systems and components each take an AIP-233 batch create (POST /locations:batchCreate, /systems:batchCreate, /components:batchCreate): a list of the single create’s own bodies, run in order in one transaction, each row the ordinary create in the caller’s scope. validate_only rolls it back; a write stamps one batch id into every audit row as from_batch; a refused row refuses the batch and is named requests[i]; a batch over 1000 rows is a 413. Each route is gated as its single create is.
ADR-24232026-11-23AcceptedA component, system or location opened in a blade renders the same body its detail page renders (ComponentDetail, SystemDetail, LocationDetail, each taking { id, host }), reflowed by container query in a wide (about 720 px) blade. The host holds only the tab (the page’s ?tab=, the blade’s own signal), the edit intent and where a Delete leaves to. Reverses ADR-0139’s “the side panel is the glance”
ADR-24432026-11-23AcceptedA server’s omnibot recording can name its prompts. It then plays a run only for a message that holds one, refuses any other with a typed 422 before touching the conversation, and the conversations list reports live, replay or none with the recorded prompts, so the console says it is a recorded demo and offers them
ADR-24462026-11-23AcceptedThe sidebar door, the top bar and the page heading all say Platform health, the second exception to the one-word-tab rule (after User groups); the page folds every section to a one-line reading and holds what is open in the URL
ADR-24592026-11-23AcceptedA system’s page and drawer show every open alarm on every member, slotted or not, and name the members outside every slot with the way to place them; the system health read carries the members and a reason line naming the slots behind the verdict. Health still rolls up through slots alone: an alarm on a member outside a slot moves nothing above its component, because the slot and its impact are the system-level health rule.
ADR-24852026-11-23AcceptedThe console leans into Kobalte for dialogs, popovers, tooltips, selects, pickers, tabs, toasts, collapsibles, switches and segmented controls, but only through wrappers in web/src/components/ui/; a guard test fails any other import of @kobalte/core. Native select, checkbox, radio and details stay where they fit; the tree stays ours.
ADR-25582026-11-24AcceptedAn alarm’s effect on its component’s own health is declared on its severity level (none, degraded or outage), not implied by rank against a hardcoded floor. The shipped info level declares none, so an informational alarm is listed without badging its component. The API’s outage flag stays as a deprecated alias.
ADR-25612026-11-24AcceptedA PR no longer re-renders existing docs shots. A workflow on push to main recaptures both shot sets and, when a masked baseline changed, pushes those shots and their clean twins to claude/docs-shots-recapture and opens or updates one PR as the agents’ App, with no change to branch protection and no bypass. A guard fails a PR that modifies an existing shot.
ADR-26522026-11-26AcceptedEvery release, minor or patch, is cut from main by release-please. It keeps one release PR open on main with the next version and the notes, read from the squash-merged PR titles since the last release; merging that PR is the release, and it tags the merge commit and creates the GitHub Release, whose run then builds the image and the binaries. A feat or a breaking change bumps the minor before 1.0, a fix or perf the patch, and 1.0 is only ever set on purpose. There are no release branches and no backports: releases go forward only, and a fix ships in the next one. No CHANGELOG is committed. It runs with the release App’s token. Candidates are deferred to 1.0, whose final still needs the 7-day soak. Until 1.0 the README, the docs home page and the release notes say Omniglass is pre-production, and each release line keeps its own docs behind a version picker. Supersedes ADR-2711 and most of ADR-2139, and retires make release and cmd/releaseversion
ADR-27112026-11-25Superseded by ADR-2652make release reads the conventional commits squash-merged on main since the newest release line branched and picks the next release branch: a feat, or a breaking change before 1.0, opens release/.<minor+1>; a breaking change from 1.0 on opens the next major; a fix or perf is a patch, a cherry-pick onto the existing branch. It previews the notes and asks before creating the branch. The tag a dispatch cuts still comes from the branch name and the tags.
ADR-27262026-11-26AcceptedA throwaway lab started with —health-history lands 30 days of health edges and the alarms that explain them, raised and cleared in the past, through two lab-only Storage Gateway writes that stamp the past, label every row source ‘devseed’, write no audit or event row, recompute nothing and notify no one. The alarm row gains a source column for it. An exception to derived state being only the platform’s own write, until epic #1796 derives lab history through the real rules on a virtual clock.
ADR-27312026-11-26AcceptedEach console tab holds one /views:watch stream. Beside the view bindings’ rows it carries changed notices for the topics the page follows (a component or a system), published on the tail’s change lane after the write commits, resolved in scope at connect, and coalesced per topic. A notice is an invalidation: liveQuery refetches the typed route. A vitest guard bars polling from web/src, with a list of the files still polling that only shrinks. Diverges from the issue: the notices ride the tail’s ring as a lane, not a sibling ring, and collection topics wait for a later slice.
ADR-27412026-11-26AcceptedA system’s Activity tab reads its health history bar, stretch list, alarm rows and markers over the page’s one time range, reversing the design in which Activity kept its own fixed windows; Uptime stays the availability KPI over a fixed 30 days. With no range given Activity opens on the last 30 days and Overview and the Timeline on 24 hours; a range once picked governs every tab, so the system page writes every pick to the address, 24 hours included. The bar opens at the range’s start with the carried-in health.
ADR-27542026-11-26AcceptedA simulator behavior’s tick counts as a change only the paths whose value it moved: a write of the value a path already holds publishes no diff, bumps no version and puts nothing on the device’s feeds. A behavior may also report named events after its tick, rendered against the state it left, and one whose data renders empty is not reported that tick.
ADR-2754.22026-11-26AcceptedA simulator behavior’s templates read the time through the device’s own clock (now, and nextSlot for the next boundary of a slot), which a test pins with SetClock, and draw integers and chances (randInt, chance) from the device’s seeded source; a schedule that sits on the wall clock is therefore deterministic per device and testable over a simulated day.
ADR-27572026-11-26AcceptedA lab’s meetings are one calendar every simulated room acts out, a pure function of the scenario’s calendar block, a seed and a window, so every simulator and the server compute the same one with nothing stored or shipped; services that span rooms read it by room key; a scripted problem source joins it on the same clock as a second entry kind.
ADR-2757.22026-11-27AcceptedA scale lab’s rooms take a name from a per-site theme (or a function for a huddle room or an auditorium) as the system’s label while the location stays the address, so the console shows both; the simulator’s adjective-surname generator is retired.
ADR-27892026-11-27AcceptedAn http poll’s request may declare paginate: a style (cursor, a value read from each answer and sent on the next request, or page, a counter), where the cursor is read and sent (every field and parameter name is the driver’s, none is the engine’s), an optional page size, and bounds. The engine walks every page of one poll, gathers the records of all pages, and identifies and fans them out once (ADR-1282). Reaching max_pages or max_records, or a failed page, faults the poll naming the endpoint and lands nothing
ADR-28002026-11-27AcceptedThe simulator has a clock of its own, real time plus an offset, which every device and the problem executor read; a lab test sets it so a corporate room is mid-meeting without waiting for the calendar’s hours. It moves what the simulated world reads and stamps, never the outpost’s collection cadence or a timestamp Omniglass stamps, and it is the first, fixed-speed step of the accelerated clock (#1362).
ADR-28292026-11-27AcceptedEvery consumer of the simulator catalog reads one Definition interface; a Go family (one package per wire API, models as a typed table, handlers as Go funcs) satisfied it beside the YAML profiles while the simulator migrated, and is the only thing that does now (#2837). The list of families is generated.
ADR-28322026-11-27AcceptedA family that replaces a YAML profile answers every request the profile answered with the same bytes, headers and state, proven against transcripts the profile recorded before it was deleted. Two accidents of the profile’s templates are corrected, each listed in the parity test: a product reports its own model on its dashboard, and a control route refuses a body it cannot read.
ADR-28332026-11-28AcceptedThe five Newtron and Meridian profiles become five families, one per wire API, not one per vendor: a processor, a touch panel and a scheduling panel answer different NVP lines, and a switcher and an extender answer different JSON. The families keep the profiles’ wire byte for byte except where a refusal was the template engine’s own text, which is refused as a 400 that writes nothing.
ADR-28342026-11-28AcceptedA family publishes the named occurrences its profile reported (a call started, a log line) from a route or a tick, in the same numbered stream as the state changes the feed streams, and the recorded transcripts hold them byte for byte. The Kestrel families correct three things the profiles got wrong or spelled differently: a log line that printed a formatting error, a value written to state as the word it was sent, and a tick’s interval listed in seconds.
ADR-28352026-11-28AcceptedThe DSP’s channel routes built a state path from the request body, so a fractional index wrote a key no channel has and a mute or gain that was no flag or number was written as the word. The family refuses both with a 400 that changes nothing, and answers every other bad index in the words the state gives.
ADR-28362026-11-28AcceptedEach of the seven profiles has its own wire API, so each is a family, named for its only product so the lab’s pushers, senders and manifests resolve it unchanged. The families keep the profiles’ wire byte for byte except where a response was the template engine’s accident: error text, text coerced into numbers, markup printed into a page.

ADR-0001: AI acts as a user; the agent principal is deferred

Section titled “ADR-0001: AI acts as a user; the agent principal is deferred”
  • Date: 2026-06-27 | Status: Accepted | Pages: identity and access, AI
  • Decision: An AI tool authenticates over OAuth as an ordinary human or service principal and acts with exactly that principal’s grants. A dedicated first-class agent principal kind is not in the initial architecture.
  • Context: A separate agent identity would need its own authN, its own grant semantics, and its own audit treatment before any AI surface exists to use it. Treating AI as a scoped, audited user reuses the whole identity machinery and keeps the audit trail honest (the acting principal is the human or service).
  • Note: The schema’s principal.kind CHECK already reserves the agent value so a later slice adds the kind without editing the applied auth migration; no agent identity is issued today. If and when a first-class agent identity is built, that is a new entry that supersedes this one.
  • Amended (#1162): “over OAuth” above predates ADR-0004, which ships bearer tokens and defers OAuth. An AI tool authenticates with a person’s bearer token, and the MCP server runs every tool call as that token, its audit row marked with the MCP channel (ADR-1162). The decision itself stands: AI acts as a human or service principal, never as its own.

ADR-0002: Roles carry requirements, not an allow-list

Section titled “ADR-0002: Roles carry requirements, not an allow-list”
  • Date: 2026-06-27 | Status: Accepted | Pages: identity and access
  • Decision: Authorization is built from additive (role x scope) grants, where a role is a capability set of <resource>:<action> permissions. An earlier sketch attached a per-principal allow-list of permitted actions directly.
  • Context: A per-principal allow-list does not compose: the same operator role at two scopes, or a role inherited and extended, would be re-listed by hand per principal. Roles plus scope make the common case (the same role at different places) a single reused definition, and keep permissions additive and positive (no negative entries). It is also what makes the per-grant binding (an action and its scope bind in the same grant) expressible.
  • Date: 2026-06-27 | Status: Accepted | Pages: health
  • Decision: The healthy state of a component or system is named ok. An earlier draft used up.
  • Context: up reads as reachability (the device answers), which is only one input to health. Health is a rollup verdict (“is this system working?”) that can be unhealthy while every device is reachable, or healthy while a redundant member is down. ok names the verdict rather than the ping, so the word does not promise something narrower than the model delivers.
  • Superseded by ADR-0050 on the word only. The reasoning holds and the built domain still names the verdict rather than the ping; it spells the members healthy / degraded / outage, because outage says what a broken system means to the people in the room where down says what a device is doing.
  • Date: 2026-06-27 | Status: Resolved (identity slices 1-2) | Pages: identity and access
  • Resolved: Password credentials shipped in identity slice 1 (#35) and slice 2 (#70): credential.kind now allows bearer or password (argon2id, PHC-encoded, one password per principal), and a human signs in with a username and password behind an httpOnly session cookie. The oidc / nats methods and the full (method, identifier) lookup key remain deferred (future slices).
  • Reversed in part (#2361): ADR-2361 ends the oidc deferral: single sign-on through an identity provider is decided (an oidc credential keyed iss|sub, then saml), built by #2362 onward. The nats method stays deferred.
  • Decision (divergence): The shipped credential table carries kind = 'bearer' only, stored as the token’s sha256 with a non-secret ogp_ locator prefix. The design’s fuller model (the password, oidc, and nats methods, and the (method, identifier) lookup key) is deferred, not yet built.
  • Context: The auth foundation slice needed exactly one working authN method to prove the capability and scope seams end to end. Bearer tokens are the thinnest honest cut: a service credential the bootstrap and the CLI can both carry. Password login is the first slice of the identity tier epic (#27) (slice #28), which adds password to the credential.kind CHECK in a new migration (never editing the applied one). OIDC and the NATS node credential follow with their own surfaces.
  • Closes the gap: epic #27.

ADR-0005: The first owner is omniglass bootstrap

Section titled “ADR-0005: The first owner is omniglass bootstrap”
  • Date: 2026-06-27 | Status: Resolved (identity slice 1) | Pages: identity and access
  • Resolved: omniglass bootstrap <username> --password <pw> shipped in identity slice 1 (#35): bootstrap now installs a password credential on create (plus --email / --display-name), so the owner can sign in to the console without a separate step. The og iam admin command namespace is still deferred (it lands with the admin user surface, slice 3).
  • Decision (divergence): The first owner is created by omniglass bootstrap <username>, which mints an owner@all grant plus a bearer credential in one transaction. The design page describes the eventual og iam create-owner --username ... --email ... password path under an iam command namespace; that namespace and the password credential are deferred.
  • Context: Bootstrap has to work before any login surface exists, so it pairs with the bearer-only credential decision (ADR-0004): one trusted, idempotent command that produces a token the operator pastes into the console or CLI. The iam command family (and the password-on-create path) lands with the identity-tier admin surfaces.
  • Closes the gap: epic #27.

ADR-0006: The owner invariant is enforced by bootstrap for now

Section titled “ADR-0006: The owner invariant is enforced by bootstrap for now”
  • Date: 2026-06-27 | Status: Resolved (identity slice 3c) | Pages: identity and access
  • Resolved: The DEFERRABLE INITIALLY DEFERRED constraint trigger (principal_grant_owner_guard) shipped with grant revocation (issue #82): it refuses to leave zero owner @ all grants at COMMIT, so revoking the last owner is a clean 409 while a swap (grant a new owner + revoke the old in one transaction) still passes. The gateway maps its custom SQLSTATE OG001 to ErrLastOwner.
  • Decision (divergence): “At least one active owner@all grant exists at all times” is upheld today by the bootstrap path (it always creates one) and the absence of any grant-revocation surface. The design’s deferrable Postgres constraint trigger that enforces it at COMMIT (so the swap-owners-in-one-txn pattern works) is not yet built.
  • Context: With no API to revoke a grant or delete a principal, the last-owner removal the trigger guards against is not yet reachable, so the trigger is not load-bearing until grant CRUD ships. It is required before the admin user-management slice exposes grant revocation (epic #27, slice 3).
  • Closes the gap: epic #27.

ADR-0007: Principals are gated at all-scope, not scope-tree

Section titled “ADR-0007: Principals are gated at all-scope, not scope-tree”
  • Date: 2026-07-01 | Status: Accepted | Pages: identity and access
  • Decision: A principal is not a scope-tree entity: it is not “under” a location, system, or component, so the principal:<action> capability confers access only at all-scope. A grant scoped to a location or system carries no principal access, and the Storage Gateway refuses a non-all scope on the principal directory with a 403 (ErrPrincipalForbidden) rather than silently returning an empty list. This falls out of the scope resolver: applicableKinds("principal") is empty, so only an all grant resolves to a non-empty set.
  • Context: The admin principal directory (slice 3a, issue #77) is the first surface to gate on principal:*. Modelling users as scope-tree entities would be wrong (there is no “users under HQ”), and returning an empty list to a mis-scoped admin would hide a misconfiguration, so making all-scope explicit keeps the capability honest and surfaces the error. The same rule governs the later principal-mutation and grant surfaces.
  • Closes the gap: n/a (a design decision, not a divergence).

ADR-0008: Disable is hard revocation; no token-version column

Section titled “ADR-0008: Disable is hard revocation; no token-version column”
  • Date: 2026-07-06 | Status: Accepted | Pages: identity and access
  • Decision: Disabling a principal revokes its live sessions immediately, achieved by the authn path re-reading principal.active on every request, not by a session-version / epoch column. AuthenticateBearer and AuthenticatePassword both filter and pr.active in the credential lookup on every call, with no caching anywhere in the authn path, so the very next request on an already-issued bearer or session cookie after a disable gets zero rows and a 401. SetPrincipalActive flips the flag in one statement: disable is revocation, atomically. No token_version column is added.
  • Context: Issue #94 asked for “hard session revocation on disable”, assuming disable was soft (a propagation delay). It is not: the per-request active check already is the hard-revocation mechanism, proven end to end by TestDisableRevokesLiveSessionAPI (a live token is 401 on its next request the moment it is disabled) and TestDisablePrincipal. A token_version column would matter only as an invalidation signal for an authn-result cache, which does not exist; adding it now would be a dead column with no reader, against the primitive-first and meaningful-migration disciplines. Revisit if any cache/memoization is introduced in the authn path (an epoch bump would then be its invalidation signal).
  • Closes the gap: issue #94, closed as already satisfied.

ADR-0009: Root exclusion lives on the grant, not a new scope kind

Section titled “ADR-0009: Root exclusion lives on the grant, not a new scope kind”
  • Date: 2026-07-06 | Status: Accepted | Pages: identity and access
  • Decision: The “act on the subtree but not the root” capability (the deploy / integrator case, issue #87) is a boolean exclude_root modifier on principal_grant, not a new scope_kind (e.g. location_descendants) and not a role-level flag. It narrows only the modify actions (update, delete) to the root’s descendants; read and create-placement keep the root. An inclusive grant on the same root wins over an excluding one.
  • Context: A new scope_kind would fork the kind handling three ways (location / system / component) and grow the scope vocabulary; a role-level flag could not vary per grant (the same deploy role granted root-inclusive in one place and root-excluded in another). The grant modifier composes with the additive-grant model and confines the change to one predicate (inScopeTree) shared by all three tree entities. Keeping read and create-placement inclusive means a PATCH on the root is the existing readable-but-out-of-write-scope 403, so exclude_root reuses the three-way status split rather than adding a fourth case. Shipped with a new deploy official role (create + update on the three tree tiers, read via the viewer floor). The grant-builder toggle to set it from the console is a fast-follow (#99).
  • Closes the gap: issue #87.

ADR-0010: Impersonation is a session, not a credential; guarded by capability cover

Section titled “ADR-0010: Impersonation is a session, not a credential; guarded by capability cover”
  • Date: 2026-07-06 | Status: Accepted | Pages: identity and access
  • Decision: Admin/owner impersonation ships with both modes (view-as read-only, act-as full) in one slice. An impersonation token is an impersonation_session row (its own table: target, real actor, mode, expiry, revoke), not a credential (which authenticates a principal as itself). Authorization to impersonate is the escalation guard actor.Covers(target) (the caller’s capabilities must cover the target’s) plus the principal:impersonate capability at all-scope. Capability cover applies to both modes; scope is where the modes diverge: view-as is cross-scope (read-only grants no write authority, and seeing another scope is the troubleshooting case), but act-as additionally requires the caller’s all-scope grants alone to cover the target: a capability held only through a narrower grant does not count. Without that, act-as would let a split-grant admin (all-scope user management, but infra scoped to campus X) impersonate a campus-Y admin and gain write in Y, since an impersonated request resolves its ABAC scope from the target: a scope escalation. Because the rule is capability-cover against the caller’s all-scope grants (not a hardcoded list of scoped resources), it closes non-tree escalation too: a user-admin who holds grant authority only through a scoped grant (empty effective scope, cannot create a grant directly) cannot launder all-scope grant authority by acting-as a grant admin. Accountability is a nullable audit_log.real_actor_principal_id written on the row directly, not reconstructed from a time-window join (clock skew and concurrent sessions make that unreliable for an accountability record), and the self-service mutations (/auth/me profile and password) audit too so an act-as edit is never untracked.
  • Context: view-as is enforced by refusing every non-read action when the request carries a view-as claim; act-as threads the real actor through the audit writer via a request-scoped context value (storage.WithRealActor), so no mutating gateway signature changes. authn tries the impersonation session on a bearer-hash miss, so the same Authorization: Bearer path serves both. Disabling either party kills the session via the per-request active re-read (ADR-0008). The console ships an Impersonate action (view-as / act-as) and an acting-as banner. Deferred: re-checking the escalation guard on every request (bounded instead by a short TTL plus revoke), and act-as within a scoped admin’s own scope by intersecting the target’s scope with the caller’s (#101), rather than the current all-scope-only act-as rule.
  • Closes the gap: issue #85.

ADR-0011: Grant scope is an operator, not a boolean modifier

Section titled “ADR-0011: Grant scope is an operator, not a boolean modifier”
  • Date: 2026-07-06 | Status: Accepted | Pages: identity and access
  • Decision: Generalize the exclude_root boolean (ADR-0009) into a scope_op operator on principal_grant (issue #102): subtree (root + descendants, the default, == old exclude_root=false), subtree_excl_root (descendants only for update/delete, root kept for read/create, == old exclude_root=true), and self (the root row only for read/update/delete, no descendants and no create-placement, a leaf-lock, net-new). The operator is a flat enum column, not a full predicate-expression tree or a per-grant tuple list. It is part of a grant’s identity: the dedup index includes scope_op, so the same role at the same root with a different operator is a distinct grant.
  • Context: Grant scope wants one composable axis, not a growing pile of booleans; the grant builder is already a filter-bar-style operator UI, so the operator vocabulary is the natural fit. The flat enum was chosen over a predicate-expression scope and a per-grant tuple list (negation, multi-root in): those buy expressiveness the boolean’s two states never needed, at the cost of a much larger blast radius on the two authorization invariants (permission-on-every-route, scope-on-every-query). self is the cheap third value (a scalar = any() arm, no new recursive CTE) that turns a boolean rename into a real operator, and grant on exactly one node is a frequently-wanted capability the boolean could never express. The pure scope.Resolve gains a SelfIDs set; the three gateway walks (inScopeTree, InScopeIDs, scopedListSQL) gain a self arm. The migration also recreates the dedup index to include scope_op, fixing a latent collision, and threads scope_op through RevokeGrant’s audit SELECT (previously dropped). The operator model does not subsume the act-as scope intersection (#101): that blocker is plumbing (carry the real actor’s grants and intersect two Sets per row), unchanged by how a Set is expressed. A future tuple model (negation, multi-root) stays a documented path if a real carve-out requirement lands. The console grant builder gains an operator stage (role -> kind -> entity -> operator), so #99 (setting the modifier from the console) ships here too.
  • Supersedes: ADR-0009 (the boolean is retired for the operator).
  • Closes the gap: issue #102.

ADR-0012: Owner accounts are un-impersonatable; impersonation stays capability-gated, not scope-intersected

Section titled “ADR-0012: Owner accounts are un-impersonatable; impersonation stays capability-gated, not scope-intersected”
  • Date: 2026-07-07 | Status: Accepted | Pages: identity and access
  • Decision: Harden the impersonation authorization model on tiers, not scope. (1) A principal holding owner @ all cannot be impersonated by anyone, including another owner, in either mode (issue #106): a target-side check in the :impersonate handler, before the mode branch. (2) The principal:impersonate capability stays swept by the principal:* wildcard (admin) and *:* (owner); it is not carved out as a sensitive action, because holding principal:* already lets a caller create and use its own principals, so impersonate confers no new reach there. (3) Drop act-as scope intersection (#101): act-as stays all-scope-only.
  • Context: The escalation guard (Covers) already blocks a lesser admin from impersonating an owner, but owner.Covers(owner) is true, so owner-impersonates-owner was possible. An owner is the highest-trust account and impersonating one is a full-takeover vector, so the explicit owner-protection rule removes it entirely and reads more clearly than relying on cover arithmetic. Owner detection reuses the same role='owner' and scope_kind='all' lane as the owner invariant, so it is not new role-name branching. Scope intersection (a scoped admin acting-as within its own subtree by intersecting two scope Sets per row) was dropped as complexity for a narrow case; the tier model plus all-scope-only act-as is simpler and safe. The impersonated-vs-direct distinction an operator needs in the audit trail is already recorded by audit_log.real_actor_principal_id (ADR-0010); surfacing it is a later auth-event audit slice.
  • Refines: ADR-0010.
  • Closes the gap: issue #106; closes #101 as dropped.

ADR-0013: A grant cannot confer capabilities the granter lacks

Section titled “ADR-0013: A grant cannot confer capabilities the granter lacks”
  • Date: 2026-07-07 | Status: Accepted | Pages: identity and access
  • Decision: Grant creation is refused (403) when the granted role’s capabilities are not covered by the granter’s all-scope capabilities (rbac.Set.Covers, the same primitive as the impersonation escalation guard). So no caller can promote anyone, including itself, to a tier above its own: an admin cannot grant owner (*:*), because admin is an enumerated role that does not cover the global wildcard. Issue #109.
  • Context: CreateGrant previously checked only that the granter held all-scope principal_grant:create (action.All), not that the granter covered the granted role, so an admin could grant itself owner@all and log in as a superuser, leaving the admin/owner distinction unenforced. The check lives in the create-grant handler (capability is a route/handler concern; ABAC scope stays the gateway’s), mirroring the impersonation guard. Only the caller’s all-scope grants count, so a capability held through a narrower grant cannot be conferred estate-wide (the same reason act-as requires all-scope cover). The consequence is a deliberate stance: admin is bounded on purpose, the top management role, never the superuser, and does not auto-gain future resources; owner (*:*) is the break-glass superuser and the owner-invariant anchor. The same cover rule must extend to role editing when it lands (you cannot edit a role above your own tier); tracked with that slice.
  • Refines: ADR-0010 (reuses its capability-cover primitive on the grant path).
  • Closes the gap: issue #109.

ADR-0014: The audit trail is a sensitive read, not reached by a partial global wildcard

Section titled “ADR-0014: The audit trail is a sensitive read, not reached by a partial global wildcard”
  • Date: 2026-07-07 | Status: Accepted | Pages: identity and access
  • Decision: Reading the audit trail requires the audit:read capability, and audit is a sensitive resource: a partial global wildcard (*:<action>, e.g. the viewer role’s *:read) does not confer it. Only an explicit grant on the resource (audit:read, held by admin) or the full *:* superuser wildcard (held by owner) reaches it. So the audit trail is admin/owner-only; a read-only user does not see logins, impersonations, and access changes (issue #116).
  • Context: The :read floor and the *:read viewer role mean “read everything,” which is right for the estate but wrong for the security audit trail: exposing who impersonated whom and every access change to any read-only operator leaks security posture. Rather than gate the route with a non-read action (a hack), rbac gains a small sensitive-resource set: in Set.Allows, a * resource entry that is not allActions skips a sensitive resource, so *:read no longer matches it while *:* still does and an explicit audit:read still does. This is the narrow, honest version of the “sensitive permission” idea (distinct from the impersonate call in ADR-0012, where the principal:* resource wildcard legitimately confers principal:impersonate; here it is the global *:read wildcard over a sensitive read). The set is extensible if other sensitive reads appear (it holds only audit today).
  • Closes the gap: issue #116.
  • Superseded by ADR-0015: the carve-out is replaced by consistent topic-pattern matching, where :admin is a deeper token no partial wildcard reaches.

ADR-0015: Permissions are topic patterns (single-token and tail wildcards)

Section titled “ADR-0015: Permissions are topic patterns (single-token and tail wildcards)”
  • Date: 2026-07-07 | Status: Accepted | Pages: identity and access
  • Decision: Permissions match like NATS subjects (which the node path already uses, so the stack shares one wildcard convention): a colon-delimited token path where a literal matches itself, * matches exactly one token, and > matches one or more tokens and must be last. A normal permission is resource:action; an admin-sensitive one is resource:action:admin. Because * is a single token, a two-token pattern (*:read, *:*, principal:*) structurally cannot match a three-token :admin permission: admin-sensitivity is a deeper token, not a special case. The whole-estate superuser is > (issue #118).
  • Context: The prior ad-hoc wildcard let a two-token *:* match a three-token x:y:z, an inconsistency: the second * was silently absorbing a tail. Making matching a real topic match removes every special case, the ADR-0014 sensitiveResources set is deleted. viewer’s *:read misses audit:read:admin because two tokens cannot match three; owner reaches it via >; admin carries audit:read:admin explicitly. It also fixes, for free, a boundary wart from the grant guard: principal:* is now principal:<one token>, so it does not sweep an admin-tier principal:<action>:admin, those stay owner-only unless granted explicitly. Set.Allows matches by token; Set.Covers (the impersonation and grant-escalation guard) becomes pattern subsumption plus the :read floor, staying conservative (a reach covered only by the union of several patterns returns false, deny). The only seed change is owner’s *:* becoming >; every other permission keeps its meaning because * already meant a single token. A closed grammar also makes “what does this pattern set grant” exactly enumerable against a permission catalog (the set of all resource:action[:admin] the routes declare), the basis for a future custom-role preview.
  • Supersedes: ADR-0014.
  • Closes the gap: issue #118.

ADR-0016: A principal can be purged, and the audit trail is denormalized to survive it

Section titled “ADR-0016: A principal can be purged, and the audit trail is denormalized to survive it”
  • Date: 2026-07-09 | Status: Accepted | Pages: identity and access
  • Decision: A principal gains a full lifecycle: disable (reversible, the active flag), archive (a soft delete, archived_at, hidden from the directory and unable to authenticate, reversible), and purge (an irreversible hard delete of the row). Purge is gated on prior archival (archive-before-delete) and on the admin-sensitive principal:purge:admin, so admin (which carries it explicitly) and owner (>) can purge but a two-token principal:* cannot reach it (ADR-0015). To keep the audit trail through a hard delete, the actor’s human-readable label is denormalized into every audit_log row at write time, and the audit foreign keys become ON DELETE SET NULL: a purge nulls the id link but the text survives, so “who did X” outlives the principal. The read side coalesces the live join to the snapshot.
  • Context: ADR-0006’s single-owner invariant meant accounts were disabled, never hard-deleted, since audit rows referenced them (RESTRICT). But operators need to remove accounts created by mistake, a common task, without erasing history or orphaning the trail. Denormalizing the actor label decouples the audit record from the principal row, so the row can be purged while the history stays legible; the archive gate prevents an accidental one-click hard delete, and the last-active-owner guard (extended to archive) means a purgeable account is never the last owner. This retires the “never hard-deleted” statement in the identity-access page.
  • Naming: the soft-delete verb was renamed deactivate to archive (and reactivate to restore) when the console UI landed (#146): “disable” and “deactivate” read as synonyms, blurring two distinct operations. The ladder is now a suspend (disable, reversible, still listed) then an offboard (archive, soft delete, hidden, recoverable) then a destroy (purge), so the labels read pause to remove to destroy, matching the industry suspend-vs-delete pair. The column, endpoints (:archive / :restore), capability (principal:archive), and list param (include_archived) all follow the verb.
  • Closes: issue #143 (backend), #146 (console + rename).

ADR-0017: credential is renamed secret; the cascade is the reuse mechanism

Section titled “ADR-0017: credential is renamed secret; the cascade is the reuse mechanism”
  • Date: 2026-07-09 | Status: Accepted | Pages: config, credentials, and variables
  • Decision: The access-secret member of the config / credential / variable trio is renamed credential to secret, and its first slice is built: a typed, encrypted-at-rest value owned on the exclusive arc (global | location | system | component) and resolved most-specific-wins down the cascade. A secret is an encapsulated typed cell (a secret_type shape with per-field secrecy and origin), not a bag of references: the reuse a tool like Windmill gets from variable references, the cascade already provides here (define once at a broad scope, inherit it below), so composition solves a non-problem. Interpolation references live at the consumption site ($sec:name.path in an interface input or a function arg), never inside a secret’s own fields. Crypto is envelope AES-256-GCM behind a pluggable KEK provider (env / file / fallback), the value sealed under a per-value DEK wrapped by the KEK, with (owner, name, field) bound as AAD; the provider seam lets a KMS or Vault drop in without a model change. “credential” is retained for the authentication credential (a principal’s bearer or password), a distinct resource; only the collection-side access secret is renamed.
  • Context: The written variables page named this member credential and left it Design. Building it surfaced two calls. First, naming: “credential” collided with the identity credential and undersold the general case (an snmp_community, an API key, an oauth2 blob are all just sensitive cascaded values); “secret” is the Cloudflare-style vars-and-secrets pair and reads correctly. Second, shape: Windmill’s resource-references-variables split was considered and rejected, because our cascade is the sharing mechanism and an atomic one-form typed cell (doctrine 4) suits an operator better than composing references. Reveal (plaintext decrypt) ships as an audited, secret:reveal-gated endpoint that the *:read floor does not reach, so only admin and owner may decrypt; the interpolation consumer (splicing a value into a live request) is deferred to the collection-driver slice that first needs it. This reverses the credential naming and any “references inside the value” reading on the page; the variable and config members stay Design.
  • Closes: issue #155 (secret slice 1).

ADR-0018: The avatar read endpoint is JSON, not raw image bytes

Section titled “ADR-0018: The avatar read endpoint is JSON, not raw image bytes”
  • Date: 2026-07-10 | Status: Accepted | Pages: identity and access
  • Decision: A human principal’s profile picture is read through a JSON endpoint (GET /principals/{id}/avatar gated principal:read, GET /auth/me/avatar on the self lane) that returns { image_base64 }, which the console decodes into a data: URL for the <img>. The write lanes take base64 JSON in (POST /principals/{id}:setAvatar and the /auth/me self lane), and the server-normalized 256x256 JPEG is stored base64 on the human row; the principal read models carry only a has_avatar bool, so no image payload rides a list or the loadPrincipal hot path.
  • Context: The slice design spec proposed a raw image/jpeg read endpoint (with ETag / Cache-Control / 304) so a browser <img src> could load it directly. But a raw-bytes handler would be a chi-native route sitting outside the Huma authz middleware, breaking the two-layer invariant that a <resource>:<action> capability is checked on every route, and a bare <img src> cannot send a bearer header, so a token-only (non-cookie) session could not authenticate the image. Keeping the read as a Huma JSON route puts it under the same authn + require("principal","read") (admin) or authn-only (self) path as every other route, and the typed client (session cookie or bearer, both work) fetches the JSON and builds the data URL. The one normalized size is small (roughly 30 to 50 KB base64), so per-request payload is not a concern, and HTTP caching over avatar_updated_at is a later refinement if it is ever needed. This supersedes the spec’s raw-bytes read decision; the write transport (base64 JSON) is unchanged.

ADR-0019: Every credential is time-bounded; token purpose, not expiry shape

Section titled “ADR-0019: Every credential is time-bounded; token purpose, not expiry shape”
  • Date: 2026-07-11 | Status: Accepted | Pages: identity and access
  • Decision: All credentials are time-bounded (reverses the earlier tokens-never-expire choice). A web-login session keeps a 12h absolute lifetime; CLI/API tokens and the bootstrap token get a 90-day default expiry with a --ttl override capped at 365 days; nothing is issued without an expiry. Sessions and API tokens are distinguished by a credential.purpose column, not by whether expires_at is set. Expiry is enforced lazily at authentication; there is no background sweep, and session/token lists show only live credentials. Deferred: a sliding idle timeout, a housekeeping sweep of long-expired rows, and nearing-expiry notifications.
  • Amended (#2361): the bound is on credentials that are bearer secrets. An identity provider link (an oidc or saml row, ADR-2361) holds no secret and carries no expiry; the session a sign-in through it mints is the ordinary 12h one.
  • Context: The credential-expiry slice (#157) bounded only the web-login session and left the CLI/API token unbounded (expires_at null), overloading “has an expiry” to mean “is a session”. That left an eternal secret in the field, against the every-secret- rotates principle, and coupled the session-vs-token distinction to a nullable column that both kinds now populate. A dedicated purpose column names the concept directly, so the list and the console read the discriminator rather than inferring it, and the default 90-day / 365-day-cap window keeps a minted token usable for real automation without becoming permanent. AuthenticateBearer already refused a passed expiry, so enforcement needed no change: giving tokens a future expiry is enough, and the list reuses the same expires_at is null or expires_at > now() filter so a dead row is never shown.
  • Reverses: the tokens-never-expire behavior introduced with #157.
  • Closes: issue #172 (self-service sessions and the every-credential-expires model).

ADR-0020: variable slice 1 types inline and mirrors the secret arc

Section titled “ADR-0020: variable slice 1 types inline and mirrors the secret arc”
  • Date: 2026-07-11 | Status: Accepted | Pages: config, secrets, and variables
  • Decision: The variable member of the trio ships its first slice: a typed, cascade-resolved plaintext value owned on the exclusive arc and resolved most-specific-wins down the cascade, with a Variables directory and a per-component effective-variables panel, mirroring the secret member minus crypto, masking, and the reveal. variable:create,update is granted to operators (delete stays admin and owner), the same split secret got. Three parts of the written design are deferred to keep the slice one vertical cut. First, typing is inline: a value_type enum (string | int | float | bool | json) on the row plus a jsonb value validated against it in a pure internal/variable package, not a variable_type shape registry. A scalar needs no governed vocabulary, and the page itself calls variables the “operator-defined, not curated” member, so a registry would contradict the model. Second, the template owner scope (the design’s global -> template -> instance) is out: slice 1 mirrors the secret arc (global | location | system | component), and template scope plus cascade groups land together in #184, because they touch the shared resolver once for both members. Third, the $var: consumer and the secret-flagged variable are deferred (the consumer has no live interpolation site yet, as with $sec:).
  • Context: The written variables page sketched a variable_type registry and a shared config/variable cell carrying observed_value and reconcile. Building the member showed those belong to config (the declared-vs-observed member), not the free macro: a variable has no observed side. So variable shipped as its own single table, typed inline, and the page’s Storage section is corrected to match. This diverges from the page’s variable_type-registry and shared-cell sketch; the config member stays Design.
  • Closes: issue #183 (variable slice 1).

ADR-0021: tag slice 1, a governed key registry with entity-update-gated bindings

Section titled “ADR-0021: tag slice 1, a governed key registry with entity-update-gated bindings”
  • Date: 2026-07-12 | Status: Accepted | Pages: tags, config, secrets, and variables
  • Decision: The tag primitive ships its first slice on its own tags page: the governed tag key vocabulary, the per-entity tag_binding value cell owned on the exclusive arc (global | location | system | component), and a resolver that unions keys and overrides values most-specific-wins down the cascade. Two permissions, not one: minting a key is a tenant-wide governance action gated by an all-scope tag:create (broadened to tag:* for admin, covering update and delete of keys), while setting a value is the owner’s ordinary write (component:update and friends), so an operator who may edit an entity may tag it with no new grant; a global binding, having no owning entity, is gated by tag:update. A key carries applies_to (an entity-kind allow-list, empty = universal, checked on bind) and propagates (a flag that toggles cascade inheritance versus a flat per-entity set, the shape a file will reuse). Key names are validated as lowercase identifiers in a pure internal/tag package, keeping the vocabulary normalized. Four parts of the written design are deferred to keep the slice one vertical cut. First, the operator console surface (a Tags directory and a per-entity tag editor) is out; the slice ships over the API and the generated CLI, matching the files-first ordering the estate chose. Second, binding through groups and a template-scoped default are out, landing with the shared-resolver work in #184 that the variable member also waits on. Third, value-domain governance (a key constraining or normalizing its values) stays the page’s open question; slice 1 ships free-text values. Fourth, binding a tag onto a file waits on the files primitive.
  • Context: The tag design lived inside the config, secrets, and variables page as the fourth cascade user. Building it earned tags a page of its own, because its governance model is distinct: unlike a variable (one free value, one variable:* permission), a tag splits a curated key vocabulary (admin-minted) from routine value binding (operator-open via the entity’s own write), and it resolves with a union-on-key combinator rather than a single value. The exclusive-arc scope and the cascade walk are shared with the variable and secret resolvers; the combinator and the two-permission split are what make it its own primitive. This diverges from the variables page’s single-table sketch (the binding is its own tag_binding cell) and its “bindable via groups” note (deferred); the variables page’s tag section now frames the shared cascade and points at the tags page.
  • Closes: issue #188 (tag slice 1). The deferrals are filed: the console surface #189, value-domain governance #190, and binding onto a file #191; groups and template scope ride #184.

ADR-0022: effective tags resolve onto systems and locations; a placed system inherits its location

Section titled “ADR-0022: effective tags resolve onto systems and locations; a placed system inherits its location”
  • Date: 2026-07-13 | Status: Accepted | Pages: tags
  • Decision: The directory Tags column shows a row’s effective (resolved-cascade) tags, not its direct bindings, so the list routes (GET /components, /systems, /locations) carry an effective_tags map (key to winning value, winners only) per row, resolved for the whole page in one batched query per kind (Gateway.EffectiveTags(kind, ownerIDs), three per-kind recursive-CTE resolvers that thread a target id through the ancestor chains and rank per (target, key)). This required defining effective tags for systems and locations, which previously only components resolved: a location resolves global plus its own location tree; a system resolves global, its own system tree, and the location it is placed at (its location_id tree). A placed system therefore inherits its location’s tags (a system in a PCI building surfaces compliance: pci), consistent with how a component picks up its own location_id. A component is unchanged (the full four-band arc). The resolver is scopeless by contract: the list query has already filtered the ids to the caller’s read scope, so the batch adds no per-id check, matching the existing rowActions batch. Winners only in the column; provenance (which scope a value came from) stays in the per-entity effective-tags detail view.
  • Context: The tag-apply UI needs each directory row to show what tags actually apply to it. The cheaper option was to embed a row’s direct bindings (a flat, non-recursive where owner_id = any($1) lookup); the architect chose effective so the column reflects inherited values, not just locally-set ones. That choice moved real work to the backend (a batched recursive cascade versus a flat index scan) and forced the systems-and-locations effective definition, whose one genuine call was whether a system inherits its location: yes, because a system carries a location_id exactly as a component does, so treating it as placement-that-inherits is the consistent reading. The added cost is a small bounded per-row recursion over the shallow estate trees, one round-trip, and is capped by the directory page size. This is the first (backend) slice of the tag-apply UI; the Tags column, the type-to-add editor, and tag search consume it in later slices.
  • Closes: issue #201 (batch effective-tags resolver); part of #189.

ADR-0023: the IAM directory reads (principal, role, principal_group) are admin-tier

Section titled “ADR-0023: the IAM directory reads (principal, role, principal_group) are admin-tier”
  • Date: 2026-07-13 | Status: Accepted | Pages: identity and access
  • Decision: The read (list and get) of principal, role, and principal_group moves from a two-token <resource>:read to the admin-sensitive <resource>:read:admin, so the viewer read floor (*:read) no longer reaches the Users, Roles, and Groups directories. admin carries an explicit principal:read:admin, role:read:admin, and principal_group:read:admin alongside its <resource>:* wildcards, the same shape as the existing principal:purge:admin; owner’s > is unaffected. Create, update, and the lifecycle verbs stay two-token: they were never reachable by a non-admin, so only the directory read needed promoting. The console gates the three Settings tabs on the same three-token permission and the route guard reads it from the shared nav map, so the sidebar and the server never diverge.
  • Context: deploy (an integrator or field tech) inherits viewer, whose *:read is a single-token resource wildcard. Because * matches exactly one token, *:read matched principal:read/role:read/principal_group:read, and the read floor shares that reach, so a field tech could enumerate every user, role, and group over the API (a real 200, not just a visible menu). Promoting the directory reads reuses ADR-0015’s deeper-token rule rather than adding a matcher special case: admin-sensitivity is a third token * cannot reach. Secrets are a separate concern (an operator legitimately reads device secrets in scope), handled by a forthcoming slice that combines placement scope with a per-secret admin-sensitive flag; this ADR is the IAM directories only.
  • Closes: issue #197.

ADR-0024: a tag key may constrain its values to an enum

Section titled “ADR-0024: a tag key may constrain its values to an enum”
  • Date: 2026-07-13 | Status: Accepted | Pages: tags
  • Decision: A tag key gains an allowed_values set (a new text[] column, empty by default). Empty leaves the key free-text, unchanged; a non-empty set is the enum a bound value must belong to, so environment can be declared as one of prod, staging, dev. The binding write enforces it: SetTagBinding rejects a value outside a key’s non-empty allowed set with a dedicated 422 (ErrTagValueNotAllowed), so the constraint is a real server gate, not a UI hint. The Tags directory create and edit forms carry a value-domain control (a checkbox that turns the key into an enum plus a value-list editor), and the TagAdder value stage renders a strict dropdown for an enum key. A free key instead offers value autocomplete from the distinct values already bound for it, through a new GET /tags/{name}:values read (a select distinct value), so an operator reaches for an existing value without the key having to declare a set up front. Only the enum (a string set) ships; a typed value_type (int, bool, date) and input normalization (lowercase, trim, fold) stay the page’s open question.
  • Context: The tags page left value-domain governance an open question, with the enum, a typed value_type, and normalization all on the table. Operators asked first for the plain case, a key like environment that should only ever be one of a short list, so that shipped: a string enum on the key, enforced on write, with a strict picker. The distinct-in-use autocomplete is the free-key counterpart, cheap (one select distinct) and immediately useful, so the two ship together. This resolves the enum half of the page’s open question; the value_type and normalization halves remain deferred.
  • Closes: issue #190 (tag value-domain governance, enum).

ADR-0025: secret is a sensitive resource; a per-secret admin_sensitive flag flips a secret to the :admin tier

Section titled “ADR-0025: secret is a sensitive resource; a per-secret admin_sensitive flag flips a secret to the :admin tier”
  • Date: 2026-07-13 | Status: Accepted | Pages: identity and access, variables
  • Decision: Two orthogonal axes now decide who reaches a secret. Placement scope (the global/location/ system/component entity a secret attaches to on the exclusive arc) gives locality, unchanged. A new per-secret admin_sensitive flag gives same-scope sensitivity: when set, every action on that secret is lifted to the :admin tier, so a scoped two-token grant (secret:reveal) cannot reach it and only admin (secret:>) or owner (>) may see, reveal, update, delete, or create it. The flag defaults from the secret’s secret_type (secret_type.default_admin_sensitive: an SNMP community defaults operational, an OAuth2 client secret defaults admin-sensitive) and the row’s own value is authoritative; the column default is true (a secret is admin-only until marked operational). Enforcement is a capability flag computed at the API (canAdmin = the caller holds secret:<action>:admin) and passed to the Storage Gateway alongside scope: the gateway hides admin-sensitive rows from a lister/resolver without it, and returns a non-disclosing 404 (not a 403) to a revealer/updater/deleter without it, so a platform credential’s existence and field names are not disclosed through the read, reveal, list, or cascade paths. (One residual: because a secret name is unique per owner, an operator with create scope at the same owner can distinguish a create-collision 409 from a 201, a narrow existence-and-name oracle, no field values. It predates this slice, since operators already held secret:create without secret:read; closing it needs a namespace or create-path change and is a tracked follow-up, not a value-disclosure path.) Separately, secret joins a sensitive-resource set that a bare single-token * does not reach, in both places * grants read (the direct topic match and the read floor); > (owner), a literal secret:read, and a secret:* still name it. So viewer (only *:read) reads no secrets at all (not the directory, not the per-component effective-secrets cascade), operator/deploy gain a scoped secret:read,reveal,create,update and see and reveal the operational secrets in their subtree, and admin’s secret:* becomes secret:> so it reaches the admin tier. The /secrets directory, previously all-scope-only, is now scope-filtered. The client can() mirrors both the sensitive-set and the :read floor so the console hides exactly what the server denies.
  • Context: A field tech setting up a site must create and read back that site’s device secrets (an SNMP community, a device login), but the platform integration credentials (a Zoom or Microsoft client secret the collection engine consumes) must never be revealed below admin. A device secret and a platform credential can sit at the same scope (both global), so placement alone cannot separate them, and a low/medium/high sensitivity ladder was rejected as arbitrary and hard-fixed to three tiers. A per-secret binary flag reusing ADR-0015’s third-token :admin rule expresses the real distinction without a new matcher concept. Taking secret off the bare * wildcard (rather than promoting secret:read wholesale to :admin, which would deny operators their device secrets) is the one lever that keeps the two-token secret:read operators legitimately hold while stopping viewer’s *:read from reaching it. Negative grants (deny-after-allow) were rejected as a footgun the :admin tier and the sensitive-set already cover. This is Slice B of the same visibility rework as ADR-0023; the IAM directories use the :admin tier (no legitimate sub-admin reader) and are not in the sensitive-set, variable stays viewer-visible by decision and is not in the set. The move of Secrets, Variables, and Config out of Settings into Catalog is a separate branch, not this slice.
  • Closes: issue #210.

ADR-0026: Console nav IA: estate values get their own top-level group; the Settings group becomes Admin

Section titled “ADR-0026: Console nav IA: estate values get their own top-level group; the Settings group becomes Admin”
  • Date: 2026-07-13 | Status: Accepted | Pages: ui
  • Decision: The operator console left nav is reorganized around five genera: Catalog (the reusable, estate-agnostic model), Inventory (the estate instances: locations, systems, components, and nodes), Values (the operator-set values resolved down the scope cascade: variables, secrets, config), the observed surfaces (Explore, Alarms, Dashboards, Learn), and platform Admin. Secrets, Variables, and Config are values operators set on estate entities, so they move from the Settings menu into a Values group of their own, standing beside Inventory rather than nested inside it as a band. Config’s meaning is fixed as the CI store: operator-set desired component and system configuration, optionally observed back from the device to detect drift and reconcile, distinct from platform Settings and from Variables. Inventory gains Nodes (the collection daemons, a monitored, scope-controlled entity, ungated “soon” until node:read lands) alongside Locations, Systems, and Components; Interfaces and Tasks are dropped from the nav entirely, since an interface is a facet of a component and a task a facet of a node, not a directory of their own. The Settings group is renamed Admin (Users, Roles, Groups, Audit) and gains an ungated “soon” Settings leaf that reserves the platform-settings-table page.
  • Context: Settings had become a junk drawer mixing platform governance, platform config, and estate-attached values. Those three values attach to a single estate entity on the scope cascade (the same genus as a tag assignment) but are not estate entities themselves, so they earned a home of their own, not Settings, not Catalog, and not a band folded inside Inventory. This supersedes the “into Catalog” line of ADR-0025 above: the earlier same-day plan named Catalog, and the decision is a dedicated Values group. Interfaces and Nodes were first sketched as Inventory children alongside the estate entities; Nodes stayed (a node is monitored and scope-controlled exactly like a location, system, or component, so it belongs with them, not under Admin), but Interfaces and the Tasks a node runs were cut from the nav once it was clear each is a facet of one owning entity’s detail page (a component’s device endpoints, a node’s collection assignments), not a set an operator browses on its own. The relaxed whole-group-drop (an ungated Settings “soon” stub keeps the Admin group visible to a viewer, showing only that greyed placeholder while every data-bearing child stays admin-gated and hidden) is deliberate until the platform-settings backend ships and the leaf is gated on setting:read:admin. Design: docs/superpowers/specs/2026-07-13-operator-console-nav-ia-design.md.
  • Closes: issue #222.
  • Update (2026-07-14): Files joins the Values group. The files slice (ADR-0029) first shipped the Files directory under Inventory, but a file is not part of the monitored estate (no health, not polled): it is operator-uploaded content. So the Values group broadens from “operator-set values resolved down the cascade” to operator-set values and content, with the (deliberately non-cascading, flat) file as its content member alongside the cascaded variables, secrets, and config (#249).

ADR-0027: create is a route; inventory create and edit unify on the detail accordion

Section titled “ADR-0027: create is a route; inventory create and edit unify on the detail accordion”
  • Date: 2026-07-14 | Status: Accepted | Pages: design system, core entities
  • Decision: The inventory entities (component, system, location) drop the create/edit Drawer. Creating one is now a route: New navigates to /<entity>/create, a draft accordion where Identity and Placement are writable and the binding sections (Tags, and later Secrets/Variables) are shown locked until the entity exists; Save commits the row and hands off to /<entity>/<id> in edit mode (a one-shot pending-edit flag consumed when the detail resolves, the Users openPrincipalInEdit pattern). The detail is one accordion, read-only in view and the sole writer in edit: no in-body field or binding mutation control renders while not editing (the footer’s Edit / Delete chrome and the read-only effective-secrets/variables panels are exempt). This is the Users inline-blade-edit model generalised to inventory, and it holds on both the docked blade and the addressable full page. No new routes: the static /create outranks /:name in the router, so create is a reserved segment. The shared TreeList primitive gains a per-surface edit slot on ListCtx (the full page makes its own slot, since the shared renderDetail must not call useBladeEdit outside a blade provider), plus renderCreate / onNew / onEdit hooks and an optional FormBody, so a page opts into the model without breaking the others.
  • Context: Creating an inventory entity returned you to the list, so setting a tag meant find, reopen, edit; and TagAdder rendered a write control in view. A drawer that opened in edit after create would need a fragile cross-surface hand-off (the code-grounded review of the drawer design surfaced a full-page useBladeEdit crash, a FormBody footer collision, and a pending-edit gap). Framing create as its own URL dissolved the “create is blade-only” false dilemma: a draft with an address is deep-linkable full-page and dockable as a blade, and Save is a route hand-off, not a surface hop. Own-field edits commit on Save (Cancel reverts them); tag bindings keep their immediate per-binding write, so Cancel does not roll a tag back, and the tag control sits apart from the Save/Cancel form. Slice 2 (a shared cross-page form shell) and slice 3 (moving Users onto it) are deferred.
  • Closes: issue #231.

ADR-0028: rank retired from the type registries; sort is alphabetical

Section titled “ADR-0028: rank retired from the type registries; sort is alphabetical”
  • Date: 2026-07-14 | Status: Accepted | Pages: core-entities, Types guide
  • Decision: rank is dropped from location_type, system_type, and component_type: the column (a new idempotent migration), the three API bodies and create/update inputs, the boot-seed YAMLs, the generated client and CLI, and the Types catalog page (no Rank column, no Rank field on create or edit). ListLocationTypes, ListSystemTypes, and ListComponentTypes now order by display_name, id instead.
  • Context: rank was sort-only from the start (the location_type seed comment already said so: “rank does NOT constrain nesting”), never an enforcement mechanism. The upcoming allowed_parent_types placement constraint on location_type needed a clean field to introduce without a stale, unused ordering column sitting beside it, so retiring rank is the mechanical precursor to that slice rather than part of it: this PR only removes the field and switches the sort, allowed_parent_types is a separate slice. Alphabetical is the obvious default with no enforcement semantics to preserve; an operator who wants a specific browse order can still rely on the id or display name they chose.
  • Closes: part of issue #239 (the allowed_parent_types half continues in a follow-up PR against the same issue). Design: docs/superpowers/specs/2026-07-14-type-placement-constraints-design.md.

ADR-0029: files slice 1, a content-addressed blob store and a tenant-wide file handle

Section titled “ADR-0029: files slice 1, a content-addressed blob store and a tenant-wide file handle”
  • Date: 2026-07-14 | Status: Accepted | Pages: files and blobs, storage, identity and access
  • Decision: The files subsystem ships its first slice: a content-addressed blob store as a Storage Gateway primitive (a blob.Store seam, default pgblobs backend holding bytes inline, keyed by the sha256 of the bytes, dedup via on conflict do nothing, integrity-verified on read), and a file handle, searchable metadata (name, content_type, size, sha256, sensitive) that points at a blob by hash, with CRUD over the API, the generated CLI, and the typed client, plus the Files directory (under Values; see the ADR-0026 update). Four calls shape it. (1) No placement arc on a file. A file is tenant-wide, not on the exclusive arc a secret sits on, because a file relates 1:many (to entities and types) rather than 1:1; that locality is a future many-to-many attachment, not an owner column, so the gateway injects no ABAC tree scope on a file query. (This reverses an in-design proposal to give file a secret-style owner scope.) (2) Sensitivity reuses the secret mechanism, binary, defaulting off. A per-file sensitive flag reuses ADR-0025’s :admin-tier rule (hidden from a lister without the tier, a non-disclosing 404 to a reader without it, admin-only to create), but defaults false (a file is shared unless marked, where a secret defaults sensitive because it is a credential), and file is not added to the sensitive-resource set, so the viewer floor (*:read) reads ordinary files. (3) A delete frees its blob synchronously; async GC deferred. DeleteFile drops the handle and, in the same transaction, frees the blob when no other handle references it (a dedup-aware refcount: a deleted file reclaims its bytes rather than leaking storage, but a blob shared by another handle is kept). The general async mark-sweep GC (for blobs referenced by other things, an aged large log body, a collection.failed raw, an attach event, none of which exist yet) stays a later slice; today a file is the only referencer, so the synchronous check is complete. (4) One backend, base64-in-JSON on the wire. Only the pgblobs backend ships (S3 and disk behind the same seam later); upload and download carry the bytes base64 in JSON, reusing the avatar precedent (ADR-0018) so the whole surface stays under the Huma authz middleware and generates a uniform client and CLI. content_type lives on the file, not the blob: content-addressing is about the bytes, so identical bytes are one blob regardless of declared type.
  • Context: files.md specified the two-layer model (handle plus content-addressed blob) and an index-probe GC; its open questions (inline-versus-blob threshold, chunking, the grace floor) are untouched here. The 1:many insight is what separated a file’s locality (attachment, deferred) from its access (permission plus sensitivity), and is why the file does not copy the secret owner arc. A full classification + clearance lattice (an ordered ladder on the resource, a clearance on the principal, an external-principal class) was considered for the sensitive axis and split into its own epic (#243) rather than inflating this slice; the binary flag is a 2-rung subset it will subsume. Multipart streaming for very large blobs is deferred with the S3/chunking slice.
  • Divergences logged: files.md moved content_type from the blob to the file; the in-design file owner/scope arc was dropped (a file is off the placement arc). Both are reflected in the page.
  • Lands: epic #242, #244.

ADR-0030: allowed_parent_types constrains where a location may be placed

Section titled “ADR-0030: allowed_parent_types constrains where a location may be placed”
  • Date: 2026-07-14 | Status: Accepted | Pages: core-entities, Types guide, Work with an entity
  • Decision: location_type gains allowed_parent_types (text[], default {}): a set whose members are location_type ids and/or the reserved root sentinel (a placement at the top, no parent). An empty set is unconstrained (the default, and every existing custom type until an operator opts in); a non-empty set is enforced: a placement is valid iff the parent is null and the set contains root, or the parent location’s type is in the set. root cannot collide with a real type id: CreateLocationType refuses it. Enforcement is forward-only, on CreateLocation and the location move path (UpdateLocation’s new ParentName patch field, added this slice so the “grandfathered until moved” guarantee is real and testable, not merely a claim); an existing placement a type’s set no longer allows is untouched until something tries to move it. The four seeded types get their sets: campus={root}, building={root,campus}, floor={building,campus}, room={floor,building,campus}. Re-parent ships operator-usable this slice: the location edit form’s Placement section makes Parent editable, a picker built on #240’s inventory edit model (the same Show when={editing()} field/fact split every other editable field on the accordion uses), narrowed to the set and excluding the location’s own subtree; moving back to root is not offered (the move primitive does not support it this slice).
  • Context: rank (ADR-0028) was sort-only and never expressed the estate’s real hierarchy rule (a floor does not belong above a room). A child.level > parent.level rule was rejected: it does not generalize past locations (systems and components have no total order), while a type-level allowed-parent set expresses both the general “may skip a level” case and the specific “may never be root” or “may never nest under this particular type” cases with one field. A separate root_placeable boolean was rejected in favor of folding root into the set as a sentinel, keeping one field and one validation path. Enforcing retroactively was rejected: seeding a type’s set must never invalidate an existing estate. Locations had no move or re-parent capability at all before this slice (create-time placement only); the storage/API primitive was originally scoped without a UI trigger (the console’s placement fields render read-only in every edit context today, on all three inventory pages), but the decision changed once #240’s create-as-route edit model landed as the concrete field pattern to hang a reparent picker off: one PR ships the enforcement point and a real way to use it, rather than a primitive an operator cannot reach. The picker’s candidate list is narrowed client-side (a UX nicety); the server-side validatePlacement call is the actual gate, so a stale or bypassed client filter still gets an inline 422, not a silently-accepted violation. One divergence from the design surfaced while building the move primitive: UpdateLocation checks placement before the cycle guard, not after, so a move that is simultaneously a placement violation and a structural cycle (moving a location under its own descendant, where the descendant’s type also does not allow this child) reports the PlacementError (422, naming both types) rather than the generic ErrLocationCycle; the design left the check order unstated, and the more specific, actionable error was chosen to win. Systems and components lose rank too but get no allowed_parent_types this slice, and keep their existing read-only-in-edit Parent field: a leaf or must-nest constraint there is closer to a boolean than an ordered set, deferred until a concrete need names the shape, and extending the same editable-Parent pattern to two more pages is a follow-up, not bundled here.
  • Reclassify in place (#251): a third enforcement point. UpdateLocation checks the final type against the current parent whenever location_type actually changes (a restated type is not a change), with the same 422 as a move; grandfathered rows stay untouched until an operator edits their type. It also checks each direct child: every child type’s allowed_parent_types must admit the new type (#1854); grandchildren are not checked.
  • Closes: issue #239. Design: docs/superpowers/specs/2026-07-14-type-placement-constraints-design.md.

ADR-0031: component_make registry slice 1, an official boolean, a deferred referential guard, and website scheme validation

Section titled “ADR-0031: component_make registry slice 1, an official boolean, a deferred referential guard, and website scheme validation”
  • Date: 2026-07-14 | Status: Accepted | Pages: core entities, Vendors guide
  • Decision: Three calls on the first slice of the component_make manufacturer registry (id, display_name, icon, support_phone, website), lands ahead of the rest of the make/model catalog. (1) official boolean, not an origin enum. The design sketch (below) proposed origin official | seed | custom on make and model, matching the model layer’s eventual needs. Slice 1 ships a plain official boolean instead, because component_type and the other registries already distinguish seed-owned from operator rows with a boolean, and a two-value distinction gains nothing from a three-value enum until a real seed (installed, mutable) tier exists to fill it; origin can still land on component_model if that tier turns out to be real. (2) The in-use / referential delete guard is deferred. component_type, location_type, and system_type all refuse a delete while a location, system, or component still references the row (409). component_make ships no equivalent guard: nothing references a component_make yet (component_model, the referencing entity, does not exist), so a custom make deletes unconditionally (an official row is still refused, 422, the seed-owned rule). The guard is added when component_model lands and gives the registry something to be in-use by, rather than building an unused check now. (3) Website URL scheme validation, client and server. The create/edit form renders website as a live anchor; an operator-entered value with no scheme check is a stored-XSS vector (javascript:/data: executing on click). A validWebsiteScheme guard on the API (http/https only, empty allowed, else 422) and a matching safeUrl guard on the console (render a live link only when safe, else plain text, never a dead or unsafe anchor) close it in both places: server-side so a non-browser caller (CLI/curl) cannot persist a dangerous scheme, client-side so a value written before the server-side check existed (or by any path that bypassed it) still renders safely.
  • Context: docs/superpowers/specs/2026-07-14-component-make-model-catalog-design.md sketches the full make/model catalog (component_make, a component_type genus tree, component_model, and component.model_id) as four independent vertical slices; this is slice 1, make alone, with no dependency on the tree or the model layer. A review pass on the first cut of the console page (Task 4) found the missing website-scheme check as a stored-XSS gap before this shipped, closed in the same slice rather than carried as a follow-up.
  • Divergences logged: the design sketch’s origin official | seed | custom enum is not what shipped; official boolean did, per (1) above. The design’s delete-refused-while-referenced rule is not enforced yet; per (2), it is deferred to the component_model slice that gives it something to check.
  • Lands: epic #254, issue #255. Design: docs/superpowers/specs/2026-07-14-component-make-model-catalog-design.md. Plan: docs/superpowers/plans/2026-07-14-component-make-registry.md.

ADR-0032: the required permission is published per route, and the permission universe is route-derived

Section titled “ADR-0032: the required permission is published per route, and the permission universe is route-derived”
  • Date: 2026-07-17 | Status: Accepted | Pages: identity and access, API, Access guide
  • Decision: Every capability-gated route registers through one helper, gated(op, tokens...), which sets the authn + require middleware (unchanged enforcement), stamps the operation with an x-omniglass-permission OpenAPI extension, and records the permission in an in-process registry. The required permission for each request is therefore published in the generated api/openapi.json, and the permission universe (the deduped set of every stamp) is derived from the routes, not a hand-kept catalog. GET /roles reports the universe plus, per role, the held subset (resolved by the same rbac.Set.Allows matcher as the effective set), and the console role blade renders it as a net Held / Missing / All view. Two build-time guards keep it honest: a published-gate guard (every gated route is stamped, allow-listed routes are not, so “gated” and “published” are the same set) and a seed-drift guard (every seed-role grant resolves into the universe or sits in an explicit aheadOfRoutes allow-list).
  • Context: the authz contract already existed (require(...) enforced a permission on every route) but lived only in Go middleware, invisible to the spec, the clients, and any reader; and a role blade could show only what a role granted, never the capabilities it lacked. Three options were weighed for the universe source: a hand-kept catalog YAML (drifts), a runtime-only set (invisible in diffs), and the route-derived stamp (self-maintaining, reviewable in the committed spec, exactly the enforced surface). The stamp won because it makes the universe fall out of the API-first pipeline with no second source to drift. Held is resolved server-side so the single rbac matcher is not duplicated in the SPA. Grants that resolve to nothing (for example alarm:*, interface:* before those subsystems have HTTP surfaces) are legitimate but ahead of their routes; they show as held-nothing and are allow-listed until the route lands.
  • Lands: issue #272 under epic #27. Design: docs/superpowers/specs/2026-07-17-net-permissions-role-blade-design.md.

ADR-0033: settings persist only the override level; base layers are recomputed in memory

Section titled “ADR-0033: settings persist only the override level; base layers are recomputed in memory”
  • Date: 2026-07-17 | Status: Accepted | Pages: settings, scaling and deployment
  • Decision: The settings engine stores only the override level in Postgres (setting_override). The two base layers, the embedded code defaults and the operator file, are recomputed into memory on every boot and never written to the table, so the effective document is the in-memory base layers merged with the live DB override. Restore is therefore a DELETE: dropping a namespace’s override row (or truncating the scope) re-exposes the base defaults, with no separate reset column and no re-seed of the file into the store.
  • Context: The scaling page sketched a single settings store “materialized in Postgres … seeded declaratively from a settings file reconciled on every boot” (an ON CONFLICT DO UPDATE of the file into the table). Building the engine showed that materializing the file into the DB is the wrong shape: it duplicates the GitOps source into a second authoritative copy that can drift, and it conflates ship-with defaults (a compile-time asset) with operator changes (the only thing worth persisting). Keeping the base layers in memory makes the file always-fresh (a ConfigMap change lands on restart), keeps the store lean (it holds only what an operator actually changed), and makes restore fall out of the model as a delete rather than a re-seed. This diverges from the scaling page’s “materialized in Postgres” wording; the settings page carries the corrected model and the scaling page moves to Partial.
  • Closes: issue #271 (settings engine slice-0), under epic #270. Design: docs/superpowers/specs/2026-07-17-settings-engine-design.md.
  • Amended by ADR-0057: the model is unchanged, the level names are not: code is now default (off the axis, the setting’s own declaration) and global is now platform (the install-wide rung).
  • Amended by ADR-2223: an env level, read from OMNIGLASS_SETTING__* variables, is a base layer beside file, between it and platform, recomputed in memory on every boot as file is, so restore re-exposes it as well.

ADR-0034: the settings Gateway is unscoped; only the permission gates it

Section titled “ADR-0034: the settings Gateway is unscoped; only the permission gates it”
  • Date: 2026-07-17 | Status: Accepted | Pages: settings, storage, identity and access
  • Decision: The Storage Gateway methods for settings (GetSettingOverrides, UpsertSettingOverride, DeleteSettingOverride, DeleteAllSettingOverrides) are unscoped: no ABAC storage-scope predicate is injected. Only the settings:<action> permission at the route gates them (settings:read admin read with provenance, settings:update write / restore / lock, both admin-tier; the client-safe /settings/me is authn-only). This is a deliberate carve-out from the “scope on every applicable query” invariant, recorded so it reads as intentional.
  • Context: The two authorization layers (identity and access) are a <resource>:<action> permission on every route and an ABAC scope injected on every applicable query. Platform and cascade settings describe the platform and its principals, not the estate, so there is no location / system / component subtree to scope them by, exactly as with the registry-type reads (GET /types/...), which are also unscoped. Forcing a scope predicate here would be meaningless (there is nothing to filter on) and would misrepresent settings as estate data. The carve-out is narrow: it applies only because the data is platform config. When the group and user override rungs land, override reads and writes will be constrained by the acting principal (a user edits only their own user row), but that is a per-principal ownership check, a different mechanism than estate ABAC, not a return of tree scope.
  • Closes: issue #271 (settings engine slice-0).
  • Amended by ADR-0057: the model is unchanged, the level names are not: code is now default (off the axis, the setting’s own declaration) and global is now platform (the install-wide rung).

ADR-0035: settings resolve as a cascade over principals with a broader-wins lock

Section titled “ADR-0035: settings resolve as a cascade over principals with a broader-wins lock”
  • Date: 2026-07-17 | Status: Accepted | Pages: settings, cascade
  • Decision: A setting’s effective value resolves down the principal hierarchy (global to group to user), reusing the same cascade primitive the estate uses down location to system to component: ordered layers deep-merged in JSON map-space (most-specific-wins by key presence), with per-key provenance (the winning level) reported alongside the value. Layered on top is a top-down lock: an admin locks a key at a level, pinning that level’s value and forbidding any more-specific level from overriding it, and when two levels lock the same key the broader level wins (a global lock supersedes a group lock, so top-down admin authority is absolute). Slice-0 ships the global rung; group and user are a fast-follow.
  • Context: Omniglass already had one cascade resolver (the estate’s secrets / variables / tags / config, config and credentials). Rather than write a second resolver for settings, the engine points the same primitive at the identity axis (doctrine 5, primitive-first): a value defined once at a broad scope inherits below, which is exactly the reuse a variable-reference model (Windmill-style) would buy, provided here by inheritance for free. The lock is the piece the estate cascade did not need: settings are governance (an admin enforcing an org default a user cannot escape), so the engine adds a per-key lock with a broader-wins conflict rule, the inverse of the most-specific-wins value rule, applied to the enforcement axis. Provenance reuses the estate’s effective-values vocabulary (the winning level per key), extended from three estate bands to five principal levels plus a lock chip. The pure settings package is the primary unit-test target; the DB override is supplied through a narrow function seam so the package never imports storage.
  • Closes: issue #271 (settings engine slice-0), under epic #270.
  • Amended by ADR-0057: the model is unchanged, the level names are not: code is now default (off the axis, the setting’s own declaration) and global is now platform (the install-wide rung).

ADR-0036: A node is a kind=node principal with an interim bearer credential and static per-connection NATS subject permissions

Section titled “ADR-0036: A node is a kind=node principal with an interim bearer credential and static per-connection NATS subject permissions”
  • Date: 2026-07-07 | Status: Accepted | Pages: nodes, identity and access
  • Decision: A node is a first-class principal of kind='node' with a 1:1 node detail table (keyed by principal_id, alongside human and service), exactly as identity and access describes. Its name is not null unique on the detail table and stays the estate address the collection FKs (interface.node_name, task.node_name, metric_datapoint.node_id) reference. The node runtime ships with two deliberate calls that diverge from the present-tense design, both reversible in a later hardening slice. (1) The node’s credential is a bearer credential row on its principal, minted, stored (only as sha256), and verified through the same helpers a service bearer token uses (AuthenticateBearer), and the enrollment token doubles as the node’s NATS password (a shared secret), rather than being a single-use bootstrap exchanged for a distinct long-lived credential. The decentralized nkey/JWT operator-account model that identity and access describes for nodes (a nats credential kind, a signed nonce, a JWT carrying the node’s subject permissions) is deferred; the credential kind CHECK is not widened for it here. (2) Per-node NATS isolation is static per-connection subject permissions: the embedded nats-server runs an in-process CustomClientAuthentication callback that resolves each connecting node by name, verifies its bearer credential, and registers a user whose publish/subscribe grants are scoped to that node’s own og.v1.*.<node> subjects, so a node cannot publish or pull as another.
  • Context: Checkpoint 2 of the reachability slice needed a real, negatively-tested per-node isolation mechanic against an embedded server, without carrying the full JWT/nkey machinery a single slice should not. The auth-callback path adds per-node users dynamically at enrollment time with no config reload, which is the simplest mechanism that keeps the isolation invariant real: the negative test proves node A cannot use node B’s subjects (and a confused-deputy reply cannot forge another node’s liveness), and a wrong credential is rejected at connect. The subject encodes the node name in its last token and the callback grants only that node’s subjects, so the subject is the transport isolation boundary (the payload-owner admission fence is a later checkpoint). Modeling the node as a kind=node principal (rather than the standalone table an earlier checkpoint built) puts it on the shared identity spine from the start: it has a real principal_id so it can be an audit actor, its credential rides the audited human/service machinery, and only the credential scheme (interim bearer vs nkey/JWT) remains to tighten. JetStream is enabled on the server now (it boots and shuts down cleanly), but the control-plane messages (worklist, heartbeat) are JSON over core NATS; the protobuf telemetry Event over JetStream is the next checkpoint.
  • Closes the gap: the nkey/JWT node identity (the nats credential kind and the signed-nonce admission) and the single-use enrollment token are tracked with the node-identity hardening slice.

ADR-0037: Telemetry is a protobuf Event over JetStream with an inline owner-confining consumer

Section titled “ADR-0037: Telemetry is a protobuf Event over JetStream with an inline owner-confining consumer”
  • Date: 2026-07-07 | Status: Accepted | Pages: collection, datapoints
  • Decision: A node ships each collected batch as a protobuf Event (proto3, proto/og/v1/event.proto, since renamed to TelemetryBatch in proto/og/v1/telemetry.proto, #424, Event + Datapoint messages only, no gRPC service) published to og.v1.telemetry.<node>. This is omniglass’s first protobuf; the wire is generated with protoc + protoc-gen-go via a gen-proto stage on make gen, and the generated event.pb.go is committed. The server hosts a JetStream stream (OG_TELEMETRY over og.v1.telemetry.*) and a single durable consumer (og-telemetry-worker, AckExplicit) whose handler, per Event, derives and writes inline: it decodes the batch, resolves the owner as the task’s interface component, confines the node to its own tasks, applies reject-not-project against the datapoint_type registry, writes the surviving typed rows through the checkpoint-1 InsertMetricDatapoints path (owner_kind=component, provenance=observed), and acks. A permanent condition (an undecodable payload, or an orphan the confinement fence drops) is terminated/acked so it is not redelivered; only a transient failure (a DB error) is left unacked so JetStream redelivers. The node stamps no component identity: its only assertion is the publishing subject (its own name) plus the task_id; the server binds and confines.
  • Context: The prior (v2) design split telemetry into a hot path that persisted a raw event to a telemetry table and an async Postgres queue worker that derived from it. Checkpoint 3 deliberately collapses that split: the JetStream durable consumer is the at-least-once worklist, so there is no raw-telemetry table and no Postgres queue in this checkpoint; the handler derives, confines, writes, and acks in one place. This keeps the reachability slice small while keeping the two invariants real and negatively tested: a node cannot land a datapoint for a component it holds no task for (an Event carrying another node’s task_id is orphan-dropped, no row written), and an unregistered datapoint name is dropped, not projected. Owner binding is the interface-prebind path only (task -> interface -> component); there is no separately-authored transform_rule (omniglass has none), so label-based multi-owner routing, discovery rules, and node-self binding are a later checkpoint.
  • Closes the gap: raw-Event persistence (backfill/replay) and the raw -> admission -> trusted two-lane topology, plus label-based multi-owner resolution, are tracked with a later collection checkpoint.

ADR-0038: The reachability verdict is a built-in state

Section titled “ADR-0038: The reachability verdict is a built-in state”
  • Date: 2026-07-07 | Status: Accepted | Pages: datapoints, collection
  • Decision: The per-interface reachability verdict interface.reachable (value domain up / down) is a first-class state datapoint, not a metric, seeded as an official datapoint_type at kind=state, value_type=text, validation: {values:[up,down]}. It is gated per interface: the verdict is the AND of that interface’s applicable probe results (for the inline tcp/icmp interfaces this is degenerate, one probe drives the verdict; it generalizes to an interface with several probes). The node computes it after running the interface’s probe(s) and emits it as an observed state datapoint instanced by the interface; the ingest consumer routes by the registry kind (a metric name to metric_datapoint, a state name to state_datapoint) after the same owner-confinement and reject-not-project, so a foreign or unregistered state is dropped identically to a metric. The series is transition-only: the node remembers the last verdict per interface and emits only on a flip or first observation, and the ingest side re-guards by skipping a write whose value equals the latest stored value (the net for a node restart). Availability is time_in_state over this state (health’s primitive one tier down), a later slice; the raw probe metrics (tcp.open, icmp.reachable, the rtts) keep emitting unchanged. Readiness config (an ssh command + regex, an snmp OID) is an interface-type default, interface-overridable concern executed on the node, not a server-side calc_rule; 5a builds no readiness-config column, its verdict is the inline probe result.
  • Context: Reachability history is only honest if the verdict is a dwell-measurable signal: availability is time-in-state, which needs a categorical state with transitions, not a numeric sample per tick. Modelling the verdict as a metric would conflate the raw per-probe reading (tcp.open, a firehose sample) with the interface-level judgement (an availability substrate), and it would make time_in_state a re-derivation over a numeric series rather than a read over the state’s own transitions. Making it a state, and computing it at the node as the AND of the interface’s probes, keeps the verdict where the probe results are, keeps the raw metrics untouched, and lets the read side reconstruct the availability strip directly from state_datapoint.
  • Divergence: checkpoint 1 seeded the datapoint_type canon metric-only (the reachability probe metrics), and cp3’s ingest consumer assumed every surviving datapoint was a metric (InsertMetricDatapoints for all). This entry records the divergence: 5a adds the first state to the seed and makes the ingest consumer route by kind (the cp3-deferred “route by kind, not assume metric” note now come due). The state_datapoint table mirrors metric_datapoint (same owner exclusive-arc, same lineage CHECK) with a categorical value text plus an optional value_json.
  • Closes the gap: the availability SLI (time_in_state over interface.reachable) and the operator surfaces that render the transitions are a later slice (5b); readiness config as an interface-type default is a later interface-type concern.

ADR-0039: An interface is a device API; the interface type is its transport, not its driver

Section titled “ADR-0039: An interface is a device API; the interface type is its transport, not its driver”
  • Date: 2026-07-08 | Status: Accepted | Pages: collection, nodes
  • Decision: An interface is an API endpoint we intend to call on a component, identified by the protocol it speaks (web, qrc, ttp, snmp), not a network interface; a host or IP is a variable it consumes, not its identity. It is named by that protocol and is unique within its component (unique(component, name)), never a hand-typed label. Two axes are decoupled: the transport (how bytes move) and the driver (the protocol handler that produces the normalized functions and datapoints). interface_type is the transport (ssh, tcp, http, snmp, udp, telnet, icmp): a node-side wire capability that also carries the default reachability probe (tcp/ssh/http open the port, icmp pings). Reachability is the first gate of a ladder (reach to auth to responds to collecting) and needs only the transport. A driver is the collect layer: a protocol handler plus the transport(s) it can run over plus the normalized catalog (functions and datapoints, how to fetch them as commands/OIDs/paths, parse, a version). The same handler can run over several transports (a CLI over ssh or telnet), so the driver declares its transports and the instance picks one; a genuinely different grammar over a different transport (an ssh CLI vs a tcp JSON-RPC) is a different driver producing the same catalog. Device-specific fetch detail lives in the driver, never the template: snmp is the transport, a biamp-snmp (or generic-snmp) driver holds the OID map. The entities then split on CAN / SHOULD / IS: the driver owns what a device family CAN do and how (transports, catalog, normalization, discovery rules, version); a template (per model) owns what an operator SHOULD watch and how it looks (curate the driver’s menu to a default subset, thresholds and event rules, an icon); the interface instance owns what IS actually there (transport, host, credentials, a driver when it collects, the discovered subset, per-device overrides). Discovery is a driver rule whose result lands on the instance; filtering-for-choice is a template default plus an instance override; capability is the driver. The reusable driver is data on one generic engine (a declarative canonical datapoint <- fetch <- parse), official or org-custom via the (namespace, id) shadow registry, with a pluggable-Go escape hatch only for a wire the engine cannot express; a “device pack” bundles a driver plus a template, and a template declares its driver deps (version-pinned) so a missing or shadowed driver surfaces, never silently misbinds. The house <entity> / <entity>_type pattern holds: interface_type is the transport (a reachability interface’s type genuinely is its transport), and driver earns its own registry (SNMP and multi-transport protocols prove it folds into neither transport nor template).
  • Context: The 5a build named interfaces by a hand-typed string (boardroom-tcp) with type = the probe (tcp/icmp), which conflated identity with transport and implied operators name and wire-configure devices by hand. The reframe: operators are not programmers, so the value is a driver that normalizes a device family into a pick-from menu, which makes the template a light curation, policy, and presentation layer and means the operator never authors a protocol. You cannot cleanly split “how you talk” from “what you say” (the command is both), so the seam is elsewhere: the transport is the reusable connection, the driver is the reusable normalized menu over it, and the template is a selection plus policy. Keeping the driver as data (not Go per family) is what makes it community-shippable; growing the canonical menu device-by-device (not a universal ontology up front) is what keeps it honest; separating menu-of-types from discovered-instances is what fits programmable devices (a DSP’s blocks are per-install); versioning the driver is what lets a template’s picks resolve as the menu matures.
  • Scope now (tier-0): this slice (#114) ships only the first gate. interface_type is the transport primitive (icmp, tcp, ssh, http seeded built), each carrying a tcp-connect or ping reachability probe; an interface is named by its protocol and typed by its transport; the dev seed models a lab polaris DSP with a web (http) and a qrc (tcp) interface, the “two APIs on one device” story. The driver catalog, normalization, discovery, templates, versioning, and the shadow-resolved device pack are later slices of the collection epic (slices 2 to 4 realize this model).
  • Refines: ADR-0038 (the reachability verdict is the first rung of the gate ladder this ADR names).
  • Status note (2026-07-08): the interface = API / interface_type = transport half is built and stable (this slice). The driver / collect layer (the separate driver entity, the normalized menu, and the driver-centric split itself) is under active design: it departs from the original template-centric architecture (where protocol handling lived in the template), which is a serious enough change to redesign deliberately rather than on momentum. Recorded here as the current-best direction, not a locked gate; driver-centric vs template-centric is re-examined, and this ADR revised or superseded, in a later ADR before the collect layer is built.

ADR-0040: The task is derived read-only plumbing, projected from its interface

Section titled “ADR-0040: The task is derived read-only plumbing, projected from its interface”
  • Date: 2026-07-14 | Status: Accepted | Pages: collection, api
  • Decision: The interface is the only authored collection primitive; the task is derived. Creating an interface derives its one poll task, so the task surface is read-only (GET /tasks, GET /tasks/{id} only): the POST / PATCH / DELETE /tasks routes and the task:create / task:update grants are removed. A task carries no node column; task.node_name is dropped and its placement is projected from interface.node_name, so the worklist and the telemetry owner-confinement join the interface rather than reading a task-local node. A node purge cascades its interfaces and their derived tasks (interface.node_name and task.interface_id are ON DELETE CASCADE).
  • Context: The checkpoint-5d build gave both primitives a full CRUD surface and a node placement of their own. That let an operator author a task divorced from its interface, and left a task’s node and its interface’s node as two independently-set fields that could disagree. The reframe makes the interface the one thing an operator authors (an API on a component, ADR-0039): a reachability check is an interface, its poll task is the plumbing that runs it, and placement is a property of where the interface is reached from, stated once. This is the honest shape for the reach tier; the richer driver-authored collection surface (multiple functions over one interface) is a later slice and does not reintroduce operator task CRUD.
  • Refines: ADR-0039 (the interface is the authored API; this ADR settles that its task is derived, not co-authored).

ADR-0041: settings are a reflected typed struct with generated client and server validation

Section titled “ADR-0041: settings are a reflected typed struct with generated client and server validation”
  • Date: 2026-07-19 | Status: Accepted | Pages: settings
  • Decision: A setting is declared once, as a tagged field on a canonical Settings Go struct (internal/settings/schema.go), and that single declaration is the whole source of truth. Reflection over the struct produces the code defaults layer (Defaults(), from each leaf’s default: tag) and the namespace registry (Namespaces(), from the json and settings: tags), replacing the hand-kept embedded defaults.yaml and the hand-kept Namespaces() slice (both retired). Huma reflects the struct into the OpenAPI schema, so make gen yields the typed SPA client values (a Settings struct, not a free-form object). Writes validate against that same reflected schema on both sides: the server backstops PATCH /settings/{namespace} (unknown namespace to 404, unknown key / wrong type / enum or pattern violation to a 422 naming the namespace.key, null allowed as a delete), and a make gen step slices the field constraints out of api/openapi.json into a committed client artifact (web/src/api/settings.schema.gen.ts) that drives inline form validation (enum-as-select, Save blocked while invalid). The cascade merges partial generic maps as before; typing lives only at the edges (the effective read unmarshals into Settings, and Go code reads a setting through the EffectiveTyped accessor).
  • Context: Slice-0 shipped the engine with untyped values: a setting lived in two hand-kept places (the Namespaces() slice and the embedded defaults.yaml), the API exposed values as a free-form object, the generated client typed it as Record<string, unknown>, and the PATCH write accepted any namespace, key, or value and stored it as-is (the documented write-validation thin cut). That is the one surface that dodged doctrine 1 (API-first, typed, generated). Making Settings a reflected struct pulls the default, the schema, the typed client, both validators, and the typed accessor from a single declaration, so adding a setting is one tagged field and there is no second place to drift. The cascade keeps merging partial maps because a Go struct cannot express “unset” versus a zero value; typing is applied only at the edges. This closes the slice-0 write-validation thin cut and retires the defaults.yaml asset and the Namespaces() list.
  • Deferred: the declarative operator-file machinery (a generated JSONSchema for the operator settings.json, validation of the file layer at boot, and letting the file layer take precedence over the database, the GitOps-wins / read-only lever) is a future slice on the same epic, as are operator-open namespaces (a typed map with a Default() method) and the group and user cascade rungs; none is built here.
  • Closes: issue #288 (settings engine slice-1), under epic #270.

ADR-0042: Field cascade and the type-default floor

Section titled “ADR-0042: Field cascade and the type-default floor”
  • Date: 2026-07-19 | Status: Accepted | Pages: config, secrets, and variables
  • Decision: A field’s resolved value is deepest-set-wins down the field arc product -> location -> system -> component: a value set at any scope beats every broader scope. When nothing is set at any scope, the value falls to the field’s type default. The type default is therefore the floor of the cascade, not a competitor to it: a value set at any higher scope always beats the default, and no cascade rule is bent to make that true. Raised during design as “does a value set higher in the cascade beat the type default?”, the answer is yes, and it costs the model nothing, because the default is simply the bottom rung.
  • Context: The override-rendering slice needed the resolution rule pinned before the renderer could say what “inherited” means. Modelling the type default as a competing scope would force an ordering question at every read (does a location value or the type default win?); modelling it as the floor removes the question: any set value at any scope wins, and the default is what remains when the arc is empty. This slice is component-only: resolved = this component’s set value, else the type default, so the deeper arc (product, location, system) is drawn in the model but not yet walked. The multi-scope cascade itself lands later.
  • Closes the gap: the multi-scope cascade is tracked by #291; this ADR settles only the resolution rule and the type-default floor.
  • Amended by ADR-0057: the resolution outcome is unchanged (any value set at any scope beats the default, and the default is what remains when the arc is empty), but the default is off the axis, a column on the definition row, rather than the cascade’s bottom rung. The vocabulary moved; the rule did not.
  • Date: 2026-07-19 | Status: Accepted | Pages: config, secrets, and variables
  • Decision: The datapoint_type catalog is generalized into a primitive-agnostic property catalog: one typed catalog whose entry (a property) is a canonical, typed name that a datapoint observes and a field declares, identified by a key (its canonical name). The physical table is property; the concept, the API resource (/properties), the Go Property type, and the console all read property, while a property’s identifier (its key, and the field_definition.key reference) stays key. Four shape changes fold datapoint_type in: the unused (scope, name) ladder (org/template never had an operator write path, template_id was a dangling column) collapses to a name primary key plus an official boolean (seed-owned rows are read-only); value_type becomes data_type over the unified set {string, int, float, bool, json} (text backfills to string, bool is added); kind (metric/state/log) becomes nullable, since a declared-only attribute property has no observed kind; and validation is a JSON Schema fragment (pattern/enum/minimum/ maximum and, for a json-typed property, a nested object schema), enforced by Huma’s own validator with the stored schema loaded through yaml.v3, so there is no new dependency. Value and source tables continue to key by the name string (no foreign key, reject-not-project at ingest exactly as before), so the rename is behavior-preserving: the collection registry, the reachability BFF, and the metric/state sinks keep working unchanged.
  • Context: Datapoints already had a typed canonical-key catalog (datapoint_type: name, value_type, display_name, unit, validation, kind), while fields, variables, secrets, and tags had no catalog at all, an operator typed a key and it was registered nowhere. Rather than build a parallel table, this slice makes the one catalog primitive-agnostic so serial_number is the same concept whether a device reports it (observed, a datapoint) or an operator types it (declared, a field). The official boolean chassis is chosen over finishing datapoint_type’s never-built scope-shadow precedence: it is the proven, finished model the *_type registries already use.
  • Values reference the key, not a <primitive>_key layer: the only binding is the type-schema (field_definition gaining a key reference so a field draws from the catalog), which is PR-B, not this slice. Provenance rides the value (an observed metric versus a declared field value share the key), so reconciliation of declared-versus-observed sources needs no middle table; it is deferred.
  • Deferred: the field_definition.key reference (PR-B); the type-schema editor (how a component_type selects properties); reconciliation (the declared-versus-observed drift signal); a console editor for the validation JSON Schema (set via the API for now); variables/secrets/commands/tags adopting a key reference; and an operator shadow of an official property.
  • Closes: issue #297 (the field catalog, expanded to the property catalog), under epic #266.

ADR-0044: The component classification catalogs

Section titled “ADR-0044: The component classification catalogs”
  • Date: 2026-07-20 | Status: Accepted | Pages: core entities
  • Decision: The component_make catalog is generalized into a vendor catalog carrying a kind (manufacturer / integrator / developer), so the one organization that makes, integrates, or writes for a component is a single reference entity rather than a make-only registry. Two new leaf catalogs join it as the rest of the component-classification reference data: a driver (id, display_name, version, the software that speaks to a component) and a capability (id, display_name, a thing a component can do). Each of the three is a gated CRUD Catalog console page (/vendors, /drivers, /capabilities), reusing the official-boolean chassis the type and property registries already use: seed-owned official rows are read-only (an official row refuses update and delete, 422), a custom row is full CRUD gated by the resource’s <resource>:create / :update / :delete permission and audited in the same transaction. The official rows are seeded at boot. This is a pure classification slice: product (the specific model an organization sells), the product_capability link, and the component.product pointer that binds a component to its product are the next slice, not this one.
  • Context: The estate model is shifting from the make/model catalog sketch toward a fuller classification vocabulary: property / event / command on the signal side (property landed in ADR-0043) and vendor / product / driver / capability / standard / role / health on the component side. This is PR2 of that shift. component_make was manufacturer-only, but the same organization concept covers an integrator who installs the estate and a developer who writes a component’s software, so generalizing make into a kind-tagged vendor is the honest widening rather than three parallel organization registries. Driver and capability are leaf catalogs (no tree, no cross-references yet), so they ship as the plain seeded-plus-CRUD pattern the registries already prove; they gain their bindings (a driver to an interface / product, a capability to a product) when the product slice gives them something to reference.
  • Deferred: product, product_capability, and component.product (the next slice); a referential delete guard on vendor / driver / capability (nothing references them yet, exactly as component_make shipped with no guard until component_model was to land); and an operator shadow of an official row.
  • Refines: ADR-0031 (the component_make registry is renamed and generalized to vendor with a kind; its official-boolean, deferred-delete-guard, and website-scheme-validation calls carry over unchanged).
  • Date: 2026-07-20 | Status: Accepted | Pages: core entities, Products guide
  • Decision: product is a first-class catalog entity, the concrete SKU (a Cisco Room Bar, a Samsung QM55) that ties the ADR-0044 leaf catalogs together. A product carries a stable id and display_name, a kind from a fixed enum (device / app / service / vm, default device, enforced by a DB CHECK and at the API edge), an optional vendor_id (who makes it) and driver_id (what talks to it), an optional parent_product_id (a self-reference: a variant points at its base product), and the official boolean the type and classification registries already use. The capabilities a product provides are a many-to-many set in the product_capability join (a video bar provides microphone, speaker, camera, codec); setting capabilities on an update replaces the whole set. It is a gated CRUD Catalog console page (/products) on the same chassis as the leaf catalogs: seed-owned official rows read-only (update and delete 422), custom rows full CRUD gated by product:create / :update / :delete and audited in the same transaction, official rows seeded at boot. Crucially, component.product_id (on delete restrict) now points a component at the product it is: the product is the source of a component’s shape (its vendor, driver, and capability set), replacing the component_type-as-shape notion. The restrict FK is the referential guard the leaf catalogs deferred: a product still referenced by a component cannot be deleted (409). The vendor, driver, and parent FKs are on delete set null instead (deleting a vendor nulls a product’s pointer, it does not block).
  • Context: The estate model is shifting toward property / event / command on the signal side and vendor / product / driver / capability / standard / role / health on the component side. ADR-0044 landed vendor, driver, and capability as leaf catalogs with nothing to reference them; product is PR3, the layer they were built for and the first consumer of all three. A component’s shape used to be a job for a component_type genus; binding a component to a product instead makes the shape data-driven from the SKU (the same product supplies the same vendor, driver, and capabilities to every component that is one), which is why component.product is a restrict FK, not set null: a product in use is load-bearing for its components.
  • Deferred: a product’s own template or field-schema binding; and the remaining component-side catalogs (standard, role, health).
  • Supersedes: the component_type-as-shape notion (a component’s shape now comes from its product, not its genus type). Consumes ADR-0044 (product is the product layer that ADR deferred; it references vendor, driver, and capability). One divergence from the leaf catalogs’ prediction: their deferred delete guard lands only as the component.product restrict (409), while a product’s own vendor / driver references null out (on delete set null) rather than blocking the referenced row’s delete.
  • Date: 2026-07-20 | Status: Accepted; superseded in part by ADR-0066 (the log-to-event ingest promotion and the seeded log.line type were removed) | Pages: core entities, datapoints, data collection, API, Nodes and reachability guide
  • Decision: A collected log-kind observation now has a durable home. A new event table is the log-kind sink of the collection pipeline, the counterpart of metric_datapoint / state_datapoint: where a datapoint records a sampled present value, an event records a past occurrence (a device log line, a structured frame). It carries the same datapoint owner exclusive-arc (owner_kind plus component_id / system_id / location_id / node_id, one-set CHECK) and the same provenance vocabulary (observed / calculated / intended / declared, default observed) as the datapoint sinks, plus a message (text) and structured attributes (jsonb). The ingest consumer’s deriveDatapoints now returns metrics, states, and events, and the persistence path calls InsertEvents: a log-kind datapoint that used to be dropped at ingest (it had no sink) is routed to event, riding string_value (its message) or json_value (its attributes), under the same owner-confinement and reject-not-project gates as the metric and state sinks. A boot-seed property log.line (kind log) is the canonical log-kind starter. The reserved event_id columns on metric_datapoint and state_datapoint are closed into real foreign keys to event(id) (on delete set null), so an intended-provenance datapoint references the event that produced it. Storage adds InsertEvents (batch, in-tx, provenance observed) and ListComponentEvents(name, since, limit) (newest first); the read route GET /components/{name}/events (operationId list-component-events, gated component:read, non-disclosing 404 out of scope) returns the last 24 hours, capped at 200, and is the log-kind mirror of the reachability read. The console component detail page gains an Events panel over it.
  • Context: The estate model is shifting toward property / event / command on the signal side; property landed in ADR-0043. Log was already a first-class datapoint kind in the registry, but the ingest consumer had no sink for it: a log-kind datapoint was silently dropped after the metric/state route split (ADR-0038), a checkpoint gap rather than a design choice. This is the P1 follow-up of the estate-model roadmap: give the log kind a durable home so the third sink flows like the other two, and close the event_id stubs the datapoint tables reserved for exactly this. Reusing the datapoint owner-arc and provenance (not a bespoke shape) keeps a log occurrence owned, addressed, and traced identically to the values beside it, the primitive-first move.
  • Deferred: the datapoint -> sample rename (a naming cleanup that lands in a later slice, so the datapoint tables keep their current names here); property_value and the materialized current-value store (the fold-fields slice); the normalized event_type registry and the promotion of a raw event occurrence into a registered event (events); a scope-wide event read (this ships the per-component read only); and any calculated / intended / declared event producer (the write path is observed collection only).
  • Supersedes: the checkpoint behavior where a log-kind datapoint had no sink and was dropped at ingest (recorded in ADR-0038); the log kind now persists to event. Divergence from datapoints: that page’s present-tense design routes the log kind to a log_datapoint table and treats event as a strictly normalized, event_type-registered occurrence promoted from a raw line. The built log sink is the event table directly (the raw occurrence lands there, not in a separate log_datapoint table), and the log_datapoint table plus the promotion ladder stay Design; the pages carry an inline note pointing here until the two models are reconciled in the fold-fields / rename cleanup.

ADR-0047: The fields fold: product_property and property_value

Section titled “ADR-0047: The fields fold: product_property and property_value”
  • Date: 2026-07-21 | Status: Accepted; superseded in part by ADR-0085 (the component_type registry returns, reshaped above the product) | Pages: core entities, config, secrets, and variables, API, Properties guide, Products guide
  • Decision: The standalone fields feature is retired and folded into the estate model, because a field was never a primitive: it was a property with declared provenance, and the same is true of config (a property with intended provenance). Two tables replace it. product_property is the product’s declared-property contract: (product_id -> product, property_name -> property, default_value jsonb, required bool), unique per (product, property), so what a product’s instances expose is data on the SKU rather than a catalog hung off a genus type. data_type and validation are not duplicated here; they stay in the property catalog, the single source. property_value is the value store: it carries the same owner exclusive-arc as metric_datapoint and event (owner_kind plus component_id / system_id / location_id / node_id, one-set CHECK), plus property_name, an instance discriminator, a provenance (observed / calculated / intended / declared, default declared), and a jsonb value. Its series key is unique nulls not distinct, since the arc leaves three owner columns NULL and Postgres’s default NULLS DISTINCT would let duplicate rows through. This slice writes only owner_kind=component with provenance=declared; the rest of the arc and the other three provenances are the seats later producers sit in. The resolver is EffectiveProperties(component, scope), one SQL UNION of two arms: the contract arm (every product_property of the component’s product, value = coalesce(the component's declared value, the contract default), from_contract=true) and the ad-hoc arm (declared values the contract does not declare, from_contract=false), so a productless component still resolves, to its ad-hoc set alone. Six routes carry it: GET /products/{id}/properties and PUT / DELETE /products/{id}/properties/{property} (gated product:read / :update / :delete, an official product read-only 422), and GET /components/{name}/properties plus PUT / DELETE /components/{name}/properties/{property} (gated component:read / :update, ABAC-scoped with a non-disclosing 404 out of scope, audited). The console renames the operator word from Fields to Properties: a Properties panel on the component detail (contract rows, plus a dashed-bordered off contract group for the ad-hoc ones, an override toggle with an accent dot, a required property blocking Save) and a Declared properties contract editor on the product detail (declare, edit, withdraw, read-only for an official product). Retired with the feature: field_value, field_definition, component.component_type, and the component_type table itself with its routes (/types/component), its console registry section, and its seed. A component’s shape now comes from its product (ADR-0045), still optional: a productless component simply has no contract, and the category component_type used to carry (display, codec) is expressed by the capabilities that product provides. The seeded products ship a starter contract (cisco-room-bar and samsung-qm55 declare serial_number, firmware_version, and model_number with defaults), and roles.yaml drops the now-unclaimed field:* permissions, since property:* already covers the tier.
  • Context: ADR-0043 made the catalog primitive-agnostic and deferred the one binding it needed, field_definition.key, so a field could draw its type from the catalog. Building that binding forced the realization that the binding was the wrong shape: once a field’s name, type, and validation all come from a property, a “field” is a property the operator declares rather than the device observes, and the only thing left that was field-specific was where the schema hangs. The answer was already on the table: ADR-0045 made the product the source of a component’s shape, so the per-type field catalog becomes the per-product contract over the property catalog, and the field value becomes an arc-owned, provenance-tagged property value beside the samples and occurrences it sits next to. Folding is primitive-first: one value store the cascade, reconciliation, and the current-value read can all be built on, rather than three parallel ones (field_value for declared, the datapoint tables for observed, an unbuilt config table for intended).
  • Deferred: standard_property and location_type_property (the other contract owners, each waiting on its owner entity, standard and a location_type schema); the driver access/mode column on product_property (whether a driver can get, set, or only declare a property, which lands with the driver slice); the non-declared provenance producers (intended config writing a desired value, observed materializing a current value out of the datapoint stream, calculated from a rule), which the provenance column seats but nothing writes yet; the multi-owner arc on property_value (only the component arm is written and scope-injected today); and the datapoint -> sample rename, still a later cleanup.
  • Supersedes: ADR-0043’s deferred field_definition.key property binding. This is that binding, done differently: rather than a field definition gaining a key reference, the field catalog itself became the product contract over the property catalog, and field_definition retires. Also completes ADR-0045’s partial supersession of the component_type-as-shape notion: that ADR repointed shape at the product but left the table standing; this one drops component.component_type and the component_type registry outright.
  • Tracked under epic #266. This is PR5 of the estate-model shift toward property / event / command plus vendor / product / driver / capability / standard / role / health.
  • Amended by ADR-0057: the contract default is unchanged, its vocabulary is. coalesce(the instance's set value, the contract default) is the fall-through to a declaration, not the bottom rung of a cascade, so product_property.default_value (and its two siblings) is the shipped instance of the off-axis default rather than a tier under platform.
  • Partially reversed by ADR-0085: this ADR’s retirement of component.component_type and the component_type registry stands; naming and rendering (a generated component name needs a device-class stem the product’s SKU cannot supply) forced the registry’s return, deliberately reshaped: above the product (product.component_type_id), not beside the component and not a second classifier the component itself carries. What this ADR actually decided about product_property and property_value is untouched; only the “and the whole component_type registry retire” clause is reversed.

ADR-0048: The standard blueprint and the template-fork seed model

Section titled “ADR-0048: The standard blueprint and the template-fork seed model”
  • Date: 2026-07-21 | Status: Accepted | Pages: core entities, API, identity and access, storage, Standards guide, Types guide, Properties guide

  • Decision: Three moves land together, because each one only makes sense with the others.

    1. system_type is promoted to standard. A standard is the blueprint a system conforms to (huddle room, classroom, auditorium): the system-side counterpart of product, not a label hung off a system. The table is renamed and gains parent_standard_id (a variant points at its base, mirroring product.parent_product_id) and a declared-property contract. system.system_type becomes system.standard_id and is now optional, exactly like component.product_id: a one-off system that conforms to no standard is first-class and carries only its own ad-hoc values. The seeded rows carry over unchanged. Because a standard now owns a contract, it leaves the shared type:* registry permission and takes its own standard:read / :create / :update / :delete Catalog resource (read on the viewer *:read floor, the writes at the admin tier, exactly like product:*), and its routes move from /types/system to /standards.

    2. Two more contract tables, and one owner-generic resolver. standard_property and location_type_property join product_property on the identical shape (<classifier>_id, property_name, an optional default_value, a required flag, unique per pair). data_type and validation are never duplicated onto a contract; they stay in the property catalog. The resolver then generalizes: EffectiveProperties(ctx, ownerKind, ownerID, read) resolves component, system, location, and node off one parameterized SQL template driven by an ownerContract table (instance table, classifier column, contract table, contract key, arc column). Component reads its contract through component.product_id, system through system.standard_id, location through location.location_type; a node has no classifier, so it resolves ad-hoc values only. The query shape is unchanged from ADR-0047: a contract arm (coalesce(the instance's value, the contract default), from_contract=true) UNION an ad-hoc arm. This is the primitive-first move: three classifier/instance pairs, one resolver, so they cannot drift. Alongside it, guardOwnerScope now scope-checks every owner arc on a value write (it previously returned nil for everything but the component arc), so an out-of-scope system or location is a non-disclosing 404 on the write path as well as the read.

    3. The seed model: templates live in code, not the database. A standard (and a location type) is created by forking an in-code template. The fork is one-time, with no inheritance, so nothing in any tenant ever points back at a template and templates can be improved in any release. That dissolves the shipped-defaults-versus-local-edits problem at the root: the thing the vendor updates (the template) and the thing the operator owns (the row) are never the same object. Four consequences follow.

    • Forking applies to template -> standard, not standard -> system. A system does not fork its standard, it conforms to it, with live inheritance: the standard’s contract default resolves for every conforming system until that system overrides it, and revising the default moves every system that has not.
    • Therefore a shipped standard or location type is operator-owned, not official. Both seed with official: false through seed-if-absent paths (SeedStandard / SeedLocationType, ON CONFLICT DO NOTHING), never the authoritative Upsert*. They are freely editable and deletable from the moment they land.
    • An authoritative upsert here would be a bug, not a policy. ON CONFLICT DO UPDATE would silently revert an operator’s edit on the next boot, which is the exact failure this model avoids. A regression test edits a seeded standard, re-runs the seed, and asserts the edit survived.
    • The canonical catalogs are the exception and keep the authoritative upsert with official: true: property (and later command and event_type) is the shared vocabulary a driver maps onto, so a release must be able to correct it. The classification catalogs (vendor, driver, capability, product, interface_type, secret_type) and role stay on that same authoritative path for now.

    Four route groups carry the contracts and the values, all regenerated into the OpenAPI document, the cobra CLI, and the typed client: GET /standards/{id}/properties plus PUT / DELETE /standards/{id}/properties/{property} (gated standard:read / :update / :delete); GET /location-types/{id}/properties plus PUT / DELETE .../{property} (gated type:*, since the location type registry is still a type registry); and the value sides GET /systems/{name}/properties plus PUT / DELETE .../{property} (gated system:read / :update) and the same for /locations/{name}/properties (gated location:read / :update). The value routes are scope-injected, so an out-of-scope system or location is a non-disclosing 404.

  • Context: ADR-0047 deferred standard_property and location_type_property because neither owner was ready: system_type was a bare label registry with no contract to hang anything on. Building that contract forced the promotion, since a registry that declares what its instances expose is a blueprint, and a blueprint is the system-side product. Making standard_id optional followed immediately: a productless component was already first-class, and a system that matches no blueprint has the same claim. The seed question surfaced during the build and is the harder half. Shipping a room standard as an authoritative official row would make it read-only (an operator could not tune “Huddle Room” to their own estate) and would revert local edits on every boot if it were writable. Both failures come from one mistake: treating example content and canonical vocabulary as the same kind of thing. Splitting them (a template in code that is forked once, versus a catalog row that is upserted authoritatively) lets the release improve its examples forever without ever touching an estate’s data, and keeps the one thing that genuinely must stay identical install to install, the property vocabulary, under release control.

  • Deferred: the in-code template mechanism itself and its create-from-template console affordance (#317); this slice ships the seed-if-absent behavior and the operator-owned rows that the mechanism will produce, with the shipped starter set still declared as seed YAML. The official / community / private catalog tiering for product / driver / property / event_type plus a disable flag (#318). Also still deferred: a standard’s role set and health composition, the non-declared provenance producers, the cross-owner cascade over property_value, and the datapoint -> sample rename.

  • Supersedes: the system_type-as-label notion (a system’s blueprint is a first-class Catalog entity with its own contract and its own permission, and it is optional), completing on the system side what ADR-0045 and ADR-0047 did on the component side. Also supersedes the assumption running through ADR-0044, ADR-0045, and ADR-0047 that everything the seed ships is official and read-only. That now holds only for the canonical catalogs: the shipped standards and the four shipped location types (campus / building / floor / room) are official: false and fully editable, so any prose promising a read-only seed-owned row for those two registries is stale.

  • Tracked under epic #266. This is PR6 of the estate-model shift toward property / event / command plus vendor / product / driver / capability / standard / role / health.

ADR-0049: The system role: capability-gated staffing and the resolved capability set

Section titled “ADR-0049: The system role: capability-gated staffing and the resolved capability set”
  • Date: 2026-07-21 | Status: Superseded by ADR-0087 | Pages: core entities, API, glossary, templates, health, Standards, Work with an entity

  • Decision: A system says what it needs filled, and the platform refuses a component that cannot fill it. Four tables and two resolvers carry that.

    1. A system_role is a slot, declared on the arc. A role (a table microphone, a main display) is declared either on a standard, where every conforming system inherits it live, or directly on one system (ad-hoc, which is how a one-off system gets roles at all). The two owners ride the same exclusive-arc pattern property_value uses: an owner_kind plus standard_id / system_id, a one-set CHECK, and a unique nulls not distinct key over the arc columns and the role name (the default NULLS DISTINCT would let duplicates through the NULL arm). A role carries a quorum: how many components should fill it, at least one, because a role no component need fill is not a role.

    2. role_capability is conjunctive. A role requires a set of capability rows, and a component must provide every one of them. Requiring nothing admits anything, which is the honest reading of an empty requirement, not a special case.

    3. A component’s capabilities become a resolved set. component_capability (component_id, capability_id, present) is the component’s own capability facts, layered over its product’s: present=true adds one the product does not claim, present=false suppresses one it does. EffectiveCapabilities(component) is then the product’s set UNION the additions MINUS the suppressions, and a productless component resolves to just its own declarations. This is the single definition of “what this component can do” for the whole platform, and it is the set the guard checks.

    4. EffectiveRoles(system) merges both arms. The roles the system’s standard declares (marked from_standard) UNION those declared directly on it, each with its required capabilities, its quorum, and the components filling it here. A one-off system has only the ad-hoc arm. The resolver serves Assigned() and Understaffed() (quorum minus assignments, floored at zero) rather than leaving arithmetic to each surface, so staffing reads the same way everywhere.

    5. The guard refuses, and the refusal names the gap. AssignRole is a 422 when the component’s resolved capabilities do not cover every capability the role requires, and the message names the missing ones (component "panel-1" cannot fill role "table-mic": missing microphone, speaker), sorted so the same gap always reads the same way. It joins the location placement constraint as a refusal on modeled grounds, and follows the same rule that one set: name the parties. A bare “no” leaves the operator nothing to do, and the whole value of modeling capability is that the refusal is actionable. Assignment is otherwise idempotent, and role_assignment.component_id is on delete restrict, so a component staffing a role cannot be deleted out from under the system.

    Eight routes carry it, regenerated into the OpenAPI document, the cobra CLI, and the typed client: GET /standards/{id}/roles plus PUT / DELETE /standards/{id}/roles/{role} (gated standard:read / :update / :delete); GET /systems/{name}/roles (the resolved read) plus PUT / DELETE /systems/{name}/roles/{role} and PUT / DELETE /systems/{name}/roles/{role}/assignments/{component} (gated system:read / :update); and GET /components/{name}/capabilities plus PUT / DELETE /components/{name}/capabilities/{capability} (gated component:read / :update). Every system and component route resolves its owner within the caller’s scope first, so an out-of-scope target is a non-disclosing 404. The shipped meeting-room standard declares room-mic (microphone + speaker, quorum 2) and main-display (flat-panel-display, chosen so the shipped Samsung QM55 can actually fill it), seeded if absent on the operator-owned lane, so an operator’s quorum retune survives a re-seed.

  • Context: The strict refusal was decided first: a role that names a requirement and then lets anything fill it is decoration. But a component’s capabilities came only from its product, and product is deliberately optional on a component (ADR-0047), so under a strict guard a productless component could have filled no role at all. Three ways out, and only one of them keeps both halves: make product mandatory (reverses a call made one slice ago for good reasons), soften the guard to a warning (throws away the point of the model), or let a component declare its own capabilities over its product’s. Layering resolves the tension without touching either commitment, and it is not a new shape: it is exactly the contract-plus-override the declared properties already use, where a product declares a default and an instance overrides it, applied to capabilities instead of values. Quorum lands in this slice and impact does not, because staffing is visible without health at all: a role wanting 2 with 1 assigned is under-staffed today, on data the operator entered, with no engine reading anything.

  • Deferred: impact (outage / degraded / none, what an unfilled or failing role does to its system) and the whole SLI rollup, which land in PR8 with the engine that reads them; the console surfaces for both arcs (the standard’s role editor, the system’s roles panel, the component’s capability editor); role-scoped config, a value declared against a role slot and resolving onto whichever component fills it (templates describes it, nothing builds it); a cap at quorum (a role may be over-staffed, and nothing refuses the extra assignment, because “more than enough” is not an error); and the system_member composition table, which stays Design.

  • Supersedes: the system_template_member role-requirement design on templates. That page still describes a role slot frozen into a system_template_version, whose requirement is a set of canonical datapoints and commands and whose instance assignment is a system_member row. What shipped puts the slot on the standard / system arc (a standard is the blueprint now, so the role belongs with it), states the requirement as a capability set (a coarser, operator-legible vocabulary that exists as a catalog today, where canonical commands do not), and records the assignment in role_assignment. Templates and their frozen BOM stay Design; the two models are reconciled when template pinning is built, and until then the built role model is the one on core entities. Also supersedes the reading, running through ADR-0044 and ADR-0045, that a capability is a product-only fact: a capability is now a fact about a component, which its product supplies a default for.

  • Tracked under epic #266. This is PR7 of the estate-model shift toward property / event / command plus vendor / product / driver / capability / standard / role / health.

ADR-0050: Health is a recorded transition, computed from the alarm-capability-role chain

Section titled “ADR-0050: Health is a recorded transition, computed from the alarm-capability-role chain”
  • Date: 2026-07-21 | Status: Accepted | Pages: health, core entities, API, glossary, Standards guide, Work with an entity

  • Decision: Health is a verdict on a system or a location, derived from what is wrong with the components staffing it and recorded as a transition at the moment it changes. Five calls carry that.

    1. Capability is the routing key, and an alarm is how a component loses one. An alarm is component-local (component_id, a severity of info / warning / critical, a message, a raised_at, and a nullable cleared_at), and alarm_capability names the capabilities it degrades. Clearing keeps the row, so the record of what was wrong and when survives the fix. The chain from there is one sentence per hop: a component satisfies a role only when it provides every required capability and none of those is currently degraded; a role with fewer satisfying components than its quorum is impaired; an impaired role contributes its declared impact (outage / degraded / none, a column on system_role, defaulting to degraded); a system takes the worst contribution among its roles, and a location the worst among the systems placed anywhere beneath it. That chain is why a capability is flat and why a role requires a set of them: capability is the only vocabulary shared by the thing that breaks (a component) and the thing that cares (a slot in a room), so it is the only honest place to route through. Impact lives on the role, not on the alarm or the component, because the same broken box matters differently depending on the slot it was filling: a dead confidence monitor is not a dead main display.

    2. The judgement is a pure package. internal/health takes resolved inputs and returns a verdict, with no database: Component.Satisfies, the quorum boundary, worst-wins at both levels, and the impact mapping are unit tests, not SQL. Two of its defaults are deliberate safety calls in opposite directions. An unrecognized impact reads degraded, so a bad value can never make an impaired role silently harmless. An unrecognized recorded value reads healthy, so one stray row cannot paint an estate broken. The rule behind both: fail loud about a judgement, fail quiet about a record.

    3. Health is recorded as a transition-only state, on state_datapoint. The requirement this whole design serves is an accurate history of the edges: exactly when a system stopped working, answerable weeks later. state_datapoint is already that primitive (the ingest path writes a row only when the value differs from the last one stored, and StateTransitions reads the ordered flips the reachability availability strip draws), so health reuses it rather than adding a history table: the owner arc, provenance='calculated', and source_rule='health-rollup' (the lineage CHECK requires a non-null source_rule). The first value for an owner is always recorded, even healthy, so a reader can tell “healthy since we started watching” from “never evaluated”.

    4. Recompute happens at the writes that can change health, in the same transaction. Every mutation that can move a verdict recomputes the affected chain before it commits: raising or clearing an alarm, assigning or unassigning a component, declaring or withdrawing a role, changing a role’s quorum or impact, changing a component’s capabilities or its product, creating a system, and changing the standard it conforms to or the location it sits in (recomputing both the old and the new location, since the one it left may have just improved). A read never writes. Two alternatives were considered and rejected, and both fail the same requirement. Compute-on-read keeps no history at all, so “when did this break” is unanswerable by construction. Compute-and-write-through-on-read keeps a history that is sampled by whoever opens a page: the edge timestamp becomes the moment somebody looked, not the moment the estate changed, and an estate nobody watched over a weekend has no weekend. A transition is only worth recording if it is recorded where the change happened.

    5. A report computes the verdict it serves from the evidence it shows. The health report originally served the last recorded verdict while resolving the contributing roles live, which let a system with nothing recorded yet report healthy beside an impaired outage role: the report contradicted itself. The served verdict is now derived from the same resolved rows the report displays, so the headline and the reason can never disagree. This is not self-healing on read: nothing is written, and the recorded transitions remain the source for history. A missing trigger can therefore cost an edge in the history, but it can never make a report lie about the present.

    Routes, regenerated into the OpenAPI document, the cobra CLI, and the typed client: GET / POST /components/{name}/alarms and DELETE /components/{name}/alarms/{id} (gated component:read / :update); GET /systems/{name}/health and GET /locations/{name}/health (gated system:read / location:read, scope-injected, an out-of-scope owner a non-disclosing 404), each returning the verdict, the contributing roles (with the degraded capabilities and the causing alarms) or the systems beneath, and the recorded transitions over the last 30 days. The CLI reads omniglass component alarms|raise-alarm|clear-alarm, omniglass system health, and omniglass location health. The seed adds a health state-kind property (healthy / degraded / outage) so the recorded series is typed like any other.

  • Context: The architect’s requirement was stated plainly: “The most important thing about health is that we have a real, accurate history of the edges. We need to know exactly when a system went from healthy to unhealthy, and be able to look back at it weeks later.” Every call above falls out of taking that literally. Once the history has to be accurate, the write side is the only correct place to compute from, and once the carrier has to be edges, state_datapoint is already the right table and a new health_history would have been a second, worse copy of it. Recording an opening verdict at system creation then surfaced a latent bug the rest of the schema had been quietly carrying: every system now had a state_datapoint row from birth, and every rename failed on the owner foreign key, because those FKs address the owner by name and declared no ON UPDATE. Migration 20260721170000 re-adds all four state_datapoint owner FKs with on update cascade, which is what name-as-address always meant: the history follows the entity rather than pinning its old name. Health did not create that bug, it made it reachable for every system, which is the useful kind of forcing function.

  • Deferred: the same FK gap on metric_datapoint, event, property_value, alarm, and the role tables’ name-addressed columns, tracked in #314. An alarm today is written by an operator or an API caller, not produced by an event_rule over datapoints; the rule that opens and clears one automatically is the next tier. Also deferred: system- and location-owned alarms (the alarm arc is component-only today), the unknown verdict with its coverage and staleness reasons, the global estate top, the SLI / SLO / SLA family and the KPI set, an alarm’s interaction with operational mode (maintenance suppressing a contribution), and dependency suppression.

  • Supersedes: three earlier calls on health. (a) The value vocabulary: ADR-0003 named the healthy state ok over an ordered ok < degraded < down; the built domain is healthy < degraded < outage, keeping that entry’s reasoning (name the verdict, not the ping) and changing only the words, since outage says what a broken room means to the people in it. (b) Where impact is declared: the design hung an optional health impact on the event_rule, so an alarm moved its owner’s health directly. Impact now lives on the role, and an alarm reaches a system only through the capabilities it degrades. An alarm on a component that fills no role moves that component’s own verdict and nothing above it, which is the correct answer and was previously an accident of tagging. (c) health_role: the required / redundant / informational member tag on a system_template_member is superseded by quorum plus impact on a system_role, which expresses the same three cases without a fourth vocabulary (required is quorum 1 with impact outage, redundant is a quorum below the number assigned, informational is impact none). It also closes ADR-0049’s deferral of impact and its “quorum ships without health” note.

  • Tracked under epic #266. This is PR8 of the estate-model shift toward property / event / command plus vendor / product / driver / capability / standard / role / health, and the slice that closes the epic: it is the one that consumes what the previous seven built.

  • Amended by ADR-0087: chain item 1 above (capability as the routing key: an alarm names the capabilities it degrades, a component satisfies a role only when it provides every required one) retires with the whole capability registry (#626). An alarm now impairs its component’s own verdict wholesale, and a role’s occupant satisfies it whenever that verdict is not outage. Items 2 through 5 (the pure judgement package, the transition-only record on state_datapoint, recompute-at-the-write, and a report computing what it serves) are unchanged.

ADR-0051: Membership is the attachment, and a role is what it does

Section titled “ADR-0051: Membership is the attachment, and a role is what it does”
  • Date: 2026-07-21 | Status: Accepted | Pages: core entities
  • Context: a component’s relationship to a system was two unrelated facts that could silently disagree. component.system_id was a single pointer, set once at create with no path to change it, which no authorization and no health path ever read; role_assignment was many-to-many and carried what the component actually does. Nothing reconciled them, and the console rendered the first under the heading “Components” while the panel directly below listed the second, so a fully staffed system displayed 0 components. The contradiction was visible to operators before it was understood by us.
  • Decision: membership is a first-class binding, system_member (system_id, component_id, is_primary), and a role attaches to it. Staffing a role creates the membership, because a component filling a job in a system that the system does not count as a member is a contradiction. The reverse is not symmetric: giving up a role leaves the membership, because the device is still in the room, and a member carrying no role (a power conditioner, a spare) is ordinary.
  • Why membership cannot simply replace the pointer: the cascade seeds its system band from one row and ranks with row_number() over (partition by ... order by band desc, depth asc), which has no tiebreaker after depth. A many-valued seed would make an effective tag, variable, or secret resolve nondeterministically for precisely the shared-device case. Membership is therefore many-valued while is_primary keeps a single answer for callers with no system in hand. It is a default, not a resolution rule: anything naming a system resolves against that system, and a component’s first membership takes the default with nobody asking, so the single-system case never meets the concept.
  • Cascade from both ends, and deliberately no restrict on the component. A binding is meaningless once either side is gone. role_assignment keeps its on delete restrict because deleting a component that fills a job would silently break a system’s health; duplicating that restrict on membership would add a step to every component removal while protecting nothing new.
  • Backfill reads both of the old places. The role table alone drops every component that belonged to a system without filling a declared role; the pointer alone drops the shared device’s other systems. The old pointer seeds is_primary, since answering which system chain feeds a component’s config is exactly what it used to do. A component left with several memberships and no pointer gets no default, because there is no honest way to guess which one was meant.
  • Thin cut: resolution behaviour does not move in this slice. component.system_id stays and keeps feeding the four cascade resolvers unchanged, so this ships and is verified on its own.
  • Supersedes: core-entities’s “a truly shared device skips the system layer”, which was the best available answer while the only binding was a single pointer. A shared device is now a member of every system it serves. It also narrows that page’s system_member design: the shipped row is the binding alone, without the role column or the pin to a frozen system_template_version, so a member can exist without a role.
  • Tracked under epic #324, slice #325.

ADR-0052: The cascade resolves through membership, and secrets carry no system band

Section titled “ADR-0052: The cascade resolves through membership, and secrets carry no system band”
  • Date: 2026-07-21 | Status: Accepted | Pages: cascade
  • Context: ADR-0051 made membership explicit but deliberately left resolution alone: the tag, variable, and secret cascades still seeded their system band from component.system_id, the write-once pointer. That left the pointer alive for one reason only, and left the “config differs per system” case unanswerable.
  • Decision: the system band is seeded from system_member. Tag resolution takes the system to resolve against, and resolves against it only if the component is a member: naming a system it has no binding to must not lend it configuration. With no system given it falls back to the primary membership, which is the entirety of what is_primary is for. GET /components/{name}/effective-tags?system= exposes the first case.
  • The seed stays single-valued, as a correctness requirement. The rank orders by band then depth with no tiebreaker after that, so two seeds in one band resolve nondeterministically. Membership is many-valued; the chain it feeds is not. This is the same fact that made the pointer worth keeping under ADR-0051 and is now satisfied without it.
  • Secrets lose the system band entirely, on ownership rather than determinism: an interface belongs to a component, a shared device has one password, and the room it serves is the wrong owner for a credential. It also removes the one case where an ambiguous inheritance would have been dangerous rather than merely wrong.
  • component.system_id is dropped. With nothing reading it, the column, its API field, and its console consumers go. The component body now reports system (the primary, by name) and system_count, which also retires one of the three places the API emitted a raw uuid for a field it accepts by name (#328).
  • Written test-first because the failure mode is silent. A mis-seeded sys_chain is still valid SQL that returns fewer rows: a system-owned tag would simply stop reaching its components, with no error and no 500, and the resolution blade would show the location winner as though the system band never had a candidate.
  • Supersedes cascade’s “the primary-system pointer is the single system chain that feeds the cascade”, which described the mechanism when a pointer was the only binding available.
  • Tracked under epic #324, slice #327.

ADR-0053: A name is the address, a uuid is identity

Section titled “ADR-0053: A name is the address, a uuid is identity”
  • Date: 2026-07-21 | Status: Superseded in part by ADR-0056. Its API half stands: a reference is addressed by name. Its schema half (“a new table references an estate entity by name with on update cascade”) is reversed, and responses now carry the id beside the name rather than instead of it.
  • Context: the pattern was real and dominant but never applied to the original entities. Eleven tables keyed their estate references by name, six by id, split by age. Worse, the API accepted names on write and returned uuids on read: a component created with {"parent": "rack", "location": "hq-b1"} read back as {"parent_id": "0198f...", "location_id": "0198f..."}. The body did not round-trip, so every client fetched a second collection and joined by uuid to render one label. The console carried exactly that map until it was deleted in #329.
  • Decision: every request and response addresses another entity by its name. A uuid appears only as an entity’s own id. Two exceptions: an entity with no name (an interface, a stored value, an audit row, a grant, a principal) and a slug-keyed catalog, whose id already is a name. A new table references an estate entity by name with on update cascade.
  • Normalized: parent_id and location_id on component and system, parent_id on location, and the redundant owner_id on tag bindings, variables, and secrets, which already carried owner_name beside it. Nine fields, seven of them found by survey and two by the guard test, which caught a SecretBody.owner_id the survey missed.
  • Enforced by contract, not prose. TestResponsesAddressEntitiesByName walks the generated OpenAPI and fails on any field naming another entity by uuid. The failure it prevents is invisible otherwise: a body emitting parent_id still serves 200s, and the cost only appears in the clients.
  • Deliberately not in scope: secret, variable, and tag_binding still key their owner arcs by uuid in the schema, and the cascade resolvers compare those uuids directly. Converting them is a data migration plus a rewrite of resolution SQL reworked in ADR-0052. The API contradiction is what operators saw and is fixable without touching resolution. The rule binds new tables; the stragglers convert when something else needs to touch them.
  • Breaking. Response shapes change. At v0.0.0 this is the right moment, since the cost only grows.
  • Tracked as #334, following #328.

ADR-0054: The shell owns a panel’s action rail; the body registers and never draws

Section titled “ADR-0054: The shell owns a panel’s action rail; the body registers and never draws”
  • Date: 2026-07-21 | Status: Accepted | Pages: design system
  • Decision: A panel’s action buttons are declared as data, not laid out as markup. A blade body binds destructive / secondary / primary (plus the Edit -> Save cycle) through lib/blades; a Drawer form body binds submitLabel / submitIcon / submit / busy / disabled / cancel through lib/formactions. BladeStack and Drawer each compose their own button vocabulary but draw it through the single PanelFooter rail. A form body renders no footer markup at all.
  • Context: The blade already worked this way. The Drawer did not: its rail was an opt-in DrawerFooter helper that every form body had to remember to import and wrap its buttons in. Fourteen forms remembered. Two did not, and hand-rolled their own right-aligned row instead, where they survived nine merged PRs unchanged while the helper was copied into six newly added pages around them. The cost was not only the two misses: among the forms that did use it, some rendered a Cancel and some did not, some spun a spinner and some swapped the label to “Creating…”. A rail reached by convention drifts in both directions at once.
  • Why a slot rather than a lint rule: A lint rule finds the miss after it is written. A slot makes it unwriteable: there is no exported helper to forget, and a body that wants a button has exactly one way to ask for one. The enforcement is the deleted export, and rail-ownership.test.ts is the belt to that braces.
  • Scope, honestly: This converges two of the three rails initially. Full-page create forms (Locations, Systems, Components) still drew an inline border-t ... pt-4 row of their own at the time of this decision. That rail was inline in a scrolling page rather than pinned to the viewport, so it was a different layout problem. Converged in PR #1801 (#337): EntityCreateForm now delegates to FormActionBar with the inline prop, and rail-ownership.test.ts gained a fourth guard that bans the hand-rolled class signature everywhere except FormActionBar (PanelFooter draws a differently padded rail, so the signature does not match it). The Drawer and full-page create forms now converge through FormActionBar (inline for full-page create forms); the blade rail still draws through PanelFooter directly. The CRUD form primitive carve-out is closed.
  • Deliberate convergences: submit labels no longer change while in flight (the shell’s spinner says it), and the new-interface blade lost its Cancel button, since a blade already dismisses two ways and no other blade in the stack carries one.
  • Tracked under #332.

ADR-0055: The tag, variable, and secret owner arcs key by name

Section titled “ADR-0055: The tag, variable, and secret owner arcs key by name”
  • Date: 2026-07-21 | Status: Superseded by ADR-0056, which converts these nine columns back to uuids along with every other name-keyed foreign key. Kept in full because the reasoning below is a worked example of the mistake: it is internally consistent, it shipped green, and it is wrong at the premise.
  • Context: ADR-0053 fixed what operators saw and deliberately left the schema alone. Three tables still keyed their owner arcs by uuid while every table from the collection era onward keyed by name, so the two conventions met inside single queries: the cascade resolvers walked chains of uuids purely to match these three, and a component’s name had to be carried alongside its id to bridge them.
  • Decision: the nine arc columns on tag_binding, variable, and secret become text references <entity> (name) on update cascade on delete cascade. The columns keep their _id suffix, matching role_assignment.component_id and state_datapoint.component_id, which are likewise text referencing a name.
  • on update cascade is the load-bearing clause. A name is only safe as a key if a rename carries. TestOwnerArcsSurviveARename is the proof and is mutation-checked: with the clause removed the rename is refused outright with a foreign-key violation, so the test cannot pass vacuously. It also could not have failed before this change, since the arcs held uuids that a rename never touches.
  • The resolvers now project names. Each chain still recurses on parent_id, which stays a uuid, and only what it projects changed. owner_id in the owners CTE is a name, so the final joins that resolve a display name match on name rather than id.
  • The scope walk still uses ids, resolved from the name at the point of the check. Identity stays internal, and the walk is the only place that needs it, which is the rule working as intended rather than an exception to it.
  • Not converted, deliberately: tag_binding.node_id references node.principal_id, a node’s enrollment identity and the only handle it has. tag_binding.tag_id is a genuine instance of the same rule (tag is uuid-keyed with a unique name) but is the binding’s subject rather than its owner, and it touches the tag CRUD surface rather than resolution; tracked as #340. Removing it from the guard test’s slug-keyed allow-list, where it had been listed on a false claim that the tag catalog is slug-keyed, is part of this change.
  • No migrate:down. Reversing would have to resolve names back to uuids the forward migration no longer records, and any rename since would make that resolution wrong rather than merely absent.
  • Tracked as #339.

ADR-0056: Every foreign key stores a primary key

Section titled “ADR-0056: Every foreign key stores a primary key”
  • Date: 2026-07-22 | Status: Accepted; the slug-keyed carve-out below is retired by ADR-0062 | Pages: storage, api-first
  • Decision: every foreign key stores the target’s primary key: a uuid for an estate entity, principal_id for a node, and the slug itself for a slug-keyed catalog (product, standard, property, interface_type) where the name already is the key. No column references a name. In exchange, the API accepts either form wherever a reference is written (a path segment or a join field in a body), trying the uuid first, and every response carries both: the name an operator reads and the id it resolves to.
  • Context: this reverses a direction set two ADRs ago. ADR-0053 found eleven tables keyed by name and six by id, and resolved the split by declaring the majority correct. ADR-0055 then converted the six to match, and the follow-on work was converting the rest. The premise was never examined: a friendly, renameable key is valuable because it can change, which is the one thing a foreign key must not do.
  • The tell was on update cascade. ADR-0055 called it “the load-bearing clause” and was pleased that removing it made the test fail. That machinery exists only to fund the wrong choice: it is write amplification across every referencing row, on a rename, to protect a key that did not need to be a name. A uuid arc needs no clause, and the equivalent test passes because there is nothing to rewrite.
  • A rename was not merely inefficient, it was refused. With interface.component referencing component (name) and no on update clause, renaming a component that owned any interface failed outright with a foreign-key violation. The name-keyed convention had spread past the point where its own cascade covered it, and the operator-facing symptom was a rename that returned an error.
  • Scope: all 30 name-keyed foreign keys, converted across five slices grouped by subsystem rather than by table, so each file changed once: the estate arcs, then health and roles, then the collection tier (metric_datapoint, interface, node) and every node reference.
  • What stays a name. The columns whose target is slug-keyed are already conformant and were not touched. Health passes names internally on purpose: its advisory lock hashes health/<kind>/<name>, and a mixed currency would hash two keys for one owner and silently stop serializing. (That sentence stopped being true at #627; see the amendment below. It is left standing because the log is append-only and because its argument is the one that reversed it.) (The slug-keyed targets themselves later took uuid keys too, so those columns moved to the uuid; see ADR-0062.)
  • Amended (#717): the health carve-out above is no longer true, and what unmade it is the reason it was a carve-out at all. The lock hashes health/<kind>/<id>, and has since the identity epic (#627) landed its addressing slice (#647); health resolves a reference to the row’s id once, before any lock is taken. A name-keyed lock partitions an estate only while names partition it, and that epic scoped a location’s name uniqueness to its placement, so two rooms under different buildings may both be 415a. One key for two unrelated owners is a silent loss of concurrency; the mixed currency this bullet warned about is a silent loss of the serialization the compare-then-act recompute needs for correctness. Both halves of the argument survive, and only the conclusion moved. The same fact moved the lock ORDER a slice later, because a comparison that leaves two owners tied is not an order at all (#670); the health page has said id since. This entry was the last page in the corpus describing a keying scheme that would be a live defect if implemented from it, so the key now lives in one named function (healthLockKey) with a unit test asserting that two same-named rooms do not share a lock.
  • Guarded both ways. TestResponsesAddressEntitiesByName fails on a response that names an entity by uuid alone; the per-tier rename tests fail if an arc stops following a rename. Each conversion was mutation-checked rather than trusted: breaking the projection had to turn the suite red.
  • Tracked as #343.

ADR-0057: The cascade’s least-specific tier is platform, and a default is not a tier

Section titled “ADR-0057: The cascade’s least-specific tier is platform, and a default is not a tier”
  • Date: 2026-07-21 | Status: Accepted | Pages: cascade, settings, config, secrets, and variables, tags, identity and access, scaling and deployment
  • Decision: Six calls, one vocabulary.
    1. global becomes platform as the cascade’s least-specific binding tier, on both axes: the estate arc (owner_kind on variable, secret, and tag_binding) and the settings level (setting_override.scope). It occupies exactly the rung it occupied before (segment_rank 0). It is a decision like every other rung, what an admin set for the whole install, not a floor beneath the chain.
    2. code becomes default, and a default is off the axis on both engines. A default is what a value is absent any decision: a column on a definition row, beside the unit, the kind, and the validation rule. It is not a rung, it shadows nothing, and nothing shadows it; the fold falls through to it when no rung bound anything, and the resolve view reports it as a declaration rather than as a winning source. A default is a column on a declaration row, so a kind with no declaration row has no default: a setting has one (its struct tag) and a property has one on its classifier’s contract (product_property.default_value and its standard_property / location_type_property siblings, read as coalesce(the instance's set value, the contract default) by EffectiveProperties, ADR-0047), while a variable, a secret, and a tag have none. Absent means absent. Note the property default sits on the contract, not on the property catalog entry: the catalog declares what a name means, a classifier declares what it is for the things that conform to it. That is a narrower claim than the one this ADR was drafted against, when the precedent was the retired field_definition.default_value hanging off a component_type, and it is the stronger one for the rule here, since the coalesce is the fall-through in the code path itself.
    3. There is no root location. The location tree keeps N unparented tops. A tier above today’s tops is a new location_type and a real node, never a magic one, and a top-level location is not a substitute for platform: binding at one top misses every sibling, and a top added later is silently uncovered.
    4. The install-wide tier survives on the estate axis, uniform across kinds: platform | location | system | component.
    5. A write at the tier needs platform:<action>, checked in addition to the resource permission and published per route as an x-omniglass-platform-permission stamp. This separates full-estate scope from install-wide authority: a senior operator may hold an all-scope grant without being able to change the value that applies to the whole install. platform:* is seeded to admin (and reaches owner through >); operator and deploy hold no platform write, and nothing implies one. “Nothing implies one” is enforced by putting platform in the sensitive-resource set beside secret and settings (ADR-0025), so a bare single-token * never names it: a custom role carrying *:update holds every estate write and still no install-wide authority. Only a literal, a platform:*, or a > names the tier.
    6. root is not used as a tier name, so location_type.allowed_parent_types keeps its reserved "root" sentinel meaning “top, no parent”, unchanged.
  • Context: One word named two unrelated things, in two engines, with three spellings. On the estate axis global was both a tier an operator writes at and, in the prose, a floor where ship-with policy supposedly lived: cascade read “Ship-with default policy lives at global, the floor of the chain”, three lines under a heading that says the registry is outside the cascade. That was drift, not design: internal/seed/ writes eight YAML files and every one defines a type; none writes a binding, and there has never been a ship-with row at the tier. Meanwhile the settings engine had already split the two ideas and picked different words for them (code for the declaration, global for the install-wide override), so the same distinction existed twice under three names. Separately, global also names the singleton estate owner where health and KPIs roll up (a different concept that keeps the name), which made “global” ambiguous in the one place ambiguity is most expensive. Naming the binding tier platform and the declaration default gives each idea one word, and it drops an assumption the estate never had: that “everything” and “the planet the sites are on” are the same thing.
  • What does not change: no precedence change (every row keeps its rung under a new name, so no deployment resolves differently), no new rows (the migration renames a value, inserting nothing and adding no column), no reordering of the segment ranks or the comparison key, and no capability removed.
  • Breaking change, accepted deliberately: secretAAD binds a sealed field to its owner arc, ownerKind|ownerID|name|field. A secret sealed at the tier before this rename authenticates against global|global|...; after it, the derivation yields platform|platform|..., the AEAD check fails, and that ciphertext never opens again. Only the renamed tier is affected: a scoped secret carries a real owner id and is untouched. Accepted because no deployment holds tier secrets yet, and each alternative (freezing the AAD at the legacy string, a Go-side re-seal backfill, or a reveal-time fallback) buys compatibility nothing currently needs at the price of a permanent legacy branch. Recorded here rather than discovered later by a reader.
  • Amends: ADR-0033, ADR-0034, ADR-0035, and ADR-0042, and ADR-0047. Each keeps its model; only the level names and the default’s place in the vocabulary move.
  • Closes: issue #316.

ADR-0058: A run mode is a verb under its noun, and no command may be shadowed

Section titled “ADR-0058: A run mode is a verb under its noun, and no command may be shadowed”
  • Date: 2026-07-22 | Status: Accepted | Pages: CLI guide
  • Decision: the edge run mode becomes omniglass node run, a leaf under the generated node group, rather than a top-level node. A guard test walks the assembled command tree and fails on any duplicate name, so the hand-written and generated command sets can no longer collide silently.
  • Context: the hand-written run mode and the generated API group both registered as node. Cobra does not treat that as an error: both are added and lookup returns the first, so every generated node command was unreachable. omniglass node list resolved to the daemon and failed asking for --token, while the CLI guide documented it as working.
  • Why a guard rather than a rename alone. This is the third instance: members under the principal groups (#326), type list (#319), and now node. Each was found by a person typing it. The two command sets compose on one root, so no single file owns the namespace and no review of either set can catch it. The tree is the only place they meet, so it is the only place the check can live. The guard was written first and found two more nobody had reported: grant create and grant delete, where the principal-group variants shadow the principal ones, so granting a role to a principal has no CLI path at all (#357).
  • The known collisions are an explicit list that may only shrink. The guard fails on any name not on it, so a new collision cannot land, and it also fails on an entry that has stopped colliding, so a fix must delete its entry rather than leave that name unwatched. It is a ratchet, not an allow-list.
  • Root cause, left for #357: commandWords derives the group from a single path segment, so /principals/{id}/grants and /principal-groups/{id}/grants both become grant. Fixing that renames documented commands and is a naming decision, not a mechanical one.
  • Cost accepted: omniglass node is a documented invocation and it changes. At v0.0.0 that is a docs edit, and a mode reads as a verb anyway, beside node list and node enroll.
  • Tracked as #354.

ADR-0059: Every collection segment is a command level

Section titled “ADR-0059: Every collection segment is a command level”
  • Date: 2026-07-22 | Status: Accepted | Pages: api-first, CLI guide
  • Decision: the CLI command path is derived from the whole route: every collection segment contributes a level and the verb is last, so a subresource is always addressed under the resource that owns it. /components/{name}/properties is component property list; /principals/{id}/grants and /principal-groups/{id}/grants are principal grant create and principal-group grant create.
  • Context: the old rule used only the collection nearest the leaf, so it could not tell two parents apart. Across 195 operations it produced 24 collisions, property list seven ways. Cobra does not treat a duplicate name as an error: it registers both and returns the first, so the second was unreachable and the only symptom was a command that ran the wrong thing. Granting a role to a principal had no CLI path at all (#357).
  • nameOverride was the rule, written out by hand fifty times. It had grown to 53 entries, and the comment on nearly every one said the same thing: “the leaf-noun heuristic would collapse both into one group.” Each was added after somebody typed a broken command. It is now 14 entries, all of them the genuinely non-AIP /auth family, and none of them about a collision.
  • A name depends only on its own route. This is the property worth having: under a disambiguate-only-when-ambiguous rule, adding a route could rename an existing command. Here it cannot, so the naming is stable as the API grows.
  • The grouping had to become a tree. Fixing the derivation alone was not enough: the generator bucketed commands by their first word and used only the last word as the leaf name, so a three-word path rendered as two and collided again. It now builds an N-level tree, which is also what makes node run and type secret list render as written.
  • omniglass statu shipped. The depluralizer took -s off status. A small irregular set is declared instead; the route vocabulary is ours, so this is a known list, not an English problem.
  • Cost accepted: 67 of 202 commands are renamed, 135 unchanged. At v0.0.0 that is a docs edit, and the guides are corrected mechanically from the route map in the same change.
  • Two guards, because regeneration does not fix prose. TestNoCommandNameCollisions fails on any duplicate name (its known-collision list is now empty, and its second half forced those entries out once fixed). TestDocsOnlyNameRealCommands walks the guides and fails on a documented command that does not resolve; it immediately found omniglass secret-type list, which had never existed in any build, and two commands with no API route behind them (#359).
  • Supersedes the naming half of ADR-0058, whose guard this keeps and whose exception list this empties.
  • Tracked as #357.

ADR-0060: A resource is one kebab-case noun; nesting means ownership

Section titled “ADR-0060: A resource is one kebab-case noun; nesting means ownership”
  • Date: 2026-07-22 | Status: Accepted | Pages: api-first, API, types
  • Decision: a resource is addressed by one kebab-case noun, and a nested path segment means the nested thing is owned by it. The /types umbrella is retired: GET/POST /location-types, PATCH/DELETE /location-types/{id}, GET /secret-types.
  • Context: the location type registry was addressed two ways. Its CRUD lived under /types/location while its property contract lived on a flat /location-types/{id}/properties, so one entity had two command groups (type location update and location-type property list) and an operator had to know both. /types/secret had no flat form at all.
  • The umbrella misused nesting. A nested segment says the child belongs to the parent (/principal-groups/{id}/members). location is not owned by types; it is a registry that happens to be one of several. Grouping by category is a documentation concern, not an addressing one.
  • Two mechanisms, now unambiguous. A hyphen joins a noun that happens to be two words (principal-group, location-type, audit-log, effective-tag); a space means the thing beneath it (location-type property, principal-group member). Before this, the same registry used both, which is what made the rule unstateable.
  • Found by asking what the rule was, not by a failure. The CLI naming fix (ADR-0059) made the two spellings sit next to each other in one command tree, where the contradiction was obvious. The generator was correct throughout; the routes disagreed with themselves.
  • Addressing only. Same handlers, same <resource>:<action> gates, same scope injection, no storage change. The type command group disappears and nameOverride needs no entry for any of it.
  • Breaking: three route shapes change. At v0.0.0 that is a regeneration plus a docs pass, and TestDocsOnlyNameRealCommands fails on any guide left teaching the old names.
  • Tracked as #361.

ADR-0061: A calculated series is current at its highest id, not its newest timestamp

Section titled “ADR-0061: A calculated series is current at its highest id, not its newest timestamp”
  • Date: 2026-07-22 | Status: Accepted | Pages: datapoints
  • Decision: for a calculated series (health, and anything else the engine derives), the current value is the row with the highest id. ts records when the value was computed and is for display and history; it does not decide which row is current. For an observed series, ts still orders, because it is the observation time and a late arrival must not displace a newer reading, but id breaks a tie.
  • Context: recordHealth writes select clock_timestamp(), ..., so the timestamp is evaluated in the SELECT list while the id comes from the identity sequence applied when the row is inserted: the clock is read before the id is assigned. Two concurrent inserts can therefore commit with ts inverted relative to id, and a reader ordering by ts then disagrees with the writer about which row is current.
  • Production was already right, the test was not. Every production reader of a recorded verdict (recordHealth’s own transition check, subtreeSystemHealth) orders by id, so the writer and the readers agreed. The health test helper ordered by ts, which is why it reported verdicts the engine never produced. The intermittent failure was in the harness, not the product.
  • LatestState is a real exposure and is fixed here too. It backs the ingest transition guard and ordered by ts alone, so a poll cycle stamping several rows in one instant resolved to an arbitrary one and the guard could compare against a row that is not current. It now tie-breaks on id.
  • Reproduced deliberately rather than waited for. The failure needs contention: it never appeared in nine consecutive full-suite runs on an idle machine, and appeared within one or two attempts when six copies of the storage package ran at once. Under that same load the fix held for 24 runs.
  • The regression test writes the inversion directly rather than racing it into existence, and asserts the two orderings genuinely disagree before asserting the outcome, so it cannot pass vacuously. It reads through LocationHealth, which reports the recorded verdict; SystemHealth recomputes live and cannot witness the defect.
  • Tracked as #356.

ADR-0062: A registry takes a uuid primary key and a renameable handle

Section titled “ADR-0062: A registry takes a uuid primary key and a renameable handle”
  • Date: 2026-07-22 | Status: Accepted | Pages: storage, api-first
  • Decision: a registry has a uuid id and a unique, renameable name, the shape tag and every estate entity already have. product and vendor convert first; the remaining seven follow, slice by slice, tracked as #262.
  • Context: ADR-0056 says every foreign key stores its target’s primary key, and epic #343 made that true everywhere except the slug-keyed registries, where the name is the key. That exception was the last place a foreign key referenced a mutable, human-authored string. A product id was a typo or a rebrand away from being wrong forever, and two device packs both defining cisco-room-kit-pro collide on the primary key itself.
  • name, not slug or key. Six tables and every estate entity already call the human handle name, and the API bodies already say name. A third word for the same concept would be worse than the inconsistency it fixed. Renaming the family to slug later is a separate, mechanical decision.
  • The registries already disagreed with each other, which is worth recording: property and interface_type call their slug name, while capability, driver, location_type, secret_type, and standard call theirs id. So the later slices are a rename for five of them and an addition for two, not one uniform change.
  • node stays the exception. Its primary key is principal_id, because a node is the detail row of a principal and its key IS that foreign key. It is deliberate and it is not changing.
  • The API carries both and accepts either, as the estate entities do: id (uuid) and name (handle) on every body, and a path or reference resolves whichever form it is given. A name can never look like a uuid, so the two cannot collide.
  • The rename test is written first, each slice. It renames a handle and asserts every reference still resolves and now reads the new one. That is the capability the epic buys, so it is what the slice proves.
  • The exception is retired, not just the tables. With all nine registries converted, a closing slice removes the slug-keyed carve-out from the doctrine: the api-first rule now states every foreign key stores a uuid with no exception, ADR-0056’s carve-out is marked retired, and the TestReferencesCarryBothForms guard drops its slug-keyed allow-list (the registry references move into the both-forms rule, and the one that surfaced a real gap, a component response that carried product_id without the product’s name, is fixed). The storage helper collapses too: the per-registry productRefCol / vendorRefCol and the registryHandles set fold into one registryRefCol(ref), since every registry now behaves the same.
  • Extended by ADR-0089: this decision’s dual-accept clause already said a reference “resolves whichever form it is given”; ADR-0089 makes a third form, a dotted path, a real one for location, system, and component, resolved structurally to a uuid before the ordinary name-or-id lookup runs.

ADR-0063: The telemetry model is typed registries over bare-noun data tables

Section titled “ADR-0063: The telemetry model is typed registries over bare-noun data tables”
  • Date: 2026-07-23 | Status: Accepted | Pages: datapoints, events, variables, storage, glossary
  • Decision: every component interaction normalizes to one of three registries, each suffixed _type (property_type, event_type, command_type), over bare-noun data tables (metric, state, property, event, command). A registry is a classification, so it takes the _type suffix; the bare noun holds the instances. This retires the last confusion left by the datapoint_type to property rename: today’s property registry becomes property_type (kind in {metric, state}), and today’s property_value becomes property, the latest-value cache. event and command gain their own registries and are no longer modeled as a property kind.
  • Context: using bare nouns for registries was the root inconsistency. property named the registry while property_value named the data; event had been folded into the property registry as kind=log, the “false unification” datapoints and events explicitly warn against; and the code said property while the pages still said datapoint_type. Suffixing the registry _type and freeing the bare noun for the data fixes all three at once, and it vindicates the two-registry separation the pages always wanted: property_type and event_type stay distinct catalogs, they were never one universal registry.
  • The reusable pattern. A registry (<noun>_type) defines canonical entries. A realization (the bare <noun>) records data referencing one registry entry by FK, over the same exclusive owner arc (component / system / location / node) the estate already uses, tagged with a provenance or origin. metric/state/property reference property_type; event references event_type; command references command_type. One rule, four tables, no bare-noun registries.
  • A log is a collection of events, so there is no log table. The row is an event (one occurrence); a log is the stream of them, the way a registry is a collection of keys. So the earlier plan to rename the occurrence table event to log is reversed: the table stays event, and “a component’s log” is a query over its events (observed origin). Component-observed versus platform-derived is an origin on the row, not a separate table; promoting a raw line into a typed event is enrichment of the row, not a move between tables.
  • The owner arc stays; owner-prefixed tables (component_metric, system_metric, …) are rejected. The exclusive arc already carries a component’s and a system’s metrics in one table, and it is the estate’s established primitive (property, tag_binding, secret, variable all use it). Splitting by owner would multiply the firehose tables fourfold, fragment the hot path, and force a UNION for the query that matters most: a system’s health rolling up its components’ metrics wants one table. The only gain is a non-null single FK, which the arc’s check already enforces logically.
  • property is a latest-value cache; the firehose stays metric/state. property holds the newest value per series, (owner, property_type, instance, provenance), the same series identity the firehose uses, upserted on intake. metric and state remain the append-only samples. The cache exists to answer “what is it now” and “what did we last tell it” without scanning the firehose.
  • Provenance in the cache is rows, not columns. Each provenance is its own series row (observed, calculated, intended), so observed=45 and intended=50 are two rows, not two columns. Columns would put device-intake, command, and config all updating the same row (lock contention, lost updates on the hot path) and bake the provenance set into the schema. The “want / told / is” one-liner is the right read shape, delivered as a pivot view over the rows: read-shape is not write-shape.
  • declared resolves on demand; intended is stored. The config setpoint (declared) is resolved live from the cascade and never rows into the cache, because it is always current and needs no history. The last commanded value (intended) is stored, because settlement needs the fact plus its ts. So the cache’s provenance set is {observed, calculated, intended}.
  • Two different drifts fall out of that split. Command settlement compares observed to intended, is windowed, and is short-lived (“did my last command take?”). Config drift compares observed to declared (resolved live), is ongoing (“is it where config wants it?”). This is exactly why intended is stored and declared is not.
  • The settle window is a driver fact, carried on command_type. How long a command takes to actuate (an input switch is near-instant, a lamp warmup is tens of seconds) is device-physical, so it lives on the driver, on the command_type the driver populates (the driver as a declarative menu of canonical properties, events, and commands), not on the abstract property_type. Settlement is computed, never a stored flag: within now - intended.ts < settle_window the value is pending and drift is suppressed; past the window, observed matching intended is settled and a mismatch is a failed command.
  • Staging. The name foundation is cheap and lands first: property to property_type, property_value to property, and the metric/state FK repoint, a wide but mechanical sweep with no behavior change. The event family (event_type, the origin and causation columns, pulling kind=log out of property_type) rides the calculation and promotion layer, still Design. The command pillar (command_type, command, the settle window, command settlement) is greenfield. Each architecture page is rewritten to this model in the slice that builds its part, per docs with everything; until then the pages carry an inline note pointing here.

ADR-0064: Placement and classification are mutable after create

Section titled “ADR-0064: Placement and classification are mutable after create”
  • Date: 2026-07-23 | Status: Accepted | Pages: core entities, api
  • Decision: a component’s product, location, and parent, and a system’s location and parent, are patchable after create, not fixed at creation. Each follows the house three-state convention on PATCH: an omitted field is unchanged, an explicit empty string clears (a productless one-off, an unplaced entity, a root), and a name sets. A re-parent is cycle-guarded (refused when the new parent is the entity itself or one of its own descendants, the same recursive walk location already uses) and scope-injected (the new parent must sit inside the caller’s update scope). The existing per-transaction audit and health recompute rules are unchanged.
  • Context: the create body accepted these fields, the update body did not, so a component classified wrong on import or a display that physically moved rooms had no path back except delete and recreate, which destroys its telemetry history. The gap was invisible from any single body; it only showed up as the set difference between the create and update schemas, which is what surfaced it (#342).
  • Why product is the sharp one: ADR-0047 made product the carrier of the property contract, so a wrong product resolves the wrong property defaults. A swap therefore keeps every explicitly-set value (they key by component and property_type, independent of product) and lets only the unset defaults follow the new product, so re-classifying is never a silent data loss.
  • What is deliberately NOT carried over from the location pattern: location’s reparent also runs an allowed-parent-type placement check, because a location_type constrains its parents. Products and standards are not placement-typed, so a component and a system carry the cycle guard and scope injection only, no placement-type validation. A component and a system reparent also, unlike a location this slice, support clearing to a root, since a root component and a root system are ordinary.
  • Health does not move on a placement change. The rollup runs component to systems-it-staffs to locations-over-those-systems, so a component’s own location and parent, and a system’s parent, sit outside the chain; only a product swap (capabilities) and a system relocate (which rung it rolls into) recompute, both already wired.
  • Storage was already half-built: ComponentPatch.ProductName and SystemPatch.LocationName were wired but unexposed; this slice adds the two reparent paths and the component relocate, and opens all of it on the API. It unblocks the CRUD form primitive, whose generated edit form reads mutability off the create-minus-update schema difference and would otherwise render these fields read-only.

ADR-0065: Property, sample, and current value replace the datapoint

Section titled “ADR-0065: Property, sample, and current value replace the datapoint”

The one word “datapoint” conflated two things: the signal (what is measured) and the observation (a single reading of it). Splitting them removes the ambiguity that let “the datapoint’s current value” and “a datapoint arrives” name different nouns.

  • A property is the canonical signal on one owning entity (the key a sample observes and config declares); its registry is property_type.
  • A sample is one timestamped observation of a property, a row in metric / state (the kind).
  • The current value is the latest sample per series, held in the property cache.

No tables were renamed (metric, state, event, property, property_type stay); the shift is vocabulary across the code (the proto Sample message, the *Sample Go types, deriveSamples) and the docs (the value-model page is now properties, with a redirect from the old slug).

It also settles the built shape the earlier design left open: the property cache is the architecture-of-record for current values, a table upserted from the persistence sink with an out-of-order guard, not the “view over metric” once sketched on storage. The intended value a command opens is written in the command’s Postgres transaction; the data-lane re-entry of intended and the adaptive-poll reconciliation described under intended are the deferred actuation evolution, not the built path. Refines ADR-0063.

ADR-0066: Logs are a raw ingest lane, not events

Section titled “ADR-0066: Logs are a raw ingest lane, not events”
  • Date: 2026-07-28 | Status: Accepted

Pulling log out of property_type into event_type (#395) also promoted every raw log line, at ingest, into a caught log.line event. Reviewing the seeded event types showed that conflates two different things: a log line that arrived versus an occurrence that happened. It is the same category slip as naming a type after its transport (the syslog.line to log.line fix): arrival is not a happening.

Three ingest shapes, not two. A property (metric or state) is a sampled value with a current value. An event is a semantic, typed happening. A log line is raw arrival: untyped text off a firehose. A log line is neither of the other two, it is the substrate some events are derived from.

Two lanes meet at event. (1) The raw firehose lands in a log_line ingest table; derivation rules read it and emit semantic event rows. (2) A component with a native event model (an xAPI xEvent, an SNMP trap, a webhook) publishes straight to event. Neither lane is a subset of the other: most log lines never become events (they are searched, retained, and aged out having produced nothing), and native events never touch a log. That asymmetry is why log_line is its own table, not a flag on event.

origin names the producer. derived (a rule produced it, from a log line or another event), caught (a component published it natively), scheduled. The retired model’s “a log line is a caught event” collapses into: the log line is a log_line row, and if it matters a rule derives an event from it.

Lineage lives on the event row. A derived event carries source_event_id (unified: the source is the cause, so this replaces the separate caused_by_event_id), source_log_line_id, and derived_by_rule_id, all null for a natively-caught event. The derivation engine keeps its own execution history (which rule version fired, when, over what inputs), but that is a separate observability lane and lineage must not depend on it: rotating the execution log cannot be allowed to orphan an event’s provenance. derived_by_rule_id is the bridge into that history when the full story is wanted, without being the only home for the basic fact.

A log line is untyped but classifiable by labels, not a registry. There is deliberately no log_type registry: the log lane’s job is to swallow the firehose without pre-declaration, the exact opposite of the reject-not-project contract that justifies the property_type and event_type registries, and log classes (system, app, firmware, kernel) are device- and OS-specific and open-ended. Classification is descriptive: a source channel plus freeform labels and attributes, which an operator can extend without a schema change. The one exception is severity (and a coarse facility), promoted to indexed columns because retention and routing policy keys on them (keep firmware and error lines longer, drop debug faster). The shape is log_line { ts, owner, source, severity?, facility?, message, attributes, labels, correlation_id }.

Build gate. The log_line table, retention, the derivation engine, the lineage columns, and native-event producers are their own slice (#410), worth building when logs are a real firehose to search and age out separately. This ADR records the target; it is not built all at once.

Consequence for #395 (the event_type family slice). The bits that encode the retired model come out now: the ingest log-to-event promotion and the seeded log.line event type. The slice keeps the event_type registry, the richer event (origin, causation, correlation), log leaving property_type, and a native caught example (call.started). The caused_by_event_id to source_event_id rename and the new lineage columns land together in the log-lane slice, not piecemeal here.

ADR-0067: Bookings are exclusive-arc-owned schedules, reconciled against observed usage

Section titled “ADR-0067: Bookings are exclusive-arc-owned schedules, reconciled against observed usage”
  • Date: 2026-07-28 | Status: Accepted

Tracking how systems and spaces are used needs the scheduled side, not only the observed telemetry. A booking (a room reservation, an equipment checkout, a virtual-room reservation) is what a calendar system holds, and it is a different shape from a telemetry event: an interval (a start and an end) with a lifecycle (created, moved, cancelled), and it is declarative, someone reserved something.

A booking is its own entity, owned through the exclusive arc. It uses the same owner_kind plus one-of (component_id / system_id / location_id / node_id) plus the CHECK that exactly one is set, the ownership model the rest of the estate uses. The arc is the binding, so no separate resource layer is needed: a room booking owns to a location, a mobile-equipment checkout owns to a component, a virtual meeting room owns to a system (the bridge modeled as a virtual conferencing system), and a bookable space with no AV owns to a location that has no systems. The heterogeneity flagged during design review (not every reservation is a physical room) is exactly what the arc already expresses.

A booking is an observed intended schedule. Its provenance is observed: the platform did not declare it, it caught it from an external calendar. Its meaning is intended: a declaration of how the owner is meant to be used. A booking therefore carries observed provenance of intended use, and it is the intended-schedule side of usage. Shape: booking { id, owner arc, source, external_id, subject, organizer, start, end, status, attendee_count, ... }, deduplicated and updated on (source, external_id).

Sourcing is a calendar driver on one platform-level integration, not a per-room mailbox fanout. A per-room-mailbox model fails operationally at scale (one subscription and one credential per room), and a calendar is a source, not a device. Instead there is one platform-scoped integration component per calendar tenant, holding the tenant application credential, exposing a calendar interface whose interface_type is a driver (graph-calendar, google-calendar), consistent with the interface-is-a-driver model. A server-side worker runs the driver, enumerates the tenant’s bookable resources, and fans out internally, upserting each booking with its owner bound through the arc. The operator’s only seam is mapping a resource to its owner (auto-matched by resource address, operator-confirmed).

Bookings drive usage reconciliation and utilization SLIs. The booking is the intended schedule; telemetry (call.started, occupancy, an active input) is the observed actual. Reconciled per owner and window: booked and observed is real utilization, booked and not observed is a no-show, observed and not booked is ad-hoc use. These are SLI slices in the health layer (utilization percent, no-show rate, ad-hoc rate, per location / system / component / window). An owner with no observability (a booked space with no systems) degrades gracefully to a booked-only SLI.

Deferred, each its own slice. The resource-to-owner binding (auto-match versus operator-set); privacy, since booking subjects and organizers are more sensitive than device telemetry, so store the minimal busy/free plus booked-by by default and make the full subject opt-in; the platform order (Microsoft 365 Graph first, Google Workspace second, Teams and Zoom Rooms scheduling as a later layer); and recurrence (expand a series to instances versus store the series) with the sync window. Nothing here is built. This ADR records the target so the booking slice (#412) inherits a decided model.

ADR-0068: The API error model is the stock RFC 9457 shape

Section titled “ADR-0068: The API error model is the stock RFC 9457 shape”
  • Date: 2026-07-30 | Status: Accepted | Pages: API
  • Decision: the API’s error model is Huma’s stock RFC 9457 application/problem+json shape: the ErrorModel (title, status, detail), carrying for validation an errors array of ErrorDetail entries, each {location, message, value}. The custom envelope sketched on the API page (a stable machine code plus a violations array of {field, message}) is retired.
  • Context: the custom envelope was designed before any route existed. Today 141 routes serve the stock model, and the generated SPA client and the CLI already render it uniformly. A bespoke envelope would be cost without a driving consumer: no caller keys on an error code, and Huma’s ErrorDetail already names the failing field through location.
  • Reversible: additive. If a consumer ever needs a stable machine code, it can be added as an extension field on the stock model without breaking the shape.

ADR-0069: Cycle safety is provenance-based, not topology-based

Section titled “ADR-0069: Cycle safety is provenance-based, not topology-based”
  • Date: 2026-07-30 | Status: Accepted | Pages: alarms and actions, health
  • Decision: the guarantee that automation cannot feed back into itself rests on provenance, not on a topological “alarms are terminal upstream and never write samples” rule. A consequence write carries provenance='calculated' with a source_rule naming its producer (today: the health rollup’s state sample, source_rule='health-rollup', written on alarm raise and clear), and rules must never route on their own consequences: the routing layer refuses to re-trigger a rule off a sample whose source_rule is that rule.
  • Context: the alarms page argued cycle safety from the premise that alarms never write samples. The build falsified it: raising or clearing an alarm recomputes health in the same transaction (internal/storage/alarms.go), and the rollup records the verdict transition as a calculated-provenance state row (internal/storage/health.go). That write is correct, it is the recorded-transition model of ADR-0050; the premise was too strong. The real invariant is lineage-based and survives future consequence writers (calculations, action side effects) that a topology rule would forbid.
  • Supersedes the terminal-upstream cycle-safety argument on alarms and actions; the page now derives safety from provenance.

ADR-0070: retire the standalone effective-secrets and effective-variables per-component panels; fields become the component value surface

Section titled “ADR-0070: retire the standalone effective-secrets and effective-variables per-component panels; fields become the component value surface”
  • Date: 2026-07-16 | Status: Accepted | Pages: config, secrets, and variables, identity and access, API
  • Decision: The standalone per-component Effective secrets and Effective variables panels are removed, along with their GET /components/{name}/effective-secrets and GET /components/{name}/effective-variables routes (and the generated omniglass effective-secret list / effective-variable list commands and the matching typed-client methods). A component’s value surface is the field primitive: a component’s values are its fields, each resolving override-versus-type-default and shown in the Effective fields panel. A secret or a variable reaches a component by being sourced into a field (the deferred field sources model) or bound to a collection interface input, not through a per-component cascade-browse panel. Kept unchanged: the storage cascade resolvers (ResolveSecrets / ResolveVariables) as the internal primitive the future $sec: / $var: interpolation consumer will call, and the Secrets and Variables directories (browse, create, edit, reveal) with all their routes and CLI.
  • Context: The per-component effective-* panels predated the field primitive and listed every cascade-resolving cell that reached a component, which at any real depth is mostly inherited noise (a global SNMP community, a location poll interval) rather than anything set on that component. The field primitive (#266) is the schema-over-cells consumer the design always intended: a component carries a typed set of fields, each resolving to a set literal or its type default, and the intended sources model lets a field draw its value from a variable, a secret, a datapoint, or a file. Once fields are the value surface, a second per-component cascade browser over the raw cells is redundant and misleading (it reads as though the cells attach to the component when they only resolve onto it). Retiring the panels narrows the component detail to its fields and keeps the cells’ own management on the Secrets and Variables directories, where the cascade is authored. The resolvers stay because the interpolation consumer ($sec: / $var:) still needs them; only the browse-panel surface retires.
  • Closes: issue #281 (retire the per-component effective-secrets / effective-variables panels), under the field epic #266.

ADR-0071: a template is a clonable example, not a versioned shape an instance pins

Section titled “ADR-0071: a template is a clonable example, not a versioned shape an instance pins”
  • Date: 2026-07-31 | Status: Accepted | Pages: templates, core entities, cascade, glossary, collection
  • Decision: A template is an example configuration an operator clones. Creating from one is a one-time fork with no inheritance and no back-pointer, so a template can be improved in any release without migrating anyone: it is upgrade-safe precisely because nothing stays connected to it. What an operator instantiates from a template is an ordinary row they then own, whether that is a location_type, a standard, or a whole system. The versioned-shape model is retired: component_template, system_template, their *_version rows, the stable / beta channels, the frozen BOM, and “an instance pins a version” or “tracks latest” are gone. A component’s shape is its product (with the product_property contract), and a system’s shape is its standard, to which a system conforms with live inheritance. Forking applies template to row; conformance applies row to instance. The word template survives; its meaning is inverted.
  • Context: The decision log and the code had drifted into disagreement, and neither said so. ADR-0045 deferred “a product’s own template or field-schema binding” and ADR-0049 stated “Templates and their frozen BOM stay Design; the two models are reconciled when template pinning is built”, so the log asserted the pinned model was merely deferred. Meanwhile ADR-0047 retired component_type, ADR-0048 promoted system_type to standard, and the shipped schema pointed a component at product_id and a system at standard_id. A 2026-07-30 vocabulary audit found templates.md still teaching version pinning across 29 lines, with the retired nouns reaching search results through the page’s own frontmatter description, and no denylist entry anywhere because the estate-model ADRs had each introduced a new noun without retiring the old one. The two models are not variants of one idea, they are opposites. The pin existed so a template could not change under an instance; the fork exists so a template can change freely because no instance is watching. Holding both was what made the docs unresolvable: every page had to hedge. This generalizes the fork-seed model ADR-0048 already shipped for standards and location types (tracked for build in #317) and extends it to instantiating a system from a template, which is the operator-facing half. It also removes two rungs from the structural cascade: a template cannot be a resolution tier when nothing points at it. Rejected: keeping pinning for components while forking systems (two mental models for one word), and retiring the word template entirely (it is the right word for a clonable example, and the fork model is what an operator already expects from “start from a template”).

ADR-0072: an envelope is not named after its passengers, and an insert struct takes the Write suffix

Section titled “ADR-0072: an envelope is not named after its passengers, and an insert struct takes the Write suffix”
  • Date: 2026-07-31 | Status: Accepted | Pages: storage, glossary
  • Decision: Two naming rules, both general. A carrier is named for what it carries, never for one of its passengers. The telemetry wire message is a TelemetryBatch (proto/og/v1/telemetry.proto): it carries samples and raw log lines and will carry natively caught events, so naming it Event named it after one passenger. And a storage insert struct takes the Write suffix, paired with the bare read struct: MetricSampleWrite / MetricSample, StateSampleWrite / StateSample, EventWrite / Event, LogLineWrite / LogLine. A Write is the shape a caller hands the gateway; the bare noun is the row that comes back.
  • Context: “Event” had come to mean four different things: the wire batch, the two sample insert structs (MetricSampleEvent, StateSampleEvent), the event insert struct (EventOccurrence), and the event read struct. Three of the four collided in a single signature, deriveSamples(ev *ogv1.Event, ...) ([]MetricSampleEvent, []StateSampleEvent, []EventOccurrence), where only the last had anything to do with an event as the platform defines one (an event_type-registered occurrence carrying an origin, ADR-0066). The batch had already outgrown its name once when the log lane added raw log lines to it, and the push route (#423) would have made the collision visible on the wire as Event.events[]. The rename was free, which is why it happened before the payload grew rather than after: protobuf encodes field numbers and never message names, so the same payload marshals byte-identically before and after (verified by encoding one on each side and diffing the hex), and a node and a server of different vintages still interoperate. No migration, no dual-write, no deploy ordering. The Write half is not a new idea, only a newly stated one: the log lane set the pattern with LogLineWrite in #414 and the older types simply predated it, so the codebase carried two spellings of the same concept. Recorded here because it is a rule for every future insert struct, and a convention that lives only in a commit message is one nobody applies. ADR-0037’s title still reads “a protobuf Event”, correctly: that is what was decided on 2026-07-07, the log is append-only, and its heading generates the anchor other entries cite. It carries a forward pointer to the rename instead.

ADR-0073: A driver consumes transports; a transport is code, not a row

Section titled “ADR-0073: A driver consumes transports; a transport is code, not a row”
  • Date: 2026-07-31 | Status: Accepted | Pages: collection, glossary
  • Decision: The collect layer is driver-centric, closing the question ADR-0039 left open. Three things follow. A transport is code, not an operator-editable row. interface_type is a low-level primitive (icmp, tcp, ssh, http, snmp, …), one per package, discovered through a code registry the way collection primitives already are; the interface_type table, its FK from interface.type, and the hand-written dispatch switch in internal/node/probe.go all retire together in a later slice. An operator cannot author a transport, because a transport is a wire implementation, not configuration. A driver consumes transports and is never one. A driver declares which transports it can run over and the instance picks one; the driver owns the normalized catalog (what to fetch, how to parse), the transport owns only how bytes move. The interface_type is a driver clause in ADR-0067 is retracted: a calendar integration is an https transport plus a graph-calendar or google-calendar driver, the same shape as every other device, not an interface_type named after a vendor API.
  • Context: ADR-0039 recorded the driver-centric split as “the current-best direction, not a locked gate” and named its own successor: “driver-centric vs template-centric is re-examined, and this ADR revised or superseded, in a later ADR before the collect layer is built.” This is that ADR, and it confirms rather than reverses the direction, because the alternative has been tried in this tree and lost twice. Protocol handling in the template makes every operator a programmer, which the product cannot ask for; and a transport as a row produced exactly the drift it invites, an ADR sourcing calendars through an interface_type named for a vendor API, which reads as reasonable precisely because a table accepts any string. A code registry cannot be extended by an operator, so it cannot silently absorb the driver’s job. The estate model above this line is built (a component points at a product, a product carries a capability set and a property contract, roles staff a standard), while below it driver holds a name and a version and nothing a node could act on, so nothing is being unbuilt here: the decision authorizes work that the scope gate has been blocking.
  • Deliberately not decided here, each with a home so none of it rides on this entry: whether a product may bind more than one driver (product.driver_id is a single nullable uuid today, and role-addressed driver output is the recommended alternative to a join table, but it is a recommendation, not a ruling); whether a product is a versioned artifact instances pin or stays the live classifier it is today (#491); where cadence lives; and how a component resolves its effective driver set (the EffectiveCapabilities plus-minus pattern in internal/storage/roles.go is the obvious candidate to reuse rather than invent a second mechanism).
  • Supersedes: the status note on ADR-0039 (the driver-centric split is no longer provisional) and, in part, ADR-0067 (its calendar sourcing clause only; the booking entity and its arc ownership stand).
  • Enables: the collect layer epic, whose slices were unauthorized without it. Nothing in this entry is built; it is a decision, and the code lands in that epic.

ADR-0074: An approved definition rolls up to one PR; slices cascade on an integration branch

Section titled “ADR-0074: An approved definition rolls up to one PR; slices cascade on an integration branch”
  • Date: 2026-08-01 | Status: Accepted | Pages: slice workflow, feature loops
  • Decision: For loop-executed work (a body of slices defined and approved as one Epic or Feature issue), the PR granularity moves from one-slice-per-PR to one-PR-per-approved-definition: sub-issue slices are built test-first on cascade branches (or serial commits) merged into one integration branch, each passing the per-slice gates before merging inward, and the definition ships as a single rollup PR whose ship-review covers the whole diff. The slice lifecycle inside each sub-issue is unchanged, and merge to main remains the architect’s call. Hand-driven single slices keep the original one-slice-per-PR shape.
  • Context: Long agent loops ship several related slices per body of work. Per-slice PRs would put the architect back in the approval loop once per slice (the touchpoint cost the loop exists to remove), while letting unreviewed slices land on main would gut the ship gate. The cascade keeps every per-slice gate and gives the architect one reviewable boundary: approve the prose definition at the front, merge one rollup PR at the end. The feature loops page is the contract; built for the AI-driven feature loops epic.

ADR-0075: An alarm’s condition identity is a raiser-supplied dedup key

Section titled “ADR-0075: An alarm’s condition identity is a raiser-supplied dedup key”
  • Date: 2026-08-01 | Status: Accepted | Pages: workers, alarms and actions
  • Decision: alarm gains a dedup_key column (the condition identity; it defaults to the message when the raiser supplies none) and the partial unique index alarm_open_condition_key on (component_id, dedup_key) WHERE cleared_at IS NULL, so one open alarm per condition per component is a database fact. RaiseAlarm is a guarded conditional insert: a losing raise returns the existing open incident instead of a duplicate, writing no audit row and recomputing nothing. The rule engine’s event_rule_id keying joins alongside the dedup key with its own slice; a per-component unique index was refused (it would forbid two unrelated conditions on one component, contradicting the capability-degradation model).
  • Context: workers.md reasoned from a “one-open index” that did not exist: RaiseAlarm was an unguarded insert, alarm_active_idx is non-unique, and the liveness sweep was idempotent only because it happens to run as a singleton. The table had no column naming WHICH condition was open, so the documented (event_rule, owner) key was unrepresentable before the rule table exists; the raiser-supplied key works today and does not block on the engine. Shipped by #465 in the #431 loop.

ADR-0076: A renameable, human-typed identifier stays in the URL, and the write returns the uuid

Section titled “ADR-0076: A renameable, human-typed identifier stays in the URL, and the write returns the uuid”
  • Date: 2026-08-04 | Status: Accepted | Pages: core entities, api, storage, tags, config, secrets, and variables
  • Decision: An entity is addressed by its name, a renameable identifier an operator types, as well as by its immutable id. A rename is an explicit custom method (POST /<collection>/{ref}:rename, gated by <resource>:rename) rather than a field write, and a write returns the id so a client can store the stable handle and stop depending on the name it used. References inside the platform store the id only (ADR-0056), and audit_log.resource_id keys on it, so a rename moves exactly one column. Two response bodies do not yet carry the id, NodeBody and SystemRoleBody, so a client of those two has the name and nothing else to diff; closing that is a follow-up, not a change of direction.
  • Decision (what the name rule became): there is one validator, storage.ValidateName(table, name), which picks the rule from the table’s declared identity shape instead of from the call site; the platform’s two other name rules are deleted, not renamed. Two rules survive rather than four, and they share one character set, differing only in the dot and the ceiling: an entity name is one segment of lowercase letters, digits, and hyphens, at most 100 characters (hq-boardroom-dsp); a keyspace name is a dot-joined path of those same segments, at most 128 (icmp.rtt-avg). Neither may be uuid-shaped. Only property_type, event_type, and command_type are keyspace. tag, variable, and secret had been declared keyspace on a claim nothing exercised, and move to the entity rule, since none of them ever carries a dot: a behaviour change on three shipped surfaces, so cost_center and $var:crestron.ssh stop being creatable and the docs that taught them say cost-center and $var:crestron-ssh.
  • Context: this is a deliberate departure from prevailing practice, recorded so it is not mistaken for an oversight. Prior art runs the other way almost without exception: AIP-180 states that a resource must not change its name, Kubernetes metadata.name is documented “Cannot be updated”, GCP projectId and Tag shortName are Immutable, and Azure’s own guidance is that most resource names cannot change after creation and that details belong in tags instead. More pointedly, systems in this domain retreated from it after shipping: Grafana deprecated its title-derived dashboard slug in v5.0 and added uid because name-based references broke dashboards, and PagerDuty froze CustomField.name at creation and routes all renaming pressure to display_name. None migrated the other way. The case for keeping it is operator ergonomics in an estate whose entities are named after rooms and racks that genuinely get renamed, and the mitigation is Linear’s: the typed identifier is renameable, the uuid is returned on every write, and a client that kept using the name can detect the move by diffing the id it holds. The cost is real and accepted: an external reference held as a name breaks on rename, and nothing on the server can repair it. Alias and redirect machinery is deliberately not built yet; it is the first thing to reach for if that cost shows up.
  • Amended by ADR-0089 in justification, not shape: :rename stays exactly this custom method, gains a second job as the operator’s pen-taking act (ADR-0090), and the accepted cost above is repaired rather than removed. Once the uuid is the address, an external reference held as a name no longer breaks on rename in the way this entry describes: an integration holding the id survives every rename, and one holding a dotted path is a positional lookup honestly reporting whatever occupies that position now. What remains, and stands on its own, is the permission split this entry already named.

ADR-0077: A group name obeys the entity name rule, tightening a pattern the code had excused

Section titled “ADR-0077: A group name obeys the entity name rule, tightening a pattern the code had excused”
  • Date: 2026-08-04 | Status: Accepted | Pages: identity and access
  • Decision: principal_group.name obeys the ordinary entity name rule (^[a-z0-9][a-z0-9-]*$, 100 characters, a uuid refused), enforced by the Storage Gateway on create and rename and carried in the OpenAPI contract as a pattern. The previous rule (^[a-z0-9][a-z0-9._-]*$, 200 characters, checked only by the request schema) is retired.
  • Context: this reverses a position that was written down in code. KeyProvedElsewhere excused principal_group from the behavioural validation sweep with the reason that tightening it “is a behaviour change for existing groups, tracked with the rename work”. This is that work, so the excuse is spent. The looser pattern admitted . and _, the two characters the address grammar reads as separators, and the gateway itself validated nothing at all, so a group could be created with a uuid-shaped name through any caller that was not the HTTP route. There are no releases and no operator data, so the tightening costs nothing now and would cost a migration later. Shipped by #567 in the #545 loop.

ADR-0078: A read-only field renders as a fact, not as a box that refuses typing

Section titled “ADR-0078: A read-only field renders as a fact, not as a box that refuses typing”
  • Date: 2026-08-04 | Status: Accepted | Pages: UI and the design system
  • Decision: a field that is not being edited renders as a fact (KVStacked: an eyebrow label above a value), never as a bordered control. BladeField owns the read-or-edit switch, the read-only treatment, the free-text shape, and the identity label pairing, so each is decided once instead of at every field. A blade the operator cannot edit therefore contains no element shaped like a control.
  • Context: the blade shell was a primitive and the blade contents were not. Eleven pages defined a byte-identical local Field, four more went through positional ctx.field(...) / ctx.fact(...) helpers, and the read-only rendering (input input-bordered flex items-center) was hand-rolled 24 times, so every blade defect was an N-place defect: display_name was labelled “Name” on 11 blades at once, and a description that would not wrap was one bug in 24 fields (#573). The seed-owned vendor blade made the treatment question concrete: five fields rendered as bordered boxes on a panel with no pencil, two of them holding a placeholder glyph, directly below three plain facts. The same read-only state had two appearances on one panel, and the boxed one signalled an editability that did not exist. A box that rejects typing reads as broken; a fact reads as a fact. The rule also fixes the read half of #573 by construction, because text in a fact wraps. Shipped by #575 in the #574 loop.

ADR-0079: Five telemetry lanes, and property stops being the genus

Section titled “ADR-0079: Five telemetry lanes, and property stops being the genus”
  • Date: 2026-08-05 | Status: Accepted | Pages: samples, storage, core entities, collection, commands, events, data model, health, glossary
  • Decision: the telemetry model is five lanes with five names and no overlap: a metric is a quantity (numeric, aggregates, carries unit and precision), a property is a value (what something is, including a number used as a name; values have duration, not averages), an event is a typed happening, a command is an instruction with a target, and a log line is raw arrival. “Property” stops being the genus of every reading and becomes one of the five, and the word “state” retires as a table name: a health state is a concept, not a table. Shipped as epic #584 in seven slices:
    • The catalog splits on data_type, the lane key (#587): int / float rows become metric_type (taking the numeric facts: unit, precision), string / bool / json rows stay property_type (keeping the value domain: validation), and the per-key kind column retires, since catalog membership routes a sample and partitions every row cleanly where kind did not (four kind-less declared names were properties by ruling, and data_type='string' already put them there). Each classifier contract gains a metric sibling (product_metric, standard_metric, location_type_metric). The three ingest catalogs share one resolution namespace: a create is refused when a sibling holds the name.
    • The value store folds into the series (#591): a declared value is an ordinary series row (provenance='declared', no lineage), an edit appends, and the unset is a tombstone (an appended declared row whose value is JSON null, resolved as absence by every reader). The current value of every provenance is derived: the latest series row per (type, owner arc, instance, provenance), never a maintained cache. The separate property value store and its upsert-on-intake cache retire outright.
    • The state table becomes property (#588): the record takes the bare noun and the catalog keeps the _type suffix, matching event_type/event; the two value columns converge into one value jsonb NOT NULL. The word “state” was overloaded (a health verdict is a state, a reachability verdict is a state, and neither was that table); the lane is a value over time, and its name now says so.
    • A log line belongs to a component, and node self-logs split into node_log (#589): log_line’s four-armed arc narrows to component-only, and a node’s self-logs move to an origin-true node_log table keyed to the node, the amended ruling recorded on the slice issue.
    • A command records its status, and an intended value names its command (#590): command gains a recorded status (issued until a terminal settled / failed / timed-out, with settled_at stamping the terminal moment) beside the still-computed settlement verdict, and command_type gains the two-armed target (target_property_type_id or target_metric_type_id, never both), because a metric is commandable. An intended sample’s lineage moves from the command’s caused event to the command itself (command_id): the value points at its cause, not at a derivation of it.
    • The push wire goes per-lane (#594): TelemetryBatch carries metrics, properties, events, and logs arrays, each entry validated against its own catalog at ingest; the polymorphic samples array retires.
    • One name rule, no dots (#586): a name is a single kebab token, at most 100 characters, on every table; the dot-joined keyspace rule and its 128-character ceiling retire, and the seeded dotted names backfill to their hyphenated forms (icmp.rtt-avg to icmp-rtt-avg).
  • What this reverses, and why. ADR-0063 and ADR-0065 recorded the previous taxonomy as the settled model: property as the canonical signal over every sample, one property_type catalog with a kind column spanning numeric and categorical names, and a maintained property latest-value cache as the architecture-of-record for current values. This ADR reverses that recorded call in part. The root defect was the property-as-genus overreach: one word carried the signal, the store, and the whole sample family, so “property” meant three things on one page, the catalog carried facts (unit, precision) that only half its rows could use, and the cache duplicated a fact the series already held. The registry-over-bare-noun pattern of ADR-0063 survives intact; what changes is that property becomes one lane among five rather than the genus of all of them. Recorded as the current-best model on the evidence above, and like every entry in this log it is revisable if the evidence changes.
  • Context: verified against the live schema before building, which produced one mid-loop stop: the epic was first drafted against the pre-July init-dump names, where property was the catalog and property_value held current values, and three of its claims pointed at tables that no longer existed under those names. The definition was corrected against the running database before any slice built on it, and two rulings rode the correction: the partition key is data_type rather than kind, and a current value is derived from its series rather than stored. The retired vocabulary (state as a sample table, property_value, StateSampleWrite and its siblings) joins the docslint denylist with this entry.

ADR-0080: Retention is provenance-aware: never declared, never the latest row per series

Section titled “ADR-0080: Retention is provenance-aware: never declared, never the latest row per series”
  • Date: 2026-08-05 | Status: Accepted | Pages: storage, samples
  • Decision: any retention pass over the sample tables obeys two invariants: it never deletes a declared row (an operator’s assertion is the whole truth however old, not a sample that ages out), and it never deletes the latest row of any series (type, owner arc, instance, provenance) (a prune must not erase a current value). The rule ships as the PruneSamples Storage Gateway primitive, tested for both invariants, before any retention feature exists; no caller wires it yet, and any future retention feature calls the primitive rather than writing its own delete. Amended (#417): the server’s retention pass is its first caller, pruning each sample lane to a window; PruneSamples now deletes one lane in bounded chunks, cutoff first, with an index probe for the latest row. Both invariants are unchanged; “latest” now holds under both reader orders (ts then id, and id), and a command’s lineage rows are kept too (ADR-0417). Amended (#1275): on the metric lane the floor is the latest row within retention: a month past every window is dropped whole, latest rows with it, and a series with no row inside its window reads as no reading within retention. A command’s intended rows live in their own never-pruned table. The property lane keeps both invariants unchanged (ADR-1275).
  • Context: a blanket “delete older than N days” is the obvious first retention feature, and it would silently erase a declared value set two years ago, because for declared provenance the single row is the record itself, not one sample among many. With current values now derived from the series (ADR-0079), a naive prune would also delete the newest row of a quiet series and blank a current reading. Both traps are cheap to close before the feature and expensive to discover after a purge, so the floor shipped ahead of the feature (#591).

ADR-0081: The control-plane wire is one subject grammar, node-anchored and batch-granular

Section titled “ADR-0081: The control-plane wire is one subject grammar, node-anchored and batch-granular”
  • Date: 2026-08-06 | Status: Accepted | Pages: messaging, scaling
  • Decision: every control-plane subject is og.v1.<verb>.<node>, the node name the last token and exactly one token, so the server subscribes per-verb single-token wildcards and a node’s credential is an explicit allow-list of its own subjects plus its private _INBOX.<node> reply namespace. The verb family is worklist, heartbeat, and telemetry, with worklist-changed reserved for the re-pull nudge and og.v1.command.<node> the committed future per-node command queue. The trusted push lane is og.v1.api.telemetry, its own segment; the rejected alternative was a reserved node name under og.v1.telemetry.*, where the single-token wildcard would hand a node named api the trusted subject, so its own segment makes the forgery structurally impossible rather than dependent on nobody choosing an awkward name. Addressing is node-anchored and batch-granular: a record’s name is payload, never topic, and per-record subjects (the MQTT-style topic tree) are rejected. One recorded correction rides the entry: the one-token name rule (#586) was never justified by names as topic tokens; it stands on its own grounds. One consequence is named and deferred: the core-NATS verbs’ server-side consumers (worklist, heartbeat) are singletons by construction, and their HA fork (queue groups versus worklist reassignment) is a scaling decision for the day a second server exists. Telemetry does not face that fork: its ingest is a named durable JetStream consumer a second server joins.
  • Context: the topics conversation (recorded until now only in #584’s issue body) weighed a user-facing MQTT-style topic tree against the internal contract and split the two concerns: the internal bus follows KISS (NATS subjects carrying batches between the node and the server), and any future user-facing subscription surface is its own design with its own grammar, reachable over an MQTT bridge if wanted. Wire constants live in internal/collection/wire.go; the grammar section on messaging is the page-of-record.

ADR-0082: The type resource renames to location_type

Section titled “ADR-0082: The type resource renames to location_type”
  • Date: 2026-08-06 | Status: Accepted | Pages: identity and access, API
  • Decision: the permission resource type renames to location_type on every surface: the route stamps, the roles seed, the console gate strings, and the authz guard fixtures. The location-type property contract routes follow the same resource (location_type:update declares, location_type:delete withdraws). The generic word type retires from the permission vocabulary; no route stamps it and no role grants it.
  • Context: one word hid two registries: the Types console page held location types and secret types behind one nav word while type:* gated only the location registry, and the contract routes gating type:* beside product and standard gating their own nouns was a live asymmetry. The same one-word-hides-two-things shape the catalog arc exists to end, renamed pre-release while the rename is cheap; the Types page split carried it (#598, the epic #601).

ADR-0083: The Catalog rail is sectioned by the estate noun each registry serves

Section titled “ADR-0083: The Catalog rail is sectioned by the estate noun each registry serves”
  • Date: 2026-08-06 | Status: Superseded by ADR-0084 | Pages: UI
  • Decision: the Catalog nav cluster renders non-folding section headers under one naming rule: a section is named for the estate noun it serves and an entry keeps the registry’s own word, collapsing to plain Types where the registry has no other word (Locations > Types, Secrets > Types). The sections, mirroring Inventory’s order: Components (products, vendors, drivers, capabilities), Systems (standards), Locations, Secrets, Telemetry (metrics, properties, events, and the future log catalog as a soon entry), Action (rules, commands, and the future notifications), General (tags). The organizing line: Telemetry is what gets recorded, Action is what the platform does; Commands left Telemetry on the observed-versus-issued split, and Events stays in Telemetry because the shipped lane records happenings (caught from the estate, caused by the platform) and never sends them. Headers render from the permission-filtered entry list, so a fully gated section disappears with its entries; the palette tags sectioned entries Catalog · <section>; a visible Overview entry opens the /catalog hub, one card per visible section with live registry counts. Templates leaves the rail until the registry is real. Routes, tables, resources, and API surfaces are untouched: the rule governs presentation only.
  • Context: fourteen flat entries hid five real clusters: products, vendors, drivers, and capabilities serve components with nothing saying so, and standards served systems invisibly. Rejected along the way: a flat rail with hub-only teaching (daily wayfinding regresses to the soup), hover flyouts (hiding is the disease being treated, hostile to touch and keyboard, and a “Types” flyout bucket recreates the one-word-hides-many shape ADR-0082 retired), and a uniform Types suffix (reverses the lane-noun labels the five-lane epic settled). The nav word for the rule registry is Rules; the vocabulary beneath it (table, API, resource words for rules and the alarm rows they raise) is unsettled and tracked in #606, out of this decision’s scope.

ADR-0084: The catalog shell, and five signal lanes

Section titled “ADR-0084: The catalog shell, and five signal lanes”
  • Date: 2026-08-07 | Status: Accepted | Pages: UI, glossary
  • Decision: Catalog is a single rail entry opening a shell: a grouped subrail whose entries navigate to the real per-registry pages, rendered in the pane at their canonical flat URLs, with an Overview landing of teaching cards; the subrail and the Overview derive from one group table, judged through the same permission filter the rail uses. The groups, ordered: Telemetry (metrics, properties, events), Actions (commands, with rules and notifications as tracked stubs), Components (vendors, products, drivers, capabilities, a templates stub), Systems (standards, a templates stub), Locations (types, a templates stub), Metadata (tags). The organizing axis is direction, not genus: Telemetry is what you receive, Actions what you send or run; a command targeting a property or metric is a form dependency, not a menu adjacency. Consequences ruled with it: secret types loses its nav slot (the URL stays reachable and gated; the table’s retirement is the schema phase’s call); Logs stays out of Telemetry until a log_type exists; the Systems entry reads Standards until the system_blueprint rename lands with the schema phase, because splitting operator vocabulary across surfaces to ship a label early is drift by construction; and the blade model holds on every field (read facts until the pencil, per the epic’s approval caveat). The lane collective noun becomes five signal lanes, four inbound and one outbound: a command is an instruction you issue, not a telemetry reading, so “five telemetry lanes” retires as prose while ADR-0079’s structure (a command is a genuine peer lane: type table, instance table, registry) stands unrevised.
  • Context: the sectioned rail (ADR-0083) shipped its sections as rail geography and a hub that restated the rail; four design rounds against the live console replaced it: a single-surface browse table (identity-first rows, rejected for parallel-table drift against the real pages), a filter subrail (rejected because facets that filter one merged table cannot host each page’s own search and create flows), and finally the shell, which keeps the IA as wayfinding and the pages as the single surfaces. Grouping by subject entity rather than artifact class survived every round: an operator arrives knowing the entity, not the taxonomy, and a component template and a location template share only a word. ADR-0083 is superseded; its estate-noun instinct survives in the group names. The genus-naming discussion that produced the direction axis also queued the schema phase (system_blueprint, location contract removal, secret_type retirement, the four-class taxonomy), deliberately sequenced ahead of the #379 migration collapse and deferred from this decision.

ADR-0085: The component_type registry returns as the device-class genus

Section titled “ADR-0085: The component_type registry returns as the device-class genus”
  • Date: 2026-08-07 | Status: Accepted | Pages: core entities, storage, Products guide
  • Decision: The component_type registry returns: a seeded-plus-custom device-class taxonomy (display, projector, screen, presentation-switcher, video-bar, dsp, amplifier, mic, camera, codec, control-processor, touch-panel, …) that nests by parent_id (mic over wireless-mic, ceiling-mic, boundary-mic), on the same official-and-custom pattern as the other classification catalogs, operator-graftable at any node. It classifies the product (product.component_type_id, required), so a component inherits its type through the product it is; it is not a second classifier on the component. The row carries exactly the identity facts that genuinely span products, inheriting down the tree with override at any node: name, the naming stem (a subtype names components by its inherited stem unless it overrides), display_name, icon (the console glyph, replacing the too-coarse derivation from product.kind), abbrev (the two-to-three character hostname stem), and default tags. The seed discipline: a subtype exists only where a standard’s slot would name it; a fact like panel technology stays on the product. It is not a shape-definer: contracts, declared properties, and drivers stay on the product. The division of labour: the type says what a component is (one, via its product); the role says what a system needs (a typed slot, a separate decision the roles epic owns); the capability axis is untouched by this decision.
  • Context: ADR-0047 retired the component-level component_type when the fields folded into the product contract, and this partially reverses it, deliberately differently shaped: above the product rather than beside the component. What forced the return was naming and rendering. A generated component name needs a stem in the device-class vocabulary (display-1, the fp1 hostname convention), and the platform had no table that speaks it: the role is positional (display-front says where it sits), the product is a SKU (qm55), product.kind is three values wide, and capabilities are many-valued. Every identity fact the console kept reaching for (icon, abbreviation, base tags, name stem) turned out to live at the same missing level, which is the tell that the level is real. The economics confirm it: a thousand components, a few dozen products, a couple dozen types; each identity fact is authored once at the level it spans.
  • Tracked under epic #614.

ADR-0086: The product classification floor, and the kind split

Section titled “ADR-0086: The product classification floor, and the kind split”
  • Date: 2026-08-07 | Status: Accepted | Pages: core entities, storage, Products guide
  • Decision: Every component is required to name a product: component.product_id is NOT NULL. Three seeded generics (generic-device, generic-app, generic-service, each pointed at the matching generic component_type) cover anything not yet modeled as a real SKU, so the floor is total from the first migrated database onward: no component ever exists with no kind, no declared contract, and no driver path. product.kind narrows to device | app | service, drops its column default, and is required at create: an operator states a product’s class explicitly rather than reading a silent fallback to device that let a mislabeled cloud service pass as correct forever. vm retires, folded into app, because nothing forks on a virtual machine that does not fork the same way on any other app: a virtual appliance is a different SKU, not a different kind. The three that remain are the who-owns-what split: device (the box is yours), app (the runtime is yours), service (only the account is yours).
  • Context: ADR-0049’s own Context named the optional product as the forcing function behind capability-gated staffing’s resolved-capability layering: a role could not check a product’s capabilities directly because a component might not have one. Making product required closes that gap at the root rather than compensating for it one layer up, and does the same for the naming epic (ADR-0085): a generated component name needs a component_type, which needs a product, so “product required” is what makes the naming generator total rather than a fallback-to-hand-authoring special case. The vm retirement follows the same audit that found the kind default silently absorbing a mistake: a fixed four-value enum with a default reads as validated when it is merely unset, and the fourth value had no code path that branched on it the other three did not already cover.
  • Tracked under epic #614.

ADR-0087: Capability-gated staffing retires; an alarm impairs its component, not a named capability

Section titled “ADR-0087: Capability-gated staffing retires; an alarm impairs its component, not a named capability”
  • Date: 2026-08-07 | Status: Accepted | Pages: core entities, health, API

  • Decision: The alarm -> alarm_capability -> degraded-capabilities -> role chain ADR-0049 and ADR-0050 built retires. The replacement is three calls shorter: an alarm impairs its component’s own verdict wholesale, no longer routed through a named capability; a role’s occupant satisfies it whenever the occupant’s own verdict is not outage (Occupies() is Verdict != Outage, so a merely degraded occupant still occupies its slot, since severity is how loudly to page somebody, not a second staffing threshold); and the typed-slot guard (system_role_type, system_role_product: a filling component’s product must be classified within an accepted component_type, and, if pinned, be one of the named products) is now the only assignment-time check and plays no further part in health. impact, quorum, the worst-wins fold, and health as a recorded transition recomputed at the write are all unchanged; only the routing key changed, from a capability set to a component’s own verdict.

    Two refusal rulings that fell out of the same rebuild, generalized here because nothing else names them: a role-write refusal is 409 when it depends on rows other than the one being written (double-staffing a component across roles, a capacity below the currently assigned count: “the declaration or assignment request is not invalid on its own, it conflicts with the estate’s current state”), and 422 when the declaration alone is invalid regardless of other rows (capacity below quorum, an unresolvable typed-slot reference). And a boot-seed carve-out: choice_alternate (not role_choice, which keeps the ordinary insert-if-absent rule and no set-level reconcile; a choice row itself is never deleted by a reseed) reconciles to its declared YAML set on every boot, deleting a stored alternate that dropped out of the set (refusing instead, with ChoiceInUseShortfall, if a role still points at it) rather than leaving it in place. This is a deliberate departure from the platform’s usual boot-seed rule (insert-if-absent, ON CONFLICT DO UPDATE, an operator’s row never touched by a reseed): it is safe here only because choice_alternate has no operator write path (nothing but the seed ever writes one) and its position is a packed 1..n sequence within a choice, where a leftover orphan does not sit inert, it collides with the position a renamed or reordered entry now wants. It is a narrow exception for a position-ordered seeded child of a table nothing else writes, not a precedent: a seeded entity with an operator write path, or without a packed ordering an orphan can collide on, keeps the ordinary insert-if-absent rule.

  • Context: Task 5 of the identity-model epic (#626) shipped the retirement (ca78bd3, dbfa284) without filing this entry at the time; it is recorded now, against the gap, by Task 9 of the same epic. The forcing function was the typed-slot guard the prior slice had just landed (c006c62): once a component fills a role because its product classifies within an accepted component_type, gating the same assignment on a second, independent capability set was two guards asking the same question in different vocabularies, and the capability registry (capability, alarm_capability, component_capability, product_capability, system_role_capability, five tables) added a maintenance surface, an editing UI, and a resolved-set computation (EffectiveCapabilities) that nothing left standing needed. Health’s own reasoning for routing through capability (ADR-0050, “capability is the only vocabulary shared by the thing that breaks and the thing that cares”) no longer holds once assignment routes through type instead: the component itself, not a named fact about it, is what a role now cares whether is up. The 409/422 line and the boot-seed carve-out are recorded here rather than left as implicit code comments because both are the kind of local call a later slice reads out of context and either contradicts by accident or copies somewhere it does not fit; the boot-seed carve-out in particular must not be read as license to delete a shipped row for any other seeded entity, which is why its two preconditions are stated explicitly.

  • Supersedes: ADR-0049 in full: role_capability, component_capability, and EffectiveCapabilities are gone, not merely superseded in wording, and the typed-slot guard is what a role now requires. Amends ADR-0050: its chain item 1 (capability as the routing key) retires; items 2 through 5 (the pure judgement package, the transition-only record, recompute-at-the-write, and a report computing what it serves) are undisturbed and this entry changes nothing about them.

  • Tracked under epic #626.

ADR-0088: A placement change is an authorization act, so a move is its own verb

Section titled “ADR-0088: A placement change is an authorization act, so a move is its own verb”
  • Date: 2026-08-08 | Status: Accepted | Pages: core entities, API, identity and access

  • Decision: parent and location leave the PATCH body of component, system, and location entirely (both the API input structs and the storage Patch structs) and become a new POST /<collection>/{ref}:move custom method, carrying {location?, parent?} on component and system (at least one required, 422 otherwise) and {parent} only on location. :move is gated by a new, single-word permission token, <resource>:move, distinct from <resource>:update the same way :rename is distinct from it, seeded in internal/seed/roles.yaml beside rename in the same slice its route lands (Operator and Deploy get component:move; Deploy also gets system:move and location:move; Administrator’s system/location grants gain move). :move writes a DISTINCT audit verb, move, not the generic update a PATCH wrote (a loosely worded “the move is auditable” acceptance criterion was already satisfied by the old row, whose JSON happened to contain parent_id, without forcing anything). :move never calls RecomputeHealth: a component’s or a system’s own reparent never has, and a component’s relocate never has either (a component’s verdict is purely its own active alarms, unaffected by placement). The one exception, stated so it is not mistaken for an oversight: a system’s relocate (its location field, not parent) keeps recomputing health at both the location it left and the one it arrived at, exactly as UpdateSystem’s combined patch already did (TestHealthMovesOnRelocation is the load-bearing proof); the health rollup runs system -> location, and a system’s own location is a direct input to that rollup the way a component’s placement no longer is post-#626, so “a placement move never recomputes health” holds for every reparent and every component relocate but not for this one field. This is a correctness statement, not a coverage claim: a second, known-and-tracked gap sits beside it. locationVerdict also rolls up recursively through the location tree (a system’s location resolves upward to every ancestor, and a location’s own verdict folds every system in its subtree downward), so a location with placed descendants that moves to a new parent leaves both the old and new ancestors’ recorded verdicts stale, exactly the shape a system relocate closes but nothing closes for a location move. This is not new here: UpdateLocation’s old reparent branch never recomputed health either, so MoveLocation carries the gap forward rather than introducing or closing it, per the same “:move does not add new recompute calls” ruling. Tracked as #642, not fixed in this task.

  • Decision (the gap this closes): UpdateComponent’s and UpdateSystem’s old reparent branches guarded a rejected reparent only on the non-empty case (if patch.ParentName != nil && *patch.ParentName != ""); an explicit empty string skipped the guard entirely and set parent_id to NULL with no scope check at all, while CreateComponent/CreateSystem already refused a root placement (create.All required) to a caller without an all-scoped grant. A component- or system-scoped (not all-scoped) principal, who could already write anything inside its own subtree, could clear a row’s parent and walk it out of every subtree scope it had ever been placed under, with no check the create path itself would have refused. MoveComponent and MoveSystem now require action.All on the same branch, closing it; TestScopedPrincipalCannotLiftToRoot and its system twin are written from scratch, since every existing lift-to-root test ran with the all scope and none would have caught the gap or would turn red from the fix.

    The argument is written on parent_id, not location_id, because it is the true, checkable one: component and system scope is own-tier only today (a component’s scope tree is its own ancestor chain, unrelated to a location’s), so a location_id clear cannot lift a row out of a scope that never covered it in the first place, and the cross-tier cascade that would make a location-scope argument meaningful is a tracked later slice (#10). The durable framing that also covers that latent hole once it lands: a placement change is an authorization act, whatever tier it crosses, not merely a field write that happens to touch two more columns than a rename touches one.

  • Decision (the deliberate asymmetry): MoveLocation does not gain a clear-to-root capability. UpdateLocation’s reparent branch never had one either (an explicit empty ParentName resolved nothing and was already a 422, ErrParentNotFound, before this split), so there was no gap to close there, and adding clear-to-root now would be a new product capability nobody asked for, not a security fix riding along with this task. The asymmetry with component and system, which DO gain a guarded clear-to-root, is intentional and stated here so a future reader does not read it as a missed spot.

  • Decision (the transaction split): MoveComponent and MoveSystem are separate gateway functions with their own transaction and their own audit row, not a shared statement with UpdateComponent/UpdateSystem. UpdateComponent’s old UPDATE carried a three-state CASE across four columns (display_name, product_id, location_id, parent_id) in one statement; splitting placement out splits that statement, so an operator gesture that used to change both a label and a placement in one PATCH now costs two requests and writes two audit rows if the caller wants both. This is the same tradeoff RenameComponent/RenameSystem/RenameLocation already established for name-plus-other-field edits (ADR-0076), chosen deliberately here for the same reason rename earned its own act: a placement change is an authorization act, not a label edit, so it deserves its own grant and its own audit trail entry rather than riding along with whatever else a PATCH happened to touch.

  • Amended by ADR-0092: the known-and-tracked second gap this entry records (a location move leaving both ancestor chains’ recorded verdicts stale, #642) is closed. The ruling is unchanged in principle and gains a second member of the same exception class it already carved out for a system’s relocate: :move recomputes health exactly where the rollup genuinely depends on the placement being changed, which is a system’s location and a location’s parent, and nowhere else.

  • Context: Task 13 of the identity-model epic (#627). The two storage placement test files (components_placement_test.go, systems_placement_test.go) and the placement end-to-end tests moved to the new verb rather than being deleted; the compiler found every storage caller once the Patch struct fields were removed, the HTTP end-to-end callers (map[string]any bodies, resolved only at request time) did not, and were found by re-reading every PATCH .../parent and PATCH .../location call site by hand. location:checkName is unaffected: it is the advisory placement-availability precheck, unrelated to :move, and was not touched.

  • Tracked under epic #627.

ADR-0089: A uuid is the address, a dotted path is a positional lookup

Section titled “ADR-0089: A uuid is the address, a dotted path is a positional lookup”
  • Date: 2026-08-08 | Status: Accepted | Pages: core entities, storage, identity and access, API, glossary

  • Decision: An entity has two resolvable references, different guarantees, both legitimate and labelled as such. The uuid is the address: immutable, surviving rename and move, the only reference the platform itself ever generates or persists. The dotted path is a positional lookup: human-typed, resolving to whatever occupies that position now (boi.17c.415a.$comp.display-1 after a panel swap resolves to the replacement, which is the point of a positional reference, not a defect of one). The containment rule: a reference the platform generates is always a uuid; a reference a human types may be a uuid, a bare name, or a dotted path. The console persists and addresses every read and write by n().raw.id (web/src/pages/Components.tsx, Systems.tsx, Locations.tsx), so a stale path can only ever exist where an operator typed one, into a CLI, a runbook, or a hand-built request. Because a platform-owned name recomputes at every :move (ADR-0090), a path built entirely from platform-owned segments cannot itself go stale between the read that produced it and the write that consumes it; only an operator-owned segment can drift, and only because an operator chose to rename it.

    This does not reopen ADR-0079’s one-name-rule collapse (#586). That decision killed a NAME that could itself contain a dot (icmp.rtt-avg, a keyspace catalog key); today every name, keyspace or entity, is exactly one kebab segment, no dots, at most 100 characters, on the one rule storage.ValidateName applies everywhere (internal/storage/name_rule.go). What this decision adds is a reference, syntactically distinct from a name, that concatenates several individually-valid single-segment names with . and a $accessor ($comp, $sys, $role) into one positional path. icmp.rtt-avg was the last name a table’s name column held with a dot in it, backfilled dot-free by #586 itself (icmp.rtt-avg to icmp-rtt-avg); no name column has held one since, and this epic adds none: a dotted value is never stored, only resolved.

    The allowlist is the load-bearing fact. The entity name rule, ^[a-z0-9][a-z0-9-]*$ (internal/storage/name.go), is an allowlist, not a denylist of characters someone remembered to exclude. A name can never contain a separator or wildcard from any protocol, chosen or not yet chosen: . (path segments), $ (accessors), * and > (NATS), / and # (MQTT), % (URL escaping), or : (reserved by the router for a custom method’s verb suffix, POST /components/{ref}:rename: a name admitting : would make rm215a:rename ambiguous between the entity rm215a:rename and the entity rm215a with the :rename verb, so the allowlist excludes it for the same reason it excludes everything else on this list). That single property is what lets one grammar render as a CLI argument, a REST path segment, or a NATS subject with no escaping anywhere, and lets most segments render as a DNS label or an email localpart, since the character set alone is a subset of both: what the allowlist does not guarantee is a segment’s fit under DNS’s own 63-octet label ceiling (the 100-character entity limit is wider) or DNS’s ban on a trailing hyphen (^[a-z0-9][a-z0-9-]*$ legally admits abc-); both are a render-time concern for whichever segment eventually feeds a hostname, not a naming rule this decision enforces. An allowlist still composes across every namespace it has not met yet, where a denylist has to be re-audited for each new one.

    A percent-encoded slash arrives already decoded. The HTTP handler decodes a path parameter before the address parser ever sees it (verified against the router, not assumed, before Task 12 built on it), so a caller cannot smuggle an extra path level past ParseAddress by encoding a / or a .. Every segment, in the location root, the plane tail, and the role name alike, passes the entity name rule inside ParseAddress itself (internal/storage/path.go:74-77) before any of it reaches a query: validation is structural, not a property of what happens to already be in the database.

    A dash render and a bare render are display-only, and neither is a form the resolver ever treats as a path. RenderDash (boi-17c-216b-display-1) strips the accessor; RenderBare (boi17c216bfp1) further compacts the final segment to the component type’s abbrev plus its ordinal and drops every separator, hyphens included (internal/storage/render.go). Both exist for labelling only (a cable tag, an asset sticker, a compact row sub-line): accessor-stripping is lossy for the dash form and stem-compaction is lossier still for the bare form, so neither round-trips through ParseAddress/resolvePath. Both also still satisfy the entity name rule on their own (letters, digits, and hyphens, no dot or $), so a dash or bare string handed back to the resolver is not refused as malformed: ParseAddress reports it is not an address at all and it falls through to the ordinary bare-name path, almost always matching no row, an unremarkable 404 rather than a distinguishable error.

  • Decision (six edges, recorded rather than hidden): the read path (scopedByNameInScope, refPolicyHide) and the write path (resolveScopedRef, refPolicyForbid) share one primitive, resolveRef (internal/storage/scopedcrud.go:521-546), but they do not share every guarantee, and the gaps below are shipped as stated limits, not silently left for the next reader to discover.

    1. resolveRef’s write-path policy proves “writable here,” not “readable here.” resolveScopedRef (scopedcrud.go:633-649) narrows candidates by the caller’s create- or action-scope, not its read scope. A resolved reference is one the caller may place a binding against, which is a narrower claim than the scope ruling’s own wording (“scope decides before ambiguity does”) suggests on its own. Amended (#700): that claim was too weak for a CROSS-TIER placement reference, and the amendment narrows which references the edge covers rather than changing the policy itself. A create’s or a move’s location and system references (CreateComponent, CreateSystem, MoveComponent, MoveSystem) resolved existence-only, because the caller’s create scope is resolved for the entity being written and can never match the referenced tier’s own ancestor chain. Once ADR-0100 put placement into the label data map, the label those writes stamp and hand back is rendered from the referenced row’s label, so “writable here” stopped being the right question and “readable here” became it. They now go through resolvePlacementRef, which applies the READ path’s policy (scopedByNameInScope, refPolicyHide) using the caller’s scope on the REFERENCED tier, matching what :renderLabel already did for the identical references (ADR-0104) so a preview and the create it previews cannot disagree. resolveScopedRef keeps every same-tier parent and owner reference, where this edge still reads as written. Amended again (#705): CreateNode and UpdateNode bind a location the same way and were the one caller-supplied placement reference left resolving existence-only, so they take the same seam. The node tier reaches it by the plain invariant rather than by the label argument above: no node label rule exists, so the write stamps nothing from the location it names and discloses nothing about it, but ABAC scope is injected on every applicable query and a reference resolved without it is an exception to that rather than a carve-out anybody decided on. The refusal is the same non-disclosing ErrLocationNotFound an absent location gives.
    2. A bare-name forbidden is a name-existence oracle. A name matching at least one row, none of them in the caller’s action scope, is cfg.forbidden (403), not the read path’s non-disclosing 404 (scopedcrud.go:469-475). A caller can learn a name exists somewhere in the estate from the status code alone. This predates the epic and is tested (interfaces_scope_test.go:82), and it is now asymmetric with the read path this branch tightened (scopedByNameInScope folds the same two cases into one 404), by design: several routes’ contracts already depend on the 403/404 split a caller supplied its own reference into, which is not the new disclosure a read’s uuid would be.
    3. An ambiguous ?system= on a component’s tags read is a new, narrower oracle, preferred over what it replaced. ResolveTags (internal/storage/tags.go:449-459) now 409s a component:read caller whose forSystem filter matches more than one system, redacting candidates (withoutCandidates). A caller with no system:read grant learns two systems share that name. This is a deliberate improvement: the alternative silently seeded the tag cascade from whichever system a bare-name lookup happened to resolve to, returning a wrong answer with no signal at all.
    4. The $role accessor parses but resolves nowhere. AddressRole (internal/storage/path.go:35-42) is syntactically real: boi.17c.$sys.av.$role.primary-dsp parses to a well-formed Address. addressKindTable (scopedcrud.go:247-263) has no table for it, so resolvePath reports the same ErrPathNotFound it would for any other plane mismatch, a non-disclosing 404 that does not distinguish “role addressing is not built” from “this role does not exist.” Reserving the grammar ahead of its resolution is a stated decision here, not a gap found later: the day a system-role read exists, it inherits a grammar it never has to renegotiate.
    5. The boot-seed reconcile-and-delete carve-out is a separate pattern, cross-referenced, not restated. choice_alternate’s every-boot reconciliation (ADR-0087, storage) is about which seeded rows a reboot may remove, not about how a reference resolves or who holds the pen on a value; it shares no mechanism with this decision or with ADR-0090 and is named here only so a reader does not conflate the two governance patterns.
    6. The tier guard inside resolveRef is forward insurance, not proof. resolveRef panics if the caller’s scope was resolved for a resource that does not Cover the config being checked (scopedcrud.go:521-524). Every one of the 29 non-test call sites of scopedByNameInScope and resolveScopedRef today passes a resource label already derived from the same config it is checked against, so the guard cannot fire on any input the current code produces, and a green suite running with it live proves nothing beyond that (scopedcrud.go:507-517, in the code, says so explicitly). It is insurance for the next call site that copies a pattern without updating the label. It also inherits a blind spot from scope.Covers: for secret, variable, field, and telemetry, every tier is admissible, so the guard tells a right family from a wrong one but not a right tier from a wrong one within that family, exactly the shape a real cross-tier regression took in this epic’s own review before a scoped test, not this guard, caught it.
  • Extends ADR-0062: that decision’s dual-accept clause already said a reference “resolves whichever form it is given”; this decision makes the third form literal rather than aspirational. loadByRef (internal/storage/scopedcrud.go:158-202) tries a uuid, then a parsed dotted address, then a bare name, in that order, for every scoped tree entity.

  • Amends ADR-0076 in justification, not shape: :rename stays exactly the gated custom method ADR-0076 built, and it earns a second job under ADR-0090: it is now precisely the boundary where an operator takes the pen from the platform’s name-tracking. What changes is why the ceremony still earns its keep. ADR-0076 accepted “an external reference held as a name breaks on rename, and nothing on the server can repair it” as the renameable identifier’s cost. Once the uuid is the address that argument is repaired: an integration holding the id survives every rename, and one holding a path is a positional lookup honestly reporting whatever occupies that position now, not a broken link. What remains, and is sufficient on its own, is the permission split (an operator trusted to edit display_name is not thereby trusted to rewrite the identifier colleagues type) and the pen-taking act itself.

  • Context: every estate name was globally unique before this epic, so operators hand-encoded the building into every name and the encoding went stale on every move, twice per room (location and system). ADR-0076 already made the id the durable reference and the name the renameable display key; this decision (identity-model epic #627, Tasks 10 through 12 and 15) makes the id literally an address a caller composes, types, and resolves, and gives a human a second, positional way to reach the same row without inventing a third identity field. The path grammar was reserved, syntax-only, in internal/storage/name.go since ADR-0076; Task 10 made every internal owner-resolve id-based ahead of the placement-scoped uniqueness DDL (Task 11, db/migrations/20260808090000_names_scope_to_placement.sql), Task 12 built the parser and resolver (internal/storage/path.go, resolvePath), and Task 15 put the resolved path, its segments, and both renders on the wire and pointed the console at uuids exclusively. Task 13’s :move verb (ADR-0088) and Task 14’s name generation (ADR-0090) are what make a platform-owned segment of a path trustworthy rather than merely typeable.

  • Tracked under epic #627.

ADR-0090: A derived value is a default that tracks until touched

Section titled “ADR-0090: A derived value is a default that tracks until touched”
  • Date: 2026-08-08 | Status: Accepted | Pages: core entities, storage

  • Decision: when the platform can compute a value an operator would otherwise type, it follows one rule with four binding clauses, and none of the four make the value a constraint: a derived value can prefill a field but it can never cause a write elsewhere to be refused.

    1. The platform fills. A component’s name is minted at create when an operator leaves it blank: <component_type stem>-<n>, the ordinal the smallest positive integer no sibling matching that stem already claims in the same placement scope, a sibling on a different stem never blocking it (generateComponentName, internal/storage/namegen.go:129-168).
    2. A platform-owned value tracks its facts. While component.name_generated = true, the name recomputes inside the same transaction as whatever changed its inputs: a :move to a new placement (internal/storage/components.go:632-655) or an ordinary product PATCH that reclassifies the component to a new type (components.go:470-496). Both ride the causing write’s own audit event, old and new name in its payload; a platform-driven recompute is never itself a :rename.
    3. The operator owns it on first touch. :rename (components.go:706-727) clears name_generated to false unconditionally, whether or not the row was already operator-owned, and from that write the platform never recomputes the name again no matter how the facts move afterward.
    4. The operator can hand it back. :resetName (components.go:744-774, gated by the same component:rename token :rename uses, since both change the identifier) regenerates the name from the component’s current type and placement and sets name_generated = true again, whether or not it already was.

    The contrapositive is the other half of the rule: a value the platform must own unconditionally (a health verdict, a resolved effective-tags set) is computed on every read, never stored as a default an operator could edit into a lie. The boundary between the two is whether the operator is allowed to disagree with the platform’s answer.

  • Decision (the migration default deviates from the epic’s own wording): component.name_generated boolean not null default false (db/migrations/20260808090000_names_scope_to_placement.sql:39-46) ships DEFAULT false, not the DEFAULT true the epic issue specified. This is deliberate: every component row that exists before this column lands was operator-typed under the pre-#627 model, where no generator existed to have picked a name for it. DEFAULT true would hand the platform a pen it never earned over real, pre-existing operator data and let the very first :move against one of those rows silently rename it. The gateway writes the flag explicitly on every insert from Task 14 onward, true on a generated create and false on an operator-typed one; the column default describes only a row this migration found already sitting in the table, never a row created after it.

  • Context: the same shape resolved independently twice on this branch before it was named as one principle, which is what promotes it from a per-feature habit to a rule to check new work against. A component’s name (Task 14) is the built case above. createIdentity (web/src/lib/entities.ts) already ran clauses 2 and 3 client-side for a catalog entity, deriving a slug from a display name live and freezing it on first edit, before this decision gave the server-side pattern a name. The product classification floor (ADR-0086) is the contrapositive’s own evidence: a silent schema default on product.kind let a mislabeled cloud service read as correct forever, exactly the failure clause 1’s explicit fill and clause 3’s no-silent-default guard against, which is why kind is required at create rather than defaulted. A system’s own location_id (internal/storage/systems.go) is a live counterexample to clause 2, worth naming because a reader could otherwise assume every platform-computable field tracks live: it is authored at create and changed only through :move (ADR-0088), never derived from system_member rows, so clause 2’s live tracking is confirmed here as a per-field policy choice this decision’s own build makes differently for a system’s placement and a component’s name, not a mandate every derived field must take. The boot-seed reconcile-and-delete carve-out (choice_alternate, ADR-0087, storage) is a related but distinct pattern, about which seeded rows a reboot may remove rather than who holds the pen on an operator-facing value; it is cross-referenced here, not restated.

  • Tracked under epic #627.

ADR-0091: An update_mask says which fields a PATCH writes

Section titled “ADR-0091: An update_mask says which fields a PATCH writes”
  • Date: 2026-08-09 | Status: Accepted | Pages: api

  • Decision: a PATCH body may carry an optional update_mask, with AIP-134’s semantics exactly: an absent mask is the implied mask of the fields the body populated (a non-empty value), which is what every PATCH in the tree already did; a present mask writes exactly the fields it names, populated or not, so a named field carrying its zero value clears; ["*"] is full replacement, the equivalent of a PUT, and cannot be combined with named fields; and a mask naming a field the resource does not patch is a 422 naming the field, never a silent no-op. Top-level field names only, spelled as the wire body spells them. It rides in the request body, not the query string. It is built as a primitive (internal/updatemask, a pure Resolve over three lists) and consumed by one caller, the role declarations, which are converted from PUT to PATCH in the same change.

  • Context: the API could set a field and could narrow one, but for anything that is not a string it could never unset one. system_role.capacity is an integer with no empty-string sentinel available, so once an operator set a cap, raw SQL was the only way back to unbounded (#638). That is not a capacity quirk, it is a property of every non-string optional field the API will ever have, and AIP-134 has no answer for it through the implied mask, whose whole definition is “fields that are populated”. The mechanism it gives is the explicit mask.

    Why the body, not the query. Google puts the mask in the query because gRPC transcoding binds the request body to the resource itself, leaving nowhere else for it. There is no gRPC here, Huma models a body as a typed struct, and a body field generates cleanly into the OpenAPI document, the typed SPA client, and a CLI flag with no hand editing. Recorded because it is expensive to reverse once clients exist.

    The three-state string sentinel stays. An omitted field unchanged, an explicit "" clears, a value sets (emptyPtrToNil, internal/api/products.go) is already the house convention for an optional string reference, taught by the CLI reference on :move and the system patch. The mask generalizes clearing to everything that is not a string; it does not retire the sentinel, which is a larger ripple across the docs and the CLI reference and should not ride along with the mechanism that would eventually replace it. Where the two meet, the sentinel wins the definition of “populated”: a pointer to "" counts as populated (the caller said something, and what they said was “clear it”), which is what keeps the role alternate’s explicit detach path working.

    No retrofit. The other 108 PATCH registrations accept no mask and are not changed. They stay correct for free: an absent mask IS the implied mask, so their behavior is byte-identical, proven by the suite staying green with no expectation edited. Retrofitting is a per-route decision about which fields are patchable, not a mechanical sweep, and doing it under one slice would have made the primitive impossible to review.

    The roles conversion is the proof, and it changes wire behavior. The role declarations were a PUT carrying two semantics at once: capacity and alternate preserved on omit while display_name, quorum, impact, position_labels, accepted_types and pinned_products replaced wholesale, so a write carrying only display_name silently reset the role’s impact to degraded and dropped its labels and its typed slot (#639). Under the implied mask the whole body reads one way. Two consequences are deliberate rather than incidental: an empty list is not a populated field, so [] now means “unchanged” where it used to clear, and clearing a list means naming it in the mask (the console’s role editor therefore names every field it owns, and nothing it does not); and the declaration routes become PATCH, which AIP-134 requires and which matters because PUT “becomes a backwards-incompatible change to add fields to the resource”, and fields are about to be added. The PATCH still CREATES the role when it is absent, which AIP-134 would gate behind allow_missing: there is no other create path for a declaration (the role is addressed by name within its owner, so declaring and revising are the same idempotent write), and a flag whose only legal value is true teaches nothing. The binding-style PUT routes (members, the *_properties and *_metrics association routes) are untouched: they set an association wholesale rather than updating a resource.

  • Tracked under #666, with #638, #639 and #640.

ADR-0092: A location move recomputes both ancestor chains

Section titled “ADR-0092: A location move recomputes both ancestor chains”
  • Date: 2026-08-09 | Status: Accepted | Pages: health, API
  • Decision: MoveLocation recomputes health when it changes a location’s parent, inside the transaction the move already opens, over BOTH ancestor chains: the one the location joined and the one it left. This is the second and last member of the exception class ADR-0088 carved out for a system’s relocate, not a reversal of its “a placement move never recomputes health” ruling: :move recomputes exactly where the rollup genuinely depends on the placement being changed, which is a system’s location and a location’s parent, and nowhere else (a component’s or a system’s parent stays health-inert, and so does a component’s location, since a component’s own verdict is purely its active alarms per ADR-0087). The trigger names ONE row per side, the moved location and the parent it left, not a walked chain: locationsOver already takes its named locations as the seed of a recursive ancestry CTE, so each named row carries every ancestor above it, and walking either chain in Go first would reimplement in a second place the walk the query performs. Resolving the old chain after the write is equally safe, because the only parent edge the write touches is the moved row’s own, so the old parent’s ancestry reads the same before and after. A :move that changes no parent (the documented no-op) recomputes nothing, the same guard the system relocate applies.
  • Context: #642, filed by ADR-0088’s own review round and closed here. The gap predates the :move split: UpdateLocation’s old reparent branch never recomputed either, so nothing has ever recorded this edge. It matters because a location’s verdict is the one rollup that genuinely depends on where the row sits: locationVerdict folds every system in the location’s own subtree, walked downward by a recursive CTE, so a location with placed descendants moving to a new parent really does change what its old and new ancestors should read. Left open, an operator reorganizing a campus would see the abandoned branch frozen at the verdict of a room that is no longer in it, and the new branch reading healthy over a room that is. The reads never lied (both health reads compute the verdict they serve), so the cost was confined to the recorded history, which is exactly the “a missing trigger is a hole in the history” cost the health page enumerates its trigger list to avoid.

ADR-0093: The tag cascade follows the component it resolves for

Section titled “ADR-0093: The tag cascade follows the component it resolves for”
  • Date: 2026-08-09 | Status: Accepted | Pages: tags, identity and access
  • Decision: Effective tags are authorized by the component the cascade resolves for, and by nothing else. A caller who can read that component sees every value that cascades onto it, including values owned by a system or a location the caller could not have listed directly. The ?system= parameter is a filter over that answer, choosing which membership seeds the system band, and never a widening of it: seed_sys already requires the named system to be one the component belongs to. Per-band scope checks are deliberately NOT applied.
  • Context: #641 proposed resolving ?system= through the caller’s read scope. Three findings closed it as the posture we already hold rather than a defect. First, the obvious implementation is the exact change #627 made and reverted as a critical: ResolveTags resolves its scope for component (the route is gated on component:read), and inScopeTree walks the target table’s own chain, so a component-tier id can never appear in a system’s ancestor chain and every non-all caller’s band silently vanished, a wrong answer with no error rather than a refusal. TestResolveTagsSystemBandSurvivesScopedCaller stands as that regression and asserts the band IS present for a scoped caller. Second, the check would not close the disclosure it named: the same values reach the same caller through the primary-membership default seed, through sys_chain’s ancestor walk above the seeded system, and through the deliberately scopeless batch resolver behind the directory’s Tags column. Third, and decisively, the cascade is a property OF the component: a value that resolves onto a component the caller may read is part of that component’s configuration, and withholding it would report a resolved configuration that no longer resolves to what the platform actually applies. The alternative, a per-band scope-filtered cascade, is a coherent design and a much larger one (per-tier scopes threaded from the API, a rule for the default seed and the ancestor walk, redaction of shadowed candidates, a batch contract, and that regression rewritten). It is not ruled out forever; it is ruled out as a patch, and it would need a threat model that wants it.

ADR-0094: Benchmarks are the second performance instrument, and they gate nothing

Section titled “ADR-0094: Benchmarks are the second performance instrument, and they gate nothing”
  • Date: 2026-08-09 | Status: Accepted | Pages: test-driven
  • Decision: Performance has two instruments, and only one of them gates. Round-trip counting (internal/storage/storagetest/querycount, asserted in list_cost_test.go) stays the deterministic net that runs in make test and blocks a merge. Wall-clock benchmarks (make bench, ten benchmarks over the real Gateway at two estate sizes) are diagnostic only: run deliberately before and after a change that claims a performance effect, and compared with benchstat. Counting catches the N+1 exactly; benchmarks catch what counting is blind to, which is everything inside a single statement (a dropped index, a plan flip to a sequential scan, a recursive CTE that stops being bounded, a predicate that stops being sargable). Every benchmark runs at a small estate and a larger one, because one size cannot tell a constant apart from a linear cost, and every fixture is built outside the timed section, because a benchmark that provisions inside its own loop measures the harness.
  • Not chosen, and why each was refused rather than deferred by accident:
    • No CI job and no merge gate on a duration. A wall-clock threshold on a shared runner either sits so loose it catches nothing or it flakes and gets muted. A perf job everybody ignores is worse than none, because it reads as coverage. A Go benchmark is inert without -bench, so this is the natural shape rather than a compromise.

    • No stored baseline artifact. benchstat comparison needs a baseline per commit or per release plus a policy for when a regression blocks a merge, which is real infrastructure that should be built because it is needed, not because benchmarks felt like diligence. A number committed to the tree is a number from a different machine on a different day.

    • No EXPLAIN plan assertions, deliberately deferred rather than dropped. They are the sharpest tool for the dropped-index class and cost no timing at all, but a plan depends on table statistics, so a fixture too small plans differently from production and the assertion pins the wrong shape. Revisit when a fixture is realistic enough for the planner to agree with production, or when a specific plan regression proves the benchmarks insufficient.

      Amended (#725): the deferral stands for the plan a planner prefers and is lifted for an access path a query can reach, which is a different question with a different dependence on statistics. Neither revisit condition above is met (no fixture here is production-sized, and nothing regressed a plan) and neither is claimed: what ships is narrower than what was deferred. Planned with set enable_seqscan = off, which prices the sequential path out rather than forbidding it, EXPLAIN answers “which index is this relation reachable by”, and that answer does not move with the fixture’s size: measured over the health reads on an empty database, on a 45-row fixture with no statistics at all, and on the same fixture analyzed, the join shapes around the scan differed in all three (hash join to merge join, a sort appearing and disappearing) while the scan of property was the same index scan carrying the same index condition in every one. The instrument is internal/storage/storagetest/accesspath, it gates in make test as counting does, and three rules bound it. Assert the access path of one relation, never the plan’s shape. Assert the index condition as well as the index name, because a coerced predicate or a leading column dropped from the filter leaves the index NAMED in the plan and walked rather than searched, which reads as a pass. And never assert a duration or a preference, which is this entry’s standing invariant, untouched. It earns its place on the class no other instrument here can see: a partial index can sit in pg_indexes and be unreachable by the read it was built for, because its predicate stopped being provable from the query’s own clauses, and the statement count is identical either way.

    • No timing assertion anywhere, in a benchmark or a test. This is a standing invariant, not a property of this slice.

      Amended (#1640): the micro-benchmarks stay diagnostic, and the three refusals above now hold for them alone. A whole scale lab measured end to end gates against a committed baseline (make perf-check): a CI job that is opt in and never required, a baseline that is generated per host class and carries its host’s fingerprint, and times compared only as medians against the runs’ and the baseline’s spread, only on that host. Still no timing assertion in a test or a benchmark (ADR-1640).

  • What the first run measured, because a benchmark set is only as honest as its floor. One pool acquire and one empty statement costs about 265us on the dev box, and every other number contains one copy of that per statement the call issues. The reads land between 0.7ms and 5.7ms with a run-to-run spread near 5%, so a plan regression in them is visible. The health RECOMPUTE chain does not: a raise-and-clear pair costs about 22ms across 58 statements, so roughly three quarters of it is transport that no planner decision can move, and its spread is three times the reads’. It was built, measured, and deliberately not shipped, because a benchmark that cannot detect the regression it appears to watch is worse than none. A path that round-trip-bound is counted, not timed, which is the same reasoning that made counting the first instrument.
  • Context: #651, filed out of Fred’s question during #643: “how do we know if performance decreased or increased”. #650 answered the counting half. This is the half counting cannot answer, and it was deliberately sequenced after #649 replaced per-test migration with a template-database copy: while provisioning was about 90% of a storage run, timing anything on top of it measured the harness.

ADR-0095: An operator forks a shipped registry row instead of the platform writing it

Section titled “ADR-0095: An operator forks a shipped registry row instead of the platform writing it”
  • Date: 2026-08-09 | Status: Accepted | Pages: storage, core entities, API

  • Decision: An operator’s edit of a shipped (official: true) registry row never writes that row. It writes a shadow: the operator’s version of the row’s mutable columns, stored in one registry-agnostic registry_shadow table keyed (registry, row_id) where row_id is the shipped row’s own uuid. Every read resolves the shadow over the official row, and restore-to-defaults (POST /component-types/{id}:restore for the first adopter) is deleting the shadow. The official row is neither updated nor deleted by any operator action, so a release can improve it without stomping anyone, and a delete of a shipped row stays refused whether or not it is forked: a fork is an overlay, not ownership. component_type is the first adopter; the other registries carrying official adopt as their slices land, needing no schema of their own.

    Three sub-decisions carry the shape, and an adopter must keep all three.

    1. The shadow is keyed on the shipped row’s uuid, in one generic table, not by a namespace column on the registry. The rejected alternative was namespace text with the unique relaxed from (name) to (namespace, name). It fails on addressing, which is the thing this repo has already settled twice. Relaxing the unique makes every name-keyed lookup on the registry return two rows, and QueryRow takes an arbitrary one; that is eight call sites on component_type alone, several of them in helpers shared with twelve other registries (guardTypeMutable, registryAuditImage, deleteTypeRow, requireRegistryRow), so a single missed site is a silent wrong-row bug rather than a failure. Worse, a same-table shadow needs its own uuid, giving one logical row two, while product.component_type_id and role_component_type.component_type_id are foreign keys to component_type(id) that would keep naming the official one: the fork would not take effect for the rows that matter, and the id a write echoes back would change on fork, which is the namespace leaking into the URL that #655 forbids. The literal (namespace, id) composite primary key the issue sketched makes id non-unique and forces dropping all three inbound foreign keys, including the ON DELETE RESTRICT bought by #507. Keying the shadow on the shipped row’s uuid keeps component_type_name_key a global unique, keeps every foreign key and every existing lookup matching exactly one row, and reduces the change to what a read resolves to rather than what anything addresses. Generic rather than one shadow table per registry because twelve more registries adopt later and the per-type rule columns of #657 add columns to them: a typed shadow table would double the DDL cost of every future column on every adopter, and this costs none. The polymorphic (registry, row_id) reference is the shape audit_log’s (resource, resource_id) already uses.

    2. A fork captures the WHOLE mutable row, not only the edited column. So a later release’s improvement to a column the operator did not touch does not reach a forked row: the operator took the row over, and restore is how they hand it back. The alternative, a sparse overlay where unedited columns keep tracking the release, is not merely a different trade here, it is unrepresentable: stem, icon and abbrev are nullable and null already means “inherit from the nearest ancestor”, so a sparse overlay would need null to mean both “not overridden” and “inherit”, i.e. a third state and a separate overridden-column set. That is the merge and three-way-diff machinery the issue’s thin cuts rule out. The image is therefore stored as a whole-row jsonb of the mutable columns, each nullable column written as an explicit null rather than dropped, and the resolve overlays the keys the image carries. That last distinction is what makes a column added to a registry after a fork resolve to its official value instead of to nothing, which is the only sane answer for a column the fork could not have had an opinion about.

    3. Inheritance across the shadow boundary resolves PER NODE, in official structure space. The split that makes it decidable is structure versus facts. Structure is the uuid, the name, the official flag and parent_id; a shadow never carries any of them, so a fork restates what a node says and never moves, renames, or re-provenances it. Facts (display_name, stem, icon, abbrev, default_tags) resolve shadow-over-official at each node independently. The walk therefore visits the same node sequence it always did, and at each node reads that node’s effective row before applying the existing first-non-null-wins rule. Forking an ancestor reaches every descendant that does not override the field; forking a leaf does not cut it off from the ancestors it inherits from; a chain with some nodes forked and some not is not a special case, because there is no such thing as a forked chain, only forked nodes. The rejected alternative, per chain (“a forked leaf walks only forked ancestors”), would make forking a leaf silently drop every inherited fact, and it names an object the schema does not have: parent_id is per row. The ruling survives parent_id becoming patchable later, which it is not today (ComponentTypePatch has no parent field and there is no reparent leg): the walk follows the effective row’s parent, so a reparenting shadow would diverge the chain from that node up, which is still per node.

    Amended (#709): a FOURTH fact, and the one an adopter is most likely to get subtly wrong. Every path that reads a row in order to write its shadow takes the registry row’s lock in a statement of its OWN, before the read that resolves the shadow over it. Sub-decision 2 is what makes the lock necessary: a fork writes the whole mutable row back, so two operators editing different fields of one shipped row at once both compute an image from the same starting point, and the second silently discards the first’s field with no error and no audit anomaly, both writes in the log. What the amendment adds is that for update ON the resolving read does not do the job. At READ COMMITTED a statement’s snapshot is taken when the statement begins, which is before it blocks; the waiter then unblocks on a row that was locked rather than updated, so there is no EvalPlanQual recheck, and the left join it had already evaluated still reports the shadow as its stale snapshot saw it. That serialises the two transactions without making the second read what the first wrote. It is not a hypothetical: location_type shipped exactly that lock in #703, and a paired-fork test still lost an edit against it, which is how the shape was found. Locking FIRST makes the resolving read a new statement taking a new snapshot, after the lock is held, so it reads the shadow the previous holder committed. Cost: one round trip on the patch and restore paths of an adopting registry, the same trade ADR-0108 states for the settle paths.

  • Context: #655, the first prerequisite of #657. Thirteen tables carry official and enforcement was a flat refusal (ErrTypeOfficial on any patch), which is correct as far as it goes and leaves an operator nowhere to go. It also produced an inversion #657 runs into: component_type and product seed official: true and are closed, while location_type and standard seed official: false (example content an estate owns) and are open, so a per-type rule column would be writable on two registries and unwritable on the other two, backwards from where the machinery lives. The alternative on the table was a per-column carve-out from the official lock, which trades one inconsistency for a worse one: some columns of an official row writable and others not, with the rule living in code rather than in the model. component_type is the first adopter precisely because it is nested, so it forces sub-decision 3 rather than deferring it.

  • Open: what happens to a shadow when a later release removes the official row it shadows. The emergent behaviour today is “orphan it, inertly”: resolution is driven by the official row left joining the shadow, so an orphan is invisible rather than corrupting, and the polymorphic key carries no foreign key that would have blocked or cascaded the removal. Surfacing it as a conflict an operator resolves is the alternative, unbuilt.

ADR-0096: The system_type name returns as the coarse space taxonomy

Section titled “ADR-0096: The system_type name returns as the coarse space taxonomy”
  • Date: 2026-08-09 | Status: Accepted | Pages: core entities, storage, API, glossary

  • Decision: A new system_type table lands: a nested, universally seeded registry saying what kind of space a system is (av / room / {board, class, meeting, training, conference, huddle}, av / sign / {video-wall, interactive-sign}), exactly parallel to the way component_type classifies a product. It carries name, display_name, stem, abbrev, icon, parent_id, and official; stem, abbrev, and icon are nullable and inherited from the nearest ancestor that sets one, resolved by walking parent_id in Go. system.system_type_id points at it, nullable for now; a floor waits until the shipped tree has proven out. Both foreign keys are ON DELETE RESTRICT, and the delete path pre-counts both sides, so a type that still parents another type or still classifies a system is refused with the registry’s own in-use error rather than a raw constraint failure.

    It does not carry default_tags, the one column component_type has that this does not: a product’s instances start from its type’s tag set, while a system’s effective tags come from the platform, its location, and its own system tree, so the column would have no reader.

    standard is untouched. The two answer different questions and both stay: the type is what a system is, the standard is the blueprint it is built to.

  • Decision (the identifier reuse): system_type was the old column name for what ADR-0048 promoted to system.standard_id, and it sat on the docs-lint denylist. A table by that name, with a system.system_type_id pointing at it, is a different object from the retired column, so the reuse is safe at the schema level; the collision is in prose, where a reader who greps finds both. The denylist entry is therefore removed, not exempted, on exactly the precedent ADR-0085 set for component_type: an entry cannot express “banned, except in its own reintroduced meaning”, and every sentence teaching the new registry would otherwise need an escape. The retired sense survives in ADR-0048’s own prose under the standing retirement-marker exemption. One fossil is left in place deliberately and now labelled: internal/storage/systems.go maps the constraint name system_system_type_fkey (the pre-rename name of the standard foreign key) alongside system_standard_id_fkey, and the new key is system_system_type_id_fkey, a distinct string that maps to its own error.

  • Context: standard is already nested (parent_standard_id), so using standard inheritance as the taxonomy was on the table and is the wrong axis. Standard inheritance expresses design forks, two ways to build the same kind of room; the coarse classifier is a different question, it wants a universal shipped seed, and one estate can hold ten signage standards and six classroom standards under a single coarse type. That makes the system side exactly parallel to the component side, where component_type is the coarse nested taxonomy with a universal seed and product is the specific artifact.

    The forcing function is naming. A generated system name needs a stem in the space vocabulary (board-meeting-2) and a label render needs a compact form (bm), and nothing in the estate model spoke either: a standard is a blueprint name (meeting-room-v2), a location type is where the room sits rather than what it is for, and neither is universally seeded. Every identity fact the console reached for turned out to live at the same missing level, the same tell that made ADR-0085’s case. The shipped tree is deliberately not filler: its display names, stems, and abbrevs are the strings the whole naming arc will render from.

  • Tracked under #656, the second prerequisite of epic #657.

ADR-0097: Allocation tests the name it would mint, rather than reading the ordinal it stored

Section titled “ADR-0097: Allocation tests the name it would mint, rather than reading the ordinal it stored”
  • Date: 2026-08-10 | Status: Accepted | Pages: core entities, storage, glossary

  • Decision: The number a generated name is minted from becomes a stored, nullable component.ordinal, written in the same advisory-locked transaction that already computed it. Nullable is the load-bearing part: a name an operator typed, and a name an operator renamed (:rename clears the column in the same statement it clears name_generated), have no ordinal the platform owns, and absent is how that is written down.

    Sibling allocation does not read that column. It reads sibling names and returns the lowest ordinal whose minted name no sibling in the placement bucket already holds. One pure function (mintName) owns the name’s shape, and the allocator asks it for candidates instead of picking siblings apart.

  • Decision (no scoped-unique index): The ordinal gets no unique constraint of its own, only a >= 1 domain check. A “one ordinal per (bucket, stem)” index cannot be expressed, since the stem is resolved from the component_type chain rather than stored, and it would be redundant if it could: for a platform-named row the name is the stem and the ordinal formatted together, so two rows colliding on both already collide on the name, which the scoped-name unique indexes (ADR-0088’s placement buckets) refuse. A redundant constraint would add a second 23505 to map and a second way for a race to surface as a 500.

  • Context: #657 proposed that storing the ordinal would let sibling allocation “stop being a string-prefix scan and become a lookup keyed on type and placement”. Building it exposed two problems with reading the column, and one thing the column was being credited with that it does not actually do.

    An ordinal-only allocator is unsound. The rows holding a NAME are not the rows holding an ordinal. An operator can type display-1 by hand: that row owns the name and, correctly, no ordinal. An allocator consulting stored ordinals sees an empty set, picks 1, mints display-1, and hits the scoped-name unique index. The generator deliberately takes an advisory lock rather than retrying a 23505 (retry was rejected when the generator landed, since the abort takes the whole transaction with it), so that collision is a 500 on an ordinary create. Mutating the allocator to read only rows with a stored ordinal reproduces it exactly, and the test that catches it is now part of the suite.

    Keying on the type would be worse than keying on the stem. A stem is inherited, so two sibling component types can resolve the same one; giving each its own ordinal space would have both mint display-1. The uniqueness that matters is the name’s, so the space that matters is the name’s.

    The column is not what unblocks a stem-less name. The prefix scan could not count a stem-less sibling because its filter was a bare - that no name matched, which is a property of parsing, not of storage. Inverting the loop fixes that on its own: mintName("", 1) is 1, and the allocator tests it like any other candidate. So a floor whose ordinal genuinely is its name (#657 slice 7) is now expressible, and it is asserted at the storage layer against a real database ahead of its first caller.

    What the stored ordinal does buy is everything downstream of allocation, which is what the rest of the epic needs: the bare render reads a fact instead of re-deriving one from the string it is about to replace (finishing what #654 left half-done, and making its never-restamp-an-operator’s-name guarantee structural rather than defensive), a label rule can read .Ordinal without parsing it back out, and a recompute-and-compare invariant test can prove no stored ordinal has drifted from what allocation would produce. It also generalizes: when a name comes from an operator-editable rule rather than <stem>-<n>, the allocator changes its mint and nothing else, where a parser would have needed a matching second implementation.

  • Tracked under #681, the first slice of epic #657.

ADR-0098: A label rule reads what an entity IS, never where it sits

Section titled “ADR-0098: A label rule reads what an entity IS, never where it sits”
  • Date: 2026-08-10 | Status: Accepted | Pages: core entities, storage, glossary

  • Decision: A label rule is an operator-authored Go text/template evaluated over a closed, flat map[string]string and a closed FuncMap (title, upper, lower, slug). The map carries the entity’s own columns and the facts resolved from its classification chain, and carries nothing about its placement: not its location, not its parent, not the system it staffs.

    entitykeys
    componentName, Ordinal, TypeName, TypeAbbrev, Stem, ProductName, VendorName
    systemName, TypeName, TypeAbbrev, Stem, StandardName
    locationName, TypeName
  • Decision (the sandbox is the data map AND the grammar): Two allowlists, the same argument twice.

    The DATA half filters nothing. The value type is string, so field traversal and a method call fail at execution rather than reaching further; a key the map does not carry renders as the empty string (missingkey=zero, set explicitly rather than relied on); a secret, a credential and a token are absent structurally, never put in. That is why a general template engine beat a custom interpolation DSL: the security property a label rule needs is not a syntax that cannot express dangerous things, it is an environment that contains nothing dangerous, and the environment is ours entirely. Adding a key is the only way to widen what a rule can read, so the key set is pinned by a test.

    The GRAMMAR half is an allowlist over the parsed tree, checked at parse time, admitting a closed set of node types (text, action, pipeline, command, field, dot, identifier, literal, {{if}}, comment) and a closed set of function names (title, upper, lower, slug, plus and/or/not and the six comparisons). Everything else text/template offers is refused: printf, print, println, call, index, slice, len, html, js, urlquery, variable declarations, {{range}}, {{with}}, {{template}} and {{define}}.

    A superseded claim, corrected here: an earlier draft of this entry said printf’s width verb was “the one way a closed map of short strings still produces output far larger than its inputs” and that the ceiling therefore lived in a cap on rendered length. Both halves were wrong. The cap bounds bytes reaching the WRITER, and a value built inside a pipeline is materialized by fmt and never written, so the cap never sees it: 437 bytes of operator-authored rule allocates 85 MB and writes 8, with every further doubling 35 more bytes of rule for twice the memory, which OOMs the single binary and re-triggers on every later write to any entity of that type. Refusing := does not fix it (the nested-pipeline form needs no assignment) and neither does removing a FuncMap entry (printf is a builtin the FuncMap never granted). A closed grammar does, and it does it at rule-edit time so nothing is ever stored. The length cap stays as a ceiling on OUTPUT, which is now reachable only by literal text an operator typed.

  • Context (why placement is excluded): The label is stored, so a stored value must equal what its rule produces, and every input to a rule is therefore something a write path has to re-render on. The keys above change on exactly five acts, all of them the entity’s own: create, rename, move (which re-mints the ordinal), reclassify, and reset. That closed set is what makes the recompute-and-compare invariant provable rather than hopeful.

    Adding the location’s name would add a sixth, and it would not be the entity’s own: renaming a location would silently stale every label under it, and the invariant would be right to fail. The epic’s acceptance text (“a component created with a product and a location gets a label”) reads either way, and is satisfied by the classification alone. The cascade that would make placement facts safe belongs with the slice that owns bulk recompute (#685), which can then add the keys and the cascade together. Ancestry is not lost meanwhile: it is already the entity’s path and its two renders, beside the label rather than inside it.

  • Decision (the global tier is two columns, not one): The global rule is one row per labelled entity kind in label_rule, carrying default_template (boot-seed space, rewritten authoritatively on every start) and template (operator space, nullable), resolved as coalesce(template, default_template). Clearing template is restore-to-defaults.

    One column could not be both. An authoritative boot seed over a single column stomps an operator’s rule on the next restart; a seed-if-absent freezes the shipped default at whatever the first boot wrote and no release can improve it. That is the problem ADR-0095 solves for a shipped registry row, and this is the same answer at the smallest scale that expresses it: shipped values and operator values live apart and reads resolve one over the other. It is two columns rather than a registry_shadow row because this table is keyed on an entity kind rather than a uuid, and three rows do not earn an overlay of their own.

  • Decision (a rule inherits per node, like every other type fact): On a nested registry a label_rule is nullable and resolves by the first-non-null walk stem, icon and abbrev already follow, crossing the fork boundary per node with the chain always the official one (ADR-0095 decision 3). So forking a shipped ancestor’s rule reaches every descendant that declares none, and a descendant that declares one overrides for itself alone. The analogous question ADR-0095 settled for facts has the same answer for rules, because a rule is a fact of the node that declares it.

  • Decision (an empty render stores NULL and keeps the pen): A rule with nothing to say about a row stores SQL NULL, not a blank string, and display_name_generated stays true. Marking the row operator-owned because a rule once rendered nothing would exclude it forever from the recompute that exists to fix exactly that.

  • Decision (the pen is backfilled, claimed only where there is no label): The migration adding display_name_generated defaults it false, and a one-time backfill then claims it on every existing row whose display_name is NULL or empty, leaving it false where the operator typed something. A row with no label has nothing to protect and is the majority case; left unclaimed it is inert forever, because the write-path stamp returns immediately when the pen is false and a bulk recompute only touches rows the platform already owns. The backfill writes the PEN and not the label, since rendering needs the rule engine and logic lives in Go, so those rows take their labels from the next write that touches them or from the recompute that can now see them.

  • Consequence: label_rule columns land on component_type, system_type, location_type, product and standard, but only component_type carries the fork today, so a rule on a shipped row of the other four is not operator-editable until each adopts ADR-0095’s primitive. That is the pre-existing state of those registries rather than a new restriction, and the tier that matters most for components (component_type) is forkable now.

  • Amended (#729): the key table above is the map as of this decision, and it is a historical snapshot rather than the live set: ADR-0100 added the placement keys and #686 gave a system its Ordinal. The map is no longer typed out anywhere. Each kind’s keys are declared once in internal/storage/label_keys.go, beside the accessor that produces each value, labelData builds the map by ranging that declaration, and docs/src/generated/labeldata.json (make gen, via cmd/labelgen) renders the per-kind tables core entities publishes. So “the key set is pinned by a test” above is now pinned by CONSTRUCTION, and what the tests hold is the artifact against the declaration and the two label_rule API descriptions against it too. That last one was already wrong: both enumerated the map as it stood before ADR-0100, so the console’s field help and the CLI reference taught seven keys where a rule could read nine.

  • Tracked under #682, the second slice of epic #657, amended by #729.

ADR-0099: The acronym list is one replaceable setting, not a shipped list plus operator additions

Section titled “ADR-0099: The acronym list is one replaceable setting, not a shipped list plus operator additions”
  • Date: 2026-08-10 | Status: Accepted | Pages: settings, core entities, glossary
  • Decision: The acronym dictionary a label rule’s title consults is one key, label.acronyms, in a new platform,client settings namespace. An operator’s list replaces the shipped one; the two are told apart by the settings engine’s existing provenance (sources["label.acronyms"] reads default or platform), not by keeping them as separate values and unioning them at read time.
  • Why not shipped-plus-additions: The epic’s scope text reads as a union, and a union is what an operator adding one word wants. It was rejected because of what it costs everywhere else. Merge in this engine is presence-based over generic maps and a non-map value overrides wholesale, so a union would be a merge rule this one key does not share with any other setting, and reading label.acronyms would no longer tell you the effective dictionary: the value would be a fragment and the engine would hold a list nothing on the wire reports. It also makes a shipped entry unremovable, which matters more than it sounds, since a word we ship that an operator’s estate spells differently would then be uncorrectable. The union’s one benefit, not retyping the list to add a word, is a console problem, and the console already read-modify-writes the effective value for every other setting.
  • Consequence, stated rather than discovered: an operator who overrides the list stops receiving later releases’ additions to it, exactly as overriding any other setting freezes it. The console badges the key as overridden, and restoring the namespace returns the shipped list.
  • Decision (the engine’s lifecycle): The dictionary is resolved from the settings cascade at render time, and the compiled engine is cached against the dictionary itself (label.EngineCache). Parsing binds a template’s FuncMap, so a dictionary change produces a new engine rather than mutating one, and a rule compiled against the old engine keeps the old casing for as long as it lives; the storage path re-parses on every render, so the longest a stale dictionary survives is one render and an operator’s edit needs no restart. A generation counter bumped by the settings write path was rejected for having a failure mode a content key cannot have: a second write path that forgets to bump it.
  • Consequence: a render costs one read of the override table, on a write path already several round trips deep. A caller rendering many rows (the bulk recompute, #685) resolves the engine once and passes it down, which is why the render functions take an engine rather than reaching for one.
  • Decision (the gateway reads that override in the caller’s transaction, not off the pool): A stamp runs inside a transaction, so it is already holding a connection; issuing the settings read against the pool acquires a second one, and a pool whose connections are all held by writers each waiting for a second connection is deadlocked, not slow. It needs no unusual code to reach (a bulk import of the estate sizes this epic exists for is enough) and it fails as a hang. So Service.ResolveOverride takes an override level the caller has already read, over the same level stack Resolve builds, and the gateway reads it on its own transaction; the dictionary and the row being stamped then come from one snapshot as well. A one-connection pool is the whole population of that race, which is how the regression test reaches it deterministically rather than under load.
  • Decision (parse and render need different engines): Rule validation uses a dictionary-less engine, because label.New binds the same four function names whatever dictionary it is given and the grammar check walks a static allowlist: whether a rule parses is a fact about the rule alone. Only execution differs, so only the render path carries the current engine, and a template compiled by the validator is discarded rather than reused.
  • Tracked under #684, the fourth slice of epic #657.

ADR-0100: A label cascades where the blast radius is a placement, and waits for the verb where it is the estate

Section titled “ADR-0100: A label cascades where the blast radius is a placement, and waits for the verb where it is the estate”
  • Date: 2026-08-10 | Status: Accepted | Pages: core entities, storage, identity and access, glossary
  • Decision (placement is in the data map): A component’s label rule reads LocationLabel (the label of the location it sits at) and SystemTypeLabel (the label of its primary system’s type); a system’s reads LocationLabel. This reverses the narrowing in ADR-0098, whose title is now false of the code and is left standing as the record of what was believed. The worked example is {{.SystemTypeLabel}} {{.LocationLabel}} {{.TypeName}} rendering Boardroom 204B Display.
  • The keys are flat, never dotted, because the map is a closed map[string]string and that flatness is half the sandbox argument ADR-0098 rests on: a string cannot be traversed through, so {{.Location.Label}} would be a handle on another row where {{.LocationLabel}} is a fact copied out of one.
  • Which location, precisely: the row’s OWN location_id. Not an ancestor of it, and not the location its plane root sits at. A component’s label says where that component is, so it reads the column that says so; a nested component with no location of its own reads placement as absent. The alternative would make a label depend on an ANCESTOR COMPONENT’s placement, so moving a parent would stale every descendant, and it costs a recursive walk per row on a path that runs on every create. LocationLabel is the location’s READ LADDER (the label an operator typed, else the location’s own name), not the raw column, because a shipped estate has no location labels at all and reading the column alone would render placement as blank for every row in it.
  • Consequence, and the reason this is one slice rather than two: ADR-0098’s completeness argument is void. It could enumerate five write paths and call the set complete precisely because every fact its map held was the labelled row’s own. That argument was already thinner than it read (TypeName, ProductName, VendorName, Stem, TypeAbbrev and the rule itself are columns on registry rows), and placement ends it: the set of acts that stale a label is no longer the set of acts on the labelled row. The write paths are therefore derived from the map and, more importantly, the invariant that guards them stopped being an enumeration at all: it is now an estate-wide question the gateway answers (PreviewLabelRecompute returning nothing), so a write path nobody thought of fails it.
  • Decision (the line is blast radius, not ownership): An act whose blast radius is bounded by a PLACEMENT cascades eagerly, inside its own transaction, so the estate is never observably stale: a location’s rename, relabel or reclassify restamps what is placed at it; a system’s reclassify restamps its member components; every act that moves a component’s primary membership (AddMember, RemoveMember, SetPrimaryMember, AssignRole’s implicit bind, a create naming a system, and a system’s DELETE, which releases every membership it holds) restamps that component; a system’s :move stamps its own label, which it never did before. An act whose blast radius is bounded only by the ESTATE restamps nothing and waits for the verb: a rule changing at any tier, a component_type’s or product’s or vendor’s display_name changing, and the acronym list changing. That is the epic’s own argument applied consistently: editing a shared classification must not silently rewrite fifteen thousand rows any more than editing a rule may.
  • Consequence, added by the epic’s review pass: a write path can be one the DATABASE performs. Deriving the write paths from the map caught every explicit mover of a primary membership and missed the implicit one. system_member_system_id_fkey is ON DELETE CASCADE, so deleting a system has always taken its memberships with it, in the parent’s own DELETE where the gateway can attach nothing to the loss. A component in a boardroom under [{{.SystemTypeLabel}}] went on reading [Boardroom] after the boardroom was gone, and the invariant this decision rests on (PreviewLabelRecompute returning nothing) said so, which is the property it was built for. The fix is not another restamp bolted to the delete: the memberships are now released explicitly, one step ahead of the row’s own delete, so a delete is the same act RemoveMember performs and gets the same two consequences (the sole survivor is promoted to default, the released components restamp in one recompute rather than one apiece). The promotion half was a pre-existing divergence between the two doors into system_member, and it is fixed here rather than filed because the label the delete leaves behind depends on which membership answers afterwards. The generic scoped-CRUD delete grew a beforeDelete hook to hold it, since the rows a hook needs are unreadable by the time an afterDelete runs. The completeness lesson generalizes past labels: an ON DELETE CASCADE is a write path with no Go on it, and the estate’s other two (system_role_assignment on both system_id and role_id) feed nothing into a rule today.
  • Consequence: a location rename is bounded by what is placed AT that location, not by its subtree, because a component reads the label of the room it is in and never that room’s building. A campus rename is free. That is a property of the data map, so if a later slice gives a location an ancestry fact (a positional type’s generated name is the obvious candidate) the cascade owes it a subtree arm, and the test that pins the current answer is the one that fails first.
  • Decision (a preview is an apply that rolls back): The read-only implementation of a preview cannot list exactly what the apply changes. Recomputing locations moves their labels, which stales the components and systems placed at them, so the honest answer includes rows of two other kinds that exist only as a consequence of writes a read-only pass never made. Simulating those writes would be a second implementation of the cascade for the two to drift apart on. So a preview runs the apply, collects the change set, and rolls back: exact by construction rather than by argument. The cost is stated rather than hidden: a preview is not a pure read. It takes the operation lock and FOR UPDATE on the rows it visits and produces WAL that is discarded, so it is an operator gesture, not something to put behind a keystroke. It still does not promise atomicity ACROSS the pair, and deliberately: holding a lock between two HTTP requests would let an operator who opened a preview and wandered off block every write on the tier. The apply’s own returned set is what closes that gap.
  • Decision (epic D1, one audit row for the operation): A bulk recompute writes one audit row, verb recompute, resource label_rule, resource_id the entity kind, carrying the affected count and its per-kind split. Per changed entity was the alternative and it loses on both halves of the question it claims to answer better: it writes fifteen thousand rows for one click, in one transaction, on a table every other write shares, and the per-entity trail it buys is a restatement, since a generated label is DERIVED and “why does this row read what it reads” is already answered by the rule and the row’s own facts. “Who changed the estate’s labels and when” is answered by exactly this row and by nothing in a per-entity trail. The nearest precedent agrees: a health recompute cascades across a whole ownership chain and audits nothing, because it is a consequence of an act that is itself audited. Which is also why a CASCADE writes no row of its own: the rename or reclassify that triggered it already has one. The row is keyed on the rule rather than on the entities because label_rule’s primary key genuinely is the entity kind, so it is the one key a rename cannot orphan.
  • Decision (a cascade is not scope-filtered; the verb is): The verb selects on the caller’s read scope AND their update scope, both injected into the one query, so an operator can neither preview nor apply outside what they may already see and change. A cascade is not scope-filtered, because it is not a query anyone asked for: it is the rest of a write the operator already made, and leaving a row stale because it sits outside the grant that let them rename the location would break the invariant the stored label rests on, silently. The health recompute crosses scope boundaries for the same reason. No new permission either way: a recompute is gated by the entity’s own :update, and so is the preview, because a preview is half of an edit rather than a report.
  • Decision (lock order, written down rather than discovered): membership, then label, then health. A bulk recompute takes one coarse advisory lock for the whole operation plus FOR UPDATE on the rows it visits; the single-row stamps take neither, because each already holds its row’s lock from the UPDATE ... RETURNING it rides behind.
  • Consequence, measured: the recompute and the location cascade are both flat in row count, held there by #650’s counting instrument rather than by intent, with the classification resolved once per distinct product or classifier pair and the placement facts, the global rule and the acronym dictionary each read once per operation. A placed, system-bound, generated component create costs nineteen statements, of which exactly one is this decision’s.
  • Tracked under #685, the fifth slice of epic #657.

ADR-0101: The first of its stem in a bucket carries no ordinal, and the mint that says so is the one allocation tests

Section titled “ADR-0101: The first of its stem in a bucket carries no ordinal, and the mint that says so is the one allocation tests”
  • Date: 2026-08-10 | Status: Accepted | Pages: core entities, storage, glossary

  • Decision (epic D3, ordinal suppression): A generated system name suppresses the ordinal on the first of its stem in a placement bucket: a room’s only boardroom is boardroom and the second is boardroom-2. The order dependence this buys is accepted rather than mitigated, and it is worth stating in full rather than in the abstract. Allocation is lowest-free (ADR-0097 preserved it), so deleting boardroom while boardroom-2 survives lets the next create take boardroom again, and boardroom-1 never exists at any point in that sequence. The same rule therefore yields different names for the same estate depending on the order it was built in. The operator-facing string is what this epic exists to improve, and a room called boardroom-1 when there is only one of it is the defect the epic was filed about.

  • Decision (suppression is a property of the MINT, not of the shape function): mintName became a nameMint value: a resolved stem plus a bareFirst flag, with the shape as a method on it. It is NOT a branch inside the shape function, and it is not a global change to the shape, because a component that suppressed at ordinal 1 would rename every generated component that already exists (display-1 is the shape #681 has been minting) and would break the no-expected-value-changes rule this epic runs under. Components are counted things in a rack, where display-1 beside display-2 is what an operator writes on the label; a system is a room, and a room with one boardroom in it does not call it boardroom-1.

  • Decision (the allocator takes the mint, not the stem): pickOrdinal takes the nameMint and tests mint.name(n) for each candidate. This is the load-bearing half. A mint that suppressed while the allocator still tested <stem>-<n> would disagree on exactly ordinal 1, so the first create would take boardroom and the second would test a free boardroom-1, mint boardroom, and hit the scoped-name unique index as a 23505 the transaction cannot recover from. Passing one value to both is what makes that disagreement unrepresentable rather than merely unlikely: there is no second spelling of the shape to keep in step.

  • Decision (where the choice comes from, and the seam for the next slice): bareFirst is a field on the mint, resolved per entity kind today (componentMint false, systemMint true) and intended to be resolved per TYPE. #687 gives location_type a nullable name rule, and a rule that produces a positional name fills this same field from a per-type fact: it consumes the seam rather than replacing it. A per-kind default is where the fact lives until a type carries one, not a competing mechanism. A stem-less mint ignores the flag outright, since suppressing the ordinal of a name that IS its ordinal (a floor called 1) would leave nothing at all.

  • Decision (the allocation lock is keyed on the bucket, and the stem comes OUT of that key): The advisory lock was keyed on the table, the stem and the bucket, which was sound only because the mint was always <stem>-<n>, making two stems’ name spaces provably disjoint. Suppression ends that: stem wall at ordinal 2 and stem wall-2 at ordinal 1 are the same name, and both stems pass the rule a stem is validated with. Keyed on the stem, those two concurrent creates in one bucket take different locks, read the same siblings, mint the same name, and the loser gets a 23505 on a create that supplied no name at all. So the lock now guards what the unique index guards, the bucket, because the bucket is the only partition of the name space a mint cannot cross. The cost is that two creates in one room serialize whatever they are classified as, which is the price of the shape being per-type rather than fixed.

  • Decision (a placement bucket is a value, not a pair of pointers): The lock key and the sibling filter became one nameScope per entity kind, because the kinds do not agree on how many buckets there are. component and system have three (a parent, else a location, else unplaced) and location has TWO (a parent, else root), since a location carries no located-at column. The location constructor takes no location id, so pairing a location with the three-way shape is not a mistake to avoid at each call site, it is a value that cannot be constructed. The key carries the table too, so a system and a component sharing a parent uuid never serialize against each other.

  • Decision (the pen spreads to both trees, generation to one): name_generated and both verbs (:rename freezes it false, :resetName returns it) land on system and location; only a system generates. location_type carries no stem to mint from, so :resetName on a location refuses with a typed error naming the missing fact (422) rather than reporting a reset that did not happen. The pen still ships on that tier ahead of its generator, and that is the point: a location an operator names today is already frozen when #687’s rule arrives, where a pen added later would have to decide retroactively who had named every existing row.

  • Decision (no backfill, unlike the label pen): The column defaults false and no one-time migration touches it, which is the argument the component column already records: every row that exists when the migration runs was named by an operator, so claiming the pen retroactively would let the first :move silently rename real estate. That is the opposite of #682’s label pen, which WAS backfilled, and the difference is the field rather than a change of mind: “no label” is a state the platform may safely claim, while a row always has a name and somebody typed it.

  • Decision (the system bare render stays unwired, and this is not an oversight): Both halves of the compact render’s substitution now exist for a system (system_type.abbrev from ADR-0096, and a stored ordinal from this slice), and attachSystemPaths still passes neither. RenderBare substitutes whenever it is given both, with no shape check, which is what makes #654’s guarantee structural for a component. A suppressed name carries no digits while owning ordinal 1, so wiring it would print brd1 for a room named boardroom: a number on a physical label that appears nowhere in the entity’s name, the exact defect the ordinal column’s own migration cites. Correcting it means teaching the render which mint produced the name, which is a rendering decision, not a naming one.

  • Consequence (the write paths were derived, not listed): The acts that must re-mint a platform-owned system name are the ones that change an INPUT to the mint, and the mint reads exactly two things: the system_type chain’s stem and the placement bucket. That yields create, :resetName, :move (both the relocate and the reparent arm, since a parent wins over a location) and the system_type half of a reclassify, and it also settles two cases a list would have missed. Un-classifying a platform-named system reaches the generator with no type and is REFUSED there rather than silently keeping the name and handing back the pen. And a stem edited on a shared system_type row is bounded by the estate rather than by a placement, so it does not cascade, which is ADR-0100’s line applied to the name side. The database agrees: system.location_id and system.parent_id are both ON DELETE RESTRICT, so no placement changes without one of these acts running.

    The same derivation settles the shape of the reclassify guard, which review caught the code getting wrong. The trigger is the classification changing, not the system_type field being present in the patch: the console sends that key on every save so an unclassify can clear, so a presence test re-mints on an edit to the label alone, and with a lower ordinal freed by an earlier rename that re-mint MOVES the name (boardroom-2 becomes boardroom) under system:update, with no rename requested and possibly no system:rename grant held. A patch that re-states the type changes neither input to the mint.

    The epic’s review pass found the same defect on :move, and it is fixed here rather than filed. The move arm was gated on the row being platform-named alone, so a :move that re-stated the location the system already sat at, or supplied neither field (this verb’s documented no-op), re-minted and moved the name by exactly the sequence above, under system:move. It was left wide deliberately, on the stated belief that narrowing it would move an existing expected value; that premise was false, since systems had only had generated names since this same unmerged branch. The guard is now the bucket changing, compared as a nameScope rather than as a pair of pointers, because a parent wins over a location: relocating a parented system leaves it in the same parent bucket and must not rename it either. No test expectation moved. MoveComponent has the identical wide shape, is reachable the same way, and is genuinely pre-existing, so it is left for its own issue rather than changed here.

    Amended (#696, #691): both component-tier guards are now closed, and one of the two is spelled DIFFERENTLY here rather than copied. MoveComponent takes the identical nameScope bucket comparison, since the two kinds have the same three buckets and a parent wins over a location on both. The reclassify does not. A system reads its stem from a system_type chain, while a component reads it from a PRODUCT that points at a component_type chain, one hop further, so the value an operator picks is not the value the mint reads: two products classified under one type (or under two types inheriting one stem) mint identical names. Keying the component guard on the product id would therefore leave a real reclassify moving the name onto a freed lower ordinal, which is the defect this entry refused for the presence test wearing a third set of clothes. It compares the RESOLVED STEM instead, and stemForProduct is the first half of generateNameForProduct lifted out so a guard can ask what a name would be minted from without minting one. A destination with no stem at all is never equal to anything, so it still reaches the generator and is still refused there. The system tier kept the type-id comparison and the same residual with it (two system_type rows inheriting one stem), a real case filed as #706 rather than fixed inside a component-tier slice: the two tiers agree on the RULE (re-mint when an input to the mint moves) and disagreed only on how far each had to walk to read one. That divergence closes with #706: the system reclassify compares the resolved stem too, stemForSystemType is the first half of generateNameForSystemType lifted out exactly as stemForProduct was, and systemTypeStemMoved is productStemMoved’s twin over the shorter walk. Both tiers now spell one rule, and each keeps its own path to a stem: a system’s chain, a component’s product then chain. An un-classify and a destination that resolves no stem are still never “the same stem”, so both still reach the generator and are still refused there rather than by a branch in the guard. The claim that the component reclassify was “not reachable the same way today” survived checking and is narrower than it sounds: the console never sends product on a save (web/src/pages/Components.tsx edits the name and the label only), but the API takes it and the generated CLI exposes it, so both defects were reachable by the paths the issues named.

  • Consequence: Ordinal joins the system label data map, widening ADR-0098’s closed map by one key, and the shipped global system rule deliberately does not use it: for a suppressed first name the number and the name disagree, so whether a label says “Boardroom” or “Boardroom 1” is an authoring choice an operator makes, not a platform default.

    Amended (#693): the shipped system rule reads the ordinal, and the key it reads is the number the NAME carries. The decline above is reversed, and the case that reverses it is the one AV estates are full of: a divisible boardroom is two board systems in one room, so both rendered “Boardroom”, and the operator reading the console had less information than the platform holding boardroom and boardroom-2. The rule is now {{.TypeName}}{{if .Ordinal}} {{.Ordinal}}{{end}}, the component’s verbatim.

    The reversal is TWO changes and only one of them was named when the ruling was made, which is worth recording because the other one is where the argument lives. Adding {{if .Ordinal}} to the rule alone renders “Boardroom 1” for the only boardroom in a room, because {{if}} on a string is false for the EMPTY string and a suppressed first name still owns the stored ordinal 1. That is the defect this entry’s decline was protecting against, and a rule change on its own walks straight into it. So the map’s value changes with it: Ordinal is now the ordinal the row’s name SHOWS, which is empty for a suppressed first exactly as it is empty for a row an operator named. The two states read alike to a rule because they mean the same thing to a reader: this row’s name carries no number.

    The suppression is asked of the MINT (nameMint.suppresses, the branch name itself takes) rather than read off the name string, which keeps this entry’s central decision true on the label side: a name’s shape has one implementation, and a second reading of it could disagree at exactly ordinal

    1. It also survives the seam above, where bareFirst becomes per-TYPE: a rule hardcoding ne .Ordinal "1" would have been a per-kind default baked into a template, wrong for the first type that chose differently, and unwritable by an operator who should never have to know which mint named a row.

    What the reversal costs is stated rather than buried: a rule can no longer render “Boardroom 1” for a system named boardroom, because the number is not reachable from the map any more. That was the authoring choice the decline preserved, and it is the one this entry already calls the defect the epic was filed about, so it is refused as a rule rather than offered and warned about. An operator who wants those exact words still types them, which takes the pen (#682) and is the honest way to say a label is not derived from anything.

    A key was NOT added beside Ordinal to keep both readings available. Two spellings of one number in a closed map is a difference for a rule author to misinterpret, and the wrong pick reintroduces the defect silently, which is the same argument NameRule.normalized makes about two spellings of one rule.

    The component tier reads its ordinal through the same helper, and the value there is unchanged for every row: componentMint does not suppress (a rack’s display-1 beside display-2 is what an operator writes on the label), so the helper’s answer is the stored number. One meaning of the key on both tiers, rather than two tiers that happen to agree today.

    The write paths were re-derived and grew by none. Every act that moves a system’s ordinal is an act that re-runs the mint or hands the pen back: create, :rename (which clears it), :resetName, :move where the bucket changes, and the system_type half of a reclassify, which is the same set this entry derived for the NAME. Each already restamps the label unconditionally in its own transaction, and unconditionally is what matters rather than the set being the same: a reclassify between two stems can leave the name identical while the ordinal moves (wall-2 at ordinal 2 is the same string as the suppressed first of stem wall-2), so a stamp gated on the name having changed would have missed it. A delete frees a lower ordinal and re-mints nothing, by this entry’s own allocation rule, so no surviving row’s label goes stale behind it. The completeness invariant (TestNoActLeavesALabelStaleAnywhere) now runs a system rule that READS the ordinal, where the one it ran before could not have seen a hole in any of this.

  • Tracked under #686, the sixth slice of epic #657, and amended by #693.

ADR-0102: A name rule is a declaration a type opts in with, and a rule change renames nothing

Section titled “ADR-0102: A name rule is a declaration a type opts in with, and a rule change renames nothing”
  • Date: 2026-08-10 | Status: Accepted | Pages: core entities, storage, glossary

  • Decision (the opt-in): location_type gains a nullable name_rule, and its presence IS the opt-in: null means an operator names every location of that type. There is no boolean beside it, so “this type generates” and “this is what it generates” cannot disagree. A campus, a building and a room each have a real-world name an operator holds and the platform does not, so generating one would be guessing. 17c is ground truth, not a default.

    This entry shipped saying “of the shipped place vocabulary only floor is genuinely auto-nameable, and it ships positional”, so three of the four shipped types stayed on the opt-out. Amended (#657): that is now false in both halves. ADR-0103 was reversed for floor and the rule was dropped from the seed, on the argument that a floor’s designation (B2, LG, G, M, 12A) is not an integer at all, so all four shipped types are on the opt-out and no shipped type is auto-nameable. The opt-in itself is unchanged, and it is reached by an operator declaring a positional type of their own. What that costs, and why no fifth type was seeded to replace it, is recorded on ADR-0103 rather than repeated here.

  • Decision (a declaration, not a template): The rule is {"stem": "...", "bare_first": <bool>}, decoded straight into the nameMint ADR-0101 already made the one place a generated name’s shape lives. An empty stem is a positional type, whose ordinal genuinely is its name (a floor called 1).

    The alternative, and it was the more consistent-looking one, was the label_rule template beside it on the same table: the same text/template engine, the same allowlist (ADR-0098), reusing a parser rather than growing a second dialect. It was rejected on three counts, and the first is decisive.

    A name has no safe failure. A label rule that fails to render degrades: the row keeps the pen, the read ladder falls through to the entity’s name, and nothing is lost. A name has no next rung. It is NOT NULL, it is in a scoped-unique index, it is the address an operator types, and it is what a runbook outside this system stores. A template that renders Floor-1 for a type whose display name is Floor produces an illegal name, and the honest options at that point are a failed create or a silently different name, neither of which is a degradation.

    The edit-time refusal is provable for a declaration and only sampleable for a template. #686’s acceptance already promised that a rule which would render an illegal name is refused when the RULE is edited, not when a location is created, and nothing had built it. A declaration’s whole output space is {stem} and {stem-n : n >= 1}, so validateNameRule mints ordinal 1 and a nine-digit ceiling and checks both: every candidate between them shares a character class and has a length between the two, so a rule legal at both ends is legal everywhere in it. The ceiling has to exist rather than being waved at, because <stem>-<n> grows with n and the name rule has a length cap: a 97-character stem mints legally at 1 and illegally at 100. A template could only have been probed against a sample row, which is a different and weaker promise.

    The expressiveness would have bought nothing here. A location’s data map (ADR-0098) carries Name and TypeName. Name is what a name rule is producing, so it is circular; TypeName is the type’s display name, whose slug IS the stem. The one useful template a location could write is the declaration, spelled longer. The FuncMap would have diverged too (slug and lower matter, title and the acronym dictionary are actively wrong for a kebab name), so “reuse the engine” would have meant a second configuration of it, not a second use of it.

    Where a template earns its place is a rule reading facts a declaration cannot name, which is the shape a future component or system name rule might have (a vendor, a product, a role). That is a reversal to make when there is a fact to read, on the tier that has one, with an argument about failure that this tier cannot make.

  • Decision (the rule IS the mint, so nothing restates the shape): NameRule.mint() returns a nameMint with no reshaping, which carries ADR-0101’s guarantee onto this tier for free: the allocator tests mint.name(n), the caller mints from the same value, and there is no second spelling of the shape to keep in step. Validation mints from it too, so the check and the generator cannot disagree about what a rule produces. A stem-less rule normalizes bare_first to false, since suppressing the ordinal of a name that IS its ordinal would leave nothing: two spellings of one rule would compare unequal while minting identically.

  • Decision (a rule change renames nothing, and there is no name-side recompute): #687’s own acceptance said a rule change renames nothing “except through the explicit recompute” of #685. That verb is the label cascade, and there is no name-side equivalent. Editing a rule changes no stored fact about any existing row: the name, the ordinal and the pen all stand, and the new rule decides how the NEXT nameless create, :resetName, move or reclassify names a row.

    That is ADR-0100’s blast-radius line, which ADR-0101 already applied to a system_type’s stem, and it is stronger on the name side rather than merely the same. A bulk relabel is recoverable: a label is display, the pen says who owns it, and the preview shows the blast radius before the apply. A bulk rename is not: it breaks bookmarks, runbooks and integration config outside this system, which is the entire reason a rename is its own verb under its own permission (ADR-0088). :resetName is the deliberate, one-row-at-a-time way to bring a row onto a new rule, and it is gated by location:rename because it IS a rename.

  • Decision (a positional type at root is legal): allowed_parent_types can permit a positional type at root, where the bucket is every parentless location, so it allocates 1, 2 across the whole estate. That is allowed, and the argument is that the root bucket is not a special case, it is a large one. The bucket is the PLACEMENT, never the placement and the type, so two positional types under one parent already share an ordinal space; refusing at root would refuse the estate-sized instance of a rule that holds everywhere else, and bucket size is not a property the platform can police (a building with two hundred floors is the same shape). An operator asks for it by making one type both positional and root-placeable.

    The real consequence is not allocation, it is ADDRESSING: a positional type makes a bare name ambiguous by design, since every building has a floor 1. That is answered by machinery this epic did not have to build, the dotted address (ADR-0062’s addressing and #627’s placement-scoped uniqueness): boi.17c.1 resolves where 1 cannot, and an ambiguous bare name is already a named refusal listing its candidates rather than a silent first match.

  • Consequence (two limits recorded rather than papered over): A rule cannot be CLEARED on the wire, only replaced, because an omitted JSON key and an explicit null both decode to a nil pointer and an object field has no third state to read. That is the limit component_type.stem’s patch already carries (its wire field is minLength: 1), and closing it means either an untyped json.RawMessage field, which costs the generated client its shape, or a custom method for one field; both are wire-contract choices rather than this slice’s. And the shipped floor rule reaches NEW estates only: SeedLocationType is insert-when-absent, the forked-template half of the seed model, so an upgraded estate opts its own floor in with one PATCH. Deliberately no backfill migration, since the rule it would install could not then be removed, and a location_type row is operator space rather than platform space. Both limits are written into the operator guide with the exact call.

    Amended (#657): the two limits compose worse than either does alone, which is only visible when a shipped rule has to be WITHDRAWN, as ADR-0103’s reversal withdraws this one. Removing the line reaches new estates only, by the same insert-when-absent argument read backwards, and the estate that already has the rule cannot drop it with a PATCH either, because the wire has no spelling for clearing one. So a floor opted in by an earlier release stays opted in until someone writes the column directly. The PATCH above is still the whole of the opt-IN story; there is no opt-out story, and the operator guide now says that rather than leaving it to be discovered.

  • Consequence (a location label rule still cannot read .Ordinal, and that is not an oversight): ADR-0098’s closed map gains no key here, although this slice gives a location an ordinal. It would be redundant where it helps and wrong where it does not: a positional location’s name IS its ordinal, so {{.TypeName}} {{.Name}} already renders Floor 3, and the only case a separate key serves is a stemmed type with the first ordinal suppressed, where printing Wing 1 for the only wing is the defect the epic was filed about. ADR-0101 declines .Ordinal in the shipped SYSTEM rule for the same reason.

  • Consequence (the fork primitive does not reach this registry, and does not need to): #655’s registry_shadow (ADR-0095) has exactly one adopter, component_type, so an operator cannot fork a rule onto an official location_type row. They do not have to: the shipped location types are seeded official: false and inserted only when absent, so they are ordinary operator-owned rows the registry’s own PATCH edits, and a restart never reverts the edit. That is the forked-template half of the seed model rather than the canonical-catalog half, and it is the same reason this registry has needed no fork for label_rule either.

  • Consequence (the write paths, derived again): A location’s mint reads exactly two things, the type’s rule and the parent bucket, which yields create, :resetName, the location_type half of a reclassify, and :move. Two of those are worth stating. The reclassify guard is the classification changing, not the field being present, because web/src/pages/Locations.tsx sends location_type on every save: the defect review caught on the system tier one slice ago (ADR-0101) is refused entry here rather than repeated. And :move re-mints only when the parent actually moves. That was written as NARROWER than the system tier’s, where the same re-mint ran on a move that changed no bucket, and the reason given for leaving the system arm wide was that narrowing it would move an existing expected value. The epic’s review pass established that the premise was false: systems gained generated names one slice earlier on the same unmerged branch, so every expected value at risk had been written by that branch. Both :move arms now re-mint only on a bucket change, and no test expectation moved. The two are spelled differently because the kinds do not have the same number of buckets: a location has two and the parent is the whole of the distinction, so comparing the parent IS comparing the bucket, while a system has three with a parent winning over a location, so its arm compares the nameScope bucket the two placements resolve to and a parented system relocated to another room keeps its name.

  • Consequence: location gains the nullable ordinal the previous slice deliberately withheld from it (“a column no writer can fill is a fact waiting to be read wrongly”), and the recompute-and-compare invariant now covers all three trees. The bare render stays unwired here for a reason of its own: location_type carries no abbrev at all, so there is no compact form to substitute into, and a positional location’s name already is its ordinal.

  • Tracked under #687, the seventh slice of epic #657.

  • Amended (#710): the console gets the editor this entry’s “declaration” makes small, a tick box, a stem, and the suppression flag, and the rule’s PRESENCE stays the opt-in, so the tick box is the rule’s existence rather than a fourth field. #692’s clear MOVES INTO it (unticking is the clear) rather than sitting beside it as a button, which is what stops the affordance being half a control: it could undo a state it could not create, and after ADR-0103’s reversal no shipped type carries a rule, so opting IN is the only route to a generated location name at all. Because the mask governs the whole write, the clear names every field the blade writes rather than name_rule alone. What the editor shows about what a rule produces comes from the server: name_rule reads back with examples, the first two names the rule mints, from the same nameMint a create allocates from, and the blade composes its sentence around those two strings. Nothing in web/ knows that a counted name is <stem>-<n>, which is ADR-0104’s refusal of a second implementation applied to a rule rather than to a row. An UNSAVED rule is shown nothing about its output, deliberately: the only honest source is the mint, and predicting from the browser is the duplication this closes. The character rule for a stem IS restated in TypeScript (ADR-0113’s inline vocabulary, refusing the save), the 90-character ceiling is NOT, because that number is arithmetic over the mint’s output space rather than a name rule. The mint’s own refusal turns out to be unreachable through this body: stem carries maxLength: 90, and 90 plus the widest provable ordinal is exactly the 100-character name cap, so every stem the schema admits mints legally at both ends and ErrInvalidNameRule (still live, still unit-tested) is fenced off by the schema. The refusals a surface actually renders are the schema’s, which is why describeError now appends Huma’s errors[]: a schema 422’s detail is always the literal “validation failed”, so every console surface had been showing an operator nothing they could act on.

ADR-0103: A positional name is allocation order, and the real-world designation is a label

Section titled “ADR-0103: A positional name is allocation order, and the real-world designation is a label”
  • Date: 2026-08-11 | Status: Accepted | Pages: core entities, location types

  • Context: ADR-0102 shipped floor as the one auto-nameable location type, positional and stem-less, on the argument that “a floor has a name the platform can know”. The dev estate is the first real data to meet that argument, and it falsifies the sentence as written: the West Building’s only seeded floor is the building’s Level 2, and the generator calls it 1, because a positional ordinal is the lowest free number in the parent’s bucket and nothing else.

  • Decision: floor stays positional, and the divergence is kept rather than removed, because the two fields are answering two different questions. A name is an address: it has to be unique under its parent, legal, and typeable, and the platform owning it means an operator did not have to think of one. A label is what a human reads, and a building’s own designation for a floor (“Level 2”, “B1”, “Mezzanine”, the skipped 13) is signage, a real-world fact the platform has no access to. So the platform allocates the name and the operator types the label, and the seeded estate ships both cases of the same type side by side: the floor under Innovation Hall is named 1 and labelled Level 1 (they coincide), and the floor under the West Building is named 1 and labelled Level 2 (they do not).

  • Decision (the sharper rule this generalises to): a stem-less positional name is right where the position is an arbitrary disambiguator and wrong where the number is a real-world fact. It is never a claim about the world, so a type whose ordinal an operator will read as a designation (a rack unit, an output, a channel) wants its number typed, not allocated. floor sits on that line rather than safely inside it, and it stays shipped-positional on the strength of the workflow it serves: building out a tower floor by floor, where typing forty names is the cost and the designations arrive later as labels.

  • Rejected, and why each:

    • Make floor nominal and drop its rule (the plain reversal of ADR-0102). It is the more honest reading of “a floor has a name the platform can know”, and it was rejected on cost rather than principle: it leaves the shipped estate with no auto-nameable location type, so the feature is inert everywhere until an operator defines one, and it moves nine storage cases and an e2e that assert against the seeded floor rule. The reversal stays available and this entry is where it starts. This is the option the amendment below takes.
    • Seed a Level 1 under the West Building so the numbers line up. It makes the estate agree by construction and teaches the wrong lesson: correspondence would look like a guarantee, and it is a coincidence of enumerating from the bottom in order.
    • Ship a floor label rule (Floor {{.Name}}). It renders “Floor 1” for a floor that is Level 2, which is the same defect with a nicer typeface.
  • Consequence: the shipped location label rule stays empty and the dev estate labels all thirteen of its locations by hand, which is not a gap in the demonstration but the demonstration: a location’s label is operator space by design, and the two floors are where that stops being an abstraction. It also means a positional name is not safe to read as a designation anywhere in the product, so a console surface that shows a floor must show its label. (The empty half of this is superseded by ADR-0105, which ships a global location rule; the operator-space half stands.)

  • Amended (#657), and REVERSED for floor: the architect rejected the divergence on this type, taking the option listed as rejected-on-cost above. Two arguments, and the second is the one this entry did not have.

    The allocator’s answer misreads as a designation. A building with floors 0, 1 and 2 is named 1, 2 and 3, in whatever order somebody seeds them. This entry called that friction worth keeping; the architect calls it an invitation to misread the estate, and the invitation is extended by the platform rather than by the operator.

    A floor’s designation is not an integer at all. Real buildings sign B2, LG, G, M, 1, 12A, P3. Modelling that as an ordinal is a category error, not merely an imprecision, which is what makes the reversal obviously right rather than a matter of taste. It also dissolves the objection that looks hardest: a negative floor cannot be spelled under ^[a-z0-9][a-z0-9-]*$, since a leading hyphen is refused, but nobody signs a floor -1, they sign it B1, which is already a legal name. A rule shaped like .Ordinal could never have reached that name whatever the sign handling.

    So floor becomes nominal: no name_rule, and an operator names it exactly as they name a campus, a building and a room. The dev estate’s two floors are named level-2 and level-1 for the designations they actually carry, ADR-0105’s shipped location rule renders “Level 2” and “Level 1” from those names, and the two pins this entry made load-bearing are released: name and label are one fact now instead of two that disagreed.

  • Consequence of the reversal (the cost, stated rather than hidden): of the four seeded location types none carries a name rule, so location name generation ships dormant: correct, tested, and demonstrated by nothing in a shipped estate. Seeding a fifth positional type to keep the demonstration alive is refused for the reason seeding a Level 1 was, that a demonstration constructed to make the feature look used teaches the wrong thing. The generator keeps its coverage through a positional type the TESTS create (a parking deck: its number is an arbitrary disambiguator, which is exactly what a floor’s is not), because a feature losing its tests when its last shipped user goes away is how one quietly stops working.

  • Consequence of the reversal (an existing estate keeps the rule, and cannot drop it on the wire): SeedLocationType is insert-when-absent, the forked-template half of the seed model, so deleting the line un-ships nothing from an estate that already booted with it: its floor still carries {"stem": ""} and still names floors 1. That is the mirror image of ADR-0102’s own consequence (the rule reached new estates only), and it is not fixable by a backfill, because a location_type row is operator space. It is sharper than the shipping direction was, because ADR-0102’s second recorded limit bites here: a rule cannot be cleared on the wire, only replaced, since an omitted key and an explicit null both decode to a nil pointer. Such an estate reaches the new default only by a direct write, and the operator guide says so rather than implying a release does it. Closing that needs the wire-contract change ADR-0102 costed and declined.

  • What survives for genuinely positional types: everything except the placement of floor. A stem-less positional name is still right where the position is an arbitrary disambiguator (a parking deck, a rack row, a berth) and wrong where the number is a real-world fact an operator reads off a wall; floor sat on that line and is now placed firmly on the nominal side of it. The name-versus-label distinction stands untouched: a name is an address, a label is what a human reads, and the two coinciding on the dev estate’s floors is a property of naming them well, not a guarantee. A console surface that shows a location still shows its label.

  • Tracked under #689, the ninth slice of epic #657; the amendment folded into #698 after the rollup review.

ADR-0104: A create form shows the name it can know, and never mints one to preview it

Section titled “ADR-0104: A create form shows the name it can know, and never mints one to preview it”
  • Date: 2026-08-11 | Status: Accepted | Pages: work with an entity, UI
  • Context: eight slices of epic #657 built a generator that names a component, a system and a location from what it is and where it sits, and the console was the last surface that could not reach it: two of the three create forms derived the name from the display name and refused to submit without one, so every console-created row arrived operator-named whether the operator meant that or not. The sub-issue asked the form to “produce both values without the operator typing either”, and the epic’s own mechanics say that only half of one of them is knowable. A generated name is <stem>-<n>: the stem falls out of the classification the operator has just chosen, and the ordinal is the lowest free number among the LIVE siblings in the placement bucket, allocated under an advisory lock inside the create’s own transaction (ADR-0097). The label is worse: its data map carries the row’s own Name and Ordinal (ADR-0098), so it cannot be rendered before the row it describes exists.
  • Decision: the form shows the shape and marks the unknown half as unknown. The stem is resolved in the browser from the type registry the picker already loaded, and the ordinal is written as the literal token n, which is not a digit and cannot be misread as the value: display-n, boardroom for a mint that suppresses its first ordinal, n alone for a positional type. Each shape travels with the sentence that makes it honest, and for a suppressing mint that sentence is load-bearing rather than decorative, since the shown boardroom becomes boardroom-2 for the second one in the room.
  • Decision (the placement is context, not a prefix): the bucket the name has to be unique in is shown beside the field as a path (Unique at Headquarters / West Building / Level 2 / Boardroom), read-only. The sub-issue asked for the ancestry as an editable field’s read-only prefix (boi-17c-[editable]), which is stale by two slices: names became scoped to placement, so a name no longer contains its ancestry at all, and rendering the path into the field would put back exactly the redundancy the scoping removed.
  • Rejected, and why each:
    • A draft-preview verb that mints and rolls back. It matches the acceptance’s wording and buys a number that is provisional: any other create in the same bucket can take it between the preview and the commit, so the form would show a value that silently turns out different, which is the one outcome this whole affordance exists to prevent. It is also not free to ask: a rolled-back mint takes the same pg_advisory_xact_lock on the bucket that real creates take, so a form previewing as the operator changes a picker would serialise the estate’s creates behind a UI affordance. Refused on both counts, and the second is the one that would not have shown up in review.
    • Re-rendering the label rule in TypeScript. A second implementation of the rule engine in another language, which is the defect the epic’s third slice swept 42 hand-rolled copies of onto a single primitive to end. The label is therefore not previewed at all: the form says a rule will render one and marks it Generated, and shows nothing it cannot know. (Amended by #699 below: the refusal stands, and the label is now shown, because the ONE engine renders it.)
    • Fetching the resolved stem from the server per selection. It removes the one thing that can drift (the browser’s walk of the type chain versus the gateway’s) at the cost of a round trip per picker change and a new route. Declined because the walk is not new here: the console already climbs both type registries for the icon, and #688 makes that walk a single primitive (lib/typechain.ts) with the stem as its third consumer, so there is one client-side climb rather than three. What closes the gap instead is a browser-tier e2e that reads the shape the console showed and asserts the row lands with that stem, which is the only tier that can see both answers. Amended (#695): this argument is spent, and it was always an argument about COUNT rather than about kind. The stem consumer went with #702 and the two icon consumers go here, so lib/typechain.ts is deleted: there is no client-side climb at all, one primitive or otherwise. The registry LISTING carries resolved_icon beside the raw icon, resolved in the gateway over rows the list already holds, so it costs no read the console did not already make. Both fields ship because they answer different questions: an edit blade posts the raw one back (blank means inherit) and a cell draws the resolved one.
  • Consequence: a name is optional on all three estate create forms, and required only where nothing will generate one (an unclassified system, a location_type with no name rule, a component_type chain with no stem). Each of those states shows the missing fact by name rather than a disabled button with no explanation. The console can now produce a row the platform owns the name of, which every earlier slice of this epic could only be reached from the API or the CLI.
  • Amendment (#699, 2026-08-11): a render is not a mint, and the distinction is what this decision turned on without naming. Both refusals above are about ALLOCATING. The provisional-answer argument is that a minted ordinal can be taken by another create before the commit; the serialisation argument is that a rolled-back mint takes the bucket’s pg_advisory_xact_lock. Neither reaches an operation that allocates nothing: resolve the rule through the same tiers, build the same closed data map, execute it with the same one engine, and write the token n where the ordinal would go. No lock, no write transaction, no allocation, and no second implementation of anything. That operation is POST /<collection>:renderLabel, and the create form now shows both generated values in locked fields rather than showing a shape and a promise. The no-allocation claim is held by a test that reads back every SQL statement the render issued (#650’s counting instrument) and by a create five renders later still taking ordinal 1, rather than by this paragraph.
    • The TypeScript refusal is unchanged and is what makes this shape the only one available: the label is shown because the Go engine rendered it, not because the browser learned to.
    • The NAME’s shape stays client-side, so the two halves of the form now answer from different tiers. That is a deliberate trade rather than an oversight: a stem resolves synchronously from a registry the picker has already loaded, so the locked name appears the instant a picker moves, where a round trip would leave the form’s primary affordance empty until it lands. The cost is the drift ADR-0104 already accepted, and the round-trip objection to resolving the stem server-side is now void, since the form makes a round trip per picker change regardless. Folding the name into the same answer is therefore available and cheap, and is deliberately not taken here.
    • The gate is the entity’s own :create, the permission the create it precedes needs: the answer exists to be acted on, and an operator who cannot create has no use for it. The PLACEMENT refs are a separate question and resolve within the caller’s location:read and system:read scopes, because the rendered string can carry a location’s label and a system type’s label, so without that the route is a disclosure channel. A location draft injects no scope at all, because a location’s data map reads no other estate row (ADR-0098’s exclusion survives on that tier). Amended (#713): the component’s system ref resolves in system:read and system:update, and the route carries the create’s conditional system:update permission, because the create binds that reference as a membership (ADR-0107). The rule is no longer “the placement resolves in a read scope” but “each placement reference resolves exactly where the create resolves it”, which is the only version of it a preview and its create cannot disagree about.
    • Three states per field, not two, and the third is not a loading state. Generation is unavailable, permanently, for a component_type chain with no stem, a system with no system_type, a system_type chain with no stem, and a location_type with no name rule; the label has its own, where no rule resolves at any tier, and the field then shows the NAME (the read ladder’s third rung) rather than sitting locked and empty. That state was every location in a fresh estate when this was written, because no location label rule shipped at any tier; a global one ships as of ADR-0105, so it is now the state an operator reaches by clearing the rule rather than the state they start in.
  • Amendment (#657, 2026-08-11): the lock is an inline action, and a locked field is readonly rather than disabled. The affordance moved INSIDE the field, a square icon button in the field’s daisyUI join, which is where the console already puts an in-field action (a Variables row’s set / revert, a secret’s reveal, a setting’s Restore to default). Both actions read as that Settings row does, on purpose: handing a field back to the platform IS restoring it to its default, and one idea should not carry two visual languages. The button has no text at all, so its tooltip (“Override”, “Restore to default”) is the visible copy and the accessible name says which field.
    • disabled had to go, and that is the substance of this amendment. A disabled input fires no click, so click-to-override cannot work on one, and it is out of the tab order, so the value the row is about to carry has no keyboard path. readonly is not editable, is still focusable, and still fires events. The consequence is that the locked LOOK is now drawn rather than inherited: daisyUI 5 ships no .input-disabled class, only :disabled / [disabled] selectors, so the class the markup carried was a no-op and the whole locked appearance came from the attribute. .input-locked in app.css carries it, and hover only warms the border.
    • Focus does NOT take the pen, although a click does. A locked field is a tab stop by the decision above, so claiming on focus would mean tabbing from the pickers to the Create button claimed both pens and blanked both fields on the way past, which is the state the locking exists to prevent. Clicking is a deliberate act; passing through is not. The click accelerator is one-way for the same reason: the way back discards what the operator typed and belongs on the button. The always-present button is what makes every state keyboard-reachable, and the section’s tab order is asserted rather than inspected.
  • Amendment (#702, 2026-08-12): reading the lowest free ordinal is not minting one, so the form shows the real number and the create carries a precondition. This decision’s two refusals were both about ALLOCATING, and #699 already applied that distinction to the label render. The same distinction reaches the ordinal itself, which this decision missed: the number a create will take is pickOrdinal over the sibling names in the placement bucket, and running that computation is a read. It takes no pg_advisory_xact_lock, opens no write transaction and allocates nothing, so the serialisation argument, the one that “would not have shown up in review”, does not reach it. The form therefore shows display-3, not display-n, and the token is retired from the codebase (OrdinalToken, nameMint.shape and the console’s ORDINAL_TOKEN are all gone rather than left unused).
    • The provisional-answer argument stands, and is answered rather than avoided. Another create in the same bucket really can take the number in between, and hiding the number was one way to cope with that; refusing is the better one. The form posts the ordinal it was shown as expected_ordinal on the create, the create allocates under its own lock exactly as it always did, and confirmOrdinal compares the two inside that transaction before anything is written. A create that would land a different name is a 409 naming the number that moved and the name it mints; the form re-reads the draft, shows the new name, and the operator submits again. A refusal is honest where a silent difference is not, and a silent difference is precisely what the locked field exists to prevent.

    • It is a number, never a name. A locked field that posted a name would claim the pen and set name_generated false, inverting the whole affordance, so the precondition is the ordinal and the API refuses it (422) beside a supplied name, where nothing is allocated for it to be about. It is a pointer with minimum: 1 so absent and zero cannot both spell “no expectation”, and an operator-named draft answers with no ordinal at all, which is what makes “the field is locked” and “there is a precondition to post” one fact rather than two.

    • The form has to tell this refusal from every other one, because its recovery (re-read, re-show, resubmit) is specific to it and a create’s OTHER 409 is a name collision the operator has to resolve themselves. Matching on the message would tie the console to server copy, so both refusals a form acts on carry a huma.ErrorDetail locating them on the request field the recovery touches: body.expected_ordinal for the conflict, carrying the ordinal that moved as its value, and body.name for the four “the platform will not name this row” refusals. That is the RFC 9457 errors array the ErrorModel already publishes, so it costs no new wire shape.

    • The name’s shape stops being client-side, which #699 explicitly left available. That amendment called folding the name into the same answer “available and cheap, and deliberately not taken here”, on the grounds that a stem resolves synchronously from a loaded registry. It is taken now: the draft already resolves the stem, the mint and the bucket to render the label, so returning the NAME costs nothing, and the form makes a round trip per picker change regardless. The cost it removes is the drift this decision accepted, which is the naming half of #695. The consequence is that “the platform will not name this row” is now an ANSWER from the server rather than a null the browser computed, so the field’s three states are unchanged but their source is one tier instead of two, and the submit gate waits for that answer rather than flipping synchronously.

    • The draft takes the same scopes its create takes, in the same order, because it now resolves the same references: the parent decides which bucket the ordinal is read from, so it resolves in the caller’s <kind>:create scope, the set the create resolves it in. A location’s draft therefore takes a scope where it took none, and what that scope guards is the sibling read rather than the render (ADR-0098’s exclusion of placement from a location’s label data map is untouched). The draft does not rehearse the create’s own all-scope gate on a ROOT create: it answers what a row would be called, not whether the create is permitted, and the permission is the route’s gate.

      Amended (#702 review), and that last sentence is REVERSED. The draft refuses the parentless bucket in the same set the create refuses it, because the answer is not inert: it carries the lowest free ordinal, read from the bucket’s sibling NAMES, so it reports which of that bucket’s names are taken. On the root bucket the probe is chosen rather than fixed, since writing a stem into a forked type’s name rule is ordinary (#703) and needs only location_type:create. Driven, the root draft answered secret-region-2 to a principal whose create in that bucket is a 403. The gate is a SCOPE, so it sits beside the route’s permission gate rather than contradicting it, and it is unconditional rather than only when a name is being drafted, for the same reason the create’s gate is.

    • Amended (#702 review): the precondition binds the NAME, not the ordinal. The claim a locked field makes is “the row will be called what I am displaying”, and the ordinal is one of three inputs to that rather than the claim itself: a name is the stem, the suppression rule and the number together, so a claim on the number alone passes unchanged while the other two move. Driven: a form drafts display-1, PATCH /component-types/display {"stem":"monitor"} lands, the create posts expected_ordinal: 1, and the row is created as monitor-1 with the precondition MET, which is exactly the silent difference the locked field exists to prevent. Nothing races there, and forking a type and rewriting what it mints is an ordinary operator act since #703, so the console was shielded only by an accident (the stem is not in the draft body, so it is not in the query key that would have re-asked) and a CLI or API caller was not shielded at all. expected_name replaces expected_ordinal, and confirmDraftedName compares the string. Keeping the number and adding the stem and the bucket beside it was refused: it is three fields where one already carries all three by construction, and it would need extending again the next time a mint grows an input. It is still a precondition and not the name field: the create leaves name empty, so the row is still name_generated and the ordinal column is still the platform’s, and posting it beside a supplied name is the same 422 as before. The 409’s ErrorDetail moves to body.expected_name and carries the name the create WOULD have produced as its value, which is what the form shows next. The drafted ordinal stays on the render’s answer as an informational fact, since a surface that shows where a value came from teaches the mechanism it operates.

  • Amendment (#693, 2026-08-12): the lock is the console’s ONE vocabulary for the pen, so it reaches the edit blade and the list’s chip retires. This decision described a create form, and the pen’s other half was left where it had grown: a full-text Generated chip in the identity cell, read by 18 flat-list pages and every tree. Two things were wrong with that and only one is cosmetic. It charged the Name column the width of the word on every platform-labelled row, on the very column #690 had just had to put a floor under. And it stated an ownership fact where the operator could not act on it, while the surface that CAN act on it, the edit blade, said nothing at all. So PenToggle moves out of the create form into its own module and the blade’s display-name field consumes it, and the chip goes from both list renderers.
    • The name’s own chip stays, and that is the consistency rather than an exception. The component blade marks a platform-picked NAME in its read state, beside the name fact. The rule both now follow is that a pen states itself beside the field it owns, on the surface where the operator can change it; a list is neither.
    • The blade has a third state the create form does not, and it is a locked field showing a value that is about to change: “Restore to default” on a row an operator labelled by hand. Nothing can know what the rule will render for it, because :renderLabel previews a row that does not exist and reads the lowest FREE ordinal in the bucket, which for an existing row is the NEXT sibling’s number. Asking it would answer confidently and wrongly. The field therefore keeps showing the label that is there and the hint says the platform rewrites it on save. A lock over an EMPTY field was refused here for the same reason it was refused on the create form.
    • It closes a silent pen theft, which is why this is a fix and not a restyle. Every blade seeded a plain signal from display_name and posted display() || undefined, so opening the pencil on a platform-labelled row and saving ANY other field posted the platform’s own rendering back as an override. labelPen read that as the operator claiming the label, the row stopped following its rule, and nothing on screen had said so. The field now posts the PEN’s value, which is the empty string while it is locked, and the API reads that as “still the platform’s”. One expression covers the no-op and the hand-back, and the hand-back is the console’s first way back at all.
    • labelGenerated retires with the chip. It asked “is there a rendered label here to mark”, which is a marker’s question and returns false for a row whose rule rendered nothing; a field asks “who holds the pen”, which is true for that same row and must open it locked. One predicate answering two questions differently is how a surface marks one thing and does another.
  • Tracked under #688, the eighth slice of epic #657, amended by #699, its tenth, by the affordance pass folded into #698, by #702, and by #693.

ADR-0105: A rule reads a name as words, and the location tier ships the restatement it once refused

Section titled “ADR-0105: A rule reads a name as words, and the location tier ships the restatement it once refused”
  • Date: 2026-08-11 | Status: Accepted | Pages: core entities, find things in your estate, location types
  • Context: epic #657 shipped a label engine (ADR-0098) and an operator-owned acronym dictionary (ADR-0099) that nothing could reach. title upper-cases each word and leaves the SEPARATOR standing, so {{title .Name}} renders north-wing as “North-Wing”; the closed FuncMap’s other three run the other way (slug) or ignore word boundaries entirely (upper, lower). There was therefore no rule an operator could write that turned a kebab NAME into the words in it, and “HQ West” from hq-west was unreachable by any spelling. It bit hardest on locations, whose global rule shipped deliberately empty, so every location in a shipped estate fell to the read ladder’s last rung and read its raw name.
  • Decision (the function): words joins the closed FuncMap: a run of - or _ becomes one space, a leading or trailing run is dropped rather than becoming an edge space, and every other character, including whitespace the fact already carried, is untouched. It is deliberately not a normalizer and deliberately not wordRe’s “anything that is not a letter or a digit”: a catalog display name’s parentheses and slashes are punctuation somebody chose, and only the two separators a NAME is built from are spent. Adding a function is a three-place act by design (the FuncMap, the AST allowlist, and FuncNames), and two of the three is silent in both directions, so the published set is now WALKED by a test that parses each name in a real rule rather than described by a comment. Amended (#701): the three-place act is ONE place, and the “by design” was wrong about which design. What the property needs is that a function be in the FuncMap AND the grammar, not that a person type it into both: the FuncMap, FuncNames and the allowlist now all derive from a single ordered declaration, so two-of-three is unwritable rather than merely tested for, and the fourth copy this entry did not count (the prose that teaches the language) becomes a table rendered from that same declaration. Adding a function stays a deliberate, test-visible act, because the closed-set test still names the members and the generated artifact still has to be regenerated and committed. The walking test stands and is joined by its converse, since a name admitted by the grammar with no implementation behind it was the direction nothing checked.
  • Decision (the location rule): the global location rule ships as {{title (words .Name)}}, written to default_template, the boot-seed-owned column an operator’s template sits beside untouched. The seed’s own comment argued against exactly this and is rewritten rather than deleted: it said any rule at that tier is “either a constant or a restatement”, and the constant half stands (labelling every room “Room” is worse than the name it would replace) while the restatement half was true only while a restatement could echo. This one re-cases the name and runs the operator’s dictionary over it, so it produces a string the fallback cannot, which is the test a rule at this tier has to pass.
  • What this does NOT change: the read ladder’s last rung is still verbatim. A row with no stored label renders its name exactly, never a prettified version, and the difference is that this rule RENDERS AND STORES a label rather than teaching a read path to guess one. That distinction is #613’s, corrected the same day for having the same confusion in it.
  • Consequence (the upgrade is not automatic, and says so): a shipped rule change restamps nothing by itself (ADR-0100, ADR-0102): the blast radius is the whole estate, so it waits for the verb. A new estate gets a rendered label at create; an existing one keeps its raw kebab locations until an operator runs /locations:recomputeLabels, and the operator docs say that plainly rather than implying a release does it for them.
  • Consequence (the estate stops masking the rule): #689 pinned a display_name on all thirteen dev-estate locations, because nothing would have rendered one. Four of those pins now restate what the rule renders, so they are released and the RENDERED values pinned in their place; nine survive with a reason each, ADR-0103’s two floors among them, since a positional name is allocation order and releasing those deletes that worked example. Amended (#657): ADR-0103 was then reversed for floor, so those two floors are named level-2 and level-1 for their designations, this rule renders “Level 2” and “Level 1” from those names, and their pins are released too. Six rendered values are pinned in place of released ones and seven survive. The media lab’s name becomes media-lab: every other location name in the estate is one word, so without it nothing the console shows demonstrates a separator becoming a space.
  • Known gap, deliberately not closed here: HQ is not in the shipped acronym list, so hq-west renders “Hq West” out of the box and needs one operator edit to read “HQ West”. Adding it is a change to a settings DEFAULT rather than to this rule, it ripples through three generated artifacts, and ADR-0099’s replace-not-merge semantics mean a shipped entry is not free. Left as a follow-up so this slice stays what it says it is.
  • Tracked under epic #657, folded into #698 after the rollup review.

ADR-0106: A location type is platform-owned, and a nullable object clears under the mask

Section titled “ADR-0106: A location type is platform-owned, and a nullable object clears under the mask”
  • Date: 2026-08-12 | Status: Accepted | Pages: storage, core entities, API, location types

  • Context: the boot seed’s contract is documented as an authoritative upsert, and SeedLocationType was on conflict (name) do nothing. A shipped default was therefore a one-way ratchet: adding one reached every estate, removing one reached only new installs. #657 hit it live, shipping a name_rule on floor and then reversing that in ADR-0103, at which point the withdrawn rule could not be taken back out of an estate that had booted in between, and no PATCH could clear one either. The do-nothing seed was not an oversight: shipped location types seeded official: false, so the rows belonged to the operator and an authoritative re-seed would have stomped their edits. The ratchet was the symptom; the ownership model was the cause.

  • Decision (ownership): location_type adopts the registry-fork primitive (ADR-0095), the second registry to do so after component_type, rather than growing a third mechanism beside it. Shipped rows seed official: true and the platform owns them, so the seed writes them with ON CONFLICT DO UPDATE and a withdrawal is just another write. An operator still shapes their own place vocabulary: an edit of a shipped type stores their whole version of its mutable columns as a shadow keyed on the row’s own uuid, every read resolves the shadow over the row, and POST /location-types/{id}:restore discards it. One uuid and one name per logical row either way, so no foreign key, no URL and no audit row learns about the fork. The rejected alternative was the default_template / template column pair the global label rules use, which is right for a table of three rows with no operator-created siblings and wrong here: it doubles every future column on a registry that already has five mutable ones, and it answers only the columns somebody thought to split.

  • Decision (what the image carries): the fork’s whole-row rule is per registry, not per column name. allowed_parent_types is IN the image although it names other types, because a location_type is flat: it has no parent link, and the placement constraint is a fact the row states about itself, one an operator legitimately reshapes. Holding it official would leave a fork unable to say the thing the registry exists to say.

  • Decision (the migration’s discriminator): estates already carry operator edits on the shipped rows themselves, so a one-time backfill moves them into shadows before the flip. Telling an edit from a shipped value is the whole difficulty, and it is NOT done by comparing the row against what this release ships. That comparison cannot see the case this ADR exists for: a row holding a value a previous release shipped and this one withdrew differs from today’s YAML and reads exactly like an edit, so preserving it would defeat the withdrawal, and a row edited to a value a later release happens to ship has the mirror problem. The audit trail decides instead, because it is a record rather than an inference: every operator write of a registry row writes its audit row in the same transaction, so a shipped row with no create and no update of its own has never been touched and whatever it holds is what some release shipped. create counts as well as update for a case that is reachable today, an operator deleting a shipped type and creating their own under the same name. The known imprecision is biased toward preserving: a contract write audits against location_type too, so one addressed by uuid looks like an edit here and leaves the row holding a shadow of the values it already had, which reads identically and costs a :restore. The reverse mistake, reverting an edit, is not recoverable from the console at all.

    Amended (#703), and the discriminator is REMOVED. Everything above answers “how do you tell an operator’s edit from a shipped value”, and the architect’s ruling of 2026-08-12 is that there is no such edit to tell apart: Omniglass has cut no release and holds no operator data, so no upgraded estate exists and the capture was preserving rows that do not. A review then found the discriminator wrong in two ways that both lose data silently, and its create leg exercised by nothing, which is what a premise that never occurs does to the code written for it. The backfill is now one statement, set official = true on the four shipped names, and its test asserts the migration writes no shadow, so the machinery cannot grow back quietly as a fix for a problem that was ruled out of existence. This is correct only while that premise holds. The first real release creates estates carrying operator data, and from then on a change of ownership on a shipped row owes those estates an answer to the question this bullet asks, in a NEW migration reasoning about their rows: this one has already run, and it reasons about nothing. Whoever ships that release should read the paragraphs above as the standing argument, still sound; only the machinery went away.

  • Decision (the wire): a nullable OBJECT field clears by being named in update_mask with no value, reusing the primitive from ADR-0091 rather than inventing a per-type spelling. The house three-state string sentinel does not generalize: "" clears a string because a string has an empty value to overload, and an object has none ({} is a rule with default fields, not the absence of one). An explicit null cannot carry the intent either, since it decodes to the same nil as an omitted key. This is the convention for every nullable object field that follows, so it is recorded on the API page and not only in the handler.

  • Consequence (a capability that had to be defended): flipping the shipped rows to official activates a guard that had been dormant on this registry, since no location_type row was official before. SetLocationTypeProperty and its three siblings would have started refusing the four types an estate actually uses, silently withdrawing the contract editor for them. They no longer consult the official flag: a contract line is a row in its own table rather than a column of the registry row the fork covers, and nothing seeds one, so every line in those tables is an operator’s already. An ownership change may not take a working capability away as a side effect.

  • Consequence (an expectation inverts): internal/seed/seed_test.go asserted “official location_types = 0, a shipped location type is operator-owned”. It now asserts 4 and guards the opposite claim. The same inversion lands on the wire test and on the console, where origin reads three ways (shipped, yours, overridden) exactly as it does on component types, and the blade’s destructive slot offers Restore shipped on a forked row.

  • What this does NOT change: the label_rule table’s default_template / template pair stays as it is (ADR-0098). It is one row per labelled entity kind with no operator-created rows, where a per-column split is the natural fit and an overlay table would be more machinery than three rows are worth. A shipped row still cannot be DELETED, forked or not, and an operator-created location type is untouched by any of this: it is written in place, it never carries a shadow, and :restore has nothing to give it back.

  • Tracked under #703 and #692.

ADR-0107: A create that writes a membership costs what the membership route costs

Section titled “ADR-0107: A create that writes a membership costs what the membership route costs”
  • Date: 2026-08-12 | Status: Accepted | Pages: identity and access, API, core entities

  • Context: POST /components accepts a system reference, and what it does with it is insert the component’s primary membership into system_member. That is the same row PUT /systems/{name}/members/{component} writes, and that route is gated on the system:update permission and resolves its system in the system:update scope. The create asked for neither: the reference resolved existence-only until #700 made it resolve in system:read, and the route required component:create alone. A principal holding component:create and no system permission at all could therefore write a membership through the create that the membership route refused it, which makes the gate on the membership route decorative rather than binding.

  • Decision: the create’s system reference resolves in the caller’s system:update scope, and the route requires the system:update permission when the reference is present. Two paths that write one row cost one permission. The scope half is not implied by the permission half and is the one a test has to drive separately: a principal holding system:update on one system and the all-scoped viewer floor beside it may READ every system in the estate, and before this could bind any of them on a create.

  • Decision (where the check lives): in the handler, not the middleware, because the condition is a body field and Huma’s operation middleware cannot see the body. To keep the generated spec a faithful map of what a route enforces rather than of what it always enforces, the second permission is published as an x-omniglass-conditional-permission extension beside the primary x-omniglass-permission stamp, exactly as a platform-tier write publishes x-omniglass-platform-permission, and it joins the route-derived permission universe the roles view and the docs lint both read. Reusing the existing stamp mechanism was preferred to a hand-written note in prose, which is the drift the generate-first rule exists to prevent.

  • Consequence (accepted, and the reason it is not a bug): operator holds component:create,update,rename,move and no system:* permission at all; deploy holds system:create,update,rename,move beside the same component set. So an operator can no longer create a component INTO a system. That is the role line the seed already draws rather than damage from this change: an operator maintains components, a deploy tech builds out systems and their membership. The alternative, granting operator the system:update permission, was refused as a much larger grant than “may bind a membership while creating a component”: it would also let an operator edit systems generally, which is exactly the line the two roles are drawn along. The recovery needs no grant at all, since creating the component and binding it are separately authorized acts: the operator creates it, and whoever holds the permission adds it after.

  • Consequence (the narrowing has to be met before the form is filled in): a live narrowing discovered as a 403 after an operator has filled in a create form is the outcome #699’s rule exists to prevent, so the console does not offer the system picker to a principal that cannot use it, and the slot explains itself and names the permission rather than vanishing. The API’s refusal names system:update too, which is what the CLI prints, because a refusal an operator cannot act on sends them to an administrator with no ask.

    Amended (#707 review): that claim was FALSE as shipped, on the layer this decision itself calls out. The console gate read the system:update permission and nothing else, while authorization is two layers and this decision moved BOTH. A principal holding the permission over no system at all was offered the picker, filled the form in, and was refused on submit, which is the exact outcome the paragraph promised to prevent. That principal is not exotic: a location-scoped deploy grant resolves system:update to the empty set, because applicableKinds("system") is {"system"} alone and the cross-tier expansion is unbuilt (#10), and devseed ships one as tech-east. The gate now also requires a system carrying the update action, the server’s own per-row answer computed from the same per-action scope the gateway enforces, offers only those systems, and names whichever of the two layers is missing. The console filters data rather than resolving a scope in the browser, which it must not do.

    Amended (#707 review): the API’s refusal denied the row’s existence. The bind resolved in the system:update scope alone, so a system outside it came back as the non-disclosing ErrSystemNotFound and the route answered “system not found” (422) for a row the same caller could GET. The bind now takes system:read as well: update still decides whether it happens, read decides what the refusal may say. Out of the read scope is the same non-disclosing 422 as before, so nothing new is disclosed; inside it, the refusal is a 403 naming the scope, which discloses nothing either, since that caller can read the row.

  • What this does NOT change: the LOCATION reference on the same create still resolves in location:read, because a location is read and rendered into the label rather than written (ADR-0100, #700). The two references are deliberately not symmetric: what decides the action a placement reference resolves for is what the write DOES with it.

    Amended (#713): the residual this entry left open is closed. As shipped, the :renderLabel draft kept system:read on the reasoning that it renders a preview and writes nothing, and the entry accepted that a preview could therefore be served for a create the platform would refuse, with the console’s own gate as the thing that kept the two in step. That is the caller’s good behaviour standing in for the platform’s, and it is also wrong about what the preview contains: the rendered string carries the system’s TYPE label, so the lenient resolve hands back a fact about a row the caller may not bind, one tier past the disclosure location:read closes on the other reference. The draft now resolves its system through the create’s own resolver, in system:read and system:update, and carries the create’s conditional permission, so both halves of the gate rehearse and the refusals are the same sentinels in the same order. The LOCATION reference is unchanged on both routes, and remains location:read on both, for the reason above: it is read and rendered, never written.

  • Tracked under #707, #713.

ADR-0108: Settlement reads one clock, and a zero window is a statement of intent

Section titled “ADR-0108: Settlement reads one clock, and a zero window is a statement of intent”
  • Date: 2026-08-12 | Status: Accepted | Pages: commands

  • Context: Settle compares a sample’s ts against a now its caller supplies. Every ts on the telemetry tables is timestamp with time zone default now(), so that end of the comparison is written by Postgres, while now was time.Now() in the server process. Two clocks, one comparison. At settle_window_seconds: 0 the test reduces to now.Sub(intended.TS) < 0, true exactly when the sample is stamped ahead of the host, so the verdict for the setting that most wants to be decisive was decided by skew. TestCommandIssueAPI failed intermittently on precisely that branch, and the operator-facing version is worse than a flake: a deployment whose database sits on another host gets the same coin flip on every zero-window command, and a command that genuinely failed can be reported pending and never settle.

  • Decision (the clock): the comparison takes now from the database, read with select now() inside the caller’s transaction (dbNow), at both settle sites. now() is transaction_timestamp, which is the point rather than an incidental detail: a settle-check running in the transaction that just opened the intended value reads exactly the timestamp that row was stamped with, so the two ends of the comparison are one reading of one clock rather than two readings that happen to be close. A check in a later transaction reads a strictly later timestamp from the same server, so elapsed time is elapsed time and never skew.

    Amended (#718): that last sentence over-claims, and the code comment repeating it has been corrected. now() is transaction_timestamp and both settle paths run at READ COMMITTED, so an IssueCommand that BEGAN after a settle-check’s transaction did can still commit before one of its statements takes a snapshot; the intended row it then reads carries a ts later than that transaction’s now(), and the delta is negative. No verdict is wrong today, and not by luck: a negative delta is less than any positive window, which is pending, the right answer for a command issued a moment ago, and the zero case never consults a timestamp at all. What is corrected is the claim, not the behaviour, because an invariant an isolation level does not provide is one a future change can lean on. settled_at is stamped with the same value, which also puts it in the currency the insert path’s own now() already uses.

  • Decision (the zero window): a window of zero is terminal by construction, checked before any arithmetic. settle_window_seconds: 0 is the documented way to say “settle immediately”, which is a claim about intent rather than about elapsed time, so no timestamp of any provenance may make it pending. Taking the clock from the database is what makes every other window honest; this is what makes the zero case independent of the clock rather than merely agreeing with it, and it is the half that survives a future caller that supplies now from somewhere else.

  • What was refused: stamping the sample from Go on the write path, which is the other way to get one clock. It inverts the ripple: ts defaults to now() across every telemetry table and other readers rely on database time ordering, so moving the authority to the process would touch far more than settlement to fix a defect that lives in settlement. Also refused: widening the comparison with a tolerance. A tolerance makes the test stop failing without making the behavior stop depending on skew, which is the failure this repo has paid for twice.

  • Consequence (cost, stated): one extra round trip on each of the two settle paths, IssueCommand and CommandSettlement. Both already run several statements inside one transaction, so it is a small fraction of either, and it is the price of the comparison being about time rather than about which host answered. Settle stays pure and still takes now as an argument; what changed is who supplies it, which is the repo’s own rule about the clock being an edge concern pushed out of the core.

  • Consequence (a shape that was already true becomes stated): nothing in the catalog ships a zero window with a target today (reboot is fire-and-forget), so the change moves no seeded behavior. It moves what an operator’s own zero-window command_type does, from “terminal if the clocks happen to cooperate” to “terminal”.

  • Extended (#719): the same principle, a different mechanism, and no round trip. The mixed comparison survived on the history reads: a system’s and a location’s health transitions, a component’s property transitions, a component’s events, and a component’s and a node’s logs each built time.Now().UTC().Add(-window) in the server process and filtered a ts the database stamped. Less urgent than settlement, because a multi-minute window absorbs ordinary skew where a zero window had no margin at all, and still a boundary decided by two clocks with nothing bounding the difference, which is why the same read answers differently against a database on another host.

    The round trip dbNow costs was weighed rather than assumed, and refused: these are READ paths, and the arc that precedes this one (#653, #725, #726) spent itself taking round trips OFF them. It did not have to be paid, because the dilemma the issue poses (pay a round trip, or document the mixed comparison) has a third answer the settle path did not have. Settle compares in Go, so it needs now as a VALUE and something has to fetch it. A history read only ever hands its boundary to a where, so it needs a BOUND, and a bound can be computed where the data is: the window travels as a duration and the query filters ts >= now() - make_interval(secs => $n). One clock, the database’s, and the instant is never named in Go at all. Six read paths, zero extra statements. Neither horn of the issue’s choice was taken and nothing was left implicit.

    What this costs instead is that the boundary is now per statement rather than per request, so the reachability panel’s per-interface strips are each bounded by their own statement’s transaction_timestamp instead of by one instant shared across the loop. Sub-millisecond, against a 24-hour window, and the instant they used to share was skewed against the data anyway.

  • Tracked under #667 and #719.

ADR-0109: An alarm carries an acknowledgement, and not a snooze or a resolve

Section titled “ADR-0109: An alarm carries an acknowledgement, and not a snooze or a resolve”
  • Date: 2026-08-13 | Status: Accepted | Pages: alarms and actions, identity and access, API
  • Context: alarm:ack,snooze,resolve had appeared for most of a year in internal/seed/seed_shrink_test.go, in internal/rbac/rbac_test.go, and in the permission-format fence and the worked example on the identity-access page. Nothing seeded it, no route registered it, and no design document ever specified what snooze or resolve would do. It read as prior art, which is exactly the risk of borrowing a real resource’s vocabulary for a fixture: three verbs looked decided, and only one of them had a meaning.
  • Decision (what is built): the acknowledgement, alone. Two nullable columns on alarm, acknowledged_at and acknowledged_by, plus POST /components/{name}/alarms/{id}:acknowledge, the alarm:acknowledge permission, the seeded grant on operator, an unacknowledged filter on the list read, and the console affordance.
  • Decision (orthogonal, not a status): an alarm’s raised state belongs to its condition: the one-open invariant is per (component, dedup_key) and the raiser owns the key (ADR-0075). An acknowledgement is a fact about a person. Two independent facts, therefore two nullable columns and not a status enum, which would force them into one column and make acknowledged and cleared mutually exclusive. All four combinations are real and each one is tested: raised and unacknowledged (the queue), raised and acknowledged (somebody is on it), cleared having never been acknowledged (it came and went), and cleared after being acknowledged. A cleared alarm stays acknowledgeable, because the orthogonality runs in both directions and the record of who read an incident outlives the fix exactly as the row does.
  • Decision (no health recompute): raising and clearing both recompute the health chain in their own transaction, and acknowledging deliberately does not. Acknowledging is not fixing: a transition recorded here would stamp a change at a moment when nothing about the estate moved, and the health history is meant to be edges and only edges.
  • Decision (the permission’s name): alarm:acknowledge. Every other seeded action spells its verb (create, update, rename, move, reveal, issue, push, purge, revoke-session), and a permission string is operator-facing: it is rendered in the Roles view, in the grant builder’s tooltips, and in /auth/me. alarm:ack would have been the only abbreviation in the set, and its only claim was the fixture this ADR exists to disown.
  • Decision (idempotent, not refused): a second acknowledgement of the same alarm keeps the first person and the first time, returns 200, and writes no second audit row. The recorded fact is monotonic, and the first sighting is the one that means something operationally (time to acknowledge). Refusing would turn a double click into an error an operator has to interpret, and would make two people opening the same queue race into a 409 that teaches nothing. It is the same shape the raise path already has: a re-raise of an open condition returns the existing incident and writes no audit row, because the no-op leg changed nothing. The database decides it, through a conditional where acknowledged_at is null, rather than a read-then-write that a concurrent acknowledgement could lose.
  • Decision (the scope, and why deploy does not get it): the acknowledgement resolves visible_set(P, alarm, acknowledge) from its own permission on the component tier, not from component:update and not from component:read. A responder role may acknowledge without editing components, and a principal commonly holds an estate-wide read beside a narrow write, so binding the scope to either neighbour answers the wrong question in one direction or the other. Given that, deploy does not get the grant: a deploy grant is made at a location in practice (devseed’s tech-east is exactly that shape), and a location-kind grant fills no component-tier scope at all (#714). The capability would resolve to nothing while the console’s capability-only hint still offered the button: a grant that reads as given and refuses when used. It is revisitable when the cross-tier expansion (#10) lands, and TestALocationGrantOfDeployReachesOneTier now carries alarm in its matrix so the question resurfaces on its own.
  • What was refused: snooze, because its purpose is to suppress notification and the outbound notification registry is unbuilt (#618); a snooze with nothing to suppress is a column that lies about what it does, and it belongs with that issue or after it. Resolve, because the platform already has DELETE /components/{name}/alarms/{id}, so a human “resolving” an alarm whose raised state belongs to its condition is either that clear under a second name or a different concept nobody has specified. Un-acknowledge, which is a second verb and a second decision rather than a nullable field somebody flips, and has no evidence behind it yet. Bulk acknowledge, until there is evidence the queue needs it. And a denormalized acknowledger label on the alarm row: audit_log already denormalizes the actor’s name at write time for exactly the purge case, so the alarm keeps the foreign key (ON DELETE SET NULL) and resolves the current label on read, which reads honestly empty after a purge while the durable record survives where it already lived.
  • Divergence recorded: the identity-access page’s three-way status split says a target the caller can read but not act on is a 403. Every scoped route in the platform answers 404 there, this one included, because the target is resolved through the gateway with the action’s own scope and a miss is a miss. Making it three-way is one shared refusal primitive across every scoped route rather than a per-route special case, and doing it for this route alone would have made it the only route in the system that answers differently from its own siblings. Tracked in #736; the page now marks the branch as design.
  • Tracked under #728, #733, #734 and #735.
  • Amended (#1318): the refusal of snooze is lifted now that #618 built something to suppress. Snooze is a fact about the alarm’s condition, gated by alarm:snooze on the component tier and seeded on operator only, for this entry’s reason (ADR-1318). Resolve, un-acknowledge and bulk acknowledge stay refused.

ADR-0110: A principal’s identifier is the gateway’s answer, not a stored function’s

Section titled “ADR-0110: A principal’s identifier is the gateway’s answer, not a stored function’s”
  • Date: 2026-08-13 | Status: Accepted | Pages: storage, audit, identity and access

  • Context: principal_label(uuid) was a stored SQL function, coalesce(human.username, service.label), and it was wrong on both counts. It put the platform’s answer to “what names this principal” in the database, which is the one place this repository says logic never lives, and it called the answer a LABEL when both branches return an identifier. It was also unpinned: no test named it, so it could have returned anything and the suite would have agreed. The word matters beyond tidiness, because label is about to become the schema’s name for the friendly string on eighteen tables (#613), and a word cannot be renamed onto a column while it still means two other things somewhere else.

  • Decision: the function is dropped and the answer moves to internal/storage/principal_ident.go, which names the tables and columns ONCE (principalIdentSources) and renders every shape a statement can need from that one list, so a caller picks a shape and never a column.

  • Which shape, measured rather than assumed. A read over many rows LEFT JOINs the sources and folds them in Go. Two positions cannot join, and both are bounded reads: alarmCols is read by an UPDATE ... RETURNING (RETURNING cannot left-join, and giving the UPDATE a FROM clause would change which rows it updates), and the audit insert runs inside the CALLER’s transaction on every operator write, where a Go fold means a second round trip and the alarm write path pins its statement count as the exact equation 12 + 5*slots + 4*locations (alarm_cost_test.go, ADR-0094) that counts that insert. Both render the sources as correlated sub-selects instead. The first draft of this decision used sub-selects everywhere, and a review measured it: on a 500-member group roster, projecting them AND sorting on them costs 3011 shared buffer hits and 2000 index searches where the join costs 18, because Postgres does not common up two identical scalar sub-selects. Moving the policy out of the database was the point; paying a round trip on every operator write, or two thousand index probes on an unbounded roster, was not.

  • What holds the shapes together. The columns are named once, so only the ORDER is written twice (as Go control flow and as a coalesce), and principal_ident_test.go drives a human, a service account, a node and an unknown id through EVERY shape against a real database, asserts they agree and asserts what they agree ON, and fails on the first disagreement. Asserting only the agreement would pass when all shapes are wrong the same way, which is exactly what naming the wrong column in the one source list would do. That is the recompute-and-compare shape the gateway already uses wherever one fact has two readers, applied to a policy rather than to a derived column.

  • The audit READ moved with them. ListAuditLog kept its own hand-written coalesce(ah.username, a.actor_username, ''), which resolved a HUMAN actor live and a SERVICE actor only from the row’s snapshot: a fourth statement of the policy, asymmetric between two kinds for no recorded reason. It now resolves both live through the same sources and falls back to the snapshot, which is what makes the trail survive a purge (ADR-0016).

  • A node is still not a source. principal_label never read node.name, so a node principal resolved to null, and this change preserves that rather than quietly widening what an audit row says. Nothing seeds a node grant today, so no path reaches it; widening the resolution is its own decision with its own test.

    Amended (#738): a node’s identifier is its name, and it is the third source. The preservation above was right for a refactor about WHERE the answer lives and wrong to leave standing, because what it preserved was a blank actor on an audit row, the kind of defect found much later from a trail that cannot say who. The identifier is node.name for the same reasons the other two columns are identifiers: it is the only operator-visible handle the row has, it is unique (node_name_key, beside human_username_key and service_name_key, ADR-0111), and it is already the estate address and the NATS subject token, so it is the string an operator would recognise. node.display_name cannot be one: it is optional and not unique, and this string is denormalized as bare text into audit_log where nothing survives beside it. Reachability is unchanged (nothing seeds a node principal with a grant), so this is what a node acting WOULD read as rather than a fix to something an estate sees today. The cost is one more LEFT JOIN per resolution on the read shapes and one more correlated sub-select on the two positions a join cannot reach, the same arithmetic the measurement above covers; the invariant test now drives the node arm to a real answer instead of to the empty string, and a second test drives all three kinds through the audit write, the audit read, the alarm read and the group roster, because a fold reading one column fewer than its query returned is a defect only a surface can show.

  • Tracked under #564, under #613.

ADR-0111: A service account’s identifier is a name, and it is unique

Section titled “ADR-0111: A service account’s identifier is a name, and it is unique”
  • Date: 2026-08-13 | Status: Accepted | Pages: identity and access, audit
  • Context: service has exactly two columns, principal_id and label, and the second one is what IDENTIFIES a service principal: it is the username analogue for kind=service, the only operator-visible handle the row has. It was also on the wire as svcBody.Label, three lines from the human body’s display_name, so two different concepts read as one. Under the identity triad an identifier is a name, and this was the only place in the schema where label meant one, which matters beyond tidiness because label is about to become the schema’s word for the friendly string on eighteen tables (#613).
  • Decision: the column is service.name, on the wire as name, in the console as Name.
  • Uniqueness: yes, answered rather than inherited. The column carried no index and no constraint. It is now service_name_key, matching human_username_key and node_name_key, so all three principal-kind identifiers behave the same way. The reason is not symmetry, it is that the string is DENORMALIZED as bare text where nothing survives beside it: into audit_log.actor_username at write time so the trail outlives a purge, and into an alarm’s acknowledgement on every read. Two service accounts sharing a name make both unresolvable after the fact, which is exactly why a username is unique. It is also free today and expensive later: there is no create path for a service principal on the gateway or the API, so nothing can be holding a duplicate an operator typed, and the estate has no releases and no operator data. The migration still copes: a dedupe backfill runs first, keeping the name on the oldest row of each duplicated set (principal.id is uuidv7, so it sorts by creation time) and suffixing every other with its own principal id, which is unique by construction rather than by luck.
  • The declaration moved with it, and grew a guard. service was declared ShapeIDOnly, whose published sentence is “nobody names it”. That was believable only while the identifier was called label, and renaming the column would have left the declaration saying the opposite with a green suite, because nothing checked it. service is now ShapeHumanNotAKey (a username analogue, on its own rule, not an address), and a new guard reads the generated schema facts and fails any ShapeIDOnly table carrying a name column.
  • The mixed fallback is what the rename was for. The group roster read coalesce(h.display_name, s.label, '') into one field: a human’s friendly string falling through to a service account’s identifier. Written out after the rename it reads coalesce(h.display_name, s.name, ''), and the mistake is on the page. The fix is not a better chain but two fields, name (the identifier, resolved by the gateway’s principalIdent) and display_name (the friendly string, which only a human has a column for), with the renderer choosing. A service member’s identifier used to arrive in a field called display_name, which an API test asserted verbatim.
  • Breaking wire change, on two read shapes: svcBody.label is svcBody.name, and the roster’s username is name with display_name narrowed to humans. No CLI flag moves, because neither field is a request field.
  • Tracked under #563, under #613.

ADR-0112: A generated flag carries the schema’s type, and a structured field carries JSON

Section titled “ADR-0112: A generated flag carries the schema’s type, and a structured field carries JSON”
  • Date: 2026-08-13 | Status: Accepted | Pages: the CLI, API first
  • Decision: cmd/cligen derives each body flag’s type from the OpenAPI property it comes from. A scalar the shell can type takes that flag type (integer is an int flag, boolean a bool flag, number a float64 flag, string a string flag), so a value the schema refuses is refused at the shell rather than by the server’s 422 after an authenticated round trip. Every other shape keeps one string flag parsed as JSON: an object, an array, an untyped any, and a nullable number or boolean.
  • Context: every body flag was a string, and every non-string field was coerced at run time by jsonOrString. The schema said integer, the CLI said string, and the generated CLI reference published string for all of them, which is the generate-first drift class moved inside the generator: a fact the spec states, restated by hand as something else. The same wave surfaced it twice, on name_rule (an object) and on settle_window_seconds (an integer with a floor of 0 the flag could not carry).
  • Why a structured field stays one JSON string, decided rather than left: a nested value has no shell-native flag type. The alternatives are repeated key=value pairs (pflag’s StringToString), which can express neither nesting nor an array member, or a flag per leaf, which would make the flag NAMES depend on how a $ref happens to nest and rename them when it changes. Above both, null has to stay sendable: a nullable object is cleared by naming it in update_mask and sending null (ADR-0106), and a typed flag has no null, so --name-rule null is the only spelling of that clear. That is why a nullable number or boolean keeps the JSON spelling too, though the spec carries none today.
  • The one nullable exception: a nullable string stays a plain string flag. This API clears a string with the empty string rather than with null, and routing it through JSON would hand it the quoting hazard the string passthrough exists to avoid (a name that is literally 30).
  • What moved for an operator: a boolean is now a real bool flag, so --propagates=false is the spelling and --propagates false reads false as a positional argument. One documented line in the CLI guide was exactly that mistake, so the docs flag check now fails on a bool flag handed a space-separated true or false, which is a claim a page can no longer make by accident. A required flag’s rendered example names what the flag takes (--position <int>, --fields <json>) instead of repeating the field name, since --position position read as a runnable line and is now refused by the parser rather than by the server.
  • Corrected on the way in: the issue names expected_ordinal as one of the two fields that surfaced this. That field does not exist: the #702 review replaced it with expected_name, and internal/docslint refuses the word. settle_window_seconds is the integer under test instead.
  • Tracked under #711.

ADR-0113: A validation rule is TypeScript, and a native constraint attribute is not one

Section titled “ADR-0113: A validation rule is TypeScript, and a native constraint attribute is not one”
  • Date: 2026-08-13 | Status: Accepted | Pages: design system
  • Decision: a console control carries no required, min, max, minlength, maxlength, pattern or step. A rule is a pure function over the typed value (lib/validate.ts, readSettleWindow in lib/command_types.ts), the surface renders its message inline beside the field, and the form binding’s disabled / valid refuses the submit. aria-required stays, because it announces a fact to a screen reader without claiming the browser will refuse the value. validation-guard.test.ts scans every .tsx for a native constraint on an input, select or textarea.
  • Context: the browser enforces a constraint attribute on a real form submission, and this console performs none on the paths an operator uses. A Drawer’s action rail is drawn by the shell and portaled outside the <form> (ADR-0054), a blade has no <form> at all, and the inline editors (RoleEditor, ContractEditor) save from an onClick. The audit is what decided it: 21 attributes on 24 rendered controls, of which 17 sites are on a surface with no form submission at all, and the remaining four (three on Login, one on the forced password change) sit in forms whose submit button is disabled in exactly the states native validation would have refused. Zero of the twenty-four could ever fire. A reader could not tell a live attribute from a decorative one because there were none of the first kind.
  • Why not make them live instead (form.requestSubmit() from the rail): it would have covered the Drawers and left every blade needing this decision anyway, since a blade is a field set with a contributor registry rather than a form, so native validation could not be the one vocabulary. It would also mean threading a form ref through the binding into a portaled shell to reproduce an effect disabled / valid already produce, and then undoing the disabled gate so the browser could refuse instead, which is a worse operator experience: a native bubble is unstyled browser chrome that says less than the inline message and vanishes on blur.
  • What it costs and what it does not: every removed attribute already had a TypeScript rule behind it except one, the token drawer’s min="1" max="365", which is now tokenTtlError and refuses a 400-day token at the field rather than at the server’s 422. type="email" and type="number" stay: an input TYPE carries keyboard, autofill and spinner behaviour, and is not a claim that a value will be refused.
  • Found by #718, whose brief asked for a min="0" on an input that had carried one since #411 and had never fired once. Tracked under #724.

ADR-0114: An inherited registry fact clears with the empty string, and the pattern is what admits it

Section titled “ADR-0114: An inherited registry fact clears with the empty string, and the pattern is what admits it”
  • Date: 2026-08-14 | Status: Accepted | Pages: the API, core entities
  • Decision: stem, abbrev and icon on component_type and system_type join the three-state string sentinel their label_rule neighbour has always honoured: an omitted field is unchanged, an explicit "" clears the column to NULL so the inheritance walk resumes at the nearest ancestor, and a value sets. All four columns are the same case ... nullif(...) line in both handlers, and the fork leg decodes the sentinel too, since a shadow image is read back as the row. The mask is not the instrument (ADR-0106 scopes mask-with-no-value to nullable OBJECT fields, on the ground that an object has no empty value to overload; ADR-0091 keeps the sentinel for strings).
  • The clearing spelling is a pattern alternation, not a dropped rule. stem carried minLength: 1 and ^[a-z0-9][a-z0-9-]*$ on the PATCH body, so "" was a 422 in the validator before the handler ran and the capability was unreachable from every client. The patch’s minLength goes and the character rule is wrapped in an optional group, ^([a-z0-9][a-z0-9-]*)?$, which is the spelling location_type.name_rule.stem already ships. That admits exactly one new string. Bad Stem, -leading-hyphen, UPPER and a trailing space are all still refused, on both registries, and there is an e2e that says so. CREATE keeps minLength: 1: there is nothing to clear on a row that does not exist yet, so "" there is a typo rather than an intent.
  • A root keeps its stem. A root has no ancestor to inherit from, so clearing its stem is ErrRootComponentTypeNeedsStem (and its system twin), the same refusal create gives, moved to the second path that can reach the same broken row. The rule is one pure function over the patch and the parent id, so the two handlers cannot disagree about it, and it is deliberately narrower than “a root clears nothing”: a root with no icon of its own is answered by the console’s fallback, where a root with no stem is a name the platform cannot mint.
  • Why this and not the mask, restated for the columns that prompted it: the mask would work, and it would mean two spellings of “clear a string” in one PATCH body, since label_rule beside these three already clears on "". One vocabulary per kind of field is the property worth having.
  • What it cost. Both console blades now send "" for an empty box where #677 and #656 taught them to send nothing, so the three guard tests those slices left (“no '' ever rides the body”) invert rather than being deleted: they now assert the sentinel. That is the correct reading of both slices. They were data-destruction fixes against a coalescing patch, and the patch stopped coalescing here.
  • Found by #716, filed out of #677’s review rather than folded into it, so the destructive bug shipped the day it was found and the missing capability stayed honest until it could land on two registries, the wire, validation and both consoles at once.

ADR-0115: An inherited fact is served with the value it inherits, and the ancestor it came from

Section titled “ADR-0115: An inherited fact is served with the value it inherits, and the ancestor it came from”
  • Date: 2026-08-14 | Status: Accepted | Pages: core entities, the UI
  • Decision: The component_type and system_type LISTINGS serve inherited_stem, inherited_icon and inherited_abbrev beside the raw fields, each paired with an inherited_*_source naming the ancestor the value comes from. The console’s edit blade shows the value as the field’s placeholder and the ancestor in a provenance dot beside the label, and its read state shows the value in place of the em dash it used to render, marked with the same dot in the same slot (see the two amendments below: the first replaced the attribution sentence the read state shipped with, the second removed the hint sentence that then duplicated the dot).
  • This is a different question from resolved_icon, and that is the whole reason it exists. ADR-0104’s #695 amendment serves what a row SHOWS, which is the row’s own value on every row that states one. A placeholder asks what the row would show if it stated nothing. Those are the same string only on rows that already inherit, so a blade that used resolved_icon as its placeholder would print the value an operator had just deleted back at them as the thing they were about to inherit. The new fields start their climb at the PARENT; resolved_* = own ?? inherited_* falls out of that, and one walk answers both.
  • A mark of its own, and not the lock. A placeholder natively means “leave this blank and you get this”, so the value goes there; the RELATION gets one new mark of its own (below), and the lock was available and is refused: ADR-0104 gives it one meaning, the platform owns this value, and an inherited fact is one an operator MAY set, which is the opposite. Borrowing the icon would cost the lock the only meaning it has.
  • Amended, in this same wave (#716): the mark is a teal dot beside the LABEL, and the read state’s attribution sentence comes out. This entry first said “no new glyph”, with the read state rendering the inherited value and inherited from <ancestor> under it. That shipped in the morning and two spikes against the real console falsified it by lunchtime. The sentence was the third telling of one fact on the one line that had no room for it (a dimmed value, an attribution beneath it, and a hint beneath the box), and it could not appear in the EDIT state at all, which is the state that needs it most: there the inherited value is a grey placeholder in a box that looks exactly like an empty one. What ships instead is one teal dot, present or absent, present meaning this value comes from somewhere that is not this row.
    • Beside the label, because that is the only placement that works in both states. Measured on the real console at 1320px: beside the VALUE, trailing is right in read (every value starts at the same x and the dot follows the last character) and collapses in edit (a 407px input exiles it 380px from the placeholder it is about, into the slot the console’s own in-field actions occupy), while leading is right in edit and reads as a list bullet in read, stepping every marked value 11px out of a column the unmarked ones hold. A hanging gutter lands at two different x in the two states. The LABEL is in the same position in both, and FieldRow’s label row and KVStacked’s eyebrow are the same slot, so one treatment covers read and edit and the mark does not move when the pencil is clicked.
    • Present or absent, with no encoding of distance. A segment-per-rung mark was built first and refused on its own frames: its width was driven by how deep that corner of the estate happens to nest (8px at two rungs, 28px at six, the same object in the design’s mind and a different one on screen), and three marks encoding one chain never lined up, because each trailed a label of a different length. Distance lives in the hover. The full CHAIN stays a follow-on that needs the server to serve it, since inherited_*_source names the winning ancestor and nothing between, and filling the gap in the browser is the climb #695 deleted.
    • A hover-only fact is unreachable, so the dot is not one. The trigger is a button, so it is a tab stop that opens on focus, and the whole fact is in its accessible name (Stem is inherited from mic) rather than only in the tooltip, because a hover has no keyboard and no touch equivalent.
    • The mark and the hint cannot disagree, including mid-keystroke. The spike caught the dot vanishing live as the operator typed, before any save, while the hint under the box still promised the inheritance in the present tense. Both answers now come from one predicate over one string, the text the field is currently showing, which the field primitive supplies (the persisted value while reading, the draft while editing), so the keystroke that empties a box moves both at once.
    • The mark is threaded as DATA, never as an element. A JSX.Element in a prop compiles to a getter, so it is rebuilt whenever anything that getter reads notifies; a mark derived from a query is then replaced under the pointer on every refetch, and a createMemo over the derived value is not a fix, since the array it tracks is rebuilt equal-but-new. The primitives take the ancestor’s NAME and build the mark themselves, which is the same shape FieldRow already had for the (i).
  • Amended again, same wave (#742): the hint stops restating the mark, and keeps the one sentence the mark cannot say. The amendment above left the field saying the relation twice while the box was empty: the dot beside the label, and Inherited from <ancestor>. appended to the hint, one fact in one field at one instant. The appended clause comes out. What stays is its conditional twin, Empty inherits from <ancestor>., which the field shows only while the box HOLDS a value, and that asymmetry is the point rather than an oversight. In that state there is no dot (the row states this value) and no visible placeholder (the box is not empty), so the sentence is the only thing that tells an operator emptying the box returns the field to inheriting, and the only thing that names what it would inherit. The first sentence described a state the mark already shows; the second describes an action nothing else offers, and deleting both would leave the console with no route back to inheriting. The two therefore take turns, off the same single predicate: exactly one of the dot and the sentence is on screen in any state, and the keystroke that empties the box swaps them. The CREATE forms keep their own Leave blank to inherit hints, since neither the dot nor InheritedField reaches a row that does not exist yet.
  • Amended a third time (#743): the LIST shows the value, and the mark is a blade and detail affordance only. Everything above shipped on the blade alone, so the console’s two surfaces contradicted each other about one fact two clicks apart: the Stem and Abbrev cells rendered an em dash on exactly the rows whose blade showed the value they inherit. Those cells now render the value the row takes, through one InheritedCell primitive shared by both registries. Nothing is fetched for it, since inherited_* already rides the listing that is also the blade’s read.
    • The value, undifferentiated: no mark belongs in a table row. A table is for SCANNING values, and the blade is where a value’s ORIGIN is explained. Those are two jobs, and the surface that does the first is not improved by being made to do the second: a reader running down the Stem column is answering “what is this type’s stem”, and every row that also answered “and whose is it” would be charging that reader for a question they did not ask. So a cell states the value and stops. The placement rule above (beside the label, in a field) is therefore not extended to tables at all, rather than being re-derived for them: it has no list case, because there is no list mark to place.
    • A stated value and an inherited one render IDENTICALLY. That is the treatment, not a consequence of dropping the mark, and it is asserted rather than left to be noticed. It also settles the dimming question in the same breath: every value in these columns is muted already (text-base-content/60), and nothing distinguishes them further.
    • The Icon cell is the precedent the other two now MATCH. It has rendered resolved_icon since #695 with no distinction at all, and that was read as the odd column out while this amendment was being drafted the other way round. It is the house treatment for a table. Stem and Abbrev join it, and the Icon column changes only in that its fallback chain now lives in the shared cell.
    • The em dash keeps its one meaning. A row that states nothing with nothing above it still reads as an em dash, because deleting it outright would be this defect pointed the other way, a cell asserting a value that does not exist.
    • What this closes. The tab-stop and duplicate-accessible-name questions a list mark would have raised (up to three focusable marks per inheriting row, in a table body with no other tab stop, and one accessible name repeated down a column) do not arise: there is no mark in a row to raise them.
  • The ancestor is read, never described. Both affordances that name it, the mark and the conditional hint, name the row the value actually came from rather than saying “its parent”, because a grandchild whose parent states no stem takes its grandparent’s, and an operator told to change “its parent” would edit the wrong row. It is per FACT rather than per row for the same reason: one type can take its stem from a grandparent and its abbrev from its parent, which the e2e fixture is built to exhibit.
  • Nothing is derived in the browser. #695 deleted lib/typechain.ts and #702 and #710 each refused to reintroduce a client-side walk; the two facts with no served answer were the reason a blade could not show this at all, so the read model grew rather than the console. The web fixtures seed inherited values no client-side climb could produce, so a console that derived them would fail.
  • What it cost, measured. #695’s report established that the listing is a single unfiltered whole-registry select; that its blade READ is the same query is a separate fact, and it holds because useComponentTypeRow finds its row in the listing rather than fetching one. TestListComponentTypesCostIsFlatInRegistryDepth grows the registry twenty levels deeper, the dimension a per-level query would charge for, and pins the read at one statement, the same number the seeded registry costs.
  • location_type takes none of it. It is flat (no parent link) and carries no stem or abbrev column at all, so it has no inherited fact to show. It gains only the vocabulary change below.
  • “Restore shipped” becomes “Restore default”. The blade’s destructive slot on a forked shipped row named the thing being restored FROM rather than the thing being restored TO, and diverged from the console’s own restore vocabulary (Settings and the pen both say default, per ADR-0104’s #657 amendment). Both registries that offer it move, with the operator guide; the term is added to the internal/docslint denylist, and the two historical records the denylist already allowlists (decisions.md, build-log.md) keep the wording that was true on the day they were written.
  • Found by #716’s own review: the clear it shipped is what made the empty box reachable on purpose, and an empty box that says nothing is a capability that teaches the operator nothing.

ADR-0116: A refusal picks its status from the difference between two scopes

Section titled “ADR-0116: A refusal picks its status from the difference between two scopes”
  • Date: 2026-08-14 | Status: Accepted | Pages: identity and access
  • Decision: A targeted mutation resolves its target twice: within the caller’s <resource>:read scope, then within the action’s own scope. Outside the read scope the answer is the non-disclosing 404 it always was. Inside the read scope and outside the action scope the answer is 403. The status is the difference between the two sets, not a property of either one.
  • Why acknowledging existence here discloses nothing. The caller can GET the row. A 403 that says “you may not do that here” hands them a fact they already hold, while the 404 it replaces makes a claim about existence that the same caller can immediately disprove with a read. That is worse than uninformative: an operator looking straight at a component in the console, told it does not exist, reads it as a broken platform and files a bug against the wrong thing, which is exactly what #728 did.
  • The condition, which is not a convention. The read set each route passes must be the caller’s own <resource>:read. The 403 names a row, so it may only ever be reached by a caller who could have read that row anyway; a route that checked a wider set (the action’s own, a neighbouring tier’s, a convenient all-scope) would disclose the existence of a row to somebody holding no grant to see it, which is the precise leak the non-disclosing 404 exists to prevent. This is the one thing to check when adopting the split on a new route.
  • Adoption of an existing primitive, not a new one. resolveScoped has made this split for the three tree entities’ own CRUD since it was written. What answered 404 for the readable case was the seventeen routes that hang off a tree entity and resolve it as their target: property set and clear on component, system and location; system membership add, remove and setPrimary; system role declare, withdraw, assign, unassign and swapPositions; component alarm raise, clear and acknowledge. Each now routes through the same primitive, via an owner-generic seam (resolveTargetID, exported as ResolveActionTarget) for the ones whose gateway write takes no scope of its own. A second refusal helper would have been the failure mode, and is not present.
  • Two carve-outs, both deliberate. A CROSS-TIER placement reference keeps the non-disclosing not-found through resolvePlacementRef: a 403 separating “no such location” from “a location you may not see” is the disclosure this whole model closes, one tier up (ADR-0107). And the estate-wide resources (principal, principal_group, the tag registry, node) are all-or-nothing: they require an all scope and already answer 403, so there is no readable-but-not-actionable state for them to describe.
  • Proved per route, not per entity. The authz conformance matrix’s registry gains a per-entity list of the routes that hang off it, and drives all three branches through each. Per entity would not have done: the routes are not uniform across the registry (properties on all three tiers, membership and roles only on system, alarms only on component), so an entity-level assertion would have left twelve of the seventeen unproved.
  • Corrected on the way through. The identity-access page explained the gap with “every scoped route resolves its target through the gateway with the action’s own scope”, which was already false when it was written: the tree CRUD split, and the matrix asserted it. The page now says the narrower true thing.
  • Not in scope, and filed: POST /components/{name}/commands:issue fences its WRITE with component:read (#749), and the node placement bind’s coverage gap stays open (#750). Neither is a status question, and folding either into an adoption sweep would have buried a security change inside it.

ADR-0117: An actuation is fenced by the permission that authorizes it

Section titled “ADR-0117: An actuation is fenced by the permission that authorizes it”
  • Date: 2026-08-14 | Status: Accepted | Pages: identity and access, commands
  • Decision: POST /components/{name}/commands:issue resolves its target with visible_set(P, command, issue) as the action half and the caller’s own component:read as the read half, through the same ResolveActionTarget split as the acknowledgement (ADR-0116). It used to resolve all three of its gateway calls with component:read, so the set that fenced the write was the caller’s read set and the issue grant narrowed nothing.
  • Why this one is not a status question. Every route ADR-0116 touched was answering the wrong REFUSAL. This one was answering the wrong REQUEST: a principal holding viewer @ all beside a room-scoped operator grant could issue commands to every component in the estate, and a command records an intent a driver acts on. The blast radius is a device doing something, not a row being named. That is why it shipped on its own rather than inside the sweep.
  • command becomes a component-tier resource, and that is the load-bearing half. The resource was not in the scope resolver’s applicableKinds at all, so it fell to the default: only an all-scoped grant resolved to anything, and every scoped grant resolved to the empty set. Fencing on that set without registering the resource would have denied every scoped issuer rather than fencing them, which is a worse outcome than the bug. It joins the component tier beside alarm, for the same reason and with the same shape: a command is issued TO a component, and it resolves from grants carrying command:issue so that a wide component read cannot widen what may be commanded, and a component-update grant is not what decides who may command.
  • The component tier alone, not the three-tier arc. The command table’s owner columns allow any exclusive-arc owner, but the only route that issues one addresses a component. Admitting location or system here would put roots in the set that a component’s own ancestor chain can never match (the tier mismatch resolvePlacementRef records) while telling scope.Covers that a command scope may be checked against those tables. A route that issues to another tier adds that tier, with a test.
  • Consequence, stated rather than discovered later. A principal whose only command:issue grant sits at the location or system tier can no longer issue anything. That is the same tier rule alarm:acknowledge already lives under (ADR-0109, #714): such a grant reaches no component, so it could not update, read, or acknowledge one either, and being able to command one was the anomaly. It resolves when a grant’s scope can span tiers, not before.
  • Resolved once, bound by id. IssueCommand and CommandSettlement take the resolved id and no scope. The fence on an actuation is a read-versus-issue split rather than a single set, so it cannot be applied from one parameter inside a gateway write; a set re-checked there on an already-resolved row could only re-answer the settled question or disagree with it. It also removes two of the route’s three name resolves, and a path with one resolve cannot have a second that lands on a different row (ruling 2, #627). The scope check moves out of the write’s transaction, which is the one thing given up: at READ COMMITTED an in-transaction guard never closed that window either, it only narrowed it.
  • Proved in the conformance matrix, not beside it, so the mixed principal (readable, outside the action scope) drives the route automatically. The RED was not a wrong status: it was a 200 with a recorded invocation on a component outside the caller’s issue scope.

ADR-0118: The friendly string an operator reads is a label, and unset is SQL NULL

Section titled “ADR-0118: The friendly string an operator reads is a label, and unset is SQL NULL”
  • Date: 2026-08-14 | Status: Accepted | Pages: core entities, storage, the API, identity and access, glossary, design system
  • Decision: display_name becomes label on all twenty-three tables that carry it, and the pen beside it becomes label_generated on the three that carry one. The column is nullable, and unset is SQL NULL and nothing else, enforced in Go at the gateway write path rather than by a constraint. Breaking wire change: the JSON field, the CLI flag (--display-name becomes --label), and the console’s field label move with it. The wire itself keeps a plain string, because every read projection coalesces.
  • The rename finishes a word rather than introducing one. When it was first proposed, “label” was a candidate. It is now the system’s vocabulary everywhere except the column it named: internal/label/ is the rule engine (ADR-0098), label_rule is a column on five tables plus a table of its own, the API says :renderLabel, :previewLabels and :recomputeLabels, and forty console files say entityLabel, labelPen or labelGenerated. Until this decision a route called :recomputeLabels wrote a column called display_name, and the console’s labelGenerated read display_name_generated.
  • The pen renames in the same sweep or not at all. display_name_generated (#657) is what answers “did an operator type this, or did the platform render it from a rule”. Slice 2 of that epic deferred its naming here on exactly these grounds. It stays NOT NULL DEFAULT false: it answers a different question, and there is no third state for it to hold.
  • Nullable, and the argument is the useful part. This slice first shipped the opposite, NOT NULL DEFAULT '', and reversed it before merge on the strength of its own diff. The evidence was in the code the floor forced: every one of the seven registry orderings had to be spelled order by nullif(label, '') nulls last, name. A nullif in a read is the read path converting the stored representation back into the one it wanted, and seven of them in a single slice is not a coincidence, it is the schema telling you which value it should have stored. Postgres already has a value for “there is nothing here”, nulls last is already the default for an ASC sort, and the orderings collapse to order by label nulls last, name the moment the column can hold it. The same test that made the ordering hazard visible stayed red through the reversal and green after it, against the new spelling, rather than being assumed equivalent.
  • The argument FOR the floor had a hole, and it is worth recording because it is the kind that recurs. It ran: collapsing “unset” on a nullable column needs a CHECK, and #570 is already filed against that pattern, therefore the empty string. But this repository puts that class of rule in Go at the gateway write path, which is exactly where ADR-0110 had just moved principal_label out of the database. Once the normalization is in Go it can map empty to NULL as cheaply as to '', so the choice was never “a CHECK or the empty string”: the premise smuggled in the assumption that the rule had to live in the schema.
  • What makes NULL the ONLY spelling is the Go half, not the migration. The migration drops the defaults and converts the rows that exist; on its own that trades one two-state mess for another the first time a write binds "". labelOrNull and labelPatch (internal/storage/label_unset.go) are the one place the decision is applied: they trim, and an empty result is NULL. Every write path binds through them, and a behavioural sweep drives each of those paths with a whitespace-only label and reads the RAW column back, because every projection coalesces and would report NULL and '' as identical. It is complete by construction: a labelled table with neither a prover nor a declared reason fails the suite. That completeness is not decoration. It caught CreateStandard still binding its label raw after every other path had been converted, and it caught it as an ordering failure two registries away from the defect.
  • A PATCH needs two parameters, and that is where the empty string still means something. Clearing a label and leaving it alone are different instructions that both arrive as SQL NULL, so coalesce($n, label) cannot express them. Each statement now carries a set flag beside the value, appended to the parameter list so no existing placeholder is renumbered. The empty string keeps its wire meaning (“clear it”, the house convention ADR-0114 settled for every other nullable string); what changed is that it is translated in Go rather than stored.
  • The read side keeps a plain Go string. Every read struct’s Label is a string and every patch struct’s is a *string, checked by enumerating the declarations rather than assumed, so every read projection is coalesce(label, '') and nothing above the gateway learns that the column is nullable. That is why this reversal moves no generated artifact except the schema facts: the OpenAPI, the typed client and the CLI are unchanged. One trap in doing it: a coalesce inside a CTE drops the output column’s NAME, so the two that feed a named reference downstream are spelled coalesce(r.label, '') as label.
  • The load-bearing consequence is still the ORDERING, and it was already broken before either spelling. All seven registry orderings read this column, and all seven of those tables were storing '' for unset, so all seven already floated unlabelled rows to the TOP of the picker. They are order by label nulls last, name now. nulls last is redundant on an ASC sort and written anyway, because it is the half that is a decision rather than a default. The two shadow-resolved registries resolve on the presence of the jsonb key rather than with a coalesce, so a fork that CLEARED its label sorts at the end with the other unlabelled rows instead of under the official row’s label. The console re-sorts every registry list client-side, so the rule is written twice and both halves are pinned: byLabel in web/src/lib/entities.ts.
  • stem and abbrev are deliberately NOT swept. Their NULL means inherit from the nearest ancestor that sets one (ADR-0114), a third state with real content, and it is a different question from whether a row has a label.
  • One place the old word survived as DATA rather than as an identifier. registry_shadow.image is an operator’s forked copy of a shipped registry row, stored as jsonb keyed by column name, and a column rename cannot reach inside a jsonb value. An operator who had relabelled a forked component_type or location_type would have had that relabelling silently ignored the moment the gateway started asking for image->>'label'. A cleared label survives there as a PRESENT key holding JSON null, never as a dropped key: dropping it would re-inherit the official row’s label, which is the opposite of what an operator who cleared it asked for. audit_log.old / audit_log.new are deliberately left alone: they record what a row looked like under the field names it had at the time, and rewriting them would falsify the record.
  • The word now collides with the console’s own label, and two source guards were re-anchored rather than suppressed. label was already the name of the prop a Button, an InfoTip, an InlineActions row, a nav item and a facet chip take, so the one-renderer guard’s patterns matched eleven pieces of ordinary UI chrome the day the column moved. The fallback pattern now excludes the exact read props.label and nothing wider (a component handed an entity reads props.entity.label, which still matches), and the interpolation pattern is anchored to an identifier read on the same line, which is the shape of the search-haystack bug it exists for. “Display name” joins “Technical name” and “Segment” on the console’s retired-word list, and display_name, --display-name and the two-word noun join the docs denylist.

ADR-0119: A table an operator names carries a label, or declares why it does not

Section titled “ADR-0119: A table an operator names carries a label, or declares why it does not”
  • Date: 2026-08-14 | Status: Accepted | Pages: core entities, tags, config, secrets, and variables, data collection, storage
  • Decision: TableIdentity gains NoLabel, the declared reason a table an operator names carries no label. Empty means it carries one. A guard checks that against the generated schema facts in both directions, and a table nobody names (ShapeIDOnly, ShapeFixedKey) must carry no label at all. tag, variable, secret and interface gain the column through the full slice.

The declaration is the fix; the four columns are the consequence. Four key-bearing tables had no label, nothing failed, and the omission survived long enough to become an epic. It survived because the declaration was complete about one half of the identity triad and silent about the other: every table has a declared SHAPE, and the guard fails on a table missing from the map, so a new table cannot arrive unclassified. Nothing asked whether the friendly string was there. Writing the new guard against the schema as it stood named exactly the four, which is the evidence that the declaration is load-bearing rather than decorative.

The four were not interchangeable, and the differences are where the work was.

  • tag is the only NAME-addressed one (/tags/{name}), so its proof is that the label and the address do not disturb each other. Its name is fixed at creation and there is no :rename custom method, so the rename half is proved the way this table permits: the update that exists lands on the name it started with, and a governance edit that says nothing about the label leaves it.
  • variable is uuid-addressed, and its collision is not with the address but with the other thing its PATCH carries. The route’s value becomes optional so a label-only edit is expressible; the cost is that a json-typed variable can no longer be set to JSON null through it, an explicit null and an omitted field being the same thing on the wire.
  • secret carries the most projections, so the work was the sweep: the directory (both scope arms), the create and update returns, the audit image, and the per-component cascade. The reveal and the copy carry no identity at all, only the decrypted field map, and that is pinned rather than assumed. A relabel is not a rename, which matters here more than anywhere: the sealed fields are bound to (owner, name, field) as AAD, so the test reveals the secret again afterwards.
  • interface is the strongest case rather than the weakest. Its name is derived from its type, so the label is the ONE identity string an operator types, and it is settable at create because an interface labelled by a following call is unlabelled at the moment it is made. The epic argued this from “three ssh interfaces on one component”, which the schema does not permit: the unique index is (component, name) and the name is the protocol, so the second is a 409. That conflict is now pinned by a test, and the narrower true statement carries the decision anyway, since every SSH interface in the estate reads ssh and nothing says which device role it plays.

Ordering follows the label, and it is a decision that had already gone wrong once. The lists say order by label nulls last, name. nulls last is redundant on an ASC sort and written anyway, because #756 found seven registries already shipping their unlabelled rows at the TOP of the picker, from an order by display_name, name over a column storing the empty string. A new list is guilty until a test says otherwise, and the console’s one comparator (byLabel) is the same rule on the other side of the wire. The two CASCADE projections deliberately keep ordering by NAME: there the name is the cascade key that groups a winner with the candidates it shadows, not a display order.

The exemptions are declared, not remembered. interface_type retires with the interface.type FK, so a column added there would be dropped with the table. file.name is already the label, and a second string would be a second label rather than the identifier a label sits beside. service is a username analogue whose name IS what every surface shows, since principalIdent cannot resolve to something optional and non-unique. blob has no operator surface at all. cmd/identitygen renders these into the docs, so the published list is generated rather than hand-kept, and LabelledTables() makes the declaration the only copy of the list that the schema guard and the unset-label sweep read.

What is deliberately not here. No backfill: existing rows come out unset and every surface renders their name verbatim, never re-cased or prettified, which is the contract this epic was corrected on twice. No uniqueness, no pattern, no reserved words, and a 200-character ceiling, which is what makes it a label rather than a second identifier. Nothing derives a name from a label on the interface create form, since that name is the platform’s to mint.

  • Date: 2026-08-14 | Status: Accepted | Pages: ui
  • Decision: ?edit=1 beside a detail address (or beside a blade’s id param, ?u=<id>&edit=1) is how the console expresses edit mode: a deep link or a refresh lands the edit face directly (behind the same <resource>:update the footer Edit is behind; without it the link lands read-only), leaving edit strips the param via history replace, and the create-as-route and row-pencil handoffs are that URL rather than a signal. The one-shot in-memory handoffs (web/src/lib/pendingedit.ts, openPrincipalInEdit) are retired; one hook (web/src/lib/editurl.ts) owns both directions. The name-to-uuid redirect keeps its query string, so a name-shaped edit link survives resolution.
  • Context: The mode was reachable only through an in-memory one-shot set just before a navigate, so no URL could express “this entity, editing”: a refresh mid-edit fell out of edit, Back behaved arbitrarily, and the docs screenshot pipeline (which declares shots as URLs) could not capture an edit face without click choreography (#758). The param is a consume-once intent rather than a state the mode derives from, because deriving would re-enter edit in the gap between Cancel’s mode flip and the strip; a blade honors the param only when the URL also names it (?u=<id> matching), so a stale param cannot flip a blade merely clicked open. The groups blade keeps its own one-shot (openGroupInEdit) for now and adopts the param when it gains an id deep link of its own (#758 leaves it out of scope).

ADR-0121: The console ships its own typefaces

Section titled “ADR-0121: The console ships its own typefaces”
  • Date: 2026-08-15 | Status: Accepted | Pages: design system, UI
  • Decision: The console serves both of its typefaces, IBM Plex Sans (UI) and JetBrains Mono (data), from its own origin. The woff2 files are vendored under web/public/fonts/, which Vite copies verbatim into the build internal/webui/spa_embed.go embeds, so the faces travel inside the single binary and are served by it; web/src/fonts.css declares them and is generated by web/scripts/vendor-fonts.mjs from the same request the console used to make. index.html links no stylesheet and preconnects to no host off this origin, and a guard test (web/src/font-hosting-guard.test.ts) fails the suite if one comes back. Three sub-decisions ride with it. Every script the CDN served is vendored, not a latin subset: latin, latin-ext, cyrillic, cyrillic-ext, greek and vietnamese, 54 files and 1,005,028 bytes, so no operator-supplied string (a location name, a label, a principal name) renders differently than it did before, and unicode-range keeps the per-script split so a latin page still fetches only the latin file. A codepoint no block covers falls through to the next family in --og-font-ui / --og-font-data and renders in the platform face, which is what already happened for every script these families do not carry. font-display: block replaces swap: same-origin and embedded, the block period costs nothing measurable, and block is the only value that cannot paint fallback metrics (optional can keep them for the life of the page). The capture refuses to photograph a fallback render: web/e2e/fontguard.mjs asserts per shot that every face is declared and that both families rendered from their own files, aborting otherwise.
  • Context: The console linked fonts.googleapis.com with display=swap, so it painted in fallback metrics until a third-party fetch completed. Two costs, one cause. An estate on a closed campus or AV network, the deployment this product targets, never completes that fetch and renders the console in the wrong face permanently, having also disclosed each viewer to a third party. And the docs capture opens a new browser context per shot, so every shot re-raced the CDN: on 3b16b325 two of ten shots lost, were written anyway, and failed the zero-tolerance freshness gate as UI drift on a PR that changed no UI, turning main red. The measurement that named it: the two failing shots differed in the same 3,806 and 456 pixels of the shared sidebar, and the differing pixels were 20,955 greyscale glyph edges against 1,405 colourful, which is text metrics rather than content (#775). Waiting on document.fonts.ready before the shutter was the cheaper fix and was rejected: it greens the gate while leaving the console unable to render correctly where it is deployed, which is the more expensive half of the same defect. DOCS_SHOTS_PROXY, the egress-proxy escape hatch that existed for capture hosts that could not reach the CDN, retires with the dependency it worked around (it had been inert since the capture moved into a container that never received it). The screenshots recaptured byte-identical, which is the check on the vendoring: the files served are the same faces at the same version the browser had been fetching, so this changed no pixel of the console.

ADR-0122: A commissioning gap is not a failure, so the verdict domain gains incomplete

Section titled “ADR-0122: A commissioning gap is not a failure, so the verdict domain gains incomplete”
  • Date: 2026-08-09 | Status: Accepted | Pages: health, glossary
  • Decision: the verdict domain becomes healthy < incomplete < degraded < outage. A role short of quorum because its assigned hardware is failing contributes its declared impact, unchanged; a role short because the hardware was never installed contributes incomplete. A role that is both reads its impact, the worse of the two by rank. A role declaring impact: none reads healthy when empty rather than incomplete, because a slot whose failure does not matter has an absence that does not matter either. A role inside a choice whose alternate did not win contributes nothing at all, incomplete included. No migration: the enum lives in internal/health and the value persists as a string, so the only storage-side change is the health property type’s seeded validation.enum, which is boot-seed reference data. Amends ADR-0050’s three-value domain; its transition-only recording, pure-package judgement, and worst-wins rollup stand unrevised.
  • Context: the estate canvas (#630) paints one dot per component across the whole estate, and it was the surface that made the three-value domain untenable. Most of a real estate is mid-commissioning for months, and under the old rule every unstaffed role contributed its declared impact, so a half-built site rendered as a wall of red indistinguishable from a site on fire. A colour an operator learns to ignore is worse than no colour. Ranking the new value between healthy and degraded is what makes it useful in both directions: a gap is visible above a finished room and invisible beneath anything actually broken, so neither reading is drowned by the other. The impact: none carve-out came out of the existing suite rather than the design: TestImpactMapping and TestSystemVerdictWorstWins both asserted that an unstaffed harmless role stays harmless, and they were right, since reporting a gap there would put a permanent incomplete on every confidence monitor nobody ever intends to staff, reintroducing the saturation this decision exists to remove. Rejected: a separate non-health field for commissioning state (two axes to roll up, two badges to reconcile, and the estate view would have to render both to answer one question); and reusing unknown, which already means “no health has been read” and would conflate never-measured with never-installed.
  • Tracked under epic #630, slice #631.

ADR-0123: The word for everything an install manages is fleet

Section titled “ADR-0123: The word for everything an install manages is fleet”
  • Date: 2026-08-14 | Status: Accepted | Pages: glossary, ui, health, identity and access
  • Decision: the totality an install manages is a fleet: the systems are the fleet’s units, the components staff them, and the location tree is the geography they are stationed across. The rename is all-in, in one sweep: Go identifiers (FleetProjection, FleetView), the view route (/views/fleet), the console surface and its nav entry, docs prose, the glossary, and the scope grammar (fleet-wide). The old noun joins the docs denylist; the decision log and build log keep it as the historical record they are.
  • Context: the product’s differentiation is the SYSTEM model: every competitor manages rooms or devices, and none can say “a fleet of systems” because none has one. A fleet is uniform units maintained at scale against a type, which is exactly a standard-conforming system: standard as airframe type, system as tail number, slots as parts, verdict as maintenance state, location as base. The old word was accurate and industry-anchored (UK/enterprise IT usage) but reads as property and governance rather than operation, and the surface being named is operated daily. Two costs are accepted with eyes open: in observability vocabulary a fleet often means the COLLECTOR fleet (Elastic Fleet, Datadog Fleet Automation), so the word will occasionally be misread as node management; and the noun names the units better than the buildings, which the location tree keeps first-class regardless. Surface-only renaming (a fresh label over the old domain word) was rejected as a permanent translation tax between nav, glossary, and API vocabulary.
  • Tracked under epic #630, ahead of slice #633.

ADR-0124: On the fleet canvas, health colour is exceptional and identity colour is the ground

Section titled “ADR-0124: On the fleet canvas, health colour is exceptional and identity colour is the ground”
  • Date: 2026-08-15 | Status: Superseded (2026-08-16, by the amendment below) | Pages: ui, health
  • Amendment (2026-08-16): reversed for operator clarity, on the architect’s review of the shipped canvas against the design it was built from. A dot’s colour is its component’s verdict and nothing else (one channel, one meaning; a healthy dot is green), and the system’s verdict rides the cluster outline, neutral when healthy and tinted when not, which is what the design’s per-system card border was. Identity hue was this decision’s own invention, not the design’s, and it made a colour mean two things. A side effect: the canvas raster is now deterministic per seed, so the screenshot gate no longer masks it. hueFor stays for the surfaces that use it as identity (list rows, health panels).
  • Decision: a healthy component dot wears its system’s identity hue, through the exact recipe the DOM’s .og-system-dot already uses (oklch(var(--tag-l) var(--tag-c) <hueFor>)), so a canvas dot and a DOM dot can never drift. Incomplete, degraded and outage dots wear the semantic verdict colours (--og-incomplete, --color-warning, --color-error); a verdict the console cannot narrow wears --og-unknown and never a substituted word. hueFor’s reserved OKLCH bands already guarantee an identity hue cannot land inside a status band, which is the invariant that makes the mixture legible.
  • Context: the slice inherited a contradiction: “coloured by state” beside “takes its hue from system_color”, and the prototype resolved it a third way (no per-system hue at all). Ruled during definition true-up: a healthy fleet should read as identity-coloured wallpaper with the clusters telling themselves apart, and anything not healthy should be the only status-coloured pixels on screen, which is what makes a failure pop at fleet scale. The paint plan (paintGroups) pins the rule at the unit tier per group, not per pixel.
  • Tracked under epic #630, slice #633.

ADR-0125: A band shows the location’s recorded verdict, not the console’s fold

Section titled “ADR-0125: A band shows the location’s recorded verdict, not the console’s fold”
  • Date: 2026-08-15 | Status: Accepted | Pages: ui, health
  • Decision: a fleet band’s verdict chip renders FleetLocationBody.verdict, the location’s own server-recorded row, resolved through the grouping’s optional recordedVerdict seam. The console’s fold over in-scope clusters (Band.verdict, worst-wins) stays available, named for what it is, and no chip renders it.
  • Context: the band navigates to /locations/{id}, whose badge reads the same recorded row; a band that says healthy beside a detail page that says outage, one click apart, is a visible contradiction. The fold also covers only the clusters the caller may read, so under a narrow scope it is not the location’s verdict at all. The console-computes-no-verdict rule (web/src/lib/health.ts) already pointed here; this records the band as a consumer of it.
  • Tracked under epic #630, slice #633.

ADR-0126: The zoom face is a URL fact on the identity routes

Section titled “ADR-0126: The zoom face is a URL fact on the identity routes”
  • Date: 2026-08-15 | Status: Accepted | Pages: ui
  • Decision: the location, system and component zooms render at the identity routes the epic already ruled (/locations/{id}, /systems/{id}, /components/{id}) behind a query param (?zoom=1), with the inventory detail remaining each route’s default face. A fleet-canvas drill carries the param; deep links, refresh and the back button behave as ADR-0120 established for the edit face, which is this decision’s precedent verbatim.
  • Context: the epic ruled both “the zoom is a function of which entity the URL names” and “the four tables stay live and untouched while the medium is explored”, and the two collided at one address: the inventory detail owns /locations/{id} today. The architect’s ruling (2026-08-15): the zoom was originally intended to replace the old views, and the param is the right first step; it may become the default later, with the table face retiring entirely once the medium is judged. Rejected: a location param under /fleet (a second address for the same row, which the epic forbids) and replacing the detail now (falsifies the tables-stay ruling mid-exploration).
  • Tracked under epic #630, ahead of slice #635.

ADR-0127: Operator surfaces carry tooltips, not prose, and the system body goes components-first

Section titled “ADR-0127: Operator surfaces carry tooltips, not prose, and the system body goes components-first”
  • Date: 2026-08-20 | Status: Accepted | Pages: ui, design system
  • Decision: Two console rules, ruled together on the system zoom review. First, an operator surface carries no inline explanatory prose: every explainer rides its label’s (i) tooltip (InfoTip; Eyebrow is the section form), and the standard-editor’s vocabulary (choices, alternates, accepted types) never leads an operator view. Second, the system body’s unit is the COMPONENT, its role a badge on the card; role-level chrome renders only where it says something a badge cannot (quorum beyond one, a shortfall, an unstaffed role), because the overwhelmingly common room is one role to one occupant, and a box around a single card is chrome without information.
  • Context: The zoom pages shipped with teaching paragraphs inline (the history strip’s pedagogy, per-role arithmetic on healthy 1:1 roles, “built as all-in-one”) and one card per role. Reviewing the built page, the architect ruled the prose buries the operator’s read (“this is an operator’s view”) and the role-shaped body misrepresents the fleet’s common case. The pedagogy doctrine is satisfied by hover; #784 tracks sweeping the remaining surfaces onto the same rule.

ADR-0128: The standard declares the room map, normalized and display-only

Section titled “ADR-0128: The standard declares the room map, normalized and display-only”
  • Date: 2026-08-20 | Status: Accepted | Pages: storage, ui
  • Decision: A standard may declare a room map: one jsonb value (map on standard) holding an aspect ratio and one normalized position per role position ({role, position, x, y}, coordinates in [0, 1], positions 1-based to match position_labels). Data, not code: every system conforming to the standard renders the same room for free, the join of “where this position sits” and “who holds it” made client-side from the health read. Validated in Go on write (positive aspect, bounds, no duplicate pair); a JSON null clears it; nothing queries into the blob, which is why it is a value and not a table. Render-only in v1: authored through the standard PATCH (or seed YAML), the visual editor deliberately out.
  • Context: The system workspace epic (#788) ruled a top-down room view onto the system zoom (“Mic 1 · Shure MXA910” at its wall position, live status on each marker). The map is a property of the DESIGN, not of one room, so it lives on the standard, the same data-not-code guardrail the driver arc carries; a relational table per position would buy queryability nothing displays and cost a migration per shape change.

ADR-0129: The zoom face becomes the identity routes’ default; one way to look

Section titled “ADR-0129: The zoom face becomes the identity routes’ default; one way to look”
  • Date: 2026-08-21 | Status: Accepted | Pages: ui
  • Decision: The fleet faces stop being a query-param variant: /locations/{id}, /systems/{id}, and /components/{id} render the zoom, workspace, and leaf by default, and ?zoom=1 is tolerated but no longer written. The classic detail face survives at ?view=detail (and under a legacy ?edit=1) solely because editing still lives there; it retires when edit-in-blade lands. The reconciliation’s target, ruled with this: one altitude rule (locations drill, systems open full screen, components open in a blade that can expand to its route), every entity edits in its blade, flat tables survive as a list-density toggle for bulk work, and the parallel inventory faces go away.
  • Context: ADR-0126 parked the zoom behind a param precisely so the table faces could stay alive until the medium was judged. Judged: the console had become two products (an inventory world that edits and a fleet world that observes), with browse, detail, and edit each existing twice. The architect ruled the merge on the #795 review; this entry flips the default (stage 1), and the remaining stages (entity blades, edit-in-blade, operate absorption, classic retirement) follow as their own body of work.

ADR-0130: Lists that promise write order order by a DB-assigned sequence

Section titled “ADR-0130: Lists that promise write order order by a DB-assigned sequence”
  • Date: 2026-08-21 | Status: Accepted | Pages: storage
  • Decision: A read whose contract is “in the order it was written” orders by a bigint generated always as identity column the database assigns at insert, never by created_at (or any now() stamp) and never by a uuidv7 id. audit_log and principal gain the column (db/migrations/20260821220000_write_sequence.sql); the audit trail orders by seq desc and the principal directory by kind, seq. Remaining clock-ordered reads (the health ledger’s id-ordered history, ts-ordered event, log, and sample reads) are tracked by #801 and convert the same way when touched.
  • Context: The #780 screenshot-gate flaps (the audit page interleave, the users directory row swap) resisted three ordering fixes because every candidate key was secretly the same key: now() and uuidv7 both read the wall clock, and on a loaded WSL2 host the clock is not monotonic; NTP correction steps it several seconds mid-run, so stamps taken by different transactions invert relative to true write order. A six-run probe caught a fixture user stamped 5.6 seconds after a row its own process wrote later. An identity column is allocated by the database in insert order and no clock touches it; regression tests simulate the step by rewriting committed rows’ clock keys and asserting the lists hold.

ADR-0131: The device taxonomy is OAVC, and the demo catalog is fictional

Section titled “ADR-0131: The device taxonomy is OAVC, and the demo catalog is fictional”
  • Date: 2026-08-24 | Status: Accepted | Pages: core-entities, storage
  • Decision: The component_type registry mirrors the OpenAVCloud AV Device Taxonomy v1.1: its high-level categories are the tree’s roots, its subcategories the types, and the concrete classes a standard’s slot names the leaves. Microphone subtypes are arranged by FORM FACTOR (ceiling, wireless, gooseneck, boundary), never by inner technology (beamforming is a capability, not a device kind); dante-card sits under dsp. The seed catalog becomes fictional: vendors and SKUs come from the omniglass-lab brand universe (Boreal, Kestrel, Lyra, Meridian, Newtron, Polaris, Shinra Cloud, Tessellate), with the AV-iQ product database as the shape-realism source, because the demo fleet is not sponsored. Standards are written the way an integrator writes room standards: a room type’s full signal chain, size-serialized where the display drives the variant (mr55..mr98 and ds55/ds75 pin the display SKU per variant through parent_standard_id plus pinned_products). A video bar is the ONE all-in-one conferencing appliance at the front of a room, never a microphone and never shared; the divisible pair’s shared component is its DSP and amplifier rack, which replaces the physically impossible shared-bar teaching case.
  • Context: The architect’s review of the #796 seed caught video bars filling microphone roles across the fleet and a “shared bar” serving two rooms, both domain-impossible; the ruling (in chat, 2026-08-24) adopted the OAVC taxonomy for types, fictional lab brands for SKUs, and the integrator-style standards catalog, recorded here and built as #802.

ADR-0132: Configure is the one deep editor

Section titled “ADR-0132: Configure is the one deep editor”
  • Date: 2026-08-25 | Status: Accepted | Pages: ui
  • Decision: Every fleet workspace (system zoom, location zoom, component leaf) carries a Configure tab, and it is the ONE deep editor: identity, classification, placement, the kind’s manage panels, and tags in one savable face. The blade stays a quick face: its label pen and tag adder edit in place, and its other rows are jump anchors into Configure (?tab=configure&edit=1#section). ?edit=1 retargets from the retired edit face to Configure (the ADR-0120 URL-fact rule, new destination); the classic detail face and ?view=detail retire entirely, with an explicit miss face replacing the old not-found and disambiguation pages.
  • Context: ADR-0129 kept the classic face alive “until edit-in-blade lands” and named edit-in-blade as the target. Building it showed two editors (a growing blade and a workspace) would duplicate every manage panel; the #800 ruling (the One Way to Edit float) chose one deep editor in the workspace plus a thin quick face, deliberately diverging from 0129’s recorded target. 0129’s zoom-by-default half stands untouched.

ADR-0133: A select over a loaded collection binds through a ref, not a value prop

Section titled “ADR-0133: A select over a loaded collection binds through a ref, not a value prop”
  • Date: 2026-08-27 | Status: Accepted | Pages: design system, UI
  • Decision: A <select> whose options come from a collection the server answers for carries no value= prop. It takes its value from bindSelectValue(value, ...options) (web/src/lib/selectvalue.ts), used as the element’s ref: the returned callback creates an effect that reads every option source and then assigns el.value, so the value is re-applied on whichever of the two inputs arrives second. The effect is created inside the ref callback, so it belongs to the owner that rendered the control and is disposed with the edit face rather than outliving it, and it runs after the <For> that fills the control because Solid flushes user effects after the render effects that insert the options. The signature requires at least one option source, since a binding that tracks none is the defect itself. Thirteen controls convert, eight of them pickers that carry the fix to every consumer at once: TreeSelect (the parent and owner picker on Locations, Systems, Components, Variables and Secrets), ComponentTypeSelect, SystemTypeSelect, the interface blade’s node picker, the product form’s vendor and driver pickers, the parent-standard picker, and the command-type target picker, which passes both of its catalogs. The other five are page-local: the node placement, and the workspace Configure face’s four (system type, standard, location type, and the location’s parent mover, whose option pool is a memo over two queries and is passed as the tracked source itself). Two shapes are exempt, and the exemption is the decision. A select over a hard-coded or generated option list (a kind enum, a settings field’s enum constraint) has no async gap to lose a value in. A select whose value starts empty and only ever moves because the operator moved it (a create form, an add-or-assign picker) has nothing stored to lose, and the placeholder its fallback would land on is the value it already holds. Thirty-six of the console’s forty-nine select sites are one of those two, so a blanket conversion would have been as wrong as a per-page patch.
  • Context: A native <select> holds no memory of a value it has no <option> for: assign one and the control keeps nothing, and when the options arrive the browser’s selectedness algorithm picks the first one instead, silently. Every face that deep-links into edit has the ingredients, because the stored value is known as soon as the entity resolves while the options come from a separate query. Either order is possible, so the defect presents as a flake rather than a bug, and an operator who saved in that window saved the fallback: on the Configure face’s location type, whose select carries no placeholder option, the fallback is not even empty, it is the first type in the catalog, so the save silently retypes the location. A value= binding cannot answer it. Solid re-runs that binding when the value changes, and in the losing order the value never changes, the options do. Holding the control back behind a <Show> until its collection settles was the alternative and was rejected: it makes every picker on every edit face flicker between a fact and a control on a slow answer, and it would have to be repeated at each of the thirteen sites, which is the per-page patch this decision exists to avoid. It survived until a screenshot gate with no tolerance made it reproducible: the entity-edit-face shot flipped between two location types across captures (ADR-0121 landed the gate that caught it) (#398, #772, #782).

ADR-0134: The entity an API is reached through is an endpoint

Section titled “ADR-0134: The entity an API is reached through is an endpoint”
  • Date: 2026-08-28 | Status: Accepted | Pages: collection, nodes, glossary, API, identity and access
  • Decision: The entity formerly named interface is an endpoint, renamed end to end in one slice (#811, the naming ruling on #603): the table (with the task arc’s column and every constraint code names), the routes (/endpoints, plus GET /transports serving the code registry), the permission nouns (endpoint:*, with existing role arrays rewritten in place), the console surfaces and gate words, the docs corpus, and the canonical interface-reachable datapoint, whose registry row renames in place to endpoint-reachable so every uuid-keyed sample keeps its history. The designed driver-spec field that used to be called endpoint (the probed host[:port]) is address from here on, so the schema never reads endpoint.endpoint; the reachability read already serves it as address. interface and interface_type join the docslint denylist; the decision log and build log keep their historical spellings.
  • Context: The word had to move before the collection epic multiplied its vocabulary (sessions, listeners, and command bindings all hang off this entity), and slice 1 was the lifetime-cheapest carrier since ADR-0073’s transports-become-code was already reshaping the row. The candidates: keeping interface carried the Zabbix host-interface precedent but a growing collision with real network interfaces as monitored objects; service read naturally (the SSH service on a host) but public.service already names the service-principal identity, and one word naming two unrelated entities in one schema is the worse collision; api read well in operator speech but fights the platform’s own API-first vocabulary (internal/api, /api/v1, the generated OpenAPI) in every sentence needing both senses. endpoint is the word the architecture of record already reached for when describing this entity’s address, is observability-native (a scrape endpoint, a monitoring endpoint) and network-native (the SSH endpoint on a host), and composes cleanly (endpoint:*, /endpoints, endpoint-reachable).

ADR-0135: A driver’s spec is data, one engine interprets it

Section titled “ADR-0135: A driver’s spec is data, one engine interprets it”
  • Date: 2026-08-28 | Status: Accepted | Pages: collection, glossary
  • Decision: A driver’s body is a versioned declarative spec (jsonb on the driver row, version: 1, parsed strictly so an unknown field refuses rather than projects) interpreted by one generic engine, never per-driver code: the one transport it rides, typed inputs (string, number, secret with a secret_type, supplied as a reference name and resolved at attach), and three function families: poll functions (schedule, transport-shaped request, per-emit extraction with declared transforms: cast, scale, enum map), listeners (an arm conversation, a match rule, the same extraction), and command bindings (how a command_type actuates). Each emit names its sample in a lane catalog (the ADR-0065 vocabulary: the name is the signal, what lands is a sample). The spec validates against the live catalogs at every write (create, update, boot seed; the seed now installs secret types before drivers so a first boot validates cleanly), so an uninterpretable spec refuses at authoring time with the fault named. Attach derives, never authors: an endpoint created with a driver reference takes its transport and params from the spec, and its tasks derive in the same transaction (a poll task per poll function, a standing listen task per listener), each task carrying its function whole with emit lanes baked at attach, so the node never consults a catalog at runtime. A listener’s arm lines are session plumbing re-sent on every recover (ruling 3 on #603), never recorded command rows: the command lane records operator intent with settlement semantics, and machine chatter would flood it.
  • Context: #813 (epic #603): the driver registry rows existed with no body, and the epic’s produce path needs the menu before the interpreter. Data-not-code keeps every driver inspectable and diffable, keeps validation one function rather than a plugin ABI, and matches the template authoring model (#489) this layer will slot under. The lane bake executes the authoring model’s compile step at the earliest point it exists; transforms stay declared data operations so the expression engine (#524) is not a dependency of the collection path.

ADR-0136: Actuation is a per-node pull, rendered at dispatch

Section titled “ADR-0136: Actuation is a per-node pull, rendered at dispatch”
  • Date: 2026-08-28 | Status: Accepted | Pages: commands, messaging, collection
  • Decision: The command wire (#815) is a pull: a node asks og.v1.command.<node> (request-reply mirroring the worklist, the same reply-inbox confinement and per-node subject grant) and receives the commands whose owning component has a driver-attached endpoint placed on it and whose driver binds the command’s type. The binding’s request template renders server-side at dispatch (${value} the intended value, ${arg.key} an issue param, references validated at spec write), so the node executes a finished instruction and holds no template logic; an unrenderable binding records terminal exec_error instead of redelivering. Delivery is at-least-once: the pull stamps dispatched_at, silence redelivers after an interval, and a delivery TTL bounds the queue (a command no node picks up falls to settlement’s timed-out). Execution is idempotent per command id at the node (a redelivery repeats the report, not the actuation), and the report on og.v1.commandstatus.<node> stamps executed_at once, under the same placement confinement the worklist carries. The report is not the verdict: any device answer counts as actuated, and whether the device did it stays settlement’s judgment of observed (the driver’s polls, #814) against intended.
  • Context: The epic reserved the subject and demanded at-least-once delivery with idempotent execution and per-node isolation. A pull over the existing request-reply grammar reuses the proven worklist confinement and needs no JetStream API grants per node; a durable JetStream per-node consumer remains open as the scale evolution (#430’s topology). Rendering at dispatch keeps secrets and template semantics server-side and makes the delivered payload inspectable; the execution arc (dispatched_at, executed_at, exec_error) lands beside the settlement arc rather than inside it because “the device was told” and “the device did” are different facts, and conflating them is how a wire ack gets mistaken for an outcome.
  • Amended (#1637): the pull stays the delivery guarantee, but a node is to be woken by a server push with a fallback pull rather than pulling on each heartbeat, and to run a command on a bounded command pool through its endpoint’s lane, ahead of scheduled work (#1635, ADR-1637).

ADR-0137: Explore is the fleet’s door, and it is an outline of places

Section titled “ADR-0137: Explore is the fleet’s door, and it is an outline of places”
  • Date: 2026-08-31, rewritten 2026-10-03 | Status: Accepted | Pages: ui, views

  • Decision: The sidebar has one door into the fleet, Explore (/explore), and it draws one thing: an outline of places, the location tree as an ARIA tree with five rules.

    A place wears its system. Operators think of a room as its system; the location is where it sits in the tree. So a place where one system sits carries that system’s standard and verdict on its own row, and its components are directly beneath. A place holding several systems heads a row per system. A component two systems share appears under both, marked with the other; a component in no system sits under its place. Systems and components with no place the caller can read gather under one node, Placed nowhere you can see, so nothing disappears because its place is out of scope.

    A chain of one folds. A place whose only content is one child place folds into it, rendered as the path (Headquarters / West Building), and its add menu offers each place it joins. Depth is never counted: it is the customer’s fact through location_type and allowed_parent_types, and what may be created under a row is read from the same graph, never from a type’s name.

    A collapsed row says what it holds, and counts, never rolls up. It states its contents in the registry’s own type labels (2 buildings, 1 floor, 19 components, Empty), and counts the systems beneath it by verdict in four fixed slots, healthy grey and only trouble in colour. Worst-wins is right for one system’s verdict and wrong for a place standing in for forty: at any realistic failure rate almost every large place holds one outage, so a rolled-up colour saturates and says nothing.

    The filter is a predicate, never a scope. Filtering on live state (verdict, standard, type, product, a name or path fragment, a tag) is exploring, and turns the tree into a flat list of matches that reveal into the tree. Naming subjects to include is choosing a scope, which a dashboard widget owns; so there is no location facet and no saved view. The filter rides the address (?chips=), as does one revealed row (?node=); what is open is the browser’s.

    One door, one shape behind it. One EntityForm per kind renders read or edit wherever the operator meets the entity (side panel, Configure tab; create is the same form empty at /<kind>s/create, with ?under= prefilling placement); every workspace carries three tabs and one counts line with zeros left out. The band canvas (/fleet), the KPI chip rows, the blade’s jump anchors and the per-kind inventory tables retire, and their addresses land on Explore. “Fleet” stays the noun (ADR-0122); the sidebar entry is the verb.

  • Context: The #779 canvas conflated exploring with monitoring (a KPI wall as navigation), and the #800 anchors patched a blade that had diverged from the page instead of restoring the vision that view and edit are one component. #826 replaced both twice before anything shipped. A Miller-column drill fell to a generated fleet of a thousand systems across twelve roots of four tree shapes: it spent a screen on four levels and assumed a uniform depth. A renderer library followed (cards cut at each root’s shallowest repeated container type, bands, a mosaic and a standards matrix, with label and area budgets and saved presets), and its rules were each earned by a render: the first mosaic came out uniformly red, which is where the count-not-rollup rule above comes from. Judged in use it was hard to navigate, confusing, and opinionated: four drawings of one fleet, a cut the operator had to reverse-engineer, and controls that came and went with the renderer. The architect asked for one simple way to see the stack at a glance and drill in as needed (#861). The outline keeps the earned rules (depth is the customer’s, counts over rollups, predicate over scope) and drops everything that asked the operator to choose how to look. Nothing had shipped, so this rewrites the decision in place rather than superseding it. This supersedes ADR-0132’s blade-as-quick-face-with-anchors (its Configure tab survives as the form’s page host) and ADR-0129’s canvas landing (its identity-route default stands: the workspaces are the routes’ faces). The map renderer and component location override are #836; whether a system should be modelled as a facet of its location is #862.

ADR-0138: The autopilot ships a daily slice, and PR review is its approval gate

Section titled “ADR-0138: The autopilot ships a daily slice, and PR review is its approval gate”
  • Date: 2026-09-17 | Status: Accepted | Pages: autopilot, slice workflow, feature loops
  • Decision: A scheduled daily session (the autopilot) selects and ships one thin slice per day. Work is taken in a fixed order: an in-progress loop, an architect-approved definition, an open Bug by board priority, and only then a slice the autopilot scopes for itself. For that last rung the Define gate’s human approval comment is replaced by the architect’s review of the PR: the autopilot files the definition issue in the /define-work shape, marks it Mode: autopilot (ADR-0138), and proceeds; approving and merging the PR is the accept, closing it is the veto. Self-scoping is bounded: anything touching an invariant (the two authorization layers, the migration rules, the audit contract), a breaking API change, or a dependency major still waits for a human approval comment. At most two autopilot PRs stay open (past the cap the day is maintenance), provenance is a marker line in the issue and PR body rather than a new label class, and the autopilot never merges to main.
  • Context: The architect cannot attend daily, and the Define gate assumed presence: with nobody to comment, no branch could ever start, so unattended days shipped nothing. The ship-review already front-loads the veto at the PR (Decisions I need from you; Risk), which makes PR review the natural single touchpoint; the slice gates, /file-bug capture, and the /assess-ui visual gate are what keep a self-scoped slice honest between wake-up and review. The label taxonomy stayed fixed deliberately: an autopilot marker describes provenance, which is neither a subsystem nor an automation trigger, so it rides the body text instead.

ADR-0139: A detail view is one per system, its place a card of context

Section titled “ADR-0139: A detail view is one per system, its place a card of context”
  • Date: 2026-10-05 | Status: Accepted | Pages: UI, design system, core entities, glossary, health
  • Decision: Systems are the unit Omniglass monitors; places are folders and metadata about where; components are the pieces of systems. So a detail view is one per system: the place as a card of context (its type, tags and its own panel), then the system card (verdict, since, standard, size, slot arithmetic only while short) with its Overview, Activity and Configure. A place holding exactly one system has no view of its own: its address lands on the system, query kept, and its place is configured there, in a Place section of the system’s Configure tab with its own Edit (?edit=1 on the place becomes edit=place). A place holding no system, or several, keeps its own subject card with a brief card per system and the outline rooted there. A component’s view carries its place card, marked as its own or as its system’s standing in. The side panel is the glance an operator lands on from a row: verdict, since, why with its severity, the context they came for, then the form’s identity, classification, a location’s parent and tags; the configuration panels (roles, properties and their cascade, reconciliation, interfaces) stay on Configure, which revises ADR-0137’s “the blade is the one form”. The shipped system label rule leads with the place, so a room and its system read as one name; a place holding several systems names each one’s kind after the place (a new SharesLocation fact, its siblings restamped by the create, move or delete that changes the count). Healthy is grey on every health pill, strip and marker, the outline’s rule carried to its edge. There is no counts line above a detail view.
  • Context: The audit for #872 found the workspaces still speaking the idioms the outline retired: a location page that was a band canvas, a room and its system as two views under two names (“Meeting Room” titled under a “Briefing Room” crumb), three frames for one idea, facts said twice (the slots in the counts line and the header, the metrics as tiles and as a table, the history on two tabs), and a panel that was a configuration form. The architect’s ruling on the model was that it is right (locations, systems, components; systems a logical group usually bound to one place) and the orientation was wrong: people care about their systems. This changes presentation and one shipped label default only; whether a system’s place should be stored or derived, and the inheritance of a component’s place from its system (which the UI’s old “location follows the primary system” claimed and the schema does not carry), stay with #862.
  • Amended (#2423): the side panel is no longer the glance. A fleet blade renders its detail page’s own body, every section, tab and action included (ADR-2423); the rest of this decision stands.

ADR-0140: A system is what the business groups, a location is where things sit, and a room is one thing

Section titled “ADR-0140: A system is what the business groups, a location is where things sit, and a room is one thing”
  • Date: 2026-10-11 | Status: Accepted | Pages: core entities, health, identity and access
  • Decision: Three entities, two groupings, both in daily use. A system is the logical grouping the business cares about: the components that make a thing work, the unit Omniglass monitors, and what support troubleshoots through (its health, usually remotely). A location is the physical grouping: where things sit, and how support and inventory go and find a box on site. Operators add components to a system; membership is how a component belongs. Then:
    1. Every system has a place, the deepest place that spans everything it needs; existing placeless systems backfill to the deepest place containing their members, else the root (#876).
    2. A system’s place bounds its components and subsystems: a component’s own place must be at or below its primary system’s place, secondary memberships not constraining it (a shared head-end sits beside the rooms it serves); a subsystem’s place must be at or below its parent’s; a system move that would strand an explicitly placed primary member is refused, naming it (#877).
    3. A component’s place is inherited from its primary system unless set: its effective place is derived at read time, never copied into the column, and every reader that means “where is this component” reads it (the label, the tag and variable cascade, the fleet view, the console) (#878).
    4. Systems group into systems: a divisible hall is one system holding the shared head-end, with a subsystem per room it splits into (#879).
    5. Where a place and its system coincide, they are one thing (ADR-0139): a place holding exactly one system is shown, addressed and configured as that system, its components a drill-down inside it; for a divisible hall that holds at both levels.
  • Context: Operators think in two hierarchies at once, and #872 made the console honour both. The model underneath contradicted it in three places: a component’s location was only what was explicitly set (so a component added to a room’s system had no place, and moving the system left it behind; the old console copy “location follows the primary system” claimed an inheritance the schema never had), a system’s location was optional, and system nesting existed in storage with no seeded data, no console surface and no health rollup, so the divisible hall it is for could not be expressed. Considered and rejected: retiring system nesting (the divisible hall needs it); making a system a facet of its location (a place can hold several systems, and a system’s components span places); checking containment against every system a component belongs to (it would forbid the divisible hall’s own shared head-end); copying the system’s place into the component on join (stale on every system move). The scope consequence (a location grant reaching the systems and components placed there) is the cross-tier expansion, decided separately (#10). The core-entities claim that system nesting feeds the health rollup is corrected with this entry; the parent-verdict rule is decided with the grouping slice.

ADR-0141: A command settles when its evidence arrives, from its reply first and observation second

Section titled “ADR-0141: A command settles when its evidence arrives, from its reply first and observation second”
  • Date: 2026-10-18 | Status: Accepted | Pages: commands
  • Decision: A settleable command settles the moment its evidence arrives, not when its window closes: a matching observation of its target taken at or after the intent settles it inside the window. Where the evidence comes from is declared on the driver’s command binding: settle: { from: response } reads the device’s reply to the command, with extract (the reply carries the new value, compared to the intent and, for a property target, recorded as a validated observation) or success (the reply only confirms); from: observe, the default, waits for the next observation. A reply that fails the binding’s reading, or an execution error, fails a response-settled command at once. The settle check runs at issue, on the execution report, when an observation of the target lands, and on a server sweep that times out commands past their window. A command issued with no instance is judged on the series of the endpoint it was dispatched over. The early settle compares an observation’s ts to the intent’s: a polled observation carries the node’s sample time, so a node clock behind the database’s can push genuine evidence to the past-window judgment (late, never wrong); every other comparison keeps ADR-0108’s one clock. Amended (#456): an un-instanced command not yet dispatched is judged on the endpoint queued to carry it, one no endpoint can carry on every live observed instance of its target, settled when any agrees, and a command no node has taken times out rather than failing on a reading (ADR-0456).
  • Context: ADR-0063 held a command pending for its whole window and judged it only after, and the check ran only at issue and on reads. Run against the simulator (#888, #900), set-input to a panel actuated, the device switched, and the next poll saw it, yet the command stayed issued and was later recorded timed-out: the panel is polled every 30 seconds against a 15-second window, nothing re-checked a lone command, and the CLI’s instance-less command never met the endpoint-instanced observation. The architect ruled that settlement reads the command’s response first and the next observation second, configured per command binding. The window stays the driver’s fact about actuation time; what changes is that it bounds the wait rather than delaying a verdict already in hand.

ADR-0142: The simulator is a run mode beside its node, holding that node’s identity

Section titled “ADR-0142: The simulator is a run mode beside its node, holding that node’s identity”
  • Date: 2026-10-18 | Status: Accepted | Pages: simulation, API
  • Decision: Omniglass simulates its own fleet with omniglass sim run, a run mode of the one binary that runs beside a collection node and shares its loopback (the same host, or the same container or pod network namespace). It holds the node’s identity and rides the node’s subject grant, so it can only pull the devices placed on its node, report hits on them, and answer the operations the server asks of that node’s simulator. Its fleet is the inventory: it pulls each component placed on the node whose product a profile simulates and follows changes without a restart, so adding a simulated device is adding a component (through a planner shared with the dev seed). Four rulings bound it:
    1. Impairments are opt-in. A simulator rewrites its namespace’s firewall and traffic shaping only when started with --impairments and holding NET_ADMIN; holding the capability alone is not consent, because a simulator run as root on a workstation would otherwise rewrite the host’s loopback rules.
    2. The console’s operations run in process. An operation fired from the console is forwarded over the bus and answered by the device from its live state through the same routes, commands and OID map its listeners use, not by a client dialing the device, so an unplugged device can still be inspected and every protocol (SSH and Telnet included) is reachable without a client per protocol.
    3. A rate limit holds both ways; latency and loss toward the device only. The return path is limited but not delayed, so a latency still counts once per round trip.
    4. Hits are live, not stored. The server keeps them in memory per process, as a signal that the collector is reaching the device, not as telemetry.
    5. simulation:read is the whole gate on the simulated fleet. A caller sees a node’s simulator when its component scope holds at least one component that node simulates, and only those components; no node read is required, so a location-scoped technician sees the simulation of their own places, and learns the simulator’s node name and capabilities.
  • Context: omniglass-lab simulated devices as a second platform (its own director, Postgres, gRPC edge plane and console). Epic #885 brought the simulation core home, and the architect took the recommended option on each open decision: the simulator pulls its device list from the server as a node-like principal, impairments live on the simulated device, a pod’s simulator container gets NET_ADMIN and the unprivileged-port sysctl, and the Simulation page is a sidebar entry shown only while a simulator is connected. The opt-in flag and the in-process operations were settled while building it (#889, #890): the first after seeing what NET_ADMIN on a host namespace would do, the second because a per-protocol client would have bypassed nothing an operator needs and could not reach a device that is broken on purpose.

ADR-0143: A simulated system is built to a standard, with platform-minted names

Section titled “ADR-0143: A simulated system is built to a standard, with platform-minted names”
  • Date: 2026-10-18 | Status: Accepted | Pages: simulation, API
  • Decision: Adding a whole simulated system builds it to one of the platform’s standards. Each of the standard’s roles is staffed with the first simulated product that fits its accepted types and pins (quorum-many, at least one, capped at capacity; one alternate per choice, the first fully staffable); a role nothing simulated fits is left short and listed with the reason. Components are named as an unnamed create names them. The system, components, endpoints and role assignments land in one transaction, each through the ordinary create with the caller’s scope and audit row. The lab’s room archetypes (sim/profiles/systems) are not an operator concept; they remain only as the simulator’s internal fleet compiler input (#914).
  • Context: #911 proposed adding a system from the lab’s archetypes. Their roles and component mixes did not match the platform’s standards (a “codec” slot holding a video bar, products with no seeded counterpart, display and DSP mixes no standard declares), so a mapping table would have kept two vocabularies for one idea. The architect ruled the standard is the archetype and names follow the platform’s own minting.
  • Amended (#914): the archetypes did not remain as the fleet compiler’s input: they and the compiler are retired (ADR-0914).

ADR-0144: Alarms are raised by event rules, at a severity level from a ranked registry

Section titled “ADR-0144: Alarms are raised by event rules, at a severity level from a ranked registry”
  • Date: 2026-10-18 | Status: Accepted | Pages: alarms and actions, health, glossary

  • Decision: The detection half of ADR-0050 is built (epic #819), on five rulings the architect took at approval:

    1. One table per rule kind: event_rule now; calc_rule and action_rule join as siblings.

    2. rule:* gates authoring, one resource across kinds; reading raised alarms keeps its component-tier gates.

    3. An alarm names the rule that raised it in a nullable raised_by_rule_id, its dedup_key taken from the rule.

    4. Severity is a registry of named, ranked levels, referenced by name (a foreign key with ON UPDATE CASCADE). The design’s order column is named rank (a reserved word otherwise). The three values ADR-0050 fixed map by meaning: critical, the outage word, becomes high, the outage floor of the ranked levels, so no verdict moved; a component’s own verdict now reads the rank (high and above is an outage). The reference is added NOT VALID because the levels are boot-seeded after migrations run; it is enforced on every write. An official level never takes over an operator’s (a clash stops the boot naming it; amended by ADR-0318 (#1431): a name clash now leaves the operator’s level alone and the boot goes on, and only a rank a differently named operator level holds still stops it), and re-ranking a level recomputes the health of every component with an open alarm at it.

    5. One alarm per endpoint for a per-endpoint input: the dedup key is the rule name plus the sample’s instance, so a component with several endpoints holds an alarm per endpoint. Amended 2026-10-21 (#977): the dedup key names the rule by its uuid, not its name (rule:<uuid>[:<instance>]), since an event rule’s name became renameable (as ADR-0062 and ADR-0076 require of a registry; the rules shipped create-only in #918). A rename keeps every open alarm, condition and streak attached; an event’s source_rule stays the historical name; an official rule keeps its name. A one-time data migration rewrote existing keys, open and cleared.

    6. Sustains are clocked by samples and a sweep (ruled 2026-10-19, during #920): a durable streak per rule, component and instance acts once it has held for its sustain, on a later sample or on a server sweep every five seconds. The definition’s thin cut had sustains clocked by samples alone, but the official reachability rule reads a verdict the node emits only on change, so a condition that stays down sends no later sample; the sweep (like the command settlement sweep, ADR-0141) closes that without the full durable timer (#419). The streak’s clock is the server’s receipt time, not the sample’s timestamp, so the sample path and the sweep read one clock and a skewed node cannot waive a sustain. A reconcile pass once a minute on the same tick (#928) re-judges each series that took a sample since the pass before last and corrects a rule state that disagrees with its newest sample, healing a decision lost to an enable racing an in-flight batch or to a deadlock abort.

    7. A rule’s live state is its open alarms, its pending streaks, and when it last judged a sample (ruled during #921, amended by #929). The definition’s “last evaluated” first shipped deferred: a per-sample write was kept off the ingest path in the #920 review, and a read-time newest-sample has no supporting index on the property lane and is not the same fact (a disabled rule, or a sample the rule cannot evaluate, has a newest sample and no judgment). #929 built it as a coalesced stamp, last_judged_at in its own event_rule_live row: an ingest batch stamps each rule it judged a sample by once, as its last statement, only when the stamp is at least 5 seconds old, skipping (SKIP LOCKED) a row another batch is stamping. So the hot path pays nothing per sample and at most one statement per batch, batches never queue on a stamp, the value is honest to within 5 seconds on every replica (an in-memory per-replica value was rejected: it lies across replicas), and the rule row every batch holds FOR SHARE is never written by ingest. The severity levels surface beside the rules, and the console authors operator levels as the CLI and the API do (#930).

    Rules read like a registry (rule:read, any grant); writing one takes rule:* on an all-scope grant, since a rule’s selector reaches the whole fleet, the same reasoning as a root create (ruled by the architect 2026-10-19). A rule’s live state names components, so its counts, open alarms and streaks cover only the components the caller’s component read scope admits. A severity level is judged the same way (ruled by the architect 2026-10-20, during #930): it reads like a registry (severity_level:read, any grant), but creating, updating or deleting one takes severity_level:* on an all-scope grant, since a level’s rank moves health fleet-wide; a bounded holder is a 403 (ErrSeverityLevelForbidden), and the console offers the writes on the caller’s all-scope permissions only.

  • Context: #606 left the rules vocabulary to the definition that builds it; #819’s definition posed the five forks with the concrete DDL and the architect approved every recommendation (2026-10-18). ADR-0050 had fixed severity at three values with a CHECK; the registry supersedes that part of it.

ADR-0145: A rule records its conditions as typed events, and its alarm is optional

Section titled “ADR-0145: A rule records its conditions as typed events, and its alarm is optional”
  • Date: 2026-10-20 | Status: Accepted | Pages: alarms and actions, events, calculations, glossary
  • Decision: The event-to-alarm edge of ADR-0050’s design is built (epic #938) on ADR-0144’s rules, on six points:
    1. The alarm is optional (ruled 2026-10-19: optional was always the intent; some events are informational only). event_rule.severity is nullable; a rule with no severity is informational, recording its events and raising no alarm.
    2. A rule names its event types from the event_type registry: a required fire type and an optional clear type, referenced by id, so a type a rule names cannot be deleted. Two official types serve rules that need no semantic type of their own, condition-started and condition-ended, and the official reachability-lost rule uses them.
    3. In force is the rule’s own condition row, event_rule_condition, one per (rule, component, instance) while the condition holds, for every rule, informational or not; an alarm-raising rule opens and resolves its alarm beside it. An alarm the rule holds open with no row behind it (an older binary’s, mid-upgrade) also counts as in force, so it is resolved on recovery rather than stranded or adopted. A one-time backfill gave every rule-raised alarm open at upgrade its row.
    4. One event per edge, carrying its alarm. The fire event is written once when the condition comes into force (after the fire sustain) and the clear event once when it leaves (after the clear sustain, when the rule has a clear type), origin = derived, naming the rule, with event.alarm_id set to the alarm the same transaction opened or resolved. Every path that judges a rule (ingest, the sweep, priming, the reconcile pass, a disable, delete or narrowing) speaks the same edges.
    5. A severity toggled on or off moves alarms, not the condition (refined during #949). Turning a severity on opens alarms for the conditions in force; turning it off resolves them and keeps the conditions. Neither writes a condition event, so an episode carries exactly one started and one ended event; the alarm’s audit rows, naming the editor, record the open or resolve, and the alarm’s timeline reads both sources. A material edit that turns a severity on primes first.
    6. A hand clear holds while the condition persists. Since in force is the condition, an operator clearing a rule’s alarm leaves the condition and its events untouched, and the next alarm opens only on the next new edge, the same manual close a Zabbix trigger allows. One exception: turning the rule’s severity off and back on reopens an alarm for every condition still in force, a hand-cleared one included, since a severity turned on raises for each condition the rule holds (point 5).
  • Context: ADR-0144 built the alarm half, and in force was the open alarm: a rule could not exist without paging, and a hand clear on a polled input reopened on the next sample. Making the condition the rule’s own state lets a rule record what happened without paging anyone, lets every path agree on one edge (the reconcile pass no longer sees a held informational condition as drift), and gives an alarm a record of its own (the events that carry it and its audit rows). Writing condition events on a severity toggle was built first and dropped in review: it put a second start or end into an episode whose condition had not moved. Hand-raised alarms write no events (audit rows only), a thin cut of the epic.

ADR-0146: Expressions run on pinned Expr with an allowlist and per-site budgets, and rule criteria are expressions

Section titled “ADR-0146: Expressions run on pinned Expr with an allowlist and per-site budgets, and rule criteria are expressions”
  • Date: 2026-10-20 | Status: Accepted | Pages: expressions, alarms and actions, API
  • Decision: The expression engine (#524) is internal/expression on Expr, pinned at v1.17.8, and six choices define it:
    1. An allowlist, not a denylist. Every Expr builtin is off; a site admits only builtins vetted as linear in what a run is charged for, with output no larger than their inputs. The range operator, nested predicates, builders and encoders are refused at compile time, and the clock and zone builtins can never be vetted. A run is bounded by its site’s budget (walk, allocation, and a wall-clock backstop for charged work), no larger than a fixed ceiling; criteria get a small one, and the generated sites table on the expressions page carries each site’s numbers. Two costs a charge on the input understated are bounded where they arise: a matches pattern must be a constant, is capped at 256 compiled regex instructions, and charges its subject’s length times its compiled size (RE2 is linear in both); ==, != and in take scalars and lists of scalars only (and a scalar key in a map), refused at compile time on a struct, a map or a list of lists, whose deep comparison no charge covers.
    2. Each site is declared once (internal/rules/site.go): its Go-struct environment per value type, its builtins, result type and budget. The validate route, the console’s expression field and the docs’ bindings table all read that declaration; nothing lists a binding by hand.
    3. Event rule criteria are stored as {"expr": "..."}. The short form {op, value} stays an input (the API, the CLI, the console’s builder) and is lowered to its expression on write, and a one-time data backfill lowered every stored rule the same way, byte for byte. A rule decides every sample as it did, with one approved divergence: a bool property’s sample that is not exactly true or false holds the rule, where the short form compared its text.
    4. A criterion that stops compiling is visible, not silent. A compile error is cached per rule version like a success and carried on the rule as criteria_error, which the console shows; the rule holds until its criteria are rewritten.
    5. Authoring is checked before saving. POST /expressions:validate compiles a source against a site (off the shared program cache) and answers positioned diagnostics with the site’s bindings; POST /event-rules:preview judges a candidate rule over recent samples in a read-only transaction, within the caller’s read scope, sustains ignored and said so.
    6. The label dialect stays separate (#524, decision 1): templates render text over a closed map, expressions compute typed values over declared environments.
  • Context: The first engine charged its run budget on what a run read, and three adversarial review passes broke it: string concatenation and variadic builtins went uncharged, Go-native builtins (repeat, aliased map, uniq, replace, join) did unbounded work no input charge could see and no deadline could interrupt, and regex and deep equality cost far more than their charge. Charging stayed for what is admitted, and the allowlist became the bound. Storing the expression rather than both shapes keeps one evaluator on every decide path; the backfill’s lowering is proven against the old evaluator over every short form and sample class, and the divergence is the definition’s decision (#524, decision 3), recorded here rather than claimed away.

ADR-0147: A calc rule is a typed sibling registry, checked acyclic at authoring

Section titled “ADR-0147: A calc rule is a typed sibling registry, checked acyclic at authoring”
  • Date: 2026-10-21 | Status: Accepted | Pages: calculations, expressions, API
  • Decision: The calc rule registry (#995, the first slice of epic #525) is built on four choices:
    1. A sibling table with typed columns, as ADR-0144 ruling 1 set for rule kinds: owner_kind (component or system), the event rule’s selector shape, inputs as [{as, key}] (keys by name, as event_rule.sample_key holds its key), reduce as {reducer} or {expr}, and output_key held by id in its lane’s registry with the lane recorded, so a written key cannot be deleted. The calculations page’s one-spec shape is the same divergence the event rule took. The name is renameable from the start (ADR-0062, ADR-0076), and a rule is addressed by name or uuid.
    2. A calc expression site of its own. Its bindings are each rule’s inputs, so the environment is built per rule from a struct type made at run time (expression.EnvFor): a component owner binds each input as one value of its key’s type, a system owner as the list of its members’ values, and the result is pinned to the output key’s type. It admits the criteria builtins and no more (none is vetted for calc alone). Its budget is 100,000 iterations (ten times criteria’s 10,000, a tenth of the 1,000,000 ceiling), 50,000 memory units (five times criteria’s 10,000, half the 100,000 ceiling) and a 25ms deadline (five times criteria’s 5ms, a tenth of the 250ms ceiling), since it runs on a tick off the ingest path and a system rule walks a list per input. An input’s name may not be a keyword or any Expr builtin’s name, so vetting a builtin later never changes a stored rule. The named reducers (average, min, max, sum over a metric; count of the values present, of any type; majority over a property; any, all over a bool) are declared in the site registry and type-checked here, though they fold values only once the tick lands.
    3. The key graph is checked acyclic at authoring. Every enabled rule’s input keys lead to its output key; a write that would let its output reach one of its own inputs is a 422 naming the chain of keys and the rules along it, judged under a transaction lock so concurrent writes cannot each close half a loop. This complements ADR-0069 rather than replacing it: the provenance rule still guards the loops this graph does not see (a calc output judged by an event rule whose alarm moves health), which is why health may be neither an input nor an output (#525 decision 3). The graph is key-level by design: it ignores owner kinds, so a component rule and a system rule on the same key share it. That can refuse a rule whose owners would never meet another’s, and can never admit a loop, so it errs safe. Under the same lock, one enabled rule writes a key: a second enabled writer (created, repointed or enabled) is refused naming the first, since two writers would mix their values on an owner by newest timestamp.
    4. An output a collection writes is refused, judged from declarations only: the native probes’ keys, moved into one leaf declaration (internal/collection/probekeys) that the probes emit from and this check reads, and every stored driver whose spec declares the key among its emits. Sample history is not read (amended in review, #995): probing it had no supporting index, and one hand-posted or simulated sample would have blocked a key forever. The remaining gap is a driver created or edited to emit a calc output after the rule exists; the guard for it belongs on the ingest side and is filed separately.
    5. A stored reduce that stops compiling is visible. An input key deleted or retyped under a rule (inputs hold keys by name, unreferenced) or a row written outside the gateway leaves a reduce that no longer compiles. Every read compiles the stored rule against the registries as they are, cached per rule id, version and key typing as event rule criteria are (ADR-0146 point 4), and carries the fault as calc_error; enabling a rule recompiles it, so a faulted rule cannot be enabled. Deleting a property or metric type a rule writes is a 409 naming the rule rather than the bare foreign-key failure.
  • Context: #525’s definition asked for a cycle refusal naming the chain, health refused as an input (decision 3), and an output shared with an observed producer refused (decision 6), and left the signal for “a key any collection writes” to the slice. A flag on the registries would be a second copy of what the drivers and probes already declare; the observed-sample probe first shipped beside the declarations was dropped in review for the reasons in point 4.
  • Amended 2026-10-22 (#1018, ruled by the architect in #1017’s review): the reduce is always an expression, and inputs are held by uuid with aliases.
    1. One reduce. reduce is {expr} only. The named reducers become list functions the calc site admits through the vetting registry, each with its cost argument (one charged pass over a list, one value out): max, min, avg, sum, majority, any, all, beside len and count. Each retired reducer is one expression (average is avg(x), count is len(x), the rest their own names), proven equal over the same values on both owner kinds. Expr parses any, all and sum as predicate builtins only, so their one-list calls are told apart lexically and renamed in place to the engine’s own functions of the same length; the predicate forms stand.
    2. Inputs are lists. Each input binds by its alias as the list of its current values: on a component one per instance under ADR-0148 point 4’s instance and staleness rules (no longer only the aggregate instance for an expression), on a system every role-bound member’s, in member order; a system’s members records stay beside the lists. A single-instance key is a one-element list.
    3. Inputs by uuid, with aliases. Inputs move from calc_rule.inputs ({as, key}, keys by name) to calc_rule_input, a row per input holding its key by id in its lane’s registry, the lane recorded, as the output is: a key rename leaves the rule computing, and a key a rule reads cannot be deleted (a 409 naming the rule, where point 5 left a calc_error). The API takes a key by name or uuid and answers both. The key graph runs over key ids, so a property and a metric of one name are two keys, and its refusal names keys by their names now.
    4. Alias rules, one list. An alias is an identifier of at most 64, not a keyword or the name of any builtin or list function, not one of the site’s own bindings (component, has, members, system, value), and unique; a name no alias binds is refused at its position naming it, and a let shadowing an alias is refused where it is declared. The reserved list is generated for the console, so the form and the editor refuse what the server refuses.
    5. Moved by a data migration. Databases that ran the branch had their {as, key} inputs moved to rows and each {reducer} rewritten to its expression (idempotent, tested from the earlier schema); a stored expression that read a scalar now reads a list and shows a calc_error until rewritten. The preview’s withholding (an expression over a system with an unreadable member) now applies to an expression that can read one member’s value, and not to one that folds each list whole, as the named reducers were previewed. An aggregate is not a fence: over a small system it can reveal a single hidden member’s value (subtracting the visible members’ values from sum(t), or max(t) above every visible one), exactly as the named reducers already could; the withholding stops a direct read of one member, not inference from an aggregate the rule’s state shows anyway.

ADR-0148: Calc rules run on a durable pending set and a server tick, not a JetStream consumer

Section titled “ADR-0148: Calc rules run on a durable pending set and a server tick, not a JetStream consumer”
  • Date: 2026-10-21 | Status: Accepted | Pages: calculations, datapoints, messaging
  • Decision: Component calc rules run (#996, epic #525 decision 1), as the event rule sweep does (ADR-0144 point 6), off the stream:
    1. Marks in the sample write. The sample-write transaction inserts a calc_pending row (rule, owner) for every enabled component rule reading one of the batch’s keys on an owner its selector picks, found by one probe of the GIN index on calc_rule.inputs. A mark already present keeps its marked_at (coalescing: the oldest unserved change) but is updated rather than skipped, so the writer holds it until it commits and a drain cannot serve it from the values before the write (a skipped conflict lost the change in review). Marks go in (rule, owner) order. The lock order is the event rule rows FOR SHARE (the evaluator’s load), then the marks, then the series and health locks the samples’ judging takes.
    2. A 1s server tick (calcTickEvery, its own goroutine, a 10s deadline per pass, up to 500 marks a pass, cancelled on shutdown, a panic recovered and logged, each pass logging what it served and the queue’s depth) serves due marks oldest first, each in one transaction: the mark FOR UPDATE SKIP LOCKED, the rule FOR SHARE SKIP LOCKED (a rule held by a write has its marks passed over for the pass), the mark deleted, the result written. Replicas share the queue and compute each mark once; a crash or restart rolls back the mark in flight and loses nothing. A mark whose computation fails is recorded in the rule’s state and pushed back 30s (calcRetryBackoff), and the pass goes on.
    3. Deadlocks are retried by the ingest. The tick holds the mark it deleted while its output write marks the next rule, and a batch can hold that next mark while waiting on the deleted one. Postgres aborts one side (40P01) before anything commits; the ingest retries its whole transaction up to sampleWriteAttempts times with a jittered pause, and a tick that loses defers its mark.
    4. Current values. A named reducer folds each instance’s newest value of its input on the component: the named instances only, the aggregate instance '' joining only when the key has no other instance, and an instance not heard from within CalcStaleAfter (1h) left out and named in the state as stale. majority breaks a tie by the value that sorts first (false before true). An expression reads the aggregate instance’s newest value. Intended values are never read. A missing input writes nothing (decision 5); the rule’s last outcome per owner, in calc_rule_state (computed at, rule version, value, missing inputs, stale instances, error), is what the state read (#998) will answer from.
    5. The same write path. The result is written through the sample-write path as calculated, with source_rule (the rule’s name) and source_rule_version, on instance '', on the lane and type the rule holds its output by (never re-resolved by name), so event rules judge it in the tick’s transaction and downstream calc rules are marked. An unchanged result writes no row on either lane: a metric output is change-only too, keeping storage bounded by change.
    6. A rule write recomputes. Creating a rule, or any write that bumps its version (enabling one included), drops the rule’s marks and state rows in the write’s transaction and, when it is enabled, marks every component its selector picks that holds a value of one of its inputs, in one statement; so a rule over stable values computes without a new sample, an edited reduce replaces the old output, a disabled rule keeps no state, and a narrowed selector’s dropped owners lose theirs.
    7. No rule feeds itself. The write carries its producing rule and the marking skips it, which stops a self-loop at runtime. Longer loops are refused at authoring under the graph lock (ADR-0147); a loop written into the table around the gateway is out of contract, and ADR-0069’s provenance rule is what stands behind both.
  • Context: The design puts calc on a trusted JetStream samples lane (#430) that does not exist; the event rules already judge in the sample-write transaction. Computing inside that transaction would widen ingest’s lock footprint with fan-in, and waiting on #430 would block the epic on unbuilt infrastructure. A durable pending set plus a tick is replica-safe and coalescing, and keeps a later move to the lane a change of transport, not of semantics.
  • Extended 2026-10-21 (#997): system rules run on the same set. A system’s members are its role-bound components (the role set the health rollup resolves, one SQL predicate both read); a member’s sample marks the enabled system rules reading its key on the selected systems it staffs, and a role assigned or withdrawn, or a system created, retyped or re-standarded, marks the system’s rules (before its health recompute, so the mark precedes the health locks). An expression reads members, one record per member (by name, then id) holding each input under value.<as> and its presence under has.<as>, so one member’s inputs stay aligned; a member with no value is named by id in the state, and the output is system-owned. A system with no members keeps its last value, its state recording no_members_since. A retype out of a selector drops the deselected marks first, skipping one a serve holds, and a serve rechecks the selection before computing, so neither waits on the other. Event rules do not judge system-owned samples yet (#1002).
  • Amended 2026-10-22 (#1018): point 4’s instance and staleness rules now give every input its values, expression or not: the reduce is always an expression (ADR-0147’s amendment), and each input binds as the list of its per-instance values on a component, every member’s on a system, where an expression read the aggregate instance alone. A system member’s record still carries its own aggregate value. The marking probe reads calc_rule_input by key id (the inputs’ GIN index went with the jsonb column), so a property and a metric of one name mark only the rules reading that lane’s key.

ADR-0149: Walkthrough evidence lives on per-PR refs, its PR video plays through jsDelivr, and the docs commit the mp4

Section titled “ADR-0149: Walkthrough evidence lives on per-PR refs, its PR video plays through jsDelivr, and the docs commit the mp4”
  • Date: 2026-10-23 | Status: Accepted | Pages: walkthroughs, labels
  • Decision: Walkthrough recordings (#884) are hosted three ways, by who reads them (#939):
    1. PR evidence on a per-PR ref. The run:walkthrough job commits each passing walkthrough’s mp4, animated preview, poster and stills to refs/walkthroughs/pr-<n>, as a fresh tree on top of the ref’s last commit, and the PR comment reaches every file by that commit’s SHA. Nothing is pushed to the PR branch. A separate publish job holds the write token, checks nothing out and runs nothing from the PR; the record job, which runs the PR’s code, has a read-only token.
    2. Scrubbable PR video through jsDelivr. The comment links each mp4 as https://cdn.jsdelivr.net/gh/<owner>/<repo>@<sha>/<id>/<id>.mp4, which jsDelivr serves as video/mp4 with range requests, so a browser plays and seeks it; GitHub’s raw host serves an mp4 as an octet stream, and GitHub plays no video a workflow can attach. The animated preview stays the comment’s inline glance, from the raw host.
    3. Docs commit the mp4. make docs-walkthroughs copies every declared walkthrough’s mp4 into docs/public/walkthroughs/<id>/, and the embed is <video controls> with the poster step’s still as its poster frame and fallback. The docs carry no animated preview: a page that plays the video has no use for it.
    4. Cleanup. walkthrough-prune.yml runs daily and deletes the evidence ref of every PR closed more than 30 days ago (and only those it can prove are), after which that PR comment’s images and links go stale.
  • Context: The #884 ruling committed PR evidence to the PR branch under .github/screenshots/<pr>/walkthroughs/. A squash-merge then carried about 3 MB of review-only binaries per labelled PR into main for good, and the bot’s push to the PR head left that commit’s checks un-run (GitHub starts no workflow for the workflow token’s push), so authors pushed empty commits to run them. A ref outside refs/heads/ touches neither: it is not fetched by a default clone and not in the branch list, unlike an orphan branch, and a probe showed GitHub’s raw host and jsDelivr both serve a commit reachable only from such a ref, and that the workflow token may push one. The refs still cost repository size on GitHub and in any mirror that fetches all refs (git clone --mirror), about 2 to 3.5 MB per walkthrough per run, which the 30-day prune bounds; deleting on close was rejected because a just-merged PR is still read. jsDelivr works only while the repository is public; a private repository would need another host for scrubbable PR video. The docs mp4 costs about 1 MB per walkthrough per re-record in main’s history, accepted so the deployed docs and their PR previews play the flow with controls. Supersedes the #884 ruling on where PR evidence lives.
  • Amended (#1132): the job is now run:demo (demo.yml, with demo-prune.yml the cleanup), which records terminal demos beside walkthroughs and commits both to the same per-PR ref under the same prune, listing every demo in one comment; run:walkthrough still triggers it. The hosting above is unchanged. See ADR-1132.

ADR-0150: A held session’s state is a property series and node logs, not a session table

Section titled “ADR-0150: A held session’s state is a property series and node logs, not a session table”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, nodes, datapoints, glossary, storage
  • Decision: A stateful transport holds its connection (#816, epic #603’s thin cut “no session table”), and its lifecycle is surfaced without a new store:
    1. The state is a property. session-state (seeded, establishing, up, recovering, down) lands per endpoint on the endpoint’s component (instance: the endpoint’s name, as endpoint-reachable does), published by the node at the moment of each transition under the endpoint’s standing listen task, so ownership binds server-side like every other sample and the series is transitions only.
    2. The reasons are node logs. Each transition is also a self-log (facility: session, ADR-0066) carrying the reason (connection lost: EOF, 5 consecutive attempts failed, last: ...), and teardown logs why (its listen task left the worklist, its endpoint changed, node shutdown). The reason also rides the sample as the reason label, which is not persisted. Teardown publishes no state: the node stopped wanting the session, which says nothing about the device. So the last session-state outlives a teardown or a node shutdown (an up stays the latest value of a session nobody holds), and a read must judge it by its age, as the property catalog already says of stale values. No surface reads session-state yet (the reachability panel reads the endpoint verdicts only); the console work that shows it, with #817’s listeners, must render it aged. Amended (#1059): the console reads it now, on the component’s reachability read beside session-reason and the gate’s rung and class, aged by the endpoint’s last_seen (a state whose endpoint delivered nothing for the staleness window reads grey), with Retry for a rejected one.
    3. What holds a session. An endpoint whose worklist carries a standing listen task over a transport with a session dialer (the line protocol over tcp today; ssh is not wired). The listen task is what needs the connection held (its listeners arm over it, #817); the endpoint’s line polls borrow the session instead of dialing, and a poll over a session that is not up faults (collection-failed naming the state) rather than dialing a connection of its own. The worklist carries each task’s endpoint id, the node-unique key a session is held under.
    4. Recovery is bounded. A failed attempt waits SessionBackoff: 250ms doubling per attempt, capped at 30s, jittered 20% either way; five consecutive failed attempts read down, and the session keeps retrying at the capped pace so a device that returns reads up unattended. An attempt fails when its dial fails, when its connection drops unanswered within 10s (a device that accepts and drops cannot hot-loop or read up forever), or when an exchange over it that declared no reply shape timed out (a hung device, however long the connection lived; a shaped exchange’s timeout fails only itself, ADR-0151). An answered exchange forgives the failures before it, so a healthy device’s rare missed answer never adds up to down; a connection that outlives 10s and drops for another reason forgives them too and redials at once. Once down, a returning connection publishes nothing until it proves itself: an answered exchange (the session lends it to polls meanwhile), a line a listener claims (a push proves the device talks, though it forgives no failures, so a device that pushes and drops still backs off), or, unless answer timeouts were what failed, outliving the 10s window; so an accept-then-drop or hung device publishes no up/down pairs. A caller abandoning an exchange (its own deadline or cancel) is not the device’s timeout, and the wait for a first dial has its own budget, so a slow dial never eats the exchange’s. A held connection carries a 15s TCP keepalive, whose failure is recorded as itself.
    5. An answer belongs to its ask. One reader goroutine owns the connection: on an ask it discards every byte already received (a banner, a stray line, plus a 2ms window for bytes in flight), writes the line, and hands the next line it reads to that ask, keeping an answer whole across segments. An ask whose answer does not come in time recycles the connection, since its late reply would otherwise answer the next ask. One window remains: a line the device sends after the drain and before it has read the request (a push landing in that instant) is taken as the answer, since nothing on the wire tells the two apart. ADR-0151 (#817) closes it for every request that declares a reply shape, and a line a listener claims is never an answer at all. A listen task whose spec changes (its content-addressed id re-hashes) keeps the healthy connection; only what the connection depends on (transport, address, timeout, credentials) recycles it.
  • Context: The nodes page designed a session_log table of node-reported transitions with a session view over it. A property series already gives transition-only history, latest-value reads, staleness at read time, rules over it (an event rule can watch session-state as it watches endpoint-reachable), and owner scope, with no new table, route, or permission noun; the free-text reasons belong to the node’s own narration, which node_log already lands. A session table stays possible if per-session counters (commands, errors, last activity) earn one; nothing here forecloses it.

ADR-0151: A held line session routes every inbound line, listeners first, answers by reply shape

Section titled “ADR-0151: A held line session routes every inbound line, listeners first, answers by reply shape”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, nodes, drivers
  • Decision: A driver’s listeners come alive over the held session (#817), and one reader per connection routes every inbound line:
    1. Arm on every connection. A listener’s arm commands are sent in order on each connection before the session reads up (establish and every recover). They are plumbing, per the #603 ruling: a node self-log with the device’s reply, never a command row. The ack is the first line of any kind, one a listener claims included (both have it), since a device may ack a subscribe with the push itself; no ack within the timeout is logged at warn (“armed, unacknowledged”) and does not fail the attempt, while the connection dying during the arm does.
    2. Listeners first. Listeners are offered a line in function-name order; the first whose match picks it claims it, and its emits land at once as samples under its listen task. A claimed line is never an exchange’s answer, unless the exchange declared a reply shape the line matches, when both have it (a protocol whose answers look like its pushes still answers).
    3. Answers by reply shape. A request may declare reply (a prefix or regex, the regex Go RE2 with substring semantics, so anchored to mean a whole line); the exchange in flight takes the first line it matches, or, with none declared, the first line no listener claims. A reply may also declare an error shape: an unclaimed line matching it answers the exchange as a refusal carrying the device’s text, never a timeout. A shaped exchange that gets no answer in time fails alone, keeping the connection and not charging the session, since shape routing cannot misroute its late answer; an unshaped one still recycles (ADR-0150). A line begun before the request was written is never its answer.
    4. The rest is unclaimed. Counted and self-logged once per tick; a spec declaring unmatched: collection-failed (default discard) also lands one collection-failed per tick.
    5. Commands ride the session. A command delivery names its endpoint and carries its binding’s reply shape; a node holding a session there actuates over it, falling back to a throwaway connection only when none is held. A refusal reports the device’s text as both the execution error and the reply, so the command fails at once with its reason (a response-settled binding fails on the execution error before it reads the reply).
    6. Patterns compile once. Every match, reply and extraction regex is compiled once per process and reused by the reader, and refused at write when it does not compile.
  • Context: The nodes page designed an ordered matcher set trying an outstanding poll’s response matcher first. On a line protocol that order lets a push that happens to fit a loose answer (or any line, when the poll declares no shape) be eaten as the answer, which loses a sample and misreports a poll; a listener’s rule is the more specific statement of what a line is. Declaring reply shapes closes the window ADR-0150 point 5 left open for every request that declares one; a request without one still takes the first unclaimed line, so a driver whose protocol mixes unsolicited lines with answers declares its replies (the seeded newtron-nvp does).

ADR-0152: A driver poll runs on its declared schedule, at heartbeat granularity

Section titled “ADR-0152: A driver poll runs on its declared schedule, at heartbeat granularity”
  • Date: 2026-10-23 | Status: Accepted, amended by ADR-1634 | Pages: nodes, collection, drivers
  • Decision: The node honors a driver poll’s schedule.every (#822). It keeps, per task id and for the life of the run, when each poll is next due, and runs the poll on the first heartbeat tick at or after that time. The next run is booked from the due time, so tick jitter does not drift the cadence; a tick so late it missed whole intervals runs the poll once and books from now, never a catch-up burst. A run that lands nothing because its fetch failed retries on a backoff instead of waiting its interval: min(every, max(heartbeat, backoff)), the backoff starting at the heartbeat and doubling per consecutive failure, so a 24h poll that fails during a device reboot retries within seconds and a dead device is still asked no more often than every heartbeat; the first success books from its due time again. A down held session is proven by a listener’s push as well as by an answered poll, so a gated poll never keeps a pushing device reading down. A task new to the worklist runs at once; a task that leaves it is forgotten; a restart polls at its first tick. The gate covers driver polls only: reachability probes still run every tick, and a listener’s pushes are never gated, since they ride the held session as they arrive. Amended (#1273): reachability probes now run on the node’s probe interval through this same schedule (every tick when it is unset), and a task is due on the tick within half a heartbeat of its due time rather than the first tick at or after it, so an interval equal to the heartbeat never skips a jittered tick (ADR-1273). Amended (#1637): heartbeat granularity was a step, not the target: a poll runs on its own interval at a stable phase from a scheduler of its own, with a run still in flight at its next due skipped and counted, never burst (#1634, ADR-1637). Amended (#1634): polls no longer run on the heartbeat tick: a dispatcher with its own timer runs each on a stable phase of its interval, skips and counts a due whose run is still in flight, retries a failed fetch on a backoff from one second rather than the heartbeat, and runs a poll with no schedule at the heartbeat interval (ADR-1634).
  • Context: The schedule was validated and baked but unread, so snmp-generic’s every: 60s polled every 30s heartbeat and a 24h poll would have asked a device 2880 times a day. The nodes page left per-task cadence within a tick as an open question; a per-task gate settles it for driver polls without the tick scheduler’s redesign (the overrun-aware loop and the bounded pool stay design), at the cost of cadence precision bounded by the heartbeat.

ADR-0153: The held-session proof is the line protocol over tcp; other held transports are their own issues

Section titled “ADR-0153: The held-session proof is the line protocol over tcp; other held transports are their own issues”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, nodes
  • Decision: The stateful arc of #603 proves the held session on one transport: the line protocol over tcp (sessions, #816; listeners and the shared reader, #817), against the simulator’s NVP port and end to end. #816’s scope named SSH as the session-lifecycle integration carrier; the architect accepted the arc on the line protocol instead and deferred SSH. Every other held transport is its own issue under #603: #1032 (ssh), #1033 (telnet), #1034 (websocket), #1035 (tls), #1036 (mqtt), #1037 (udp), #1038 (SSE over http), #1039 (modbus/tcp), #1040 (bacnet/ip), #1041 (knxnet/ip); server-hosted ingress (syslog, SNMP trap, webhook) is #1024. There is no serial transport (architect’s ruling): a serial device (RS-232, RS-485) is reached through an IP-to-serial gateway, which is the tcp transport (or tls or telnet, as the gateway speaks), so its driver is a line protocol like any other and the node never owns a serial port. How a protocol is placed. The first rule that fits decides. A protocol that rides a carrier we already have with only payload differences (http with any body, a tcp line protocol, a websocket, and udp datagrams once #1037 lands) is a driver: ONVIF is SOAP over http (#1042). A driver that needs something its carrier cannot do yet (a body format, an auth scheme, a stream mode, TLS) makes that capability on the existing transport, proven by the driver: SSE on http (#1038), tls (#1035), sftp on ssh (#1045), and http fetching a body as a file (#1044). Amended (ADR-0159): tls is its own transport over a shared primitive, since a secure variant that needs its own endpoint name and rung is its own registry entry; it stays a capability on websocket and mqtt. Amended (#902): https is its own entry too, by the same rule (ADR-0902). A protocol that moves whole files rather than values lands as a file sample (#1043, the primitive #1044 through #1047 depend on). A protocol with its own framing, addressing, or session handshake is a new transport plus a generic driver on it, the snmp and snmp-generic pattern: ssh (#1032), telnet (#1033), websocket (#1034), mqtt (#1036), udp (#1037), modbus/tcp (#1039), bacnet/ip (#1040), knxnet/ip (#1041), ftp/ftps (#1046), and tftp on udp (#1047). A serial link is reached only through a gateway, as above. A protocol that pushes to us rather than being reached is server-hosted ingress (#1024), not a node transport. The /scope-protocol skill applies this placement rule when a new protocol comes up, and files the issue in the house shape. The session machine, its session-state surface (ADR-0150), and the routing (ADR-0151) are transport-agnostic behind the SessionDialer and HeldConn seams, so each of those issues adds a dialer and its own real-implementation integration test rather than a second machine.
  • Context: The #603 rulings set the line-protocol emulator as the stateful proving target, with SSH to carry the session-lifecycle test. The line protocol exercised every part of the lifecycle (establish, arm, operate, recover, teardown) over a real wire, and SSH adds authentication and channel semantics that are a slice of their own; holding the arc for it would have delayed a proven machine. The collection and nodes pages’ transport fences now name these issues, so no deferred transport is a fence without an owner.

ADR-0154: Healthy reads green, tiered so a calm fleet stays calm

Section titled “ADR-0154: Healthy reads green, tiered so a calm fleet stays calm”
  • Date: 2026-10-23 | Status: Accepted | Pages: health, design system, fleet guide
  • Decision: A healthy verdict wears green, reversing the “healthy is grey, only trouble carries a hue” rule of ADR-0137 and ADR-0139. One token, --og-healthy (the theme’s success hue), in three tiers: badge-healthy (the health pill, the simulator’s running pill) and bg-healthy (the history strip’s healthy stretch) at the trouble hues’ weight, and text-healthy, a muted green, on the dense views (the outline’s healthy slot and glyph, a good uptime figure). Unknown keeps the grey badge-ghost chip.
  • Context: In use, the grey healthy chip and the grey unknown chip read as one state, so an operator could not tell a system known to be fine from one never read (#1067). The concern #872 was answering, that a fleet of loud green would bury the one amber branch, holds for the dense views, so they take the muted tier; the single-subject surfaces (a pill, a strip) take the full hue, where there is nothing for green to drown out. The word and the glyph still carry the state for a colour-blind reader. Amended (#1071): the system map’s occupied-position dot, missed in the first pass, wears its component’s own verdict through one verdictDot primitive: healthy the muted tier (bg-healthy-muted, the fill twin of text-healthy), incomplete indigo, degraded amber, outage red, read through the same lookup the component rows use so the two never disagree. A known verdict always wins; only an unknown one falls back to the staffing read (red when down, else grey), and an empty position keeps its hollow grey ring. Amended again (#1074): the dot gives way to the component type’s icon, itself in the verdict’s hue (verdictHue, the text twin, which the outline’s slots now share), with the component’s label under it and its role, product, health and alarm in a tooltip; verdictDot and bg-healthy-muted retire with the dot. An empty position is a dashed ring named for its role.

ADR-0155: Auth is a layer that gates a held session, and a terminal refusal reads rejected

Section titled “ADR-0155: Auth is a layer that gates a held session, and a terminal refusal reads rejected”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, nodes, glossary, drivers
  • Decision: The architect’s ruling, made in session on 2026-10-23 (#1049), applies the ladder the stateless probes climb (dialed, responds, authenticated) to held sessions:
    1. Auth gates the session. Every attempt runs dial, then the auth step, then the listeners’ arm, then up. The step is declared by the driver (a login dialog in the spec’s session block) or by the transport (one that authenticates on its own); a dialer that cannot run a declared step is a protocol refusal. Nothing (a poll, a command, an arm) borrows a connection whose step has not passed: the dialer is staged (Connect, then Authenticate, then Open), so the line reader does not exist until the step passes. The verdict lands as the existing endpoint-authenticated property (yes/no, on change), no parallel vocabulary. A login that is silent or dropped decides nothing and is an ordinary failed attempt.
    2. One login dialog. Steps wait for a prompt (matched on a partial line once the component pauses on it, since a prompt ends no line) and send a line that may name a secret input’s field (${secret.<input>.<field>}); ready says it passed; a prompt for a step already answered is an auth refusal. The same primitive answers ssh keyboard-interactive questions. A credential is written only to the wire: render faults name the reference, never the value, and text the component sends is scrubbed of the sends before it reaches an error or a reason.
    3. rejected joins the state set (amending ADR-0150’s establishing, up, recovering, down). A terminal refusal (ADR-0156) moves the session there at once, without spending the budget; it closes the connection and dials no more. Polls and commands over it fail fast with the refusal, and neither falls back to a throwaway connection (a command delivery is session_only when its driver declares a session or its transport has no stateless line).
    4. Leaving rejected (amended in this PR by the #1056 ruling). A session leaves rejected only when its connection fingerprint changes (ADR-0158): the attached secret rotated in the store, the address, port or transport, the driver’s login or terminal declaration, a pin, or an operator’s POST /endpoints/{id}:retry (gated by a new endpoint:retry action the operator role holds, audited), which moves an explicit session_retry counter on the endpoint (a migration) that is part of the fingerprint. The endpoint’s updated_at, first used as the retry signal, moved on every edit, a label included, and pulled a rejected session out; it no longer does. A driver may declare session.reprobe (at least 5m; default never). A component that hangs up after the final secret and before ready, with no refusal text, charges a login budget of its own: three in a row are an auth refusal; a drop before the secret step stays an ordinary failure, and a login that passes resets it.
    5. Visibility. Each transition lands session-reason beside session-state, the reason as a property an event rule can read (labels do not persist); the node logs a rejection once, at warn, at the transition.
  • Context: Every session failure was retryable (ADR-0150): after the budget a session redialed at the capped 30s pace forever, about 2,880 attempts a day, harmless for the tcp line protocol and an account lockout for any transport with a login. The retry signal needed a home the node could see that nothing else moves; a component that drops a wrong password silently needed a bound no driver rule could give it (#1056).

ADR-0156: A driver declares its terminal replies, and a transport classifies its own refusals

Section titled “ADR-0156: A driver declares its terminal replies, and a transport classifies its own refusals”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, glossary, drivers
  • Decision: The architect’s ruling, made in session on 2026-10-23 (#1049): non-retryable errors are defined in drivers.
    1. A spec’s session.terminal lists the replies retrying cannot fix, each a match (a prefix or a regex) with a class. The classes are a code-held set (auth, host-key, certificate, protocol), refused at write when unknown, grown in code as transports need.
    2. A rule applies to every line the component sends the session’s way: the login’s lines, every exchange’s answer and declared refusal, and every arm reply. A match fails that exchange with the refusal and rejects the session (ADR-0155).
    3. A transport classifies its own protocol-level refusals into the same classes (an ssh auth failure is auth, a changed host key host-key), so a driver need not declare what the protocol already says.
    4. The primitive is collection.TerminalError{Class, Reason}, the reason the component’s own text; anything unclassified stays retryable and follows the backoff and budget. A stateless or session poll whose fault is terminal waits its interval, never the failure backoff; one its session refused runs at the first tick that session is up again.
  • Context: Only the driver knows what its component’s refusal looks like (“auth rejected”, “Login incorrect”, an “account locked” reply), and only the transport knows its protocol’s refusals; a session machine guessing from text would misclassify both ways. A fixed class set keeps an event rule’s vocabulary stable across drivers.

ADR-0157: Telnet and ssh are held line transports, their login is the driver’s, and the ssh host key is pinned on first use

Section titled “ADR-0157: Telnet and ssh are held line transports, their login is the driver’s, and the ssh host key is pinned on first use”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, nodes, glossary, drivers
  • Decision: (#1033, #1032, under the ruling ADR-0155 and ADR-0156 record.)
    1. Held line transports. telnet and ssh join tcp as transports the line protocol rides over a held session (the registry’s line flag): one session machine, one reader, one routing. Telnet is the line connection behind a filter that strips negotiation and refuses every option (DO answered WONT, WILL answered DONT, a literal 0xFF escaped). Ssh bridges a shell channel (with a PTY on session.pty) or an exec channel (session.exec) onto the reader.
    2. The session’s login is the driver’s. The designed endpoint.params login fields (login_expect, password_expect, private_key) are not built for a held session: a telnet or raw tcp login is the driver’s session.login dialog, and an ssh credential is the secret input session.credential names (a basic-auth username and password, or an ssh-key username and private key; a login dialog only answers keyboard-interactive questions beside it), delivered unsealed on the worklist. A keyboard-interactive question nothing declared answers (a one-time code) is an auth refusal. The telnet probe never logs in: it reads the first negotiation or banner bytes (telnet-response-time), and while the node holds an up telnet session it takes the verdict from the session rather than dial again. The ssh probe still tries a params username/password on every tick without the pin, a gap filed as #1060.
    3. Trust on first use. The node trusts the first ssh host key it sees and publishes it as the observed ssh-host-key property; the worklist delivers the pin (the declared value, else the observed one), so a node restart or reassignment keeps it. A changed key is a host-key refusal naming both fingerprints and is never published as the pin. The node republishes the key on every authenticated connection and while the worklist delivers no pin, and carries it across a session’s recycle, so one lost publish cannot reopen first use. An operator who trusts the change retries the endpoint with host_key (gated by endpoint:retry, audited), which declares the new pin; the node redials onto it, whatever state the session is in.
  • Context: The design fenced telnet and ssh as their own polled endpoint types with login config on endpoint params. Under the 2026-10-23 ruling auth is a session layer declared by the driver or the transport, so a login on params would have been a second, unclassified path, and a probe that logged in every tick would retry a bad credential forever. A host key pin needed a home the node can read after a restart without a new table; the property lanes already carry the observed-versus-declared split and the history an operator reads.

ADR-0158: One connection fingerprint gates every connection, on a ladder the driver declares

Section titled “ADR-0158: One connection fingerprint gates every connection, on a ladder the driver declares”
  • Date: 2026-10-23 | Status: Accepted | Pages: collection, nodes, glossary, drivers, api, properties
  • Decision: The architect’s rulings of 2026-10-23 (on #1056 and #1049), for every connection to an endpoint, held or stateless (the reachability probe, a throwaway poll or command, the held session):
    1. The fingerprint primitive. internal/fingerprint digests (SHA-256 over canonical JSON) every input a connection is made with: the transport, the declared params (the address as declared, never a DNS result, the port, the timeout), the driver’s inputs (secret reference names, never values), a digest of each attached secret’s sealed envelope and id (a rotation re-seals, so it moves; nothing plaintext-derived is hashed), the driver’s session block, the resolved ladder, the ssh host key pin, and the endpoint’s :retry counter. The server computes it in the worklist, one per endpoint, so the node only compares. A reflection test holds that every field moves it, and a table test that every field a task delivers is either one of its inputs or declared not one, so a new transport cannot read an input the fingerprint misses. It is never logged.
    2. The ladder, bottom up, on the existing rungs. reachable is a ping and never gates: an open, answering transport is what counts, so a component that blocks ping never reads down for it (the ping lands icmp-reachable beside the probe, one observation per probe, after the verdict). responsive is the transport rung and the gate: a TCP connect on the transport’s port, the protocol’s handshake (ssh key exchange, tls), or, where an open port cannot be detected (udp), the driver’s named request answered (run as a line over tcp today; snmp’s own request is #821, a udp datagram’s #1037). authenticated is the session rung, the login, attempted only when the transport rung passes. A wrong host, address or port fails the transport rung, retryably, and never reads as auth.
    3. Declared in the driver, defaulted by the registry. The spec’s ladder declares whether to ping (ping.enabled; a cloud API says no), the transport rung (transport.rung, with its request), and whether a session rung exists (session.enabled); the transport registry’s rung supplies the defaults, so most drivers declare nothing, and a rung a transport cannot run refuses at write. Each rung is an object so per-family measurement toggles and a burst count and interval (#1063) and a path rung (#1064) join without reshaping it, and a layer-2 presence rung (#1062) slots in below the ping, informational the same way.
    4. The gate. A terminal refusal (auth at the authenticated rung; host-key, certificate, protocol at the responsive rung) gates its rung and every rung above it for the endpoint while the fingerprint is unchanged; the rungs below keep running, so reachability stays observed while auth is rejected. The held session starts rejected, the ssh probe sends no credential (#1060: tried once, never past a pinned key that changed), a stateless poll faults without fetching, and a command fails fast. A changed fingerprint lifts the gate, and so does the rung passing. The #1056 login budget (three silent hang-ups after the secret) feeds it.
    5. Restart safety. The gate is published as the endpoint-rejection property (<rung> <class> <fingerprint>, or none), republished every pull until the worklist reflects it, and carried back, so a restarted node makes no attempt against an unchanged fingerprint. A refusal reported for an attempt under an older fingerprint gates nothing. The ssh pin the node trusted on first use is a learned fact and stays out of the fingerprint; only the operator’s declared pin goes in. endpoint-rejection and ssh-host-key are node control facts the push lane refuses, so no push can plant or lift a gate. Amended (#1059): session-state and session-reason join them, since the console reads them as the node’s account of its own connection: a push could otherwise read a rejected session up, hiding the refusal and its Retry, or plant a reason the node never scrubbed. Amended (#1080): every native probe key joins them. The reachability verdict and its rungs, the probe metrics and their rtt-style timings are read by the console as the node’s observation too, so they are no more a push’s to write than the gate. The refused set is internal/collection/probekeys itself, where each key is ruled node-only or pushable with the reason it may be pushed; none is pushable today, and a test fails on a key declared there and ruled neither, so it cannot ship pushable by omission. The refusal holds on every lane (a native name pushed as an event is refused as the node’s, not as unregistered), under any instance and any casing, and its reason names the key. The node’s own lane never reads the ruling, so it writes every one of them as before. Amended (#1078): a refusal of a changed key appends its evidence, <pinned-key> <offered-key>, to the gate’s value (ADR-0159). Amended (ADR-0160): a tls certificate refusal for a changed key carries the same evidence; the tls keys (tls-certificate, the handshake time and the certificate facts) are node-only, and a driver may not emit a node-only key either. Amended (#1110): the gate publishes its reason beside it as endpoint-rejection-reason, node-only, in the same batch, held session or not; an adopted gate publishes none (ADR-1110).
    6. Connection inputs edit in place (the architect’s ruling on #1061). A driver-attached endpoint’s host, port and attached secret references are patched through PATCH /endpoints/{id} inputs, validated against the driver’s declared inputs (a refused value is a 400 naming the field), its tasks re-derived in the same transaction through #823’s derivation, audited; a transport is accepted only where the driver speaks it. Re-attach is not the path. The confinement the earlier read-only rule bought (a credential never sent to an address its attach did not name) is kept another way: the edit re-resolves every attached secret under the editor’s own secret scope and admin tier, so an editor who could not use a credential cannot redirect it. The fingerprint moves, so a rejected session un-gates and a healthy one recycles onto the new address within a tick.
  • Context: A refusal retrying cannot fix must stop every path that would retry it, not only the held session: the ssh probe retried a params credential every tick (#1060), and a restarted node forgot every rejection. Gating on “what changed” needed one definition of the inputs, computed where the sealed secrets live so a published digest leaks nothing about a value. ICMP is blocked on much installed gear, so only a transport answer can say a component is there. Follow-ons: the udp request rung’s snmp proof is #821; per-rung rtt, jitter and loss as driver toggles, stored as one observation per probe with statistics from windowed calc rules, are #1063 and #1065; a path rung (hop count, network path) is #1064; layer-2 presence is #1062.

ADR-0159: A refused key’s evidence rides its gate, and trusting a key is checked against the one offered

Section titled “ADR-0159: A refused key’s evidence rides its gate, and trusting a key is checked against the one offered”
  • Date: 2026-10-24 | Status: Accepted | Pages: collection, api, glossary, drivers
  • Decision: (#1078, approved in session on 2026-10-24.) A host-key rejection is trusted from the console, and the data it needs is the refusal’s own:
    1. The evidence rides the gate (amending ADR-0158 point 5). A refusal of a changed key (an ssh host key; a tls certificate’s public key, #1035) carries the key the endpoint pins and the key the component offered instead as data (collection.TerminalError Pinned, Offered), and the gate publishes them with itself: endpoint-rejection is <rung> <class> <fingerprint>, plus <pinned-key> <offered-key> for a key refusal, both or neither. The value is declared once (internal/collection/rejection) and read there by the node, the server and the read. A restarted node adopts the evidence with the gate, so what it republishes is what the server holds.
    2. The read serves it. The reachability read’s rejection carries pinned_key and offered_key; the console names both and never parses a fingerprint out of session-reason, which keeps naming them in prose for the property’s series and the CLI reader.
    3. A trust is checked against the offer on record. POST /endpoints/{id}:retry with host_key must name the gate’s offered key while the gate carries one: any other is a 409 naming the one on record, and nothing is written (no pin, no counter, no audit row). The record is the node’s last word, not a live read: a refused node dials no more, so a component that changed again since is read by a plain retry first, and the server does not compare the gate’s connection fingerprint (computing it means unsealing the endpoint’s secrets), so a gate left under an older fingerprint by an offline node holds the check until the node publishes again. Both fail closed. With no key refusal held, host_key still declares a pin ahead of time. The audit row’s old carries the pin replaced and its new the pin set, beside the actor.
    4. The console confirms. Trust this key (gated endpoint:retry, greyed with its reason) opens a confirm that shows both keys and teaches why a key changes (a reinstall, a hardware swap, a man in the middle) through hover, holds the refusal as it was when it opened, sends exactly that offered key, and will not send once the live read’s offer has moved.
  • Context: The fingerprints existed only inside the reason’s text, and a console that parsed prose to send back as a pin would trust whatever the prose said. A separate property for the offered key was the other shape: it is stored on change and published once, so a lost publish or a later refusal could pair an old offered key with a new gate. The gate’s value is republished until the server reflects it and adopted on a restart, so evidence carried in it always describes the refusal it gates; and it is per key, not per transport, so the tls slice reuses it unchanged. A trust confirmed against a stale view (another operator retried, and the component now offers a third key) would pin a key nobody read; the server’s check is what makes “the key shown” binding.

ADR-0160: TLS is its own transport over a shared primitive, and its pin is the public key

Section titled “ADR-0160: TLS is its own transport over a shared primitive, and its pin is the public key”
  • Date: 2026-10-24 | Status: Accepted | Pages: collection, nodes, glossary, drivers, simulation, api
  • Decision: (#1035, under the architect’s approval of epic #1076, decisions 1 to 4 and 7a.)
    1. A distinct transport over a shared primitive. tls joins the registry as a held line transport with the handshake as its rung: the line protocol rides it exactly as it rides tcp, one session machine, one reader, one routing. The handshake is one primitive in internal/collection (HandshakeTLS), which the http (https), websocket and mqtt carriers consume later as a capability on their own transport. The placement rule: a secure variant of a carrier that needs its own endpoint name and its own rung is its own registry entry over a shared primitive; one that needs neither is a capability on the carrier. This amends ADR-0153, which placed tls as a capability on tcp. Amended (#902): https meets both tests (its rung is the handshake, and a component may serve a plain web port beside a TLS one), so it is its own registry entry over this primitive, not a capability on http (ADR-0902); wss beside websocket follows the same answer (decision 4 of #1113).
    2. The mode is a driver input. tls-mode (verify, pin, skip) is derived into the endpoint’s params as the host and port inputs are (those into the one target key, as host[:port]), so it edits in place (PATCH /endpoints/{id} inputs) and moves the connection fingerprint. Amended (#1187): host and port are never params keys; a bare dialed endpoint’s POST /endpoints body carrying them, once stored as given, now returns 422 naming target. The driver declares its default (the seeded newtron-nvp-tls pins, since its gear self-signs); a driver that declares none verifies; a spec defaulting to skip is refused at write, so skip is only ever an operator’s choice, shown on the endpoint. Verify checks the chain against the node’s system roots and the host input as the server name. TLS 1.2 is the floor.
    3. The pin is the public key. The fingerprint of the leaf’s SubjectPublicKeyInfo, in the SHA256: form ssh fingerprints a host key in, so a renewal that keeps the key is no change. Pin on first use follows ADR-0157 point 3: the node trusts the first key, publishes it as the observed tls-certificate (a node-only key the push lane refuses and no driver may emit), and the worklist delivers it back (the declared value first); the declared pin alone is a fingerprint input. The node keeps one pin per endpoint, shared by its held session and its probe, admitted atomically and only once the handshake completes, so neither trusts a key the other refused.
    4. A refusal retrying cannot fix is certificate, at the transport rung. A changed key and any verification failure (an unknown authority, a name mismatch, an expired certificate) reject with their reason, never a timeout; beneath the gate only the TCP connect runs, so no handshake (and so no login, poll, command or arm) reaches the new key, across a node restart too. For a changed key the gate value carries both keys as the evidence ADR-0159 gives a refused host key (<rung> <class> <fingerprint> <pinned-key> <offered-key>), and the reachability read serves them as pinned_key and offered_key, so the console’s trust-this-key notice renders a certificate refusal unchanged and never parses a reason. An operator accepts it with :retry and certificate, or host_key (the key the endpoint’s transport pins, the field a key refusal’s trust action sends), gated endpoint:retry, held to ADR-0159’s rule (the exact offered key while a refusal names one, else a 409), and audited, which declares the pin.
    5. What the probe lands. tcp-open and the connect time, endpoint-responsive, one tls-handshake-time per probe the component answered (a rung-specific name until #1063 folds probe timings into rtt), and, for a certificate the mode accepted, both tls-certificate-expiry (the not-after, a property) and tls-certificate-days-left (a metric, one observation per probe). A refused certificate lands no certificate fact.
    6. The simulated face. The panel serves NVP over TLS (nvp-tls) with a key derived from the simulated component’s id, so it is the same on every run and a pinned endpoint survives a simulator restart; the profile sets the certificate’s validity window.
  • Context: #1035 and the /scope-protocol skill placed tls as an option on tcp. An endpoint’s name is its transport and unique per component, so an option would have let a component hold only one of a raw port and a TLS one, and made the handshake rung a conditional default. A certificate pin rejects every renewal, even one that keeps the key; the key is what ssh pins too. An expression cannot read the clock, so a rule cannot turn a not-after into “fewer than 30 days”: the property is the fact and the metric is the number a threshold rule reads. A per-run simulator certificate would reject every pinned endpoint on each restart.

ADR-0161: Every key has one writer class, held at the Storage Gateway

Section titled “ADR-0161: Every key has one writer class, held at the Storage Gateway”
  • Date: 2026-10-24 | Status: Accepted | Pages: storage, identity and access, metrics and properties, collection, calculations, api, glossary
  • Decision: The architect’s ruling of 2026-10-24 (#1084, #1085, #1086): there is no path by which anything but the node writes what the console reads as the node’s observation, and the rule is structural rather than a check each route remembers.
    1. One writer class per key. Every metric, property and event type has exactly one writer class, resolved from its name and the catalogs and never stored (internal/writerclass; read beside the type as writer_class): node-probe, the keys a node’s own probes and session machine write, declared in internal/collection/probekeys (collection-failed among them now); platform, the keys only the Omniglass process itself writes (health, the rollup’s verdict); calc, a key a calc rule names as its output; and collected, every other key. node-probe and platform are the reserved system family: fixed, internal, declared in code. The self-monitoring follow-on (#1094, the server, nodes, the bus, the database and the workers as components with built-in metrics only the binary writes) is the planned consumer of platform, which takes its keys without restructuring. Amended (#1100): a third reserved class, command-lifecycle (command-issued, a command’s alone), joins the family, and what was stored before this ruling is held to it (ADR-1100).
    2. Each class admits a fixed set of writers, the entry point a write comes through, each fixing the provenance it writes. node-probe admits the node lane alone, bound to the endpoint whose task the node ran; platform the process alone; calc the rule that outputs it, and an operator’s declared value (which resolves ahead of the calculated one, by design); collected every observer (a driver’s emits on the node lane, a push, a command’s reply), a command’s intended value, an operator’s declared value and an event rule’s event. The one declared row the reserved family admits is a key pin (the ssh host key, ADR-0157, and the tls certificate’s public key, ADR-0160), set only through an endpoint’s audited :retry. Operator and command are writers, not classes: a declared or intended row is never an observation, so it contests no observer.
    3. Held at the Storage Gateway, as scope is. Every gateway function that writes a sample or an event row names its writer and holds every row to its key’s class before anything lands; a refusal is ErrKeyWriterRefused, a 422 naming the key and who writes it. A source guard fails on any function that writes a sample or event row without being a registered write path that runs the check, a table drives every registered path with a writer its key does not admit, and a migration that writes sample rows must be ruled as well. The declaration points refuse first with the same ruling: a command type’s target, a driver spec’s emits (and the node’s interpreter, for a task derived before the refusal existed), a calc rule’s output, an event rule’s fire and clear types, and an operator-created type’s name on every lane.
    4. A node-probe key reads only as the node’s observation. The reads the reachability panel, the session pill and the ingest’s transition guard compose over serve the observed series only, so no other provenance beside it stands in for the node’s.
    5. Fusion fits inside one class. Same-key, multi-source reconcile is between the perspectives of the collected class (a driver’s emits and a push, told apart by source): a writer class is the trust boundary, a source the sensor path within it. A reserved key has one observer and never fuses.
    6. No reserved namespace. Existing keys keep their names. The reserved family’s exact names are closed to operator-created types on every lane, which the class resolution needs and a prefix would only repeat. A prefix buys one thing the invariant does not: names an operator cannot already hold when a later release ships a new reserved key. Today such a collision is not clean: the seed’s authoritative upsert takes the operator’s type over, so its later writes are refused naming the new writer, but the rows it wrote before read as the reserved key’s. #1094’s platform metrics are the likely case, so it decides the prefix (or a seed that refuses the collision) before it ships one.
    7. A node’s clock cannot outlive its tenure. A node-probe sample dated more than five minutes past the database’s clock is stored at the database’s now, so a node cannot hold its account of an endpoint (or the gate and pin the worklist reads back) current after it stops holding the endpoint. Health reads serve the rollup’s calculated rows alone, the platform’s version of point 4.
  • Context: The push lane’s refusal of native keys (#1080) was one route’s check on one surface. The other surfaces that land a sample (a declared value, a command, a driver’s emits, a calc rule’s output, the node lane itself) each answered who may write a key for themselves, or not at all, and collection-failed, declared outside probekeys, stayed outside the ruling (#1086). The calc rule’s ownership of its output was the one structural precedent (a calc rule may not write a key a collection writes), with its ingest-side half left open. Generalizing that one primitive to every key, and holding it where every write already passes, closes the class rather than its instances. The split follows the code: a driver’s emits and a push are one class because the shipped drivers emit video-input while a push may write it too, a command targets it, and the properties page’s fusion exists to reconcile exactly that.
  • Amended (#1582): the writer is per group, inside one batch. A node now lands one batch per tick carrying a group per task (ADR-0311), so the writer the gateway holds a row to is no longer one per batch. Each group is bound to its own writer: the component and the endpoint of the task that produced it (point 2, “bound to the endpoint whose task the node ran”), with the node shared by every group of the batch. The gateway admits each group against its own writer before anything lands, and a group whose writer its keys’ classes refuse is dropped alone with the rest of the batch landing. Provenance stays per row (collector_node_id and source_conduit_id), so own and fanned groups in one batch keep theirs. The class a key resolves to, and which writers a class admits, are unchanged.
  • Amended (#1625): the platform keys take no prefix. Point 6 left the prefix to #1094’s platform metrics. They ship without one (#1094’s ruling): a platform key is reserved by its declaration in the platform map in internal/writerclass, as health is, and closed to an operator-created type by that name. The collision point 6 names needs an operator type that already holds a name a release later declares; under the pre-deployment stance no operator data exists to hold one, so the seed’s authoritative upsert stays the rule, and a release after the first external deployment that declares a new platform key decides then whether its seed refuses the collision. The platform class gains a second writer path beside the process’s own: a node’s self-report, admitted only for the declared node-self keys and only on the node’s own platform component (ADR-1625). A platform key in any task group, push, command or calc is refused as before.

ADR-0162: The append-only logs are directories of one file per entry, spliced into their pages

Section titled “ADR-0162: The append-only logs are directories of one file per entry, spliced into their pages”
  • Date: 2026-10-24 | Status: Accepted | Pages: docs with everything, build log, decision log
  • Decision: An append-only log is a fragment directory: one file per entry, frontmatter for the entry’s metadata (a small line grammar both the docs build and internal/docslint read, not YAML), and a page that holds no entries but a directive line where the docs build splices them in. The build log, the decision log, and the anti-pattern catalog all take the pattern. The splice happens on the page’s text before Astro parses it (a parser wrap in remark-fragments.mjs), not as a tree transform, so heading anchors dedupe across the whole page, the table of contents lists every entry, and smartypants and lists render exactly as they did inline; the docs loader keys a host page’s cached render on its fragments so a restored cache or pnpm dev never serves a stale log. ADR numbers stay sequential and stable (ADR-0001 onward, anchors unchanged); two PRs that take the same next number fail TestDecisionsFormat naming both files, and the one landing second runs make adr-renumber FROM=NNNN TO=MMMM, adding FILE= once both decisions are in the tree so that git blame scopes the rewrite to its own lines. Git no longer conflicts on a collision, and main does not require a PR to be up to date, so a collision can reach main; the tool repairs it there too, and a required up-to-date check would prevent it. api/openapi.json is written pretty-printed with sorted keys, and .gitattributes marks the generated artifacts.
  • Context: In the thirty days to 2026-10-24, the build log was touched by 39 of 66 commits on main, the decision log by 21, the catalog by 8, and the one-line openapi.json by 21: every PR appended at the same place, so any two open PRs conflicted, and concurrent ADRs took the same number and were renumbered by hand, references and all. One file per entry removes the shared line; generating the index removes the second place an ADR had to be written (and fixed an index whose blank lines had cut the table at ADR-0095 since #679). A custom merge driver was rejected because GitHub’s server-side merge ignores it. The entries that predate the split keep their logged order under a four-digit sequence prefix (0001- to 0398-) rather than a date, since their landing dates do not run in log order.
  • Amended (#1108): past ADR-0163 an ADR is no longer the next number in sequence but the number of the issue it was decided under (ADR-1108), so the collision this entry’s renumber tool repairs narrows to two PRs adding one issue’s next suffix.

ADR-0163: A udp endpoint binds its own socket, and its rung is a request answered

Section titled “ADR-0163: A udp endpoint binds its own socket, and its rung is a request answered”
  • Date: 2026-10-24 | Status: Accepted | Pages: collection, nodes, simulation, glossary, drivers
  • Decision: (#1037, under the architect’s approval of epic #1076, decisions 5 and 7a.)
    1. The line protocol as datagrams, stateless. udp is built in the transport registry, not held, its rung request. A datagram carries one line; text payloads only, unicast only. There is no connection to hold, so no session-state lands: reachability is the request rung, every tick.
    2. One socket per endpoint. Each udp endpoint binds its own local port on the node, its driver’s listen-port input (a number, 1 to 65535, derived into the endpoint’s params as the host and port inputs are, those into the one target key, so a fingerprint input), else a port the kernel picks. An attach never writes host or port params keys; a bare dialed endpoint’s params carrying them were stored as given before #1187 and are refused at write since (ADR-0160). Its request rung, polls, commands and arm conversation all leave from it, so a reply and a push arrive on one socket with no table of sources. The operator configures the component and the node’s firewall. A datagram from any source but the endpoint’s component is counted, self-logged once per tick and dropped, never published. A shared node port routed by source address was rejected: it cannot tell apart two endpoints behind one address, the IP-to-serial gateway shape ADR-0153 sends serial gear through. Amended 2026-11-13 (#1103): the component is an address, not an address and port. A datagram from the component’s address on any port is the component’s; any other address is foreign. With a socket per endpoint the port match protected nothing, and it read gear that answers from a separate send socket or an ephemeral source port as silent (timeout) while it was answering. A datagram from a different address (a relay, NAT) is still foreign.
    3. Unconnected, with the error queue on. #1037 asked for a connected socket so a closed port reads refused. A connected udp socket filters other sources in the kernel, and those must be counted, so the socket stays unconnected and the node turns on its error queue (IP_RECVERR on Linux), which reports the host’s port-unreachable to the next read; the queue is drained on every report so none holds receive buffer. refused names a cause and never gates; elsewhere than Linux a closed port reads as a timeout.
    4. The rung is the driver’s request answered, and it is the verdict. A udp driver must name ladder.transport.request. An answer (or the component’s refusal by the reply’s error shape) reads responsive; silence reads timeout. With no port to open, endpoint-reachable is the responsive rung, no tcp-open lands, and the ping stays informational. Each answered probe lands one udp-response-time (decision 7a; folded into rtt by #1063), an error-shaped answer included, timed from the first send, since a reply may answer any send, a node-probe key (ADR-0161).
    5. Retries are declared, and a command is sent once. request.retries (udp only, 0 to 5) re-sends a lost datagram, the attempts sharing the endpoint’s one timeout: 2 by default for a poll and the request rung, none for a command unless its binding declares them, since a lost reply must not send a relative command twice; an arm line is sent once too. The delivery carries the binding’s retries. Every udp request declares its reply’s shape (refused at write otherwise). An exchange whose answer came back sooner after its last send than half the component’s latency (learned from sends answered at once) answered an earlier send, so it leaves a ghost that absorbs repeats of its answer for one more timeout, and a slow component’s surplus reply never answers the next ask; a retry that loss caused leaves none, since a lost send draws no reply, so an ask sent once is never starved of an identical answer. A reply later than the whole timeout is not told apart.
    6. Terminal replies gate the transport rung. Over udp a driver’s session block may declare only terminal replies. One that answers gates the endpoint at the transport rung whatever its class, since nothing logs in over udp (a transport whose rung is a request has no session rung), and beneath the gate no request, poll, command or arm is sent under that fingerprint, a node restarted onto a carried-back gate included; the first answered rung after it lifts arms.
    7. Listeners ride the socket. The listeners’ instantiation commands are sent when the socket opens and again whenever the request rung recovers, since a component that rebooted forgot its subscriber; claims follow the held line connection’s precedence.
    8. The simulated face. A persistent udp interface serves the line protocol per source address over the shell loop; the panel’s nvp-udp face is the proving face, joined to the dev fleet with newtron-nvp-udp attached. Its loss (loss_pct) is seeded per datagram: the fate of a datagram is fixed by the device, the face, the direction, its bytes and how many times they have crossed, so a test on a lossy face repeats however traffic interleaves.
  • Context: an open udp port cannot be detected, so the presence check the layered-gate design sketched (udp.open, disambiguated by the ping, pingGates) was never definitive; ADR-0158 put a named request on the ladder for this case, and this transport is its first user over datagrams (snmp’s, #821, plugs into the same dispatch). A per-tick sequence of random draws made a lossy test depend on how probes and polls interleaved; a fate per datagram does not.

ADR-0311: A telemetry batch lands once, in one transaction under its receipt

Section titled “ADR-0311: A telemetry batch lands once, in one transaction under its receipt”
  • Date: 2026-10-26 | Status: Accepted | Pages: messaging, workers, storage, nodes, metrics and properties
  • Decision: (#311, with #455’s ruling and #457’s pin folded in.)
    1. One transaction per batch. The consumer derives a batch’s rows (pure, as before) and lands them through one gateway call, LandBatch, that writes the node’s self-logs, the component’s log lines, and the metric, event and property lanes in one transaction, retried whole on a deadlock abort. A row the gateway refuses fails the batch, so no sink’s rows are left behind for the redelivery to write a second time.
    2. The receipt makes it idempotent. The transaction’s first statement inserts the batch’s id into telemetry_receipt (ON CONFLICT DO NOTHING); a conflict means the batch already landed, and nothing is written. The id is the subject the batch arrived on and its Nats-Msg-Id (ADR-0453), so a publisher can claim only ids under its own subject; a batch with no id is keyed by its stream sequence under the stream’s creation time, which holds across its redeliveries though not across a publisher’s retry. Two deliveries of one batch at once serialize on the receipt’s key. The endpoint’s freshness stamp (#933) stays after the transaction, so it adds no lock to it.
    3. The transition guard is the insert’s condition. A property row is inserted only where the series’ latest row (by ts, then id) does not hold the same value, and the batch first takes a transaction-scoped advisory lock per property series it writes, in sorted order and before any mark or rule lock, so the condition reads the committed latest. #455 ruled the conditional write; a conditional insert alone still races under READ COMMITTED (each transaction’s statement snapshot misses the other’s uncommitted row), so the lock is what makes it hold under concurrent dispatch. The lock stops duplicate rows; it does not order them. Dropping a value equal to the latest is right only if a series lands in the order it was observed (a successor landing first is judged against the wrong latest, and the late batch then leaves the series on a value the device had left), so the consumer keeps one batch in flight (MaxAckPending 1): a batch whose landing fails transiently is redelivered, after a growing delay, before anything behind it, and one the gateway refuses outright (its owner gone, its key’s writer class refusing the writer, a value Postgres refuses as data or by a CHECK) is dropped at once rather than holding the rest; a foreign key or not-null failure is redelivered, since a row the batch referenced may have been deleted under it and the redelivery lands what remains. The cost is stated: a batch failing transiently pauses the lane for its backoff, at most five seconds across its redeliveries before it is dropped. A concurrency pool would need sequencing per publishing subject to keep the same order.
    4. Receipts are kept 24 hours and pruned by the server hourly, in chunks. That is far past the stream’s redelivery, and past a node’s retry of a batch it could not ship, which its spool drops after 12 hours (ADR-0453); a copy arriving after it (a push sender’s own replay a day later) would land again, the one stated residual.
    5. The shipped registries are disjoint by name (#457): the boot seed refuses to seed a name two of the metric, property and event registries share, and a unit test pins the shipped YAML.
    6. The batch keeps the platform’s lock order, and nothing it carries can fail it. It takes every lane’s event rule rows FOR SHARE and then every lane’s calc marks before any lane writes, so it never holds a lane’s series or health lock while waiting on another lane’s rule row (a rule edit takes the row and then health). And since one refused value fails every row, the gateway replaces a NUL in every lane’s text and jsonb before the insert, as the log-line lane already did.
  • Context: The consumer wrote its sinks in separate transactions and acked once, so a failure after an earlier sink committed rewrote it on each of up to five redeliveries, and log_line, written first, multiplied with every one. Two fixes were on the table (#311): one transaction, or ON CONFLICT DO NOTHING on a natural key. The natural key cannot be the mechanism: log_line has none (a device emits identical lines in one instant), and the proposed (owner, key, instance, ts) omits provenance, so an observed row confirming an intended one in the same instant would be silently dropped. One transaction alone fixes a partial failure but not a duplicate delivery of a batch that already committed (an ack lost, a consumer dying between commit and ack, a node’s retry past the stream’s window), so the transaction carries a receipt: one row per batch rather than a key per row, which covers every sink at once and keeps the sample tables free of a uniqueness index the partitioning work (#420) would have to carry. The pages’ earlier “idempotent on (series, ts)” is superseded by the per-batch receipt.
  • Amended (#1582): a node lands one batch per tick, not one per task, and a refused group drops only itself. The node’s spool coalesces the groups of a tick (a TaskGroup per task, each with its own observed time and its metric, property, event and task-log lanes) into one TelemetryBatch, flushed on a timer, at a byte budget, or at once for a session’s pushed samples, so one id, one message and one receipt cover every task a node ran in the tick, and the consumer lands the whole batch in one transaction with a statement count that does not grow with its groups. Point 1 changes from a refused row failing the batch to a refused group being skipped: a group the gateway refuses (its owner gone, its key’s writer class refusing its writer, a value Postgres refuses as data or by a CHECK) is dropped, the other groups land, the receipt is written once, and the message is acked, so a persistent refusal in one task never costs its siblings their samples or forces a redelivery. The gateway refuses the cases it can decide in Go before any write; a value only Postgres refuses reruns the batch with one savepoint per group to learn which groups it refuses, rolls that pass back, and lands the batch without them, still under one receipt. A foreign key or not-null failure, or a deadlock, still fails and redelivers the whole batch. Writer identity (ADR-0161) is per group: each group carries its own component and endpoint, and the node is shared. The batch’s id and bytes are fixed when the spool flushes, so a retry ships the same Nats-Msg-Id and payload. The receipt horizon stays 24 hours (point 4): it outlives the spool’s 12 hour drop age plus the redelivery window, so the larger batch adds no new residual. The node subject carries groups only; the task lanes at the top of a batch stay on the API push subject, and a node-subject batch that carries them is terminated.
  • Amended (#1637): a batch is the spool’s flush window, not a tick. “One batch per tick” above reads as one batch per flush window (1s or 512 KiB, whichever comes first), which the spool already holds without a tick, so the per-kind timers that replace the tick change nothing here (ADR-1637).
  • Amended (#1896): one batch in flight per partition, so order holds per node. Point 3’s “concurrency pool would need sequencing per publishing subject” is built as partitions: the stream files each node’s batches under a partition of its name and each partition’s durable keeps one batch in flight, so a node’s batches land in order while the partitions land side by side (ADR-1896).
  • Amended (#1928): the freshness stamp is inside the transaction. Point 2’s “the endpoint’s freshness stamp (#933) stays after the transaction” is reversed: LandBatch stamps the endpoints its admitted groups carried as its last write, so a batch commits once, and the stamp’s SKIP LOCKED keeps its row lock from making a concurrent batch wait (ADR-1928).

ADR-0318: Every catalog key is a namespace and a key

Section titled “ADR-0318: Every catalog key is a namespace and a key”
  • Date: 2026-10-29 | Status: Accepted | Pages: storage, alarms and actions
  • Decision: (#318, approved 2026-10-29; amends ADR-0144’s clash rule.)
    1. The identity is the pair. The 18 catalogs carrying official (the signal vocabulary, the types, the alarm and notification registries, the catalog, and roles) gain a namespace column beside name. A namespace is one kebab segment, like a name.
    2. og is the platform’s, and only the seed writes it. A shipped row lands in og, an og row is always official (a CHECK holds it), and the seed’s conflict update applies only to an og row, so a release never writes an operator’s row. An operator’s row is local unless they name another namespace. official stays its own column: the namespace says who named a key, official who stands behind it.
    3. A bare name resolves local, then og (the search path, #1432), in every reader, and across catalogs: an operator’s key shadows a shipped one of the same name, and the shipped one stays reachable by its qualified name. It generalizes ADR-1307’s rule rather than adding a second.
    4. Nothing parses a key. Storage, the telemetry wire (#1433) and API bodies carry the pair as two fields. namespace/name is the rendering for display, the CLI and docs, and a URL carries the pair as exactly two path segments (#1434), so a key never collides with a child route and nothing is escaped.
  • Context: the seed upserted every catalog by name, authoritative on conflict. Of 16 such upserts, 14 took an operator’s row of a shipped name over (a custom role’s permissions replaced under its holders among them), and two refused and stopped the boot. #1307 answered the cross-catalog half; a namespace answers both, and gives community and partner publishers (crestron/) a place to ship without colliding with the platform’s vocabulary.
  • Not chosen:
    • A separator in the stored name. : and :: break the API’s :verb routes (chi ends a path parameter at the first colon); @ and + do not survive the console client’s escaping; . is the dotted address’s. The pair in columns needs no separator at all.
    • A namespace segment that defaults to the platform’s. A bare create lands in local, so a namespace called default would name the wrong side.
  • Built so far:
    • The columns (#1431): namespace on the 18 catalogs, backfilled from official; the seed writes only og.
    • The search path (#1432). Uniqueness is (namespace, name) on every catalog but severity_level, and the seed upserts on it, so a shipped name an operator holds lands beside theirs. <table>_in_effect() is what a bare name reaches (local, then the og rows local does not shadow, across the three signal catalogs for those), and every by-name read in the storage package goes through it, refRows (by uuid any row, by name the search path) or catalogRows (one namespace), held by TestNoByNameLookupSkipsTheSearchPath, a scan of the package’s SQL. A shipped row’s references (a product’s vendor, driver and type, a child type’s parent, a command’s target, a rule’s key and events, a product’s contract) resolve inside og, and a shipped driver validates against og.
    • Rulings (#318, 2026-10-29): a role refuses ambiguity rather than shadow (a name both local and og hold reaches neither, so its holders lose the role, never gain the wrong one; operators have no role-create path yet, and exact role references come with one), and severity levels are overridden, never shadowed, keeping names and ranks unique install-wide.
    • Divergences, logged: a grant naming an ambiguous role is refused as an unknown role (422) rather than the ruling’s 409 naming both, since operators cannot create a role yet; a shipped rule or command type is validated against og at seed, but at run time follows the search path like every reader, so a rule on a shadowed key judges the operator’s series; and which command types target a key matches any row of its name, since a shipped command type’s target is pinned in og.
    • A reserved key is never shadowed, in SQL too (#1447): the three signal catalogs’ <table>_in_effect() return neither tier’s row of a reserved key both local and og hold, as ResolveNameLane resolves it for the registry, so no reader serves an operator’s frozen values of a name a later release reserved. The reserved names live in reserved_key, which the boot seed reconciles to writerclass.ReservedNames() on every start.
    • An operator’s own create or rename never takes a name og holds (a trigger raises the name’s unique violation, as before): a shadow arises only from a release.

ADR-0417: The server prunes each sample lane to a window, in bounded chunks

Section titled “ADR-0417: The server prunes each sample lane to a window, in bounded chunks”
  • Date: 2026-10-28 | Status: Accepted | Pages: storage, settings, platform settings
  • Decision: (#417, the first of its three PRs, ruled 2026-10-28.)
    1. One window per sample lane, install-wide.
      • A platform-domain retention settings namespace holds metric_days (14), property_days (90) and trend_days (730, read once hourly trends exist, #1276).
      • Each is whole days from 1 to 36,500. The ceiling matters: a cutoff a billion days back overflows pgx’s timestamp encoding and reaches Postgres as a date in the far future, which every row is older than. The pass refuses a lane whose stored window is out of range, rather than pruning it.
      • They are global settings first, as ruled on #1265, not cascade-resolved as the storage page’s design proposed: a window is a fact about the install’s storage, not something a location or a group would scope.
      • The namespace is client-visible, since a window is no secret and a history chart can say how far back it reaches.
      • Retention is the first integer setting the console edits, so the Settings page now writes a number as a number (wireValue); it had sent the typed text, which the API refused.
    2. A pass runs beside the receipt prune.
      • bus.Server runs it at start, on a goroutine of its own, as it already runs the receipt prune, the settlement sweep, the rule reconcile and the calc tick. It decides nothing about #419’s background-work spine that those loops have not already decided.
      • A pass that kept up runs again in an hour. One that left a lane behind, by its chunk budget, a failure or its own five-minute deadline, runs again in a minute. Each lane has a deadline of its own, so a slow lane never starts the next on an expired context.
      • The pass itself (retentionPass) holds no clock and no database, so it is tested with neither.
    3. Bounded chunks.
      • A PruneSamples call deletes at most a chunk of one lane, one owner arc per statement and each its own short transaction.
      • A pass deletes a lane chunk by chunk until a chunk comes back short, or until it has spent 40 chunks of 5,000 rows, and then names the lane as behind.
      • A first pass over a large backlog therefore never holds the database, and a backlog drains at up to 200,000 rows a lane a minute.
    4. What a prune spares. ADR-0080’s floor holds (never a declared row, never the latest row of a series), with two refinements:
      • Latest under both orders. The latest-value reads order a series by ts then id, the health reads by id. After a clock step-back (#801) the two disagree, so a row is deleted only when some row of its series has both a later-or-equal ts and a higher id. Neither reader’s latest row is ever removed.
      • Command lineage stays. A command’s intended row (command_id set, one per settleable command) is kept. The command table is never pruned and reads its intended value back from that row, so pruning it would turn a settled command’s history into a fire-and-forget one.
    5. Cutoff first, then a per-row index search.
      • The first PruneSamples ranked every row of each table with row_number() before applying the cutoff: a full scan and sort per pass, the 2026-10-27 storage review’s finding.
      • The rewrite takes old rows by the cutoff, then checks each for a newer row of its series with a scalar subquery limited to one row, walking up from the candidate’s ts. Walking down from the newest row would first pass every row a node’s clock future-dated before it was corrected, since the id test is a filter rather than part of the index condition (measured: 2.5 s a chunk against 46 ms, with 2,016 skewed rows a series). An EXISTS is not used: Postgres flattens it into a semi join, which on PG18 at 2.5 million rows it ran as a hash over the whole table, 1.5 s a chunk against 61 ms for the per-row search (the 2026-10-28 review).
      • Every arc that has samples is searched through an index:
        • metric_owner_idx and property_series_idx for a component;
        • property_system_owner_idx and property_location_owner_idx for a system or a location;
        • a new partial metric_arc_owner_idx for a metric a system or a location owns (a calc rule’s output).
      • TestPruneSamplesReachesAnIndexOnEveryArc holds each search with the accesspath instrument: the right index, with a condition bound to the candidate row. The new index is partial on component_id is null, so a component’s sample (every node probe and driver poll) pays nothing for it.
    6. The floor’s amendment waits. “The latest row within retention” waits for ts partitioning (#420), where dropping a partition could otherwise remove a quiet series’ only row, and for declared rows moving to a table of their own (#1265).
    7. Log lines by severity band (#417, the second PR).
      • The same pass keeps log_line and node_log by four bands rather than eight levels (logline.RetentionBands):

        • debug, 3 days;
        • info and notice, 14 days, and a line with no severity is kept with info;
        • warning, 30 days;
        • error, critical, alert and emergency, 90 days.

        These are retention.log_debug_days, log_info_days, log_warning_days and log_error_days, shared by both tables.

      • A log line has no floor: it is not a series’ value, and an event that named one as its source keeps itself and drops the link (on delete set null).

      • Each band’s prune is searched, not walked:

        • a new (severity, ts) index per table, which on log_line replaces the severity-only one it covers;
        • a partial (ts) index for lines with no severity.

        Each statement orders by its index’s columns. A LIMIT with no ORDER BY let the planner prefer a sequential scan once retention made severity and time correlate: 2.4M rows read for a chunk that found none (the 2026-10-28 review). So the BRIN limit above does not apply to logs. Every prune, sample or log, takes its chosen ids as an array (id = any(array(...))), so the outer delete probes the primary key rather than a small table’s planner hash-joining an IN over a sequential scan. TestPruneLogsReachesItsIndex holds the index search; TestPruneStatementsKeepTheirShape holds the order and the array, which a plan test with sequential scans priced out cannot see.

      • event.source_log_line_id gets the index its on delete set null needs. The action runs once per deleted line, and without the index each one scanned the never-pruned event table: 27.7 s for a 2,000-line chunk over 200k events, 8.8 ms with it.

      • A one-time backfill mapped every stored severity onto RFC 5424’s canonical set, trimming whitespace as Go’s strings.TrimSpace does, with its alias list held to internal/logline’s by a test. node_log writes are now normalized at the gateway, as log_line writes have been since #1145. A band never meets a stray word.

    8. A type can keep a window of its own (#417, the third PR, ruled 2026-10-28).
      • A nullable retention_days on metric_type and property_type overrides the lane’s window; null is the lane’s.
      • It is set by a custom method, POST /metric-types/{name}:setRetention and the property-type twin, which works on an official type. PATCH and the official read-only rule are untouched, and the boot seed’s upsert never writes the column (a re-seed keeps it).
      • The method is audited as set_retention and gated like the retention settings: <type>:update, plus platform:update, which the handler enforces. The seeded Operator role holds the first and not the second.
      • days is required, so only an explicit null returns a type to its lane’s window, and an empty body is refused.
      • The lane’s own prune skips every overridden type. The pass reads the overrides and gives each type a lane of its own (metric/<type>), pruned by the same statements with a type predicate, so the floor, chunking and per-row index probe are unchanged. TestPruneSamplesReachesAnIndexOnEveryArc holds both forms.
      • A typed prune carries the window the pass read and deletes nothing unless the type still has it, so an override cleared or changed mid-pass never prunes by the old one.
      • A typed prune finds its type’s rows through an index rather than reading every old row of the lane. For a metric a system or a location owns, that is metric_arc_owner_idx, which leads with the type; every non-component prune states component_id is null (true under the exclusive owner arc), so the index’s partial predicate is provable. Without it the review measured 4,756 buffers a call at 400k rows; with it, 4.
      • Not shown in the console. The CLI and API set it.
  • Context: Nothing pruned the sample tables. At the lab’s cadence the metric table grows by millions of rows a day, and a hosted instance has to stay bounded. PruneSamples shipped ahead of any caller (#591) to fix the floor first; this is its first caller.
  • Known limit: finding the old rows walks every page the ts BRIN cannot rule out. Once vacuum frees pruned pages and ingest reuses them, a range holding both old and new rows matches every cutoff, and BRIN ranges widen and never narrow. Over time a pass’s last, short chunk reads much of the table. Hence the hourly steady state; ts partitioning (#420) ends it by dropping whole partitions.
  • Not chosen:
    • A cascade-resolved window per location or group. No ruling or use case needs it, and the settings engine’s platform domain is the install-wide level.
    • Waiting for #419’s clock. The server already runs five ticker loops; one more, beside the receipt prune, is the same pattern.
    • A btree on ts for the candidates. It would keep the candidate search narrow, but every metric row would pay for it on insert. Partitioning is the fix that costs ingest nothing.

ADR-0422: A system owns its own telemetry, and a location owns no observed sample

Section titled “ADR-0422: A system owns its own telemetry, and a location owns no observed sample”
  • Date: 2026-10-27 | Status: Accepted | Pages: metrics and properties, storage, core entities, collection, identity and access, api, architecture
  • Decision: (#422, the architect’s ruling: build it for systems, drop it for places.)
    1. A system owns its own samples, from two producers. A system calc rule over its members writes a system-owned calculated metric or property (#997), the primary path. A push names the system as its owner (owner.kind: system on POST /telemetry:push) for telemetry about the system as a whole, such as a cloud service’s account of the room it serves. Events ride the same push: a system’s caught event lands on its own arc and reads in its events. The ingest stamps the arc the binding resolved on every lane, never a hardcoded component.
    2. The push fence joins the system tier. telemetry resolves on the component and system tiers (ADR-0752’s stated condition, with its test): a system owner is resolved through ADR-0116’s split with visible_set(P, telemetry, push) as the action half and, push being the stronger grant, as enough to see the system; a miss resolves again with the caller’s system:read only to choose the refusal, a non-disclosing 404 outside both or a truthful 403 when readable but not pushable. One check per batch. The tiers do not leak: push on a system confers nothing on its members, push on a member nothing on its system, and a location-tier grant reaches neither.
    3. A system has no endpoints, so its push is owner-level and has no log lines. An observation’s instance is the endpoint it came through (ADR-0456), and a system has none, so a system push naming an instance is refused whole with a 422 (with no endpoint read). A log line is component-owned (#589), so a system batch carrying one is a 422 too, before anything resolves.
    4. A system’s samples read where its own reads are. Its effective metrics carry an observed or calculated series, its effective properties a calculated one, a series’ history reads on /systems/{name}/metrics/{metric}/samples and /properties/{property}/samples, which is where an observed system property reads today. Every read is gated by system:read and scope-injected on the system tier. A separate reconciliation read for systems was built and withdrawn in review: every property, declared, calculated, observed or told, is to be read through one /properties read for components and systems alike, carrying want, told, is and drift on the rows that have them (the unified properties read, #1297). Amended (#1297): that read landed: an observed system property is a row of GET /systems/{name}/properties, with its reconciliation (ADR-1297).
    5. Node-collected system telemetry is a fan-out, not a system-owned endpoint. A component that speaks for many owners (a cloud or SaaS service modeled as a component) collects once, and each value lands on the owner its identity names through the value-to-owner index, one primitive for a node’s poll and a webhook’s post, extending the webhook ingress rather than duplicating it (#1282). An endpoint stays a component’s.
    6. A location owns no observed sample. Nothing collects or pushes telemetry for a place: a push may not name a location, and the docs no longer claim location-level samples are first-class. The location arm of the sample arc stays for what a location does own: an operator’s declared properties and its calculated health.
  • Context: The docs called system-, location- and node-level samples first-class while the ingest hardcoded owner_kind=component on every lane and the push route refused any other owner kind, so an operator following the SaaS guidance (“telemetry of a room maps to system-owned samples”) found no way to do it. Building it for both systems and places, as #422 first proposed, would have needed system- and location-owned endpoints: a new arc on endpoint, its addressing, its scope tiers, and an answer for every endpoint feature that assumes a component (commands, reachability, the webhook token). The architect ruled the narrower cut: a system’s own telemetry is mostly calculated from its members, a push covers the rest today, and the collected case belongs to the fan-out the collection page already designs; a place has no telemetry of its own to collect.

ADR-0453: Telemetry is published through JetStream with an ack, a minted Nats-Msg-Id, and a bounded spool

Section titled “ADR-0453: Telemetry is published through JetStream with an ack, a minted Nats-Msg-Id, and a bounded spool”
  • Date: 2026-10-26 | Status: Accepted | Pages: messaging, nodes, workers, api
  • Decision: (#453, absorbing #454.)
    1. A publish is done when the stream says so. Both lanes publish under the batch’s id through collection’s helpers: the push route (and the webhook route, which publishes the same way) through PublishBatch, a JetStream publish that waits (bounded) for the stream’s ack, retrying a failed attempt twice, backing off, and answering 503 when none is acked, so a 202 is the stream’s word that OG_TELEMETRY stored the batch; the node through StartBatch, an asynchronous publish whose ack its spool waits on (point 4).
    2. The Nats-Msg-Id is minted, once per batch. A UUIDv7, minted when the batch is built and kept across every attempt, so an attempt the stream stored but whose ack was lost makes the retry a duplicate. Random in its tail rather than a hash of the content, because two batches a device really sent twice are two batches; time-ordered in its head, so each publisher’s receipts append at the right edge of the receipt index rather than dirtying a random page of it per batch; and free of the node’s name, so it does not wait on bus identity moving to principal_id (#426). The server keys its receipt by the subject as well, so a publisher cannot claim another’s id.
    3. The stream remembers an id for five minutes (Duplicates on OG_TELEMETRY): a retry inside it (the next tick, the route’s retry) is answered with the first copy’s ack and stored once. A retry past it is stored again and held by the receipt (ADR-0311), so the window saves work and the receipt is the guarantee. The consumer double-acks, and a lost ack costs only a redelivery the receipt turns into a no-op.
    4. The node spools what the stream has not acked. Every node telemetry publish goes through a bounded, in-memory spool. A send only queues; one shipper goroutine keeps a window of up to 32 batches with the stream, removing each as it is acked, so no caller waits on the stream and the node ships about 32 batches per round trip. A batch the stream has not acked is held and shipped on the next tick, under its id, and the batches with the stream behind it are sent again with it (a copy already stored is a duplicate). After a failed attempt the spool holds, so a node that cannot reach the bus pays one failed round per tick rather than one per batch. A batch the bus can never take (over its payload limit, a malformed subject) is dropped and told, never held, since held at the head it would block every batch behind it. Past 10,000 batches, 16 MiB or 12 hours the oldest batch drops (never one with the stream); the drop is told once at its start and once, with the count, when the spool drains, and the run loop forgets the transitions it remembers as sent so the next tick sends current state again. The age cap sits inside the receipt’s 24 hours, so a stored batch whose ack was lost cannot return after its receipt is pruned. A one-shot run ends only once its batches are acked; a stopping node drains for five seconds.
    5. The window stays in order, over a connection that never gives up. One connection delivers in the order publishes were made, and the node buffers nothing across a reconnect (ReconnectBufSize -1): a publish during an outage fails at once and the spool holds it, so a later batch never lands ahead of an earlier one that failed. That order is what the property lane’s transition guard, which compares a value with its series’ latest, relies on, with the consumer keeping one batch in flight on the other side (ADR-0311 point 3). One residual is stated: a stream that refuses one batch and takes the next (at the server’s JetStream storage limit, should the consumer free space inside a window) could store them out of order; OG_TELEMETRY sets no limits of its own. The connection reconnects without limit, so an outage longer than the client’s default budget (60 attempts) ends with the spool shipping again rather than a node that runs and never ships.
  • Context: Both publishers used core NATS (#453): a node’s publish returned before anything was stored, and the push route’s flush proved only that the bytes reached the server, so a 202 could stand for a batch the stream never kept, and a node behind a flapping link lost every tick it could not deliver, silently (#454). The spool is memory, as the nodes page designed (not durable at the edge): a node restart loses what it held, and the cascade-resolved buffer knobs and a node.buffer sample stay design.

ADR-0456: An instance names which value of one key on one owner a row is, and an owner-level read reduces across every instance

Section titled “ADR-0456: An instance names which value of one key on one owner a row is, and an owner-level read reduces across every instance”
  • Date: 2026-10-26 | Status: Accepted | Pages: metrics and properties, commands, api, glossary
  • Decision: (#456, the architect’s ruling; a sub-issue of #430.)
    1. One meaning. instance names which one of several values of one key on one owner a row is. Series identity stays (owner, type, instance, provenance), and the empty instance is the owner-level series.
    2. One stamper per provenance. Observed: the observer. On the node lane, the endpoint whose task collected it (the ingest stamps the endpoint’s name where a sample names none; a driver naming its own instance, one series per port, is the authored form still design under #430); on the webhook lane, the endpoint the post arrived at; on the push lane, an endpoint of the owner the sender names, else empty. A push naming an instance that is no endpoint on its owner is refused whole with a 422 naming the instance and listing the owner’s endpoint names (at most ten, then a count), checked once per batch; a sender reporting for the owner as a whole names none. A command’s reply read as an observation lands on the endpoint it was dispatched over. Amended (#1282): a value a conduit fans out to another owner is observed at the empty instance, its observer named in source as <conduit component>/<endpoint>, since the conduit’s endpoint is no endpoint of that owner and would read as a retired observer (ADR-1282). Declared: the operator. Every shipped route (a component’s, a system’s and a location’s properties) declares owner-level, the empty instance, and a per-instance declaration waits for a surface that addresses instances; the one declared row already written under an endpoint is a key pin (ADR-0157, ADR-0160). Intended: the command’s instance, empty for an owner-level intent. Calculated: empty, since a calc output is aggregate. Health: empty, always and deliberately. An entity has exactly one health, so a health row never carries an instance, and no reader or writer should give it one.
    3. How a read resolves. A question about the owner (the empty instance) over an instanced key reduces across every live instance of the key on the owner. A question naming an instance reads exactly that series and never reduces. An observed instance is live when it is the owner-level one, names an endpoint the owner has now, or names no transport (a series a push wrote before the push lane required an endpoint, which nothing now extends). One that names a transport the owner has no endpoint of is a retired observer: an endpoint’s name is its transport (ADR-1133), so it names an endpoint since deleted (a changed transport is a delete and a new endpoint), and its last reading is frozen, since nothing prunes a series’ latest row. An owner-level read leaves it out; its rows stay readable on their own series. Age cannot be the test, because a property is transition-only and a live, unchanged value carries an old ts. So is an endpoint that still exists but whose driver’s current spec no longer emits the key (#1217), and a native probe key stays live on its own endpoint. When driver-named instances land (#430), the liveness rule must cover them too, since an instance naming no transport would then no longer mean a series no lane writes.
    4. Reconciliation (want, told, is): is resolves across every observed instance, worst-case. Drift is any observed instance disagreeing with want; is is then the newest disagreeing value, else the newest agreeing one, and the read names the instance it came from (is_instance). told is the newest intended value across instances. Want stays the owner-level declared cascade.
    5. Settlement. A command with an instance is judged on that series alone. An un-instanced command is judged on the endpoint that carries it, where that driver’s observations of the target land: the one it was dispatched over (#900, ADR-0141, kept), or, before a node takes it, the one queued to carry it (the first endpoint, by name, whose driver binds its type, the one a node is handed). Only an un-instanced command no endpoint can carry is an owner-level intent, judged any-instance-agrees over the live instances: settled when one agrees (at once when that observation was taken at or after the intent, else when the window closes), failed when instances were observed and none agrees past the window, and timed out when nothing was observed. A command still queued, which no node has taken, never reached the device, so a reading that disagrees is not its answer: its window closing is a timeout that says where it stopped, never a failure. An observation runs the settle check of every command judged on its instance and of every owner-level one, and the computed verdict reads the same observation the recorded outcome did.
    6. A current-value display (a component’s vitals row, #1020): the newest value across instances, naming the instance it shows. Recorded here; #1020 builds it.
  • Context: The writer and the readers disagreed. The ingest stamped every node-lane sample with its endpoint’s name, but reconciliation read is and told only at the empty instance, so a property collected through an endpoint could never appear as is, and drift was computed against a value that could never arrive. Settlement read the empty instance too, which #900 had fixed only for a command a node had already carried, and the verdict a command’s issue answered with kept reading the empty instance even then. The break was latent while nothing collected a declared property, and live the moment a driver does (the seeded switcher drivers emit video-input, which set-input targets). One meaning for the column and one resolution rule for every reader, rather than a patch per reader, keeps the next one (the vitals row, #1020) from repeating the split. The authored form, a name[instance] suffix in an extract spec, stays design under #430.

ADR-0503: A role name addresses one role per system

Section titled “ADR-0503: A role name addresses one role per system”
  • Date: 2026-10-26 | Status: Accepted | Pages: core entities, api
  • Decision: (#503, the architect’s ruling in session for the 0.1.0 release, #825.)
    1. A name means one role per system. A system’s effective roles are the ones its standard declares plus the ones declared on it, and the staffing routes, the console and health all address a role by its name within the system. A write that would leave a system with two roles of one name is refused with a 409 naming the role, the standard and the system, on every path that can create one: declaring on a system a name its standard already declares, declaring on a standard a name a conforming system already declares itself, and changing a system’s standard to one that declares a name the system declares itself.
    2. Shadowing is refused, not supported as an override. An override would need the system’s role to replace the inherited one in the health rollup and in staffing, and the resolver to prefer one arc deterministically: a second semantics nobody asked for, and the one the reproduction showed is easy to get half right. The registries settled the same question in #443: a name present in both is a collision, and a collision resolves to nothing. An operator who needs a second slot names it.
    3. The boot seed defers. Shipped roles are seed-if-absent example content the operator owns (the seed model), so a shipped role that a conforming system already declares itself is not installed, rather than failing the boot or shadowing the operator’s role.
    4. A collision written before this rule is refused, never resolved silently. The resolver every staffing write takes reads every role of the name and refuses a second match naming both, instead of binding whichever row the database returned first; withdrawing the system’s role (which is arc-scoped and always worked) resolves it.
    5. Serialized. The check reads one table and writes another, so every write that changes which roles a system has (both arcs’ declarations and withdrawals, a standard change, the role seed, a standard’s delete) takes one advisory lock first, before any other lock its transaction takes. An edit that resends a system’s current standard, as the console does on every save, is not a standard change and takes no part in it, so the lock serializes only the rare acts it is for.
  • Context: system_role_name_key is unique per arc, so ('standard', std, NULL, 'table-mic') and ('system', NULL, sys, 'table-mic') were distinct rows, and resolveRole matched both arcs on name with no ordering and read one row. Reproduced live: a system role declared over an inherited one was accepted; staffing it landed on the standard’s role; a component that exactly matched the ad-hoc role was refused naming requirements it never had; and the shadowed slot, unstaffable, held the system’s health at its worst impact for good. The rule also makes ADR-0506’s match by name sound: a name that means one role on each side of a standard change cannot restaff onto the wrong one.

ADR-0506: Changing a system’s standard carries its staffing onto the roles that still exist

Section titled “ADR-0506: Changing a system’s standard carries its staffing onto the roles that still exist”
  • Date: 2026-10-26 | Status: Accepted | Pages: core entities, api
  • Decision: (#506, the architect’s ruling in session for the 0.1.0 release, #825: migrate the roles that still exist, release the ones that do not, and never wedge the component.)
    1. A role that still exists keeps its staffing. On a standard change, an assignment to a role the outgoing standard declares moves onto the role of the same name the new standard declares, in the same transaction as the repoint. The row is moved, not replaced, so its id and its audit history hold. It keeps its position when that position is free in the new role and within its capacity, and takes the lowest free one when it is not.
    2. Only a component that still fits moves. The typed-slot guard runs again against the new role (its accepted types and pinned products), and the new role’s capacity is respected, lowest positions first. A role of the same name that wants something else is a different requirement, so a component that no longer satisfies it is released, never staffed into a mismatch.
    3. Everything else is released, and released means a member with no role. A role the new standard does not declare, a component that no longer fits, and an occupant past the new capacity all lose the assignment and keep the membership, so the component can be unbound, restaffed or deleted at once. Clearing the standard (a one-off system) releases every inherited assignment; roles declared on the system itself are not touched by any of this.
    4. Audited and recomputed. Each move is an update and each release a delete of the assignment in the audit log (keyed on the assignment’s id, its images naming the system, both standards, the role, the component and the position), written in the change’s transaction, and the system’s health recomputes after the staffing has settled, so the recorded verdict already counts the carried occupants.
    5. Serialized against staffing. Every staffing write (assign, unassign, swap) takes a per-system staffing lock (an advisory lock keyed on the system’s id) shared before it resolves the role, and a standard change takes it exclusive, after the role-name lock and before it touches the system’s row. A staffing write either finishes before the change reads the assignments or starts after the change commits and resolves against the new standard; neither can leave an assignment on the outgoing standard behind. It is an advisory lock and not the system’s row FOR SHARE: every label cascade takes the label lock and then system rows for update, and a staffing write takes the label lock after this one, so a row lock closed a cycle with every cascade (the adversarial review measured it deadlocking two rounds in three). A role withdrawal and a standard’s delete take the role-name lock a standard change takes (ADR-0503), so neither interleaves with a carry, and the delete also holds the standard’s own row across its in-use count, which a system created onto the standard waits on through its foreign key. A withdrawal waits for the carry; a delete either sees the system that moved or was created onto the standard and refuses, or runs first and the write onto it fails as an unknown standard. The foreign key would otherwise null that system’s standard, a standard change that skipped the carry. Every step of a standard change keys on the change’s own locked decision, never on comparing an unlocked read with the row it wrote, so a save that resent the standard it read while a change committed carries and recomputes nothing of its own.
    6. The strands already made are released once. A data backfill deletes every assignment whose role is neither the system’s own nor its current standard’s. Those rows have been invisible to the roles read and to health since their standard moved, so releasing them changes no verdict and no visible staffing; it only frees the components they wedged.
  • Context: UpdateSystem repointed standard_id and left every assignment on the old standard’s roles. Reproduced live: the assignment vanished from the roles read, unassigning it was a 404 (the resolver joins only the current standard), unbinding the member a 409 (it still counted as staffing), and deleting the component was refused by the assignment’s restricting foreign key, while moving back silently reactivated the staffing without re-running the guard. The issue argued against matching by name because it restaffs on a collision (#503); that objection is closed by ADR-0503, under which a name means one role per system, and by running the guard again on every move.

ADR-0508: The boot seed installs a shipped role whole, and repairs a set an unrevised role is missing

Section titled “ADR-0508: The boot seed installs a shipped role whole, and repairs a set an unrevised role is missing”
  • Date: 2026-10-26 | Status: Superseded by ADR-0827 | Pages: core entities
  • Decision: (#508, the architect’s ruling in session for the 0.1.0 release, #825: make the seed transactional and self-repairing.)
    1. Whole or not at all. The role row and its typed-slot sets are written in one transaction, the way SetSystemRole already wrote them, so a fault between the statements (a killed first boot, a reset connection, a shipped declaration naming a type the registry lacks) leaves nothing behind rather than a role that accepts anything.
    2. Repair what only a partial install leaves. On a boot that finds the role already present, the seed reads it instead of returning unread. A role the seed wrote and nobody has revised that holds no accepted type while the shipped declaration names some receives the shipped accepted types; the same for pinned products. That is exactly the state the old two-statement seed could leave, and it heals on the next boot. “Nobody has revised” is updated_at equal to created_at (SetSystemRole’s update bumps it); “the seed wrote it” is that no audit row names the role, because every operator write of a role is audited in its own transaction and the seed never is. The timestamps alone cannot tell: a role an operator declared through SetSystemRole’s insert and never revised carries equal timestamps too, and an empty set when it accepts any type, so a release shipping a role of the same name would otherwise fill it (the adversarial review reproduced exactly that).
    3. An edit still wins. A set holding any rows is never touched, and a role an operator declared or revised is never touched at all, so retuning a shipped role survives every restart as before (the seed model). The accepted edge: a later release that adds a requirement to a shipped role that shipped with none fills it in on an install nobody has edited, which is what a fresh install of that release carries anyway.
  • Context: SeedSystemRole ran the role insert and its typed-slot inserts as separate pool calls, and on a later boot ON CONFLICT DO NOTHING returned without reading the role. Reproduced live: a role whose capability insert failed was committed with no requirement, and seeding it again after the registry was fixed returned nil and left it empty for good, so the assignment guard accepted any component into the slot while health counted it against quorum. The typed-slot model (#626) replaced capabilities since the issue was filed; the window and the missing repair were the same.
  • Superseded by ADR-0827: no boot plants a standard any more, so the seed lane this decision repaired (SeedSystemRole, SeedRoleChoice, and the repair of a role an interrupted seed left without its typed slot) was retired (#1332). A standard’s roles and choices are written whole by the audited create from a template (CreateStandardFromTemplate), in one transaction.

ADR-0510: A membership or a role assignment costs a write on both of its ends

Section titled “ADR-0510: A membership or a role assignment costs a write on both of its ends”
  • Date: 2026-10-26 | Status: Accepted | Pages: identity and access, api, core entities
  • Decision: (#510, the architect’s ruling in session for the 0.1.0 release, #825.) A membership or a role assignment writes onto both of its ends, so it costs a write on both.
    1. The five routes that name a component (add, remove and re-default a member; assign and unassign a role) need component:update beside the system:update that gates them. The handler checks the permission before anything resolves and refuses with a 403 naming it, as the component create does for the system it binds (ADR-0107); the permission is published as the route’s x-omniglass-conditional-permission, the condition being the component its path always names.
    2. The component end is scoped in the gateway, in sets resolved for the component tier. A bind (add, assign) resolves the component in component:read and requires component:update, the read-then-action split (#736) applied one tier over: out of read is the non-disclosing 404, readable but not writable a 403. Ambiguity is judged inside component:read, so a refusal lists only rows the caller may read. A write naming a component already related to the system (remove, re-default, unassign) resolves it among the members or occupants and requires component:update alone, a 403 either way, because the system’s own member list and role read already name it and a 404 would deny a row the caller is looking at. A name that is not a member or an occupant here is told apart from one that names nothing only within component:read: a component outside it answers the same 404 a missing name does, so no removal route is an oracle for which components exist.
    3. A system-wide act that settles bindings without naming a component (deleting the system, withdrawing a role it declares, changing its standard) stays gated on the system alone. It acts only on components the system already holds: deleting the system can move a member’s primary onto another system that already holds it, and a standard change carries an occupant onto the new standard’s role of the same name (ADR-0506), but neither binds a component the system was not already bound to, so no system-scoped act reaches a component it did not already hold.
  • Context: The component end resolved by existence alone (scopedByName), because the only scope in hand was resolved for system and a component’s ancestor chain is unrelated to it. Reproduced live: a principal holding system:create,update,delete scoped to one system, with no component permission at all, bound a component it could not GET (204), staffed it into a role (204), and a variable it then created on its own system read back as the winning value on the victim’s effective variables, because the first membership becomes the component’s primary and the cascade seeds its system band from the primary (ADR-0052). No ADR had blessed unfenced cross-tier writes, and identity and access already named the cross-tier expansion as unbuilt rather than as a decision, so the reading was a known-unbuilt fence, exploitable at exactly the one write that reaches across tiers by design. The conformance matrix gives its narrow principals component authority over the rack its routes’ components are made under, so it keeps driving the system’s own split, and internal/api/role_staffing_e2e_test.go drives the component end’s through all five routes. The accepted narrowing: a custom role carrying system:update and no component:update no longer binds anything; every seeded role that holds one holds both.

ADR-0528: A component with endpoints is occupied: its delete is refused, not cascaded

Section titled “ADR-0528: A component with endpoints is occupied: its delete is refused, not cascaded”
  • Date: 2026-11-11 | Status: Accepted | Pages: data collection, core entities
  • Decision: (#528, raised in #138.) The component’s delete counts the endpoints that name it (endpoint.component) in the same transaction and refuses with a 409 when there are any, naming the count and the next step (delete or reassign them first). It is a distinct error, ErrComponentHasEndpoints, so the message is true: ErrComponentOccupied says “has child components”.
  • Consequences: No endpoint, and no task derived from it, is orphaned into the all-scope-only bucket by a component delete. An operator deletes or reassigns a component’s endpoints before the component. The foreign key stays ON DELETE SET NULL: with the refusal in front, it is unreachable from the component delete, and changing it is a schema change nothing needs. The one in-tree caller that deleted a component with endpoints (the rollback of a failed simulated-component add) now deletes its endpoints first. Occupancy rules for systems and locations are unchanged.
  • Context: Came up in #138, found in the authz review of the reachability slice (#114). The delete narrowed access rather than widening it, so it was not an escalation, but it was silent data orphaning: the old check counted only parent_id children.
  • Not chosen:
    • Cascade-delete the endpoints and tasks with the component. It destroys collection configuration and history as a side effect of a delete that names none of it. That is the delete-cascade design tracked by #528, and it should be decided once for every entity rather than per table here.
    • Widen ErrComponentOccupied with a reason. One sentinel for two conditions makes the message say what the caller must then re-derive; two sentinels let the API word each refusal for what held it.

ADR-0555: A registry row renames through its own :rename custom method

Section titled “ADR-0555: A registry row renames through its own :rename custom method”
  • Date: 2026-10-26 | Status: Accepted | Pages: API, core entities, CLI, standards
  • Decision: (#555, pre-tag hygiene for 0.1.0, #825.)
    1. The rename is a custom method, not a patch field. POST /vendors/{id}:rename, /drivers/{id}:rename, /products/{id}:rename, /standards/{id}:rename, and /location-types/{id}:rename take {"name": "<new>"} and answer the row as its GET reads it. The issue proposed a name field on each registry’s patch struct, which ADR-0076 had already ruled out for every renameable name (a rename is a custom method gated by <resource>:rename, not a field write), and which a component, system, location and principal group follow; the registries now follow it too, because a rename is a different act from an edit. Nothing inside the platform moves, since every foreign key holds the uuid (ADR-0062), but everything typed outside it (a script, a bookmark, an integration’s config) stops resolving.
    2. Its own permission. Each is gated by <registry>:rename, which the admin role carries beside the registry’s create, update and delete, so a role can be given edits without the act that breaks external references, exactly as location:rename sits apart from location:update.
    3. One primitive. storage.RenameRegistry(table, ref, name) is the act for every registry it covers, and the API registers the five routes through one function over it. It validates the name with the entity rule, refuses an official row (422: the boot seed upserts by name and would re-create the old one on the next start), refuses a taken name (409) and a location type named root (422), moves the one column, and writes the rename audit row in the same transaction.
    4. A seeded example keeps its name. The shipped standards are example content (official: false), but the boot seed plants each one by name whenever it is absent, so a renamed one would return on the next boot beside the operator’s row, its shipped roles and choices with it. The seed marks what it plants (standard.seeded, set on every boot, a row an older binary seeded included) and the rename refuses a marked row with a 409 that says why. Neither a reseed exemption nor a seed ledger is built: forking a template into a standard of the operator’s own, on request, is #827, which retires the stand-in seed.
    5. A by-value copy moves with it. A location type’s name is also stored by value, in every type’s allowed_parent_types and inside an operator’s fork of a shipped type (registry_shadow), and the rename rewrites both in its transaction, keeping their order, so a placement rule never silently strands. A driver’s name is baked into every task it derives (and each task’s id hashes its spec), so a driver rename re-derives the attached endpoints’ tasks in its transaction, exactly as a version change does (#823): the node picks up the new set at the rename rather than at the next unrelated edit. A label rendered from the old name is not restamped; that stays the recompute verb’s.
  • Context: ADR-0062 gave every registry a uuid primary key so its name could change, and #555 found that nothing but raw SQL could change it: no registry patch carried a name. The registries left out are the catalogs keyed by a telemetry name (metric, property, event and command types), whose key is also what a node, a driver spec and an integration push by name, and the remaining type registries (component_type, system_type, secret_type); each has a by-name reader a rename must answer for first, so they are #1188 rather than a primitive that would strand them. The console’s blades still do not edit a registry name; the rename is the API’s and the CLI’s for now.

ADR-0558: The key that seals every secret is the encryption key, and its old names are read for one release

Section titled “ADR-0558: The key that seals every secret is the encryption key, and its old names are read for one release”
  • Date: 2026-10-26 | Status: Accepted | Pages: config, secrets, and variables, Helm
  • Decision: (#558, pre-tag hygiene for 0.1.0, #825.)
    1. It is the encryption key. The variables that supply the key every secret is sealed under are OMNIGLASS_ENCRYPTION_KEY (base64, 32 bytes) and OMNIGLASS_ENCRYPTION_KEY_FILE (a path to it), the boot log reads encryption key loaded, the fallback warning says it generated an encryption key, and a missing provider is no encryption key provider configured. A secret’s own identifier keeps the word Key.
    2. The old names are read for one deprecation window. OMNIGLASS_SECRET_KEY and OMNIGLASS_SECRET_KEY_FILE are read only while neither new name is set, and each one set logs a warning naming its replacement on every boot, not once: a deprecation an operator can miss on one boot is one they will miss.
    3. The new generation wins as a whole. When either new name is set, both old names are ignored, whichever source each uses: a new key file outranks an old key variable, because an operator who has started the move meant the new value. A leftover old name warns that it is ignored, so it does not linger. Within a generation the variable still outranks the file.
    4. The rename is declared once. The environment registry carries Deprecated (the replacing variable) on each old name, a test holds it to a registered, current replacement in the same scope, and the generated env-var reference renders it, so the deployment guides teach the rename from the same declaration the binary reads.
  • Context: “secret key” meant two things in shipped code: the identifier an operator gives a secret (og_session, labelled Key in the console) and the master key that encrypts every secret. The second is a credential whose compromise is total, so an operator who cannot tell it from the name of one secret is an ambiguity worth removing rather than documenting. The variable is how every real deployment supplies the key, so a rename that read only the new names would lock an operator out of their own encrypted data on upgrade; reading the old pair through a window, loudly, is what makes it safe to do before the first public tag rather than after. The fallback key’s file under the data directory keeps its name (secret.key): it is not an operator-configured name, and renaming it would need a second migration path for a convenience that is not the deployment model.

ADR-0618: Notifications are Postgres rows drained by a server tick, not CDC to a JetStream sender

Section titled “ADR-0618: Notifications are Postgres rows drained by a server tick, not CDC to a JetStream sender”
  • Date: 2026-10-28 | Status: Accepted | Pages: alarms and actions, workers, messaging
  • Decision: The notification lane’s delivery engine (#618, decision 2, approved as recommended):
    1. Rows in the transition. raiseAlarmTx, ClearAlarm and clearAlarmByDedupTx, the one seam every hand and rule transition passes, read the enabled action rules on that transition, run each rule’s when over the alarm facts, render its notification type, and insert one notification row per enabled target in the transition’s own transaction. A rollback leaves no row; a re-raise that lands on an open alarm writes none; an acknowledgement is no transition. A when that fails to run or a type that fails to render (a NUL or invalid UTF-8 in its output included) still writes its rows, failed with the reason, so the problem is on the alarm’s timeline. All of it runs under a savepoint: any database error in it rolls back to the savepoint and is logged, so the transition never fails for a notification (it can wait on one in a rare race, #1335).
    2. A server tick drains them (internal/notifier, every 2s, up to 100 rows a pass, a 60s deadline, cancelled on shutdown, a panic recovered and logged). Each row is its own transaction: the oldest due row FOR UPDATE SKIP LOCKED, its target’s credential unsealed, the send made through the egress primitive while the lock is held, the outcome recorded, the commit. Two replicas draining at once skip each other’s rows, so a row is sent twice only if a replica dies after the send and before its commit; the Idempotency-Key (the row’s uuid, the same on every attempt) is what lets a receiver drop that one. A row’s send and record run on a bound of their own (the egress timeout and ten seconds), detached from the pass’s deadline and from shutdown, and a pass stops taking rows once one could outlive its deadline, so a cancel never rolls back the record of a message the receiver already has.
    3. Retry policy in code: a failed attempt waits 10s, doubling after each (10s, 20s, … 640s), and the 8th failure is final, about 21 minutes from the first attempt; a deleted or disabled target, or a secret that no longer unseals, fails the row at once. POST /notifications/{id}:retry re-queues a failed row for a fresh run of attempts, the same bytes and the same key; a row that failed before any attempt holds no message and is not retried.
  • Context: The alarms-and-actions page designs the action sender as a JetStream consumer fed by the CDC publisher, explicitly not a Postgres SKIP LOCKED relay. The CDC publisher (#430) is unbuilt, and the notification must commit with the alarm that caused it, which a publish after the commit cannot promise without the outbox that CDC would be. ADR-0148 chose this same shape for calc rules, and the event rule sweep runs on a tick too (ADR-0144 point 6). The row does not change when the drain moves: once #430 lands, the CDC publisher can fan the committed rows onto JetStream and a consumer can take the tick’s place. Holding a row lock across a send of at most 15s (the egress bound) costs a connection per send in flight, which one serial pass per replica bounds. The consequence of a serial pass is that a destination that times out slows every other one’s delivery during a storm; fairness across targets is #1334.

ADR-0752: A telemetry push is fenced by telemetry:push on the component it names

Section titled “ADR-0752: A telemetry push is fenced by telemetry:push on the component it names”
  • Date: 2026-10-26 | Status: Accepted | Pages: identity and access, api
  • Decision: (#752, the architect’s ruling, superseding the 2026-08-27 one recorded on the issue.)
    1. A fence, not a capability. owner.ref names an estate target, the same shape as the routes ADR-0116 covers, so the route resolves it through ResolveActionTarget: the action half is visible_set(P, telemetry, push). Push is the stronger grant, so the push scope is also enough to see the target: the route first resolves with the push scope as both halves, and a push-only integration (no component:read) pushes to exactly the components it is granted and learns nothing about any other. Only a miss resolves again with the caller’s own component:read as the read half, to choose its refusal: outside both is the non-disclosing 404; readable but outside the push scope is a truthful 403, safe because only a caller who could read that row anyway can meet it.
    2. Component tier alone. telemetry leaves the exclusive-arc family in scope.applicableKinds and resolves on the component tier, for ADR-0117’s reason: the route’s only owner kind is a component, and a location- or system-tier root can never match a component’s ancestor chain, so it reached nothing while telling scope.Covers otherwise. The day a push may name a system or a location owner (#422), that tier joins, with a test.
    3. Once per batch. A batch has one owner, so the fence is one resolve per accepted request (a refusal costs a second, to pick its status), never per sample, and the instance check (ADR-0456) is one read of the owner’s endpoint names, made only when a sample names an instance. A query-count test pins both: a batch of forty-five observations issues exactly the statements a batch of three does.
    4. The node lane is unchanged and no longer silent. A node is never this route’s caller: it ships on its own subject and stays confined at ResolveTaskOwner (ADR-0037). A batch that confinement orphans is now recorded (#1200): a warning per node per window naming the node, the task and the samples dropped, the rest of the window counted rather than logged, and a running count on the node itself (orphaned_batches and last_orphaned_at on GET /nodes/{name}), so the fence cannot be told apart from a broken pipeline only by its silence.
  • Context: The 2026-08-27 ruling recorded the route as capability-shaped: telemetry:push as a grant-class check, no per-target scope walk, and an unrelated owner landing as a recorded anomaly on the ingest lane rather than a disclosing 403. Its premise did not hold. Since #427 the route had resolved its owner under visible_set(P, telemetry, push), and a test pinned a wide-read, narrow-push principal closed; executing the ruling would have removed that fence and let a component-scoped integration push to every component, the over-permit ADR-0117 closed for command:issue. The grant-class model is reserved for non-entity resources, and a push names an owner entity. And the anomaly path did not exist: the API lane is trusted by subject, so this route is the only fence on the write, and a node-lane drop was silent (#1200). A synchronous refusal is also what a caller is owed: a recorded anomaly would be “202, and good luck”.

ADR-0821: snmp’s rung is a standard get answered, and only an authorizationError reads as auth

Section titled “ADR-0821: snmp’s rung is a standard get answered, and only an authorizationError reads as auth”
  • Date: 2026-10-24 | Status: Accepted | Pages: collection, nodes, simulation, glossary, drivers
  • Decision: (#821, under the architect’s approval of epic #1076, decisions 6 and 7a.)
    1. Built and stateless. snmp reads built in the transport registry and not held: the held: true it carried was honoured by no snmp code path. Its rung is request.
    2. The rung is a standard get answered. ladder.transport.request.get, by default 1.3.6.1.2.1.1.3.0 (sysUpTime.0), so every snmp driver gains its rung with no spec change (ResolveLadder supplies it, so the default is part of the resolved ladder the fingerprint covers). A driver may name another standard OID; a rung request that names a line or a path, or an OID that is not a numeric one, is refused at write and by the boot seed. The get plugs into the request-rung dispatch by transport that udp added (ADR-0163), beside it: the existing snmp-generic poll path is unchanged and shares the getter.
    3. The probe carries the community. v2c has no unauthenticated request, so the worklist delivers the reachability probe the one credential its rung sends, the secret its driver’s community input references (the poll’s naming contract), and no other; every other probe still carries none. The secret’s sealed version was already a fingerprint input, and the port rides the params; there is no version input to cover (v2c only, decision 6).
    4. Any response is an answer. A noSuchObject included, as any http status is: the rung reads responsive (on the tick that meets an authorizationError too), lands one snmp-response-time (decision 7a, a node-probe key folded into rtt by #1063), and endpoint-authenticated yes, since a v2c agent answers only a community it accepts. With no port to open, the rung is the verdict and no tcp-open lands; the ping stays informational.
    5. The v2c limit. A wrong community is dropped silently by the protocol (RFC 3584): not responsive, timed out, retryable, never rejected, indistinguishable from a stopped agent, and the docs say so. Only an agent answering authorizationError refuses detectably: responsive, timed, endpoint-authenticated no, and a terminal auth refusal that gates the session rung (not the transport rung, unlike udp’s, since the community authenticates). Beneath it nothing is sent under that fingerprint: the probe lands its held no and a stateless snmp poll is held too, since every v2c request carries the community. The get is snmp’s only transport probe, so beneath the gate the agent is unobserved: the held rung reads endpoint-responsive down, reason rejected: auth, and the verdict follows instead of freezing at the last answer. Whether the probe or a poll meets the refusal first, the reading is the same from the next tick. Rotating the community secret moves the fingerprint and brings the endpoint up within a tick. An snmp driver must declare its community, a secret input named community of type snmp-community (refused at write otherwise). SNMP v3 is #1083.
    6. The simulated faces. A v2c face is strict: it judges the community itself (the library, configured with no security, answered any) and drops any but its own silently; it may declare a refused_community, answered with authorizationError. The catalog’s faces answer public and refuse revoked.
  • Context: #821’s open question (a separate probe, or responsiveness derived from poll outcomes) was closed by ADR-0158 and the epic’s ruling: the rung is the driver’s standard request, run as the reachability probe every tick. The layered-gate design’s snmp.reachable toggle and its snmp_check default retired into the ladder with udp’s slice. A face that answered public beside its own community let a wrong-community test pass by accident.

ADR-0827: The template layer owns the clone model, and the ComponentTemplate authoring model is superseded by the driver spec

Section titled “ADR-0827: The template layer owns the clone model, and the ComponentTemplate authoring model is superseded by the driver spec”
  • Date: 2026-10-28 | Status: Accepted | Pages: templates, data collection, glossary, expressions, nodes, metrics and properties, cascade, config and variables, the spine, roadmap, identity and access, health, API
  • Decision: #827 owns the clone model of ADR-0071 and nothing else. Four kinds (standard_template, component_template, system_template, place_template) ship as kind-tagged YAML embedded in the binary, read through GET /templates under a new template:read on the viewer floor, and are created from through custom methods on their target collections: POST /standards:fork (standard:create) and POST /{components,systems,locations}:instantiate, each gated by that resource’s create permission, every piece checked in the caller’s own scope and audited in one transaction. The template’s name is recorded in each created row’s audit detail and nowhere else (no column, no back-pointer). There is no template versioning, and only shipped templates exist (operator-authored templates are #1330). The stand-in standards boot seed retires once the catalog ships, the component template is in, and the work lands as two PRs. The ComponentTemplate collection-authoring model the collection, glossary, expressions and nodes pages fenced under #827 (a versioned template’s inputs bound at :apply, functions as a trigger plus a step DAG, Expr extractors and step guards) is superseded by the driver spec (ADR-0135); those fences become historical records. Its still-wanted remainders (an Expr transform on an extractor, a step guard, shared Omniglass functions, function-run bindings) move to #1331, and the catalog’s community and private tiers with the template trust surface (signature, capability manifest) to #318. The registry scope ladder’s template rung retires: a template is never a row, so nothing can be scoped to one, and the ladder is org and official (#318). :apply retires: the node re-pulls its whole worklist every tick, an endpoint edit or a driver spec change re-derives its tasks in the same transaction (#823, #1061), and the worklist’s config_generation is built, so nothing is left for an apply step to do. The cascade’s two “template bands” are the product and standard classifier bands (#1255, #184), and a signal is settable when its driver binds a command for it, not when a template binds a set function. The kind names component_template and system_template are reclaimed for the catalog: the ADR-0071 vocabulary lint narrows to the versioned-shape tables it retired (component_template_version, system_template_version, system_template_member). With the standards seed retired, the boot plants no standard, so ADR-0555’s refusal to rename a seeded example standard (and the standard.seeded mark behind it) goes too: every standard is an operator row, and renames.
  • Context: The definition of #827 found that every fence citing it for collection authoring described a model the driver spec had already replaced in the tree: typed inputs, poll functions, listeners and command bindings, attached per endpoint, re-derived on change. Keeping the step DAG and inputs under #827 would have built a second authoring model beside the driver spec, and the template rung of the scope ladder presupposed a template row that ADR-0071 already ruled out. The architect approved the definition with every open decision resolved as recommended; this entry records those resolutions so the pages can say what is true now.
  • Amendment (2026-10-28, on PR #1348): the four methods that create from a template take one name, :createFromTemplate, on all four collections: POST /standards:createFromTemplate, /components:createFromTemplate, /systems:createFromTemplate and /locations:createFromTemplate. A custom method names what differs from Create, and the difference here is the template input, the same on all four, so one verb means one thing across the kinds. The day-old :fork (standards) and :instantiate (components, systems, places) are retired terms: the vocabulary lint refuses them, and prose says “create from a template”. Provenance takes one audit key, from_template, on every row a template creates (a standard created from a template is audited as a create, no longer a fork), replacing both the plan’s instantiated_from and the fork image’s template field. The registry fork of a shipped row (ADR-0095) is a different operation and keeps its word.

ADR-0859: The autopilot never arms auto-merge; the architect’s merge is the approval

Section titled “ADR-0859: The autopilot never arms auto-merge; the architect’s merge is the approval”
  • Date: 2026-10-27 | Status: Accepted | Pages: autopilot
  • Decision: (#859, the architect’s ruling.) The autopilot never enables auto-merge and never merges. It opens the PR, watches CI and reviews, and reports; the architect’s merge accepts the slice and a close vetoes it, as ADR-0138 set out.
  • Context: The skill’s step armed auto-merge on the theory that a required approving review would make the architect’s approval the last click. On a main with no review requirement it merged #857 at once. Requiring one approval does not fix it here: the agents open PRs with the architect’s token, so the architect is the author of every PR and GitHub refuses an author’s approval, which would block every PR rather than gate it. A separate agent identity (a GitHub App or machine account) would make the approve-then-auto-merge flow work and stays open as an option; until then a manual merge is the gate, and it costs nothing, since every PR is merged by hand already.

ADR-0896: Device profiles share a surface through a simulator include, not a catalog primitive

Section titled “ADR-0896: Device profiles share a surface through a simulator include, not a catalog primitive”
  • Date: 2026-11-02 | Status: Accepted | Pages: simulation
  • Decision: (#896, agreed by the architect on #896 as option A.)
    1. Share in the simulator, by include:. A fragment under sim/profiles/surfaces/ holds subjects and commands. An interface lists fragments in include:; profile.LoadStoreFS expands them ahead of the interface’s own subjects and commands, before the profile is validated. An unknown fragment, two fragments defining one command or subject, or an interface restating a fragment’s command or subject is a load error, so a copy cannot drift in beside the original.
    2. No composition primitive in the product catalog. What the processor and the panel share is a fact about what the simulated devices answer, not about what a product or driver is. The seed’s products stay flat.
    3. A driver per product where the signal differs. newtron-core-nvp (input, program state) and newtron-slate-nvp (booking state) are separate drivers; the Panel 7 and newtron-nvp are unchanged. The three share the newtron-nvp poll, listener and command blocks by YAML anchor inside drivers.yaml.
  • Context: #896 asked that the Core 3 and Slate 5 be simulated as what they are, the processor speaking the panel’s surface and more, without copying the panel’s definition.
  • Not chosen:
    • A composition or inheritance primitive in the product catalog. It models a simulator concern in the data every install reads, and nothing outside the simulator consumes it.
    • Copying the panel’s surface into the processor profile. The two drift.
    • One driver for all three products. The Slate would carry an input poll it cannot answer, and the processor’s program state would have no home.

ADR-0902: http polls and commands send real requests, read through one extraction, authenticated by a declared scheme

Section titled “ADR-0902: http polls and commands send real requests, read through one extraction, authenticated by a declared scheme”
  • Date: 2026-10-24 | Status: Accepted | Pages: collection, nodes, glossary, drivers, simulation
  • Decision: (#902, under the architect’s approval of epic #1113, decisions 1 and 4 to 7.)
    1. The request. An http or https request declares method (GET by default), path, query, headers, a body (a JSON value rendered in its body_format: json, form, xml or text) and the response’s format (json, xml, html, text; declared, never sniffed, since gear mislabels its content type). Polls and command bindings share it. Rendering is injection-safe: a path substitution is escaped as one segment, a query value is encoded by the client, a header value with a control character refuses, a JSON body is rendered leaf by leaf and then encoded (a leaf that is exactly one reference keeps the value’s type, so an intended metric rides as a number), and an xml body’s substitutions are escaped as text. A request may not set the credential headers or the ones the client owns, and never names a secret: a credential enters only through the session’s scheme, one fingerprint input and one scrub.
    2. One extraction primitive (decision 1). Extract gains xpath: XPath 1.0 over an xml answer, its prefixes declared on the request (namespaces), or over an html answer parsed as a browser would, beside jsonpath (reused, the dotted path), regex (any body as text), oid and key, exactly one per emit, each bound to the format at write. A selector yields one value: none or many is a fault naming the count, never a silent first. A response is parsed once however many emits read it, and a response-settled http command reads its reply through the same primitive. CSS selectors are #1118.
    3. Auth is declared in the session block (decision 6). session.credential names the secret input and session.scheme how it rides: basic (basic-auth), bearer (the new bearer-token) or api-key (the new api-key), whose placement (in: header or query) and name the driver declares (session.api_key), so a secret type stays a pure shape. The session block is already a fingerprint input, so every credential path is. A generic driver’s placement as inputs is #1124.
    4. The status table (decision 5). A rule the driver declares terminal decides first (session.terminal may match a status, a body, or both); then 2xx is success; a 401 to a credentialed request is a terminal auth; a 408, 429 or 5xx backs off, never sooner than its Retry-After and never later than the poll’s interval; a redirect is not followed; and every other 4xx (a 403 unless declared) faults the request alone, waiting its interval and gating nothing. A body past 1 MiB (64 KiB for a command’s reply) faults naming the cap.
    5. The session rung is proven by the credentialed exchanges (decision 7). A credentialed 2xx lands endpoint-authenticated yes and a refusal no (a redirect, any other 4xx or a 5xx never judged the credential, so proves nothing), and a refusal gates the session rung for the fingerprint, beneath which no credentialed poll or command is sent, across a restart. The probe sends no credential, so reachability stays observed beneath the gate. A credentialed probe request is #1120.
    6. https is its own registry entry (decision 4). It needs both things ADR-0160’s placement rule names (its rung is the handshake, and a component may serve a plain web port beside a TLS one), so it joins the registry over the shared TLS primitive: the tls-mode input, the public key pinned on first use as tls-certificate (one pin per endpoint, shared by its probe, its polls and its commands), :retry with certificate, and the handshake time and certificate facts from the probe. A transport over the handshake is the registry’s tls flag, never a second list. One transport per driver stays.
    7. Commands over http. The command delivery carries the rendered request and never a credential; the node applies the endpoint’s scheme from what its worklist delivered, so a credentialed http driver that declares commands and no poll refuses at write.
    8. The registry tells the truth. http no longer claims held (no code path held an http session); SSE (#1038) makes it so. A listener on a transport with no listen path (anything but a held line transport or udp) refuses at write, where it derived a task no node ran (#1115).
    9. The simulated faces. An http face can demand a bearer token or a query-parameter key; an https face serves an ECDSA key derived from the simulated component’s id (a browser opens the page; an Ed25519 certificate it would refuse), the same on every run, so a pinned endpoint survives a simulator restart; the DSP serves its status as namespaced XML.
  • Context: http was a reachability probe only: checkPollShape refused every http poll and a command binding on http had no actuation wire, though most AV gear’s richest surface is its web API and its web page. The architect’s direction (2026-10-24) made it a full transport, one extraction primitive with format-specific selectors rather than an extractor per format, and the epic’s decisions settled the forks; ADR-0160 had foreseen https as a capability on http, which its own placement rule did not support once the rung and a second web port were weighed.

ADR-0914: The simulator catalog carries no fleet or room archetype vocabulary

Section titled “ADR-0914: The simulator catalog carries no fleet or room archetype vocabulary”
  • Date: 2026-11-12 | Status: Accepted | Pages: simulation
  • Decision: The embedded simulator catalog (sim/profiles) holds device profiles, surfaces and templates, and nothing above a device. The room archetypes (systems/*.yaml), the fleet manifests (fleets/*.yaml), profile.SystemProfile, Store.Systems, and the manifest parse and compile path (fleet.Manifest, ParseManifestFS, Compile) are deleted, with no shim and no compatibility loader. fleet.Enrich and fleet.NameGenerator stay, since the engine and the scale lab’s resolver use them. A test over the catalog fails while either directory is embedded or a file names a role or system type no standard or registered system type has.
  • Context: #911 made a simulated system a system built to a standard, which left the archetypes as the input of the internal fleet compiler alone, in a vocabulary (video-bar, touch-panel, “Standard Conference Room”) of their own. The ticket offered re-expressing the manifests as standards plus counts, or retiring them. Retiring won because #1553 had since landed scale lab scenario manifests (internal/lab/scenario) that are exactly standards plus counts, in the platform’s own vocabulary, so re-expressing the embedded manifests would have been a second format for the same idea. The 1,000-component benchmark no longer used the compiler either (it spreads devices over the profile store), and the one remaining consumer, the acceptance test, now serves one system of each standard the corporate scenario places.

ADR-1024: Omniglass receives webhooks on the server, and a webhook token is a sealed secret

Section titled “ADR-1024: Omniglass receives webhooks on the server, and a webhook token is a sealed secret”
  • Date: 2026-10-25 | Status: Accepted | Pages: collection, nodes, messaging, identity and access, simulation, glossary, drivers
  • Decision: (#1024, slice 1 of epic #1146, approved as recommended on 2026-10-25: decisions 1, 2 and 6 of the epic, with the inbox of decision 4 brought forward from slice 2 for the webhook route.)
    1. A push transport, and the listener primitive. webhook joins the transport registry as its first push transport (Push): nothing is dialed, so it has no rung, no reachability task and no ladder (a ladder declared on one refuses at write), and its endpoint reads last heard (endpoint_live.last_seen_at, stamped by every attributed post) in place of a verdict, never down for silence. The listener primitive is one pipeline a host runs on each message: bound (token buckets per source and for the listener, checked narrowest first so one source’s refused flood never spends what every sender shares; a cap on posts in flight per source while a body is read and in all once it is; a 32 MiB budget for bodies being read at once, each counted at its declared length; a 1 MiB body, the read stopping there; a read deadline of two seconds plus the body at 64 KiB a second, at most ten), authenticate, attribute, route (listeners first, ADR-0151), extract, land. Its core is placement-agnostic and pure (internal/ingress); the server hosts it for webhooks, a node for the push transports of #1148 onward (decision 1).
    2. The token is a sealed secret, minted by the endpoint. Creating a webhook endpoint (bare or through a driver) mints a 128-bit token, sealed as the webhook-token secret on the endpoint’s component, so it is revealed and copied only under secret:reveal, audited, scoped through the component and deleted with the endpoint. Its one field is lifecycle-origin: no operator creates or edits one (creating a secret whose every field is the platform’s refuses). The receiver finds the endpoint by the token’s sha256, held beside the binding (webhook_token); the token is random, so its digest is no oracle. POST /endpoints/{endpoint}:rotateToken mints it anew, the old token resolving to nothing at once. A webhook endpoint takes no node (decision 1: webhooks are central) and names one component.
    3. The route is ungated by necessity. POST /webhooks/{token} (and the GET and HEAD a sender verifies its URL with) carry no principal, on the allow-list beside POST /nodes:claim: the sender is not a principal, the endpoint’s declared scheme is the authentication, and the write is bound to the token’s one endpoint. The batch is published on the push lane with that endpoint’s component as owner, whose writer admits only collected keys (ADR-0161), so a leaked token can write only collected keys on one component; no new writer class.
    4. The schemes (decision 6). A webhook driver declares session.scheme, never defaulted: hmac (an hmac-key secret; the signature’s header, algorithm sha256 or sha1, hex or base64, an optional prefix, and an optional signed timestamp header joined to the body by a separator), token (a bearer-token in a declared header behind an optional prefix), basic (basic-auth), or none, which checks nothing and reads unsigned on the endpoint. hmac over a signed timestamp is the scheme the docs teach first. Every secret comparison runs in constant time over a fixed-length digest. The check fails closed: a credentialed scheme whose secret no longer resolves, or holds an empty field, refuses every post rather than comparing against the empty string.
    5. Replay. A signed timestamp more than five minutes from arrival, either side, refuses; a declared delivery-id header is remembered per endpoint for that window (bounded, in the server’s memory: it is one replica), so a sender’s redelivery answers 202 and lands once; one arriving while its first copy is still publishing answers 409 with Retry-After (it may yet fail, and a 202 would lose it), and a delivery whose publish failed is forgotten so the retry lands. An endpoint’s own bucket is charged only by posts its scheme admitted, so a leaked URL’s unsigned posts cannot silence the real sender.
    6. The response contract. Senders retry on anything but 2xx: 202 only once the batch is published; 401 for a refused scheme, saying nothing of which part failed; 404 for an unknown, rotated or malformed token, byte-identical; 409 with Retry-After for a delivery still landing; 413 past the cap; 429 with Retry-After past a limit; 5xx only for our own fault. A GET answers the challenge a driver declares (webhook.challenge, a query parameter echoed as bounded text), 204 where it declares none.
    7. Attribution (decision 2). The token names one endpoint and so one component; nothing in the payload selects further. Amended (#1282): a payload naming an identity selects only among the owners bound to the token’s component, and an identity bound to none lands on no owner and is kept in that component’s unbound inbox (ADR-1282).
    8. The body, and the raw line (decision 5). The body is read in the format the driver declares (json, xml, form, new and read by key, or text) through the one extraction primitive; a listener’s match may read a declared header (match.header), never a credential’s. What no listener claims lands as a log line on a push transport (unmatched may only be log), and a claimed post lands its raw line beside its emits unless the listener declares log: false; a claimed post whose emit faulted keeps its raw line with the fault, whatever the listener says. A bare webhook endpoint lands every post as a log line.
    9. Refusals are counted, never gated. An inbound auth failure is not a session to reject: it never reads rejected and never sets endpoint-rejection. It answers 401, is tallied per endpoint, source and reason, flushed once per tick to the endpoint’s counters (shown on its read: the count, the latest time, source and reason, never the credential) and logged once per tick.
    10. Unknown senders land in an inbox (decision 4, brought forward). A post to a token no endpoint holds is tallied by its sender’s address into unclaimed_source (per listener host and transport: a count, first and last heard, the last message cut to 512 bytes; bounded at 256 sources per listener, the least recently heard evicted; aged out after seven days), read at GET /unclaimed-sources under node:read. The token a stranger tried is never kept. Claiming one is the existing endpoint create, and a source’s row is let go once its posts land on an endpoint. A sender’s address is a parsed address, never a header’s text: the connection’s peer, unless the peer is on a loopback or private network (the chart’s ingress, which overwrites the header from an untrusted client), in which case it is the rightmost X-Forwarded-For hop outside those networks, every header line read in order; an IPv6 sender is its /64. A port forwarder that presents its own private address as the peer (Docker’s userland proxy for an IPv6 client, a rootless forwarder) is trusted by that default, so a client behind one can name its own source; #1185 makes the trusted set configured. The inbox is fleet-wide, as nodes are, so its read needs node:read on an all-scope grant.
  • Context: #1024 asked for server-hosted ingress (webhooks, traps and syslog) with a plaintext params.secret, a ?token= query and a comma-separated extract grammar. Epic #1146 split it: traps and syslog move to the node (#1149, #1150), the token becomes a sealed secret and the schemes declared, and the mapping becomes a driver’s listeners over #1145’s emits. The proof is the simulated UCC service, whose admin API now takes a webhook subscription (the URL, the scheme, the secret, and a fault that posts a wrong signature, a stale timestamp or one delivery twice) and posts each meeting’s start and end signed; the shipped ucc-webhook driver maps them to call-started, call-ended and the call-state property, end to end over the real wire.

ADR-1034: A websocket is a held session of text frames, and a reply is matched by a minted id

Section titled “ADR-1034: A websocket is a held session of text frames, and a reply is matched by a minted id”
  • Date: 2026-10-25 | Status: Accepted | Pages: collection, nodes, glossary, drivers, simulation
  • Decision: (#1034, under the architect’s approval of epic #1113.)
    1. Two registry entries, one held session. websocket and wss (decision 4 of #1113: wss over the shared TLS primitive, its own entry so a component can serve a plain socket beside a TLS one) are held line transports: a standing listen task or any driver poll holds the endpoint’s socket, and its polls, commands and listeners share it. wss’s pin is the endpoint’s public key, trusted on first use, refused as certificate when it changes, and trusted again with :retry and certificate; the transports a key pin rides are read off the registry’s TLS flag, not a second list.
    2. The upgrade is the auth step. session.upgrade is a GET (a path, the root when absent, a query and headers, never Upgrade, Connection or a Sec-WebSocket-* header the handshake owns, bar a subprotocol). The staged dialer’s connect is the TCP connect (and the handshake over wss); its auth step logs in first when the session declares an http login (the login dialog of ADR-1114, its session shared with nothing else on the endpoint), then sends the upgrade built as every http request is, the scheme’s credential (basic, bearer or api-key), the login’s session headers and its cookies, and reads the answer through a 64 KiB head bound. A 101 that completes the opening handshake opens the socket. The upgrade is one request, so a 401 or a 403 to it is a terminal auth whether or not it carried a credential (the status table lets a request’s 403 fault that request alone); a lapsed login, or a 403 to a login session the attempt did not just open, logs in once more and upgrades again, and only a 403 to a fresh login’s session is judged; anything else is a failed attempt on the session’s backoff. A terminal rule that names a status judges the upgrade alone, never a frame’s text. digest is refused at validation, since it answers a challenge per request, and so is reprobe, since the auth step reads the endpoint’s gate before it sends and a re-probe could only replay the refusal. No header the handshake owns may ride the upgrade, an api key or a login.
    3. A frame is a message. A text frame is the held connection’s message (ADR-1038), offered to the listeners first and handed to an exchange by the line session’s precedence: one router goroutine owns every data frame the node writes and draws an exchange’s boundary as the line reader does, so a frame received before a request was sent is never its answer. The reader never fails the connection itself: its end travels to the router behind every frame read before it, so an answer, a terminal reply or a push the component sent before it hung up is routed first. A request is a frame: a line sent as is, or a JSON body rendered injection-safe as an http body is (a whole-leaf ${value} keeps its type). An arm is a frame too, so it carries no line break (refused at validation, on every held line transport, since a node joins arms by line).
    4. A reply is matched by a minted id. reply.correlate names a field of a JSON object body (a dotted path of object keys, through objects, never a field the body sets itself). The node writes a fresh random id into it each time it sends the frame (a command’s at execute, so a redelivery never reuses one), and the reply it waits for accepts only a frame whose field carries that id; its error shape answers only a frame carrying the id too, as the exchange’s refusal. A reply may instead be a prefix, a regex, or a JSON field match (on any held line session), exactly one. A correlated or shaped exchange that gets no answer in time fails alone; an unshaped one recycles the socket.
    5. Keepalive and bounds. The node pings every 30 s and the socket is dead when it hears neither a frame nor a pong for two intervals. A frame past 1 MiB is read off the wire, dropped, and named unclaimed, and the socket reads on, so a hostile frame neither grows the node’s memory nor wedges it in a reconnect loop; a binary frame is named unclaimed. The node sends no Origin; a driver that needs one declares it in session.upgrade’s headers.
    6. The probe is http’s. A websocket endpoint’s probe is a credential-free GET / (over the handshake for wss, https’s), any status an answer, so reachability stays observed beneath a refused upgrade and no probe-only key is added.
    7. The simulated face. A profile interface of protocol websocket serves a JSON control socket of its own, plain or under the device’s https identity, behind the face’s own static auth (basic, header, bearer, query): a subscribe acknowledged and then pushed every change to its paths, a get answered by a result carrying its id, a set on a settable path pushing the change before its result, and a console drop closing every socket going-away. The Kestrel bar serves one over wss on 9443, and the seeded kestrel-ws holds it.
  • Context: #1034 predates the staged dialer, the gate, the fingerprint and the message seam; holding the socket as a line session keeps one router, one arm conversation and one terminal handling for lines, events and frames rather than a websocket-specific path. Correlation is the router’s reply shape, so a request matched by its id needs nothing beyond a reply that accepts one frame; the id is random so a late answer to an exchange that gave up never answers another. Two choices diverge from a reading of the epic: the probe reuses http’s rather than attempting an upgrade, since any http answer already proves the transport rung and an upgrade the credential gates would read the same as a 404; and a 403 to the upgrade is terminal, since the socket has no other request a 403 could be scoped to. A simulated websocket face does not serve a form or token login (its auth is a static mode on its own port); the node’s login over a websocket is proven against real sockets instead. This slice completes epic #1113.

ADR-1038: An http session holds a server-sent events stream, and a held connection carries messages

Section titled “ADR-1038: An http session holds a server-sent events stream, and a held connection carries messages”
  • Date: 2026-10-25 | Status: Accepted | Pages: collection, nodes, glossary, drivers, simulation
  • Decision: (#1038, under the architect’s approval of epic #1113.)
    1. The stream is declared in the session block. session.stream is a request: a GET with a path, a query and headers (never Accept, Last-Event-ID or Cache-Control, which the node sends), no body, its events read as json (the default) or text. It rides the session’s scheme or login, as every request does, and it needs a listener; a listener over http needs the stream and declares no arm, since a stream has no upstream.
    2. A held session through the staged dialer. A standing listen task holds it: the connect is the TCP connect (and the TLS handshake over https, its pin the endpoint’s), the auth step logs in first when the session declares a login, then sends the stream’s GET with the scheme’s credential, the login’s session, the cookies and the Last-Event-ID, and judges the answer’s head by the status table (a 401 is a terminal auth; a lapsed login logs in once more; a digest challenge is answered over a new connection); a 200 carrying text/event-stream opens the reader. Anything else is a failed attempt on the session’s backoff. session-state and session-reason land as for a line session; endpoint-authenticated lands only for a stream that carries a credential. The registry’s http and https read held.
    3. A message, not a line. The held connection’s seam (Inbound) carries a message: a line, or an event with its data, its event name and its id (later a websocket frame). The router offers each to the listeners first (ADR-0151, unchanged), and a listener’s match may name the event and carry one data rule: a prefix, a regex, or a JSON field match (a dotted path that equals a value or matches a regex). The field and the event name are the router’s: a terminal rule, a login’s ready and a settle keep a prefix or a regex. A claimed message is read through the one extraction primitive in its format. Slice 4 extends a reply shape with the field match for its correlation.
    4. Resume. The event-stream interpretation is the WHATWG standard’s. A dropped stream reconnects with the last event id it was sent, carried across a reconnect that saw no event, after the server’s retry held to the backoff’s bounds (250 ms to 30 s). A server replays the events after that id; one that replays from it sends it again first, and that first event, carrying the id the connection resumed from, is dropped. Nothing else can be a duplicate, so no set of landed ids is kept: a component that reboots and counts from 1 again lands every new event. The resume lives with the endpoint in node memory while it reaches the same address, across a session’s recycle, never persisted. An event past 1 MiB is dropped whole (its id counted) and the stream reads on; an id past 1 KiB is ignored; an answer’s head is held to 64 KiB and to the timeout, as a refused answer’s body is.
    5. Beside polls, through one gate. The endpoint’s polls and commands stay requests of their own and share the stream’s learned auth (one login serves all). A stream refusal gates them; a refusal a poll or a command meets stops the stream, which restarts rejected, and every stream attempt checks the gate before it sends; the stream coming up lifts no gate; and while the stream makes its first attempt under a fingerprint, the polls and commands wait for its verdict, so a wrong credential is sent once, by the stream.
    6. The simulated face. An http face may declare events: every change to its named state paths is one numbered event, the last 256 kept, replayed from a reconnect’s Last-Event-ID (the event itself included, as some servers resend it), behind the face’s auth, with a console drop. The Kestrel bar streams its call, volume, mute and power, and the seeded kestrel-api holds it.
  • Context: #1038 predates the auth gate, rejected and the fingerprint, which the stream now obeys; its “http-json extraction” is the one primitive in internal/driver. Widening the seam to a message keeps one router for lines, events and slice 4’s frames instead of a router per carrier, and declaring the stream in the session block keeps it one fingerprint input beside the scheme or login it rides.

ADR-1100: Legacy rows and stored declarations honor the one-writer ruling

Section titled “ADR-1100: Legacy rows and stored declarations honor the one-writer ruling”
  • Date: 2026-10-24 | Status: Accepted | Pages: storage, metrics and properties, collection, api, glossary, drivers
  • Decision: (#1100, approved in session on 2026-10-24, amending ADR-0161.) The ruling held every new write; this holds what was written or declared before it, wherever it would still act.
    1. A pin’s provenance is its path. A declared pin row (an ssh host key, a tls certificate’s public key) carries source key-pin, which only the endpoint’s audited :retry writes, and the worklist, the fingerprint, the reachability read and the pin a trust replaces read a declared pin by that mark alone. A pin :retry wrote before the mark existed is recognized by the audit row its transaction wrote (the same endpoint, the same key, the same instant) and stamped by a one-time backfill; any other declared pin row is retired, with the observed rows of the same key a node published under it and never before it (ordered by arrival, never by a node’s clock). The endpoint then pins the key its node learned before, or trusts on first use again, under the gate as ever, and a retired pin’s key the node did not learn before the plant is never taken as the pin from the observed series again (a node still holding it may republish it) until a :retry declares it; the boot audit names an endpoint left pinning nothing that way. A node forgets a pin the worklist delivered and then stops delivering (it was withdrawn): it carries and republishes only a key it learned on first use itself, and a session held under a withdrawn pin redials. A declared row the plain property route left, a clear among them, is not honored: the pin in force is the last one :retry set, which fails closed (a component whose key moved since reads rejected naming both keys, and one :retry trusts it).
    2. Retire, never delete, never flag. A sample or event row of a reserved key whose class would refuse it today is moved whole into retired_sample (its lane, its id, the row as it was, and the reason) by the backfill. A flag column would need every read to honor it, and a read that forgot would serve the row again, the drift the gateway invariant exists to prevent; moving the row leaves no read to forget. ADR-0080’s floor (a prune never deletes a declared row or a series’ latest) governs retention, the loss of true data with age; retirement removes from service a row the ruling says was never its writer’s, and keeps the record, so the floor’s reason (nothing true is lost) holds. The backfill’s down restores every row it retired.
    3. What retires. A node-probe row on an owner that is not a component, written by a writer other than the node (a declared, intended or calculated row, a derived event, or a command’s reply, which carries the instant its command executed), under an instance that names no endpoint of its component, or dated more than five minutes past the database clock (the cap new rows obey); a health row the rollup did not write; a command-issued event no command points at; and the pins of point 1. An event row another row references (a command’s caused event, a derived event’s source) stays. At boot, every event rule series a retirement took rows from is judged again, once, so a condition, and the alarm with it, that a retired row raised lets go; a series that cannot be judged is logged and left to the reconcile pass.
    4. Stored specs and tasks never reach a node with a refused emit. The worklist strips from every driver task an emit whose key the node lane may not carry (a reserved key, a calc rule’s output) and keeps the rest, logging each once; a re-derivation from a stored spec never bakes one; and the server’s boot audit names every stored driver spec, derived task, contract line, event rule and command type the ruling refuses, so an operator can mend it. Each is inert where it would act before it is named, and a rule whose clear event the ruling now reserves still lets its condition go, writing no event.
    5. A node’s writer binds both. The node lane’s writer names the component its task collects for as well as the endpoint it ran against, and the gateway refuses every row of a batch that lands on another component, under any key.
    6. Contracts refuse reserved keys. A product, standard or location-type contract line on a reserved key is refused on the operator’s path and the seed’s (a 422 naming the key), and a line stored before the refusal lends the key no default in the effective reads.
    7. A command’s lifecycle is a reserved class. command-lifecycle holds command-issued and admits a command alone, so no push, node, driver or event rule puts a command on a timeline. Amended (#1155): the class also holds a command’s terminal events, command-settled, command-failed and command-timed-out, each written with the outcome it reports (ADR-1155).
  • Context: A write-side invariant shipped over existing data rules only what is written next. Rows and declarations from before it kept acting where nothing re-read them against it: a declared row the pin reads still took, a forward-dated row still read as the latest, a stored spec still compiled into a node’s tasks, and a contract default still resolved as a value. The rows themselves could not always say who wrote them, so the pin’s path became a mark on the row, recovered for history from the audit trail that already recorded it.

ADR-1108: An ADR’s number is the number of the issue it was decided under

Section titled “ADR-1108: An ADR’s number is the number of the issue it was decided under”
  • Date: 2026-10-24 | Status: Accepted | Pages: decision log, docs with everything
  • Decision: A decision’s number is the number of the issue it was decided under: a decision made on issue #NNNN is ADR-NNNN, its file adr-NNNN-<slug>.md (zero-padded to four digits) and its refs naming NNNN, which TestDecisionsFormat and the docs build both enforce. A second decision on the same issue takes a suffix, ADR-NNNN.2, then .3; the heading renders the dot and its slug drops it, so the anchor is #adr-NNNN2-<slug>, and the lint refuses two decisions that would share an anchor prefix (an issue whose number spells another’s suffix). ADR-0001 to ADR-0163 keep their numbers as a closed legacy range that runs with no gap; no new decision is numbered inside it, and a suffix there is refused. The index lists every decision in number order, the legacy range first. make adr-renumber takes suffixed numbers and is kept for the one clash left.
  • Context: Fragment files (ADR-0162) ended the merge conflicts on the decision log, but sequential numbers still made every two concurrent decisions race for the same next one, and with no conflict to stop it a collision could land on main before anyone saw it (#1097 and #1098 took 0160 and 0161 while ADR-0162 was in review). An issue number is unique by construction and already known when the decision is made, so the race cannot start; the only shared space left is one issue’s suffixes, which only PRs on the same issue can reach.

ADR-1110: A gate says why it holds, and the console shows it whatever met the refusal

Section titled “ADR-1110: A gate says why it holds, and the console shows it whatever met the refusal”
  • Date: 2026-10-24 | Status: Accepted | Pages: collection, nodes, api, glossary, drivers
  • Decision: (#1110, the architect’s approval in session.)
    1. The gate carries its reason. The node publishes endpoint-rejection-reason beside endpoint-rejection, in the same batch and at the same time, whenever it records a gate (<class>: <the component's text>, as the refusal reads; the same text a held session’s session-reason carries, scrubbed of anything the node sent). It goes out again with the gate until the worklist reflects it. A gate the node adopts from the worklist after a restart never saw its refusal, so it publishes no reason and the one on record stands, and a held session started rejected under it does not re-record it from its own replay (told by the refusal’s identity, not its value); a driver’s re-probe that meets a refusal under the same fingerprint records its words, and the reason goes out again beside the unchanged gate. A gate that lifts publishes none and no reason. The key is native and node-only, so no push can plant a reason the node never scrubbed.
    2. The read serves the gate whatever holds a session. rejection already ignored the session; it now carries reason (read only while a gate holds, so a lifted gate’s last reason is never served, cut to 500 characters like a session’s) and ts, when the gate was last published.
    3. The console keys the notice on the gate. SessionNotice shows for a rejected session or a held gate, its reason the gate’s, else a rejected session’s (one published before the gate carried a reason), else the class: a session restarted under an adopted gate carries the node’s placeholder as its reason, while the gate keeps the refusal’s own words. Retry (behind endpoint:retry) and Trust this key wait on what they move: the session’s transition time where a session is held, else the gate’s publish time. There is one notice, not a second one for probes.
  • Context: A probe’s refusal gated the endpoint (ADR-0158) and the ladder showed the held rung, but the notice, its reason and Retry keyed on session.state === "rejected", and an endpoint gated by its reachability probe alone holds no session (the snmp community refusal found in #821, a udp terminal reply, a tls certificate refusal, an ssh probe’s credential). Its reason had nowhere to live: session-reason is a held session’s, and the tls probe only logged it once. Keying the notice on the gate alone would have shown a refusal with no why, so the gate gained its reason.

ADR-1114: An http login is the login dialog carried over to http, and its session lives in node memory alone

Section titled “ADR-1114: An http login is the login dialog carried over to http, and its session lives in node memory alone”
  • Date: 2026-10-25 | Status: Accepted | Pages: collection, nodes, glossary, drivers, simulation
  • Decision: (#1114, under the architect’s approval of epic #1113, its decision 3.)
    1. One login primitive. An http session’s login is the login dialog a line session runs (#1061), its steps requests rather than prompts. A step’s references are only ${secret.<input>.<field>} of declared secret inputs, validated at write, rendered injection-safe as a command’s are. A login declares a scheme or a login, never both, and no re-probe, pty or exec.
    2. What a login opens. capture names values the last answer carries, each located by the one extraction primitive bound to that answer’s format; headers send them on every later request (${session.<capture>} only, never a secret, never Cookie or the headers the client owns, a poll’s or a command’s own headers never shadowing one); expiry reads the session’s lifetime in seconds, held to 10 seconds to 30 days, and one missing, zero or unreadable declares none. The component’s cookies ride a jar, kept for a login session alone, at most 64 cookies of 4 KiB. A captured value with a control character, or past 8 KiB, refuses. A step’s path opens with a literal /, so no secret renders into the URL’s authority.
    3. Memory alone (decision 3). The node holds one auth state per http endpoint, shared by its polls and its commands: the jar, the captured values and their headers, the digest challenge. Never logged, published or persisted; dropped whole when the endpoint’s connection fingerprint moves (every login input is in it, through the session block and the secrets’ sealed versions), on a terminal refusal, and with the process. A login runs on a fresh jar.
    4. A lapse logs in once. A credentialed answer that is a 401, a redirect to the declared login path, or the declared expired text has lapsed: the node logs in once more and replays the request once. A lapse right after a fresh login (the request’s own, or another request’s that opened the session meanwhile) is a terminal auth refusal, never a second login. A declared expiry renews the session with a tenth of its lifetime to spare.
    5. A refused login is one attempt. A login answer that is a declared terminal rule, a 401, a redirect back to the login page, any other 4xx, or a 2xx at the last step without the ready text or a value it captures, is the component refusing the login: a terminal auth at the session rung, through the gate and its reason (#1110). The state holds the refusal, so concurrent requests cannot try twice; the gate holds every request beneath it across a restart. A login drawing no verdict after its secrets were sent (a 5xx, a 408, a 429, a connection dropped after the request was written) is retryable, but three in a row spend the login budget and read rejected, as a line session’s silent hang-up does; a connection never made charges nothing. A redirect elsewhere passes.
    6. Digest is a scheme on basic-auth. scheme: digest answers RFC 7616: MD5 and SHA-256 and their -sess forms, qop=auth or the legacy form, the strongest challenge offered. The challenge is held and answered preemptively with a rising count; a challenge marked stale, or under a nonce rotated without saying so, is answered afresh (a count once sent under a nonce is never sent again, and a -sess key keeps one client nonce per challenge), and a 401 to an answer of the nonce still offered is the credential’s refusal. A 401 with no challenge the node answers is the request’s own fault: the credential was never sent. The password never crosses the wire.
    7. Never logged. Everything the state holds (the secret fields a login sent, the captured values, the cookies) is scrubbed from every reason and error in every form a component could echo, and from every URL the node names; what a login would capture is scrubbed even from the reason refusing it. An exchange prints as its method and path alone. The node logs a login’s reason (opening, renewing before expiry, the session lapsed), never a value. A command whose delivery names an address the worklist does not is never sent, so a session never rides to another component.
    8. Shaped for OAuth2. A client-credentials grant (#1119) is a request step posting the client’s secret fields, a captured access_token, its expires_in and a bearer header: no reshaping, only a secret type. A client authenticating with a Basic header over its id and secret needs a template function this slice does not add.
    9. The simulated faces. The simulator’s http gate gains form (a sign-in page and a session cookie), token (a JSON login answering a token and its lifetime) and digest (MD5 or SHA-256, a nonce that goes stale on a replay or a rotation); sessions live in the device’s memory, and the console expires them all through the face’s expire_path, as a reboot would. The Newtron panel’s https API takes the form login and the Boreal display’s web admin the digest, read by the seeded newtron-panel-web and boreal-edge-web.
  • Context: slice 1 (#902) authenticated every http request by a per-request scheme, but much gear’s web API signs in once and expects the session back. The epic’s decision 3 ruled the session memory-only, so a stolen database or a log line never yields a live session, and the login dialog #1061 had already settled the shape and the one-attempt discipline for line sessions; carrying it over kept one primitive and one fingerprint input. Digest rides basic-auth because it is the same credential presented another way.

ADR-1132: A demo is one concept with two recorders, and every PR demos its feature

Section titled “ADR-1132: A demo is one concept with two recorders, and every PR demos its feature”
  • Date: 2026-10-25 | Status: Accepted | Pages: demos, labels, slice workflow, docs with everything
  • Decision: A demo is a recording of a PR’s feature working, made by one of two recorders, and a demo id names one demo of either kind (#1132):
    1. Two recorders. A terminal demo is a VHS tape under scripts/demo/, typed into a real terminal by the CLI the PR builds, against the walkthrough stack, and rendered as a GIF and an MP4; a walkthrough stays the Playwright script it was (#924). VHS runs from its own image (ghcr.io/charmbracelet/vhs, v0.12.1, pinned by digest), which bundles ttyd, ffmpeg, chromium and the fonts; the recorder adds jq, a prelude and this tree’s omniglass binary (web/e2e/tape/Dockerfile).
    2. One pipeline. run:demo records the PR’s demos of both kinds in the one record job (the PR’s code, a read-only token), and the one publish job commits them to the PR’s existing evidence ref, refs/walkthroughs/pr-<n>, under the existing 30-day prune (ADR-0149). It upserts one comment listing every demo: a terminal demo’s GIF from the raw host, playing inline, with its MP4 linked through jsDelivr to scrub; a walkthrough as before. The workflow keeps honoring run:walkthrough, and the upsert finds the walkthrough comment’s earlier marker, so a PR labelled before this keeps one comment.
    3. The house rules. A tape sets nothing about its look (one size, font, theme and typing speed, applied by the recorder) and may use only the commands a demo types and waits on; every Enter is waited on; no uuid is typed (address by name or dotted address, or look an id up by name in the tape). The prelude lists every typed command that exits non-zero, and any listed command fails the demo, as do a Wait that runs out and a recording over budget (a GIF under 5 MB, under two minutes; waits are hidden and cost nothing).
    4. The rule. Every PR demos its feature: a terminal demo for CLI and API behavior, a walkthrough for a console flow, both when it has both, n/a only with a reason. /ship-slice refuses a ship-review with no Demo line, and the PR template carries a Demo section.
  • Context: #1131’s demo was a pasted transcript, the first, because no terminal recorder was installed, while console flows already played on the PR through the walkthrough pipeline (#939). The architect asked for every PR’s demo to play as an animated terminal recording, and, in session, that the terminal recorder join the walkthrough pipeline rather than sit beside it as a second one: one label, one record and one publish job, one prune, one comment. A sibling run:demo beside run:walkthrough was weighed and rejected: two labels would mean two comments, or two triggers for one act of review, and the cost they would have separated is handled by the selection instead (a CLI-only PR records only its tapes, never every walkthrough; a console change still records every walkthrough). VHS’s own image was preferred over driving the chromium the Playwright image already ships: the image is the combination VHS is built and tested with, publishes amd64 and arm64, needs nothing installed on a host, and renders the same fonts on a laptop and in CI, while the Playwright route would hand-pin VHS, ttyd, ffmpeg and a font into a derived image and point go-rod at a browser it does not look for. Its cost is one more image pull (about 3 GB) per CI run that records a tape. asciinema was not needed. The evidence ref keeps the name it had when walkthroughs were the only demos, so the prune and every earlier comment stay as they are.
  • Amended (#1180): the selection is explicit. A PR records exactly the demos its body tags (demo: <id>, or demo: none (<reason>)) plus any it adds or changes; the widening on a recorder, web/ or stack change, and recording every demo when a PR names none, are retired, and a nightly run on main re-records every demo instead. Each demo records on a runner of its own, and the publish job also writes each demo’s clip into the PR body. See ADR-1180.
  • Amended (#1247): a terminal demo’s length budget is 180s, not two minutes, and one pacing rule holds each line a tape shows before its prompt returns (a tape writes no Sleep). See ADR-1247.

ADR-1133: Every operator resource answers to its name, and an endpoint is its component and its name

Section titled “ADR-1133: Every operator resource answers to its name, and an endpoint is its component and its name”
  • Date: 2026-10-25 | Status: Accepted | Pages: api, identity and access, groups, files, glossary, API first, CLI
  • Decision: (#1133, the architect’s request in session.)
    1. An endpoint is <component>/<endpoint name>, on the route it already had. Every per-endpoint route (GET, PATCH, DELETE /endpoints/{endpoint}, POST /endpoints/{endpoint}:retry) takes the component in any form the component resolver takes (a uuid, a bare name, a dotted address), a slash, and the endpoint’s name, unique on its component (endpoint_component_name_key): boi.17c.415a.$comp.display-1/https. The nested alternative, /components/{name}/endpoints/{endpoint}, was rejected on three grounds. A server-hosted endpoint has no component (and ON DELETE SET NULL makes one of any endpoint whose component goes), so a nested collection could not address every row, and AIP-122 gives a resource one canonical name rather than a second route that aliases the first; the four nested operations would have duplicated four existing ones, permission stamps and CLI commands included; and the same <container>/<name> shape is what a secret and a variable need anyway. The slash is one path segment, percent-encoded in a URL: the router matches the raw path, and Huma’s chi adapter decodes the parameter, so the resolver sees the reference as typed. The generated CLI encodes every positional as one segment, the slash and the colon both (a filename may carry a colon, which the router would otherwise read as a :verb). A component-less endpoint’s name is not unique, so it alone stays uuid-addressed.
    2. A secret or a variable is <name> or <owner>/<name>. A name is unique within its owner on every tier of both tables already (secret_platform_name and the three secret_*_key_uuid partial indexes, and their four variable twins, verified on a migrated schema), so no migration was needed. The cascade makes one name at several owners the ordinary case (a room overriding the platform’s credential), so a bare name resolves only where exactly one the caller can see carries it, and <owner>/<name> always does: the owner a location, system or component in any tree form, or $platform for the install-wide tier, which has no name of its own. The $ sigil is the one the address grammar reserves for platform words (ADR-0089), so it can never collide with a location named platform.
    3. The rest of the operator surface. A file answers to its filename where exactly one file the caller can see carries it, refusing with each candidate’s uuid where several do (a filename is unique nowhere, so the uuid is its only unique spelling, and a uuid-shaped or dot-segment filename is refused at create, since it would read back as another reference); a principal group to its name, every group route resolving it after the all-scope check so a scoped caller learns nothing; a group member and every /principals/{id} route to a username or a service account’s name, a word that is both naming neither, and a principal route resolving a name only for a caller who may list the whole directory (principal:read:admin on an all-scope grant), anyone else getting the gateway’s all-scope 403 for every name, so neither a username nor a service name can be probed; a grant’s scope_id to a name or a dotted address, stored as the uuid. What stays uuid-only has no name: an alarm, an audit row, a grant, a session or token, a task (its id is its content hash); a node principal is reached by its name on /nodes.
    4. Scope decides before ambiguity does, and an unresolved name is a 404 naming it. Every form narrows its candidates to what the caller may read first (an endpoint’s components to its endpoint:read scope and to those carrying an endpoint of that name; a secret’s owners to its secret:read scope and its admin tier), so an out-of-scope row sharing a name never makes an in-scope one ambiguous, and an absent row and an out-of-scope one give byte-identical refusals. The narrowing runs in SQL over the whole candidate set (the arc-scope primitive for a secret or a variable, a batch scope check for an endpoint’s components), so a name a whole fleet shares costs a constant number of statements. The resolve yields the uuid, inside a write’s own transaction where the write has one (a file delete and the principal routes resolve first, on properties that cannot change in between), and the route’s existing read-then-action split, permission tier and audit row then run on that row unchanged: a name changes how a row is found, never what may be done to it, and an audit row keys on the uuid, never the spelling. A name no visible row answers to, or that several do, is a 404 naming the reference (storage.ErrUnresolvedRef, unwrapping to the resource’s own not-found), and where several do it lists each in the spelling that resolves, every one a row the caller could list. This diverges from the tree entities, whose ambiguous bare name stays the #697 409 listing candidates: for these resources the issue’s acceptance asked for a 404, and an address that names no single row of the collection reads as one. Aligning the two is #1134.
    5. The uuid is always first and always returned. A uuid-shaped reference is used as the id before any name is tried, so an id never collides with a name, and every response body still carries the uuid (ADR-0076).
    6. The docs and the demos type names. TestDocsCarryNoHardCodedUUIDs (internal/docslint) fails a uuid in an address position on any docs page, excusing an id field a response returns, the generated CLI reference, the append-only log entries, and an explicit allowlist that is empty today; TestDemoScriptsCarryNoHardCodedUUIDs fails any uuid at all in a committed demo under scripts/demo, comments included, on the tape linter’s own pattern (ADR-1132), so whatever that linter refuses in typed text it refuses too. A path parameter’s OpenAPI example renders in the generated CLI’s examples, so the help teaches omniglass endpoint retry 'boi.17c.415a.$comp.display-1/https', not <id>.
  • Stated limits, recorded rather than hidden:
    1. A bare name lands on whatever single row the caller can see by it. A secret rotation by a bare name, where the row the operator meant is gone and another principal has sealed a secret of that name within the caller’s view, rotates that other secret. That is the positional honesty ADR-0089 already accepts for a dotted path, and the mitigation is the same: an update answers with the owner it landed on (owner_kind, owner_id, owner_name; a delete has no body to answer with), after the fact, and automation that must not drift addresses <owner>/<name> or the uuid. Refusing a bare name on a write would have broken the acceptance this decision was built to (omniglass secret update demo-panel-login).
    2. A qualified name’s slash crosses every hop percent-encoded. The server decodes it; whether the chart’s default Traefik ingress passes it through is unverified and tracked as #1138. The uuid form is unaffected.
    3. The CLI refuses a . or .. positional, a dot segment a normalizing proxy would rewrite into the route above it; no name, address or filename can be either.
  • Context: The tree entities had answered to a name and a dotted address since #627, but an endpoint, a secret, a variable, a file and a principal group took only a uuid, so the #1131 demo looked each component’s uuid up with jq before it could retry an endpoint or rotate a secret, and the CLI guide said “endpoints are addressed by id”. A non-uuid reference on those routes used to reach Postgres as a uuid cast and answer 500. The adversarial security review this slice ran (name resolution against scope, existence disclosure, the window between resolve and act, secret name enumeration) found the core authorization sound and shaped the rest: the principal routes’ directory precondition, the in-SQL narrowing, the refused filenames, the dot-segment refusal, the owner a write answers with, and the human-only lookup the break-glass set-password now revokes sessions by.

ADR-1134: An ambiguous name is a 404 naming the reference, on every collection

Section titled “ADR-1134: An ambiguous name is a 404 naming the reference, on every collection”
  • Date: 2026-11-13 | Status: Superseded in part by ADR-2334: an ambiguous name is a 409, not a 404. Its candidate spelling and redaction stand. | Pages: api, core entities, CLI
  • Decision: (#1134, the follow-up ADR-1133 named.)
    1. One status for a repeated name. The tree entities (component, system, location) answered an ambiguous bare name with a 409, while an endpoint, secret, variable, file, group or principal answered a 404 (ADR-1133). The tree entities move to the 404: the reference as typed resolves to no one row, which is what a 404 says, and a 409 reads as a conflict with a stored row, which nothing here is. mapRefErr maps ErrAmbiguousName through the one message builder the #1133 refusal already used, so the two cannot drift apart.
    2. A candidate is spelled so it resolves. For a tree entity that is its dotted address with the uuid beside it (campus.room-a.$comp.display-1 (<uuid>)): the address says where the row sits, the uuid survives a rename, and either half is accepted on the route that refused the name. The addresses are rendered by the same PathsOf walk a read uses, inside the request’s transaction.
    3. Redaction is unchanged. Candidates are narrowed to the rows the caller may read before ambiguity is judged, so a candidate the caller cannot read is neither listed nor counted. A path with no caller scope to filter by (the three *NameTaken advisories) still names no candidate and says only that more than one row answers to the name.
    4. No compatibility path. The 409 is removed, not kept beside the 404, per the pre-deployment stance. A create that collides on a name it is about to write (a :move, a rename) stays a 409, since that is a true conflict with a stored row.
  • Context: ADR-1133 gave every other collection a 404 that lists its matches and left the tree entities on their older 409, a split an operator and a generated client could only learn by trying. The 409’s candidates were bare uuids, which resolve but say nothing about which row is which.

ADR-1145: A driver emit lands on any of the four lanes, and a log line’s severity is RFC 5424’s

Section titled “ADR-1145: A driver emit lands on any of the four lanes, and a log line’s severity is RFC 5424’s”
  • Date: 2026-10-25 | Status: Accepted | Pages: collection, metrics and properties, events, storage, simulation, glossary, drivers
  • Decision: (#1145, approved as recommended on 2026-10-25, the shared primitive under epics #1146 and #1147, the architect’s direction that any collection method maps into any of the four lanes.)
    1. Three catalogs, one emit. An emit’s name resolves against metric_type, property_type and event_type (already one namespace), the lane baked at attach. An event emit declares a message (a constant or an extract, by default the whole claimed message or answer) and attributes (each a constant or an extract; a cast to int or float renders a JSON number), held at write to the type’s payload_schema where it closes or requires fields. A reserved event type (collection-failed, command-issued) is refused at write naming its writer, as a reserved metric is (ADR-0161).
    2. A log line has no catalog name. It declares log (its severity and facility, each a constant or an extract, and its source, by default the endpoint’s transport) with a message and attributes. A log line is raw arrival (ADR-0066), so it always lands: a message extract that misses falls back to the whole text, and a severity, facility or attribute that misses is left out, each miss a fault naming it. An event is an assertion, so a field that misses lands nothing.
    3. A time from the payload, on any lane (decision 3). ts is an extract and a layout (rfc3339; rfc3164, whose missing year is the one nearest arrival, in a declared zone; unix; unix-ms; go: a Go reference layout, refused at write unless it carries a month and a day). A time past five minutes ahead of arrival lands at arrival, a log line keeping the claim as ts_claimed, a sample counted in the node’s self-log; one that does not parse, or no timestamp can hold (outside the years 1 to 9999, or not a number), lands at arrival and faults. A value cast to a number that is not finite is a fault naming the field, never a payload that cannot be encoded.
    4. A task’s log lines have a wire field of their own. TelemetryBatch.task_logs carries a component’s lines a task collected, beside the node’s self-logs in logs, so one batch carries both and neither lands in the other’s table; ingest writes them to log_line on the task’s component, its endpoint the line’s instance, owner-bound server-side from the task as every sample is, and an orphan batch lands none. A log line carries received_at, the server’s receipt, beside the time it claims.
    5. Unclaimed messages may land. unmatched: log lands each message no listener claims as a log line under the endpoint’s first listen task, an event’s name kept as an attribute; held sessions keep their discard default.
    6. Occurrences fire on change on a plain poll (decision 2): a poll’s event or log line lands when its content differs from what that task last landed, remembered in node memory, so a status page’s last error lands once per change.
    7. One severity vocabulary, held at the gateway (decision 1). Every log_line write is held to RFC 5424’s eight levels (emergency, alert, critical, error, warning, notice, info, debug) through one alias table (internal/logline), a word it does not know left out and kept as severity_raw; a message and attributes past 16 KiB each are cut and marked, never refused (decision 4); and a NUL byte in any field, which Postgres refuses and which would fail the whole batch, is replaced. The component and system log reads filter by a severity threshold and a source, list the window’s sources, and window and order on a line’s arrival (received_at, its own time for a line stored before it was kept), so a component whose clock reset still reads in the last day. This severity is a source’s classification of a line, distinct from the alarm severity ladder. Rows written before this ruling keep their words until #417’s first step backfills them through the table.
  • Context: #603 promised that polled and pushed payloads parse into the five lanes, and the spec reached two: LaneOf loaded the metric and property catalogs alone, the node’s batch builder routed text to properties and numbers to metrics, and on the node lane every log line was the node’s own, so a component’s line a node sent would have landed as a self-log. Push ingress (#1146) and file fetch (#1147) both map most of what they read to log lines and events, so the primitive is a Feature of its own under #603 that both epics consume. The proof is the shipped drivers on the simulator: the Newtron panel’s input push lands as the video-input property and an input-changed event, its diagnostics line as a log line with its severity, and a push no listener claims raw; the Kestrel bar’s feed reports a call starting and ending as named events (a simulated route may now declare named events), which kestrel-api lands as call-started and call-ended carrying the call’s id. Retention for the log tables is this Feature’s second part, #417.

ADR-1155: A command is read whole, its evidence kept and masked, and an issue may wait

Section titled “ADR-1155: A command is read whole, its evidence kept and masked, and an issue may wait”
  • Date: 2026-10-25 | Status: Accepted | Pages: commands, api, identity and access, metrics and properties, glossary
  • Decision: (#1155, approved in session on 2026-10-25.)
    1. A command is read whole, under its component. GET /components/{name}/commands/{id} and the history, GET /components/{name}/commands (newest first, narrowed by status, by when it was issued, and a page size), answer the command type and its intended value, the target, the recorded status with a time per transition (issued, delivered, executed, settled), the endpoint, node and driver that carry it, the settle mode its binding declares, the evidence, a reason, and the issuer. A command has no name, so it is addressed by its id under the component, which takes every spelling the component routes take; an id under another component is the same 404 an unknown one is.
    2. Reading needs command:read, resolved on the component tier with the split. The component resolves through the caller’s component:read (outside it, the non-disclosing 404) and its command:read (inside the read but outside that, the truthful 403), as an action’s target does (ADR-0116). The viewer floor holds command:read, and the read floor gives every issuer it on the grants that carry command:issue, so the issue’s answer carries the read body too.
    3. Where a command sits is derived, never stored. The phase (queued, delivered, awaiting the reply, awaiting the observation, then the terminal status) and the settle mode (reply, observation, none) are functions of the row and its binding, computed on read, so no write path has a second fact to keep in step.
    4. The row keeps its evidence and its why. The execution report’s reply and error are stored, masked first of the dispatched endpoint’s secret fields in the forms a component commonly echoes them (raw, url-escaped, JSON-escaped any way, html-escaped, base64, in any case, and a basic login’s authorization value) and of any pair, element, header or config keyword the text labels a credential, then made valid text and capped at 4 KiB; the judgment still reads the reply whole. The masking fails closed: when the server cannot read the endpoint’s secrets (no key provider, an envelope that will not open, a driver detached since the dispatch) the node may still hold them, so the reply and the error are withheld rather than stored half-masked, and the report’s confining stamp runs before any secret is read, so a report a node had no standing to make reads nothing. The outcome records settled_by (issue, reply, observation, window), a reason in operator words, and the observed sample when an observation decided it. A timeout’s reason says where the command stopped: answered with nothing observed, delivered with no report, queued for a node that never took it, or carried by no endpoint. The masking is one primitive, internal/redact, that the node’s http scrub now calls as well.
    5. Each terminal status lands its lifecycle event. command-settled, command-failed and command-timed-out join command-issued in command-lifecycle, written with the outcome in its transaction and linked from the row (settled_event_id); a fire-and-forget command, settled by its issue, writes none. The event names the command and carries no evidence or reason, which stay on the command behind command:read rather than on a timeline event:read reaches. Before this release the three names were ordinary, so a one-time backfill retires an event of them that no command wrote into retired_sample, as ADR-1100’s did for command-issued. This amends ADR-1100 point 7, which named command-issued alone. Amended by ADR-1630: a fire-and-forget command is no longer settled by its issue; its execution report or its delivery window decides it, and it writes its lifecycle event then, so settled_by is no longer written as issue.
    6. An issue may wait, bounded. wait blocks the issue until the command is terminal or wait_timeout passes (1 to 120 seconds, 30 by default), polling from a tenth of a second back to once a second and judging the command itself once its deadline passes, so a wait answers a timeout at the window rather than at the next sweep. At most 64 waits run at once, 4 per principal; a wait past either is a 429 refused before anything is issued, so a refusal leaves nothing to retry around. A wait that runs out answers with the command as it stands.
  • Stated limits, recorded rather than hidden:
    1. The mask is an equality oracle. A principal that may issue a command whose reply echoes its value learns, from which value reads back [redacted], whether it guessed the endpoint’s secret. Issuing is already the stronger authority (it actuates the component), and the read refuses nobody the issue admits, so this is recorded rather than closed.
    2. What a component echoes in a form the mask does not know (a hash, a partial echo, a multi-word value past its first word after a label) is stored as echoed; masking is a second line behind a driver that does not ask a component to echo its login.
    3. A row stored before this release carries its execution error as the node reported it; the read masks what it labels a credential, and nothing more.
  • Context: The issue answered {id, status: "issued"} and nothing read a command back, so the #1154 demo could not show a set-volume settling and only an end-to-end test asserted it. The state existed on the row but the evidence did not: a failed command could say that it failed and not what the component answered, nor where a timed-out one had stopped. The reply crosses from a component the operator does not control, so it is masked before it is ever stored rather than at each read, and the wait holds a request open, so it is bounded in time and in count before it writes anything.

ADR-1162: The MCP server is a generated client of the operations stamped for it, run as the caller’s token

Section titled “ADR-1162: The MCP server is a generated client of the operations stamped for it, run as the caller’s token”
  • Date: 2026-10-25 | Status: Accepted | Pages: api, AI, audit, identity and access, API first, connect an agent, MCP tools
  • Decision: (#1162, the first slice of epic #1161, whose decisions 1 and 2 the architect ruled as recommended.)
    1. Generated, and curated in Go. The API page and the AI page said the catalog is curated, not one tool per operation; #1161 asked for tools generated like the CLI. Both hold: an operation is exposed by a stamp at its registration (Extensions: mcpExposed()), which puts the x-omniglass-mcp extension in the generated OpenAPI beside x-omniglass-permission, and cmd/mcpgen turns every stamped operation into a tool. What is exposed is reviewed in the same diff as the route, never in a hand list that drifts from it. The first catalog is the reads and the core writes an agent setting up monitoring needs (46 tools of 298 operations): a model chooses worse among hundreds. A tool is named by its operation id, describes itself with the operation’s description (which names its gate), and takes the path parameters, query parameters and body properties as one argument object, references inlined; a name used twice, a required header, or a stamp the rule refuses fails the generator. A drift test rebuilds the catalog from the committed spec in make test, and gen-drift diffs it in CI.
    2. Annotations are one rule, and a stamp only adds caution. A tool is read-only when its route is a GET or a POST gated by a read (a preview, a validate); a PATCH, PUT or DELETE is destructive; a POST is additive unless its stamp says destructive (issuing a command does, and so does retrying an endpoint, which can replace the key it trusts); reads, PUTs and DELETEs are idempotent; open-world comes only from a stamp, set where a node reaches the network on the call’s account (creating, editing or retrying an endpoint, issuing a command). Every hint is sent explicitly, since the protocol’s defaults are the cautious opposite. A stamp has no read-only hint, so it cannot present a write as a read; a destructive hint on a read is refused as a contradiction. A route that panics behind a tool is that call’s 500, recovered in the dispatch, since a tool runs off the HTTP goroutine where net/http’s recovery does not reach.
    3. One implementation, behind the caller’s token. The server is mounted at /mcp beside the API, not inside it, and dispatches each tool through the same router with the caller’s Authorization header on a fresh request context: nothing ambient from the MCP request rides in, and a session cookie is never forwarded. The endpoint admits a request only when the API accepts its bearer token (it asks GET /auth/me), so expiry, revocation and impersonation behave as on every route, and a browser’s cookie cannot drive it. Stdio is omniglass mcp, a relay that connects to /mcp with OMNIGLASS_TOKEN, serves exactly the tools the server lists and forwards each call with the calling client’s declared identity; the token goes only to the named origin and never across a redirect. A call the server refuses for an expired session (its idle timeout, or a restart) is sent once more over a fresh one, since it was never dispatched; a dropped connection renews the session for the next call without retrying, so a write never runs twice. The token is the authority: there is no mcp:* permission, and no OAuth for MCP until the OIDC work (ADR-0004).
    4. The audit row says how it arrived. audit_log gains channel (mcp, with omnibot reserved for #1166) and client (the name and version the MCP client declared, sanitized and recorded as asserted). The dispatch sets them on the request context, which only server code can reach, so a direct API caller cannot claim a channel; a check holds the column to the channels the server knows. The actor stays the principal (and the real actor under impersonation): the channel is the AI-sourced marking the audit page promised, riding beside the row, not a new actor.
    5. A token is audited. A token is how an agent is given access, so minting one writes a create row (the bootstrap token too, with no actor, from the trusted lane) and revoking one (one at a time, in bulk, or by logging out with it as the session) a revoke row, on resource credential, keyed by the credential’s id and carrying its prefix, purpose, description and expiry, never the token or its hash. A web-login session stays the auth lane’s.
  • Context: The design pages fenced the MCP surface under #522, and api-first.md listed an MCP catalog as a stage with no generator. #1161 needed one so that omnibot and an operator’s own agent drive omniglass through the same surface; making it a generated client of the route registry is what makes “not a side channel” true by construction rather than by review.

ADR-1163: A poll runs once on demand through its node, as a preview that stores nothing or a run now that lands

Section titled “ADR-1163: A poll runs once on demand through its node, as a preview that stores nothing or a run now that lands”
  • Date: 2026-10-25 | Status: Accepted | Pages: collection, nodes, glossary, drivers, CLI, MCP tools
  • Decision: (#1163, slice 2 of epic #1161, whose decisions 10 and 12 the architect ruled as recommended.)
    1. One primitive, two outcomes. The on-demand node run carries a node a task as its worklist would (the baked function, the target, the secrets unsealed) and the node answers once: a preview runs the polls of a spec no endpoint holds and publishes nothing; a run now runs an attached endpoint’s own poll task and publishes what it reads as a scheduled run does, its schedule untouched. A preview runs on the request’s goroutine and touches no held session; a run now waits for the run loop, which owns every session and gate, so it borrows the endpoint’s session and a gated stateless poll is refused with the gate’s refusal, nothing sent. #1160’s route (POST /endpoints/{endpoint}/polls/{poll}:run) is this run now; #1160 keeps its console Run now action (decision 10).
    2. A request the node answers, not the command wire’s pull (a divergence from the epic’s wording). The epic said the run rides the per-node pull the command wire uses (ADR-0136). The pull is at-least-once delivery for work that must happen eventually; a run is wanted now or not at all, and its caller is waiting. So it is the simulator operation’s shape: the server requests on og.v1.run.<node>, the node’s grant covers its own run subject only, and its one reply stays permitted for the run’s whole budget (30 seconds at most). A node that is not connected is a 503 and one that does not answer a 504; nothing is queued for later.
    3. Validate answers every finding. The validator stops at a spec’s first fault. Validate runs it on the whole spec and again on each function alone, the spec’s other fields intact, and a function whose isolated fault names it is a finding of its own; the first finding is always the fault a save names. A preview of an invalid spec is a 422 carrying the same findings.
    4. A preview is as strong as a command, and its secrets are a reveal. A poll’s request is whatever its spec says (an http POST, any line), so a preview can change the component it reaches: its MCP tool is destructive and open-world, not read-only, though it stores nothing in omniglass. A preview hands its secret inputs to a target the caller names, so each must be one the caller may reveal (secret:reveal, the admin tier for an admin-sensitive one), and each is audited on the secret; the answer is masked of every secret field it used. A run now carries the endpoint’s own stored inputs, so it answers samples and faults (which already land as collection-failed for anyone who reads the component) and no raw excerpt.
    5. The grants and the bound. driver:preview and endpoint:run are operator grants (decision 12), admin inheriting them. Both routes hold a request open while a node works, so they are bounded by a stricter class than #962’s API-wide limit: 16 runs in flight across the server and 2 per caller by default, a run past either a 429 before anything is planned. Each asking is audited in the planning transaction: a preview on the node, a run now on the endpoint.
  • Context: An agent (or an author) building a driver needs to see what a component answers and what a spec extracts from it before saving or attaching anything, and an operator needs a poll’s answer now rather than at its next tick (#1147 decision 6 filed that as #1160). Building both on one node primitive keeps the node’s session and gate logic in one place, and the preview’s thin cut (a poll that is its own request) is what needs no endpoint at all.

ADR-1166: omnibot is an MCP client on its own agent token, confirming in its client

Section titled “ADR-1166: omnibot is an MCP client on its own agent token, confirming in its client”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, audit, connect an agent
  • Decision: (#1166, slice 1 of the re-scoped split under #1161.)
    1. omnibot is a client of the MCP server, not a path beside it. It lists and calls the same generated tools any agent does, so every call is authorized, scoped, refused and audited by the route it lands on. The loop decides only what to ask the person.
    2. Its identity is a minted agent token, not an OAuth sign-in. At the start of a run the person’s token mints an agent token named omnibot, held to the omnibot channel, for one day; at the end the person’s token revokes it, however the run ended. OAuth 2.1 (ADR-2048) is for a third-party client the person has to consent to; omnibot ships in the binary the person already signed in with, so a consent screen would add a step and no assurance, and a token that lives one run is narrower than a client’s standing grant. Only a person can mint, so omnibot cannot run on an agent token.
    3. Confirmation is in the client. Each listed tool carries its resolved agent policy (ADR-2063): always runs, ask runs once the person says yes, never is not offered, and a tool with no readable policy is ask. The server holds no pending action and no approval queue: a declined call is never sent, and the model is told it was declined.
    4. The channel is the credential’s. A token held to the omnibot channel alone is accepted only on the MCP server (and /auth/me), and authn stamps its rows channel = 'omnibot'. What the MCP client declares about itself stays in client, as asserted. Only the omnibot agent may be minted for that channel, only for it alone, and for one day at most.
  • Why: the security rule that an agent never sees a credential holds by construction (the agent token cannot reveal plaintext, ADR-1179), and confirmation in the client is the same place every other MCP client confirms, so omnibot is held to no weaker and no stronger contract than Claude or any other agent.
  • Consequences: a server-side approval for an unattended agent does not exist; an operator who wants a tool never run by an agent sets it never. A live model provider is a later slice; until then the model is a recording (--replay).

ADR-1167: The omnibot panel shows each call through a renderer registry over a generic card

Section titled “ADR-1167: The omnibot panel shows each call through a renderer registry over a generic card”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, connect an agent, console
  • Decision: (#1167, over the run of ADR-2121.)
    1. One panel, two doors. A drawer opened from the top bar or the command palette’s last row, shown only to a person who may use the assistant. The palette’s query arrives as a draft, sent only when the person sends it.
    2. A generic card first, renderers over it. Every tool call is a slim row in the turn’s one collapsed thought block, naming the tool and its arguments and expanding to a generic card with the raw result one click away. A registry keyed by tool name may render the result the way the console shows that thing elsewhere (a component as a link, reachability as the endpoint ladder); a tool with no renderer, or a result the renderer cannot read, keeps the generic card, so a tool added to the catalog is never a blank.
    3. The run’s end is the stream’s. An ask is the RUN_FINISHED interrupt, shown as a confirm card whose answer is the next run’s resume; the step limit is read from the RUN_FINISHED result; a 403 reads as refused and any other failure names the server’s reason.
    4. A credential goes by name. Add a credential creates the secret through the existing secrets route with the person’s own token and puts only secret <name> in the draft, the console’s form of the CLI’s /secret.
    5. Deferred, each filed. A driver spec and first samples renderer is #2134, reopening an earlier conversation #2135, the over-budget state #2111, and the confirm card’s flag for a run that read external content waits on #1168.
  • Context: The 2026-11-16 ruling keeps approvals in the client and the run as the person’s agent; the panel is the console’s client. The catalog grows by generation, so the panel cannot depend on a renderer existing for every tool.
  • Not chosen:
    • @ag-ui/client. The panel needs a handful of event types and one HTTP shape; a pure reducer over the server’s own fixtures is smaller and tests without a network.
    • A renderer per tool before a generic card. Every new tool would land blank until someone wrote its view.
    • A server-side approval queue. Ruled out on 2026-11-16: the decision is the client’s, and the interrupt hands it back.

ADR-1179: An agent token is a token type on its person’s credential and never reveals

Section titled “ADR-1179: An agent token is a token type on its person’s credential and never reveals”
  • Date: 2026-11-16 | Status: Accepted | Pages: identity and access, audit, agents
  • Decision: (#1179.) An agent token is a credential row on the minting person, marked with an agent name, its own roles and a channel allowlist, minted through POST /auth/me/tokens; it is not a principal (the agent kind stays reserved, ADR-0001). ttl_days is required for it.
    1. Intersection, every request. authn resolves the person’s roles, then intersects them with the token’s roles (rbac.Set.Within), so a change to the person’s grants reaches the agent at its next call. A role the minter does not cover is refused at mint. scopeFor returns an empty scope for an action the constrained set does not allow, so the person’s scope never carries the agent past its capability.
    2. The ceiling is by construction. rbac.Set.Without("reveal", "use") drops those actions whatever pattern grants them, the owner’s > included. It applies to an agent token on every channel and to any token whose request arrives on the mcp audit channel, which the MCP dispatch sets in-process and no caller can claim or shed. An agent can never decrypt a credential for its person; it works through routes that use a credential server-side. Since a write that binds a secret to a target makes the node send the plaintext wherever the target points, every such write (an endpoint attach, input edit or node move, a plan, a simulated system or fleet device) resolves its references under secretBind, which is the empty scope under the ceiling: until secret:use splits from reveal (#2047), a ceilinged caller binds, repoints and re-places no credential, and never holds node:enroll, while an unconstrained one binds what it may read, as before. Amended by ADR-2047 (#2047): binding is its own action, secret:bind, which the ceiling no longer strips; the ceiling is reveal and enroll, the operations whose output is a credential in plaintext.
    3. Refused routes. An agent-token caller gets a 403 from authn, before its body is read, on create-auth-me-token, change-auth-me-password and impersonate-principal, on every channel. This amends the ticket’s “impersonation semantics unchanged”: an impersonation token is not an agent token, so minting one would shed the ceiling and the audit_log.agent attribution.
    4. Channels. An allowlisted token on another channel is refused (403), except GET /auth/me, so a client can still learn who it is and why it is refused.
    5. Escalation guards measure the bounded set. Granting a role (to a principal or a group), adding a group member, resetting a password and impersonating each check that the caller covers what it hands over. Under an agent token or the ceiling that check uses the constrained set, not the person’s grants, so an agent cannot give a principal it controls a capability it is itself denied. Adding a group member gains that check only for a constrained caller.
    6. Audit. authn puts the agent name on the request context; the Storage Gateway’s audit writer stores it in audit_log.agent beside the person as actor. The MCP dispatch needed no change: it relays the caller’s bearer to the route, where authn marks it like any other call.
  • Context: A person’s token in an agent’s hands looked exactly like the person on REST and the CLI, and carried the person’s whole authority, reveal included. The architect’s rule is that a device credential is always blind to the agent: it may know a credential is present, never its value.
  • Consequences:
    • The /auth/me permission hint is conservative under the ceiling: rbac.Set.Strings drops any pattern that would cover a denied action, so a ceilinged owner lists no >. The route check is exact; the hint understates.
    • Until use is split from reveal (its own ticket), routes gated on secret:reveal scope that only use a secret server-side (a driver preview with secret inputs, a notification target’s secret binding) are refused to agents and to MCP callers.
    • The hand-written omniglass token (direct database, the trusted lane) is not extended: it would skip the role-cover check the API makes. The generated omniglass auth create-token carries the agent flags.
    • Not built here, each tracked on #1179: narrowing an agent token to a location, OAuth 2.1 authorization for MCP clients (minting this same token), omnibot’s marking (its channel is #1166’s), and the console’s agent fields.
  • Not chosen:
    • A lightweight service account per agent. A second identity system (principals, grants, lifecycle) for data that does not exist; the credential row already carries purpose, expiry and audit.
    • Ceiling only for agent tokens. A personal token pasted into an MCP client is an agent’s hand just the same; keying the ceiling on the channel too closes that without asking the person to mint correctly.
    • Refuse impersonation by handler check. The refusal lives with the other agent refusals in authn, keyed by operation id, so one list states what an agent may never call.

ADR-1180: A PR records only the demos it tags, carries its clip in its body, and main re-records every demo nightly

Section titled “ADR-1180: A PR records only the demos it tags, carries its clip in its body, and main re-records every demo nightly”
  • Date: 2026-10-25 | Status: Accepted | Pages: demos, labels, slice workflow, release and CI
  • Decision: (#1180, amending ADR-1132.)
    1. Selection is explicit. A PR names the demos it is about with a tag of its own line in its body’s Demo section, demo: <id> [<id>...], or says demo: none (<reason>). run:demo records exactly the tagged demos plus any tape or walkthrough script the PR adds or changes (a changed demo is a test, so it is played). Nothing else fans out: ADR-1132’s widening (every tape on a terminal recorder change, every walkthrough on any change under web/, every demo when the PR named none or touched the shared stack) is retired. demo-tag.yml fails a PR with no tag, a malformed one, or one naming a demo its tree does not have; a tag quoted in a code block or an HTML comment is not read. /ship-slice requires the tag or none with a reason.
    2. The clip goes in the body. After publishing, the publish job writes each recorded demo’s clip (a terminal demo’s GIF, a walkthrough’s animated preview or poster, each under its scrubbable link, pinned to the evidence commit) into the PR body between <!-- omniglass-demo-clip --> and its closing marker, replacing only that block; with none yet, after the tag line, else at the end. A marker counts only on a line of its own outside a code fence. A staged clip carrying a marker, HTML or a code fence, or a body whose marker lines are unpaired or doubled, is refused. Each recording leg marks the commit it recorded, and one marking another commit (an earlier attempt’s, left in the run) counts as never run; the selection reads the PR body live, so a re-run records what the tag says now. The comment stays, as the full record (every step’s still, the run, the artifacts, the failures), and the clip links it.
    3. Freshness off the PR path. The same workflow runs nightly (and by hand) on main and records every demo; a failure opens one issue, or updates the open one, and a green run closes it. Its recordings are job artifacts kept 14 days, not a refs/walkthroughs/main ref.
    4. Speed. Each selected demo records on a runner and a stack of its own (a matrix), combined into one comment and one clip. The recorder pulls the VHS image, still pinned by digest, while the stack builds, and copies jq from jq’s own digest-pinned image instead of an apt install.
    5. Kept: the token boundary (the jobs that run the tree’s code hold a read-only token; the publish job and the freshness issue job check nothing out and run nothing from the tree, now held by web/src/demo-workflow.test.ts), one comment per PR, evidence pinned by SHA on the per-PR ref, and the 30-day prune.
  • Context: Under ADR-1132 nearly every feature PR recorded every walkthrough, because nearly every feature PR touches web/: runs took 20 to 25 minutes (#1170, #1173, #1175) against 4 for a PR with one tape (#1172), and re-ran on every re-label. The architect first scoped a covers: header per demo intersected with the diff, then ruled it simpler in session: the author knows which demo the PR is about, so the PR says so, and drift in the demos a PR did not name is the nightly run’s to catch within a day. Replayed over the last ten merged PRs, the explicit rule records one or two demos where the old rule recorded up to fourteen (the table is in the #1180 PR). The architect also preferred PRs that carried their clip inline, as #1139, #1141 and #1154 did by hand, so the clip is written into the body; the comment is kept rather than dropped because the body is the author’s text and the bot writes the least there, while the per-step stills a reviewer grades and the failure detail need a home, and one comment per PR was already a guarantee. On main, artifacts beat an evidence ref: no comment reads them, and a nightly commit of every demo would add tens of MB to the repository a night. Mirroring the VHS image to GHCR was moot (it is already served from GHCR, not Docker Hub), and caching its 3 GB in the Actions cache would take a tenth of the repository’s cache quota to save no time over a pull on a hosted runner; overlapping the pull with the stack build is free.

ADR-1185: The client address believes a forwarded header only from a configured proxy

Section titled “ADR-1185: The client address believes a forwarded header only from a configured proxy”
  • Date: 2026-10-26 | Status: Accepted | Pages: identity and access, collection
  • Decision: (#1185, under epic #1146.) The credential stamp and the webhook receiver read one answer to “who is the client”, from internal/clientaddr: the peer, unless the peer is trusted, in which case the forwarded header (every line, in order, its last 512 bytes) is walked from the right past every trusted hop to the first untrusted one, a malformed hop stopping the walk at the last good address. The trusted set is OMNIGLASS_TRUSTED_PROXIES: comma-separated CIDRs or bare addresses, a list replacing the default whole, none believing no proxy, and an entry that is neither failing the server’s boot rather than trusting more or less than was meant. Unset, it is the loopback and private ranges, the built-in set #1024 shipped. The webhook source keeps its /64 grouping for IPv6; the credential stamp records the whole address.
  • Context: The session and token stamp took the first X-Forwarded-For hop from any peer, so a client reaching the server directly could record any address it named, while the webhook receiver (#1024) already parsed the header and believed it only from a private peer. The two disagreed on who the client was, and neither could be told about a proxy on a public range. The review’s confirmation pass noted that the private-range default also trusts a port forwarder presenting its own private address (Docker’s userland proxy for an IPv6 client, rootless forwarders); defaulting to loopback only would close that, but would make every chart deployment (whose Traefik sits on a pod address) record its ingress as every client until the chart declares its range, and the chart has no environment passthrough yet (#1230). The default therefore stays, and the loopback-only default is filed as its own decision with the chart value it needs (#1231).

ADR-1193: The omniglass lab is one command to a Docker project, and make only builds

Section titled “ADR-1193: The omniglass lab is one command to a Docker project, and make only builds”
  • Date: 2026-10-27 | Status: Accepted | Pages: try omniglass in five minutes, simulation, nodes, scaling and deployment, install, the CLI, container image, design system
  • Decision: (Epic #1193; slices #1198, #1194, #1195, #1196.) The architect’s rulings of 2026-10-26, and the eight open decisions taken as recommended:
    • Docker is required. There is no native mode: a lab is worth running only if collection behaves as against real gear (an address per component, the profiles’ real ports, truthful ping, impairments), and each of those leans on Linux networking that a bare binary on macOS or Windows does not get. Docker runs every container on a Linux kernel on all three platforms. Embedded Postgres (#19) moves back to #57.
    • Three containers, db, server and node, on one private bridge, two named volumes (the database, and the server’s data directory with the lab’s own encryption key), and only the console published.
    • The command is omniglass lab run, with make lab the short form: a run mode is a verb under its noun (ADR-0058), which leaves room for later verbs without a rename.
    • 127.0.0.1:8080 by default. A taken port fails preflight, naming the port and --port, rather than silently moving; --port 0 lets Docker pick. Any other address needs --listen, which warns.
    • The seed is the dev fleet (--scenario picks another), the fleet every walkthrough is recorded on, with the login dev/dev.
    • The demo pipeline’s move (#1197) unifies only the full-stack consumers (walkthroughs, tapes, the probe, the walkthrough stack); make test-e2e and make docs-shots keep the Postgres-and-server half of stack.sh. Recordings show the lab banner, re-recorded once. Amended (#1197): as built, a recorder or the probe runs ./bin/omniglass lab run as a throwaway lab (web/e2e/lib/lab.sh) through three hidden script flags: --ephemeral (a project of its own, refused for omniglass-lab, whose volumes go at teardown, and an abandoned one of any project is reaped by the next run on the host), --ready-file (once ready, shell assignments saying how to reach it: the network, the server there, an owner token minted for the run, the containers and the labels a helper container carries to be torn down with it) and --while-pid (the hold ends once the script’s process is gone, and the script’s Ctrl-C is its own). Three divergences from the definition: the script’s lab still publishes the console, on a loopback port Docker picks, rather than nothing, because the lab reads its own readiness and signs in from the host, which only a published port reaches on every platform (Docker Desktop routes no bridge address to the host), while the recorder still reaches the server on the lab network; the per-container log files are the recorder’s own docker logs followers, and the simulator’s log is the node’s, since it runs in the node’s process; and bay-2-display moved into a walkthrough setup (API creates made off camera before the title card, an existing one counting as made), which the lab guide lists for a learner as the CLI command that makes it, rather than into the dev seed, whose fixtures keep every component nameless and Bay 2 empty on purpose. The walkthrough stack’s impairment check retires into make test-lab, which already proves it. Amended (#1267): make test-e2e and make docs-shots (with docs-shots-check) moved onto the throwaway lab too, and web/e2e/lib/stack.sh is gone, so the repo stands omniglass up in Docker one way. The e2e tier’s lab is seeded with the empty scenario (a fresh install, as its CRUD round-trips assumed); the screenshots’ lab runs with a fourth hidden script flag, --no-node (throwaway labs only), which seeds the dev fleet without the simulated wiring and enrolls and runs no node, so the photographed pages hold still exactly as they did on the old stack. The shots hide the lab banner (a capture style rule on its data-testid): the docs teach the product, not the lab. One baseline moved, the audit page’s: the lab signs in and mints its script token through the API, so the trail gains a login row and the token’s credential create is by dev rather than system; the other 22 shots are byte-identical.
    • The lab-first-run tape records the command itself, with an opt-in Docker socket mount for a tape that declares it, on the CI runner only.
    • The console’s fast loop is the documented Vite proxy against a running lab (cd web && npm run dev), targeting http://127.0.0.1:8080 and moved by OMNIGLASS_LAB_URL, not a --console-dev flag a release user could not use.
    • The lab drives the Docker Engine API with the moby client and stamps compose’s project labels on every container, network and volume, so docker compose -p omniglass-lab ps and Docker Desktop see one project, rather than generating a compose file for a compose binary not every Docker ships.
    • omniglass node run --simulate, not node sim: the simulator runs in the node’s own process, on the node’s own identity, so the simulated components sit on the loopback the node collects from by construction. --impairments, --port-offset and --poll are refused without --simulate; omniglass sim run stays for a separate process. This extends ADR-0142: the simulator still holds its node’s identity, now optionally in its process.
    • The image follows the binary’s version. A dev binary runs omniglass:dev, checked through the OCI label org.opencontainers.image.version against the build id make stamped into both; a missing or mismatched image is refused, saying run make, and the lab never builds. A release binary runs ghcr.io/hyperscaleav/omniglass:v<version>, which a release tag now publishes. --image overrides, with a warning.
    • make only builds. The bare make builds the image and exports the host binary from one Dockerfile with nothing but Docker; make dev builds and runs npm install in web/. make dev-sim, make up, make down, docker-compose.yml and SIM_PORT_OFFSET retire; the dev seed aims at the real ports.
    • The lab mark is a table whose one row is data the lab writes, never a migration row or a boot-seed row (the three buckets). A server outside lab mode refuses a marked database; a lab refuses a database that holds data and no mark.
  • Context: Running omniglass to learn on took a Go and Node toolchain, make dev, make dev-sim and their port lift, or the demo pipeline’s bash stack, and none of them gave a learner the real ports, truthful ping and impairments on macOS or Windows. Divergence from the definition: the definition named the lab’s one-offs as the owner, the dev seed, a token and the enrollment; the lab collapses them into one hidden omniglass lab seed one-off, run in the lab’s own image on every start, which migrates, marks the database, seeds the fleet and the owner on the first run only, and enrolls the node with the token minted for that run. And readiness counts every simulated endpoint up except two kinds the definition did not name: an endpoint that receives pushes (a webhook carries no reachability verdict) and the seed’s planted faults, which the seed marks itself (planted_fault in the dev fleet’s fixtures) rather than a hand-kept list.
  • Amended by ADR-1257: a release binary no longer runs ghcr.io/hyperscaleav/omniglass:v<version> by its tag; it pulls by the image digest stamped into it at release, and refuses without one.

ADR-1202: An observed property value is read typed where it is compared

Section titled “ADR-1202: An observed property value is read typed where it is compared”
  • Date: 2026-11-14 | Status: Accepted | Pages: metrics and properties
  • Decision: (#1202.) An observed property row stays the JSON string of its value’s text form (the ingest’s propertyText, written by to_jsonb(text)), and a declared or intended row stays typed jsonb. The reads that set the two beside each other (reconciliation’s is, settlement’s observed value, the calculated arm of the effective properties) read the observed value through one SQL expression, observedValueExpr, keyed on the property type’s data_type: a bool’s "true"/"false" becomes the boolean, a json value’s text becomes the JSON it spells, a string is left as stored. Reconciliation’s worstCaseValue, settlement’s agreeingValue and Settle compare through one helper, sameValue, which also settles spelling (3 and 3.0, an object’s key order).
  • Consequences: A bool declared true and observed true report no drift and is reads true; a command targeting it settles on the observation. A string property is compared as text, so a version "1.10" never equals "1.1". The transition-only guard is untouched, since the stored encoding is. One ambiguity remains, inherited from the text encoding: a json property observed as the JSON string "3" reads back as the number 3. The seeded property types are all strings, so none is affected.
  • Context: The issue offered two directions: store observed properties as typed jsonb, or compare canonical forms keyed on data_type. The calculated arm of the effective properties already read a bool this way (the partial canonicalization the issue names); this extends it to the other comparison sites and to json values, and puts it in one place.
  • Not chosen:
    • Store observed properties as typed jsonb. It removes the ambiguity, but the text form is what every value #>> '{}' reader (health, fleet and platform views, endpoints), the calc inputs, the rule engine’s transition guard and the reply observation write assume, and each writer (the node lane, push, calc output, a command’s reply, the dev seed) hands the gateway text. It is a wire and storage change across all of them for a defect in two comparisons, and it can be taken later without undoing this: the read expression is the identity on a typed value.

ADR-1247: Terminal demos are paced by one rule, and a terminal demo’s budget is 180 seconds

Section titled “ADR-1247: Terminal demos are paced by one rule, and a terminal demo’s budget is 180 seconds”
  • Date: 2026-10-27 | Status: Accepted | Pages: demos
  • Decision: (#1247, amending ADR-1132.)
    1. One pacing rule. After every line a tape shows, the shell holds the screen before its prompt returns, so the tape’s Wait waits through the hold: a command’s output for 2.5s plus 0.5s a row it filled, up to 7s; a typed # caption for 1.5s plus 0.2s a word, up to 4.5s; an unseen demo_until or demo_hush and a clear, not at all. The numbers live once, as PACE in web/e2e/tapelib.mjs, handed to the prelude as tables; the prelude (web/e2e/tape/pace.sh) counts the rows from what the terminal was sent, by running the shell under script(1). Each hold is listed in the recording’s pace.txt.
    2. A tape cannot bypass it. The house rules refuse a Sleep, and typed text that reaches the rule’s hooks: the prompt variables, the DEMO_ tables, the prelude’s demo__ names, the shell’s history, and an exec, a trap or a new interactive shell (behind a path, env, command or builtin too). A caption runs nothing, so it is not held to this.
    3. The budget is 180s. MAX_SECONDS for a terminal demo rises from 120 to 180; the GIF limit (5 MB) is unchanged. make test-web computes each tape’s least length (its typing on screen at the house speed, plus the rule’s least hold after each line) and fails one already over the budget, before a stack starts.
  • Context: A demo’s GIF plays inline in the PR body, where a reader cannot pause or scrub it, and the tapes moved straight from one answer to typing the next, so most of what a demo showed went by unread. Hand-placed Sleeps were sparse and uneven (60 across 14 tapes, 1s to 4s, none after most commands). The architect asked for one rule over every tape rather than more Sleeps, applied where no tape can forget it. Counting the output’s rows needs what the terminal was sent; a tee of the shell’s output would have made every command’s stdout a pipe (losing jq’s colors and changing what an operator would see), and reading the cursor row undercounts any output that scrolls, so the shell runs under script(1) and the prelude reads its log between two invisible marks. The holds add 50 to 90 seconds to a tape of fifteen to twenty commands: re-recorded under the rule, the longest tapes ran past 120s, and splitting each into two demos would have split one feature across two clips. The 180s ceiling keeps the longest tape watchable while its GIF stays near 2 MB, since a held frame costs almost nothing to encode. A slower typing speed was weighed and left at 20ms: the hold after each line already gives the typed command its read time.

ADR-1249: The endpoint lane runs one request at a time, operator work first

Section titled “ADR-1249: The endpoint lane runs one request at a time, operator work first”
  • Date: 2026-11-09 | Status: Accepted | Pages: nodes
  • Decision: (#1249, on the lane pool of ADR-1634.)
    1. The lane is the endpoint. A lane is keyed on the endpoint’s id: one discrete request in flight per endpoint, two endpoints of one component running side by side, so a slow device holds only its own lane. Scheduled polls and probes, commands, run nows and previews that resolve to an endpoint all take it. Listen tasks never do: they hold the endpoint’s session or connection and are standing receivers, not requests.
    2. Operator work first, nothing preempted. A lane has two classes: an operator’s commands, run nows and previews wait ahead of the scheduled work queued on the same lane. The request in flight always finishes.
    3. The gate is consulted as a job is taken. A lane holds no state about its endpoint. A job taken off it asks the endpoint’s gate first (and a run now or preview asks again as it arrives, so a gate already closed answers without waiting out the lane). A queued command fails naming the reason and sends nothing, a run now answers Gated, a scheduled poll is held and counted. Where several reasons hold, the most causal answers: disrupted, then refused, then unreachable, the oldest within a kind. A refusal holds only a job that sends its own request at or above the refused rung, since a job riding a held session is answered by that session.
    4. A preview resolves to its endpoint. The node indexes its worklist by transport and target (the lowest endpoint id where two name the same). A preview whose polls all name one inventoried endpoint takes that endpoint’s lane and is gated by that endpoint’s gate, a refusal included, since a preview sends its own request. A preview that names none, or names several, runs off-lane, held only by a host-wide reason on any endpoint at its target’s host, whatever transport it speaks.
    5. One ping per host per probe slot. Every endpoint whose probe falls due in the same slot (the clock truncated to the probe interval) on one host rides one ping: the first sends it, the rest read its answer. Each endpoint’s probe still reads its own transport and session rungs.
    6. Overload is counted, never queued without bound. Scheduled work already skips a due whose run is in flight (ADR-1634). Operator work waiting across every lane is capped at 64: a run now or preview past the cap answers at once that the lanes are full (RunReply.Full, the API’s 429), and the dispatch window counts operator-offer-count against operator-refused-count, saying both in its dispatch window self-log line for a window that refused one. Commands do not take a cap slot: the node actuates its pulled commands one at a time, each waiting for its endpoint’s lane, so they are bounded by that loop.
    7. The flag names the pool. --lane-workers (OMNIGLASS_LANE_WORKERS, default 16) replaces --poll-workers: the pool runs every kind of lane work, not polls alone.
  • Amended by ADR-1869: the --lane-workers default is auto, sized from the CPU and memory the node may use, not 16.
  • Amends: ADR-1634 (the --poll-workers flag, and a run now handed through the run loop and refused while the last one waited there) and ADR-1163 (a preview on the request’s own goroutine beside any endpoint’s work, held only by its host).
  • Context: Before this, the lane pool already ran scheduled work and commands per endpoint, but a preview of a device already attached ran beside that device’s polls and ignored its refusal, a run now waited in a one-slot handoff that refused a second caller, a closed gate answered whichever reason its caller checked first rather than the one that caused the rest, and three endpoints on one host each sent their own ping. A device that takes one request at a time is the common case in AV gear; the lane makes that the default and the gate makes queued work honest about why it did not run.
  • Not chosen:
    • A second scheduler for operator work. Two pools would race for the same device; one pool with a class per lane keeps one request in flight per endpoint by construction.
    • Preempting the request in flight. A half-sent request to a device leaves it in an unknown state; the operator waits at most one request.
    • A concurrent reachability pre-pass before each poll. It doubles the traffic and still races the poll; the probe on its own interval feeds the gate, and the gate is read at take.
    • Snapshotting the gate when work is queued. A reboot ahead of it on the lane closes the gate after the job was queued; only a read at take sees it.
    • A component-wide lane by default. Most components’ endpoints are independent; a driver opts a fragile device into component-wide exclusion (#1649). More than one request in flight to one endpoint is a held session’s pool size (#1254).
    • An unbounded operator queue. It hides overload until memory runs out; a counted refusal tells the caller to retry and shows the pressure.

ADR-1257: A release binary pulls its lab image by the digest stamped at release

Section titled “ADR-1257: A release binary pulls its lab image by the digest stamped at release”
  • Date: 2026-11-14 | Status: Accepted | Pages: try omniglass in five minutes, container image
  • Decision: (#1257.) Amends ADR-1193’s “the image follows the binary’s version” for release binaries. release.yml builds and pushes the multi-platform release image (the same metadata and build actions as image.yml, the release version as its VERSION) before goreleaser runs, and passes the pushed manifest’s digest as IMAGE_DIGEST, which .goreleaser.yaml stamps as main.imageDigest beside main.version. lab.SelectImage runs a release version with a well-formed digest as ghcr.io/hyperscaleav/omniglass@<digest> (the status line still names the tag), and refuses a release version with no digest with a preflight error naming --image; it never falls back to the tag. --image and dev builds are unchanged. release.yml becomes the only release path: make release-apply is retired, goreleaser.yml keeps only its PR snapshot (a pushed tag no longer builds binaries), and image.yml no longer builds a v<version> image on a tag. The workflow publishes nothing until the repository variable RELEASES_ENABLED is true (Fred, 2026-11-14: “I don’t want to start doing releases yet”); until then a dispatch only dry-runs, and #1940 tracks the flip. The v* tags are protected by a repository ruleset (no deletion, no update), a GitHub setting rather than a file in the tree.
  • Consequences: A release binary runs exactly the image its release was built with, whatever the tag points at later, and checks it with no verifier on the learner’s machine. Every published release binary carries a digest, because the one path that publishes builds the image first. A binary given a release version some other way (a local build of a tagged tree) carries none and refuses the lab until given --image. The release workflow’s image skips image.yml’s arm64 and lab smokes; the same commit passed them on main.
  • Context: The adversarial review of the lab (#1193, #1194) found that a release binary pulled v<version> by tag and checked nothing, and a re-pushed v* tag rebuilds that image, so whoever could push a tag replaced the image every uncached release binary runs, whose node container holds root and NET_ADMIN in its own namespace.
  • Not chosen:
    • Verify a signature. #58 and #59 sign the macOS and Windows binaries, not the image, and are open; a signature check needs a verifier and a trust root on the learner’s machine, where a digest needs neither.
    • Keep make release-apply beside the workflow. A tag pushed from a workstation cascades to tag-triggered workflows that build the binaries and the image in parallel, so those binaries could not carry the digest; two paths also mean two sets of credentials that can publish.
    • Fall back to the tag when no digest is stamped. It reopens the hole for every binary the release workflow did not build.

ADR-1269: A bucketed series read returns the whole grid and names where retention ends

Section titled “ADR-1269: A bucketed series read returns the whole grid and names where retention ends”
  • Date: 2026-11-02 | Status: Accepted | Pages: metrics and properties
  • Decision: (ruled on #1269.)
    1. The whole grid. The read returns every bucket of the window, oldest first, aligned to the epoch so a boundary is stable between reads. An empty bucket is present with count: 0 and null min, max, avg and last. 30 days at one hour is 720 buckets. A request over 5,000 buckets is refused with a 422.
    2. covered_from. The body carries the instant before which nothing is read: the later of the grid start and now minus the type’s effective retention (its retention_days, else the install’s retention.metric_days or property_days). Nothing is read beyond the hot window until trends (#1276).
    3. last per bucket is kept. A property drawn as steps needs the value a bucket ends on, and a metric’s end label and dot need the newest reading, which an average would misstate.
    4. A bucket is one series: one instance, measured rows only. (Amended on review of #1485.) A bucket aggregates the observed and calculated rows of one instance of the type on the owner, never a declared or intended row: a want is not a reading, and a commanded 9999 must not become a bucket’s max or last. The read takes an optional instance. Unset, it is the one instance with measured rows in the window; when more than one has them the read is a 422 whose problem detail lists each at query.instance, so the caller picks rather than receiving a blend of two series. Rows of one instance from different sources or collector nodes are aggregated together: a node move or a task reassignment does not split what was measured. The bucketed statement puts the range’s lower bound and the coverage floor in the sample table’s own where, as bind parameters and now(), so the monthly partitions outside the range are pruned and each remaining one is searched on (series_id, ts); resolution is bounded to 30 days by the schema.
    5. Moved out of this slice. The gap break derived from a series’ cadence (and its factor k) and a failed check drawn as its outcome move to #1475, which lands after task liveness (#1264) ties a series to its cadence. Until then the avg line runs across an empty bucket (no band or point is drawn there), as the raw line ran between samples. No schema change is made here.
    6. A step chart starts on the value in force: carried_in and held. (Added for #1488.) A property bucketed read carries carried_in, the newest measured row (ts desc, id desc) of the same instance with ts before the first bucket and at or after the retention edge (now minus the effective retention days), and each bucket carries held: its own last, else the previous bucket’s held, with carried_in seeding the leading empty buckets. last keeps its meaning (the bucket’s own newest row), so held is a separate field and an empty bucket is still empty. The floor is the retention edge and not covered_from, since covered_from is never earlier than the grid start and so could never admit a row before it. A declared or intended row and another instance’s row are never carried in (decision 4). When no instance is named and none is measured in the window, the one instance with a held value before it is used, and when several are held nothing is carried in: the read never guesses between two series, and the 422 for several measured instances is unchanged. The raw property read gains carried_in as an optional field on the same rule, and the metric reads are unchanged.
  • Context: the issue’s draft asked for both of the moved items; the architect split them off, since the cadence they read from is #1264’s.
  • Not chosen:
    • Skipping empty buckets. A gap would then read as a short line and a chart could not tell no data from a quiet value.
    • Reading past retention for a longer range. Rollups are #1276’s.
    • Aggregating every series of the type on the owner. The first cut did, and two endpoints’ readings (or a reading and a command’s want) blended into one min, max, avg and last that described neither.
    • Picking an instance when several are measured (the newest, or the busiest). A silent pick charts a different series from one read to the next; a 422 that lists them makes the choice the caller’s.
    • Splitting a series by source or collector node. One instance is one logical series across a node move; splitting would chart a reassignment as a gap.
    • Making last the held value. A bucket’s last would then no longer say whether anything happened in it, and the next change’s bucket could not be told from a quiet one.
    • A carried-in point in points. The crosshair reads what was measured; the carried-in value is drawn but is no sample in the window.
  • Amended by ADR-1566: decision 2 no longer holds for a whole-hour metric read of a series with hourly trends: it reads its closed hours from the trends past the hot window, and covered_from is the trends’ edge rather than the samples’ retention.

ADR-1272: The ingest footprint is counted, and a stored row’s heap bytes are a count

Section titled “ADR-1272: The ingest footprint is counted, and a stored row’s heap bytes are a count”
  • Date: 2026-10-27 | Status: Accepted | Pages: test-driven

  • Decision: (#1272, extending ADR-0094.)

    1. What one node batch costs the database is counted. TestIngestFootprint (internal/bus/footprint_test.go) seeds the dev scenario’s fleet and delivers a standard workload through handleTelemetry, the real ingest handler, with only the JetStream delivery doubled. It runs in make test.
    2. Four quantities are held exactly: statements per batch (from the query tracer, the seam querycount already uses), rows written per observation on each lane, metric rows per full heap page after VACUUM (density, so a slightly larger fleet moves nothing unless a row does), and the metric table’s index definitions. One is bounded: index bytes per stored metric row, measured after REINDEX, which is the same on every run. The rest are reported only: the live index size, whose page splits follow the component uuids the dev seed mints at random (it varies by about a fifth between runs); receipt bytes per batch; WAL bytes per observation, which moves with checkpoint timing; and wall-clock time, measured by BenchmarkIngestFootprint in make bench as ADR-0094 prescribes.
    3. The workload is declared by shape. internal/footprint builds one node batch per task per check, deterministically from the task and the tick; its StandardMix is calibrated to a measured lab run and is re-derived when the simulated fleet changes, rather than waiting for every simulator profile to exist.
  • Context: The storage work of #1265 (batched writes, narrower rows, retention, trends) needs a before and an after that a reviewer can trust. ADR-0094 refused a timing gate and a stored baseline because a duration depends on the machine and the day. A statement count does not, and neither does the heap the window’s rows occupy: they land in order, so how many fill a page is the same on every machine for one Postgres major (pinned postgres:18 in the test harness), and so is the size of an index rebuilt from them. That is why bytes join the counted family, while WAL, the live index and time stay diagnostic. The first measurement (2026-10-27, main at 50d4ae8d), for a batch of five observations:

    StatementsCount
    Task owner resolution1
    Full catalog reads in the consumer (metric, property and event types)3
    begin and commit2
    Receipt insert1
    Event-rule lock (for share)1
    The same scoped component read6
    Key-writer admission3
    Series transition lock1
    select now()3
    Commandable property names (a command_type join)1
    Event-rule reads2
    Guarded property insert, writing nothing while the value holds1
    Calc-rule lookup1
    Metric inserts, one each4
    Endpoint seen stamp1
    Total31

    The bytes: 65 metric rows a heap page (about 126 bytes a row), about 91 index bytes a row rebuilt and about 100 to 135 live, about 205 receipt bytes per batch, and about 460 WAL bytes per observation. The time: about 3.3 ms and 135 KB allocated per batch, flat from 13 to 130 tasks.

  • Not chosen:

    • Driving the full lab per test. Docker orchestration, cgroup sampling and real node cadence make a slower, noisier instrument; it stays a diagnostic follow-up.
    • Bounding the live index size. The bound would have to sit above a run-to-run spread of about a fifth, wider than the change it exists to catch: an added index passed on some runs and failed on others in the review. Rebuilding first removes the spread; pinning the definitions catches an added index by name.
    • Pinning a heap page count. It holds only while the window’s row count happens to fill whole pages, so a dev fleet that gains a few endpoints would read as a row-width regression. Rows per full page do not move with the count.
    • Gating WAL. It is the cost a replica or a WAL archive pays and is reported for that reason, but a checkpoint landing inside the window changes it by a large fraction.

ADR-1273: A reachability probe runs on the node’s probe interval, not every heartbeat

Section titled “ADR-1273: A reachability probe runs on the node’s probe interval, not every heartbeat”
  • Date: 2026-10-28 | Status: Accepted, amended by ADR-1634 | Pages: nodes, collection, lab
  • Decision: (#1273.)
    1. A probe interval of its own. node run --probe-every sets how often each reachability probe runs. The node gates a probe task through the per-task schedule a driver poll already uses (ADR-0152): it runs on the first tick that reaches its due time (item 2), a probe new to the worklist runs at once, a probe whose endpoint’s connection fingerprint moved (an edit in place, a rotated secret, an operator’s :retry) runs at once as a driver poll does (#1061), and a late tick runs it once rather than catching up. Unset (0), a probe runs every tick, exactly as before, so nothing changes where it is not set. The ladder’s informational ping runs with its probe and is skipped with it.
    2. A task is due within half a heartbeat of its due time. The schedule books a run from the time its tick was judged, after that tick’s heartbeat publish and worklist pull, which vary by milliseconds; a tick that reached the task sooner than the one that booked it found it not yet due and skipped it, so an interval equal to the heartbeat skipped ticks at random (ticks 0, 2 and 4 of 6, at 8 to 15ms of jitter). The tolerance holds for driver polls too, which met the same skip whenever a schedule.every equalled the heartbeat. Each map the schedule keeps is swept by its own keys when a task leaves the worklist, so a task remembered but never booked (a probe at the heartbeat, a poll with no schedule) leaves nothing behind.
    3. The lab checks in every 2s and probes every 10s. The 2s heartbeat is the lab’s on purpose: a change made in the console reaches the node within seconds. A probe on every 2s tick wrote most of a lab’s rows, and a lab may run for days, so a learner’s lab probes at a fifth of that rate.
    4. A script’s throwaway lab sets no probe interval, so it probes on every 2s check-in. The demo pipeline’s labs (--ephemeral) live for minutes, and a walkthrough that waits on a probe’s verdict is recorded against the 60s budget (#884). Watching a rule raise an alarm runs 44 to 50s at 2s probes; a 10s probe adds up to 8s and would take it to the edge of the budget. A learner following that walkthrough waits up to 8s longer than its recording, and the lab guide says so.
    5. Hosted instances probe at the product default. The default heartbeat is 30s, so a node with neither flag set probes every 30s; a hosted chart sets the two numbers rather than a named profile. Either stays under the console’s 150s staleness window, past which an endpoint only a probe watches reads stale between probes; making that window follow the probe interval is #1304. Amended (#1634): a probe runs on the dispatcher’s own timer, not a heartbeat tick, so item 2’s half-heartbeat tolerance retires; --probe-every defaults to 30s and 0 is refused, so no probe runs on every check-in, and the walkthrough lab of item 4 probes every 2s by its own flag (ADR-1634).
  • Context: #1273 began as named cadence profiles. Measuring the lab found that --poll is only the simulator’s re-pull and that driver polls already honor their own schedule.every; the lab’s row rate came from reachability probes, which ran on every heartbeat tick. Decoupling the probe from the heartbeat answers the profiles’ question with one number, and a learner’s lab writes about a fifth of its former probe rows (the probe metrics: icmp-reachable, tcp-*, snmp-response-time, http-response-time, tls-*).
  • Not chosen:
    • Named profiles (lab, default, hosted). Sugar over two numbers no deployment yet needs; a later need can add them over the flags.
    • A slower heartbeat for the lab. It would slow every change reaching the node, the lab’s reason for 2s.
    • Probing every 10s in the recorder’s lab too. It would put the alarm walkthrough at risk of its budget on every recording.
  • Amended (#1637): the probe interval rounded to the heartbeat was a step, not the target: a probe runs on its own interval at a stable phase, with no heartbeat rounding and no half-heartbeat tolerance, and its verdict feeds the endpoint gate every lane consults (#1634, ADR-1637).

ADR-1274: A batch lands its metric lane in one statement, except a series it carries twice

Section titled “ADR-1274: A batch lands its metric lane in one statement, except a series it carries twice”
  • Date: 2026-10-28 | Status: Accepted | Pages: samples
  • Decision: (#1274.)
    1. One resolution and one clock per batch. LandBatch wraps each attempt’s transaction in a batchTx. ownerArcValue answers an owner’s primary key from it after the first lookup, and dbNow answers the transaction’s now() from it after the first read. Every lane and the lock pass share both. The answers are the ones the database would give: now() is the transaction’s start time, the same for every statement in it, and an owner’s key does not change inside the batch’s transaction. A deadlock retry opens a fresh batchTx, so nothing carries across attempts.
    2. The metric lane lands in one statement. Every sample whose series (owner, key, instance) the batch carries once goes into one insert ... select ... from unnest(...) with ordinality ... order by ord, so those rows take ids in the order the batch carried them. A series carried more than once lands after them, so across series ids no longer follow the batch’s order. Nothing reads them that way: within a series (ADR-0061’s order) the order holds, and no reader orders by id across series. The type joins by name with a left join, so an unknown name fails the insert on metric_type_id’s NOT NULL, as the per-sample subselect did, rather than dropping the row.
    3. A series carried more than once keeps the per-sample path. The rule evaluator’s newest-row check asks whether a later sample of the series already exists. If a batch’s later sample of a series were in the table before its earlier sample was judged, the earlier one would be skipped as stale. So those samples are still inserted and judged one at a time, in order. Rules are judged for every observation, in the batch’s order, in both paths. TestABatchJudgesEachSampleOfASeriesInOrder holds this: one batch carrying 31 then 20 for a fire-over-30, clear-under-25 rule fires and clears. Batching every row fails it, deriving nothing.
    4. The insert stays inside the admitted write path. It is a closure in writeMetricSamples, after admitWrites, so TestEverySampleWritePathAdmitsItsWriter’s invariant (every function that writes a sample row admits its writer) holds as designed.
  • Context: The ingest footprint (ADR-1272), after #1279, put 29 statements on a node batch of five observations. Six were the same scoped component read (one per sample, plus the lock pass), three were select now() (one per lane evaluator and clock), and four were one INSERT per metric. Measured after (TestIngestFootprint; BenchmarkIngestFootprint, back to back against #1279’s branch on one host): 19 statements per batch, about 2.3 to 2.6 ms instead of 3.4 to 4.0 ms, 596 allocations instead of 811, about 47 to 57 KB allocated instead of 67 to 80 KB. Rows, heap density and index size are unchanged.
  • Not chosen:
    • Batching every row and judging afterwards. Changes rule outcomes for a series repeated in one batch (the test above).
    • COPY into the metric table. The fastest path for bulk loads, but a COPY cannot join the type by name, return a NOT NULL failure as the per-sample path does, or share the transaction’s statement shape with the rest of the batch. At a few rows per batch, one insert ... select is the same round trip.
    • Batching the property lane. Properties are transition-only: each row’s insert is conditional on the series’ latest value under a per-series lock. They are sparse by construction, so the gain is small and the risk is not.

ADR-1275: The metric lane is narrow rows on a series dimension, partitioned by month

Section titled “ADR-1275: The metric lane is narrow rows on a series dimension, partitioned by month”
  • Date: 2026-10-29 | Status: Accepted | Pages: storage, samples, platform settings, testing
  • Decision: (#1275, with #420’s partitioning half, under the approved #1265.)
    1. A series dimension. metric_series holds one row per series, keyed by a bigint identity: the type, the owner arc (and owner_id, its one filled column), the instance, the provenance, the source, and collector_node_id, the node whose task collected it. Its unique key (owner_id, metric_type_id, instance, provenance, source, collector_node_id), nulls not distinct, leads with the owner, so it is also the logical key’s index; every reader asks for an owner’s series of a type and merges the ones it finds. It is named for its lane: property is not narrowed, so the dimension is the metric lane’s. The collecting node is a record, not a foreign key, so a deleted node leaves its series’ history.
    2. A narrow hot tier. metric is (id, series_id, ts, value) plus a calculated sample’s rule lineage in nullable columns, which cost nothing when empty. It is range partitioned by UTC month on ts from birth, has no primary key and no unique (series_id, ts) (ADR-0061), one btree (series_id, ts desc, id desc) (descending id, the order every latest read takes, where #1275 wrote id), and block range indexes on id and ts. It has no foreign key to the series: deleting an owner removes its series in the delete’s transaction, and its samples, invisible to every reader, leave with their month or the next retention pass, rather than one statement deleting a quarter of the table.
    3. The provenance split. Observed and calculated samples are the hot tier; a command’s intended rows are metric_declared, a plain table with the command and event lineage, never pruned. The lineage CHECK becomes structural: provenance is the series’, and the hot tier has no command or event column. An event rule reads the hot tier only, so a command’s intended row is no longer taken for a series’ newest sample by the rule’s newest check, its preview or its reconcile: it never was an observation (the one reader whose result changes, and only where a command targets a metric an event rule watches).
    4. One create-copy-swap. Three migrations: the narrow tables are created beside the wide one (renamed metric_wide), with a partition for every month it held a sample in and the next two; a one-time backfill copies every row, keeping its id, and refuses unless the counts agree; the wide table is dropped. Each has a full down.
    5. The roll. The server keeps this month and the next two partitioned, at boot before ingest starts (refusing to start when it cannot) and on every retention pass, creating a partition detached and attaching it under a five-second lock timeout. A partition-routing miss (SQLSTATE 23514 naming no constraint) is not a refused write: the batch’s months are made and it lands once more, and a miss after that is redelivered. A month is made for a sample however far its time (a collected key keeps its producer’s time), and a past month leaves again with the next pass. No pg_partman, no pg_cron, no default partition (it would forbid detaching concurrently).
    6. Retention. A month wholly past the metric window and every type’s own window is detached CONCURRENTLY and dropped; the chunked prune keeps the window exact inside the months that remain, by TID, a month at a time. The metric floor becomes the latest row within retention (amending ADR-0080): a quantity stores every observation, so a series still measured always has a recent row, and one with none inside its window reads as no reading within retention; the task’s liveness (#1264) will say when it was last measured. A calc rule writes an unchanged metric output again once its newest row is twelve hours old (under the shortest window a type may keep), so an output a rule still produces keeps a row within retention; one whose rule is not drained for longer than the window (every input transition-only and unchanged) reads as no reading.
    7. Property is not partitioned (#1265 open decision 2): its rows are transitions, sparse by construction, and its floor is unchanged. Recorded here for the architect’s veto. Amended by ADR-1527 (#1527): points 2, 5 and 6 now read by the UTC day: metric is partitioned by day, the server keeps today and the next three days and refuses to start ingest until they are covered, and a day is dropped once it is past the lane’s window and the trend’s compacted mark and holds no sample of a type kept longer.
  • Context: the epic’s measurements put a wide metric row at 126 bytes of heap and 91 of index (rebuilt), most of it the series repeated on every observation; #1265’s design review ruled out every ingest-side filter, so the row itself had to shrink. Measured by make footprint on the same host and build before and after (five runs each, every held figure identical across runs): heap 126.0 to 60.2 bytes a row, index after REINDEX 90.6 to 39.4, live index 133.9 to 137.8 before and 59.1 after, WAL 458.5 to 460.7 bytes an observation before and 304.4 to 315.4 after; statements per batch unchanged at 18. Partitioning from birth folds #420’s swap into this one (two swaps on one table being one too many); event, log_line and node_log are #1417.
Section titled “ADR-1276: Hourly trends close an hour a day after it ends, and hold back the prune”
  • Date: 2026-11-05 | Status: Accepted | Pages: storage, platform settings
  • Decision: (#1276, under the approved #1265.)
    1. One trend row per observed series per UTC hour, metric_trend (series_id, hour, count, min, max, sum, first, last), keyed by series and hour and removed with its series. Calculated series are not compacted; properties have no trends.
    2. An hour closes a day after it ends, the late-data horizon (ADR-0311), not when its month’s partition ends, as #1265 first wrote: a month partition holds samples past the 14-day hot window, which the chunked prune removes inside the month long before it ends, so the trend has to exist first.
    3. Two marks, and a lock for the writes in flight. metric_trend_mark holds an announced mark (announced_through, how far the compaction has said it will close) and a compacted mark (compacted_through, how far it has folded). A pass moves the announced mark and commits, then takes the metric_trend:announce advisory lock exclusive and lets it go at once. Every metric insert reads the announced mark through metric_trend_announced(), which takes that lock shared until the insert’s transaction ends and then reads the mark on a fresh snapshot, so the exclusive lock waits for every insert that may have read the old mark, and every insert after it reads the new one. Then each hour folds in a transaction of its own that moves the compacted mark past it. A pass that stops anywhere (a cancel in the drain or the fold, a failed fold, a crash) leaves every hour before the compacted mark folded and every hour after it open for the next pass; the announced mark stays ahead, which only marks a few hours dirty for a needless recompute. An insert that holds the lock past 5 seconds fails the pass (a new insert queues behind the waiting compaction, so the bound is also the longest the ingest stalls). Only metric inserts take the lock: an open transaction of any other kind, or in another database, stalls nothing. Up to 48 hours close a pass; a pass left behind brings the next one in a minute. The first pass starts at the oldest month the hot tier holds or the longest window back from now (the metric lane’s or a type’s own), whichever is later, so an upgrade does not fold years of hours the prune is about to remove.
    4. A late sample dirties its hour in its own insert (the calc_pending shape #1276 named): the metric lane’s one statement gains a final clause marking (series, hour) in metric_trend_dirty when an observed sample’s ts is before the announced mark, so statements per batch stay 18. A compaction recomputes each dirtied hour once the compacted mark is past it, each dirtied hour whole from its samples, which makes a recompute idempotent; an hour whose samples are already past its type’s window is not recomputed (only part of it would remain). The recompute holds the trend lock exclusive from before it reads the samples, up to 500 dirtied hours a transaction: a second late batch into an hour already marked hits the mark on conflict do nothing and locks no row, so only the lock orders it against the recompute that clears the mark (a versioned mark the insert bumps was the alternative, and costs a row lock and a write per late batch). The sample write, the fold and the recompute run at READ COMMITTED whatever the server’s default_transaction_isolation, since each must read, after the lock is granted, what committed before it.
    5. The prune waits for the trend. The metric lane’s chunked prune and month drop cap their cutoff at the compacted mark, and prune nothing before the first compaction, so no hour leaves the hot tier without its trend. The trends are pruned to retention.trend_days like any lane, a window of their own that nothing forces to exceed retention.metric_days.
    6. Reads come with #1269, whose bucketed series read reads trends beyond the hot window.
  • Context: #1265’s acceptance asks for a 30-day chart that still shows a one-sample spike after the hot tier has kept only 14 days; a bucket’s maximum carries the spike. Measured on PG18 after VACUUM, a trend row costs about 145 bytes with its primary key, 3,482 bytes per series per day (TestTrendFootprint), against about 100 bytes per sample in the hot tier (ADR-1275).
  • Amended by ADR-1566: the trend-served reads of decision 6 shipped with #1566, not #1269.

ADR-1277: The lab footprint measures a running lab per container, and gates nothing

Section titled “ADR-1277: The lab footprint measures a running lab per container, and gates nothing”
  • Date: 2026-10-29 | Status: Accepted | Pages: test-driven, lab
  • Decision: (#1277, the half of #1272 that needs Docker; extends ADR-1272 and ADR-0094.)
    1. A running lab is measured, never gated. make lab-footprint (cmd/labfootprint, internal/labfootprint) brings up a throwaway lab of its own project, warms it up, and measures N back-to-back windows. Each figure is the median, printed with the lowest and the highest window, because on a shared host the spread is part of the reading.
    2. The lab’s cadence is a named profile. lab (a learner’s: check in every 2 s, probe every 10 s), walkthrough (a script’s throwaway lab: probe on every check-in) and default (the node’s and the simulator’s own defaults, read from their constants so the profile cannot drift from them). A lab given none runs as before. The flag is hidden: it is for the harness and scripts.
    3. What is read, and from where. CPU and memory from each container’s cgroup v2 counters as the Engine’s stats report them; the working set is anonymous plus shared memory, never RSS or the cgroup total, which count reclaimable file pages. Rows a minute per lane from pg_stat_user_tables.n_tup_ins, never a count(*), so measuring scans nothing. Each lane is summed over its partitions, so a partitioned metric reads the same.
    4. The one-vCPU limit holds only while reads are timed. Ingest is measured unthrottled; then the server and Postgres are updated to one CPU live and the reads run through the API the console uses.
    5. It cleans up after itself, provably. The lab is stopped with one SIGTERM and its own teardown. The harness then fails if any container, network or volume carrying the project’s label is left.
  • Context: #1265’s sizing needs what a deployment costs per container, which the ingest footprint (one batch through the handler) cannot see. #1273 named cadence profiles but shipped only --probe-every, so the harness had no way to run a lab at the product’s cadence. The profiles land here, at the lab, rather than as a product setting; #1373 owns where a deployment’s cadence resolves from.
  • Not chosen:
    • A gate or a stored budget. The figures move with the host’s other load by more than the changes they exist to show (ADR-0094’s reason). The counted instrument stays the gate.
    • Reading cgroup files with an exec. The omniglass image is distroless and has no shell. The Engine’s stats are the same counters, read the same way on every platform Docker runs.
    • Holding the lab to one vCPU throughout. That would make the ingest figures a measure of the limit rather than of the work.

ADR-1279: The ingest registry is kept until the catalogs’ fingerprint moves

Section titled “ADR-1279: The ingest registry is kept until the catalogs’ fingerprint moves”
  • Date: 2026-10-28 | Status: Accepted | Pages: samples
  • Decision: (#1279.)
    1. The consumer keeps the registry between batches. registryCache in internal/bus holds the registry collection.NewRegistry builds and the fingerprint it was built under, and every batch first reads the fingerprint (storage.CatalogFingerprint). A match reuses the registry; a change rebuilds it from the three catalog lists.
    2. The fingerprint is the tables’ row versions. One statement folds every row’s xmin, in id order, of metric_type, property_type, event_type and calc_rule into a SHA-256 digest (sha256(), not md5(), which a FIPS-mode Postgres refuses). An insert or an update writes a row version with its own transaction id, and a delete removes one, so any change moves it. A VACUUM FREEZE keeps xmin (verified on Postgres 18), so nothing else does.
    3. The fingerprint is read before the catalogs, so a registry stored under a fingerprint is never older than it: a change landing between the two reads only makes the next batch rebuild.
    4. A drift guard holds the covered tables to the list queries. TestCatalogFingerprintCoversThePlannedRelations plans each of the three list statements with EXPLAIN (FORMAT JSON) and fails when any relation the plan reads, subplans included, is missing from registryTables; TestCatalogFingerprintCoversTheRegistryReads is its fast, text-scanning sibling for make test-short. calc_rule is there because a type’s writer class follows the calc rule that writes it (ADR-0161).
    5. The collision warning is unchanged: still evaluated on every batch, from the cached registry. Moving it to rebuilds was left open on #1279 and is #1298. The fourth catalog-shaped read a batch makes (the commandable property names, inside LandBatch) is #1299. Amended (#1299): the commandable property names are kept beside the registry and the fingerprint covers command_type (ADR-1299). Amended (#1928): the fingerprint is read at most once every five seconds (fingerprintEvery), not on every batch, so a catalog change is honored by the first batch after that interval, and a sample name the registry lacks reads it at once (ADR-1928). Amended (#1298): the warning moved into the cache. It is logged when a registry is built with a collision and again once an hour while the collision persists, never per batch (about 65 lines a second on the dev fleet at the lab’s cadence before); a rebuild without one logs nothing.
  • Context: The footprint harness (ADR-1272) showed the consumer reading all three catalogs in full on every batch: 3 of the 31 statements a node batch cost, and most of its allocations. The catalogs change only when an operator edits a type. Measured after (TestIngestFootprint, BenchmarkIngestFootprint, 2026-10-28): 29 statements per batch, allocations per batch from about 1,267 to about 812, bytes from about 135 KB to about 74 KB; wall-clock moved within the host’s noise.
  • Not chosen:
    • Invalidating from the catalog write paths in process. Correct only while one process both writes the catalogs and runs ingest, and every catalog write path (create, update, delete, fork, restore, the boot seed, a calc rule’s output change) would have to remember to call it.
    • A time-to-live. A type created by an operator would be refused for up to the TTL, the failure mode #1279 names.
    • Fingerprinting the list queries’ results. Exact by construction, but Postgres would still evaluate the wide reads (each type’s writer subselect) on every batch; the row versions answer the same question for a fraction of the work, and the drift guard keeps them in step.
    • A trigger and a generation counter. A schema change and a trigger on four tables for what a read of row versions already answers.

ADR-1282: A conduit fans each identified value out to the owner its binding names, and a binding costs a write on both of its ends

Section titled “ADR-1282: A conduit fans each identified value out to the owner its binding names, and a binding costs a write on both of its ends”
  • Date: 2026-10-29 | Status: Accepted | Pages: collection, metrics and properties, identity and access, glossary, drivers
  • Decision: (#1282, the architect’s approval of 2026-10-29, every open decision as recommended.)
    1. The conduit and its identities. A driver function may declare an identity (a match key, which is a registered property_type, and the extract that reads its value) and records (a JSON selector for an array, so its emits and its identity read once per record). The component whose endpoint ran the function is the conduit: the path, not the owner. Every sample an identified record yields carries its identity on the wire; a record whose identity misses lands nothing and is a fault. Log emits carry no identity and stay on the conduit (a system owns no log line, ADR-0422).
    2. What authorizes a fanned write: a two-ended binding (decision 1). An identity_binding ties (conduit component, match key, value) to exactly one owner, a system or a component (a location or a node is refused, ADR-0422). Writing one costs component:update on the conduit and component:update or system:update on the owner, the ADR-0510 rule: an owner-side identity alone would let a principal scoped to one system declare another room’s id and siphon a conduit it cannot read, and a conduit-side binding alone would let a principal scoped to the conduit write onto systems it cannot update. Moving a binding to another owner costs update on the owner it leaves as well. Consent is given at write: a binding persists if its author later loses scope, as a membership does, and deleting either end deletes it.
    3. Where it lives (decision 2). Under the conduit, /components/{name}/identity-bindings/{key}/{value}, beside the unbound inbox it is bound from; an owner-side read is later. The list names an owner only inside the caller’s read on its tier and counts the rest.
    4. The match key is a registered property type (decision 3), so two drivers reporting one key share it, and a key is validated where a spec declares it.
    5. One fan-out step, confinement first. The ingest consumer resolves every identified sample in a batch against the conduit’s bindings in one read and lands the batch in its one transaction under its receipt (ADR-0311). On the node lane the conduit is the component ResolveTaskOwner already confines the node to, so a batch confinement orphans is dropped before any identity is read; on the webhook lane it is the component the token’s one endpoint names. The fan-out read runs in the ingest’s system mode: the binding is the fence, checked when it was written.
    6. What a fanned sample is (decision 4). It is observed, admitted by the Storage Gateway only for a collected key on either lane (ADR-0161), held to an owner the conduit’s bindings name, and it lands once, on its owner and not also on the conduit. It lands at the empty instance and names its observer in source as <conduit component>/<endpoint>. Components and systems are renamed, so the conduit is recorded by its uuid (source_conduit_id, beside the name it was written under, the source_rule_id precedent) and a read renders its current name: a renamed conduit’s history still names it. This amends ADR-0456’s observer stamp: the conduit’s endpoint is no endpoint of the owner (a system has none), so as an instance it would read as a retired observer and hide the value from the owner’s own reads. Two conduits reporting one key on one owner stay told apart by source, as fusion tells perspectives apart. The cost is stated: an owner-level property fed by two conduits is one transition-only series, so a flip between their values writes a row each time, revisited if a consumer needs a series per conduit.
    7. Unmatched values are kept (decision 5). An identity the conduit has no binding for lands on no owner and is upserted into unbound_identity (one row per conduit, key and value: a count, first and last heard, the keys it carried, held by their types’ uuids and read by their current names; 1024 rows per conduit, the least recently heard evicted; aged out after seven days), read under component:read on the conduit. A webhook post’s raw log line still lands on the conduit. The ingest warns once per conduit per window, never per sample. This amends ADR-1024 decision 7: the payload selects only among the owners bound to the token’s component.
    8. Deferred (decision 6). The collection page’s cascade-scoped index (an identity declared at a location or system binding every member below it) and its fallback to an observed identity sample are not built: each widens who can place a value on an owner without the conduit end’s consent, so each needs its own fence and a consumer to justify it. The page and the glossary describe what ships.
    9. The lab (decision 7). The multi-room simulated UCC service is added beside the per-room instances and bound in the dev seed; their retirement is #1390.
  • Context: A system owned its own telemetry only through a push or a calc rule (ADR-0422), and a webhook endpoint landed every post on its own component, so a cloud service reporting on many rooms either misfiled every room’s value on itself or needed a component per room. The collection page designed a value-to-owner index declared on the owner and resolved for any source; written that way it was a door around scope, since whoever could write an owner’s identity could pull another conduit’s values onto it. The binding with two ends closes both sides, reuses the membership precedent, and fits #1367’s passive gear, whose match key is a feeder plus a channel.

ADR-1297: The properties read carries reconciliation, and the reconciliation route retires

Section titled “ADR-1297: The properties read carries reconciliation, and the reconciliation route retires”
  • Date: 2026-10-28 | Status: Accepted | Pages: metrics and properties, API, config and credentials, views
  • Decision: One storage read answers “what are this owner’s properties and where does each stand”: the reconciliation resolver folds into the properties pivot, and the component and system properties routes, the CLI and the console consume it. A row is the union of the declared cascade, calc rule outputs, keys with a live observed instance, and keys a command targeted; each carries a reconciliation block (want, told, is, is_instance, drift), absent on a calculated row, want null and drift false where nothing is declared. A place’s rows carry the block with no is (it owns no observed sample). Two keys are not rows of their own: the reserved family (a native probe key, health, a command lifecycle key) stays on its own surfaces, since a probe key is the node’s verdict on an endpoint, which the reachability read gates (a held certificate’s expiry is frozen there); and a key a calc rule writes reads as its calculated row with no block, so a command or an observation on that same key shows on its sample routes, not here. The component reconciliation route and its generated command are removed in the same change rather than kept one release as a deprecated alias.
  • Context: The reconciliation read walked the declared properties alone, so a key the owner only observed never appeared anywhere a client could read it with its standing, and the console fetched the same owner twice (properties, then reconciliation) to draw two panels that could disagree. The architect resolved the open decision on #1297 as removal: the platform is pre-release, and every internal consumer (the console’s panel, the CLI, the demo tape) moved in the same PR, so an alias would serve no caller. A client of the removed route reads the same pivot under each row’s reconciliation on the properties read.

ADR-1299: The command-targeted property names ride the kept registry

Section titled “ADR-1299: The command-targeted property names ride the kept registry”
  • Date: 2026-10-28 | Status: Accepted | Pages: samples
  • Decision: (#1299.)
    1. The fingerprint covers command_type. registryTables gains it, so creating, retargeting or deleting a command type moves the catalog fingerprint (ADR-1279), and the next batch rebuilds. The statement that reads the targeted names (commandTargetedSQL) joins the registry list statements, so both drift guards hold it to the covered tables: dropping command_type from the fingerprint fails them by name.
    2. The consumer keeps the set beside the registry. On a rebuild, registryCache also reads CommandTargetedProperties, and every batch carries the kept set as IngestBatch.CommandTargeted. LandBatch seeds its batchTx with it, and commandTargetedProperties answers from the batch, the same pattern ADR-1274 set for the owner and the clock. The set is read only, so one set is shared across batches.
    3. Both ingest lanes carry it; the other property writers read it themselves. A node’s batch and an API push both land through the consumer (Server.land), so both carry the kept set. A batch with no set (nil) reads it in its transaction, as before, and the property writers outside the consumer keep that path: calc outputs (in their rule’s transaction) and InsertPropertySamples (the dev seed and tests).
  • Context: #1274 left 19 statements on a node batch. One was settlement’s select distinct pt.name from command_type ... join property_type ..., read in every batch carrying a property sample, though it changes only when a command type does. The fingerprint was already read once per batch, so covering one more table costs nothing per batch. Measured (TestIngestFootprint, exact; BenchmarkIngestFootprint, 300 batches, 3 runs each, back to back against #1298’s branch on one host): 18 statements per batch, allocations 596 to 581; wall time is within run-to-run noise on a local Postgres (about 2.0 to 2.4 ms either side), since the saved statement is one local round trip. Against a remote Postgres each round trip is a network hop.
    • The staleness bound is the registry’s: the fingerprint is read before the catalogs, so the kept set is never older than the fingerprint it is stored under, and a command type created between two batches is honored by the second (TestACommandTypeCreatedBetweenBatchesSettlesOnTheNext).
  • Not chosen:
    • A cache inside the storage layer keyed by its own fingerprint. Reading that fingerprint would cost the statement it saves.
    • Folding the set into the registry type. The registry is the collection package’s name resolution; settlement’s set is a storage concern the consumer only carries.

ADR-1307: An operator’s row shadows an official row of the same name in another registry

Section titled “ADR-1307: An operator’s row shadows an official row of the same name in another registry”
  • Date: 2026-10-29 | Status: Accepted | Pages: samples
  • Decision: (#1307, ruled 2026-10-29.)
    1. The seed is unchanged: official rows always land. The ship-with upserts stay authoritative; a name an operator holds in another registry neither skips the shipped row nor stops the boot. The row is the platform’s, and every shipped rule, product and standard that names it keeps resolving against it.
    2. The shadow lives in one shared rule. storage.ResolveNameLane resolves a name held in more than one catalog when exactly one holder is an operator’s row and the rest are official: the operator’s row wins. Every reader of a bare name calls it, so none can disagree: collection.NewRegistry (ingest), an event rule’s sample key (resolveRuleLane, SampleKeyType), a calc rule’s key (resolveSampleKey) and the catalog a driver spec is validated against (loadDriverCatalog). A reader that picked the official row would evaluate a series nothing writes, or validate a shipped driver against a lane ingest drops. Registry.Shadowed() names the shadowed names, and the ingest registry cache reports them on a rebuild and hourly (never per batch), apart from collisions. A push naming the official row of one is refused with a reason that says it is shadowed.
    3. Everything else is still a collision. Two official rows (a release bug, also held by sharedRegistryNames), two operator rows (a create the fence refuses), or an operator row among several: the name resolves to nothing and is reported, as before. A reserved key (the node’s or the platform’s own) is never shadowed: held twice, it is a collision, so a release that reserves a name an operator already holds cannot hand the operator the official probe key. Amended by ADR-0318 (#1432): the rule generalizes to the search path. A holder is classified by its namespace (local or og) rather than by official, the same-catalog case resolves the same way, and the shadowed row is written beside the operator’s instead of only in another catalog.
    4. The remedy is the operator’s, and optional. Deleting their row (DELETE /metric-types/{name} or its sibling on the registry it lives in) lets the official one resolve; until then their data is exactly where it was. The registries offer no rename, so moving their series to a new name means creating it and pointing their pushes and rules at it first.
  • Context: an operator’s custom property x, then a release that seeds a metric x, left x in two catalogs: it resolved on no lane and every sample carrying it was refused (logged at registry build and hourly since #1298). The create routes refuse a cross-catalog name (#457), so the seed was the one path in. A first answer skipped the shipped row with a warning; it was withdrawn because the platform’s rows are always its own, a skipped row fails any shipped rule that names the key (found while testing it), and an operator with a stale official holder had no remedy. The namespace tiering in #318 (official, community and private, private shadowing official) is the general design; this is the rule it implies, for the one case that exists today.
  • Limits:
    • When this was decided, a name held in the same registry (an operator’s custom metric x and a shipped metric x) could not coexist: the table was unique by name, and the authoritative upsert took the row over. #318 answers it with namespaced keys: the seed writes only the og namespace, an operator’s keys live in local (or their own), and a bare name resolves local then og, which generalizes this rule.
    • The shadowed official row exists but is unreachable by its bare name on that install until the operator deletes theirs; a lane-specific read still sees it. The console does not mark it yet.
  • Not chosen:
    • Skipping the shipped row and warning. It leaves the platform’s catalog incomplete and breaks shipped content that names the key.
    • Refusing to boot or migrate. An operator’s earlier valid choice would block an upgrade, and the fix (deleting their row) is an API call.
    • The official row displacing the operator’s. It would silently change the meaning of everything that pushes or drives by that name.

ADR-1318: A snooze is a fact about an alarm’s condition: its notifications are written suppressed, and its end tells people again

Section titled “ADR-1318: A snooze is a fact about an alarm’s condition: its notifications are written suppressed, and its end tells people again”
  • Date: 2026-10-29 | Status: Accepted | Pages: alarms and actions, identity and access, API, UI
  • Decision: Snooze is built (#1318, its open decisions approved as recommended):
    1. It attaches to the condition. One alarm_snooze row per (component_id, dedup_key), the condition identity of ADR-0075, with snoozed_until and snoozed_by. It is set from any alarm of the condition, cleared ones included, for a duration from now of 1 minute to 7 days; snoozing again replaces the deadline. alarm:snooze gates both verbs, its scope resolved on the component tier from that permission as alarm:acknowledge’s is, and it is seeded on operator and not on deploy (ADR-0109’s reason: a location-scoped grant reaches no component) or viewer. Both verbs are audited on the alarm they were called on.
    2. Suppression is a delivery status. notification.status gains a fourth, terminal value, suppressed, the reason in last_error. At the queue seam (ADR-0618 point 1) one indexed lookup of the alarm’s condition runs once some rule fires, and while the condition is snoozed every row the firing rules would write (webhook, email, inbox, a group’s people, a personal rule’s owner) is written suppressed instead of queued or sent. A raise and a clear are both suppressed. A rule whose when fails still writes failed, so a broken rule stays visible. The tick never drains a suppressed row, the inbox never shows one, and :retry refuses one. Where a row waits (the pattern of ADR-1341 point 3), the tick marks a queued row of a snoozed condition suppressed instead of sending it, so a snooze also stops a retry already on its way. This is the primitive #1345’s dependency suppression and dedupe consume.
    3. The end of a snooze tells people again about a condition that is still raised. When the deadline passes, or :unsnooze ends it, the row is deleted and, if an alarm of the condition is still open, it is announced again as a raised transition, judged against the action rules and memberships as they stand then (a rule disabled during the snooze stays quiet; ADR-1341’s queue-time scope check filters the people, unchanged). The end is audited: unsnooze on the alarm it was called on, naming the actor, or snooze-end from the platform on the condition’s latest alarm. A snooze past its deadline that the sweep has not reached is ended exactly so, snooze-end and announcement included, by whichever verb touches its condition first, so an unsnooze or a re-snooze in that moment never swallows what the deadline owed. A suppressed row is never released: the rules are judged again from scratch, so nobody gets a backlog of stale messages.
    4. The deadline sweep runs on the notifier’s 2s tick. Each expired snooze is taken FOR UPDATE SKIP LOCKED and deleted in the same transaction that queues its announcement, so replicas never announce one condition twice and a restart loses nothing. Every write to one condition’s snooze holds an advisory lock on the condition, and the queue seam holds it shared, so a snooze waits for a transition already judged; the sweep only tries the lock and skips a held condition for the rest of its pass. It moves to the time primitive when #419 lands, as ADR-0618 records for the drain.
  • Refines ADR-0109: its refusal of snooze rested on there being nothing to suppress, and #618 built the notification lane. Un-acknowledge, resolve and bulk acknowledge stay refused. It also refines the alarms page’s cycle-safety rule 2 (operator transitions do not match action rules): snoozing queues nothing, and the end of a snooze is the one operator act that queues notifications. It is safe because the announcement is an alarm transition the platform already sent once, judged by the same rules, and a snooze can end only once.
  • Context: A snooze on one alarm row could only ever hold back that row’s clear, since its raise has gone out by the time an operator sees it, so it would do nothing for the flapping alarm the opt-out docs point to snooze for; a rule-wide silence already exists as action_rule.enabled. Announcing again at the end matches “leave me alone for an hour, then tell me again”, needs no record of which raise was suppressed, and does not hide an outage that began during the snooze. Muting only your own delivery is a different record (a person and a condition), filed as #1384.

ADR-1341: A person is told about an alarm only while they can read it: groups expand at queue time, scope is checked there and again at delivery

Section titled “ADR-1341: A person is told about an alarm only while they can read it: groups expand at queue time, scope is checked there and again at delivery”
  • Date: 2026-10-28 | Status: Accepted | Pages: alarms and actions, identity and access, workers
  • Decision: People are notification targets without a parallel model (#1341, its open decisions approved as recommended):
    1. Expand at queue time. A principal_group or principal target is expanded to the people it names inside the alarm transition’s transaction, reading the membership as it stands, so a member added after the rule was written is told on the next transition and a removed one is not, with no rule edited. Only active, unarchived humans are recipients (a service, node or agent member is skipped). Each person gets one row per channel, so each has their own delivery state, retry and Idempotency-Key; a person one rule reaches twice (two of its groups, or a group and directly) is told once per channel.
    2. Check scope at queue time, set-based, under the savepoint. A person is kept only when their own component read scope, resolved from their effective grants exactly as a request of theirs would be, admits the alarm’s component. The check is one statement for the members, one for all their grants, one for the role index and one ancestor walk of the component, then a pure resolve per person, so its cost does not grow with a group; it runs under #618’s savepoint, so a failure in it writes no person row and the transition commits.
    3. Check again where a row waits. An inbox entry is delivered by its own commit, and its read is itself scoped: the inbox reads the caller’s rows filtered by their component read scope now, so an entry about a component they lost is gone. An email row (#1317) re-checks its recipient at send (still exists and active, still reads the component, still a member of the group it came through) and fails with a plain reason instead of sending.
    4. A personal rule never matches outside its owner’s scope (#1353): the owner’s component read scope gates the alarm before the rule’s when is evaluated, so neither a delivery nor the when’s result can reveal an alarm the owner could not read.
    5. Inbox entries are notification rows, channel = inbox, written sent: one history per alarm, the timeline and /notifications already show them, and the component scope filter is already injected on component_id.
    6. A recipient’s name is the recipient’s and the directory admin’s. A person-addressed row is visible wherever its alarm is, but its recipient is named only to that person and to holders of principal:read:admin, since the principal directory is admin-tier; everyone else sees it withheld.
  • Context: The alternative was one row per group, fanned out by the delivery tick. It would carry a rendered message about an alarm to a list nobody had checked, keep membership out of the alarm’s history, and share one delivery state among many people. Queue time is the one point where the rendered message and the person are known together. The second check exists because a row can wait: an email retries for up to about 21 minutes, and an inbox entry waits until it is read, in which time a grant can be revoked. A send-time-only check would cover email but not the inbox, whose delivery is its commit.

ADR-1343: A location create resolves its parent under read before create

Section titled “ADR-1343: A location create resolves its parent under read before create”
  • Date: 2026-11-23 | Status: Accepted | Pages: identity and access
  • Decision: (#1343)
    1. The parent’s refusal follows the three-way split. A location create resolves its parent within the caller’s location:create scope, with ambiguity judged inside that scope, as before. When that resolve refuses, the gateway asks the read question with the non-disclosing resolve: a parent inside visible_set(P, read) is the truthful 403 (ErrLocationForbidden), and a parent outside it, or nowhere at all, is ErrParentNotFound. Root creation (no parent) is unchanged: it needs an all-scoped create grant, else 403.
    2. ErrParentNotFound is a 404. mapLocationErr answers 404 parent location not found where it answered 422. One status and one body for both cases is what makes them indistinguishable; 404 was chosen over a shared 422 to match POST /locations:instantiate, whose target location already resolves under location:read and answers 404 for both.
    3. The read set grants nothing. It only decides which refusal is owed, so a wide read cannot widen a narrow create, and an *ErrAmbiguousName’s candidates still never name a location outside the create scope.
    4. One resolver for every location create. resolveCreateParent in internal/storage/locations.go serves CreateLocation, BatchCreateLocations and a plan’s locations (createLocationTx), each now carrying the caller’s location:read scope.
  • Context: Ruling 2 of #627 (“scope decides before ambiguity does”) resolved the parent under the create scope alone and kept the not-found versus forbidden split of resolveScopedRef, on the argument that a reference the caller supplied in the same request is not a new disclosure. That holds for a row the caller can read and fails for one it cannot: any location:create holder could ask for a parent by name and learn from 403 versus 422 whether a location outside its read exists. The security review of the instantiate routes (#1328) found it.
  • Consequences: The status change reaches every route that maps ErrParentNotFound through mapLocationErr: a :move to a parent that does not exist, and a :renderLabel draft naming a missing parent, now answer 404 where they answered 422. Their scope resolve is unchanged here, as is component and system create: each still answers an existing parent outside its own scope with a 403, and bringing them under the same split is #1964.

ADR-1350: A node log window is an optional setting; unset follows the shared band

Section titled “ADR-1350: A node log window is an optional setting; unset follows the shared band”
  • Date: 2026-10-29 | Status: Accepted | Pages: storage, settings, platform settings
  • Decision: (#1350 step 1, ruled 2026-10-28: shared bands for now, an install-wide node override first, per node later through the cascade.)
    1. Four optional settings. retention.node_log_<band>_days, one per band of logline.RetentionBands, each held to the range every window is (1 to 36,500; 0 and past the ceiling are a 422). A test holds every band to an override of its own, so a band added later cannot silently ignore one.
    2. Unset is absence, not a sentinel. The fields carry no default tag and omitempty, so they are absent from the effective document and not required in the published schema. The reader (NodeLogDays) takes a nonzero value and otherwise the shared band’s, so a zero reads as unset. The API refuses a 0 (as it refuses every window below 1), so only the operator file, which is parsed but not validated, can hold one, and there it follows the shared band rather than being refused as a 0 on a shared window is. A stored value above the ceiling or below zero is refused by the pass like any window.
    3. The console lists declared keys, not only resolved ones. The Settings card’s keys are the union of the effective document’s and the generated schema’s, so an optional setting renders not set and is saved like any other; restoring it returns it to unset. A blank unset row is not an error, and its layer stack marks no level effective and reads the setting’s description (now carried in the generated per-field constraint), which names what it follows.
    4. The pass is unchanged in shape. node_log’s lanes take NodeLogDays(band), log_line’s take LogDays(band); same chunking, same indexes, same report.
  • Context: #417 shared the four band windows between log_line and node_log to keep the card small. A node’s self-logs are platform diagnostics with a different useful life from a component’s lines.
  • Not chosen:
    • A sentinel default of 0 meaning “follow the shared band”. No console change, but a card reading node_log_debug_days 0 says “keep nothing”, and 0 is the value every other window refuses.
    • A pointer field (*int), so a present 0 is refused. Huma reflects a pointer as nullable, and null is the merge patch’s delete sentinel, so the schema would invite a write that means something else (the reason a list setting is nullable:"false").
    • Per node now. The cascade has no node leaf; #1351 adds it, and this setting’s per-node step is its first consumer.

ADR-1369: Every endpoint reports its own collection once a report window

Section titled “ADR-1369: Every endpoint reports its own collection once a report window”
  • Date: 2026-10-28 | Status: Accepted | Pages: collection, settings, platform settings
  • Decision: (#1369, ruled 2026-10-28 on #1266 and #1369.)
    1. Built-in and collected data. Collected data is what a driver reads from the device’s API, declared by its polls and listeners. Built-in data is what Omniglass knows about the endpoint itself: every endpoint gets it, whatever its driver, because the endpoint cannot work without it, and a driver never declares or emits it (it only tunes how some is gathered, its ladder). Beside the probe samples and a session’s state, every endpoint’s built-in data now includes its own collection, so a device that only pushes, or reports nothing of its own, still carries telemetry.
    2. Aggregated where it is counted, once a window. The node counts each endpoint’s poll runs, scheduled or run now (how long, and which failed: faulted and landed nothing, as the poll scheduler reads a failure), each due poll its gate refused (a failure with no time, so the mean stays the time of the polls that ran), and its held session’s or udp socket’s messages (claimed by a listener, or not; a session or socket recycled mid-window hands its counts to the next report). The server’s webhook receiver counts each endpoint’s accepted and refused posts. Each reports once a report window, so the cost is a few rows per endpoint per window however fast a driver polls or a device pushes. Measured: one report batch is 13 statements and two rows for an endpoint that both polls and listens (TestCollectionReportFootprint, exact); across the learner lab’s mix, about 7% more metric rows.
    3. Dense where silence means something, sparse for errors. poll-duration lands every window a poll ran, and push-message-count every window the endpoint is held, zero included, so a quiet device reads quiet rather than missing. poll-failure-count, push-unclaimed-count and webhook-refusal-count land only when nonzero. webhook-post-count lands when nonzero and then one zero after a window with posts, so the series shows a stream stopping; after that a quiet webhook endpoint lands nothing, and its last heard says how long. The server does not land a zero for every quiet webhook endpoint every window: it would need to read every one, and each server of an install would land its own.
    4. One writer class per key (ADR-0161). The four node keys are node-probe and node-only (probekeys), so the push lane refuses them, as it does every probe key. The two webhook keys are platform: only the process counts its posts, so a node and a push are refused them, and the receiver writes them through the gateway’s process writer, in the metric write path, so an event or calc rule reads them as it reads any metric.
    5. The endpoint is the series. A row’s instance is its endpoint’s name, as every node-observed row’s is, so an endpoint’s several polls share one poll-duration series. A node publishes an endpoint’s rows under the least of its task ids in the worklist it holds when the window closes, never one remembered from the window’s start: a driver revision mid-window replaces the ids, and a row under a deleted one would be dropped as an orphan and raise the node’s stuck-task signal. An endpoint no longer in the worklist reports nothing. The server lands each component’s webhook counts in a transaction of its own, so a component deleted since its last post drops only its own rows (the review’s blocker; anti-pattern deleted-owner-sinks-the-batch).
    6. The window is a platform setting for now. collection.report_seconds (platform domain, client-visible, 60 by default, 10 to 3,600) rides the worklist to every node on each pull and is read by the receiver when it arms a report. A node’s Config.ReportEvery and the API’s WithCollectionReportEvery override it for tests. This is the interim of the cadence model ruled on #1373: each endpoint type’s catalog entry holds its built-in keys’ defaults, a driver overrides them per endpoint type, and an operator overrides them down the cascade.
  • Context: #1266 set the lab’s bar at telemetry on every component and every system. The inventory found a webhook-fed component carried nothing of its own (a post stamped last heard, and refusals were a counter on the token row), a pushed line no listener claimed reached only the node’s log, and a poll’s time and failures were not measured at all; a failing poll landed one collection-failed per change of fault.
  • Not chosen:
    • A row per poll run or per message, as the probe timings are. Finer, but about 19% more lab rows today, growing with poll rate and message volume.
    • Every key every window, zeros included. Simpler to chart, about twice the rows of the sparse rule for the error counts.
    • One key written by both the node and the server (a push-message-count for webhooks too). A key has one writer class, and the server’s count and the node’s are different observers.
    • A window per endpoint type now. That is #1373’s model; one window first keeps this slice to the telemetry itself.

ADR-1370: The simulator plays the SaaS, so it holds a webhook endpoint’s token and key

Section titled “ADR-1370: The simulator plays the SaaS, so it holds a webhook endpoint’s token and key”
  • Date: 2026-10-29 | Status: Accepted | Pages: simulation, lab, collection
  • Decision: (#1370, ruled 2026-10-29 by the architect on #1370.)
    1. The simulator holds what the SaaS would hold. A webhook’s URL carries a token the server mints at the endpoint’s creation, so a profile default cannot name it, and a simulated device’s state begins again from its defaults on every simulator restart, so a one-time subscribe is lost. The simulator plays the external service that posts to the endpoint, so it is handed what that service’s admin would configure: the endpoint’s path and the secret its scheme signs with (the hmac key, the token, or user:password). The server’s simulation device list (collection.SimComponent.Webhook) carries it; the simulator calls the profile’s declared subscribe route (webhook.subscribe, a POST taking url, scheme and secret) with the server URL it already reaches plus the path, once per device instance and subscription, and again for a restarted device.
    2. The fence. Any node credential may pull its simulation device list (that is how sim run runs beside a plain node), so “only a simulating node” cannot be the fence: the server cannot tell. The fence is two facts the server holds and a node cannot assert. The database carries the lab mark, set only by the lab’s trusted seed, so a production database hands out no subscription at all. And the component’s address is in the simulated block (127.60.0.0/16), which only the seed and the simulated fleet’s plan allocate, so a real device on the network, or a service on the node’s own host at another loopback address, is never handed its webhook. The subscription rides only that device list; a node’s worklist never carries a webhook token or key. TestSimlistCarriesAWebhookSubscriptionToTheSimulatorAlone holds it: no lab mark hands out nothing; with the mark the simulated service gets its subscription, a networked one and a host-loopback one none; and the worklist carries neither token nor key. Outside a lab (make dev), a simulated service is subscribed by hand, through its subscribe route.
    3. A first-party pusher with one grant. The lab exercises POST /telemetry:push from a simulated booking service, a service principal whose one grant is a telemetry-pusher role holding telemetry:push alone, scoped to one system (the HQ boardroom’s), exercising a system-owned push (ADR-0422). It reads its system off its own grant, so it pushes nowhere else and reads nothing. Its token is minted per lab run and handed over as the node’s is: the plaintext to the simulator, the hash and non-secret prefix to the seed, which makes it the principal’s only token. A push has no endpoint, so it counts on its collected tier alone.
  • Context: #1266 set the bar that every collection method runs healthy in the lab on both tiers; #1370 found the simulated UCC service’s target_url empty by default, so no webhook posted until an operator subscribed it, and nothing in the lab pushed through the API.
  • Not chosen:
    • The lab seed subscribes once, through the server’s simulator-operate path. A node or simulator restart loses it.
    • A seed-supplied fixed token. It weakens “the server mints the token” for every install to serve a lab.
    • The token and key on the node’s worklist. Every node pulls its worklist, simulating or not; only the simulator plays the sender.
    • Fenced on a loopback address alone. The review’s blocker: a production node watching a service on its own host, or a writer able to point an endpoint at a loopback address, would read another component’s webhook key off the device list without secret:reveal.
  • Point 3 superseded by ADR-1743: the booking service is now an emulator device a scenario declares, provisioned one way for both lab kinds; its grant shape and per-run token stand.

ADR-1442: An audit row outlives its subject: both images and a string reference

Section titled “ADR-1442: An audit row outlives its subject: both images and a string reference”
  • Date: 2026-10-29 | Status: Accepted | Pages: audit, alarms and actions
  • Decision: (ruled on #1339, built in #1442.)
    1. Audit keeps the images. An update row carries each field it moved in both old and new, null on the side where the field was unset, and names its subject well enough to read alone (an alarm’s component, by name, and dedup key). A create carries the whole subject in new; a delete the whole subject in old. The alarm writers meet this as of #1442 and every other writer (settings, secrets, tags, variables, property values, members, role assignments, principals, role choices, webhook tokens) as of #1444. Each reads its before image inside the writing transaction, under the row’s lock (or an advisory lock where the subject is an append-only series), and builds the after image from what it wrote. Two things are never imaged: a secret’s plaintext (its image is metadata and a version digest of the sealed value) and a credential hash. The password verbs (change_password, reset_password) therefore carry no field images; the only field they move is the hash.
    2. A subject reference is a string. audit_log.resource_id is text with no foreign key. Were a reference ever a foreign key, a deletion would have to keep it as text or null it; the images are kept either way.
    3. Deleting a subject never touches audit_log. Deleting a component already removes its alarms (alarm_component_id_fkey cascades) and leaves their audit rows; alarm retention (#1339) will remove cleared alarms the same way. Audit’s own retention is #526’s.
    4. Alarms first. A clear and an acknowledgement wrote no before image, a first snooze wrote none, and an unsnooze or snooze end left the deadline out of its after image; each now carries both, and every row names its condition. A first snooze’s before image is {"snoozed_until": null} rather than no image, which changes what ADR-1318’s tests pinned as “no before”.
  • Context: #1339 asked whether deleting an aged-out alarm would orphan its audit rows. The architect ruled the rows are kept and are meant to stand alone.
  • Not chosen:
    • Deleting an alarm’s audit rows with it. Audit is append-only and carries the longest retention.
    • A foreign key from audit_log to its subject. It would block or rewrite the trail on every deletion.

ADR-1454: A component nothing has observed reads unknown, not healthy

Section titled “ADR-1454: A component nothing has observed reads unknown, not healthy”
  • Date: 2026-11-14 | Status: Accepted | Pages: health
  • Decision: (#1454.) The component verdict reads (GET /components/{name}/alarms, the fleet view’s dots, a system’s members read) answer unknown for a component with no recorded verdict, no alarm ever raised on it (cleared ones count), and no endpoint that has delivered anything (endpoint_live). One SQL expression (componentObservedSQL) decides it, so the three reads agree. The page of a device nothing has collected from and the Explore outline now read the same word.
  • Consequences: The alarms read’s verdict gains a fourth value, unknown, so a client switching on it must handle one more. The console already words anything outside the four it knows as its grey unknown chip (verdictOf), so no UI vocabulary changed. The rollup is untouched: system and location verdicts come from the recorded rows and never see unknown, so an unobserved member neither raises nor masks a system’s verdict. A component in a system that had read healthy with no data now reads unknown until its first delivery or alarm.
  • Context: The page badge read healthy for a component nothing had observed because the alarms read took “no active alarms” to mean healthy, while the Explore drawer, fed by a view with no dot for a loose component, read unknown. The issue offered two fixes: make the server verdict distinguish never-observed, or have the page read the outline’s source. The first was chosen because the verdict is server-sent (web/src/lib/health.ts) and the page’s poll should carry it.
  • Not chosen:
    • The page reads the fleet view’s dot instead of the alarms read. It would drop the live poll the page relies on (#934), and the dot read healthy for a system member with no data, so the two surfaces would still disagree there.
    • Adding unknown to the rollup’s health.Verdict. How unknown composes upward is still an open design question on the health page; this slice names only the never-observed reading and leaves the composition to that decision.

ADR-1483: A shipped driver is named for its product, and a rename moves the row

Section titled “ADR-1483: A shipped driver is named for its product, and a rename moves the row”
  • Date: 2026-11-15 | Status: Accepted | Pages: collection, drivers guide
  • Decision: a shipped driver is named for the product it serves (the ruling on #1363); a shared driver exists only for the same product in different configurations. The two seed drivers that broke the rule once their siblings moved to drivers of their own are renamed: newtron-nvp to newtron-panel-nvp (now the Newtron Panel 7’s alone) and http-json to tessellate-census-http (the Tessellate Census’s alone). An install upgrading across the rename keeps collecting because a dbmate migration renames the existing og driver rows in place; no seed alias is added.
  • Context: the driver’s name is the boot seed’s upsert key, and an endpoint and a product hold the driver by uuid. Left to the seed alone, the new name would insert a second driver row and strand every attached endpoint on the old one, which no boot would update again. Renaming the row keeps its uuid, so endpoints, products and their derived tasks stay attached and the next seed updates the row in place. An alias would have kept the dead name resolvable in the seed forever for data that, before the first external deployment, does not exist outside dev, CI and the lab. The migration is a one-time backfill: it is a no-op on a fresh database and where the new name is already taken. Only the two drivers are renamed; the simulator’s newtron-nvp API surface is a protocol surface shared by three Newtron devices and keeps its name.

ADR-1498: A location grant reads and creates the systems and components placed in it

Section titled “ADR-1498: A location grant reads and creates the systems and components placed in it”
  • Date: 2026-11-15 | Status: Accepted | Pages: identity and access
  • Decision: (#1498, the create and read half of #10.)
    1. A cross-tier root, not a same-tier id. scope.Resolve puts a location grant’s root in a new Set.LocationIDs when the resource is system or component, the action is read or create, and the grant’s op is subtree or subtree_excl_root (both keep the root for read and create, as they already do on their own tier). applicableKinds and Covers are unchanged, so the location id is never compared against a system or component’s own ancestor chain, where it could never match.
    2. Matched by placement. The Storage Gateway expands the root to its location subtree and admits a system placed in it plus that system’s subsystems, and a component whose own location is in it, or with none of its own whose primary system is, plus its subcomponents (the effective place of ADR-0140). The match lives in the scope-tree primitives (inScopeTree, inScopeIDs, scopedListSQL, and the read filter every derived component read uses), so a list, a get, a parent bind and the alarms, notifications, dependencies and fleet dots of a component all answer alike.
    3. Create places inside the root. A root system or component is admitted with an all-scoped create grant, as before, or with a location inside a cross-tier root of the create scope. A root with no location still needs the all-scoped grant (403). The location is still bound within the caller’s location read scope first (#700’s non-disclosing 422 is unchanged), so a location outside the grant answers as it did.
    4. What does not move. update, rename, move and delete on a system or component; every resource that hangs off a component (endpoint, task, alarm, command, notification, telemetry); a self location grant; a system or component grant’s reach into locations; and the group kind. The queue-time notification recipient filter (Set.AdmitsChain) ignored LocationIDs and failed closed (#1981); it now also admits by placement (Set.AdmitsPlacement, #2554).
  • Context: The dev seed’s tech-east (deploy at east, subtree_excl_root) could not create a system or component in the rooms it builds out, or read one, so a field tech needed a location, a system and a component grant together (#714 documented the gap). Read and create are the half a field tech needs to build a room out; the modify half needs a placement-aware rule for moving a row out of the grant, which is #10.
  • Not chosen:
    • Adding location to applicableKinds("system") and ("component"). The ancestry walk compares a grant’s id against the row’s own tier chain, which holds no location id, so it would match nothing, and it would grant every action, the modify ones included.
    • Resolving the location to system and component ids at grant time. The set would go stale as rows are created and moved, and it grows with the fleet rather than with the grants.

ADR-1509: Before the first external deployment, destructive fixes take priority over back-compat

Section titled “ADR-1509: Before the first external deployment, destructive fixes take priority over back-compat”
  • Date: 2026-11-05 | Status: Accepted | Pages: contributing
  • Decision: (#1509.)
    1. Omniglass is pre-deployment. There is no external deployment, no installed base, and no operator data outside dev, CI, and the lab. This stance applies only before the first external deployment.
    2. Destructive fixes are correct. When the correct fix is destructive (renaming seeded keys or fixtures, reshaping schema, removing or renaming an API field, deleting a compatibility shim), agents should make that fix directly instead of adding back-compat paths, deprecation periods, or data-migration machinery for data that does not exist.
    3. Migration mechanics are unchanged. Applied migrations are never edited, and schema changes are always expressed as new migrations (DDL idempotence). This rule is not relaxed.
    4. Exit condition. This stance will be removed in the PR that prepares the first external deployment.
  • Context: Found during #1371, where an agent weighed a coarse workaround against renaming seeded systems. Without an installed base, workarounds are pure cost: they complicate the code, constrain future changes, and add nothing to the user experience. A destructive fix is the simplest, clearest path.
  • Not chosen:
    • Back-compat shims and deprecation periods. They add cost and complexity during pre-deployment, when every change is made quickly and rarely affects real data.
    • Data-migration machinery for non-existent data. It adds test burden and operational machinery that will be replaced on the first real migration anyway.

ADR-1527: The metric lane is partitioned by UTC day

Section titled “ADR-1527: The metric lane is partitioned by UTC day”
  • Date: 2026-11-06 | Status: Accepted | Pages: storage
  • Decision: (#1527, amending ADR-1275 points 2, 5 and 6.)
    1. A day, not a month. metric is range partitioned by UTC calendar day on ts, each partition named metric_pYYYYMMDD. Its three indexes, the series dimension and metric_declared (a plain table) are unchanged.
    2. One create-copy-swap. One migration renames the month-partitioned table (with its identity sequence) aside, creates the day-partitioned parent LIKE it (so the columns, their types, defaults and identity are metric’s as they stand when the swap runs, not restated from #1275), a partition for every day it held a sample in and today through three days ahead, copies every row keeping its id, moves the identity past the old table’s, refuses unless the counts agree, drops the month table, and makes its indexes again on the new parent from their own definitions and names. Its down is the same swap back to months.
    3. The roll. The server keeps today and the next three days partitioned, at boot and on every retention pass. After creating any missing day it reads the partitions back and refuses unless they cover every instant from the start of today through the end of the third day ahead, naming the first uncovered instant; the boot starts no consumer over a refusal. A partition-routing miss (SQLSTATE 23514 naming no constraint) is still made and retried, never refused.
    4. Retention by the day. A day is dropped whole (detached CONCURRENTLY, then dropped) once it lies wholly before the lane’s window and the trend’s compacted mark (ADR-1276), unless it holds a sample of a type whose own retention_days window still reaches into it. A held day stays, and the chunked prune keeps each window exact inside it. Where ADR-1275 held every month back to the longest type window installed, a day is held only by a series that has a sample in it.
  • Context: a month partition outlives the window by up to a month, so most of what the prune removes it removes chunk by chunk, writing WAL and dead tuples for rows a drop would remove for free. A day bounds that to one day past the window. make footprint, on the same host and build before and after: heap unchanged at 136 rows a page (60.2 bytes a row), index after REINDEX 40.5 to 38.1 bytes a row, live index 61.9 both, WAL 309.5 to 310.2 bytes an observation, statements per batch unchanged at 18.
  • Not chosen:
    • A per-type partition key. It would let a longer type’s days drop on their own schedule, but it multiplies the partitions by the overridden types and moves a series between partitions when its type’s window changes.
    • Holding every day back to the longest type window, as the months did: one type kept for a year would hold a year of every type’s days, and the chunked prune would do the work the drop is for.

ADR-1528: Observed metric samples fold into lossless blocks sized by their sample count

Section titled “ADR-1528: Observed metric samples fold into lossless blocks sized by their sample count”
  • Date: 2026-11-07 | Status: Accepted; decision 9 amended by ADR-1529 (#1529), decision 1 by ADR-1534 (#1534) | Pages: storage

  • Decision: (#1528, under the approved #1265: the compacted tier the architect ruled required on 2026-11-05, its draft ADR Accepted with the 2026-11-05 amendments, recorded on #1265.)

    1. A block is lossless and plain SQL. metric_block (series_id, span_start, span, n, offset_ms int4[], value float8[]), keyed by (series_id, span_start, span) and removed with its series. span is hour, day or week; span_start is its UTC start, an ISO Monday for a week; n is its sample count, held equal to both arrays’ lengths by a check; offset_ms[i] is sample i’s milliseconds after span_start. A week is 604.8M ms, so int4 never overflows, and no span is longer than a week. Samples keep their landing order (ts, then id) inside a block, so duplicate instants (ADR-0061) round-trip. Observed rows carry no lineage (the narrow lane keeps event_id and command_id on metric_declared, ADR-1275), so a block drops nothing. Only observed metric series block: calculated series (as in ADR-1276), properties and declared rows do not. Amended by ADR-1534 (#1534): calculated series block too, each block carrying its one rule lineage, and the key is metric_block_key, unique with NULLS NOT DISTINCT over series, span start, span and the lineage.

    2. The span follows the samples, not the configured cadence. Once a UTC day has closed past the late-data horizon, each observed series’ samples that day decide its span:

      • 4,080 or more (170 an hour on average) cut it into hour blocks;
      • otherwise 170 or more make it one day block. 170 offsets and values are the 2 KB at which Postgres compresses a row;
      • otherwise the day waits for its ISO week, and the week’s waiting days fold into one week block when the week closes. The week block has no minimum and nothing stays raw for good: a series of one sample a week costs 1.20 times its raw row, which is negligible volume, and a minimum would need a third, permanent raw path (#1525).

      A cadence change, an outage, a spool replay or a bursty metric needs no special case: each day is decided by what it holds, so one series can carry hour blocks one week and day or week blocks the next. Every sample is in exactly one block. A week block holds only its week’s days that earned no hour or day block.

    3. The smallest span that qualifies wins. Once a block passes the threshold, a longer span buys little. It costs three things: the raw rows wait longer for it, every late sample rewrites all of it, and a short read decompresses all of it (#1518).

    4. Blocks carry no hourly summaries. metric_trend (ADR-1276) already holds count, minimum, maximum, sum, first and last per series per hour. The 24 h raw cutoff #1518 measured on summary-carrying day blocks is withdrawn: a daily poll in week blocks costs 35.41 bytes a sample against raw’s 103.48 (#1525).

    5. Timestamps are whole milliseconds (#1532). NTP-synced node clocks are accurate only to a few milliseconds; fine timing rides in a value or in the event and log lanes. A raw row and its block agree exactly, with no rounding rule between them.

    6. History is one setting, and its default rises to 30 days. Blocks are lossless, so they are the history, compressed. Operators keep the two windows they have: every observation for retention.metric_days, and the hourly trends for retention.trend_days. Whether a sample sits in a raw row or a block is internal, and how long raw rows live is not a setting. metric_days defaults to 30 (was 14), properties stay at 90 and trends at two years (#1531 moves the default).

    7. Trends are declared on the metric type: on, off or auto (#1531). Auto, the default, trends a series that averages at least one sample an hour. A sparser series gets none, and its blocks are kept for retention.trend_days instead: at 1 h and 24 h a trend adds 122 bytes a sample (14 and 3.4 times the block) and saves under 0.2 ms on a 30-day read the week blocks serve in under 1 ms. The operator overrides it on the type or down the cascade, never a driver: whether a quantity is worth trending is the quantity’s, and a product that needs otherwise defines its own local type. Retention windows stay operator-owned.

    8. One pass, on the trend’s marks. The fold runs in the retention pass after the trend compaction. It folds a day only once the trend’s compacted mark is past the day’s end. By then every hour of the day has been announced and drained under ADR-1276’s lock, so every sample that day has committed or has marked itself late. It folds up to two days a pass, oldest first. Each transaction takes up to 200 series of one day and writes their blocks. In the same transaction it advances metric_block_mark’s blocked_through and its series cursor, so a pass cancelled anywhere leaves no series-day half folded, and the next pass folds from the mark. The week fold has a mark of its own, week_through, which never passes blocked_through. Holding the mark row FOR UPDATE serializes the folds across servers. The first pass starts at the ISO Monday of the oldest day still inside the window.

    9. A late sample marks its day dirty, and the day is rebuilt. An observed sample landing in an announced hour already marks its trend hour dirty (ADR-1276). In the same insert it now marks its series’ UTC day in metric_block_dirty, so ingest stays at 18 statements a batch. A pass rebuilds every dirtied day before blocked_through from its raw rows, up to 50 a transaction under the trend lock taken exclusive. The rebuild replaces the day’s hour and day blocks and, once its week has folded, the week block. A day the late samples carry past 170 leaves the week block for a day block of its own.

    10. Verification is one query. VerifyMetricBlocks unnests every block whose span is still inside its window, pairs each sample with its raw row by landing order, compares the timestamp exactly and the value bit for bit (float8send), and names the blocks that differ. BlockFold.Verify runs it at the end of a pass.

  • Context: #1265 rested on one figure, about 10.4 bytes a sample in hour blocks of SQL arrays, measured once at the 2 s lab cadence. #1516 measured hour blocks, pg_deltax and TimescaleDB on the same seeded series at product cadence. #1518 measured span sizing, and #1522 (PR #1525) the summary-free block at this rule. Bytes a sample after VACUUM, every relation counted:

    cadencespan#1525this slice, through the foldraw
    10 shour7.717.82133.3
    30 sday7.187.18133.2
    60 sday7.257.37133.1
    5 minday7.848.01132.6
    1 hweek8.588.25127.6

    This slice’s column is TestBlockFootprint: one ISO week of #1525’s generated series at its series counts, folded by the product pass. #1525 folded 30 days of them in a staging query. The 1 h figure is lower because this slice’s week is whole, where #1525’s 30 days ended on a partial week whose rows stayed under the threshold. At the fleet estimate on #1265 (about 2.6 billion samples a day), about 7.4 bytes a sample is about 570 GB for 30 days of history, against about 4.9 TB for 14 days of raw rows.

  • The build order, and what this slice leaves to the rest:

    1. This slice (#1528): metric_block, the day and week folds, the dirty-day rebuild and the check. The blocks are written beside the raw rows, which stay authoritative. Nothing reads a block yet, and the raw rows still age out on the history window.
    2. #1529: a late sample merges into the block that covers it, so a day whose raw rows are gone can still take one. Until then, the rebuild reads raw rows.
    3. #1530: the gateway’s series read over raw rows and blocks (raw reads, the current value, calc windows, settlement and backtest). Then sparse days move to metric_pending instead of holding their day partitions, and a day’s raw partition is dropped once it is blocked, which leaves raw rows about two days old at most, and the blocks are pruned to the window.
    4. #1531: the trend setting on the metric type and the 30-day metric_days default.
  • Not chosen:

    • TimescaleDB Community. Its columnstore cost 10 bytes a sample at 10 s to 60 s, worse than a block at this rule. It refuses an already partitioned table (42809), it grows the image by 635 MB, no managed Postgres offers its compressed edition, and its TSL sits beside an AGPL product (#1516).
    • pg_deltax. It refuses a late row into a compressed partition (55000), a restored dump cannot read its compressed partitions, a hot standby cannot read the table, and DROP orphans its companions (#1516).
    • Fixed hour blocks. Below about 170 samples an hour a block never reaches the 2 KB threshold and is stored uncompressed: 15 to 27 bytes a sample at 60 s to 5 min. toast_tuple_target does not move the threshold (#1516).
    • Week or month blocks for everything. Raw rows would wait up to a month at 133 bytes a sample, and late merges and short reads scale with the block. At 1 h a month block was 8% smaller than a week and merged nearly 6 times slower (#1518).
    • A week minimum. See decision 2.
    • Hourly summaries on the block. They duplicated metric_trend, at 2 to 9% of block bytes from 10 s to 60 s and 54 to 70% at 1 h (#1518).
    • Go-encoded Gorilla bytea. Withdrawn 2026-10-27: not worth losing SQL-readable history.
    • Microsecond int8 offsets. About 4 bytes a sample more, for digits a node clock cannot honour.

ADR-1529: A late metric sample merges into the block that covers it

Section titled “ADR-1529: A late metric sample merges into the block that covers it”
  • Date: 2026-11-07 | Status: Accepted | Pages: storage
  • Decision: (#1529, amended by #1546 in decisions 1, 7, 8 and 9, and by #1560 in decisions 7 and 9; amends ADR-1528’s decision 9, the dirtied-day rebuild.)
    1. The covering block. A late observed sample (one landing in an hour the trend compaction has announced, ADR-1276) whose UTC day the day fold has passed for its series, and which is still inside its series’ window, is covered by: the hour block of its hour when the day was cut into hour blocks (a new hour block when its hour had none); else the day’s block; else, once the week fold has passed the series’ ISO week, the week block (a new one when the week had none). A sample of a day the fold has not reached, or of a week the week fold has not, is covered by nothing and lands as a raw row, which the fold reads. “Still inside its series’ window” is blockIntact: the day’s start is inside the window (coalesce(retention_days, retention.metric_days) back from now). It is the one predicate for whether a block covers a sample, and decision 7’s recompute reads it too.

    2. One write a block a batch, from the block. After its raw rows land, the batch merges its late samples in one insert ... on conflict do update grouped by covering block and written in key order. The update unnests the block as it stands and the samples it gains, ordered by offset with the block’s own samples first at an equal instant, then landing order, and writes the block and its n once. It never reads a raw row. Two batches merging into one block queue on its row, and the second merges into what the first committed.

    3. The block lock orders the merge against the folds. The issue proposed the trend lock. The folds never take it, and taking it exclusive in a fold would stall every metric insert for the fold’s transaction. So the merge takes a lock of its own, metric_block:fold, shared, in a statement before the merge. Each fold transaction takes it exclusive after it locks the mark row, and holds it to its commit. The merge’s statement then reads the marks of every fold that committed before it, and no fold commits past those marks before the batch does. A fold that waits for the batch reads its raw rows after it commits. An on-time batch takes no part: it merges nothing and never takes the lock.

    4. The span is not revisited. ADR-1528 decision 9 let a rebuilt day cross 170 samples and leave the week block for a day block of its own. A merged block keeps the span its day was folded at, however many late samples it gains, so a merge touches one block and never moves samples between spans. A day the replays carry across a threshold costs a little compression, not correctness.

    5. The raw row still lands. Until #1530 drops raw days early, raw rows stay authoritative for every reader, so a late sample lands raw and merges. VerifyMetricBlocks still holds each block to its raw rows. Its one known difference is two concurrent batches reporting one series at the same millisecond: they take block order by commit, not by raw id.

    6. Too old is dropped and logged. An observed sample older than its series’ window (its type’s retention_days, else retention.metric_days) is dropped before it lands, with one warning line a series naming its owner, key and instance, how many samples it dropped and the oldest’s age. The rest of the batch lands and is acknowledged. The prune would take such a row at once, and its day’s block is already being pruned.

    7. A dirtied hour recomputes from its block. The trend recompute reads a dirtied hour of a folded day from the block that covers it (decision 1’s choice, read from the blocks that exist), and any other hour from its raw rows, so it is right once #1530 drops the raw rows. It reads a block only where the merge would have written to it: the day passes blockIntact (decision 1), the same SQL predicate in both. The recompute keeps an hour by the hour’s own start, which is later than its day’s, so with the window cutoff inside a folded day a late sample of a still-intact hour is kept, skipped by the merge (the day is no longer intact) and landed raw only. Reading that hour from the day’s block would leave the sample out of a trend row that is kept for trend_days, so such an hour reads its raw rows, which exist until #1530. Each hour reads exactly one source. When #1530 drops raw rows early it must keep this case covered.

      The merge and the recompute run in different transactions, and an operator can widen the window between them (retention_days or retention.metric_days). The recompute then finds the day intact where the merge, which skipped the late sample, found it not, and would read the hour from a block that lacks the sample. So when the merge skips a sample of a folded day it sets metric_trend_dirty.raw_only on the sample’s hour, in the batch’s own statement and transaction, and the recompute reads an raw_only hour from its raw rows whatever the window is by then (TestAWindowWidenedAfterTheMergeLeavesTheLateSampleInItsTrend, on each span). The mark is consumed with the dirty row, so a later sample of the hour needs no clearing. #1530’s raw drop must leave the raw rows of a raw_only hour until its recompute has run, which the dirty mark already orders (the drop is past trend_days of the hour’s close, the recompute is the next pass). The block itself still lacks the sample, so VerifyMetricBlocks still reports it after the window widens, the block holding its raw rows to the window it was folded under; rebuilding a block is #1543.

    8. The rebuild is removed. metric_block_dirty, the rebuild pass and BlockCompaction.Rebuilt go. An on-time batch is unchanged at 18 statements. A batch with a late sample (one landing in an announced hour) adds 3: the settings read, the block lock and the merge. A batch carrying a sample a day old or more adds the window check, and the settings read when nothing else has made it, so 2 alone and 4 when it is also late (the settings read is made once).

    9. A late batch waits for a fold, with no timeout. The batch holds the trend lock shared (the insert read the announced mark under it) while it waits for the block lock. On a multi-server install a fold chunk on one server holds the block lock exclusive, so a batch waiting behind it holds the trend lock shared across the wait; a trend compaction on another server asking for the trend lock exclusive queues behind the batch, and every new insert queues behind that request, until the fold commits or trendDrainTimeout (5 s) fails the compaction. The stall is bounded there, and what it fails is the compaction (the next pass retries it), not the batch. It cannot occur on one server: retentionPass runs the trend fold and the block fold one after the other, so no fold holds the block lock while a compaction waits. The merge sets no lock_timeout (TestMergeLateBlocksSetsNoLockTimeout). The consumer Terms a message after maxTelemetryDeliveries (5) deliveries, each given telemetryAckWait (30 s) to ack, so a batch left unacked is given up on after at most 5 x 30 s = 150 s, not the 15 s the redeliveries alone suggest, and a fold chunk longer than that would drop the batch, its on-time rows included. A redelivery also does harm before then: it spends a delivery, and the stream’s single ack-pending slot (MaxAckPending 1) frees at the redelivery, so another server can land the publisher’s next batch while this one still waits behind the fold, which breaks the order the slot keeps. So the consumer holds the message while the landing runs: landing sends InProgress every telemetryAckWait/3 (10 s), which resets the AckWait without spending a delivery, and stops when the landing returns. A late batch waits for the fold to commit, is delivered once and lands once, and the publisher’s next batch lands after it (TestALateBatchBehindAFoldIsHeldByItsHeartbeat holds the lock past several AckWaits against real Postgres and JetStream; TestLandingBeatsWhileItRunsAndStopsWhenItReturns and TestHandleTelemetryBeatsWhileItLandsOnEachLane hold the beat to an interval inside the AckWait, on both lanes; TestALateBatchWaitsOutAFoldWithoutBeingGivenUp holds the lock for 21 s at the storage layer).

  • Context: #1528 rebuilt a dirtied day from its raw rows, which #1530 is about to drop early. The rebuild ran under the trend lock taken exclusive, which stalled the ingest while it read whole days. A merge costs the batch that carries the late samples, in proportion to the blocks it touches. Measured in TestLateSamplesRewriteTheirBlockOnce, one batch of 120 late samples (40 each into an hour block of 170, a day block of 170 and a week block of 5) writes 34,264 bytes of WAL, 285 a sample, against 30,368 for the same batch landing raw only into a day not yet folded. The merge’s three block rewrites cost 3,896 bytes.
  • Not chosen:
    • The trend lock, as the issue proposed. See decision 3.
    • A lock timeout on the merge. A batch that gave up would be redelivered at most four times and Term’d after 150 s of AckWaits, and each redelivery frees the ack-pending slot early. See decision 9.
    • Merging without the raw row now. Every reader still reads raw rows until #1530.
    • Re-spanning a merged day. It would rewrite a day’s blocks and its week’s block on one sample, which is ADR-1528’s rebuild again.

ADR-1530: A series read takes a folded day from its blocks and the rest from raw rows

Section titled “ADR-1530: A series read takes a folded day from its blocks and the rest from raw rows”
  • Date: 2026-11-08 | Status: Accepted | Pages: storage
  • Decision: (#1572, the first slice of #1530.)
    1. One series read. metricReadSQL is a series’ samples over a range: its raw metric rows unioned with its metric_block rows unnested, each sample with the lineage it was written under (source_rule, source_rule_id, source_rule_version, null for an observed sample). MetricSeriesSamples reads one series through it, ListMetricBuckets computes every bucket at every resolution over it, and ListMetricSeries (the API and CLI raw read) reads it newest first. It is a union of arms, so metric_pending (#1574) is one more arm, and a bucket of closed whole hours can later be served from metric_trend (#1566) beside it.
    2. A day of a lineage is read from one source. A late sample for a folded day lands raw and merges into its block (ADR-1529), so the day holds it twice. The read takes a series-day of one lineage from its blocks when a block of that lineage covers the day, and from its raw rows otherwise. A block covers its own day, an hour or day block, or all seven days of its ISO week, a week block: the week fold takes the days of a lineage no hour or day block holds, and the merge puts a late sample of a folded day into a block of its lineage, starting one when it needs to. So every sample of a covered day is in its blocks, and every sample of a day no block covers is a raw row.
    3. Only an intact day is read from its blocks. The merge writes a late sample into its block only while the day is intact (blockIntact, its start inside the series’ window). A day whose start has slipped past the window’s cutoff took no late sample into its block, so its raw rows hold what the block does not, and the read takes it from them. blockIntact stays the one predicate: the merge, the trend recompute and the read agree about a sample.
    4. Coverage is by the blocks that exist, not the marks. A day the fold has passed may have no block of a lineage yet (a sparse day before its week folds, a calculated sample of a rule version the day never folded), and its raw rows are then the only copy. Reading the blocks that are there needs no mark and no lock, and is right in the middle of a fold, whose transaction writes a day’s blocks with its mark.
    5. Order. Samples come back by ts, then lineage (version nulls first, rule id, rule), then landing order: the raw row’s id, or the sample’s place in its block, which holds one instant’s samples of one lineage in their rows’ id order. One instant’s samples of one lineage are all raw rows or all in one block, so the order is the same before the fold and after. A reader of several series of one instance breaks a tie by series. A bucket’s last (ListMetricBuckets) was the last landed row of the bucket’s newest instant (m.id desc); it is now that instant’s sample of the newest series, then the newest lineage, then the last landed. It differs only where an observed and a calculated series of one instance, or two lineages, share the newest instant.
    6. The raw rows stay. Nothing in this slice drops a raw row. The early drop and the block prune (#1574) rely on decision 2: a covered intact day’s raw rows are then redundant. They must keep decision 3’s day covered: once a covered day’s raw rows are gone, a day past the cutoff has to be read from its block (and from the raw rows of the late samples that did not merge) rather than from raw rows alone.
  • Every reader moves onto the read (#1573, the second slice). No non-test code outside the series read and the folds names the raw metric table now:
    1. The readers. The calc window (readCalcWindow), the calc’s current inputs and output, the event rule’s priming, stale check and streak re-read, the rule preview (an event rule’s backtest replay and a calc preview), settlement’s latest observation, the effective and instance values and the platform pipeline all read through metricReadSQL or metricNewestSQL, and so answer the same before a day folds, after, and with the folded days’ raw rows gone. A check that a series holds a sample at all (metricStoredSQL: the preview’s instances, the held-series and preview-owner checks) counts a block as a raw row, with no window, as a raw row’s existence never had one.
    2. The current value is the raw rows’ newest, unless a block holds a newer sample. ADR-0079’s latest row per series is the series read’s newest sample: the newest raw row, by the per-day index probe as before, and a block sample only where one is newer, read only from blocks that end after the newest raw row (none, while the series is still sampled), or for a series with no raw row from its newest block start back a week. Taking the raw rows alone would read a late sample’s raw row, landed in a folded day whose other raw rows the early drop (#1574) has taken, as the series’ newest, and clear a rule holding on a newer folded sample. metric_pending (#1574) is one more arm of it. Steady state costs one index range probe on metric_block beside the raw probe, and no unnest.
    3. The trend recompute (recomputeDirtyChunk, ADR-1276) reads a dirtied hour through metricReadFromSQL, with blocks switched off for an hour marked raw_only: #1546’s one-source-per-hour rule is the read’s own switch rather than a second copy of the read.
    4. Ties no longer break by raw id. A block keeps one instant’s samples of one lineage in their rows’ id order but no id, so a reader of several series (the calc window, the preview’s window and seeds) breaks a tie at one instant by series, then lineage, then landing order (metricLineageOrder). It differs from the raw id order only where two series or two lineages share an instant.
    5. A folded sample arrives in time order. The backtest replay judges samples in the order they arrived, by raw id, and drops a sample that landed after a newer one as history. The read marks each sample folded when a block gave it, and the replay takes a folded sample as arriving in time order: never history and never making another history. A day’s arrival order is a fact of its raw rows, which the fold does not keep; a replay over a folded day loses only the late-arrival history that was inside it, which the live judge already ruled on when it landed.
    6. A calc write runs at READ COMMITTED. serveCalcMark begins its transaction with trendTxOptions, as every other metric write does: a calc output is a metric insert that takes the trend lock shared and can land in a day the fold or a late merge is writing, so what it reads after the lock must be what committed before the lock was granted, whatever the operator’s default isolation.
    7. The guard. TestNoDirectMetricReads parses every non-test file under internal/ and cmd/ and fails on a string literal that reads metric in a from or a join outside an allowlist, each entry with why: the read’s own raw arms, the folds and the fold’s verify (which read the raw rows to write and check a block), the trend fold of the open hour (no block can cover it yet), the event reconcile’s arrival feed (ruleMarksSQL, ruleCandidatesSQL: an id cursor over the rows inserted, no sample’s value, whose values come from the read), and the test, lab-footprint and compression-bench tools. An entry that no longer reads the table fails the test too. TestDirectMetricReadGuardCatchesAPlantedRead proves it catches a planted read.
    8. What #1574 inherits. The arrival feed’s cursor is the raw id, so the early drop must keep a day’s raw rows until the reconcile’s mark has passed them. A rows-identical test needs a clock that stands still across the fold, so storagetest.StopClock holds the database’s clock at an instant (PinClock still ticks from one).
  • Amendment. #1530’s spec said bucketed reads were unchanged by the block reads. That was wrong: ListMetricBuckets read raw metric rows only, so it would have lost every folded day once the raw rows went. Ruled on #1530 (option A): bucketed reads go through the series read at every resolution; trend-served buckets are #1566.
  • Context: The raw arm drops a covered row with an anti-join against the set of covered (day, lineage) pairs, which the planner hashes once. The week’s days are a list of seven: with generate_series the planner guessed a thousand rows a block and sorted every raw row in range for a merge anti-join, spilling to disk. Measured on one ten-day series at one sample a second (864,000 samples, seven days folded): hourly buckets read in about 1.3 s, most of it the sort that picks each bucket’s last, and the raw arm’s anti-join costs about 0.1 s over the scan. The raw read now reads the window’s samples and keeps the newest limit, where it read newest first and stopped; at the API’s 24-hour default that is one day of samples.
  • Not chosen:
    • Stopping the raw insert of a merged sample. A late sample of a day past the cutoff, of a week the week fold has not reached, or of a day the fold has not reached does not merge and has to land raw anyway, so the read would still need to know which days its blocks cover. The raw table would stop being a complete record while it is still the only copy of every unfolded day, and VerifyMetricBlocks would lose the raw rows it holds a block to.
    • Coverage by the block marks. See decision 4.
    • Per-hour coverage. A lineage’s day is folded at one span, so the day is the unit the blocks cover, and a day key keeps the covered set small.

ADR-1534: Calculated metric series fold into blocks that carry their rule lineage

Section titled “ADR-1534: Calculated metric series fold into blocks that carry their rule lineage”
  • Date: 2026-11-07 | Status: Accepted | Pages: storage

  • Decision: (#1534; amends ADR-1528’s decision 1, under which only observed series blocked.)

    1. Calculated series block, with their lineage. metric_block gains the raw row’s lineage columns, source_rule text, source_rule_id uuid and source_rule_version bigint, null for an observed series’ block and the calc rule’s for a calculated one’s. One block holds one lineage: every sample in it was written by the same rule, under the same name, at the same version.
    2. The key carries the lineage. A span of a calculated series holds a block for each lineage that wrote in it, so the key is (series_id, span_start, span, source_rule_id, source_rule_version, source_rule). A primary key cannot hold the nullable lineage, so the key is the unique constraint metric_block_key with NULLS NOT DISTINCT, under which an observed series’ span still has exactly one block and a fold or merge lands on it by on conflict on constraint. The id tells apart two rules of one name (a rule deleted and created again). The version tells apart a rule before and after an edit, which bumps it. The name is in the key because a rename keeps the version (RenameCalcRule), so the raw rows on either side of a rename carry different lineage at one version, and a block keyed without the name would read one side back under the other’s name.
    3. The count rule applies to each lineage. Each UTC day’s rows of one lineage are counted and folded alone: 4,080 or more make hour blocks, 170 or more a day block, and fewer wait for the ISO week, whose block for that lineage gathers the lineage’s rows of every day of the week where it has no hour or day block. A day a rule was edited in can so hold a day block for the old version and a share of the week block for the new one. An observed series has one lineage, none, and folds exactly as before.
    4. A late calculated sample merges by its lineage. A batch is written by one writer, so it carries one lineage, and the merge (ADR-1529) looks for the covering block of that lineage only: the hour block, else the day block, else the week block, where a calculated sample of a version its day never folded starts the week’s block of its own lineage. A calculated sample landing in an announced hour is now late as an observed one is, so a calc write takes the trend lock shared as an ingest batch does, in the same order. A calc tick dates its output now, so in production a calculated sample is never late; the path serves a recompute or backfill that writes past hours.
    5. The read returns the lineage. MetricBlockSamples unnests a series’ blocks over a range, each sample with its block’s lineage, in timestamp, then lineage, then landing order: exactly the raw rows’ order within a lineage. VerifyMetricBlocks pairs each block with its own lineage’s raw rows, so a sample read back under any lineage but its raw row’s fails the check. A full join cannot match null lineage, so the check numbers the blocks for the pass and joins on that.
    6. Calculated series stay out of the trends. ADR-1276 excluded them with no reason beyond lineage, and “sparse already”, the storage page’s gloss, does not hold for a dense calculated series. Lineage is the reason, and it is recorded here: a trend row is one per series per hour with no place for a rule version, so an hour spanning an edit would fold two rules’ output into one minimum, maximum and sum, and trend nothing that says so. A calc series’ late sample marks no trend hour. Trending calculated series, with or without lineage on the trend row, is for #1531’s trend setting to decide.
  • Context: #1528 folded observed series only. A calculated sample’s raw row costs more than an observed one’s, its lineage on every row, and a dense calc series (a rollup per component at 30 s) is as dense as what it reads. Measured by TestCalculatedBlockFootprint (make footprint): 30 calculated series at 30 s for one ISO week, the rule edited mid-week so each series’ edit day splits into two day blocks, 616,881 samples in 240 blocks:

    Bytes a sample
    blocks, with lineage7.25
    raw rows, with lineage167.10

    The lineage costs a calculated block about 70 bytes with its key, a few hundredths of a byte a sample. An observed block’s three null columns give its row a null bitmap, 8 bytes, which moves TestBlockFootprint by under 2% at every cadence but 5 min: its day blocks of 288 samples sit at the size four rows fill a heap page by, and 8 bytes more costs a page for every few blocks, 8.01 to 8.70 bytes a sample. The test now holds this layout’s figures and logs #1525’s beside them.

  • Not chosen:

    • Lineage on the series. A series outlives its rule’s edits: the edit bumps the version and the series keeps writing, so lineage is a property of the samples, not the series.
    • One block a span, lineage per sample. Three more arrays (or a run-length lineage array) keep one block a span, but the read must then split every block to find a version, and the merge and the check gain a per-sample lineage comparison. Rule edits are rare, so a block a lineage costs an extra row a few times a rule’s life.
    • A surrogate key with the natural key unique. An id column costs every block 8 bytes and its index for nothing a reader uses; the unique constraint is the key.
    • Non-null lineage defaults for observed blocks (an empty name, version 0, the nil uuid). They avoid the null bitmap but cost an observed block 25 bytes against its 8, and put a fake rule on every observed block.

ADR-1562: A location rolls up from its children’s recorded verdicts

Section titled “ADR-1562: A location rolls up from its children’s recorded verdicts”
  • Date: 2026-11-07 | Status: Accepted | Pages: health
  • Decision: (#1562; amends how ADR-0092’s context describes locationVerdict.)
    1. Children, not the subtree. locationVerdict reads one latest recorded verdict for each system placed in the location and each child location under it, each a limit 1 read on its owner index (property_system_owner_idx, property_location_owner_idx), and takes the worst. A child with no recorded row has never been unhealthy and is skipped. Health’s rollup is worst-wins and a child location’s verdict is the worst of its own subtree, so this is the same verdict as the subtree fold it replaces.
    2. Lock first, then bottom-up. recomputeChain locks every location in its chain in id order (the global lock order, #670) before it computes any of them, then records them deepest first (bottomUp), so each location reads children this transaction has already refreshed. A child outside the chain was last written by a transaction that also held this location’s lock, which has committed by the time this one holds it, and the recompute’s statements read committed rows.
    3. No schema change. Both owner indexes and the system.location_id and location.parent_id indexes already existed.
  • Context: #1562, found while measuring the scale lab’s row-by-row seed (#1555). Every write recomputes each location above it, and each of those calls used to walk the location’s whole subtree with a recursive CTE and a distinct on over every subtree system’s whole health series. A campus’s call covers the whole site, so the cost grew with the fleet: at 1,000 systems the rollup ran 4 times per AssignRole at 5.1 ms each, about two thirds of the time to staff the plan. Folding the subtree had been chosen so the recorded verdicts did not depend on the order a recompute visits its locations. The bottom-up order now provides that, and an equivalence test holds every recorded verdict to a full recompute after each kind of write.
  • Consequence: a location’s recorded verdict is correct only while its children’s are, so a new trigger that changes a location’s children has to recompute the chain above them, as every trigger already does. The health reads (SystemHealth, LocationHealth) still compute live from the subtree, so a missed trigger costs an edge in the history, never a wrong report.
Section titled “ADR-1566: A wide bucketed read is whole hours and takes closed hours from the trends”
  • Date: 2026-11-15 | Status: Accepted | Pages: storage, metrics and properties, API
  • Decision: (#1566, amending the coverage floor of ADR-1269.)
    1. The clamp. A metric bucketed read whose window is longer than 48 hours (BucketClampSpan), or reaches past its series’ hot window (the type’s effective retention), has its resolution raised to whole hours: at least one, and a longer one rounded up to the next whole hour (ClampBucketResolution, a pure function). The response’s resolution_seconds is the width applied, not the one asked. The API applies the span rule before it counts buckets, so 30 days at a second is 720 hourly buckets, not a 422; the storage read applies both rules, since only it knows the series’ window. A property read is not clamped: a property has no trend.
    2. Closed hours come from the trends. At whole hours an observed series (trendedSeries) takes each hour from its metric_trend row from the later of the window’s start and the trend window’s edge, up to the earliest of the compacted mark and the first dirty hour inside the hot window. Every other hour comes from the series read (metricReadSQL, ADR-1530): the hours after that point, the open hours, and a partial hour at either edge. Each hour is read from one source, so none is counted twice.
    3. Some series read the samples. A calculated series, an instance with a calculated series beside its observed one, and any resolution finer than an hour or not a whole number of hours read the series read alone. A sparse-auto series and a series with trends turned off have no setting yet (#1531); trendedSeries is the one predicate that setting changes.
    4. Coverage reaches back to the trends. covered_from of a whole-hour read of an instance with a trended series is the later of the grid’s start and the earlier of the samples’ retention edge and the trend window’s edge, so a chart past the hot window draws the trend’s hours rather than empty buckets.
    5. Exactness. count, min, max and last equal the series read’s exactly; avg equals it up to the order its sum was added in (the tests allow a relative 1e-9). A bucket carries no first, so the trend’s first is not read.
  • Context: the bucketed read unnested and sorted every sample of the window, so a 30-day hourly chart of a series at one sample every 30 seconds read 86,400 samples to draw 720 points, about 80 ms over raw rows and 93 ms over folded blocks, four to five seconds for a 50-series dashboard. The hourly trends (ADR-1276) already hold count, min, max, sum, first and last for every closed hour, written once by the compaction and recomputed when a late sample dirties the hour. Measured on the same 50 series, the trend-served read takes about 3.2 ms a series, 185 ms for all fifty, and returns the same buckets.
  • Consequences:
    • A metric chart of more than two days is hourly at best. The console’s charts (a day at five minutes, an hour at a minute) are under the clamp and unchanged.
    • A late sample’s hour reads from the samples from the first dirty hour on until the recompute clears it, then from its recomputed trend. A dirty hour whose day passes the hot window’s floor before the recompute reaches it has no samples left to read, and the recompute skips it, so it is served from its trend as it stood before the late sample. That hour was already the oldest a chart shows and is not otherwise readable.
    • An instance where an observed and a calculated series share an hour reads it from the samples, since placing a trend row’s last against another series’ samples needs the samples. That costs the speed for that instance only.
    • A trend kept longer than the samples now shows on a chart, and covered_from moves back with it.
  • Not chosen:
    • Clamp every read to the hour: a day’s chart at five minutes reads 2,880 samples a series in a few milliseconds; it does not need the trends and would lose its shape.
    • Refuse a fine resolution over a wide window: callers would have to know the threshold; the clamp answers and says what it applied.
    • Serve a dirty hour from its stale trend everywhere: fast, but the read would disagree with the series read until the recompute runs, which the exactness rule does not allow inside the hot window.
    • Store a last per series in the trend to merge mixed instances: a trend row is one series by design; the fallback keeps it so, and a mixed instance is rare.

ADR-1567: The metric roll keeps yesterday, and a retried batch logs its drop once

Section titled “ADR-1567: The metric roll keeps yesterday, and a retried batch logs its drop once”
  • Date: 2026-11-08 | Status: Accepted | Pages: storage
  • Decision: (#1567, amending ADR-1527 point 3.)
    1. The roll keeps yesterday. The server keeps a partition for yesterday, today and the next three days, and refuses unless they cover every instant from the start of yesterday through the end of the third day ahead. A sample stamped a minute before midnight, landing raw a minute after it, finds its day with no routing miss.
    2. The test template is rolled. The harness migrates its template once a binary, and the migration makes only today through three ahead. It now runs the roll on the template before sealing it, so every cloned database carries yesterday too, and a test that plants a row straight into metric an hour back does not fail with 23514 when its binary built the template just after midnight.
    3. A drop logs on commit. A batch that misses a day is made its days and retried whole, and the too-old drop ran (and logged) in each attempt. The write now carries commit hooks: the drop’s warning is queued and logged once, after the transaction commits, and a rolled-back attempt logs nothing.
    4. The drop reads the database clock. The drop’s prefilter compared against the Go clock and the drop itself against the database’s. It reads the database clock for both, as every other storage read of now does.
    5. Behind is a backlog. A day closes for the block fold one trend horizon after it ends, so a midnight closes one day and a pass that folds any day folds it. Behind after a midnight means the fold was already short, most often because its marks were first seeded at the ISO Monday of a week begun five or six days before.
    6. Tests pin the database clock. storagetest.PinClock shadows now(), transaction_timestamp(), statement_timestamp() and clock_timestamp() for one test database through its search path, and storagetest.AtEachMidnight runs a test at the real time and pinned 30 seconds either side of a UTC midnight.
  • Context: main went red when the UTC day turned during a run: a raw insert into yesterday found no partition, a retried batch logged its drop twice, and a retention pass seeded on a Sunday read Behind. No migration was needed: the roll creates the extra day at boot.
  • Not chosen:
    • A migration making yesterday. The roll runs at every boot and every retention pass; a migration runs once and would leave a server booted on a later day short again.
    • Retrying a raw insert in the tests. It would hide the routing miss rather than remove it, and the gateway’s own retry is already tested.
    • Faking the Go clock. The storage layer reads the database’s clock, so a Go-side fake would pin nothing the writes read.

ADR-1577: A node’s worklist is compressed, served by a bounded responder, and retried without exiting

Section titled “ADR-1577: A node’s worklist is compressed, served by a bounded responder, and retried without exiting”
  • Date: 2026-11-08 | Status: Accepted; the first-pull heartbeat amended by ADR-1882 | Pages: nodes, messaging, scaling
  • Decision: (the architect’s option 1, narrowed: the 1,000-system lab is reached with tunes, so this is tunes, not a rebuild.)
    1. The node never exits on a pull. The first pull and every later one retry with jittered exponential backoff, 1 s doubling to a 30 s cap (each wait drawn from the upper half of its step). A failed pull keeps the last good worklist and is logged at WARN with its attempt and wait; the server counts how each pull ended. The node heartbeats only once it holds a worklist, so a node still waiting for its first one reads as not up. The pull runs on its own goroutine and interval (node run --worklist-every, default 30 s, each wait jittered within 10%), apart from the heartbeat, so a short heartbeat is not a worklist rebuild as often. A transient storage error fails the whole pull, never single tasks: the server answers with the reason and no body, and the node keeps every task and session it has (a dropped task would make the session reconcile tear down a live session).
    2. The reply is compressed. A reply past 64 KB is gzipped and marked Content-Encoding: gzip, and the node inflates on that header (capped at 256 MB inflated). bus.DefaultMaxPayload stays explicit at 1 MB. A reply still over it, compressed, is refused to the node by name and logged at ERROR; a failed Respond is logged and counted. HQ at 1,000 systems is 3,273,096 B raw and about 463 KB on the wire.
    3. A bounded responder. Pulls are served by a pool of bus.Config.WorklistWorkers workers (default 8), held under the database pool’s size less one connection kept for ingest. The node states its budget in an Omniglass-Timeout header (a duration, so clocks need not agree); the server’s deadline for a pull is its arrival plus that budget. A pull that waited past its deadline is dropped unread, and one whose deadline passes while its worklist is read is abandoned unsent, each logged and counted.
    4. Deferred to their own tickets. Paging and the normalized wire (per-endpoint grouping, driver and spec dictionaries) are #1583, conditional on HQ at 3,000 systems still being over 512 KB gzipped. The set-based secret, pin and rejection reads that take NodeWorklist from about 1,106 statements to a flat handful are #1581. An “unchanged” answer from a generation over the worklist’s full input closure is #1584.
    5. Target: (c), the materialized worklist (#1586), built when one of its triggers holds: a second server (HA), a change that must reach its node in under a second, or more than one worklist-affecting change a second fleet-wide. Its precondition is #1250 (secrets decrypted on use), since a materialized worklist holds the node’s secrets at rest in JetStream.
    6. Rejected: raising max_payload (it moves the ceiling and does not remove it), and a node that watches the bucket itself (it needs JetStream API grants on the node credential). Compressing the reply, rejected in the proposal, is accepted (point 2).
  • Divergences from the decision as written.
    • One subscription and a queue, not a NATS queue group. The pool is one subscription that stamps each pull’s arrival and hands it, without blocking, to a bounded queue (256 deep) that the workers drain; a pull that finds the queue full is refused as busy, so its node backs off. A queue group would leave the arrival time to each worker’s callback, after the pull had already waited in the subscription’s pending buffer, so the deadline would be counted late; and a queue group’s members each run their callbacks serially, so a pull assigned behind HQ’s waits out HQ’s build while another member sits idle. One server holds the subscription, as before, so the control-plane consumers stay singletons by construction (scaling).
    • A zero interval pulls at the heartbeat’s. node.Config.WorklistEvery left at zero pulls as often as the node heartbeats, the behavior before this decision, as a zero ProbeEvery probes on every tick. node run always sets it (default 30 s). The lab’s cadence pulls every 5 s (its heartbeat is 2 s), and a walkthrough’s every 2 s.
  • Measured after (2026-11-08, the worker, 12 cores). make scale-lab SYSTEMS=1000: all 18 sites up (every node pulled and heartbeated) 199 s after the command, against 17 of 18 after 10 minutes before, and no node container restarted. 18 nodes pulling the 1,000-system corporate fleet at once over the real bus, with the default pool (8 workers on that host; the test sizes it from the database pool, as the server does) (TestAFleetOfNodesPullingAtOnceIsServedByTheBoundedResponder, a fresh test database): every pull served, none expired, in 1.64 to 1.72 s. The test asserts the outcome (every pull served, none expired), not the time; the figure is a measurement on that host. It is over the 1.4 s target, and the floor is HQ’s own build (about 1.2 s, on one worker) rather than the queue (the 17 others’ builds share the other seven workers), so the set-based reads (#1578, #1581) are what take it under.
  • The proposal, as weighed (kept for the record; the decision above narrows it).
  • Context: #1577, found by the scale lab at 1,000 systems (#1571): the headquarters node (806 endpoints, 4,434 tasks) never gets its worklist and crash-loops.
  • The bus before #1577, from the code. One embedded nats-server (v2.15.2) runs in the server process with JetStream on; JetStream carries only the telemetry stream (OG_TELEMETRY) and its durable consumer, and no key-value bucket exists yet (#529). The worklist is core NATS request-reply. The node calls nc.Request(og.v1.worklist.<node>, nil, 5s) (internal/node/run.go, worklistTimeout). The server holds one plain subscription on og.v1.worklist.* (internal/bus/server.go), and nats.go runs one subscription’s callbacks one at a time on one goroutine, so every node’s pull waits behind every pull before it. The callback checks the reply inbox, calls NodeWorklist with context.Background() (so a pull the node gave up on is computed in full), marshals the reply to JSON and calls msg.Respond, discarding its error. NodeWorklist (internal/storage/nodes.go) is a series of separate statements on the pool, not one transaction, so one pull can see two instants. The node pulls once at start and re-pulls the whole worklist every heartbeat tick (30 s by default; the scale lab runs --heartbeat 2s). A failed first pull ends node run (Docker restarts it with growing backoff); a failed tick pull keeps the last worklist and is not logged. config_generation rides the reply, and the node does not gate on it. og.v1.worklist-changed.<node> is reserved and already in the node’s subscribe grant, and nothing publishes on it.
  • What the lab shows (measured 2026-11-08 against a running 1,000-system lab on the worker, 12 CPUs, main’s storage code, without #1571’s statement fix):
    • The headquarters reply cannot be delivered at any speed. The server advertises max_payload 1,048,576 bytes, its default (server.Options sets no MaxPayload). Headquarters’ reply marshals to 3,273,096 bytes, and nats.go refuses to publish a message over the limit, so Respond fails, the failure is discarded, and the node can only time out. A regional node’s reply is 1,012,575 bytes before its pins are learned and 1,069,588 bytes after: its first pull fits, and every re-pull after the first ticks is dropped the same way, so the six regional nodes silently stop seeing configuration changes. A branch is 343,003 bytes. Of headquarters’ bytes, task specs are 1,130,222, endpoint params 169,554, ladders 265,079, sessions 169,286 and secrets 151,866, each repeated for every task of an endpoint. Gzip brings headquarters to 462,967 bytes.
    • Compute: NodeWorklist took 1.24 s for headquarters and 0.33 to 0.44 s per regional with the lab running. All 18 nodes in series took 5.12 s (17,450 tasks, about 0.29 ms a task). In parallel: 2.20 s with a bound of 4, 1.30 s with 8, and 1.91 s with 18 (the database is the limit past about 8). On an idle database with #1571’s fix, headquarters takes 0.43 s and all 18 in series 1.26 s (#1571’s figures).
    • Load: with the 17 other nodes pulling every 2 s, the serial responder is offered 5.1 s of work every 2 s, 2.5 times what it can serve, so a pull waits behind a backlog even when its reply would fit. The server ran at 209% CPU and the database at 361% (ingest included).
  • (a) Concurrent pull, bounded, deadline-honored, retried.
    • Wait at a fleet-wide start: a node waits about the sum of all nodes’ compute divided by the bound. At 18 nodes, 1.3 s under load (measured), so no node’s first pull times out. At 100 nodes of the same mix (about 97,000 tasks), about 28 s in series and about 7 s with a bound of 8 under load (about 1.8 s idle with #1571’s fix): the later nodes miss a 5 s pull and get it on a retry. The wait still grows with the fleet, more slowly. On its own it does not bring headquarters up: the reply is still over the payload limit.
    • Server CPU: the same total as today, spread over cores. The standing cost stays: every node recomputes its whole worklist every tick. At the 30 s default that is about 17% of a core at 18 nodes and about 93% at 100, most of it database time, whether or not anything changed.
    • Server restart: nodes reconnect (unlimited, 2 s apart, jittered) and run their last worklist meanwhile; their next pulls arrive together and the bound queues them. Node reconnect: the node pulls on its next tick, at its own compute cost.
    • Consistency: as today: a pull’s statements can see a write half-done, and the next pull corrects it.
    • Operations: nothing new to run.
    • Migration: small. A worker pool on the responder, the node’s budget in a request header (a duration, so clocks need not agree) turned into the context deadline NodeWorklist already takes, an abandoned pull dropped before it starts, a retry loop with jittered backoff around the node’s first pull, and the two silent failures logged. No schema change.
  • (b) Paged worklists.
    • Wait at a fleet-wide start: each page is a separate, short request with its own timeout, so no reply is slow or oversize. Headquarters becomes about 7 pages at a 512 KB budget. Total compute is the same as (a) plus a few fixed statements a page (a few percent for headquarters). With (a)‘s bound, the waits are (a)‘s; with no bound, (b) alone keeps the serial queue.
    • Server CPU: the same as (a), including the per-tick standing cost.
    • Restart and reconnect: as (a). A node that loses its connection mid-pull retries the page it was on, from its cursor.
    • Consistency: each page is read in one snapshot, and an endpoint never splits across pages, so every endpoint arrives whole and self-consistent (the gate, the session and the fingerprint are all per endpoint). Pages are keyed by endpoint id, so an endpoint added behind the cursor mid-pull waits for the next pull, and one moved between nodes can sit on neither or both for one tick, which two nodes pulling at different times already allow.
    • Operations: nothing new to run.
    • Migration: medium, and the only option here that lifts the payload ceiling for good: a cursor and a byte budget on the request, the next cursor on the reply, keyset paging in NodeWorklist, and assembly on the node. No schema change.
  • (c) A materialized worklist, pushed on change.
    • Wait at a fleet-wide start: a pull reads the node’s pages from the bucket, a file-store read of tens of milliseconds for headquarters’ 3.3 MB, and no database work, so the wait is the same at 18 nodes and at 100. This is the only option where it does not grow with the fleet.
    • Server CPU: paid when configuration changes, once per marked node (1.24 s for headquarters), not on every tick. Pins and rejections land from telemetry and mark their node, so marks are coalesced per node per tick. A reconcile pass re-materializes every node on a slow interval (for example every 5 minutes: about 2% of a core at 18 nodes and about 9% at 100, under load) as the backstop for a missed mark.
    • Server restart: the bucket lives in the JetStream store, so it survives a restart when the store dir is persistent (the lab mounts one). With an ephemeral store, the boot re-materializes every node in the background (about 5 s at 18 nodes, about 28 s at 100 under load), and a node that starts in that window waits for its pages without failing. Node reconnect: one bucket read, or “unchanged” when it names its current revision.
    • Consistency: each node is materialized in one snapshot, better than today. A write during materialization marks the node again, so another pass follows. With a second server, marks drain as the calc marks do (ADR-0148), and the bucket write checks the revision it read.
    • Operations: no extra service: the bucket is in the embedded JetStream the server already runs, about 14 MB at 1,000 systems with one revision kept. A key-value value is a message, so it is held to max_payload too, and the bucket stores (b)‘s pages.
    • Delivery: if the node watched its key itself, its credential would need JetStream API grants (a filtered consumer create, stream info, message fetch), widening the per-node permission set the confused-deputy guard protects. Instead, the server answers the pull from the bucket and nudges on worklist-changed, which the node already may subscribe to, so the node’s grant does not change.
    • Migration: large. A schema migration for the marks; a mark written in every write path that feeds a worklist (tasks, endpoints and their placement, drivers, secrets down the cascade, where a location-level secret marks every node under it, the property lane for pins and rejections, and platform settings, about 15 storage files); the materializer tick; the bucket; the nudge; the reconcile; and revision handling on the node. Two or three PRs, and a missed mark is silent staleness, so the reconcile is not optional.
  • Why tunes, not the rebuild: the proposal held (b) necessary because the payload ceiling stopped HQ before any timing question. Gzip brings HQ at 1,000 systems to about 463 KB, under half the limit, so the ceiling is not reached at this size and paging waits on the 3,000-system measurement (#1583). (a) is needed in every design and is built. (c) remains the only option whose start-up wait does not grow with the fleet, and its cost (a mark in every writer that feeds a worklist, and secrets at rest) is paid when one of its triggers makes it worth paying.

ADR-1583: A node’s worklist travels grouped by endpoint

Section titled “ADR-1583: A node’s worklist travels grouped by endpoint”
  • Date: 2026-11-13 | Status: Accepted | Pages: nodes

  • Decision: (#1583; amends ADR-1577, item 4.)

    1. The reply is grouped by endpoint. Its endpoints list carries each endpoint’s fields (its name, transport, params, ladder, learned pin, last rejection, fingerprint, component and path upstreams) once, and under each the tasks that run over it: an id, a mode, and an index into each of three dictionaries the reply carries once, specs, sessions and secrets. Index 0 is none (a probe has no session block). A task naming an entry the reply does not carry fails the whole pull, never one task. Tasks of one endpoint that disagree on an endpoint field get a group each, so the wire never drops a difference.
    2. The node reads the same tasks. The grouping is the JSON form of collection.WorklistReply itself, so the server and the node share one Go type and the node’s dispatcher, session reconcile and gates see the flat task list they did before, in id order.
    3. The server fingerprints an endpoint once. Every input of a fingerprint is the endpoint’s, so NodeWorklist computes one per endpoint, not one per task.
    4. No paging. ADR-1577 left paging conditional on headquarters at 3,000 systems still being over 512 KB gzipped; grouped, it is under.
  • Measured (2026-11-13, the corporate plan seeded on a fresh database, every https endpoint’s pin learned, as on the soak):

    Headquarters nodeTasksFlat rawFlat gzippedGrouped rawGrouped gzipped
    1,000 systems4,4363,446,419 B575,058 B761,222 B233,385 B
    3,000 systems8,8506,875,172 B1,172,107 B1,508,216 B463,378 B

    The flat 3,000 figure matches the soak’s headquarters reply to the byte (#1872), which was over the bus’s 1 MB limit.

  • Divergence from the ticket: #1583 asked for the wire’s schema to be generated. There is no generator for collection types, and the wire has one producer and one consumer compiled from the same type, so the Go type is the single source; a generated schema would describe a contract no third party reads.

  • Consequences: a node built after this change refuses a reply with no endpoints list (a flat reply from an older server), so the pull fails and the node keeps its last worklist. A node built before it reads a newer server’s reply as no tasks and drops its sessions; server and node ship as one binary and upgrade together, and with no deployment outside dev and the lab, no versioned subject or compatibility path is kept. The learned pin and the last rejection now cost their bytes once per endpoint rather than once per task, so a node learning its pins grows its reply by about 31 KB at headquarters, not 343 KB.

  • Not chosen:

    • Paging. It lifts the ceiling for good, at the cost of a cursor, a byte budget and node-side assembly; at 463 KB against 1 MB it buys nothing yet, and stays the move if a larger site crosses 512 KB.
    • A binary encoding. Gzip over the grouped JSON already removes most of the repetition, and a new codec is a dependency on both ends for the rest.
    • Grouping only, no dictionaries. The task specs, session blocks and credentials of one driver repeat across every endpoint it runs on; they were the largest share of the flat reply.

ADR-1586: A node syncs its worklist endpoint by endpoint, against a manifest

Section titled “ADR-1586: A node syncs its worklist endpoint by endpoint, against a manifest”
  • Date: 2026-11-14 | Status: Accepted | Pages: nodes, messaging, scaling
  • Decision: (#1586; amends ADR-1577, item 5. Recorded before it is built.)
    1. The node pulls a manifest first. The manifest carries the node’s config_generation as the reply does today, a set digest, and, for each endpoint the node runs, its id and a content digest (sha256): a digest over everything the node receives for that endpoint (its fields, its tasks, and the spec, session and secret entries those tasks name), taking each secret by its sealed version, never its plaintext, so a manifest decrypts nothing. The set digest covers the sorted ids and content digests and the reply-wide fields (the report window). The content digest is not the connection fingerprint (ADR-0158), though it takes secrets the same way: that one gates a connection and ignores the tasks, this one says whether the node’s copy is current.
    2. Two values, two jobs. The pull names both values the node holds. The generation stays the ordered value the two-phase move reads (“a generation at or past the clear”, on the nodes page); a digest has no order, so it cannot confirm a move. The set digest is what says unchanged, since a change that moves no endpoint’s updated_at (a rotated secret, an edited spec) still moves it.
    3. Unchanged is one header. A set digest that matches is answered unchanged with no body, and the node keeps everything. This is the steady state, so an idle fleet’s pull costs a few hundred bytes on the wire and no decrypt. The server still reads and digests the worklist to answer it; skipping that read is #1584’s input-closure generation.
    4. Then only what changed, in batches capped by bytes. The node compares the manifest with what it holds and asks by id for the endpoints whose digest differs or that it lacks. The server answers whole endpoints, in the order asked, until the batch reaches max_payload before compression (gzip has held a grouped reply to about a third of that), grouped as ADR-1583 groups them, each batch carrying the dictionary entries its endpoints name; if the compressed batch is still over the limit it halves the batch. The node asks again for the rest. A batch is never cut by a count of tasks or endpoints, since one https endpoint and one many-task SNMP endpoint differ tenfold in bytes.
    5. An endpoint too large rides alone, and is refused only past the limit. An endpoint over the batch budget is sent in a batch of its own; only an endpoint whose own batch is over max_payload compressed is refused, by id. The node keeps that endpoint’s last copy and every other endpoint still syncs, so the failure narrows from the whole site to one device.
    6. The node applies a set, not a snapshot. Each served endpoint is self-contained (its fields, its tasks, and its own dictionary entries), so the node keeps every copy it is served with the digest it was served at, even one that has moved past the manifest it started from. When it holds a copy of every endpoint the manifest lists, it applies the set in one step, dropping the endpoints the manifest no longer lists, and from then on names that manifest’s generation and set digest. A fleet that changed mid-sync is caught by the next manifest, never by a restart, so a busy fleet cannot keep a sync from finishing. The generation it names is never ahead of the endpoints it holds, so a move is never confirmed early. Until a set applies the node runs its last worklist, the invariant ADR-1577 set for a failed pull, so a sync cut short never tears down a session.
    7. The wire keeps its subject. Both requests ride og.v1.worklist.<node>, so a node’s credential gains no grant; one request header says which part is asked for (the manifest, or a batch whose body lists the ids). bus-worklist-pull-count counts each request, gains an unchanged outcome, and counts a refused endpoint’s batch as oversize, now one device’s request rather than the node’s whole pull; unchanged is not a loss.
    8. Any server answers any request. The manifest and every batch are computed from the database on request, so a second server answers a node’s next request with no handover.
    9. A key-value cache, if one comes, is keyed per endpoint. A materialized cache is an optimisation behind the same requests, one entry per endpoint (<node>.<endpoint>), each far under the limit. It would hold resolved secrets at rest, so it, and only it, waits on #1250. The change nudge on og.v1.worklist-changed.<node> stays a separate trigger (#1945: a change that must reach its node in under a second).
  • Measured (2026-11-14): on the 3,000-system corporate soak (read-only) the headquarters node runs 1,609 endpoints. A manifest entry is a 36-byte id and a 64-character sha256 digest; a synthetic manifest of 1,609 such entries is 196,358 B raw and 100,424 B gzipped (hex digests compress poorly), about 62 B an entry, so a manifest reaches the 1 MB limit at about 16,800 endpoints on one node, ten times headquarters. Past that the manifest is the next ceiling (it would page by id range), which this decision does not build. ADR-1583 measured headquarters’ grouped reply on its 3,000-system seed at 1,508,216 B raw and 463,378 B gzipped, so a cold start there is the manifest and two or three batches (each repeats the dictionary entries it names).
  • Divergence from ADR-1577: item 5 named the materialized worklist as the target, gated on #1250: the server writes (b)‘s pages into a per-node bucket when the worklist changes, so a pull does no database work and its wait does not grow with the fleet. That lifts the 1 MB ceiling too, but it needs every writer that can change a node’s worklist to mark it, a reconcile for a missed mark, and resolved secrets at rest. This decision lifts the ceiling with no new state on the server, and the bucket becomes the optional per-endpoint cache of item 9. The price is the one ADR-1577’s target avoided: until #1584 a steady-state pull still reads and digests on the server, though it sends and decrypts nothing.
  • Consequences: a pull becomes two or more requests on a change (the manifest, then batches), and one on no change. The node changes how it holds its worklist: today it flattens the grouped reply into one id-sorted task list and keeps only that; it will keep each endpoint’s group as served, keyed by endpoint id with its digest, and derive the task list when a set applies. The grouping becomes exactly one group per endpoint id (today one endpoint can split into several groups). The node and the server change their pull together, and with no deployment outside dev and the lab no compatibility path is kept for the one-reply pull. #1586 is rewritten to this shape; #1584 makes item 3 skip the read; #1581 makes the batch reads cheap.
  • Not chosen:
    • The per-node bucket (ADR-1577, item 5), as the first step. It lifts the ceiling and takes the read off the pull, but only with marks in every writer, a reconcile and secrets at rest (#1250); the sync needs none of them, and a per-endpoint cache can still sit behind it.
    • Paging the one reply. A cursor over the reply lifts the cap, but every pull still sends the whole worklist, page by page, changed or not, and the node assembles pages that may straddle a change.
    • A pull per component or per endpoint. No reply grows, but a cold headquarters start is 1,609 requests, each a database read, where the sync needs three or four.
    • Raising max_payload. Rejected in ADR-1577 and still: it moves the ceiling.

ADR-1592: A probe’s state is a transition-only property, not a metric row

Section titled “ADR-1592: A probe’s state is a transition-only property, not a metric row”
  • Date: 2026-11-08 | Status: Accepted | Pages: properties, collection, nodes, scaling
  • Decision:
    1. The probe states are properties. icmp-reachable and tcp-open leave the metric_type catalog for the property_type catalog, data_type: string with a closed enum each (up/down, open/closed). The node emits them as text samples, ingest routes them down the property lane by registry membership, and the lane’s transition-only guard drops every observation that equals the stored latest. A steady fleet writes each state once.
    2. The probe timings stay metrics. icmp-rtt-avg and tcp-connect-time are numbers an operator trends, so they land every tick as before. A probe still produces two samples; one changed lanes.
    3. Readers read the word. The endpoint verdict, the reachability panel and the node’s request-layer rungs (udp, snmp) carry the state as a string; the API’s reachability value field is a string, not a number. There is no numeric shadow of the state anywhere.
    4. Liveness is untouched. endpoint_live.last_seen_at is stamped by the ingest consumer after every landed batch whether or not the property guard wrote a row, so a steady “up” that writes nothing still proves the endpoint was seen. The storage test asserts this directly.
    5. No node-side guard. The node sends every observation; the server-side guard inside the insert is the one place a repeat is dropped. A node that remembered its last state would have to persist it across restarts and reconcile it with the server, for no saving on the wire that matters at this cadence.
  • Divergences and follow-ups: the property lane still costs an advisory lock and a guarded insert per sample, so the standard mix’s one-batch statement budget rose from 18 to 22 with the two new properties; landing the property lane in one statement, as #1274 did the metric lane, is #1593. camera-preset, a numeric name that belongs in the same lane, is #1594.
  • Measured basis (#1591, corporate shape, 1,000 systems): the metric lane landed 75,914 rows a minute (about 109 M a day, 11.84 GiB a day at about 116 B a row, 30.76 GiB of WAL a day), and icmp-reachable plus tcp-open were about half of those rows. Every one of them restated the previous one on a healthy fleet.
  • Context: the probe’s reachable result is the most-written datum in the platform and the least useful to an operator as a series: nobody asks how often a ping succeeded, they ask whether the endpoint is healthy and when it last flipped. Reach is a platform-level fact (can the node see the device) that the health roll-up and the liveness stamp already consume; storing it as a property keeps the flip history and discards the repetition.
  • Rejected: keeping the states as metrics and deduplicating at the metric lane (a change-only metric is a property by another name, and would fork the lane rule); encoding the states as 0/1 text (a word reads as itself in the console, a log line and jq, a digit needs a legend); a node-side last-state cache (point 5).

ADR-1602: The issue forms emit the dispatcher’s ticket contract, and tier and risk join the label set

Section titled “ADR-1602: The issue forms emit the dispatcher’s ticket contract, and tier and risk join the label set”
  • Date: 2026-11-09 | Status: Accepted | Pages: labels and the board, autopilot
  • Decision:
    1. One ticket shape, the dispatcher’s. The bug, feature, chore, docs and spike forms each render the same five required textareas, headed exactly as the dispatcher’s lint matches them: ### Goal, ### Spec, ### Acceptance criteria (a checkbox list, seeded with the failing-test line), ### Out of scope, ### Files likely touched. The house questions the old forms asked as their own fields (surfaces, how it is tested, the thin cut and what it defers, permission and scope, the timebox, the learning surface) become the descriptions and placeholders of those five sections, so nothing the forms used to ask is lost and a form-filed ticket passes the lint as filed.
    2. The forms set the Issue Type. Each form carries the top-level type: key (Bug, Feature, Task; Epic on the epic form) and drops its old labels: line, which named labels the repository does not have (bug, feature, chore, docs, spike) and so applied nothing. The epic form keeps labels: ["epic"]: that is the label the dispatcher refuses, by design, so an epic is never launched.
    3. Tier and risk are labels, applied from the form. tier:{jr,mid,sr} and risk:{low,high} join area:* as describing families (the dispatcher reads them: the starting rung, and whether the review is a high-risk one). Every form has a Tier and a Risk dropdown; because a GitHub issue form cannot apply a label from a dropdown, the answer renders into the body under ### Tier and ### Risk, and ticket-labels.yml runs scripts/ticket-labels.sh on every issue open and edit to make the labels match, removing a stale sibling of the same family. The script is pure over gh issue view --json body,labels and is unit-tested under go test ./scripts/; an issue without the two sections is left alone, so hand-filed and agent-filed tickets carry the labels directly.
    4. The backlog is rewritten, not grandfathered. The open tickets filed before the contract do not pass its lint, so the same pass that adopts it triages every open ticket (keep, kill, combine) and rewrites each kept one into the five sections with its tier and risk; kills and combines are staged for the architect, body rewrites are reversible through the edit history.
  • Divergences and follow-ups: none to a page’s design; the labels page said the taxonomy was two families and now says three. The dispatcher’s own repo installer that would place these forms is not wired yet; the forms are hand-maintained here until it is.
  • Context: the dispatcher launches an agent session on a ticket only when the ticket alone is enough to work from, and it checks that mechanically before launch: the five sections present and non-empty, at least one checkbox criterion, exactly one tier and one risk label, no epic label. The forms predated that check and asked good questions under different headings, so every form-filed ticket failed it and every dispatch needed a hand rewrite first. Making the forms emit the contract moves the rewrite to filing time, where the filer knows the answers.
  • Rejected: a label-free contract (tier and risk inside the body): the dispatcher queries by label, and a body field cannot be filtered in the issue list. Adding the labels through the form’s labels: key: a form can only apply a fixed label list, not a dropdown answer. Keeping the old house headings and teaching the lint to accept both: two shapes for one fact, and the lint belongs to the dispatcher, which serves more than one repository.

ADR-1606: A late reply settles its command but never overwrites a newer observation

Section titled “ADR-1606: A late reply settles its command but never overwrites a newer observation”
  • Date: 2026-11-15 | Status: Accepted | Pages: commands
  • Decision: (#1606, amending ADR-0141’s recording of the reply.) A reply read through a from: response binding is evidence for the command and is always judged against its intent. It is also recorded as an observation of a property target only when the target’s latest observation is not newer than the command’s first delivery to a node (command.first_dispatched_at), the earliest moment an exchange that could have produced the reply began. A redelivery advances dispatched_at but the report of an earlier delivery’s exchange is still accepted, so the last take would let a push made between the two be overwritten. A newer observation holds the device’s later state, so the reply, however late it reaches the server, leaves it as the latest read; the command still settles or fails on the reply. The existing rules stand: the value is held to the property’s validation, and it is written only when it differs from the latest observed value.
  • Context: The reply was written at the database’s now and compared to the latest observed value by equality alone, so a reply older than the latest observation still became the newest row. Seen while fixing #1176: set-input hdmi3 to a udp panel whose exchange retried through 30 % loss; the panel pushed hdmi3, then dp1, and the retried reply (INPUT hdmi3) settled the command and wrote hdmi3 over dp1, so the console showed an input the panel no longer had until the next poll.
  • Alternatives: Stamping the reply with the time the node completed the exchange (the execution report would carry a node timestamp, as polled observations carry their sample time) keeps the reply as history, but the report has no such field, the node’s clock is not the database’s (ADR-0108), and a reply row behind a newer push is a state the device had only between two of its own writes. Leaving it for the next poll keeps a wrong value in the store for up to a poll interval.
  • Consequences: The observation’s time is the one it carries, a node’s sample time for a poll and the database’s for a push, compared to the database’s first delivery time. A node clock ahead of the database’s can withhold a reply observation, which the next poll restores; one behind it leaves the earlier behavior, so the change is never wrong, only sometimes late (ADR-0141). Observation-settled commands are unaffected.

ADR-1619: The console’s API client is generated by orval, behind the path-keyed client it already called

Section titled “ADR-1619: The console’s API client is generated by orval, behind the path-keyed client it already called”
  • Date: 2026-11-09 | Status: Accepted | Pages: API first, UI and the design system
  • Decision:
    1. orval generates the console’s API layer. npm run gen:api runs orval (client: "fetch", one file, prettier off) over the same committed api/openapi.json, writing web/src/api/api.gen.ts: every schema as a TypeScript type alias (not an interface, so a body still widens to a generic record) and one typed function per operation. Each function sends through ogFetch in web/src/api/client.ts (orval’s mutator), so a generated call shares the console’s base URL, session cookie, bearer token and 401 bounce. gen:settings-schema still chains after it, unchanged.
    2. A generated route index keeps the call sites. web/scripts/gen-api-paths.mjs reads the same spec and writes web/src/api/paths.gen.ts: for each route and method, the path params, query, body, whether the body is required, and the success and error bodies, each taken from the matching orval function’s signature and response types so the index cannot disagree with it. client.ts types api.GET/PUT/POST/DELETE/PATCH(route, { params: { path, query }, body }) off that index and resolves to { data, error, response }, the shape openapi-fetch gave every call site. The data layer (web/src/lib/*.ts) changes only its type imports: components["schemas"]["X"] from schema.gen becomes X from api.gen. client.test.ts pins both the request the client builds and, with @ts-expect-error, the compile-time refusals (unknown route, missing or wrong path param, missing body or body field, unknown query param).
    3. TypeScript moves to 7. With the old generator gone nothing in the console’s dependency tree pins TypeScript 5 or 6 on a path that runs, so typescript is ^7 with no --legacy-peer-deps and no overrides.
    4. Amends ADR-0041. Its “typed SPA client” whose values is a Settings struct is now orval’s Settings type in api.gen.ts; settings.schema.gen.ts and its generator are unchanged.
  • Divergences and follow-ups: the orval CLI package depends on its zod and hono generators, which carry a nested typescript@6 in the lockfile. The fetch client never loads it (generation was verified with every TypeScript copy moved out of node_modules); it is an install-size cost, not a runtime dependency. orval drops header parameters, and the spec’s only one is logout’s Cookie, which the browser sends itself. Two page tests (Standards, SystemZoom) asserted on the microtask a request landed in, which openapi-fetch’s awaited middleware happened to delay; they now wait for the outcome, and each still fails if its guard is removed.
  • Context: openapi-typescript and openapi-fetch are in maintenance mode, and openapi-typescript calls the TypeScript compiler API at generation time, so its peer range (typescript ^5) blocked the TypeScript 7 bump (Dependabot #1465). The choice was weighed on five criteria: active maintenance, TypeScript 7 with no runtime dependency on the compiler API, a typed fetch client, deterministic output (make gen-drift diffs it exactly), and the size of the call-site change. orval meets all five: actively released, emits source by string templates, has a fetch client with a custom transport, and with prettier off its output depends only on the spec and its version (two runs produce identical files).
  • Rejected: @hey-api/openapi-ts: actively maintained with a good fetch client, but it builds its output with ts.factory from the installed typescript and fails under TypeScript 7, whose package no longer exposes the compiler API. swagger-typescript-api: depends directly on typescript ^6. Kubb: also builds through the TypeScript factory. Staying on openapi-typescript with an overrides pin: the issue forbids it, and it keeps a maintenance-mode generator on the critical path. Hand-editing every call site onto orval’s per-operation functions: 331 edits for no gain in type safety, where one generated index and one façade in client.ts keep every call site as it was.

ADR-1625: A node reports itself on its platform component, and platform keys take no prefix

Section titled “ADR-1625: A node reports itself on its platform component, and platform keys take no prefix”
  • Date: 2026-11-09 | Status: Accepted | Pages: collection, nodes, metrics and properties, glossary, storage
  • Decision:
    1. Platform keys take no prefix. #1094’s ruling, amending ADR-0161 point 6: a platform key is reserved by its declaration in the platform map in internal/writerclass, as health is, and the collision point 6 names needs operator data that, before the first external deployment, does not exist. The node-self keys are a declared subset of that map (writerclass.NodeSelf), so the node may write them and no other platform key.
    2. The platform rows are unplaced, and only an all-scope read sees them. The platform system and every node’s component have no location, so they resolve through the unplaced-root path and a location-scoped operator does not see them. internal/scope gains no special case. This is the slice’s reading of #1094: the platform is the operator of the whole install’s concern, not a site’s.
    3. Node registration owns the node’s component. CreateNode creates the component in its own transaction and names it in node.platform_component_id; DeleteNode removes it. A node registered on a database the boot seed has not run on gets no component, and the next boot’s EnsurePlatform adopts it. A node whose name an operator’s unplaced component already holds is refused at registration. A boot never refuses: a release meeting an operator’s unplaced system already named platform names the platform system platform-2 (it is found by its reserved type, never its name), and a node adopted beside an operator’s component of its name gets <node>-2.
    4. The node never names an owner. The node-self block (TelemetryBatch.node_self, field 15) lands on the publishing node’s platform component, resolved from the node row. A batch that sets an owner is refused as every node batch with an owner is; a node-self sample that names an identity drops the block with a warning; a node with no platform component, or a key outside the node-self set, refuses the block alone while the tick’s task groups land. A platform key in a task group, a push, a command or a calc is refused by the writer class.
    5. How the schedule is read. pollSchedule.due returns the booked due time and the whole intervals it skipped. Gap excess is the absolute deviation of a run’s actual gap from its interval, early or late, so heartbeat rounding reads the same either way (a 45 s poll on a 30 s heartbeat reads 15 s every run); a task with no interval of its own (a probe with the probe interval unset) is measured against the heartbeat. Lateness of a run the schedule had no booking for is measured from the tick’s start. A dropped tick is a gap between ticker fires above 1.5 heartbeats. tick-duration and tick-overrun-count describe the serial loop and #1634 redefines them. Amended when this met the dispatcher (ADR-1634): the figures come from the dispatcher’s heartbeat window. tick-duration is its longest pass, tick-overrun-count the dues that met their run in flight, schedule-skip-count every due it passed over, schedule-lateness its latest dispatch, and schedule-gap-excess the worst gap between two scheduled starts of a task off its interval. With no heartbeat rounding left, a poll keeping its interval reads 0.
    6. Counts go once per window, every window, zero when quiet. Dues met in flight, skipped intervals, spool drops and publish failures (refused, not acked, or failed to encode) are tallied over the node’s report window and written when it ends, 0 when nothing happened (the architect’s ruling of 2026-11-10 for every windowed platform count). Written only when nonzero, as first built, the latest value stood on the last event’s count long after it, and a rule on it never saw the sample that clears it. The first window runs from the node’s start, so it is whole and writes too; there is no windowless first read as the server’s queue read has. The each-tick figures go every tick, and session-held-count sends one sample per session state, zero included, so a state that empties reads 0. The drop counts are the node hop of #1641’s loss ratio in count form; #1659 folds them into its uniform delivery-* keys.
    7. The server writes check-in age. A timer beside the settlement sweep writes checkin-age every 15 s for every claimed node: seconds since its last heartbeat, or since its claim before its first, clamped at 0. An unclaimed node has no series. It writes through RecordPlatformMetrics, whose rows carry their component (not the spec’s (componentID, rows) form), one transaction per component, a component deleted between the read and the write dropped; #1626, #1627 and #1628 reuse it.
    8. One PR per slice in this campaign. The architect’s ruling for #1623’s work: each #1094 slice ships and is reviewed as its own PR rather than rolled up into one loop PR (ADR-0074’s default).
  • Context: #1094 asks Omniglass to monitor itself as a platform system. The first figure the lab needs is whether a node keeps up with its schedule, which the node only logged. Building that one figure as a one-off would leave #1626 to #1628 and #1644 each inventing where a platform figure lives and who may write it; the platform system, the node’s component, the node-self lane and the platform write are the primitive they consume.

ADR-1626: Command queue expiry keys on the execution stamp, not the status

Section titled “ADR-1626: Command queue expiry keys on the execution stamp, not the status”
  • Date: 2026-11-09 | Status: Accepted | Pages: commands, nodes, collection
  • Decision:
    1. Expiry keys on executed_at and age, not on status. command-expired-count counts the candidates that crossed deliveryTTL in the window with executed_at null, as instance undelivered (first_dispatched_at null) or unexecuted (taken, never reported). The recorded status says nothing about the wire: a fire-and-forget command is inserted settled today (and issued once #1630 lands), and a status-keyed count would miss it either way. The execution stamp is the one fact that says the node did the work, so the count reads the same before and after #1630.
    2. A command keeps its delivery history. The dispatch stamp keeps dispatched_at as the last take, sets first_dispatched_at on the first take only and counts every take in delivery_count. The API reads them as first_delivered_at and delivery_count.
    3. One candidate resolution. The pull and the health read share one SQL fragment (commandCandidates), so the depth the read reports cannot disagree with what a pull delivers. The health read widens its lower age bound to the window’s start, so a command that expired in the window still resolves to its node, and groups the whole fleet in one statement by the node the chosen endpoint is placed on.
    4. Two partial indexes, not one. command_unexecuted_idx on command (ts) where executed_at is null serves the candidate scan, which the existing status = 'issued' indexes cannot (a fire-and-forget row is not issued). command_redelivered_idx on command (dispatched_at) where delivery_count > 1 serves the redelivery count, because a command redelivered and then executed has left the candidates. This item first said #1631’s deliverable index would replace the first; #1728 measured it and keeps both. The deliverable index is narrowed to status = 'issued' (#1630), and the health read applies no status term, because its expired counts need the terminal unexecuted rows (a command stamped timed out), so the deliverable predicate is not implied and the read cannot use that index at all. On a seeded fleet of 30 nodes, 3,000 components and 303,331 commands (3,331 unexecuted), the read with command_unexecuted_idx touches 2,270 buffers in 1.9 ms; without it, the candidate scan walks command_component_ts_idx with ts as a non-leading condition, 4,980 buffers in 11.1 ms, a cost that grows with history. The pull uses the deliverable index either way (28 buffers for a quiet node, 679 for one with 52 deliveries), so the unexecuted index costs it nothing. TestCommandHealthReadReachesTheUnexecutedIndex pins both halves: with competing paths set aside, the read reaches the unexecuted index, and cannot reach the deliverable one.
    5. The window is the previous read’s database time. The timer holds the last good read’s now() and passes it as the next window’s start. The first read writes the gauges and no counts, since it cannot know what crossed before it. A failed read keeps the window open; a failed write after a good read moves it on, so a count is never written twice. The redelivery count reads the same window shifted 5 s back: a take is stamped at its transaction’s start, so a read that runs before it commits cannot see it, and a window ending at the read’s own time would have passed the stamp by the next read. The shifted windows still tile, so a take is counted once, up to 5 s late.
    6. Latencies are written by the wire. command-dispatch-latency lands in the dispatch’s transaction on the first take only, and command-execution-latency in the execution report’s, each a nested savepoint, so a refused platform write never loses the stamp. A command no node takes writes no dispatch sample and shows in undelivered.
    7. Loss ratios derive, not stored. Delivery loss is undelivered over (dispatch samples plus undelivered); execution loss is unexecuted over (execution samples plus unexecuted). Both are 0 healthy and need no key, in line with #1641’s uniform loss reading.
    8. An idle queue’s pending age is zero, not absent. The ticket’s table had command-pending-age absent when nothing waits. A gauge written only while something waits leaves a drained queue’s last age standing as its latest sample beside a pending count of 0, and a rule raised on the age never sees the sample that clears it. The timer writes 0 instead, as the check-in age is written every tick: 0 is healthy.
    9. The window counts are written every window, zero when quiet. command-redelivery-count and command-expired-count (both instances) are written at every read that has a window, 0 when nothing was redelivered or expired. Written only when nonzero, the latest value stood on the last event’s count (a single redelivery read as 1 in the vitals long after it), the same frozen fact item 8 fixes for the pending age. A first read still writes neither, since it has no window.
  • Context: A redelivery overwrote the only dispatch stamp, a failed pull went uncounted, and a fire-and-forget command no node took read settled forever, so the command lane had no baseline for #1249’s separate node queues. The queue figures are platform metrics on the node’s component (ADR-1625) so an operator reads them the way they read any component.

ADR-1627: A server reports its request and query timing by route template and statement fingerprint

Section titled “ADR-1627: A server reports its request and query timing by route template and statement fingerprint”
  • Date: 2026-11-09 | Status: Accepted | Pages: collection, settings
  • Decision:
    1. An instance is the route template, never the path. The request recorder reads the pattern chi matched after the router has run (GET /api/v1/components/{name} 2xx), so the series a server keeps are bounded by its route table and a scan of a million names costs one. A method outside HTTP’s standard set reads OTHER, and every request no route matched records under the one instance unmatched, so neither invented verbs nor invented paths grow the series. The status is its class, not its code.
    2. A slow query logs its fingerprint, never its arguments. The pgx query tracer logs a WARN with the duration and the statement’s text, whitespace collapsed and bounded at 200 runes, and counts it into db-slow-query-count. Arguments carry operator data and secrets, so no log line names them. The threshold is the database.slow_query_ms platform setting (500 ms default, 0 off), held atomically and re-read each report window. A failed fleet view now logs its cause the same way: the error goes to the server log and the response stays a bare 500.
    3. A platform_server table maps an identity to its component. A server has no row of its own elsewhere (a node has node.platform_component_id), so the new table is the server’s identity: the name it boots under and the component it reports on, unique on both. The boot ensures it under the platform step’s advisory lock, so concurrent boots under one identity make one component. Keying on the component’s name instead would break when a stem collision suffixes it. The override of the hostname is the environment variable OMNIGLASS_SERVER_NAME, not the platform setting the spec named: a platform setting is one value every server reads, and an identity is one per process. The lab sets a fixed OMNIGLASS_SERVER_NAME, since a container’s hostname is new each run; the chart’s equivalent is #1672.
    4. db-pool-wait-duration is the exhausted-acquire wait. The spec named pgxpool’s AcquireDuration, which sums every acquire’s time, including the near-instant ones from an idle connection. The reading is the window’s delta of EmptyAcquireWaitTime, the time spent only by acquires that found the pool empty, beside db-pool-wait-count from EmptyAcquireCount, so both read 0 on a healthy pool and grow only with contention.
    5. The recorder flushes platform rows. Recorder.Flush(componentID) returns []storage.PlatformMetric, the rows RecordPlatformMetrics (ADR-1625 point 7) already writes, not the spec’s MetricSampleWrite, so the server needs no second write path. A count reads its sum, then one zero the window after its last activity, then nothing; a mean, max or gauge with no observation reads nothing. #1628 adds its runtime sampler to the same reporter.
    6. File names. The server component lives in internal/storage/platform.go beside the node’s, and the tracer in internal/storage/slow_query.go, not the spec’s platform_component.go.
  • Context: #1094 asks the platform to monitor itself. The node’s account of itself shipped with #1625; the server had only its logs, so a slow route, a slow statement or a starved pool showed up first as an operator’s complaint. The window recorder and the reporter are the primitive #1628 and #1629 consume; the settings reference that renders database.slow_query_ms is #1342.

ADR-1628: Ingest lag is the commit time minus the sample ts, read on the server

Section titled “ADR-1628: Ingest lag is the commit time minus the sample ts, read on the server”
  • Date: 2026-11-09 | Status: Accepted, amended by ADR-1659 | Pages: messaging, workers, scaling, collection, alarms and actions
  • Decision:
    1. Ingest lag is landing time at commit minus the sample’s ts, server side. The consumer reads the server’s clock once a batch’s transaction has committed and subtracts each sample’s effective ts (its own, else its group’s, else its batch’s, the rule its row lands by). The figure covers the whole trip, from the node’s stamp through its spool, the publish, the stream, the consumer’s queue and the landing. The lab’s figure, read after the fact from pg_xact_commit_timestamp, stays the lab’s until #1517 moves it onto this one.
    2. Two figures a window, from two samples a batch. Each committed batch contributes its newest and its oldest sample to the window mean ingest-lag, and its oldest to the window max ingest-lag-max; no per-sample observation, so a batch of fifty costs what a batch of one does. A sample with no ts anywhere is stamped at ingest and was never late: it counts into ingest-sample-count and not toward lag. A batch with no samples observes nothing. Only what landed counts: a redelivery or replay its receipt held to a no-op (Landed false) adds no batch, sample or lag, or every lost ack would read as a batch 30 s late, and a node tick’s landing is only its groups that landed, never one the fence or the gateway dropped.
    3. A negative lag is kept. Lag subtracts two clocks, the node’s and the server’s. A node clock ahead reads short or negative, one behind reads long. Clamping at 0 would hide the one signal a skew gives, so the value is kept as read; the clock is #419’s.
    4. Every loss is a ratio where 0 is healthy, so counts come in pairs. The spec named failure counts alone; each now has its attempts beside it: ingest-batch-count for bus-telemetry-drop-count (the drop ratio is drops over drops plus committed) and bus-telemetry-ack-failure-count, a new bus-request-count per path for bus-request-failure-count, and a new sweep-count per sweep for sweep-failure-count. The worklist outcomes are their own denominator (every outcome but served over the sum). Amended (#1659): bus-telemetry-drop-count is retired; the server hop’s drops read as its delivery-loss-ratio per item kind, items rather than batches, ADR-1659.
    5. A fourth drop reason, malformed. The spec named refused, metadata and max-deliver. A batch that will never land as sent (undecodable, an API push with no usable owner, a node batch naming an owner or a top-level task) was terminated silently too, so it counts as malformed rather than vanishing from the ratio. Amended (#1659): the reasons went with the count; a Termed batch’s items count as in and not out on the server hop, and an undecodable one names no items, so it counts nothing there and its items read as missing on the ledger.
    6. Worklist pulls are window deltas of the running totals. The counters #1577 built stay running totals; the window reading keeps its previous read and lands the difference by outcome, never negative (a lower read is a fresh tally) and only for outcomes that moved.
    7. A failing heartbeat write warns once per run, per node. The first failure for a node logs one WARN, and no other until a heartbeat from that node lands, so a database outage under a fleet heartbeating every few seconds is a line a node, not a line a beat; every failure counts. The command pull failure counts and does not log; its log line is #1630’s.
    8. One runtime sampler, two processes. The process-* reading moved into internal/platformmetric and the node and the server both call it. process-cpu-seconds is the CPU time since the previous read, as runtime/metrics estimates it (the runtime’s busy time, not the kernel’s account), so on a node it is per tick and on the server per report window; divided by its interval it is cores kept busy. process-fd-count reads nothing where the platform does not expose it.
    9. Queues read as the tick and the store see them. calc-pending-depth is the window max of each calc pass’s depth, every pending mark counted, a debounced one included. outbox-queued-depth and outbox-due-age are one storage read at the window’s close, by the predicate the sender takes rows by, so a row in its retry backoff counts toward the depth and not the age. A read that fails reports nothing that window, never a zero.
    10. ingest-lag-high warns at 30 s held for 2 minutes. The official rule reads ingest-lag-max on the server’s component: over 30 s for 2 minutes opens a warning alarm, a window at 30 s or under clears it. The sustain keeps a restart’s catch-up or one slow window from paging.
  • Context: #1094 asks the platform to monitor itself, and #1627 built the server’s component and its window recorder. The pipeline had no inside view: ingest lag existed only in the lab, the lane’s busy time and redeliveries were parsed out of logs, the worklist counters had no reader, and the command pull and heartbeat failures were silent. These figures are the evidence for whether a bigger box or a second consumer is the fix (scaling). Folding the drops into the one delivery loss ratio is #1641.

ADR-1628.2: The server’s platform component carries the bus, database and worker-pool figures

Section titled “ADR-1628.2: The server’s platform component carries the bus, database and worker-pool figures”
  • Date: 2026-11-10 | Status: Accepted | Pages: collection
  • Decision:
    1. One component per server process, no bus, database or worker-pool component. #1094’s spec made the server, each node, the bus, the database and the worker pool components of the platform system. What shipped is one omniglass-server component per server identity (ADR-1627), and the figures #1094 gave the other three land on it: the telemetry consumer’s backlog, drops and redeliveries and the bus request paths’ failures (#1628), the database pool and slow queries (#1627), the calc, notification and settlement ticks (#1628) and the retention pass (#1671). A key and its instance (bus-request-failure-count per path, sweep-duration per sweep) say which part of the server a figure is about.
    2. Every one of those figures is the server’s own view. A pool is per process, so two servers have two pools and a shared database component would have to merge or overwrite them. The consumer’s lag and drops are what one server’s consumer saw, not the stream’s state. There is no worker pool: the consumer keeps one batch in flight and the rest are ticks inside the server (workers). Putting these on a component the server does not own would need a writer that speaks for a shared thing, and the platform writer class admits only the process speaking for itself (ADR-1625).
    3. The services themselves are a later decision. A component for the NATS server or the Postgres server, read from that service’s own metrics rather than from a client’s view of it, is not built and is not ruled out; it would be filed under #1094 when a figure only the service can report is needed.
  • Context: #1094 is the self-monitoring epic; its sub-issues #1625, #1627, #1628 and #1671 built the node and server components and their figures. No entry recorded that the bus, database and worker-pool components were not built, so the shipped server component contradicted the design it was built under.

ADR-1629: A retention pass reports on the server’s platform component, behind a seam until the server has one

Section titled “ADR-1629: A retention pass reports on the server’s platform component, behind a seam until the server has one”
  • Date: 2026-11-09 | Status: Accepted | Pages: storage, collection
  • Decision:
    1. The pass reports what it did, on one component. retentionSamples(component, report, status, now) is pure and returns the gateway’s PlatformMetric rows (not the MetricSampleWrite the ticket named): the rows carry their component, so the pure map is the whole write and RecordPlatformMetrics lands it as the process. One pass is one sample per key and instance.
    2. Lanes are keyed on their names. The deleted count and behind flag take the lane’s name as the instance (metric, metric/<type>, log_line/info), and the compactions report a behind flag of their own (metric_trend compaction, metric_block compaction) beside the metric window, only when the pass ran them.
    3. A failure is also behind. A lane whose prune errored did not reach its window, so the pass names it behind as it already did, and counts the error in retention-pass-failure-count. The failure count says a fault happened; the behind flag held says the lane is not keeping up, whatever the cause.
    4. The rule’s sustain is 5 minutes. A behind pass retries a minute later, so 5 minutes is several catch-up passes; the alarm is a warning (a lane that falls behind costs disk, not data) and clears on the first pass that reads the lane 0.
    5. The seam is thin. The server’s platform component is #1627’s, not yet built, so bus.Config.PlatformComponentID carries it and production leaves it empty, writing nothing. The integration test stands a node’s platform component in for the server’s. Passing the server’s id at boot is #1671.
  • Context: retention reached operators only as INFO log lines, and a pass falling behind showed first as a full disk (#1629, under #1094).
  • Rejected: building the server’s component in this slice (it is #1627’s, in flight); reading the log tables’ oldest row (a full scan with no ts-leading index, until #1417); a behind flag that excludes failed lanes (an operator would then need two rules to see a lane not keeping up).

ADR-1630: A fire-and-forget command settles on its report

Section titled “ADR-1630: A fire-and-forget command settles on its report”
  • Date: 2026-11-10 | Status: Accepted | Pages: commands
  • Decision: (#1630.)
    1. Every command is issued issued. IssueCommand no longer inserts a fire-and-forget command settled by its issue; settled_at, settled_by and reason start null for every command. The status vocabulary is unchanged, and issue stays in the settled_by CHECK because nothing needs a migration to stop writing it.
    2. The execution report decides a fire-and-forget command. When the node’s report lands on a command that opened no intended value, the report’s transaction records settled (“the node carried it out”) or, on an execution error, failed (“the execution failed: ” and the masked error), both settled_by = reply, through the same outcome writer every terminal status uses, so its lifecycle event lands with it. This runs before the binding’s settle lookup, since such a command has no settle mode. A binding that cannot render is the server recording an execution failure on the node’s behalf, so on a fire-and-forget command the fault stamp fails it at once.
    3. No report inside the delivery window times it out. The sweep admits a fire-and-forget command only once its ten minute delivery window (the one constant the pending query reads) has passed since its issue, not its settle window, which defaults to 0 and would re-judge every queued row each sweep. It records timed-out, settled_by = window, with a reason from a pure sibling of the settle-window wording that names the delivery window and never an observation: queued for a node that did not take it, delivered to a node that sent no report, queued on an endpoint placed on no node, or no endpoint whose driver binds the type.
    4. A terminal command is not delivered. The pending query reads c.status = 'issued', so a settleable command already timed out by a settle window shorter than the delivery window is never pulled and actuated after the console says it timed out. This closes #1675 by its first option (stop offering a final command) rather than holding the status open until the delivery window. The cost: a settle window counts from the issue and a node pulls once a heartbeat (30 s by default), so a settleable command whose 15 s settle window passes before its node’s next pull now times out unsent, where before it actuated late under a timed-out status. The status and the device now agree; closing the gap itself is faster pickup, #1635.
    5. A failed pull leaves a log line. The server’s command pull logs at Warn (facility=command, the node, the error) when its pending read, its marshal or its reply fails, and its status sink logs a report it cannot parse; the node logs a failed pull at Warn on the transition into failing and once at Info when a pull succeeds again, so a down server writes two lines rather than one each heartbeat, and logs each report it cannot marshal or publish.
  • Divergences and follow-ups: amends ADR-1155 point 5, which said a fire-and-forget command, settled by its issue, writes no second event, and point 4’s issue value of settled_by. The console’s phase hint and arc still word a delivered fire-and-forget command as awaiting an observation; that is filed as its own UI slice, #1711. Counting pull failures and expired commands as platform metrics stays with #1626 and #1628, and the pending query’s cost and index with #1631.
  • Context: a fire-and-forget command was inserted terminal, settled by its issue, while delivery still ran, so a reboot no node ever took, or one the device refused, read settled forever. The read said the opposite of what happened, and a pull that failed on either side left nothing in any log, so an operator had no way to learn why a component never rebooted.
  • Rejected: a new status (expired, undelivered) for the stopped command: timed-out with a reason that names where it stopped carries the same fact in the vocabulary every reader already handles. Timing it out on its settle window: that defaults to 0, which would time out every fire-and-forget command at the first sweep, before any node could pull it. Logging every failed pull: a server down for an hour would write a line each heartbeat on every node.

ADR-1632: Lab measure samples a running lab into a JSONL series and times the system page as the page reads it

Section titled “ADR-1632: Lab measure samples a running lab into a JSONL series and times the system page as the page reads it”
  • Date: 2026-11-09 | Status: Accepted | Pages: the lab guide, CLI reference
  • Decision:
    1. One window a sample, the lab found once. --every finds the lab, signs in and warms up once, then measures one --window per interval with the same code the one-shot run uses (measureWindow), so a sample and a --json report cannot drift apart. A ScaleSample wraps the ScaleReport with seq, at and uptime_seconds; a failed sample writes its error with no figures and the run goes on. The first SIGINT or SIGTERM lets the sample in flight finish.
    2. Sampling never restarts the server. The retention probe restarts it, so a sampling run skips it: --backlog defaults to 0 under --every, and a --backlog given, --systems, an --every below --window, --json, and --append or --samples without --every are refused with the reason.
    3. The absolutes are a sibling query. Database bytes, the metric lane’s partition count and oldest day, the rollup tables’ bytes and the dead tuples of property, log_line and node_log are levels, not window deltas, so they are their own AbsolutesQuery, not columns of DBCountersQuery. Every sum is cast to bigint so the driver reads an integer, not a numeric.
    4. The page load is the page’s reads, guarded by generation. SystemPageReads in internal/labfootprint is the list; make gen writes it to a TypeScript fixture, and SystemZoom.test.tsx mounts the page cold with a fetch spy and asserts the reads equal the fixture, while a Go test asserts the fixture equals the list. Neither side changes without a test failing. The chart reads come from the metrics answer, as the page derives them.
    5. The token re-mints once on a 401. A sampling run outlives a session token; the harness signs in again and retries the request once.
  • Divergences and follow-ups:
    • The issue’s route set cited SystemZoom.tsx line numbers from before the page moved its alarms read to the activity tab. The list follows the page as it is: /systems/{name}/alarms is out (activity tab only, with events and logs), and /auth/me, /locations, /location-types and /severity-levels, which a cold open makes for the shell and the labels, are in.
    • uptime_seconds is the server container’s uptime at the window’s close, not the sampler’s: a falling value then shows a restart in the series, which a sampler clock cannot.
    • The report also carries system_page_error_ratio (0 when every load answered) beside the system_page_errors count, so the page’s health reads as a loss ratio like every other.
    • Node schedule health and command latency stay out of the line until #1625 and #1626 land them.
  • Context: goal #1623 needs to know whether a fleet’s cost holds over hours (growth, retention, vacuum) and what an operator waits for when a system opens under load. One window answers neither: the first is a trend, and the fleet view read times one query, not the page.
  • Rejected: a hand-kept read list checked by review (drifted from the page before this issue shipped, as the alarms read shows); restarting the lab for each sample (destroys the series being measured); appending the absolutes to the counters query (they are not deltas, and the window arithmetic would have to skip them).

ADR-1634: Each poll and probe runs on its own interval, from a dispatcher of its own

Section titled “ADR-1634: Each poll and probe runs on its own interval, from a dispatcher of its own”
  • Date: 2026-11-09 | Status: Accepted | Pages: nodes, collection, lab
  • Decision: (#1634, under the node concurrency model of ADR-1637, #1658.)
    1. A dispatcher with a timer of its own. Every poll and probe task sits once in a due-time heap. The dispatcher sleeps until the earliest due (or a worklist change wakes it), hands each due task to its endpoint’s lane and books the next due. The heartbeat no longer runs tasks: it publishes liveness, pulls commands, ships the spool and takes the dispatcher’s window.
    2. A stable phase. A task’s dues fall on a grid one interval apart, offset from the Unix epoch by an fnv-1a hash of the task id. A new task, and every task on a node’s start, runs at once; its next due is the first grid slot at least half an interval on, then one interval apart. A restart lands each task on the same slots, and a fleet of tasks with one interval spreads across it.
    3. Skip, not burst. A due whose last run is still in flight is skipped and counted, in the endpoint’s report window (poll-due-count, poll-skipped-count, skipped over due is schedule loss) and the dispatcher’s own (tick-overrun-count, schedule-skip-count). A late pass runs a task once and books the next slot ahead of now; the slots it passed over count as skips.
    4. Lanes on a bounded pool. A lane is an endpoint: one job at a time per endpoint, endpoints side by side, on --poll-workers workers (default 16, OMNIGLASS_POLL_WORKERS). An operator’s run now or command takes its endpoint’s lane ahead of the scheduled work queued there, never preempting the run in flight. A component-wide lane for a fragile device is #1649.
    5. Intervals. A driver poll’s interval is its schedule.every; one with no schedule runs at the heartbeat interval, still on the dispatcher’s timer. A probe’s interval is --probe-every, default 30s; 0 is refused, so a probe never again runs on every check-in. A moved connection fingerprint runs the task at once (#1061), probes included.
    6. Backoff from a fixed base. A failed fetch retries after one second, doubling per consecutive failure, capped at the interval, never reading the heartbeat; a Retry-After is a floor (#902). A refused poll waits its interval unless its session reads up first, and a poll its endpoint’s gate holds is decided in the pass without taking a lane (ADR-1650).
    7. The dispatcher keeps its own account. Per heartbeat window: the longest pass (tick-duration), dues that met their run in flight (tick-overrun-count), dues passed over (schedule-skip-count), the latest dispatch past its due (dispatch-late-ms), and the busy and waiting high-water marks of the pool (worker-busy-count, dispatch-queue-depth). Today it says them in a dispatch window self-log line, only for a window that passed a due over; landing them as the node’s platform metrics is #1625.
  • Amends: ADR-0152 (heartbeat granularity, the heartbeat-based backoff, a no-schedule poll on every tick) and ADR-1273 (probe-every unset as every tick, the half-heartbeat due tolerance, the walkthrough lab probing on every check-in, which now probes every 2s by its own flag).
  • Context: At heartbeat granularity a poll’s interval rounded up to a heartbeat multiple (a 45s poll on a 30s heartbeat ran every 60s, a 10s poll every 30s), missed intervals on a late tick vanished uncounted, and every task ran serially inside the tick, so one dead device’s timeout delayed every other component’s poll. Making each task’s own interval the clock removes the rounding, makes falling behind a counted loss, and lets a slow endpoint hold only its own lane. The concurrency model it runs under (one goroutine per concern, bounded pools, lanes) is ADR-1637.
  • Not chosen:
    • A ticker per task. Thousands of timers for a fleet, and no one place to count lateness or skips; one heap and one timer is the same precision at a fraction of the cost.
    • Queueing an overrun’s due behind the run in flight. It hides the overload and bursts a slow device when it recovers; a counted skip makes falling behind visible as loss.
    • Phase from the first run. A restart would move every task’s slots, and tasks synced together would fire together; a hash of the id keeps both stable.
    • Keeping --probe-every 0 as every check-in. It tied the probe to the heartbeat this decision removes; a lab that wants fast probes says so with its own interval.

ADR-1636: Held sessions reconcile on arrival, are supervised, and dial through node-wide slots

Section titled “ADR-1636: Held sessions reconcile on arrival, are supervised, and dial through node-wide slots”
  • Date: 2026-11-10 | Status: Accepted | Pages: nodes, collection
  • Decision:
    1. Reconcile on arrival. The worklist case of the node’s run loop reconciles held sessions and datagram sockets as soon as a new worklist lands, instead of storing it for the next heartbeat to reconcile. A held endpoint added, removed or re-keyed changes within the pull, not within the pull plus a heartbeat. A reconcile on its own timer, at the heartbeat interval, stays as the safety net for a gate or a retry that changed between worklists.
    2. One owner. Every reconcile, the heartbeat’s work and the housekeeping pass run on the one run-loop goroutine, the session maps’ one writer (ADR-1637); the lane workers that borrow a session read the maps under their lock (ADR-1634). The loop is a select over channels, so a test drives it with clocks it owns and a heartbeat that never fires.
    3. Supervision. A Supervise primitive in internal/collection wraps each session-layer goroutine: the session machine, each connection’s reader (line, http stream, udp, websocket, ssh), the arm conversation, the node’s hooks, and the datagram arm. A recovered panic is logged at error with its stack (facility collection), counted, and returned as a PanicError that takes the session’s ordinary failure path: the connection is closed, the session reads recovering with the reason panic: <value>, the normal backoff redials, and the attempt budget still drives a session that panics every time to down. A datagram arm that panics closes its socket and the next reconcile binds and arms it again.
    4. Bounded establish. A session’s first dial and handshake (connect, TLS or ssh handshake, the login dialog) acquire one of the node’s DialSlots before they start and release it once the connection is made or has failed. node run --session-dials (env OMNIGLASS_NODE_SESSION_DIALS, default 16) sets the count. A session waiting for a slot reads establishing. A redial takes no slot: an endpoint that blackholes its dials holds a slot for its whole dial timeout on every attempt, so bounding redials would let a few dead endpoints queue every healthy session’s recovery behind theirs (at 16 slots, the 5 s default timeout and the 30 s backoff cap, about a hundred blackholed endpoints keep every slot busy, and fewer already make a recovery wait). The jittered backoff already spreads a mass redial.
    5. Housekeeping timer. flushUnclaimed, the push count into the collection report and the report’s publish run on their own timer at the shorter of the report window and the heartbeat. The spec named the report cadence; at the default one-minute window and 30 s heartbeat that would have held unclaimed lines twice as long as the heartbeat did, so the heartbeat caps it.
  • Divergences and follow-ups: the spec had reportPushes take the report under the lock #1634 adds. Housekeeping stays on the run-loop goroutine, so nothing else touches the report while it runs and no lock is needed here; #1634 adds one if it moves the poll path off that goroutine. The spool retry stays on the heartbeat, so its ordering against the batch it follows is unchanged. The recovered-panic count is a process counter in the log line today; publishing it as a node metric (as a loss ratio of session attempts) is #1700, alongside the platform metrics of #1094 and #1625.
  • Context: before #1636 a panic on any session goroutine ended the node process, and with it every other session on the node; a node restarting with hundreds of held endpoints dialed all of them in one pass; and a held endpoint’s change waited up to a heartbeat after its worklist landed. #1588 made a fleet-wide start survivable for worklist pulls, not for session dials.
  • Rejected: a supervisor goroutine that restarts a dead session from outside (the session already owns its retry and backoff, so a panic becoming its ordinary failure reuses both and needs no second owner); recovering a panic silently (a panic is a bug, so it is logged with its stack and counted); bounding dials per endpoint type instead of node-wide (the cost bounded is the node’s, file descriptors and handshake CPU, whatever the transport).

ADR-1637: A node runs each kind of work on its own timer and pool, one request per endpoint at a time

Section titled “ADR-1637: A node runs each kind of work on its own timer and pool, one request per endpoint at a time”
  • Date: 2026-11-09 | Status: Accepted | Pages: nodes, collection, commands
  • Decision: (#1637, the first child of #1624; recorded before any of it is built, so the children build to one model.)
    1. Per-kind queues, each with its own timer and bounded pool. The heartbeat publishes liveness only, on its own timer. The worklist pull keeps its own interval (ADR-1577). Polls and probes share one scheduler keyed on each task’s own interval, feeding a bounded poll pool (#1634). Commands are woken by a server push with a fallback pull and run on a bounded command pool (#1635). Each held session is one supervised goroutine, with bounded establish concurrency (#1636). Housekeeping (the spool’s retry, the collection report window, self-logs) runs on its own timer. No work waits on the heartbeat.
    2. One exclusion key across kinds: the endpoint. Discrete requests to one endpoint (scheduled polls, probes that open a connection, commands, an operator’s run now, and a driver preview whose transport and target match an inventoried endpoint) serialize in that endpoint’s lane (#1249’s key, re-keyed from the component). Endpoints run in parallel, two endpoints of one component included. Each lane’s queue has two classes: operator-initiated work (a preview, a run now, an operator-issued command) is dispatched ahead of scheduled work, FIFO within a class, and nothing preempts a request in flight. Listen tasks are never lane-serialized (ADR-0151). More than one request in flight to one endpoint comes only from a held session’s explicit per-endpoint pool size (#1254, default 1), which settles the nodes page’s open question on intra-endpoint concurrency. A driver’s opt-in to component-wide exclusion, which keys that component’s lane on the component, is #1649.
    3. One endpoint gate, holding a set of reasons, is the readiness check. Every endpoint has one gate: today’s layered gate (ADR-0158), generalized. It holds a set of reasons, each with a kind, a since time, a source (the probe, a command, an upstream component) and its own release rule, and it is open only when the set is empty. Today’s terminal refusal becomes one reason, refused, with no change in behavior. Three triggers add the others: the probe adds unreachable after two consecutive failed verdicts and one up verdict removes it (#1650); a disruptive command adds disrupted to its hold set, followed by a quiet period with no connectivity attempts, then each endpoint’s first up verdict releases it, with a backstop behind (#1651); a closed gate upstream adds upstream to the endpoints reached through it, over path edges, and a dependent is not probed while held (#1652, the edges from #1648). While the gate is closed, a due poll is skipped and counted in poll-held-count (not loss), and a command, a run now or a preview answers at once with the reason instead of queueing. Lanes are separate from the gate: a lane consults the gate at dispatch and holds nothing itself.
    4. Timers, not ticks; skip, not burst. A task runs at a stable phase on its own interval, with no rounding to the heartbeat. A run still in flight at its next due is skipped and counted, never queued twice. Lateness (the start minus the due time) is measured and published (#1625).
    5. A batch is a flush window, not a tick. Groups coalesce in the spool’s flush (1s or 512 KiB, whichever comes first), which already holds without a tick; ADR-0311’s “one batch per tick” reads as one batch per flush window.
    6. Pool sizes are flags with env vars now, and a node-leaf cascade value once #1351 lands. Defaults are set from the scale lab’s measurements, not guessed.
    7. Shared state has a named owner. The session maps (the session manager’s held, refused and pin maps) stay owned by the run-loop goroutine: only it adds or removes an entry. The state pool workers write gains a lock: the poll schedule (pollSchedule), the verdict memory (verdicts and faultseen, today plain maps in the run loop) and the collection report (collectionReport). The gates (gates.mu) and the spool (telemetrySpool.mu) already hold their own. How a pool worker reaches a held session without touching the maps is #1636’s to settle within this rule.
    8. Load distribution across a site’s nodes is a later decision built on this model and its capacity signal (#1638).
  • Context: The node is one select loop: on each heartbeat it publishes liveness, then runs the whole worklist serially, then pulls and runs commands, then flushes the sessions’ unclaimed lines. A slow poll delays the heartbeat, every other poll and every command; a poll’s schedule.every is honored only at heartbeat granularity (ADR-0152); a probe runs every tick when --probe-every is unset (ADR-1273); and the nodes page described pieces of a target (a bounded poll pool behind --workers, component lanes) with no single model, its overrun rule (the next tick fires at once) contradicting skip-not-burst. The children of #1624 would each have invented their own.
  • Options weighed:
    • Keep the tick and parallelize within it (#1249 as filed): each tick fans its work out across component lanes and waits for them. It is the smaller change, but a task’s cadence still rounds to the heartbeat, one slow lane holds the next tick (or the tick overruns and bursts), a command still waits for the next tick, and the heartbeat still waits on collection. Not chosen.
    • Per-task timers with per-kind pools (chosen): every kind runs on its own timer, the heartbeat is liveness only, a command runs the moment it arrives, and the one invariant that matters to a device (one of our requests at a time) is held by the endpoint lane, not by a loop’s serial order.
  • Not chosen:
    • The component as the lane key. A component with two endpoints (a server with a management port) would serialize unrelated connections; the case a component key served (a reboot taking out both endpoints) is the gate’s disrupted reason, and a driver that truly needs one request per component opts in (#1649).
    • The overrun-aware loop (the #430 fence’s next tick fires at once). It queues a second run of work already late, which is a burst; a skipped run that is counted surfaces falling behind without adding load.
    • The gate inside the lane. A lane that blocked while its endpoint was down would queue operator work behind an outage; a gate the lane consults lets that work answer at once with its reason.

ADR-1638: A site’s components spread across its nodes by expected cost, guarded by measured headroom

Section titled “ADR-1638: A site’s components spread across its nodes by expected cost, guarded by measured headroom”
  • Date: 2026-11-09 | Status: Accepted | Pages: nodes, scaling
  • Decision: (#1638, under #1624. Recorded before any of it is built, on top of #1637’s concurrency model, so the slices build to one design.)
    1. The unit is the component. Every node-run endpoint of one component runs on one node, enforced by the Storage Gateway (#1687). The node’s lanes are per endpoint (#1637), but a component’s endpoints share a device, the driver’s component-wide exclusion opt-in (#1649) and the endpoint gate’s default hold set (the target component’s endpoints). Splitting a component would put two sessions on one device and split one gate across two nodes. A push endpoint (a webhook, ADR-1024) is hosted by the server and takes no node: it never inherits the component’s pin or assignment, adds nothing to its cost, and its listen tasks never enter a node’s worklist.
    2. The pool is the location. A component’s candidate nodes are the claimed nodes at its location, or failing that at its nearest ancestor location that has any. A child component with no location of its own (a component’s location is not inherited from its parent today) takes its nearest located parent’s. A component with no node up its chain stays unassigned and says why. Once #1351 lands, a cascaded node-pool property can widen, narrow or name a pool at any level, with the location pool as its default. The pool’s one prerequisite is that every node in it can reach every device in it; assignment does not check it.
      • Pushes land on any node in the pool. Shared-port pushes (syslog, SNMP traps, tcp and udp push; #1148, #1149, #1150) do not follow the assignment: every node in the pool runs the pool’s push listeners and claims each line by source address, so a device may send to any pool node. Failover for a single push target is the operator’s virtual IP across the pool, not omniglass’s. A shared-port listener is outside the component’s unit and cost; a listener on a session a node holds stays with the assigned node. The edge is the default home for these pushes, since much of that traffic is unencrypted and should not cross public ingress; the server hosts webhooks and other standard public web traffic (ADR-1024), and server-hosted shared-port listeners (#1158) are the exception for a sender with no site node near it.
    3. An endpoint’s node_name is a pin. It pins the whole component, and assignment never moves it. The server’s assignment lives in its own column beside the pin, so the reconcile never overwrites an operator’s choice. Deleting a node returns its assigned components to the pool (on delete set null); its pinned endpoints keep today’s cascade.
    4. Expected cost balances; measured headroom guards.
      • The reconcile balances on a component’s expected cost: the sum over its tasks of 1 / interval in seconds. A poll counts at its own interval and a reachability probe at the default probe interval (#1634). A listen task has no interval, so a held session or a listener counts at a flagged weight, default one 30 s poll; a listen-only component never costs 0, which would stack every such component on one node. It is pure, known before any node runs the work, and does not move when the assignment does.
      • A node is saturated when its schedule loss ratio (#1659 with #1641’s schedule hop) is above a ceiling (flag, default 0.01), or when any pool’s worker-busy-fraction (#1686) is above a ceiling (flag, default 0.8). A saturated node takes no new component. The loss ceiling is not 0, so one late tick does not close a node to a lost peer’s components.
      • The guard reads only values from the node’s latest report window. A window with no runs publishes no loss ratio (#1659), so a node that sheds or has not yet taken work would otherwise be held saturated by a stale value; a missing value counts as unsaturated.
      • The loss ratio keeps the uniform reading, 0 = healthy. The busy fraction is a capacity level, not a loss, and reads the same for every pool kind.
    5. Assignment is a server reconcile (#1688): read state, run a pure assign, apply the moves in one transaction, logging each move on both nodes. The rules:
      • Pins win.
      • Sticky. A component stays on its node while that node is in its pool and unsaturated.
      • Placement. An unassigned component goes to the least-loaded unsaturated pool node, ties broken by fewer components, then by node name. If a dependency-edge neighbour (power, host or path, #1648) sits on an unsaturated node, the component goes there.
      • Rebalance. Moves happen only when the most loaded node exceeds the pool mean by a hysteresis factor (default 1.25), and at most a capped number per pass.
    6. Rebalance on loss and join (#1689).
      • Loss. A node is lost only after the node-silent window (#1094) plus a grace period, default 120 s. Its assigned components then spread over the unsaturated peers. What the peers cannot take stays unassigned, and the site reads as under capacity. Pinned components stay. A lost node still running, cut off from the server but not from its devices, keeps its last worklist (#1577), so a moved component can see two sessions until it reconnects; that is accepted over leaving the site unpolled.
      • Join and return. A joining or returning node starts empty and fills under the per-pass cap, with no give-back.
      • Two-phase moves. A move between live nodes is two-phase: the old node drops the tasks and closes its session on its next pull, and the new node is assigned only once the old node confirms it. The confirmation is the old node’s pull request naming a worklist generation at or past the clear. A served reply is not proof: a pull can time out at the node after the server answers, and the node keeps its last worklist (#1577). A move unconfirmed at its deadline is abandoned and the component returns to the old node.
    7. The worklist wire is unchanged but for one pull request header naming the generation the node runs (6). A move reaches both nodes on their next pull (30 s, jittered); the worklist-changed nudge (#1945) shortens that later. The worklist generation moves on both nodes on every move, because the max updated_at of the remaining endpoints may not.
    8. Independent of server replicas. Assignment maps components to nodes, and any server answers any node’s pull. The reconcile is a scaling.md singleton: one by construction while there is one server, then behind the NATS KV lock (#57).
  • Options weighed:
    • Static pinning only (today). An operator names each endpoint’s node.
      • For: simple and explicit.
      • Against: nothing balances, so a growing site is split by eye. Nothing recovers a lost node until someone re-points its endpoints. The splits drift as polls are added at new intervals.
      • Outcome: kept as the pin (3), not as the mechanism.
    • Location pools. A component’s pool is its location’s nodes, or the nearest ancestor’s.
      • For: needs no new entity, since a node already has a location and so does a component. It matches how nodes are deployed (one or more per site).
      • Chosen as the first cut (2).
    • Cascaded pools (#1351). A node-pool property resolves through the cascade.
      • For: an operator can name a campus pool, exclude a building, or send one system type to a dedicated node, using the same override machinery as everything else.
      • Against: it waits on #1351.
      • Outcome: chosen as the later layer, with the location pool as its default, so no data moves when it lands.
    • An explicit pool entity (a node_pool table that nodes and locations join). Not chosen: it duplicates the location tree, and the cascade does the same job without a new entity.
    • Push listeners follow the assignment. Not chosen: a device would push to one node’s address, and every move or lost node would strand it until someone re-pointed the device.
    • Endpoint as the unit. It matches #1637’s lanes and balances more finely. Not chosen: it splits a device, its sessions and its gate across nodes (1).
    • System as the unit. It keeps a room together, so its power, host and path edges stay node-local. Not chosen:
      • a component can be in several systems, so systems do not partition a site;
      • a large system is a lumpy unit;
      • affinity over dependency edges (5) gets the locality without making the system the unit.
    • Component count as the cost. Not chosen: a 5 s poll costs six times a 30 s poll.
    • Measured load as the objective. Not chosen: moving load changes the measure, so the balance chases its own tail. Measured figures guard instead (4).
    • A pushed assignment wire. Not chosen: the pull already carries the worklist, and the 30 s propagation ruling (#1265) holds for a move.
  • Context: One node at a site has a ceiling; #1624’s concurrency work raises it but does not remove it. The corporate shape at 3,000 systems is 30 sites and about 9,000 components, about 300 components a site. A site past one node’s ceiling, or one that wants a standby, has no way to use a second node except splitting its endpoints by hand. Co-locating a component with its power, host and path neighbours keeps the gate’s hold set and upstream propagation node-local (#1648). A split pair is still correct, carried by the cross-node relay (#1655), so affinity is soft.
  • Measured baseline: not yet measured (thin cut, #1690).
    • The issue asked for a lab baseline: two nodes at one site, manual placement, and each node’s tasks, utilization and max lateness from omniglass lab measure.
    • Three things block it on main today:
      • the scale lab runs one node per site;
      • lab measure reports no per-node figure;
      • the node publishes neither its lateness (#1625, open) nor a busy fraction (#1686).
    • #1690 adds --nodes-per-site to the scale lab with deterministic manual placement and a per-node block in lab measure. It records the table here. #1688’s end-to-end test is judged against it.
  • Build slices: #1686 (capacity signal), #1687 (component-on-one-node invariant), #1688 (assignment), #1689 (rebalance on loss and join), #1690 (two-node lab baseline).

ADR-1639: The scale lab closes the loop from a pull-only bracketed snapshot of each endpoint

Section titled “ADR-1639: The scale lab closes the loop from a pull-only bracketed snapshot of each endpoint”
  • Date: 2026-11-09 | Status: Accepted | Pages: simulation, the lab, test-driven
  • Decision:
    1. Pull-only, bracketed snapshots. The simulator and the node each keep cumulative counters that never reset on read, and the lab pulls them over the bus through GET /nodes/{name}/simulation/observation, which reads the simulator, the node, then the simulator again. A request in transit between two reads falls inside the bracket, so it can only ever be a masking term, never a gap. The hit stream was refused as the source: it is a once-a-second push the server keeps in memory and folds per device, so a window’s edges would be wherever a publish happened to fall, and a lost publish would read as a lost request. Node self-metrics as rows were refused too: they land a report window late, on the ingest path the loop is checking, so the instrument would depend on the thing it measures.
    2. Matched units on both ends. A connection, a request (one exchange, settled by exactly one of answered, refused, error, dropped, withheld) and a stream, counted where the bytes leave the node and where they reach the endpoint. withheld is the simulator’s own planted loss, kept apart so a fault never reads as loss. The counters are raised and read in a fixed order (in flight before received, outcome before leaving flight; the reader takes received, in flight, outcomes) so no snapshot shows a false gap, and the hot path is a fixed row per device and atomic adds, with no allocation.
    3. A summable histogram. Service time is a fixed log-linear histogram (eight buckets to a power of two of microseconds) in a shared obsstat package, beside an in-flight high-water ring of ten-second epochs; histograms from every node merge by summing buckets. A t-digest was refused because it cannot be summed across nodes without its own error.
    4. Every gap is a lower bound with its mask beside it. The hops are connect-not-accepted, sent-not-received, received-not-settled, answered-not-returned, published-not-landed, spool-dropped and unhit-endpoint; each reads positive only where something was lost, and what could hide a loss is printed apart as masked, never subtracted silently. Traffic on a protocol the node does not tally yet (sessions and streams, #1661) is an untallied mask on answered-not-returned, and an answer the node gave up on is counted late only up to the residual, so a timeout never hides more than the gap it explains.
    5. Receipts on the database’s clock. The start mark reads the database’s clock and then the nodes; the end mark reads the nodes and then the clock, so the receipts that clock bounds fall inside the reads. A node’s receipts are counted by starts_with on its subject prefix (a node name’s own characters stay literal) from 30 s before the window (the bus’s acknowledgement wait). Each mark then waits, up to three minutes, for the ingest lane to land a sample a node probed after its reads: the lane is serial and in stream order, so every batch acknowledged before the reads has landed by then. The receipts in the margin, in the backlog the lane landed before it drained past the start, or after the end are the mask; a fixed wait in place of the drain was refused, since a lane further behind than the wait reads as a lost batch. The window is refused past 23 hours, inside the server’s 24-hour receipt prune.
    6. Poll targets from the worklist’s own rule. The enabled poll targets are read in SQL with driver.IsBaked’s test, each at the interval its node actually runs it (a driver poll at its function’s schedule, a reachability probe at the node’s probe interval, both read off the node container’s command), and only targets due at least twice in the window count. The report prints each protocol’s target count beside what it received.
    7. A measurement, not a failed run. When the loop cannot be read, the lab measurement still reports every other figure and names why under endpoints_not_measured. The gate on the gaps being zero is #1640’s, not this measurement’s.
  • Divergences and follow-ups:
    • Unhit endpoints are read since the simulator started, from a sample of device ids capped at twenty per protocol, with the rest a mask; checking every target inside the window is #1663.
    • An applied impairment marks the whole node impaired, every gap; attributing it to the protocol it touches, counting its changes, and the kernel-impairment run are #1662.
    • The node tallies http, snmp and tcp reachability; session and stream exchanges are #1661.
    • The run that plants a spool drop and reads spool-dropped is #1664.
    • The five worst overlapping faces are counted since each simulator started, not windowed.
    • The bus’s acknowledgement wait and receipt horizon are mirrored as local constants in the lab package rather than imported: both are the bus’s own unexported tuning, and the lab does not import the bus.
    • Every ScaleSample carrying the report waits on #1632’s sampling mode.
  • Context: a feature push should never quietly cost the fleet a request. The hit stream says a device was touched; it cannot say every request a node sent arrived and was answered, or name the hop that lost one. This is the instrument #1640 gates on.

ADR-1640: A scale lab measured end to end gates against a committed baseline

Section titled “ADR-1640: A scale lab measured end to end gates against a committed baseline”
  • Date: 2026-11-10 | Status: Accepted | Pages: test-driven, lab, labels
  • Decision: (#1640; amends ADR-0094, and extends ADR-1277.) A whole scale lab, measured end to end, becomes a sixth performance instrument and the fourth that gates. omniglass lab perf check (internal/cli/labperf.go) brings up --runs throwaway labs of a named size one after another, measures each with lab measure’s own MeasureScale, and compares them with the size’s baseline under internal/labfootprint/baseline/ through one pure function, ComparePerf (internal/labfootprint/perfgate.go). Go micro-benchmarks (make bench, bench-sim, compress-bench) stay diagnostic under ADR-0094, unchanged.
    1. ADR-0094’s three refusals, answered in turn.
      • No CI job and no merge gate on a duration. A CI job exists (.github/workflows/perf.yml), but it runs only on the run:perf label or a dispatch, skips fork PRs, and is never a required check. Whether it ever gates a merge is a later decision, once a record of its noise exists.
      • No stored baseline: a number from a different machine on a different day. A stored baseline exists, but it is generated (lab perf baseline, never by hand), per host class, and carries its host’s fingerprint (CPU model, logical cores, memory). A time or a usage figure gates only on the host that fingerprint names; on any other it reads reported and gates nothing. The counts it holds do not depend on the machine, and gate everywhere.
      • No timing assertion anywhere. Still none in a test or a benchmark. The times the gate compares are medians of whole runs against the spread of those runs and of the baseline’s, never one run against a threshold, and only on the host the baseline was measured on.
    2. Three classes, one table each, extended by adding a row. exactFamilies and gatedFamilies in perfgate.go are the tables; the docs render them (docs/src/generated/perfgate.json, written by make gen). A new figure is one row and its reader.
      • Exact: every closed-loop gap (#1639), ingest_lag_not_measured, redeliveries, each telemetry kind’s delivery_loss per hop (#1641), and delivery_unsettled_boots; a failed loss row names its kind, hop and cause, and an unsettled boot is named (#1695). Each must be 0, whatever the baseline holds; a baseline whose runs read otherwise is refused. A figure that was not read is not a 0: a closed loop with no node answering, or a delivery read with no kind carrying items, fails.
      • Host-independent: metric rows a minute per system (2 percent, either way, since fewer rows is lost work), property rows a minute per system (25 percent, either way), database bytes a day per system (15 percent; both set from measured spreads, below), WAL bytes per sample (10 percent, provisional, below), samples per batch (5 percent, either way).
      • Host-dependent: endpoint latency p95 per protocol (20 percent), ingest lag p95 (20 percent), server millicores and working set (15 percent), fleet view p95 (20 percent). Each fails only on its worse side.
    3. The noise rule. Each gated figure is the median of the runs, with its spread (highest less lowest) beside it. It fails only when the median is past the baseline’s by more than the tolerance and by more than the baseline’s spread plus the runs’ spread. When the runs’ own spread exceeds the tolerance it reads noisy, never pass: those runs could not have seen a regression of that size, and the table prints it first. Noisy does not fail. A figure better than the baseline by more than its tolerance reads improved, which never fails and asks for a refreshed baseline. The default is three runs. With n = 3 a rank test such as Mann-Whitney cannot reach significance at any useful level (its smallest two-sided p for 3 against 3 is 0.1), so the spread rule stands in for it: it is the strictest statement three runs can support, and it errs toward not failing.
    4. A run is clean before any figure is read. The verdict is invalid, and the check exits nonzero, when the runs measured another size, window or warm-up than the baseline’s; when this build’s scenario places a different device set (the baseline records a digest of the planned fleet, so a catalog change says to regenerate rather than reading as a regression), or a run or the baseline records no digest at all; when a node’s endpoint report reads restarted; or when a device carried an active impairment. Validity names the run it failed in.
    5. The fingerprint is read only where it describes the lab’s host. The runner reads its own CPU, cores and memory, so it records them only when the Docker daemon is local (lab.IsLocal); a run against a remote daemon records no host, and its host-dependent figures read reported. Two hosts match on CPU model, cores and memory; the Go version and the image build are recorded for the reader and do not decide a match.
    6. The sizes, and the window. ci is corporate at 300 systems, which a standard GitHub runner holds; laptop is corporate at 1000. 3000 belongs to #1719. Both warm up for 2 minutes and measure a 5 minute window, a whole multiple of every interval the scenario’s drivers poll at and of the lab cadence (2 s, 5 s, 10 s, 30 s, 1 min, 5 min), so every run counts the same whole rounds. A run sets no backlog (the retention probe restarts the server) and no system page clients. The issue’s first guesses (50 and 500) were raised on the architect’s ruling; refusing a run measured at another size carries #1719’s wording, the run measured dev at 0 systems; the baseline is corporate at 300.
    7. WAL per sample’s 10 percent is provisional. It moves with checkpoint timing, which a 5 minute window does not hold still. The value is set wider than the counts’ until the committed baselines’ spreads say what it should be; baseline generation refuses a figure whose spread passes its tolerance, so a value too tight shows up as a refused baseline, not a muted gate. The first ci dispatch (#1751) did exactly that for two figures, and both tolerances moved on its three runs’ spreads. Property rows a minute spread 5.5 percent past their 2: a ci window holds about 90 property rows, whose count noise alone is about 10 percent a run, so the tolerance is 25 percent, still tight enough to catch a doubling. Database bytes a day spread 7.2 percent past their 5: the database grows in allocation steps a 5 minute window does not average out, the same class as WAL, so the tolerance is 15 percent. WAL per sample spread 0.7 percent and metric rows 0.6, so their 10 and 2 percent stand. The second dispatch (run 42934069932) refused two host-dependent figures whose spreads an earlier dispatch had read at 14 percent: the server’s working set (57.9, 69.6 and 74.2 MiB, 23 percent past its 15) and the fleet view p95 (17.5, 14.6 and 12.2 ms, 37 percent past its 20). Here the measurement changed, not the tolerance. The working set had been one read at the window’s end, so each run landed wherever the Go heap’s collection cycle happened to be; it is now the median of about 30 reads taken across the window, a read every 10 s besides the two ends, for every container the report lists, while CPU stays the window’s delta. The fleet view p95 had been the nearest-rank p95 of 20 reads, which is the second slowest, so one slow read moved it; each size now times 100 reads, five above the p95. Both change what a run measures, so the laptop baseline must be generated from a build that carries them.
    8. The baselines are generated on the host class they gate, and not on a shared host. The ci baseline comes from the perf workflow’s workflow_dispatch with update set, which uploads corporate-300.ci.json as an artifact; the laptop baseline from make perf-baseline SIZE=laptop on the architect’s laptop. Committing either is the author’s act, and a PR that changes a baseline file says why in its body (the ship-slice checklist holds it). The slice that built the gate ran on a shared build host whose fingerprint gates neither class, so it ships the generator and not the files; committing both, with three laptop passes and a labeled CI run, is #1751.
  • Context: the architect’s ask: measuring latency, queue depth and parallelism is how a feature push does not “nerf performance” unnoticed. lab measure already produced the whole report, but nothing compared one run with an earlier one. #1632’s --append series gives the gate a second input: --samples FILE reads a sampling run’s last N lines in place of fresh labs, with the same rules.
  • Not chosen:
    • A gate on one run. One run’s spread is zero, so a single run against a single-run baseline cannot tell a regression from the host’s noise; the median and the spread are what make the gate believed rather than muted.
    • A tolerance file. The tolerances are Go next to the comparison, so changing one is a reviewed code change.
    • Seeding the simulator’s behaviors from a stable key. Behaviors seed from each device’s id, a database UUID, so two builds of a fleet place the same devices (the plan digest locks that) but not the same behavior seeds. The counted figures read the poll schedule, not the behaviors, so the gate holds without it; a stable seed key is #1749.
    • Counting a moved impairment. The runs are refused on an active impairment; a change counter that would show one set and cleared inside the window waits on #1662, and the gate reading it is #1750.

ADR-1641: Every telemetry item is accounted on its batch’s receipt and read as a loss ratio

Section titled “ADR-1641: Every telemetry item is accounted on its batch’s receipt and read as a loss ratio”
  • Date: 2026-11-09 | Status: Accepted | Pages: messaging, nodes, scaling, lab
  • Decision: (#1641, the first slice under #1623.)
    1. One measurement, one shape. Every kind (metric, property, event, log) at every hop reads loss = (in - out) / in, the kind a value and never part of a key. Out is the items accounted for in the store: stored, and coalesced (an unchanged property the transition guard skipped, #1595). A kind with nothing in has no ratio, never a 0; a hop a kind does not cross has no row. End to end is 1 - prod(1 - loss) over the hops a kind crosses.
    2. The ledger rides on the batch. The spool stamps each batch, under its lock, with a DeliveryLedger: a boot minted when the spool starts, a dense seq from 1, the node clock’s minted, resolved (every batch at or below it had left the spool) and per kind the count it carries and the before the boot minted earlier. A missing batch is a hole in seq whose items its neighbors’ offsets give, in any arrival order; resolved says when a hole can no longer fill.
    3. The receipt is the accounting row. The landing transaction writes the ledger and the outcome of the pass that commits on the batch’s telemetry_receipt row, so the accounting is exactly-once with the data and adds no rows to the footprint being measured. A redelivery the receipt absorbs counts one more deliveries and lands nothing; the first delivery is told by xmax = 0, since an on conflict do update reports one affected row either way. Amended (#1691): a Term receipt is not a landing, so the first delivery is told by deliveries = 1 after the upsert, which a landing that replaces a Term receipt also leaves (ADR-1691).
    4. Refusal is loss. Every refusal (refused-unregistered, -writer, -instance, -invalid, -empty, -write), orphaned and unidentified count as loss, and the read names the largest outcome behind a loss as its cause. Each item takes exactly one outcome. Amended (#1659): unbound counts as out, not loss (ADR-1659).
    5. Deduplicated sits beside the ratio. In and out count distinct items; a redelivery’s items read as deduplicated next to the ratio and never move it.
    6. A gap belongs to its lower neighbor. A window counts the receipts minted in it and the gaps above them; a gap below a boot’s lowest receipt is that receipt’s. Each gap has one owner, so adjacent windows sum to one. A boot with no batch minted after the window, or whose resolved has not reached past the window, reads unsettled with no ratio, as does every boot while the stream still holds batches.
  • Context: The signals of loss existed (a log-scraped redelivery count, receipt inserts that include rolled-back passes, a dozen drop paths that warned or stayed silent), but each needed insider knowledge to read, and none said how many items a run lost. A uniform ratio with 0 healthy can be read, and gated, without that knowledge.
  • Thin cuts:
    • The outcome is tallied per batch from the committed pass (IngestBatch.outcome over the live and refused groups and the consumer’s own tally), not from per-group written and coalesced counts on LandResult as the issue proposed; the coalesced count comes from the property write directly.
    • The push lane recorded no ledger and read no row (closed by #1696, ADR-1696); a whole-batch Term leaves no receipt and reads as missing (#1691); a node’s spool drops and a killed boot’s tail read as ingest missing or not at all until the node hop (#1692). Amended (#1691): a whole-batch Term now records a Term receipt and reads under its own cause; only an undecodable batch still reads as missing (ADR-1691).
    • The read finds a boot’s lower neighbor by seq, however long before the window it was minted, while its receipt is kept (a day): a neighbor pruned before a long outage ends reads the gap below the window as missing. The window is capped at 23 hours by the receipts’ day.
    • The settle reads the stream’s backlog from the server’s own bus-consumer-pending and bus-consumer-ack-pending platform gauges (#1628), not from JetStream directly. Amended (#1758): waiting for both to read 0 never settled under steady load, where the consumer always holds the batch in flight. The server now also gauges the consumer’s ack floor (bus-consumer-ack-floor) and the stream’s last sequence (bus-stream-last-seq), and the settle waits for a report whose ack floor reaches the last sequence a report read after every batch the read reconciles was published: the mint of the batch that proved each boot settled, or of the next boot’s first batch for an ended one. Everything at or below the floor was answered, so batches behind it no longer hold the read. The settle’s default bound rose from 3 to 5 minutes, four 60 s report windows and a margin.
    • The induced unregistered-key end-to-end run is #1698, and the healthy end-to-end test ran by hand against a private image, not through make test-lab, which rebuilds the shared dev image.
    • The receipt grew from about 290 to about 675 bytes a batch, past the scaling target at 1,000 systems; #1699 narrows it or revises the target.
  • Not chosen:
    • Counting refusals as out. A fleet refusing a third of its samples would read 0.
    • New accounting rows. They perturb the footprint they measure (#1639); columns on the receipt commit with the data and cost no extra row.
    • Keying on the batch id. A UUIDv7 is time-ordered but not dense, so a missing batch leaves no hole in it.
    • Counting deduplicated items on both sides. A retry storm would dilute the ratio and could hide real loss.

ADR-1644: Platform health is a page behind node:read, not a dashboard

Section titled “ADR-1644: Platform health is a page behind node:read, not a dashboard”
  • Date: 2026-11-09 | Status: Accepted | Pages: views, ui, api
  • Decision:
    1. A page, not a dashboard. Platform health is PlatformHealth.tsx over GET /views/platform, a composed read like GET /views/fleet, not a ViewResult the dashboard engine renders. The dashboard engine is #523’s; converting this page is a later cut of it, and building a second renderer contract here would fork it. The page holds no key list: the view returns the column groups (storage.PlatformViewGroups, the one place they are written) with each key’s catalog label, unit and description, so a key added there is a column on the page with no web change.
    2. The door is node:read. The rows are ListNodes, which reaches a node only through a fleet-wide read, so the route and the nav entry are gated node:read, and a location-scoped node:read is a 403, as /nodes answers it, not an empty table that reads as “no nodes”. The console never retries a 4xx on this read: the page and the Home tile name the fleet-wide node read the caller lacks at once, instead of a loading line that outlasts three retries.
    3. Each tier is scoped on its own. component:read is the figures, the node verdicts and the server’s identity; system:read is the platform verdict. The platform components belong to no place, so anything short of a fleet-wide read reaches none of them, and the view says so with figures_read: false and leaves the figures out instead of zeroing them. A 0 would claim the node measured nothing wrong.
    4. server-started-at is a string. The ticket specified a timestamp property type; the catalog has none (a property’s data_type is string, int, float, bool or json), and adding one is a property-lane change of its own. The start time is a string held to RFC 3339 UTC by its validation pattern, parsed by the view into started_at. A timestamp type, when one lands, replaces the pattern.
    5. The platform system is absent, not null. The ticket’s body had system null without a fleet-wide system read. Huma cannot mark a struct reference nullable, so the field is omitted instead; the page treats absent and null alike.
    6. The Home tile has the same door. The Collectors placeholder became Platform: the platform verdict and the count of nodes whose pill is not up, linking to /platform, shown only to a caller holding node:read. Whichever of this and #523’s Home v1 lands second carries the tile into the other.
    7. A window count is current only while its window is. The ticket’s view batched the latest sample per (component, key). For a gauge that is the current reading, but the overrun, skip, drop, failure and expired counts are written once a window and only when nonzero, so their latest sample is the last window that counted something, however long ago. The view shows such a count only while it is within two collection report windows of the read (the command pass’s 15 s window fits inside the shortest, 10 s, doubled) and leaves it absent after, which the page reads as not reported. A key split by instance is the sum of the instances written at its newest time, so expired commands are undelivered plus unexecuted, not whichever row sorted first. storage.PlatformWindowKeys names the window keys, held to the catalog’s “reported only when nonzero” by test. Since the 2026-11-10 ruling every windowed platform count is written every window, zero when quiet (ADR-1625), so no grouped key ages out any more: the window key set is empty and stays as the guard for a count written only when nonzero. The instance sum still holds.
    8. A node opens two ways. A row opens the node’s platform component, the ordinary component detail, where each figure has its history. A secondary link opens the node’s blade on the Nodes page through a new ?n=<name> deep link, so editing stays where it lives.
  • Context: #1643 asks the platform to be monitored the way a fleet is. Every figure the page shows was already a sample on a platform component (#1625, #1626, #1627); what was missing was one read of all of them and a surface an operator opens first. The server panels (#1645), the Loss group (#1646) and the simulation section (#1647) add to this page.

ADR-1645: Server panels rank in SQL and flag a panel from its alarm’s rule

Section titled “ADR-1645: Server panels rank in SQL and flag a panel from its alarm’s rule”
  • Date: 2026-11-10 | Status: Accepted | Pages: ui, api, Platform health
  • Decision:
    1. Both request keys are ranked. The ticket ranked http-request-duration-max alone and returned http-request-count per instance. A route table is as large for one key as the other, so both are cut in SQL to the ten highest instances of the key’s newest time, highest first: the slowest routes and the busiest. PlatformServerKey.Rank carries the cut, so a third ranked key is one field in storage.PlatformServerGroups.
    2. A panel is flagged from its alarm’s rule. An alarm carries no key of its own. The view reads each server’s open alarms with the sample_key of the rule that raised them, and the page flags the panel that holds that key. A hand-raised alarm, or one whose rule is gone, has no key and flags no panel; it still counts in the server’s “open” badge. The page holds no threshold.
    3. A window figure ages out. Most server figures are gauges sampled every window or retention facts the hourly pass writes, and each reads as its latest sample, per instance, unsummed, however old. The keys the server writes only for a window that observed something (a route’s timing and count, a slow query, ingest lag, a landed batch, a drop reason) are marked PlatformServerKey.Window, and the view leaves such a sample out, instance by instance, once platformWindowHorizon (two report windows) has passed, as ADR-1644 does for a node’s window counts. Without it a quiet fleet’s last ingest lag read as current.
    4. A ranked key with no window is one row. Before the first report window a ranked key has no instance to rank. It reads as a single not-reported row named by the key, not as a heading over an “owner-level” row.
    5. Pairs and sizes. A key read against its bound (db-pool-acquired of db-pool-max, metric-oldest-day-age of retention-window-days) prints as a / b. Byte figures print in KB, MB or GB. Routes wrap at their slashes.
    6. Sparklines read only for an open set. A closed server panel set asks for no series.
    7. The tooltip leads onto the series. A key’s tooltip is its catalog description plus an in-app link to the server’s platform component. InfoTip gained a same-tab link through the console router, so the link stays under the console’s /web base.
    8. The console e2e pushes a sample. The lab’s empty scenario has no collecting node, so nothing would land in an ingest window. The e2e pushes one telemetry sample, then reads each panel’s figure after a report window.
    9. Walkthroughs and docs shots learned to wait. A walkthrough step can now hover, and a script can declare ready: a page and a target it waits for off camera before recording. The Requests panel fills only after the server’s first report window, so this keeps the recording inside its budget. A docs shot step can wait for a selector, with a timeout. The panel grid’s figures move with every capture, so the gate’s baseline masks the grid whole.
    10. The walkthrough follows a server figure. It no longer opens a node’s row. It opens the Requests panel, rests on the slowest route’s key, and follows the tooltip’s link to the series on the server’s platform component.
  • Context: #1644 shipped the page with its node table. #1627, #1628 and #1629 put the server’s request, pipeline and retention figures on its platform component, and this slice reads them. Loss stays #1646’s ratio. bus-telemetry-drop-count prints as its producer’s count until #1641 folds it into the uniform keys.

ADR-1646: Where work is lost is a composed read of the delivery keys, hop by hop

Section titled “ADR-1646: Where work is lost is a composed read of the delivery keys, hop by hop”
  • Date: 2026-11-10 | Status: Accepted | Pages: Platform health, messaging, api
  • Decision: (#1646, under #1623.)
    1. The hops are a declared table, read from one key set. storage.PlatformPipelineHops names each hop in pipeline order with its label, what counts as out and lost there, the class of platform component that records it (node or server) and the instance form that selects its series. The read selects delivery-in-count, delivery-out-count and delivery-loss-ratio on every platform component in one statement, and a hop’s rows are its class’s series at its instance form. A new hop is a table row and the keys its component writes, not a new read.
    2. One loss rule, composed from counts. A hop’s loss is (in - out) / in over its components’ summed counts (the newest window and the last hour), never an average or sum of their ratios; the end to end per kind is 1 - prod(1 - loss) over the hops that kind crossed (delivery.EndToEnd). Nothing in is no ratio, and a kind with no series at a hop is no row: neither reads 0. A component’s newest window counts toward the newest figures only while it is current, within two report windows (platformWindowHorizon, the horizon a window count already reads by): a node that stopped, or a server back under a new name, keeps its last window as its newest sample forever, and that window counts in the hour, not as now.
    3. A node’s Loss is a composed field, not a key group. The issue placed the node’s delivery as a column group of keys. The page shows one figure per node instead, the end to end over the last hour of the hops its own component records, every kind summed, and the view says which hops in loss_hops, so the page names them without assuming. The per-kind series stay on the node’s platform component, one click away.
    4. The node hop is #1659’s spool figures. It is drawn from the keys #1659 writes at the spool, before the node’s causes of loss by failure (#1692) exist, so it reads in, out and lost, not why.
    5. Hops with no figures are not drawn. The schedule hop (whether each run the worklist asks for is run, #1693) writes no delivery keys yet, so the path starts at the node’s spool; it is not drawn as a hop reading 0, which would claim a measurement that was not made.
    6. The walkthrough lab reports every 10 s. A lab started for a recording (walkthrough cadence) with its node seeds collection.report_seconds to 10, the setting’s floor, through the new hidden lab seed --report-seconds, so the first delivery and poll figures land well inside a minute’s recording. A learner’s lab and a lab with no node (the docs shots) keep the platform’s 60 s.
  • Consequences: the lab topology table gains the report window column. The server ingest hop’s small nonzero loss on a fresh lab was the dev seed’s unassigned identity, which ADR-1659 decision 7 counts as accounted for (#1641), so on the lab every hop reads 0.

ADR-1647: Platform health closes the loop over a server-held sliding window

Section titled “ADR-1647: Platform health closes the loop over a server-held sliding window”
  • Date: 2026-11-10 | Status: Accepted | Pages: simulation, api, ui, views
  • Decision:
    1. A sliding window, not a total since start. The simulator’s and the node’s counters only grow from the moment each starts (#1639), so a read of their totals would carry an hour-old loss into every read after it, and a repaired device would never read healthy again. The server instead brackets each node with a connected simulator on a timer (the simulator, the node, the simulator again, as lab measure does) and keeps the last brackets in a ring; the window is the oldest against the one before the newest, and the newest counts the window’s receipts, so a batch the bus acknowledged just before the window’s end has the next bracket to land. A loss reads while it is inside the window and clears once the window slides past it. That holds for every gap: received-not-settled, which #1639 read as the residual at the last read, counts only what went unsettled after the start’s residual, over what the simulator received from the start, so lab measure reads it over its window too; and unhit-endpoint’s in figure counts a component once per protocol, as its count does, however many of its poll tasks land there.
    2. The ring is in memory, per server process. It is not stored as platform metrics: a server that restarts warms up again, and a second server holds a ring of its own. Storing the gaps is a later cut if a history of them earns its place.
    3. One reconcile, in internal/closedloop. The hop-by-hop reconcile moved from the lab harness into a pure package with its loss ratios, its ring and the node cadence it assumes, so the server never imports the lab and lab measure reads the same arithmetic.
    4. The window is ten brackets of a configurable bracket. The ticket’s window was eleven brackets at a fixed minute. The ring keeps RingSpan (10) brackets of window plus the one after it and one more, and a node reads its first, one-bracket window after three brackets, growing to ten. The bracket is OMNIGLASS_CLOSED_LOOP_BRACKET, from 1s to 1m (the default), never past the receipt horizon: a lab you run brackets every 10s (a 100s window) and the throwaway labs the tests and walkthroughs run every second (a 10s window), so an impairment’s attribution clears inside a walkthrough’s budget. Receipts are counted from ReceiptMargin (30s, the stream’s ack wait) before the window’s start.
    5. The server assumes the nodes’ cadence. Which poll targets were due over the window depends on how often the node checks in and probes, which the node does not report. The server reads it from OMNIGLASS_CLOSED_LOOP_HEARTBEAT and OMNIGLASS_CLOSED_LOOP_PROBE_EVERY, which a lab sets from its cadence profile; a deployed server whose nodes run another cadence must be told it (#1722 has each node report its own).
    6. The gate is simulation:read, and a scoped component read is a 404. The devices in the window are unplaced simulator state spanning every component a node simulates, so the read needs an all-scope component:read. Short of it the route answers 404, as the ticket specified, where the node’s observation read answers 403; the page says the read needs a fleet-wide component read. A caller without simulation:read gets 403, where the ticket asked for 404: the permission is checked by the gate every route shares, which answers 403, and the route’s existence is no secret (it is in the published OpenAPI), so a one-off 404 there would hide nothing.
    7. Connect-not-accepted pools every listener. A connection is counted where a face accepts it, and the node tallies the dial, not the listener it reached, so the gap is one row per node, labelled any listener. A dial that never opens is not tallied, so kernel loss on tcp opens no connect gap (#1723). A websocket or wss probe tallies under websocket, where the simulator counts it.
    8. “Received above 0” became “reached”. A tcp reachability probe, or an ssh or telnet login that asks nothing, draws a connection and no request, so its protocol’s received count is honestly 0. The end-to-end check holds each polled protocol to received or accepted above 0, and the protocol table shows Accepted beside Received.
    9. Impairment attribution is node-wide. The node’s tally carries no device, so a gap cannot be pinned to the device that lost it: every gap on a node whose simulator has any impairment applied reads impaired (#1662 narrows it). The device table carries each device’s own impaired flag.
    10. Two figures are not wired, and the backlog is 0. The node does not report its dispatch queue depth or busy workers to the server (#1634, #1249), so they read “not wired yet”, never 0. The kernel backlog masking term is read only by the lab, so the server’s is 0.
  • Context: #1639 built the closed loop for a scale lab’s one-off measure. #1644 built Platform health. This puts the loop on the page, where an operator can break a simulated device on purpose and watch the platform account for the loss. Packet loss opens a gap only where the protocol rides on datagrams: snmp loses the request, while tcp retransmits, and a connect that never completes is not tallied as sent. The docs-shots lab runs no simulator, so the section has no screenshot yet (#1720); per-device answers (#1721) and the system a repeated device name belongs to (#1724) are later cuts.

ADR-1648: A disruptive command’s hold set follows dependency edges

Section titled “ADR-1648: A disruptive command’s hold set follows dependency edges”
  • Date: 2026-11-09 | Status: Accepted | Pages: core entities, commands, collection, nodes
  • Decision:
    1. Containment is not dependency. A component’s parent_id says where it sits (a line card in its chassis, a display in its rack); it says nothing about what goes down with what. A display does not reboot because its rack’s switch does, and a touch panel that lives in a different rack does reboot with the codec that hosts it. Dependency is its own fact, recorded explicitly, and a reboot never walks the containment tree.
    2. One table, three kinds. component_dependency holds an edge from a dependent to its upstream with a kind: power (fed from the upstream’s named outlet; the outlet is required on this kind and refused on the others), host (hosted by the upstream, so a reboot of the upstream takes it down) and path (reached through the upstream). The schema refuses a self edge, an outlet on the wrong kind and a duplicate; the gateway also refuses an edge that would close a cycle within its kind. Deleting either end deletes the edge. The edge is a fact about the dependent, so a write costs component:update on it and only component:read on the upstream.
    3. Each kind propagates one thing. power propagates power commands only: the PDU’s own gate closing (its reboot, its unreachability) holds nothing it feeds, since the outlets stay energized. host propagates disruption, not unreachability: a codec that reads down does not hold its panel, a codec that reboots does. path propagates any closed gate, which is the upstream reason’s question (#1652); this slice records it and does not follow it.
    4. Out-of-band is an endpoint’s fact. endpoint.out_of_band marks an API that answers through a reboot of its device (a BMC, a management port), so a reboot leaves its gate open. A power command still holds it: the outlet takes the whole device dark.
    5. A power command is marked on its type. command_type.power_outlet_param names the param that carries the outlet. It is set only on a disruptive type (a CHECK and a 422). No shipped type sets it until the outlet command lands (#1653), so today every disruptive delivery resolves as a reboot.
    6. One pure resolver. storage.ResolveHoldSet takes the target, the outlet (or none), the edges and the endpoints, and returns the held endpoint ids; the loader reads the edges and endpoints reachable from the target and calls it. The walk keeps a visited set, so a cycle that slipped past the create check (two creates racing) terminates and each endpoint is held once. Only endpoints placed on the delivering node are returned.
  • Divergences and follow-ups: this supersedes the plan to hold a component’s whole subtree and to model a feed as a power_source_id column on the component: a subtree hold took containment for dependency, and a single column could not name an outlet or a second feed. Following path edges is #1652; the outlet command type is #1653; a dual-fed device is #1654; holding endpoints placed on another node is #1655; reading an outlet’s observed off state rather than ending its hold at the hold_seconds backstop is #1656. The console surface for edges is not built; the API, CLI and MCP carry them.
  • Rejected: walking parent_id (containment is not dependency, above); a column per kind on component (one upstream per kind, no outlet, no second feed); one generic edge with no kind (a power edge and a host edge propagate different things, and the resolver would have to guess); holding a host dependent’s out-of-band endpoints on a reboot (they answer through it, as the target’s do); holding the PDU’s own endpoints on a power command (the PDU stays up while its outlet is off).

ADR-1650: An endpoint gate holds a set of reasons

Section titled “ADR-1650: An endpoint gate holds a set of reasons”
  • Date: 2026-11-09 | Status: Accepted | Pages: collection, nodes
  • Decision:
    1. The gate is a set of reasons. ADR-0158 held one refusal per endpoint. The node now holds a set, keyed by kind, and one table names each kind’s rank, scope and release rule: refused (rung-scoped, released when the connection fingerprint changes or the rung passes) and unreachable (the whole host, released on the probe’s next up verdict). The gate is closed while any reason holds, removing one kind leaves the others, and closed names the most causal reason, ties to the oldest.
    2. Refusal-only questions see only refusals. The rung checks, the ssh probe’s credential, a held session’s start and a datagram listener’s re-arm ask refusedAt, which ignores every other kind, so an unreachable endpoint keeps its probe credential and starts unrejected when the device returns. Polls, commands, run now and previews ask the whole set.
    3. Two consecutive downs close it. The nodes page said poller tasks run only if the verdict is up; one lost probe would then stop collection for an interval. unreachable is added on the second consecutive down verdict, dated from the first; an inconclusive probe neither adds nor resets the streak; the next up removes it. A rung that reads down only because a refusal holds it (snmp’s held get, udp’s gated request, or the terminal reply that just gated it) is the refusal’s echo, not a verdict, and is counted the same as an inconclusive probe, so a refusal never also reads unreachable and an operator’s retry is not held behind it.
    4. Held polls are not loss. A due poll under unreachable is held: nothing is sent, no failure and no backoff are booked, and the window counts it as poll-held-count, apart from poll-failure-count. The node chose not to send it, so it is not a lost sample, and a loss ratio built on failures stays honest. The first tick after the up verdict runs it. An endpoint with no probe has no verdict and fails and backs off as before.
    5. A held endpoint answers at once. A command answers unreachable since <time> without dialing; a run now and a preview answer 409 naming the reason, not 502.
    6. One published value, refusal first. endpoint-rejection renders the refusal as before, then each other reason after a ; as <kind> <since> <source>. rejection.Parse still returns only the refusal, so every existing reader is unchanged; rejection.ParseSet reads the whole set and the reachability read serves it as gate_reasons. A restarted node adopts the refusal only: an unreachable reason is the probe’s to re-earn.
  • Divergences and follow-ups: held sessions and listen tasks are not gated by unreachable (their own reconnect handles a gone device). The disrupted kind is #1651, upstream reasons #1652, and a reason seen by another node #1655. The console rendering the set is #1657.
  • Rejected: a second gate map beside the refusal (two sources of truth for one question, and every caller would have to ask both); closing on the first down verdict (one dropped probe stops an interval of collection); counting held polls as failures (a gone device would read as loss from the node, not from the device, and back off its return).

ADR-1651: A disruptive command closes its endpoints’ gates

Section titled “ADR-1651: A disruptive command closes its endpoints’ gates”
  • Date: 2026-11-09 | Status: Accepted | Pages: commands, nodes, collection
  • Decision:
    1. Disruption is the command type’s fact. command_type gains disruptive, quiet_seconds and hold_seconds. A non-disruptive type carries neither duration and a disruptive type’s hold must exceed its quiet (CHECKs, and a 422 at the API). The seed ships reboot disruptive with quiet 15 and hold 300; no other type is marked.
    2. The delivery carries it. PendingNodeCommands sets Disruptive and the hold set, every endpoint of the command’s component placed on the delivering node, so the node needs no second lookup and an endpoint on another node is not held (#1655).
    3. A gate reason, not a blocked lane. The nodes page designed a post-command wait: the lane blocks until reachability reports the host back up, with a fixed timeout. The node instead adds disrupted to each hold-set endpoint’s gate (ADR-1650’s set) before it sends, dated at the delivery and naming the command. The lane is free: other endpoints’ work runs, and a held endpoint’s command, run now or preview answers at once naming the command and since.
    4. Quiet, then each endpoint’s own up. For quiet_seconds nothing runs against a held endpoint: no poll (held, counted as poll-held-count, never a failure), no probe, no session dial, so a rebooting device is neither read as down nor hammered with reconnects. After quiet, an endpoint reopens on its own first up verdict, and only a probe that began after quiet counts, so an answer in flight at the delivery (the stale-up race) cannot release it. A down verdict releases nothing, and siblings release independently. The delivery starts the probe streak over and a verdict read before quiet ends neither feeds nor resets it, so unreachable takes two downs read after quiet and is never dated before the reboot.
    5. A counted backstop apart from the settle window. An endpoint with no up verdict by hold_seconds reopens anyway and the window counts it as hold-expiry-count, a device that did not come back in time. The hold is not settle_window_seconds: settlement watches a value the command set, and a fire-and-forget reboot has none, while the hold bounds how long its endpoints stay closed.
    6. A failed send still holds; a restart does not adopt. Whether the device received a command whose send failed is unknown, so its gates stay closed until up or the backstop. A restarted node adopts only a refusal from its worklist: the restart outlasts the moment and the probe reads the device fresh.
  • Divergences and follow-ups: the dependency-aware hold set (power, host and path edges, out-of-band endpoints) is #1648; holding dependents through upstream is #1652; hold-set endpoints and previews on another node are #1655. A per-binding quiet override is not built: boot time is the probe’s to read.
  • Rejected: blocking the lane until the host is up (it stalls every other task queued there and needs a timeout that is either too short for a slow boot or too long for a fast one); releasing on the first up seen after delivery (a reply already in flight reads up before the device goes down); reusing settle_window_seconds as the hold (one number would answer two questions, and a fire-and-forget command would need a settle window it never settles against); a second gate map for disruptions (ADR-1650 rejected two sources of truth for one question).

ADR-1652: A path upstream holds its dependents on the node

Section titled “ADR-1652: A path upstream holds its dependents on the node”
  • Date: 2026-11-10 | Status: Accepted | Pages: nodes, collection, core entities
  • Decision:
    1. The worklist carries the edges. A task reached through an upstream carries its component and its path upstreams: for every path edge from the task’s component, the upstream’s id, name and in-band endpoints placed on the same node. An upstream’s own component rides the edge that names it, so the tasks reached through nothing (most of a large worklist) pay no bytes for it and an 800-component site stays under the worklist’s wire cap. An out-of-band task carries none, so a management port is never held by what its device is reached through; an upstream on another node is left out (#1655); power and host edges are command-triggered holds (ADR-1648, ADR-1651), not this.
    2. Node-local and live. The node derives every endpoint’s upstream reason with one pure function (deriveUpstream) each time any endpoint’s reason set moves (a verdict, a refusal, a worklist adoption), so a dependent closes in the same pass as its upstream, not on the next pull. The moved endpoints are published at once and the dispatcher re-reads them.
    3. Any closed gate holds, refused included. Narrowing which reasons hold (say, not an http auth refusal) waits for the lab to show over-holding.
    4. Held, then waiting. While the upstream is closed the dependent’s polls are held and counted as poll-held-count, its probes do not run (so its probe result never moves and nothing fires on it: one root cause, no storm), and a command, run now or preview answers at once. When every upstream opens the reason moves to its wait phase: probes resume, polls stay held, and the dependent’s own up verdict releases it. A dependent with no probe is released at once; one that earns its own unreachable while waiting drops upstream, so its gate names its own cause. Downs its probe read before the hold do not count toward that unreachable: they saw the same outage through the upstream.
    5. The reason names the root. A dependent of an upstream closed only by a held-phase upstream reason inherits that reason’s component; any other closure names the upstream itself. Down A to B to C, both B and C read upstream A while A is closed; once A opens and B waits on its probe, C reads upstream B. Among several closed upstreams the one already named is kept, so the answer does not flap. Upstream ranks first among the kinds: it is the cause the others follow.
    6. Cycle-guarded. No reason is derived from a closure rooted in the endpoint’s own component, and a waiting upstream never holds a component it depends on itself, so a path cycle terminates (the iteration reaches a fixed point) and never holds itself up.
    7. Published and adopted. The reason rides the endpoint’s rejection row as upstream <since> <component-id>; the reachability read serves the component’s current name beside the id when the caller may read it. A restarted node adopts it as the prior hold, keeps it held until the upstream’s probes read up (the upstream’s own unreachable is re-earned, not adopted), and then re-derives it live, so a restart never drops a hold unseen, never invents one, and never probes through a dead upstream.
  • Divergences and follow-ups: a held session’s own reconnect is not gated by upstream yet (#1703); an upstream or dependent on another node is #1655; the console rendering of gate reasons is #1657.
  • Rejected: probing dependents while held (each would read down and raise its own alarm behind the one gateway, the storm the edge exists to prevent); releasing a dependent the moment its upstream opens (a peripheral that has not re-registered would read as fresh loss); deriving the reason on the server and shipping it on the next worklist (a pull is up to 30 s late, and the probe that closed the upstream is already on the node); naming the immediate upstream rather than the root (an operator would chase B while A is the cause).

ADR-1659: A hop writes its delivery in, out and loss ratio per kind every window

Section titled “ADR-1659: A hop writes its delivery in, out and loss ratio per kind every window”
  • Date: 2026-11-10 | Status: Accepted | Pages: nodes, collection, messaging
  • Decision: (#1659, under #1623.)
    1. Three keys, every hop, the kind as the instance. delivery-in-count, delivery-out-count and delivery-loss-ratio ((in - out) / in, 0 healthy) are declared once and written by both the node (on its node-self block) and the server (through its window recorder), each on its own platform component. They fold spool-drop-count and publish-failure-count (#1625) and bus-telemetry-drop-count (#1628, amending ADR-1628), which are gone from the seed, the writer class and the platform view.
    2. Every window, 0 when quiet. All three land every window for every kind, the counts 0 and the ratio 0 when nothing came in. The issue asked that a quiet window emit nothing; the architect’s 2026-11-10 ruling replaces that: a series that stops writing leaves its last loss standing as the latest reading, so a hop that dropped once and then went quiet would read lossy until its next item. This diverges from the ledger read (ADR-1641), where a kind with nothing in reads no ratio: the ledger read is over a chosen span, a platform series is a latest value.
    3. An item counts when it settles, at the hop that settles it. On the node: a batch the stream acks counts every item in and out; one the spool drops at a cap or by age, one the bus refuses, and a group that never encodes count in and not out; a batch held for a retry has not settled and counts in the window it does, once. On the server: a landed batch counts the store’s outcome (stored, coalesced and unbound out, refused and orphaned not), and a Termed batch (refused whole, its fifth delivery, unreadable metadata, an owner or task it may not assert) counts every item it names in and none out.
    4. A replay reads 0. A deduplicated item counts in and out (an earlier copy landed it), and a redelivery its receipt holds to a no-op counts its items in and out, so neither a lost ack nor a replay moves the ratio. Unlike the ledger read, where deduplicated sits beside the ratio, a window here has no receipt to name distinct items by, so the hop counts what it handled.
    5. An undecodable batch counts nothing on the server hop. It names no items, so it cannot add to in; its items read as missing on the ledger, and naming them on the hop is #1712.
    6. The API lane tallies its rejects. A push’s samples refused at derivation now enter the batch’s outcome, so they count as lost on the server hop as a node batch’s do.
    7. An unbound identity is accounted for, not loss. The architect’s 2026-11-10 ruling: an identity a conduit reports that no binding places (the outcome unbound, such as the dev seed’s deliberately unassigned UCC room zr-boardroom-b, kept per #1390) is configuration state, not data omniglass dropped. The operator has not assigned it, and the conduit’s unbound inbox already surfaces it (its count, keys and heard count); like a device that fails to answer, it is accounted for. It counts in and out on the server hop and in the ledger read, so a healthy fleet with an unassigned identity reads 0, and its count still prints on every row. This amends ADR-1641 decision 4, which counted it as loss; refused, orphaned, unidentified and missing stay loss.
  • Context: #1641 defined one loss ratio per kind per hop and read the ingest hop from receipts. The node and server still reported their drops as bespoke counts, in batches rather than items, each needing knowledge of its reasons to read. Folding them into the uniform keys lets #1646’s Loss group, and any rule, read every hop the same way.

ADR-1671: A server whose platform component cannot be ensured boots and reports nothing

Section titled “ADR-1671: A server whose platform component cannot be ensured boots and reports nothing”
  • Date: 2026-11-09 | Status: Accepted | Pages: storage, collection
  • Decision:
    1. One component, ensured before the bus. runServer ensures the identity’s component and passes its id into bus.Config.PlatformComponentID, the seam ADR-1629 left empty, before the bus starts, so the pass the bus runs at boot lands its figures too.
    2. A failed ensure is a warning. Under #1627 a failed ensure refused the boot. It now logs a WARN naming the identity and the cause, and the boot goes on with an empty id: the retention pass prunes and writes no figure, and the self reporter closes its windows and writes none, so database.slow_query_ms is still re-read each window and its recorder still drains.
  • Context: the retention figures were built behind a seam (#1629) until the server had a component (#1627). Self-monitoring is an account of the server’s work, not a precondition of it.
  • Rejected: keeping the refused boot (a bad OMNIGLASS_SERVER_NAME or a transient write failure would stop ingest and pruning to protect a report about them); retrying the ensure in the background (a next boot retries it, and the WARN names what to fix).

ADR-1686: A node reads one busy fraction for its one lane pool

Section titled “ADR-1686: A node reads one busy fraction for its one lane pool”
  • Date: 2026-11-13 | Status: Accepted | Pages: nodes
  • Decision: The node publishes worker-busy-fraction once per report window under the one instance lane: the worker time its lane pool spent running polls, probes, commands and runs, over the worker time the pool had (each dispatch window’s length times its workers, summed). When a kind of work gets a pool of its own, that pool reads the same figure under its kind as the instance, and lane keeps the pool that is left.
  • Context: #1686 specified one figure per scheduler pool, its kind as the instance, on the reading of ADR-1637 that polls, probes, commands and sessions each run on a pool of their own. The node as built runs every discrete request through one lane pool (the endpoint lanes share its workers), so per-kind figures would split one pool’s capacity among instances that do not own it, and their sum would not read 0 to 1. One instance names the pool that exists. The assignment reconcile (#1688) reads the node’s headroom, which is this pool’s. Dividing by the worker time the pool had, rather than by the latest worker count, keeps the figure at most 1 across a resize.

ADR-1691: A batch the server Terms whole reads under its own cause on a Term receipt

Section titled “ADR-1691: A batch the server Terms whole reads under its own cause on a Term receipt”
  • Date: 2026-11-10 | Status: Accepted | Pages: messaging, storage, lab
  • Decision:
    1. One outcome per Term path, each loss. An owner asserted on the node lane reads refused-owner, task rows outside the groups refused-task, a batch the gateway refused whole refused-batch, unreadable delivery metadata refused-metadata, and the last delivery the consumer allows abandoned. Every item the batch’s ledger declared takes the cause (delivery.Declared.Under), so the receipt reconciles with no shortfall.
    2. A Term receipt is not a landing. telemetry_receipt.termed marks it. A landing that finds it replaces it (its ledger, its landing time, one delivery, the landed outcome), so a node’s retry past the stream’s duplicate window still lands its rows. A Term that finds any receipt writes nothing: it never overwrites a landing, and the first Term’s cause stands. The closed loop’s receipt count (#1639) skips it, since it landed nothing.
    3. Best effort. A Term receipt that fails to record is warned and the batch is Termed anyway: holding it would stall every batch behind it, and its items then read missing.
  • Divergence: the issue listed refused-undecodable among the outcomes. An undecodable batch has no ledger the server can read, so there is nothing to name items against: it records no receipt, its items stay missing (read from its neighbors’ offsets), and the Term is warned. No refused-undecodable outcome exists.
  • Context: before this a whole-batch Term left no receipt, so its items read missing beside the batches dropped at the node or lost in between (ADR-1641), and the footer could not tell them apart.
  • Rejected: counting deliveries on a Term receipt (the batch’s items read once, and its redeliveries are not copies a landing absorbed); letting a later Term replace an earlier one (the first cause is the one that stopped the batch); a separate table for Terms (the read already reconciles receipts, and one key keeps a batch’s accounting on one row).

ADR-1692: The node hop reads its losses from runs the next batches carry

Section titled “ADR-1692: The node hop reads its losses from runs the next batches carry”
  • Date: 2026-11-10 | Status: Accepted | Pages: messaging, nodes, lab
  • Decision: (#1692, under #1623.)
    1. A drop is reported by the batches after it. A batch the spool gives up on (the count or byte cap, its age, a bus refusal) took a seq and never ships, so only a later batch of the boot can say what it was. The ledger carries dropped, runs of consecutive seqs dropped for one cause with their items per kind, on every batch minted after the drop until one of those batches is acked; the read keeps the longest copy of each run. Carrying runs rather than per-batch entries keeps a long outage to one entry; past 256 runs the oldest is forgotten and its items read as ingest missing, never vanish.
    2. Items lost before minting are running totals. Self-log lines the buffer dropped and groups that never encoded have no seq. The ledger carries lost, their totals per cause and kind since the boot began; a window’s share is the most any in-window receipt carries less the most any receipt below the window carries, so adjacent windows still sum.
    3. The receipt keeps the node’s account beside the ledger. A node_loss jsonb column on telemetry_receipt, written in the landing transaction like the outcome, rather than new rows: the account commits exactly when the batch does.
    4. The node’s out is the ingest’s in. A gap is owned as ADR-1641 owns it; of its items, those the runs inside it account for are the node’s loss under their cause (capped at the gap’s items), the rest the node shipped and the ingest hop reads as missing. End to end composes the two with 1 - prod(1 - loss).
    5. A killed boot’s tail is named, not counted. The spec asked the read to report it as unshipped. A boot followed by a later boot of the same node can no longer settle, so the read takes it as far as it landed and prints its last landed seq and when the next boot began. How many items the tail held is in no landed batch: counting it needs the next boot to report the old one’s watermark, which is #1733.
  • Context: #1641 read the ingest hop from receipts, so a spool drop read as ingest missing and a killed boot’s tail not at all. Naming the node’s causes lets the ingest row read only what was lost after the node shipped it, and gives the platform’s node hop (#1659) causes to point at.

ADR-1694: The sim hop is read per protocol, in requests, from the closed loop

Section titled “ADR-1694: The sim hop is read per protocol, in requests, from the closed loop”
  • Date: 2026-11-10 | Status: Accepted | Pages: lab guide, messaging
  • Decision: (#1694, under #1623.)
    1. Per protocol, in requests. The issue asked for a sim row per kind, items the endpoints answered against items the node collected. A simulator answers requests and cannot know which kinds an answer would have carried, so the sim hop is one row per protocol the nodes tally (closedloop.SimHop), counted in requests. The JSON row carries protocol in place of kind.
    2. Read from the closed loop’s narrowest span. Each node’s in is the requests the simulators settled between the start mark’s second simulator read and the end mark’s first, less the traffic the node does not tally; lost is what did not come back, less what is still in flight at the node’s end read. A node that restarted adds nothing to the summed rows, as it reads no gaps (ADR-1639), and the table names it (sim not counted) so a row never passes for every node’s.
    3. A refusal or error that came back is returned. The device said no and the task reports it; the hop carried the reply. Loss is a reply that never reached the node, by cause: withheld, dropped, then not-returned for the rest. Dedup reads -, since a request is never redelivered.
    4. End to end pools the sim hop. The sim rows’ requests are summed into one loss and composed, 1 - prod(1 - loss), into every kind with an ingest row. This approximates: a lost request carried some kinds and not others.
    5. The table outlives a missing ingest read. When receipts cannot be read, the sim rows still print and the table ends with ingest not measured and the reason. The converse holds too: a closed loop that was not read prints sim not measured under the ingest rows, since end to end then covers the ingest hop alone.
  • Context: #1641 defined one loss ratio per kind per hop and read only the ingest hop. #1639’s marks already bracket the simulators and the node’s request tally, so the sim hop’s counts were there to read; this slice reads them as a ratio beside the ingest rows.
  • Thin cuts: #1639’s published-not-landed and spool-dropped still print as batch-count gaps in the endpoints block rather than as loss ratios in the table (#1738, which leans on the node hop, #1692).
  • Not chosen: apportioning a lost request to kinds by the task’s datapoints. The node knows which task a request served, the simulator does not, and joining them per request needs a correlation neither side carries today.

ADR-1696: The push lane’s batches carry a ledger minted by the server and read as their own ingest row

Section titled “ADR-1696: The push lane’s batches carry a ledger minted by the server and read as their own ingest row”
  • Date: 2026-11-10 | Status: Accepted | Pages: messaging, lab
  • Decision: (#1696, under #1623, extending ADR-1641.)
    1. The server mints the push lane’s ledger as it publishes. The stamp is taken in the bus server’s PublishTelemetry, the one path the push route and the webhook listener share, not in the push route, so a webhook’s batches are accounted too. Its boot is minted once per server process; each server in a cluster is its own boot.
    2. One publish at a time, resolved the seq below. Publishes take a turn (a wait the caller’s context can abandon, bounded at one ack timeout, after which the caller is answered 503; either way it mints nothing), and each waits for the stream’s ack before the next mints, so the seq and offsets are dense in the stream’s order and every batch below the one being minted has its answer: resolved = seq - 1.
    3. A refused publish takes its items back. A publish the stream does not ack answers the pusher 503, and the pusher still holds its items, so they are not the lane’s loss: the server withdraws them from the offsets. The seq stays spent, so a copy the stream did store (its ack lost) lands under its own seq and never under a later batch’s.
    4. The receipt keys the push lane by no node. A push receipt carries the server’s boot and a null node; the consumer records the ledger and checks a declared shortfall exactly as it does a node’s batch. A batch with no ledger (a publisher before this build) leaves those columns empty and is skipped by the read, as before.
    5. Each lane reads apart. The read reconciles the node lane and the push lane separately and tags each row with its lane (in the JSON too). The push lane crosses the ingest hop alone, so its row is its own end to end; delivery_end_to_end and the end-to-end line compose the node lane alone, so a push-heavy lab cannot dilute a node lane’s loss or the reverse.
    6. Missing means something narrower on the push lane. A batch the ingest Terms whole records its Term receipt (ADR-1691) under the server’s boot and reads under its cause, so a hole there is a batch the ingest could not decode, or one the stream gave up before it was read; the footer says so per lane instead of one line for both.
  • Context: The push lane (an integration’s POST /telemetry:push, a webhook) recorded receipts with no ledger, so a Termed pushed batch or a refused item vanished from the delivery read: a lab reading 0 said nothing about what was pushed to it.
  • Thin cuts:
    • Serializing publishes caps the push lane at one stream round trip a batch, server-wide; the stream is local (the embedded server), so the cap is well above the lane’s traffic today. A lane that outgrows it shards the publisher, one boot per shard. A stalled stream holds the turn through every attempt of the publish at the head, so the turn’s wait is bounded: a caller behind it hears 503 within one ack timeout, not that stall times its place in the queue. Amended (#1746): measured at the corporate 3,000 push load (60 pushers, 5 pushes a second), the turn refused nothing and its p99 wait stayed near 0.01 ms, so the one publisher stays and sharding waits on a run that shows the turn near its bound (ADR-1746.2).
    • A refused publish whose copy the stream did store (the ack lost in flight) lands with offsets that overlap its next neighbor’s. Read alone it counts correctly, but when the batch above it is also missing, that hole reads up to the withdrawn count short. Both must happen in one window, on an embedded stream.
    • A server stopped mid-window leaves its push boot with no later batch, so it reads unsettled with no ratio, not missing.
  • Not chosen:
    • Stamping in the push route. Webhooks publish through the same bus path but not the route, and would stay unaccounted.
    • A ledger per pusher (per token or service account). It would need the pusher’s own seq to be trustworthy, which an external integration’s is not; the server’s publish order is the one sequence omniglass controls.
    • Composing push rows into end to end. The two lanes cross different hops; one product over both would mix a one-hop lane into a multi-hop one and move as traffic shifts between them.
    • Counting a refused publish as missing. The pusher was told and still holds the items; reading them as lost would charge omniglass for loss the protocol already handed back.

ADR-1698: The scale lab induces an unregistered key at seed time, by unregistering it

Section titled “ADR-1698: The scale lab induces an unregistered key at seed time, by unregistering it”
  • Date: 2026-11-10 | Status: Accepted | Pages: lab
  • Decision:
    1. The refusal is induced in the catalog, not the sim. A sim answers what a driver polls, and a driver’s emit names are checked against the catalog when the driver is written and again when it is attached. So the scale seed registers lab-induced-unregistered, writes a copy of the driver of the first planned device that has a plain property poll (lab-induced-<driver>), with one extra poll that emits the key from a plain property the device already answers, attaches the copy to that device, and then unregisters the key. The device’s derived tasks keep the baked name; nothing rederives a custom driver’s tasks, so the node collects it and ingest refuses every sample refused-unregistered.
    2. Off unless asked, scale lab only. lab run --induce-unregistered (hidden, beside --host-memory and --ready-timeout) carries the flag to the scale seed; a seeded fleet’s lab refuses it. The seed’s summary names the device and the driver copy.
  • Context: the delivery table (ADR-1641) counts a refusal as loss, but the sims emit only valid keys, so no lab ever showed one. The issue asked for a simulator option.
  • Rejected: a simulator profile flag (the sim cannot make a node collect a name no driver polls); a driver shipped with an unregistered emit (the catalog check refuses it, as it should); unregistering a key an official driver emits (every device on that driver would lose it, and the boot seed registers it again).

ADR-1699: The receipt packs its accounting, and its target is 1.2 GiB a day

Section titled “ADR-1699: The receipt packs its accounting, and its target is 1.2 GiB a day”
  • Date: 2026-11-12 | Status: Accepted | Pages: scaling
  • Decision: (#1699; revises the receipts-a-day row of the scaling page’s ingest table.) The receipt stores its ledger as bigint[], a (count, before) pair per kind slot, and its outcome as int[], sparse (code, n) pairs. The kind slots and outcome codes are append-only lists in internal/delivery, pinned by tests, and a migration converts the jsonb rows in place. A count past its column’s range is saturated at the ceiling rather than refusing the batch: a node’s ledger can declare any uint64, and its shortfall still reads as loss. The target for corporate at 1,000 systems becomes receipts a day under 1.2 GiB, about 800 B a batch at the 18 batches a second the table expects.
  • Consequences: On a three-system corporate lab (lab measure --systems 3, one 4-minute window), the packed receipt reads 151 MiB a day at 2.74 batches a second, down from 219 MiB at 2.82: about 669 B a batch, from about 942. WAL a sample is 486 B, from 510. Loss is 0 on every kind and hop in both runs. At 18 batches a second that is about 0.97 GiB a day, from about 1.36. Receipts are pruned at a day, so this is the table’s standing size, about 1% of the 81 GiB a day of metric table the same fleet writes. TestReceiptStaysInItsBudget holds a ledgered receipt’s row under 330 B; it measures 303 B, from 525 B as jsonb, and 516 B a receipt on disk with both indexes, from 770 B.
  • Context: The 0.5 GiB target was set for the narrow receipt, about 290 B a batch, before every batch carried its ledger and outcome (ADR-1641). 0.5 GiB a day at 18 batches a second is about 345 B a batch. The packed receipt compacted by VACUUM FULL still holds about 475 B (heap 319, primary key 106, the landed_at index 40), so only dropping the accounting reaches the old target, and the accounting is how the loss ratio is read.
  • Not chosen:
    • Insert the receipt last, with its outcome. It saves the dead tuple the outcome update leaves, about 66 B a batch, but the receipt is inserted first because its key is the exactly-once claim: the transaction that loses the race stops before it writes a sample (ADR-0311). Moving the claim to the end trades a fixed width for a change to the redelivery path.
    • Narrow the batch id or drop an index. The batch id is the subject and a UUIDv7, the key a redelivery collides on; the landed_at index serves the prune and the receipts read. Each saves tens of bytes against a correctness or a read path.
    • Shorten the 24-hour retention. Out of scope for #1699, and the day is what the closed loop and the receipts read look back over.

ADR-1707: A silent node alarms through a seeded rule over its checkin-age, not a node-liveness sweep

Section titled “ADR-1707: A silent node alarms through a seeded rule over its checkin-age, not a node-liveness sweep”
  • Date: 2026-11-11 | Status: Accepted | Pages: nodes, workers, collection
  • Decision:
    1. A rule, not a sweep. The design (#419) had a node-liveness sweep of its own scan heartbeat freshness and raise a node-owned node-down alarm directly, keyed for idempotency, since a dead node emits no sample for a rule to read. Since #1625 the server writes one: checkin-age, each claimed node’s seconds since it last spoke, every 15 s on the node’s platform component, growing while the node is silent. The seeded official node-silent rule reads it, so the event rule sweep and streak already in place raise and clear it, with its events, timeline, notifications and Rules page row like any rule’s.
    2. On the node’s platform component, at high. The alarm is raised where checkin-age is written, not on a node-owned arc, so it reads in the platform system’s health like every other self-monitoring alarm. high is an outage for that component.
    3. Fire past 90, clear at or under 90, no sustain. 90 s is three missed 30 s heartbeats; the age is already the sustain, so a second one would only delay the alarm.
    4. No OMNIGLASS_NODE_DOWN_AFTER. The threshold is the official rule’s. An operator who wants another writes a rule of their own on checkin-age.
  • Context: #1094 asks for a silent node and a filling disk to alarm with no operator setup. disk-nearly-full (over 0.9 for 2 minutes, cleared at 0.85) follows the ingest-lag-high shape and diverges from no design.
  • Rejected: a dedicated sweep (a second path to the same alarm, outside the rule’s events and state); a fire sustain on top of the 90 s age (three heartbeats is the sustain already).

ADR-1708: The platform’s self-narration is log lines on its platform component, not a table of its own

Section titled “ADR-1708: The platform’s self-narration is log lines on its platform component, not a table of its own”
  • Date: 2026-11-11 | Status: Accepted | Pages: storage, workers, properties
  • Decision: (#1708.) The platform narrates itself in log_line, owned by its platform component. The server’s retention pass writes one line per kind of work it did (info) and a warning when it fails, and the boot’s partition check writes one when it creates partitions, through the Storage Gateway, beside the figures #1629 already lands on that component. A pass that did nothing writes nothing; no pass raises an event. A failed line write is a process-log warning, never retried and never failing the pass. The design-stage internal_log table is not built.
  • Consequences: One read (the component’s logs) carries what the server did, filterable by facility and severity and pruned by the same severity bands as every other line. Reconcile’s planned per-run narration points at log_line on the server component too. The glossary’s internal_log rows stay until #1126 moves the built glossary terms; this decision is their removal.
  • Context: The storage page held a separate internal_log table for platform self-narration (startup, reconcile, migration, node-reg, config-sync), planned under #1094. The platform component (#1625, #1671) gives the server an owner that log_line (#589), the component-owned narration table, already serves: severity, facility, attributes, retention and the read all exist. Housekeeping told only stdout until now, which an operator of a hosted install cannot read.
  • Not chosen:
    • Build internal_log. A second narration table with its own retention, its own read and its own write path, for lines whose owner already exists as a component.
    • An event per pass. A pass is routine work, not a condition; an event each pass would flood the event stream and bury the events an operator acts on. A failure is a warning line and the retention-pass-failure-count figure, which a rule can raise on.
    • Receipt pruning narrated too. It runs continuously at debug and is not narration an operator acts on, so it stays in the process’s log.

ADR-1719: Every measuring lab runs the corporate fleet at a stated size

Section titled “ADR-1719: Every measuring lab runs the corporate fleet at a stated size”
  • Date: 2026-11-10 | Status: Accepted | Pages: lab, test-driven, scaling
  • Decision: (#1719; extends ADR-1277.)
    1. One fleet shape, one ladder. make test-lab and make lab-footprint run corporate at 20 systems (lab.MeasureScenario, lab.SmokeSystems); make scale-lab and make scale-measure default to 300; the ladder is 300, 1,000 and 3,000. 20 is the smallest round size past the last one that drops a product the manifest names, so the smoke run exercises every simulator profile the ladder does.
    2. The lab names its own fleet. lab run labels every container with omniglass.lab.scenario and omniglass.lab.systems. lab measure and the footprint read the scenario and size from those labels, never from their own flags; lab measure refuses a lab without them, or a dev lab, which has no size.
    3. The footprint keeps three rows. A corporate lab runs a node per site, so the footprint finds its containers by the project’s label and sums every node’s CPU and working set into one node row beside the server and Postgres.
  • Context: the footprint measured the dev fleet, whose broken devices and unassigned identities give it rows, a cost and a loss that share no shape with a deployment, while the scale measure ran corporate at whatever size it was asked. No figure from one level compared with the next, and the perf gate (#1640) needs a report it can trust to name its fleet.
  • Rejected: a per-node row in the footprint (its table would grow with the site count, and no level reads one node’s share); taking the size from the database’s count (a seeded fleet the operator edits would change the size a figure is quoted at).

ADR-1743: An outside actor is an emulator device a scenario declares

Section titled “ADR-1743: An outside actor is an emulator device a scenario declares”
  • Date: 2026-11-10 | Status: Accepted | Pages: simulation, lab
  • Decision: (#1743.)
    1. The push face is an engine primitive. A profile may declare push: {every, body}: the body is a template rendered for each system the device’s grant names, over its state, id and clock, and posted through POST /telemetry:push with the device’s bearer token on every tick. The face reads its systems off its own grant (GET /auth/me) and reads them again after any failure. The booking service is a profile (booking-service), its meeting day profile state and bookingsAt a template function, so the next pusher is YAML.
    2. A scenario declares its pushers like its devices. A scale manifest’s pushers names each one’s profile, how many a site has and how many of the site’s systems each pushes for; the validator refuses a profile with no push face and a pusher with no systems. The dev fleet’s fixtures declare theirs (sim_pushers) in the same terms, with the systems named.
    3. One provisioning path. The lab plans every declared pusher on the node of its site (the dev lab’s on its one node), mints its token per run, and hands the plaintext to that node’s simulator alone (OMNIGLASS_SIM_PUSHERS) and the hash and prefix to the seed (OMNIGLASS_LAB_PUSHER_TOKENS). The seed grants each pusher’s service principal the telemetry-pusher role (ADR-1370’s grant shape) on each of its systems and makes the minted token its only one; the scale seed refuses a plan pusher with no token before it touches the database. The plan and the logs never carry a token.
  • Context: ADR-1370’s booking service was a goroutine in the simulator’s run mode with one token in its own environment variable, so only the dev lab pushed and the scale lab’s push lane read nothing unless an operator pushed by hand. #1696 gave the push lane a ledger, and #1623’s measured lab needs every lab to exercise it.
  • Not chosen:
    • Keep the goroutine and add a scale twin. Two code paths for one actor, and a new pusher would be Go, not a profile.
    • A pusher as a component the node polls. A push has no endpoint and nothing polls the actor; modelling it as one would invent a reachability it does not have.
    • The seed mints the tokens. The token would cross the seed’s output to reach the simulator; minting in the lab hands each side only what it needs.

ADR-1746: A push refused at the publish turn is read as a publish row counted in pushes

Section titled “ADR-1746: A push refused at the publish turn is read as a publish row counted in pushes”
  • Date: 2026-11-11 | Status: Accepted | Pages: messaging, lab, platform health
  • Decision: (#1746, under #1623, extending ADR-1696.)
    1. The publisher reports each turn. delivery.Publisher hands an observer every turn as it ends: how long the caller waited and whether the wait ran out. The bus server’s pipeline metrics fold them into the window: push-lane-publish-count, push-lane-refusal-count, and the wait’s p99 and max (push-lane-turn-wait-p99, push-lane-turn-wait-max, a refusal’s whole wait included), written with the rest of the server’s figures once a report window. A caller that gives up while it waits (its request ended, as a pusher whose own timeout is under the bound does) reports its wait as abandoned: it folds into the p99 and max and into neither count, since it neither took the turn nor was answered 503. Reporting nothing for it would hide the queue from exactly the pushers that stop waiting first.
    2. A refused push is a publish-hop loss, not missing. A push whose wait ran out was answered 503 and minted nothing, so it holds no seq and leaves no hole: the ingest rows cannot see it. The read gives the push lane a publish hop with the outcomes turn-taken (out) and refused-turn (lost), read by summing the two counts over the measured window.
    3. Counted in pushes. A push is one call whatever it carries, and a refused one never said what it carried, so the row’s in and out are pushes. It names its subject pushes in the table and the perf figure (delivery_loss/push/publish/pushes), has no dedup, and is never composed into a kind’s end to end.
    4. No pushers, no row. A window with no publishes has no publish row rather than a 0 that no push earned.
  • Context: The push lane serializes its publishes (ADR-1696), and a push that waits past the turn’s bound is answered 503. Before this, nothing counted those refusals: a push lane refusing a share of its pushers read 0 loss in lab measure, and nothing on Platform health said it was near the bound.
  • Thin cuts:
    • The counts are stamped at each report window’s close, the receipts at each batch, so the publish row’s window can lead or trail the ingest rows’ by up to one report window.
    • A push that took the turn and then failed to publish (the stream never acked) reads turn-taken here; its items are taken back off the ledger as ADR-1696 decided, so it shows on neither row. The pusher was told 503 and still holds them.
    • The bound is the publisher’s (5 seconds), not a setting.
  • Not chosen:
    • Counting the refusal in items. The refused call’s payload was never minted; counting it would mean decoding a payload the server just declined to take.
    • A receipt for a refusal. Minting a ledger entry for a call that published nothing would put a batch on the ledger that the stream never saw, and every reader would have to skip it.
    • Folding it into the ingest row. The ingest row counts items the server minted; mixing calls into it would change its unit.

ADR-1746.2: The push lane’s single publisher holds at the corporate 3,000 push load

Section titled “ADR-1746.2: The push lane’s single publisher holds at the corporate 3,000 push load”
  • Date: 2026-11-11 | Status: Accepted | Pages: messaging, lab
  • Decision: (#1746, under #1623, settling the thin cut of ADR-1696 that serializes publishes server-wide.)
    1. One publisher per server stays. The push lane keeps its one turn: one batch in flight to the stream at a time, one boot per server process, a dense seq in the stream’s order.

    2. The evidence. The corporate scenario (#1743’s pushers: a booking service and a meeting platform webhook account at every site, each every 30 seconds), a 3 minute warm-up and a 10 minute window per size, read from the push-lane-* figures (ADR-1746) and the publish row:

      1,000 systems3,000 systems
      Sites and pushers18 sites, 36 pushers30 sites, 60 pushers
      Pushes in the window1,800 (3 a second)3,001 (5 a second)
      p99 turn wait, per minute0.005 to 0.0125 ms0.004 to 0.0105 ms
      Worst turn wait0.035 ms2.18 ms
      Refused at the turn00

      The worst p99 is about 1/400,000 of the 5 second bound and the worst single wait 1/2,300 of it. A push almost never finds the turn held, so the turn is not the push lane’s limit at the corporate target.

    3. What would reopen it. A run whose push-lane-turn-wait-p99 climbs toward the bound, or any refused-turn on the publish row, at a size inside the target. Then the change is the one #1746 scoped: a publisher per pushing principal, so one pusher’s batches stay ordered and different pushers publish in parallel, each with its own boot.

  • Context: ADR-1696 serialized the push lane’s publishes so its seq is dense and its resolved is always the seq below, and accepted the cap as a thin cut because the stream is embedded. #1743 put pushers at every site of the corporate lab, so a 3,000 run could have queued pushes behind one another until some were refused, which the loss gate would read as the push lane’s loss. ADR-1746 made the turn measurable; this reads the measurement.
  • Thin cuts:
    • At 3,000 the delivery read did not settle (#1758): the consumer always held one batch, so the node lane’s hops, the push lane’s ingest rows and end to end read unsettled. The ruling does not rest on them. The publish row and the turn figures come from the server’s metrics, not the receipts, and both read.
    • The turn wait does not show how long a turn is held, so the headroom above 5 pushes a second is not measured, only that the turn is almost always free at that rate.
    • Each size ran once.
  • Not chosen:
    • A publisher per pushing principal now. It splits the push lane into a boot per principal and a ledger read per boot, for a queue that measured empty. It stays the named change if the turn ever nears its bound.
    • Raising the 5 second bound. Nothing came near it.

ADR-1747: A webhook sender is a component whose signing key the seed mints

Section titled “ADR-1747: A webhook sender is a component whose signing key the seed mints”
  • Date: 2026-11-10 | Status: Accepted | Pages: simulation, lab
  • Decision: (#1747.)
    1. A sender is declared as a pusher is. A scale manifest’s pushers entry whose profile has a webhook face is a sender; its systems may be omitted, which scopes it to every system of its site (a meeting platform account holds all of a site’s rooms). The validator still refuses a profile with neither face.
    2. The seed provisions it from the profile and the driver spec. A profile’s webhook face names its driver (a shipped webhook driver) and a provision route. The seed reads the driver’s session credential, its secret type and its one listener identity key, and seeds the sender as a component with a platform-owned secret of that type (each field minted at random), a server-hosted endpoint of the driver taking that secret, and a binding per system on the identity key valued with the system’s name. No seed code names a platform.
    3. The simulator learns the rest from the device list. The list already carried a webhook’s path, scheme and secret to the simulator beside the node (ADR-1370); it now carries the bound identity values too, and the simulator adds each through the provision route, so the account’s report names every system of its site.
  • Consequences: The issue’s “its rooms are the site’s systems” holds for the bound rooms only. The account also keeps the five demo rooms its profile ships with (the dev lab binds four and leaves one unbound on purpose, and a product variant cannot remove a room), so each report lands those five in the conduit’s unbound inbox, delivered rather than lost; #1756 retires them. The sender is a component of the platform’s product, so it also takes that product’s polled ucc-rooms endpoint on the site’s node, as the dev lab’s platform does, and its rooms reach their systems through both endpoints.
  • Context: #1743 gave the scale lab token pushers, but its push lane carried no webhook receipts, so the measured corporate lab (#1623) exercised one of the push lane’s two ways in. A signed webhook is the other.
  • Not chosen:
    • The lab mints the signing key, as it mints a pusher’s token (ADR-1743). A token is verified by hash, so the seed never needs the plaintext; a signing key is verified by recomputing the signature, so the server holds the plaintext sealed either way, and the simulator already reads it back through the device list. Minting it in the lab would carry a secret through one more environment variable for no gain.
    • A sender as a service principal with a token. A webhook is authenticated by its signature on the endpoint it names, not by a bearer, so a principal would grant a permission nothing checks.
    • Count the webhook rows in a measure lane of their own. Webhook posts land on the push lane with the bookings, as the ledger already accounts them (ADR-1696); a separate lane is out of scope.
  • Date: 2026-11-11 | Status: Accepted | Pages: ui
  • Decision: (#1767.) Nodes is a child of the Admin group, ordered Users, Roles, Groups, Audit, Nodes, Status, Settings. Its route (/nodes), its node:read gate and its page are unchanged; only the door moves.
  • Consequences: The top level of the sidebar holds fleet work only. A node:read holder without the admin tier sees an Admin group holding Nodes, Status and Settings, as a *:read viewer did for Status alone before. Platform health’s per-node links into Nodes are unchanged.
  • Context: The UI page held that a node keeps its own sidebar entry because nodes are monitored and scope-controlled. Moving Platform health under Admin as Status (#1767) left Nodes the only infrastructure door on the top level, and the architect ruled that enrolling and tending nodes is administration.
  • Not chosen:
    • Keep Nodes top-level. It is not fleet inventory (Explore holds that), and its daily reader is the admin who enrolls nodes, so a top-level door spends rail space on an admin task.
    • Fold Nodes into Status. Status reads whether the platform is well; Nodes is where a node is enrolled and edited. One page doing both blurs a read surface into a write surface.

ADR-1780: A perf size is named by its rung

Section titled “ADR-1780: A perf size is named by its rung”
  • Date: 2026-11-11 | Status: Accepted | Pages: lab, test-driven, labels
  • Decision: (#1780; amends ADR-1640.) --size and make perf-check SIZE= take a rung of the ladder, 300 or 1000, and the committed baseline for a rung is corporate-<systems>.json. A size still fixes the scenario, systems, warm-up and window; it no longer names a host.
  • Consequences: The committed corporate-300.ci.json becomes corporate-300.json with its size label changed from ci to 300 and every figure byte for byte the same (the baseline decodes strictly, so the label moves with the name). The 1000 baseline is generated on the Proxmox worker (#1737), not a laptop. A new rung is a new size entry, named by its systems.
  • Context: The laptop baseline for the 1000 size refused on a figure whose spread was measurement drift (#1779), and the architect ruled that the 1000 rung runs on Proxmox and that the gate should be organized by the sizing ladder rather than by the machine a run happens on. A host-named size goes stale the moment the host changes; the host is already pinned by the baseline’s fingerprint, which gates the host-dependent figures.
  • Not chosen:
    • Rename laptop to proxmox. It repeats the mistake: the next host change renames the size again, and the name still says nothing about what is measured.
    • Keep host names and add rung aliases. Two names for one size, for a gate with no installed base, is a compatibility path for data that does not exist.

ADR-1787: The perf gate runs on a test VM, not in CI

Section titled “ADR-1787: The perf gate runs on a test VM, not in CI”
  • Date: 2026-11-12 | Status: Accepted | Pages: lab, test-driven, labels
  • Decision: (#1787; amends ADR-1640, item 1’s CI job and item 8’s ci baseline.) No workflow runs lab perf check or lab perf baseline. corporate-300.json is regenerated on a test VM of the same host class as corporate-1000.json (8 cores, 16 GiB), so one host class carries every rung, and a check run by hand on that class gates every figure.
  • Consequences: .github/workflows/perf.yml and the run:perf label are gone. A change that could move a figure is checked by hand on a test VM, and its PR body says so; a PR that changes a baseline still says why (the ship-slice checklist holds it). Off that host class the host-dependent times and usage read reported and the counts and exact figures still gate, as before.
  • Context: The 1000 rung moved to a test VM (ADR-1780, #1783), so the two rungs gated on two host classes, and a check of both gated every figure on neither. Each run:perf run held a GitHub runner for the better part of an hour, and a hosted runner’s CPU model is not fixed, so a check there gated its times only when the runner happened to match the one the baseline came from.
  • Not chosen:
    • Keep the CI job for the 300 rung. It costs Actions minutes on every labeled PR for a check whose host-dependent half gates by luck, and it keeps a second host class to regenerate on.
    • A self-hosted runner on a test VM. It would put a merge-adjacent job on infrastructure outside the repo, for a gate that is not required; running it by hand is the same measurement with no new trust boundary.

ADR-1830: A view binding reads its history and follows the tail from the same cursor

Section titled “ADR-1830: A view binding reads its history and follows the tail from the same cursor”
  • Date: 2026-11-16 | Status: Accepted | Pages: views, UI, API
  • Decision: (#1830, the read the dashboard widgets of #1831 to #1838 and the agent query tool of #2050 bind to.)
    1. A binding is the read. It names a primitive (metric, property, event, log), an entity selector (literal refs, or a kind and a filter), the keys, and a range (from and to, or window_seconds back from now), with an optional step_seconds. A metric or property binding answers one series per entity, key and instance, raw or on an epoch-aligned bucket grid; an event or log binding answers a page of rows, newest first, and a next_page. A selector past 200 entities, a raw read past 20,000 points or a grid past 5,000 buckets is a 422, never a truncated answer.
    2. The cursor is the seam. Every sample write commits to an in-process tail (a ring of 4,096 commits or 64 MiB of rows, whichever is less, its cursor <boot>.<seq>) inside the same write. A view read takes its connection before the mark, so ingest never waits on a read queued for the pool. The mark is optimistic: it reads the hub’s seq before and after select now() and retries if any commit published to the ring during that window (up to 3 times); if commits keep racing it after all retries the read answers a retryable 503 so the client backs off. No lock is held across database I/O, so ingest commits are never stalled behind a view read. /views:run reads every binding from one snapshot and answers the cursor it was taken at. A range with no to reads its raw rows with no upper bound, as the tail has none, so a row stamped ahead of the server’s clock is in the history or after the cursor, never both and never neither. /views:watch takes each binding’s cursor and carries only the rows after it.
    3. One stream per 32 bindings. /views:watch multiplexes up to 32 bindings on one SSE connection (the console opens one per 32 a page holds). A rows event carries each binding’s matching rows, its id the cursor after them; a mark advances an idle stream every 15 s. A reconnect’s Last-Event-ID resumes each binding from the later of it and the binding’s own cursor, and the client likewise only advances a binding’s cursor, never back to a slower binding’s stream position. A cursor the ring no longer holds (too old, or from before a restart) is a reset naming the binding or bindings, and the stream ends: the client re-runs that history and reconnects.
    4. The door and the fence. Both routes are gated by view:read; each binding also needs its kind’s read (component:read, system:read) and resolves inside that read’s scope. A filter selector resolves to the visible entities; a literal ref out of scope is the same 404 as one that does not exist. The watch resolves its selectors once, at connect, and its matcher carries only rows of the entities they resolved to. So that resolution never goes stale, a watch ends at its 15 minute lifetime and, on each 15 s heartbeat, once its caller’s session no longer resolves or their grants changed; the client reconnects from its cursor and the reconnect resolves again. One user holds at most 16 watches (1,024 per server); past it the open is a 429.
    5. Retention picks the source. A metric step that is a whole number of hours and reaches past the raw retention answers the older hours from the hourly trends, and covered_from says where the data can begin. Every metric bucket carries count, min, max, avg and last, so a renderer picks its aggregate without a second read.
    6. The console binds through one hub. createViewBinding (in web/src/lib/binding.ts) reads a binding’s history through the query cache, then subscribes it to the page’s one ViewHub, which opens /views:watch with every subscribed binding’s cursor (a second stream only past 32) and folds each live row into the history’s state. The stream is a fetch with a body reader, not an EventSource, so a pasted bearer token rides it as it rides every call. The hub keeps each binding’s cursor itself and reconnects from it. Platform health’s sparklines are the first consumer: one binding per panel, its sampled keys on the server’s platform component.
  • Context: The views design names a ViewResult ({columns, rows}) behind /views/{id}:run for named, saved queries (#523), behind which every read, coded pages included, was to go. A chart of a series, an event feed and an agent’s question about recent telemetry need the sample store read by entity, key and time, live, under the same scope as every other read; that is a read shape of its own, not a named query. The binding is it, and a named view (#2051) binds one. Coded console pages keep their typed reads: a view exists for the consumer no typed route can be written for in advance, so “everything read goes through a view” is withdrawn.
  • Consequences:
    • In the API end-to-end tests a viewer scoped to one location reads only its entities through a kind selector, gets a 404 for a ref outside it, and sees none of its samples on the stream (TestViewsBindingIsScoped); 30 concurrent pushes across the run’s snapshot each arrive exactly once (TestViewsHistoryAndLiveMeetWithNoGapOrDuplicate); a reconnect with Last-Event-ID repeats nothing (TestViewsWatchResumesFromItsLastEventWithNoDuplicates).
    • The tail is one server’s ingest landing, in memory. Rows a calc or a rule derives are not on it, and a second server would not see the first’s commits: a multi-server tail is a bus subject, not built.
    • A stream ending at its lifetime, or on a heartbeat that finds its caller changed, is closed in TestViewsWatchEndsAtItsLifetime and TestViewsWatchEndsWhenItsCallerNoLongerStands (a deleted credential reconnects to a 401, a removed grant to a 403); the per-user cap in TestViewsWatchRefusesPastThePerUserLimit. A scope change made to an entity (it moves out of a location the caller sees) still reaches a stream only at its next reconnect, at most its lifetime.
    • The client’s live fold takes the newest row to land as a bucket’s last, which is the newest by time for a series that reports in order.
  • Not chosen:
    • Polling the history: what the sparklines did, a request per series every 30 s, and a minute-old line on a page about whether the platform is keeping up.
    • An EventSource: it cannot send an Authorization header, so a bearer-token session could not stream.
    • A stream per binding: a dashboard of 30 widgets would hold 30 connections, past a browser’s per-origin limit on HTTP/1.1.
    • The bus as the tail: it adds a hop and a subscription per stream for rows the writing server already holds; it is the path to many servers, not to one.

ADR-1869: A node sizes its lane pool from its CPU and memory

Section titled “ADR-1869: A node sizes its lane pool from its CPU and memory”
  • Date: 2026-11-13 | Status: Accepted | Pages: nodes
  • Decision: --lane-workers (OMNIGLASS_LANE_WORKERS) takes a count or auto, and auto is the default. Auto reads the CPUs and memory the node may use from its cgroup v2 (cpu.max, memory.max, the tightest of its cgroup and every parent’s), and takes each as the tighter of the cgroup’s and the host’s (the host’s CPUs are GOMAXPROCS where it is below the machine’s count, which carries a cgroup v1 CPU limit and an operator’s own setting; its memory is MemTotal), so a limit the cgroup leaves open, or sets above the host, is the host’s. The pool is the tighter of a CPU bound, CPUs x 0.5 x (CPU + wait) / CPU per run, and a memory bound, memory x 0.25 / 1 MiB, clamped to 4 to 256. The node logs the count it took and the limits it read at boot, and reports the count once per report window as lane-worker-count under the instance lane.
  • Context: ADR-1249 fixed the default at 16, which leaves a large host idle and can oversubscribe a container on a fraction of a CPU. The CPU count alone is no better: a lane spends most of a run waiting on its device, so a CPU keeps many runs in flight, and the ratio of a run’s whole time to its CPU time sets how many. The cost figures are the product’s measured ones, conservative (the 3,000-endpoint lab’s busiest node, simulator included, ran 4.4 ms of CPU a poll); a node whose drivers cost more sets a count. Reporting the count beside worker-busy-fraction lets an operator read a saturated pool against its size.
  • The lab caps its nodes (#1892). Auto on an uncapped container reads the host, so the same scale run took a different lane count on every machine. The lab now runs each node at one CPU (23 lanes) and memory of twice lab.MeasuredCost’s figure for its site’s components, at least 512 MiB, with GOMEMLIMIT at 90 % of it so the Go collector tightens before the kernel’s limit. The 72-hour corporate 3,000 soak’s resident sets sat on the model’s line and its busiest node used 0.43 of a CPU, so a healthy node meets neither cap. The server and Postgres stay uncapped: they are the system under measurement.
  • Not chosen:
    • A lane count set on every lab node. It pins the figure as surely, but measures a node the product never runs: a capped node sizing itself is the default path an operator’s container takes.
    • One memory cap for every lab node. A cap that fits a branch kills the hq, and one that fits the hq bounds nothing at a branch.
    • The cgroup’s figure as read. A quota above the host’s capacity would size the pool for CPUs and memory the node cannot have, so each limit is held to the host’s.
    • Resizing the pool at runtime from its busy fraction. The count is fixed at boot; worker-busy-fraction (#1686) is reported for an operator to read against it, not fed back.
    • Reading cgroup v1’s memory limit. A v1 CPU limit reaches the node through GOMAXPROCS; a v1 memory limit does not, and the node sizes from the host’s MemTotal there. cgroup v2 is the default on every current distribution and container runtime.
  • Amends: ADR-1249 (the --lane-workers default of 16, now auto).

ADR-1870: A poll’s CPU cost is its thread’s kernel clock, cross-checked by the cgroup

Section titled “ADR-1870: A poll’s CPU cost is its thread’s kernel clock, cross-checked by the cgroup”
  • Date: 2026-11-13 | Status: Accepted | Pages: nodes, collection
  • Decision: (#1870.) A lane worker runs each driver poll, scheduled or run now, with its goroutine locked to its OS thread and reads CLOCK_THREAD_CPUTIME_ID before and after. The node lands the mean per run as poll-cpu-time (ms) beside poll-duration, a node-probe built-in key under ADR-1369’s report window. The figure is a floor: it counts the run’s own syscalls and any GC assist it pays, and leaves out work on other goroutines (a held session’s or a websocket’s reader, the HTTP client’s connection goroutines, a driver’s helpers) and the GC’s background workers. Only driver polls are measured, not every task run as the issue’s goal read: a reachability probe lands its own probe keys and no poll series to sit beside. Its cross-check is the per-driver sweep of #1871, which compares the mean poll-cpu-time times the run rate against the slope of the node process’s cgroup CPU, rather than a CPU profile with pprof.Do labels.
  • Consequences: A platform with no thread clock (Windows, among the release targets) lands no poll-cpu-time rather than a false zero, and the lab’s built-in tier expects it on every poller because the lab runs on Linux. Because a held session’s I/O runs on its reader goroutine, a poll over a held session reads cheaper than a direct SNMP or bare TCP poll that does its own I/O, so drivers compare on poll-cpu-time only within one transport; the comparison across transports is #1871’s. Each lane worker holds its thread through a run, so the node holds at most one extra parked thread per worker.
  • Context: The issue’s spec cross-checked the clock against a labelled CPU profile. The node serves no pprof endpoint and takes no profile, so that check would add a profiling surface to the node for one comparison. The cgroup’s CPU counter is the kernel’s whole-process figure, already the basis of #1871’s sweep, and bounds the per-run floor from above with no new surface.
  • Not chosen:
    • A labelled pprof profile in the lab. It follows a run into its child goroutines, which the thread clock cannot, but it needs a profile endpoint or flag on the node and a profile pipeline in the lab, for a check the cgroup slope gives at the scale the cost table needs.
    • Wall time (poll-duration). It is mostly the device’s latency and says nothing about what the node spent.

ADR-1871: A driver’s cost is a slope on a node of its own, committed and rendered

Section titled “ADR-1871: A driver’s cost is a slope on a node of its own, committed and rendered”
  • Date: 2026-11-13 | Status: Accepted | Pages: scaling, nodes
  • Decision: (#1871.) omniglass lab perf drivers brings up a lab with no fleet and measures each shipped driver on a node container of its own, its simulator in a second container sharing the node’s network namespace, so the node polls on its own loopback and the simulator’s work lands in a different cgroup. The node runs the product’s default cadence, not the lab’s quicker one, so its background work is a deployed node’s. Each driver is read at 0, N, 2N and 3N components (N bringing about --step-tasks tasks), each step over a window at least as long as the driver’s slowest poll. CPU per task is the least-squares slope over every step. Memory per task is the slope over the three loaded steps alone, because a node’s working set jumps when a driver’s first tasks land (its lanes and heap warm) and only then rises by a slope; the loaded line’s value at zero tasks, over the idle node, is the warm memory, a one-off cost. A step off its line by more than 10% of the rise in memory, or 25% in CPU, refuses that figure, listed as not measured with why; the other figure stands, and only a driver with neither is left out of the measured rows. A driver whose memory does not fit is swept again on a fresh node at four times the step, up to --max-step-tasks (6400 by default), and the attempt with the most figures is kept, the bigger step on a tie; each row records its step. A loaded line that starts below the idle node leaves the warm figure empty with that reason, never zero. CPU per run (the slope over the run rate) is cross-checked by the node’s mean poll-cpu-time, reported as the thread share. The run writes internal/labfootprint/drivercost/shipped.json, stamped with its date and build, and with its host’s fingerprint when the lab’s Docker daemon is local; make gen joins it with the plan (every shipped driver, and every driver no shipped product defaults to or that declares no polls, with that reason) and renders the table on the scaling page. It also rolls the drivers up by kind (the transport a driver’s spec speaks) and poll interval: one row per interval a planned driver of the kind ships, naming the drivers that poll at it, each figure the median, range and count across all the kind’s measured drivers; millicores per task at an interval is the kind’s CPU per run over that interval, and memory per endpoint is a driver’s memory per task times its polls. A kind with no planned driver has one row with no figures.
  • Consequences: The table is a committed measurement, not a generated fact: a driver added after the last sweep shows on the page as not yet measured until a sweep is committed, so the page never omits a driver nor shows a figure no run produced; likewise a driver whose polls changed since the sweep reads as not measured at its new polls, rather than as its old cost. A driver with no transport fails make gen, rather than rolling up into a kind with no name. The figures hold for one host class and for simulated devices, so the page reads them as relative cost and order of magnitude. A full sweep takes hours (the five-minute polls set most drivers’ windows), so it is run by hand on a test VM, like the perf gate (ADR-1787). A committed table may merge runs, each row read on one node of its own: a row measured on a build other than the table’s carries that build, and the page names it, so a re-swept driver is never credited to a build that did not measure it.
  • Context: The issue placed the table on “the sizing docs page” and listed task kind and interval as columns. There is no sizing page; the scaling page is where a node’s size is read, so the table lands there. Every swept task is a driver poll, so kind is read as the driver’s transport rather than the task’s mode. A run’s cost is a property of its kind, not its interval: an interval only sets how often the run happens, so the CPU a task holds is CPU per run over its interval, and one kind’s cost at every interval its drivers ship comes from the same measured drivers. Each component the sweep adds brings one task per poll the driver declares, so a driver with polls at several intervals is read as one line, and its CPU per run is the mean over its runs weighted by each poll’s rate. A driver “without a simulator” is, in the shipped plan, a driver no shipped product defaults to: the simulator serves products, so those are listed as not measured with that reason. They are the alternate transports an endpoint picks (SSH, telnet, TLS and UDP for NVP, a websocket, a device’s web API), so a held session and a bound listener go uncosted here; #1943 costs them by kind of work.
  • Not chosen:
    • Running the sweep under make gen. It needs Docker and hours; make gen must stay fast and offline.
    • Two steps. Two points always fit a line exactly and could never show a bend, so each fit needs three.
    • One memory line through the idle step. An SNMP driver read 15.8, 25.9 and 27.4 MiB at 0, 400 and 800 tasks: a warm-up jump, then a slope. One line through all three refused the driver, and a looser bound would have read the jump as a per-task cost several times too high.
    • One step for every driver. The first full sweep, at 400 tasks a step, fit CPU on all 20 shipped drivers and memory on 7: a driver costing about 5 KiB a task rises about 4 MiB across its loaded steps, while one SNMP driver’s loaded steps read 30.9, 28.8 and 28.7 MiB: the heap’s own swing is as big as the signal. A step big enough for the cheapest driver at the start would make every driver’s sweep slower; escalating only the misses keeps the cheap case cheap.
    • A looser memory bound. It would pass the misses by writing the heap’s swing down as a per-task cost.
    • Refusing the whole driver when one figure fails. Memory and CPU are measured on the same steps but bend for different reasons; a driver whose CPU is a clean line keeps that figure when its memory does not fit.
    • Sweeping each poll on its own. The product has no switch to turn one of a driver’s polls off (the official drivers are read-only and a component’s tasks are derived from its driver), so a per-interval sweep would need a synthetic driver per poll, which measures a driver that does not ship. The cost of reading a driver as one line is that a heavy poll which runs rarely beside light ones which run often is costed nearer the light ones at its own interval; the scaling page says so.
    • Fitting a slope per interval within a driver. Every component adds one task at each of the driver’s intervals, so the task counts per interval rise together and their separate slopes cannot be told apart.
    • The scale lab’s nodes. They run the simulator in process (node run --simulate), so their cgroups hold the devices’ cost as well as the node’s.

ADR-1882: A node heartbeats and counts its pulls before its first worklist

Section titled “ADR-1882: A node heartbeats and counts its pulls before its first worklist”
  • Date: 2026-11-16 | Status: Accepted | Pages: nodes, platform health
  • Decision: (#1882, amending the first-pull rule of ADR-1577.) The node builds its node-self report before its first pull and runs that pull on a goroutine of its own. Until the first worklist lands, each heartbeat tick publishes the heartbeat, retries the spool and sends the node-self account; each first pull is tallied on the report as served or refused, as every later pull is (#1868). A pull stopped by shutdown is not tallied.
  • Context: ADR-1577 held the heartbeat until the first worklist, so a node still waiting read as not up. When the server refuses that pull (a reply over the bus’s limit, or a busy server), the node reported nothing at all: no heartbeat and no worklist-pull-loss-ratio, so the health page and the scale lab’s worklist_loss gate read it as a silent node, and the loss named the wrong cause.
  • Consequences: A node refused from the start heartbeats, its platform component carries its node-self figures, and it reads a pull loss of 1 every window until a worklist lands; the seeded worklist-stale rule fires on it like any other refused node. A node up with no worklist yet is no longer told apart by its heartbeat; its pull loss and its worklist task count, 0 until a worklist lands, say it. The server’s report window rides the worklist, so until then a node started without --report-every reports on the default window of one minute. Its lane count and a busy fraction of 0 are reported as for any idle node.
  • Not chosen:
    • Keep the silence and read it as down. It is the defect: down and refused have different fixes, and only the node knows which it is.
    • A metric of its own for the first pull. Its reader would be the same gate and the same column as the running node’s pull loss, so a second key adds a branch with the same body.

ADR-1895: A window across a change to the sim’s served fleet reads restarted

Section titled “ADR-1895: A window across a change to the sim’s served fleet reads restarted”
  • Date: 2026-11-15 | Status: Accepted | Pages: simulation, platform health, lab
  • Decision: (#1895.) The simulator’s engine keeps a fleet generation and a changing flag, and each endpoint observation carries both (fleet_generation, fleet_changing). The reconcile reads a bracket as restarted when any sim read in it (its four ends and the reads between) has generation zero, is changing, or reads a generation the first does not. The window reads restarted until it slides past the change.
  • Context: A lab’s first windows span the simulator’s first sync. The node polls the devices its worklist names as soon as it has one, and a poll to a device the simulator has not bound yet is sent and never received, so the browser e2e lab read SNMP loss of about 0.12 on a healthy path (#1895). The same holds for a device added or removed later. That is no loss of the path, and a threshold on the assertion would hide a real loss of the same size.
  • Consequences: A healthy lab’s first windows read restarted, then loss 0. A sync that starts or stops a device clears the next window or two. A device that fails to start on every pull marks each sync changing for its moment, so a read landing in that moment reads restarted. A simulator from a build before this one reports generation zero, so its node’s windows always read restarted; there is no installed base to mix builds.
  • Not chosen:
    • A state of its own (fleet-changing). Every reader of the state (the console, the lab, the perf gate) treats it exactly as a restart: no figure compares. A new state would be a new branch in each with the same body.
    • A loss threshold in the e2e assertion. It hides a real loss below the threshold, and the sync’s share of loss varies with the fleet’s size and the window’s length.
    • Waiting for the first sync before the lab reads. It covers the first sync only, not a fleet change later, and the console would still report the loss it misreads.

ADR-1896: Ingest lands on a lane per partition of the node’s name, in order per node

Section titled “ADR-1896: Ingest lands on a lane per partition of the node’s name, in order per node”
  • Date: 2026-11-14 | Status: Accepted; the drain’s live node amended by ADR-2008 | Pages: messaging, workers
  • Decision: (#1896, amending ADR-0311 point 3.)
    1. A lane per partition. OG_TELEMETRY stores a node’s batch published on og.v1.telemetry.<node> as og.v1.telemetry.<p>.<node>, where p is the stream’s partition(K) transform of the node’s name (FNV-1a modulo K). Each partition p has a durable, og-telemetry-worker-<p>, filtered to its subjects, with MaxAckPending 1. The durable og-telemetry-worker keeps the API push subject and any batch stored under a node’s own subject before the stream filed by partition. The receipt keeps the subject the node published on, so a batch’s identity does not depend on K.
    2. Order per node. A node’s batches share a partition, and its durable holds one in flight, so they land in the order the node sent them, a transient failure redelivered before anything behind it, exactly as ADR-0311 point 3 requires of a publisher. Two nodes’ batches on different lanes land in no fixed order with one another, which the transition guard never needed: a series has one owner node.
    3. K is configured, with a default. OMNIGLASS_INGEST_PARTITIONS (4) is read at boot, refused outside 1 to 64, and held under the database pool less one connection, since each lane holds a connection while it lands and more lanes would only queue on the pool. The server logs the count it runs and why. Every partition past a smaller K, one the prior K filed under or one a durable was left on, is drained by a durable of its own and that durable deleted once empty, so a smaller K strands no batch. Changing K moves nodes between lanes, so a node’s batches filed before the change can land after ones filed since: it is changed with the backlog drained, and a start that changes it over a held backlog logs a warning naming both counts and the batches held.
    4. The lanes report as one and each alone. Each lane keeps its own busy tally; ingest-lane-busy is the busiest partition lane’s share of the window, since ingest keeps up only while every lane does; the push durable and any partition left draining share a tally of their own outside it. The backlog gauges sum over the durables, and the ack floor is the sequence below the stream’s first held batch, because the lanes ack out of order with one another.
    5. The lab’s drain is per live node. The harness waited for the newest sample anywhere to pass a mark, which proved every batch behind it landed only while one lane held them all. It now waits until every live node that collects at least one series has landed a sample it probed after the mark. Live is a heartbeat within three default heartbeats (90 s) before the mark, so a node whose next heartbeat is not yet due is still waited for; a live node that lands nothing holds the drain to its bound and fails the measure rather than reading it short.
  • Consequences: Ingest throughput scales with K up to the database’s write capacity rather than being one landing’s latency for the whole fleet. Per-node order survives a later horizontal split: servers that share the durables share the partitions, and a work queue gives each batch to one of them. A node whose batches land slowly (a large batch, a failing write) slows only the nodes that share its lane. Nothing yet refuses a K change over a held backlog; it warns, and a cutover that holds the new lanes until the old partitions drain is #1934.
  • Context: On the corporate 3,000 lab one serial durable landed 37 to 41 batches a second against about 50 arriving, so the backlog grew without bound and every lag and loss figure behind it read the queue, not the platform (#1896). ADR-0311 named the way out: “a concurrency pool would need sequencing per publishing subject to keep the same order”. Partitioning by the node’s name is that sequencing, held by the stream rather than by the server.
  • Not chosen:
    • A worker pool behind one durable with per-subject sequencing in the server. It keeps order in process memory, so a second server would break it, and a redelivery would have to re-enter the sequence by hand.
    • A durable per node. Thousands of durables, each with its own state on the stream, for an order a few partitions already give.
    • Cheaper batches alone. They raise one lane’s ceiling but keep throughput tied to one landing’s latency; the cheaper landing ships alongside (#1928) rather than instead.

ADR-1928: A telemetry batch reads and locks once, and stamps seen inside its transaction

Section titled “ADR-1928: A telemetry batch reads and locks once, and stamps seen inside its transaction”
  • Date: 2026-11-14 | Status: Accepted | Pages: storage, metrics and properties
  • Decision: (#1928.)
    1. The transaction carries what it took. batchTx records the event rules lockGroups read FOR SHARE, the owners it marked for each calc rule and the property series whose advisory lock it took. The rule evaluator, the calc marker and the property lane ask it first, so a lane does not read the rules, probe the calc marks or lock a series the batch already holds. The record is filled only by lockGroups on the outer transaction, shared by its savepoints, and starts empty on each retry, so the lock order (rule rows, then calc marks, then the series in sorted order) is unchanged.
    2. The seen stamp is in the batch’s transaction. LandBatch stamps the endpoints its admitted groups carried (and the batch’s own SeenEndpoint) as its last write (a redelivery that lands nothing still stamps), under the same liveStampEvery rate limit and SKIP LOCKED, so a batch commits once. A refused group’s endpoint is not stamped. This reverses ADR-0311 point 2’s “the freshness stamp stays after the transaction”: the stamp now holds an endpoint_live row lock until commit, which SKIP LOCKED keeps from blocking a concurrent stamp, and a failed stamp retries or fails the batch with the rest of it.
    3. The fingerprint is read at most every five seconds. The registry cache keeps the time it last read a matching fingerprint and reuses the registry without a read inside fingerprintEvery (5 s). A batch naming a sample the kept registry lacks reads the fingerprint at once, so a type created moments before its first sample is honored by that sample; a name the read confirms no catalog holds is remembered until the interval’s own read, so a sender of an unknown name costs one extra read an interval, not one a batch. Any other catalog change (a type retyped or deleted, a calc rule moving a key’s writer class, a command type targeting a property) is honored by the first batch after the interval, not the next batch, as ADR-1279 and ADR-1299 had it.
    4. A repeated calc mark writes no tuple. markCalcPending keeps on conflict do update, because the update’s row lock is what holds the mark against a calc evaluation until the batch commits, and guards it with where false: Postgres locks the conflicting row before it judges the guard, so the lock holds and no new row version is written. do nothing takes no lock and is not used.
  • Context: TestIngestFootprint counted 19 statements for one node batch: the rule rows and calc marks read again by the lanes after lockGroups had taken them, a series lock taken again by the property lane, the fingerprint read on every batch, and the seen stamp as a second transaction of its own (a begin and a commit). Measured after: a node batch 13 statements, a collection report batch 10 (from 13), and LandBatch over a judged workload 80 (from 84) and steady 15 (from 19, TestLandBatchTakesEachLockAndRuleReadOnce). The issue’s spec named an is distinct from guard for the calc mark; the update sets marked_at to itself, so the guard is always false and is written as where false.
  • Not chosen:
    • on conflict do nothing for the calc mark. It writes no tuple, but it takes no row lock either, so a calc evaluation could clear the mark under an uncommitted batch (TestCalcMarkHeldByUncommittedBatch fails with it).
    • Keeping the stamp after the commit. It costs a begin and a commit per batch, and a batch whose stamp failed had already landed, so a seen endpoint could read stale with its samples stored.
    • Reading the fingerprint per batch. One read per batch per node is the largest fixed term left once the lanes stop repeating; at a node’s one-second flush window a fleet of a few hundred nodes read it hundreds of times a second for a catalog an operator edits by hand.

ADR-1929: A finished day is summarized and the reconcile keeps its id marks

Section titled “ADR-1929: A finished day is summarized and the reconcile keeps its id marks”
  • Date: 2026-11-14 | Status: Accepted | Pages: storage, alarms and actions
  • Decision: (#1929.)
    1. The marks stay max(id) committed. The issue’s spec read the upper mark off the metric identity sequence’s high water and bounded the candidates scan by a time lower bound, so the planner would prune to the live days. The sequence’s high water counts ids a batch in flight holds and has not committed, and a time bound drops a sample stamped before it, so either could let a sample land past a pass without any pass judging it. The reads stay on id, and the scan reads the ids past the mark first, on their own, so each day is reached through its id block range index.
    2. A finished day’s ranges are summarized. A block range no summary covers reads as a match, so the id reads were cheap only once every finished day was summarized. A partitioned index takes no storage option, so a migration sets autosummarize on each existing day’s own index (a SHARE UPDATE EXCLUSIVE lock, no rewrite), and the partition roll makes each new day’s indexes with it before the attach adopts them. autosummarize takes a range once it fills; a day’s last range never fills, so the retention pass summarizes every finished day’s ranges.
    3. The summary is a retention step of its own. It runs after the drop, so no day about to go is summarized, on a deadline of its own, so a slow roll does not starve it, and a day that fails (its lock timeout) is named in the pass’s error while the rest are still summarized. The partition roll at boot does not summarize: the retention pass runs once at start.
  • Consequences: Each pass’s marks read and touched scan fall from a finished day’s whole heap to a few index pages (316 and 536 of a test day’s pages to a handful), and the guarantee for a batch in flight is unchanged. Every retention pass re-summarizes each finished day, which reads only the unsummarized ranges and so costs little once a day is done. A day whose summary keeps failing is read whole by the reconcile until a pass succeeds, slower but never wrong.
  • Context: On the corporate 3,000 soak the reconcile read about 212k blocks for its marks and 214k for its touched scan every minute, 79 % of it in finished days whose ranges were never summarized, competing with ingest on the same database (#1896).
  • Not chosen:
    • The sequence’s high water and a time bound (the issue’s spec). They prune by partition but trade the in-flight and late-sample guarantee of the reconcile (#928) for it, when summarized ranges give the same reads without the trade.
    • Rebuilding the parent indexes with the option. A partitioned index cannot take it with ALTER INDEX, and a drop and recreate rebuilds every day’s index under a lock ingest waits on.
    • Summarizing in the partition roll. The roll runs at boot before ingest and shares the pass’s deadline; a summary there delays the start and can starve the drop behind it.

ADR-1945: A worklist change nudges its node through a Postgres notify on commit

Section titled “ADR-1945: A worklist change nudges its node through a Postgres notify on commit”
  • Date: 2026-11-15 | Status: Accepted | Pages: nodes, messaging
  • Decision: (#1945, building the nudge ADR-0081 reserved and ADR-1586 item 9 kept separate.)
    1. The trigger is met. A node pulled only on its --worklist-every interval, 30 s jittered within 10%, so an operator edit waited up to about 33 s to run, and a move between nodes (ADR-1638 item 7) waited a pull on each side. The target is under a second.
    2. The write announces inside its transaction. The Storage Gateway, in the transaction of a write that changes a node’s worklist, runs pg_notify on one channel with each touched node’s name as the payload. Postgres delivers a notification only on commit and folds identical payloads within a transaction, so a rolled-back write announces nothing and a write touching a node’s endpoints many times announces it once. The notify is issued by the Go write path, not a database trigger. This slice covers the endpoint writes (create, edit, session retry, delete) and a driver spec change that re-derives an endpoint’s tasks; the other writers are #1997.
    3. One listener, outside the pool. The bus holds one dedicated connection that LISTENs on the channel and publishes each name as an empty message on og.v1.worklist-changed.<node>. The connection is re-opened on a backoff (100 ms doubling to a 5 s cap, reset only once a connection has held for the cap) and the drop logged at WARN. A notification sent while it is down is lost, not replayed. A listener that cannot connect at boot retries the same way and does not stop the server: the nudge only shortens a wait the scheduled pull already bounds.
    4. The node coalesces and rate-limits. It subscribes before its first pull, holds at most one pending nudge, pulls at once on one, and pulls at most once every 200 ms. During a failed pull’s backoff it ignores nudges, so a nudge never turns the backoff into a retry storm.
    5. The scheduled pull stays. The nudge carries no content and is not durable; the interval pull is still what bounds staleness when a nudge is lost.
  • Context: #1945’s spec said the commit publishes “through the outbox”. The outbox is the notification table, delivered by a worker that claims due rows on a poll: each change would write a row, and its delivery would wait on that poll, which is the latency the nudge exists to remove. Its value is durability and retry, which a nudge does not need: losing one costs only the wait for the next scheduled pull. A NOTIFY has the outbox’s one property that matters here, that it leaves the database only if the change commits, with neither its row nor its poll.
  • Consequences:
    • In the end-to-end test, an edit runs on its node within a second with the scheduled pull set to an hour, and a burst of 100 edits costs 3 pulls over 0.8 s (TestAWorklistChangeReachesTheNodeAtOnce).
    • An edit that changes nothing a node runs (a label) still nudges, and costs that node one pull. The manifest sync (#1586) makes such a pull answer unchanged.
  • Not chosen:
    • The outbox: a row and a poll per change for a message that may be lost (Context).
    • A database trigger on endpoint: it misses the writes that change a worklist through another table (a driver spec, #1997’s writers) and puts behavior in the schema the Storage Gateway cannot see. The Go call sits beside the audit write of the same transaction.
    • Publish from the API handler after commit: every handler would have to remember it, outside the Gateway, and a crash between the commit and the publish loses the nudge just as a lost NOTIFY does, so it buys nothing for the spread.

ADR-1957: The metric lane’s prune leaves a droppable day to the drop

Section titled “ADR-1957: The metric lane’s prune leaves a droppable day to the drop”
  • Date: 2026-11-15 | Status: Accepted | Pages: storage
  • Decision: (#1957, amending ADR-1527 point 4 and the exact window of ADR-1275 point 6.)
    1. The lane’s prune skips a day the drop will take. Before it deletes in a day, the metric lane’s chunked prune (the one for every type with no window of its own) asks the drop’s own question of it, as the drop will first ask it: does the day hold a sample of a type whose retention_days window still reaches the day’s end (for a day wholly past the cutoff) or the cutoff (for the day the cutoff sits in, whose end the drop reads once the day is past)? A day that does is pruned chunk by chunk as before. A day that does not is left whole, and the drop takes it once the day lies wholly before the window and the trend’s compacted mark. The question is asked again on every call, so a day a longer type stops holding is left to the drop from then on.
    2. A failed drop is retried at the catch-up cadence. The drop is now the only way out of a day no type holds, so a pass whose drop failed names the lane behind and the next pass comes a minute later, not an hour.
    3. The window is a floor, not an edge. A sample of a type with no window of its own is kept at least retention.metric_days and leaves with its day, at most one day later. A sample whose series is gone (its owner deleted) leaves the same way, unless a held day keeps it for the prune. A type with a window of its own is still pruned to its window exactly, in every day.
    4. Unchanged: the trend horizon still caps both the prune and the drop (ADR-1276 point 5), and a held day keeps every type’s window exact inside it.
  • Context: the prune ran in every day as the cutoff crossed it, so by the time a day was wholly past the window the prune had already deleted every row in it, and the drop only ever removed empty days. On the 3,000-system corporate soak that was about 7 to 9 million deletes an hour, each writing WAL and leaving a dead tuple for vacuum, for rows a drop removes for free. ADR-1527’s “a day bounds that to one day past the window” held only for the drop; the prune never let it run.
  • Consequences:
    • In a day no longer type holds, the lane’s prune deletes nothing; the deletes it did there are gone, with their WAL and vacuum work. No shipped type has a window of its own, so on a stock install that is every day.
    • A type kept longer than the lane and sampled every day holds every day, and then the lane’s rows in each are still deleted one by one, as before. Making that a drop too means rows of different windows no longer share a day’s partition (#1958).
    • The lane’s deleted count now reads about zero a pass. Removal shows as metric-partition-dropped-count instead, and a drop that stops taking days shows as a rising metric-oldest-day-age.
    • Reads clamped to a window are unchanged: the bucketed series read and a series read with a window both start at the window. A read of a series’ newest sample with no window (the latest value behind calculations, rules, instance values and the platform view, and a series read with no window) can show a series that stopped reporting for up to a day longer than the window before it reads as no reading. That is accepted, not clamped: a series still measured always has a newer row, so only a stale one is affected, and by at most a day.
  • Not chosen:
    • Floor the lane’s cutoff to the start of its day: the same for a day no type holds, but a held day would keep the lane’s rows up to a day past the window for no saving, since the prune works in that day either way.
    • Drop a day at the cutoff and stop the lane’s prune altogether: a held day would keep every type’s rows until the longest window passed, which is the month-era holding ADR-1527 rejected.

ADR-1985: A trend rule reads its series window through list functions

Section titled “ADR-1985: A trend rule reads its series window through list functions”
  • Date: 2026-11-16 | Status: Accepted | Pages: alarms and actions, expressions
  • Decision: (#1985, under the self-alarming epic #1623.)
    1. The window is a rule field, the trend is an expression. An event_rule on a metric may set sample_window, an interval up to a week. Its criteria (fire and clear alike) then bind window: the series’ points over that window, oldest first, each a record of value and at (unix seconds). A rule on a property has no window, a sample_window the criteria never read is refused, and criteria that read window with no sample_window are refused.
    2. The trend is three generic list functions. slope (the least-squares rise per second), span (the seconds the points cover) and growth (the fitted rise across the span as a share of the points’ mean) join the engine’s list functions, admitted at every site that binds a list of timestamped points: the criteria’s window and a calc rule’s windowed input (#1142). A list of fewer than two points, or with no time between them, has no trend: 0.
    3. The store reads the window; the evaluator stays pure. The ingest, the sustain sweep, a rule write’s prime and the reconcile scan read the window through the series’ index for a rule whose compiled criteria read it, and hand it to the judge with the sample. A long window is averaged into at most 360 even buckets, so a run’s cost is bounded by the site’s budget, not by the key’s cadence. Each bucket is the mean of its newest 4 samples, probed per series through the (series_id, ts) index, so a read touches at most 1,440 rows a series: the bound is in the probe, not a limit applied after the rows are grouped.
    4. Not every rise is a trend: the criteria bind age. A series that fills from empty (a fresh database) or refills after a restart (a process’s heap) rises steadily with nothing wrong, so a metric’s criteria also bind age, how long the series has run in seconds. On a process’s own key it runs from the process’s start: every process reports process-uptime, and the age is its newest plus the time since, since the series itself spans restarts. On any other key it runs from the series’ oldest kept sample, so it is capped by the lane’s retention.
    5. A trend moves without a sample. The reconcile scan rejudges the touched series of a rule whose criteria read window or age rather than trusting the state it last wrote, after the series whose state has drifted and at most 200 a pass, so a fleet of trend rules never starves the repair of a missed sample. A preview, which judges each sample alone, refuses criteria that read window or age (a 422) rather than answer that a trend never fires.
    6. The shipped thresholds. process-heap-growing and process-goroutines-growing read 6 hours, fire on age >= 86400 && span(window) >= 18000 && growth(window) > 0.25 held 1 hour (a day of uptime: the window clear of a refill of up to 18 hours), and clear at growth(window) <= 0.1; db-size-growing reads 24 hours, gates on age >= 604800 (a week, by when a day’s steady fill is a seventh), needs 20 hours of span, holds 6 hours. All three raise average, the seed’s middle level.
    7. A rule can ship off; db-size-growing does. A seeded rule may say enabled: false, and the seed is authoritative over that state as over the rest of an official row. db-size alone cannot tell bloat from a fleet that grew: an install that onboards most of its devices on days 4 to 6 is still filling its retention window past day 7, a day’s fill then over a quarter of it, so the rule fires on healthy growth. It ships disabled; an operator who wants it authors a rule from its criteria. The shipped-rule test enforces the pairing: a rule ships on only if none of its healthy growth walks fires it, and off only if one does.
  • Context: the self-alarming epic needs alarms on a slow leak (a heap or goroutine count, the database’s size) that no level threshold catches without either firing on a healthy large install or missing a leak on a small one. A trend is relative to the series’ own level. ADR-0050 left a window: { reduce, over } in design, which reduces a window to one value before the criteria and so cannot express a slope without a reducer per shape.
  • Consequences:
    • A trend rule is unit-testable on a fixed series: the shipped rules’ test judges a steady rise (fires), a flat noisy series (clears), a process’s warm-up (holds) and a database at its retention window dropping a day’s partition at any point (clears), and walks each through the growth it must not alarm on: a process’s two days after a restart whose refill takes 4 to 18 hours, a fresh database’s first three weeks with its fleet there from day one or onboarded on days 4 to 6.
    • A trend fires on a sustained relative rise, not a step: a load step of over a quarter of the level reads as a slope for a while, which the sustain absorbs only partly.
    • db-size-growing cannot judge where the metric lane keeps under a week (metric_days < 7): its age never reaches the gate. A shorter gate there would read a day’s fill as bloat.
    • A process that restarts more often than once a day is never judged for a leak (a nightly restart hides one); a crash loop is its own alarm.
    • A fresh install raises no database-growth alarm at all until an operator authors one: the price of not alarming every install, and the public demo, through its first weeks.
    • The console’s rule drawer does not yet edit sample_window, and a windowed rule has no preview.
    • slope, growth and span are now reserved, so a calc rule input may not take one as its alias; a one-time backfill disables a rule that did, as the first reserving backfill did, until it is renamed.
  • Not chosen:
    • A ten-hour uptime gate (the window clear of a four-hour refill): a heap or a session count that takes 8 to 12 hours to come back fires at about 10 hours of uptime, and there is no soak evidence yet that every process refills in under six. A day costs a leak a day’s delay.
    • A database age gate long enough for onboarding (the full 14-day retention): it still fires for an onboarding after day 14, needs metric_days of 14 to judge at all, and only moves the false alarm; disabling it says plainly that the signal needs an operator’s judgement.
    • Gating on the window’s shape alone (a span the series has filled): a restart’s series spans the restart, so its window is full and its refill reads as growth; only the process knows it restarted.
    • An age from the database’s creation (pg_stat_database or the first migration): it names one key’s fill, not any series’, and the series’ own oldest sample says the same for every key.
    • A trend operator or a trend: { over, rise } rule field: one shape baked in, and a second trend (a fall, a rate, a share above a line) would need another field. The list functions compose.
    • A function that reads history itself (history(key, 6h) inside the criteria): the evaluator would do I/O, lose its purity and its budget’s meaning, and each run would cost a query.
    • fire_window binding only fire: a clear needs the same series to say the trend has stopped, and the field names the sample’s history, head noun last.
    • A raw, unbucketed window: a key written every second would bind 21,600 points over six hours and blow the criteria’s budget; the fit over bucket means is the same line within noise.

ADR-1986: The heartbeat is a signed request through a notification target, and the sweep age is read from a shared stamp

Section titled “ADR-1986: The heartbeat is a signed request through a notification target, and the sweep age is read from a shared stamp”
  • Date: 2026-11-15 | Status: Accepted | Pages: collection, alarms and actions, workers
  • Decision:
    1. The sweep age is independent of the sweep. A server’s own rule-sweep-age is read from an in-memory clock the sweep sets after each completed pass and that begins at server start, so a sweep that never completes still ages.
    2. Peers read the shared database, on its clock. Each completed sweep stamps platform_server.rule_swept_at with now() on the database, so no server’s wall clock is compared with another’s. A 10 s timer writes every other server’s age on that server’s component, never its own, so a live server raises rule-sweep-stalled for a stalled peer.
    3. A peer is judged only while it is seen alive. The same 10 s timer stamps platform_server.seen_at for its own server, apart from the sweep, so a server whose sweep has stalled is still seen and judged. A peer is read only while its seen_at is under 20 s old. A server that dies stops stamping both, and since its last sweep was at most one 5 s period before its last mark, it drops out of the read before its stamp could pass 30 s: no live server raises a high alarm on a dead component that nothing would ever clear (a container’s hostname identity never comes back to clear it). A clean stop releases both stamps, so a rolling deploy does not alarm. A dead server, and a lone one, is the gap the heartbeat exists for, and the docs say so.
    4. The threshold is 30 s, six sweep periods, high, no sustain. The age is already a duration, as checkin-age is (ADR-1707).
    5. The heartbeat is a notification, not a second sender. It is a heartbeat transition built and signed by notify.Build, sent by the egress client under the allow list, to a webhook notification target the heartbeat.target platform setting names, with heartbeat.interval_seconds (60, 10 to 86400). No target means no request. A disabled target or a missing credential is refused and audited, and so is a target with no hmac-key secret bound: a beat is never sent unsigned.
    6. It audits on a change of outcome. One audit row when the heartbeat first succeeds or fails, fails for a new reason, or moves to another target, not one per interval: a minute-by-minute row would bury the audit log with the one fact it already holds.
  • Rejected: a heartbeat to a URL held in a setting (it would bypass the target’s secret and the audit); judging a peer by its wall-clock stamp (skew would raise false alarms); judging every held stamp, or every stamp younger than a limit (a crashed peer’s stamp would open an alarm nothing clears, or a limit under 30 s would never open one); hosting a receiver (out of scope).

ADR-1987: Platform alarms reach the admin role through a shipped rule and a role target

Section titled “ADR-1987: Platform alarms reach the admin role through a shipped rule and a role target”
  • Date: 2026-11-18 | Status: Accepted | Pages: alarms and actions, identity and access
  • Decision: (#1987, part of the self-alarming epic under #1623.)
    1. A role is a target kind. role joins webhook, email, user_group and user, with its own role_id column (ON DELETE RESTRICT) and an arm of the kind CHECK. It is expanded at the transition from the grant table, as a group is from its membership: every active, unarchived person holding the role through a direct grant or a grant to one of their user groups. The match is on the role alone, whatever the grant’s scope; the per-person read-scope check (ADR-1341) still decides which alarms each holder hears about. Someone holding the role twice, or reached by two targets on one rule, is told once. A queued email is judged again at send and fails once its recipient no longer holds the role. Opt-out applies as it does to a group.
    2. Binding a role reads the role directory. Creating a role target takes role:read:admin and user:read:admin (it names a role, and through it a set of people), and the role a target names is shown only to a caller holding role:read:admin; anyone else reads the target’s kind alone.
    3. “A platform alarm” is a binding, not a fact. The action site gains a derived platform boolean, true when the alarm’s component is an outpost’s or a server’s platform component (a member of the reserved platform system). It is read before any rule runs, so a transition on a fleet component drops a rule whose when is platform alone without reading the facts: the shipped rule costs a fleet transition one statement (internal/storage/alarm_cost_test.go). The facts themselves are unchanged, so a template or a webhook envelope does not grow a field.
    4. Two targets, because owner does not inherit admin. The bootstrap user holds owner, so a target naming admin alone would tell nobody on a fresh install. The seed ships platform-admins (role admin) and platform-owners (role owner), both on the rule; a person holding both is told once.
    5. The shipped rows are official. A target gains an official flag as a rule has one. The boot seed upserts the two targets and the rule in the og namespace and is authoritative on what it ships: a target’s role and channels, a rule’s label, description, on, when and its links to the shipped targets. The API refuses an edit of those, or a delete, with a 409 (ErrNotificationTargetOfficial, ErrActionRuleOfficial). What the operator owns survives a restart: enabled on each row, a target’s label, the rule’s opt_out_allowed, and targets an operator adds to the rule. Carrying official makes notification_target a namespaced catalog (ADR-0318): a name is unique per namespace and a bare name resolves along the search path, so an operator’s local target of a shipped name shadows it rather than failing the boot, and the seed links the shipped rule to the og targets, never to the operator’s.
    6. Inbox only, for now. The shipped targets carry inbox alone: with no mail_relay set, an email channel would fail a row per person per transition on every install. Email joins once such a send is skipped rather than failed (#2016); an operator wanting mail adds an email-channel target of their own.
  • Divergence: #1987’s spec asks for inbox and email, and for the platform health page to say email is not configured when no relay is set. Both wait on #2016. The console lists, shows and edits a role target (its role and, on a shipped one, its channels read-only), and offers the shipped rule’s enabled switch, but its create form does not offer the kind yet (#2017).

ADR-2008: A node with no worklist does not hold the lab’s drain

Section titled “ADR-2008: A node with no worklist does not hold the lab’s drain”
  • Date: 2026-11-16 | Status: Accepted | Pages: lab
  • Decision: (#2008, amending point 5 of ADR-1896.) A node counts as live for the drain only while its latest worklist-task-count, on its platform component, is not 0. A node with no count at all (no platform component, or no report yet) is still waited for, as before.
  • Context: Since ADR-1882 a node refused its first worklist heartbeats while it waits and reports a task count of 0. A node that collected in an earlier run and restarts into that state met both of the drain’s live tests (a recent heartbeat, a series it once collected) but runs no task, and its node-self samples land with no collector. The drain waited its full bound for a sample that could not come, and the measure failed as not drained instead of on worklist_loss, which names the cause.
  • Consequences: The measure reaches the worklist_loss gate and fails it as worklist_loss/<node> at 1. A node with a worklist that holds no task (nothing assigned to it) is passed over too, rightly: it collects nothing. The count rides the node’s tick, so a node that installs its worklist just before the end mark is waited for once that count lands, and until then any of its batches still in flight can read as published-not-landed on that node alone.
  • Not chosen:
    • Pass over a node whose latest pull loss is 1. A node refused only its later pulls keeps running the worklist it holds and still lands samples, so a full pull loss does not say it collects nothing; its task count does.
    • Wait for its node-self sample after the mark instead. That proves its lane drained but holds the drain up to a report window (a minute by default before a worklist sets one) for a node whose only figure of interest is its pull loss.

ADR-2025: The MCP catalog is credential-blind and reads the fleet’s alarms in one call

Section titled “ADR-2025: The MCP catalog is credential-blind and reads the fleet’s alarms in one call”
  • Date: 2026-11-16 | Status: Accepted | Pages: API, connect an agent
  • Decision: (#2025, extending ADR-1162.)
    1. Credential-blind. An operation whose request or 2xx response carries a credential in plaintext is stamped x-omniglass-plaintext at registration (plaintext(), beside mcpExposed()). tooldef.CredentialBlind refuses a tool on a plaintext-stamped operation or on one gated on a reveal action, and cmd/mcpgen fails generation on either. The stamps are 14 operations: the secret writes, copy and reveal; the notification target writes and reveal; create-auth-me-token, impersonate-principal, login, create-principal and reset-principal-password; and enroll-node and claim-node. create-secret leaves the catalog.
    2. The rule is checked, not remembered. TestPlaintextOperationsAreStamped reads the generated spec. An operation is credential-shaped when it is gated on a reveal, when its request has a token, password or secret property, when its response has a token or password, or when either has fields as an object of values. Every credential-shaped operation must carry the stamp, and every stamped operation must be credential-shaped.
    3. A poll an agent runs comes back masked. run-endpoint-poll answers with the samples it collected, masked of the endpoint’s own secrets wherever the device could echo them (a sample’s text, labels and identity, the faults, a refusal’s text), so the tool may stay in the catalog.
    4. The fleet’s alarms are one scoped read. GET /alarms (list-alarms, gated by component:read) returns the active alarms across the caller’s component scope, injected by the Storage Gateway. It orders them worst severity first, then newest, takes unacknowledged, and caps at limit (200 by default, at most 1000).
    5. The triage catalog. The alarm actions and timeline, the system’s alarms, events, metrics, properties, logs and members (add-system-member included), the event and calc rule reads and previews, validate-expression, list-event-type, the component writes and its tag bindings, the location create and update and reads, update-system, and list-audit-log. It adds no delete of a component, location, system or rule, and no rule write.
  • Context: The catalog had no alarm action, rule, tag, audit read, or location or component write, so an agent that found a problem could not act on it. Widening it put more routes in reach, and some routes on the way in (create-secret) or on the way out (a reveal, a minted token) would place a credential in the model’s context, where it can be logged, echoed or exfiltrated by a prompt.
  • Consequences: The catalog has 98 tools. Creating a secret, minting a token or reading a notification target’s URL stays with the console and the CLI, run by a person. A new route with a credential-shaped body fails the spec test until it is stamped. Narrower than the design brief: create-node is not stamped, because its answer carries no credential (enrollment does), and rotate-endpoint-token stays in the catalog, because its answer is masked. Broader than the brief: login, claim-node, create-principal and reset-principal-password are stamped, because the rule found a credential in each.
  • Not chosen:
    • Stamp the fleet view as the triage read. get-fleet-view returns counts per verdict, not the alarms, so an agent would still walk every component to find what is red.
    • A hand-kept deny list in the generator. It would drift from the routes, which is the failure the stamp exists to prevent; the shape test finds a missed stamp from the spec itself.

ADR-2026: The MCP server serves embedded skills as prompts

Section titled “ADR-2026: The MCP server serves embedded skills as prompts”
  • Date: 2026-11-16 | Status: Accepted | Pages: api, AI, connect an agent, MCP skills
  • Decision: (#2026, under epic #1161.)
    1. One primitive, one file per skill. A skill is a directory under internal/mcp/skills/ holding one SKILL.md: front matter (name, equal to the directory; description; category, one of operate, build, administer, report; optional prompt arguments), then the Markdown workflow. It is embedded with //go:embed and loaded strictly: an unknown front matter key, a name that is not its directory, an unknown category, a missing description, an unnamed or repeated argument, or a body that names no tool fails the load, and a test loads the embedded set in make test. The server registers every skill as an MCP prompt and names them in its instructions; the stdio relay mirrors the server’s prompts as it mirrors its tools; omniglass mcp skill lists them and omniglass mcp skill <name> prints the file’s bytes exactly, for an agent that loads skill files. The issue asked that the CLI and a prompt get print the same bytes; they share the workflow instead: the file is the front matter and then the workflow, a prompt get is that workflow with the arguments given appended (point 3), and a test holds the two to it. A skill file without its front matter is not a skill a loader can read, and a prompt with it would hand the agent YAML meant for the loader. #1165’s driver builder ships through this, not its own mechanism.
    2. Tools and permissions are derived, never declared. A skill names a tool in its body as `tool:<name>`, and nothing else lists them: there is no tools or permissions key to drift. The set is parsed from the body, a test fails any reference the catalog does not hold, and the generated skills reference reads each tool’s gate from the catalog, so a skill can never claim less than its tools need. A skill adds no permission and no path: every call it leads to is a tool call, gated, scoped and audited as one.
    3. Arguments are appended, not substituted. The issue asked for the skill’s bytes with arguments substituted. A prompt get instead returns the workflow followed by a short list of the arguments given (- component: panel-1), in declared order; a missing required argument or an undeclared one is refused, since the SDK does not check them. The body then reads the same in a prompt, in a skill file and on the docs page, with no placeholder syntax for a skill-file loader to show raw.
    4. Skills never ask for a credential. A step that needs one (a fresh poll, a command) calls a tool the server runs with the credentials bound to the endpoint, so a skill never asks for, reads or repeats one, and tells the agent not to repeat anything in a tool’s answer that looks like one. This is the skill’s discipline, not a filter: a tool answers what the caller’s token may read, and masking credentials out of an answer is the route’s job.
  • Context: The server registered tools only, and #1165 planned its first prompt as a one-off. A bag of tools leaves an agent to invent the order of a job each time; a skill carries the house way (read before you change, find the root before the symptom, ask before each write), and putting it in the binary ships it with the release whose tools it names.
  • Consequences: Two skills ship: triage-alarm and troubleshoot-component, both on today’s catalog. The alarm writes (acknowledge, snooze) and the alarm timeline are not tools until #2025 stamps them, so triage-alarm proposes them for the operator to do in the console, and the issue’s end-to-end that acknowledges an alarm over omniglass mcp call waits for them. A skill that needs component edits, tags or system membership waits for the same stamps.
  • Not chosen: a tools list in the front matter (a second statement of what the body says, free to drift); {{placeholder}} substitution (point 3); serving skills as MCP resources (a prompt is the user-invoked shape a workflow wants, and clients list prompts beside tools); and keeping skills outside the binary (they would not ship with the tools they name).

ADR-2029: The vocabulary is a Go table, and make gen writes the glossary and the schema descriptions

Section titled “ADR-2029: The vocabulary is a Go table, and make gen writes the glossary and the schema descriptions”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, architecture glossary, docs with everything
  • Decision: (#2029.) The product vocabulary is a Go-owned table, internal/vocab/terms.yaml, embedded in the vocab package and validated on load (one claim per word, collection, schema, nav path and verdict; a definition is one sentence; a retired word carries its pattern and the decision that retired it).
    • make gen runs cmd/vocabgen, which writes reference/glossary.md: operator terms, then admin terms, each with its API collection, permission noun and the words it replaced.
    • The entity description is set by a post-pass: describeEntitySchemas runs last in registerRoutes and writes each mapped schema’s description into Huma’s component registry, so the spec, the generated client and the CLI help all carry the term’s definition. Huma’s own mechanism, a doc tag or a TransformSchema method on each body struct, was rejected: it puts the definition in Go beside the struct, a second copy of the table’s sentence that drifts, and scatters one table across dozens of files. A schema the table names that the spec lacks fails the API guard, so the post-pass cannot silently miss.
    • Retired words (estate, interface, display name, and now inventory and workspace) are rows on the term that replaced them; the docslint denylist reads them from the table, keeping only retired code identifiers in its own list.
    • Guards: every top-level API collection, every console nav entry and every health verdict maps to a term or to a listed not_term with a reason; a nav label is its term’s word; each term’s permission noun is one a route enforces.
  • Context: the taxonomy decisions under epic #2028 settled the words; this makes them hold. The architecture glossary had grown to carry internal mechanism beside product nouns and was hand-maintained, so a rename reached it late or not at all, and the nav hints still said workspace (#872) and inventory. The architecture glossary is frozen as the internal reference with a banner; per-field descriptions stay with #562.

ADR-2030: The word for where things sit is location

Section titled “ADR-2030: The word for where things sit is location”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, core entities
  • Decision: (#2030.) The physical grouping is a location, classified by a location type, on every surface: API, schema, permissions, CLI, console and docs. Place retires as a noun: the console’s “Parent place”, “Configure place” and “Start places” become location, the detail view’s place card becomes the location card, the API’s CreatedPlaceBody, TemplatePlaceBody and TemplatePlaceSystemBody rename to Location, and docs prose follows. Placed and placement stay: they name the relation (a component is placed at a location), and no other word does that job. Place as a noun joins the docs denylist. The renames are #2039.
  • Context: the contract layer already says location everywhere (25 API paths, 24 schemas, the location:* permissions, the location and location-type CLI groups, the schema), while ADR-0137 and ADR-0139 brought place into the console and docs, so operator-facing text now splits almost evenly (the guides: 220 location, 173 place) and one console form says both. A reader meeting both has to be told they are the same thing, and a word that needs that is the defect the vocabulary epic (#2028) exists to end. Location wins because it is already the contract, so only prose and a handful of labels move, and because place is ambiguous on live console forms, where it is also a verb (place an endpoint on a node) and a number word (decimal places). Considered: place, all-in, which reads better in a sentence and is shorter, but buys prose with every route, permission, table and CLI group, and keeps both collisions; site, common in the industry, which names one level of the tree, when location types are the operator’s own data and no noun may assume a level.

ADR-2031: The process near the gear is an outpost

Section titled “ADR-2031: The process near the gear is an outpost”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, nodes
  • Decision: (#2031.) The process that runs near the gear on the server’s behalf is an outpost, on every surface: the run mode (omniglass outpost run), the API (/outposts, the outpost:* permissions), the schema (outpost, outpost_log, an endpoint’s outpost_name), the CLI group, the console’s Outposts page and the docs. Node retires as its name and joins the docs denylist, with an Allow for a tree or graph node. Placement keeps its two values, edge and central: edge work runs on an outpost, central work runs on the server, so the server never has to be described as a node of its own. Edge is an adjective in prose, never part of the noun. Go code keeps worker for goroutine pools. The renames are #2059.
  • Context: node says nothing about the job and collides with the tree and graph nodes the outline and topology already draw, and the target placement design had to call the server “itself the node target” for central work. An outpost does the server’s work near the gear: it polls, listens for pushes, carries commands, holds sessions and buffers, and a site may have several. The word covers every one of those jobs, appears nowhere else in the tree, and names the relationship to the server rather than a distance. Precedent: authentik’s outposts are remote deployments that do the core’s work near the resource. Considered: collector, self-describing and familiar from monitoring, but it undersells commands and sessions; worker, job-agnostic, but already the pool-unit word (lane workers, the server’s worker stages) and generic, since the server works too; proxy, the Zabbix word, which collides with the trusted reverse proxy and with network proxies that are components in the fleet, and reads as pass-through; satellite, the Icinga word, which is also a Red Hat product; and an edge qualifier on any of them, which head-noun-last naming leaves as a kind of the same genus (an edge worker is still a worker beside the lane workers), and which is wrong for central placement.
  • An outpost is a run mode, not a second product. omniglass outpost run is the same binary as omniglass server with the same collection roles: poll, receive webhooks and udp pushes, run commands, hold sessions. The server performs every one of them itself for central placement, so gear the server can reach (a cloud API, a SaaS poller, a webhook sender, a device on a routed network) needs no outpost, and Omniglass never deploys an outpost in the cloud. An outpost exists for one reason: to carry that work into a private network the server cannot reach. Load is not a reason: the answer to more work is more server replicas, scaled horizontally, not outposts beside the server. Built today, the server hosts webhooks and the outpost hosts the rest; the server running central polls and listeners is the cascaded-placement target (#1157, #1158).

ADR-2032: Role is IAM’s; what a system needs filled is a system slot

Section titled “ADR-2032: Role is IAM’s; what a system needs filled is a system slot”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, core entities, health, identity and access
  • Decision: (#2032.) Role means one thing: the IAM permission bundle granted to a principal (/roles, the role table, role:read:admin, the Admin Roles page), unchanged. The place in a system that a component fills is a system slot, on every surface: the schema (system_slot, system_slot_assignment, system_slot_type, system_slot_product, slot_choice), the API (/standards/{id}/slots, /systems/{name}/slots, the assignment and :swapPositions routes under them), the CLI subgroups, the expression accessor ($slot), the Go names and the console and docs. The name is owner-qualified, as system_role was: a slot of a system, which a component fills. Prose says slot where the system is already in view (fill the slot, an empty slot, the slot’s quorum and impact) and system slot on first use. System role retires and joins the docs denylist; the glossary’s role disambiguation row is removed rather than kept. Quorum, impact, impaired, position and choice keep their meanings. The renames are #2061.
  • Context: the glossary carried a disambiguation row because role named two unrelated things, a permission bundle and a staffing need, and the second sense owned most of the uses: 59 docs hits for “system role” against 6 for “IAM role”, five tables, six API paths, two CLI subgroups and roughly 500 Go identifiers (AssignRole, SetSystemRole, SystemRoleSpec). IAM keeps the word because RBAC, OIDC role claims and every peer product use it; moving it would teach an operator a word nobody else uses. The docs already defined a system role as “a slot a system needs filled” and its guard as the typed-slot guard, so slot is the word the model was explaining itself with. It is also the only candidate that names the vacancy rather than the occupant, which is what a commissioning gap is: an empty slot. Considered: position, already the ordering of assignments within a slot (:swapPositions); seat, a conference delegate unit in the fleet and a licensing term; duty, function (the expression engine’s functions) and part (part numbers beside products); post (HTTP POST, and an echo of outpost, ADR-2031); member, which names the occupant; and component slot, which head-noun-last reads as a slot on a component, the chassis card-slot sense. That sense does not exist in the model today; if frame composition arrives it takes its own owner-qualified noun (a chassis bay) and never the bare word.

ADR-2033: A template is cloned once, a standard is built to, and the label string is a rule

Section titled “ADR-2033: A template is cloned once, a standard is built to, and the label string is a rule”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, templates, storage
  • Decision: (#2033.) Both words stay, and each keeps one relationship. A template is an entry in the catalog the binary ships (/templates, the four kinds standard_template, system_template, location_template, component_template): creating from one writes ordinary rows the operator owns, and nothing points back at it. A standard is the operator’s own row and a live contract: the systems built to it stay bound, and its slots, metrics and properties keep judging them. The question “which do I edit” always answers the standard, since a template is read-only. Prose calls a standard the contract a system is built to, never a blueprint, which explained one word with a third. The other sense of template, the Go text/template string a label or a notification renders from, loses the word: it is a rule, as the API already says (label_rule on every table and wire field), and notification subject and text are written in the rule language. The label_rule columns default_template and template become default_rule and rule; “label template” joins the docs denylist; naming the engine as Go text/template stays. The renames are #2065.
  • Context: the issue asked whether the shipped starting point and the operator’s copy need separate words. They are different relationships (a snapshot copied once against a contract systems conform to), so they do, and the existing pair already maps onto them; standard_template reads head-noun-last as a template that produces a standard. Standard is the word enterprise AV teams already use for exactly this (an AV or room standard: the build, its bill of materials, what conforms), with its verbs (built to standard, out of standard), and the glossary’s own framing, the system-side counterpart of product, holds. It stays bare rather than owner-qualified: a component-side standard would be a product. Considered for standard: spec (the OpenAPI spec, a ticket’s Spec section, and a document rather than a contract), profile (CLI profiles), design (a one-off per project, where a standard is reused), class (a seeded system type), model (product model numbers), blueprint (what you build from once, which is a template), baseline (the perf baseline) and reference design (vendor-authored). Considered for the label string: pattern, which would add a second noun beside the label_rule already on the wire. The overlap a standard does have, with system type (both nest, both classify systems), is #2034’s to settle.

ADR-2034: A type says what kind of thing an instance is, and a system type names a use

Section titled “ADR-2034: A type says what kind of thing an instance is, and a system type names a use”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, core entities
  • Decision: (#2034.) Type means one thing: the registry row that says what kind of thing an instance is. A component is a display, a system is a class, a sample is cpu_load, an event is link-down; what differs is only whether the instance is an entity or a signal, and that is not a second meaning. Every *_type table, /x-types route, x_type:* permission and Go name stays. The console keeps the split it already has, on purpose: a classifier registry says “Component types”, “System types”, “Location types”; a signal registry says its bare noun (Metrics, Properties, Events, Commands, Notifications), since an operator speaks of the metric cpu_load, not its metric type. Genus retires from operator surfaces and joins the docs denylist; ADR titles and anchors keep it as history. System type survives beside standard, as kind against build, the way component type sits beside product: one estate holds ten signage standards under one sign type (ADR-0096 stands). It names what a system is for (meeting, teaching, signage), never the space it sits in: space is the location’s word, and location types are the operator’s. The seed’s room node and its children’s room-suffixed labels change accordingly. The rewording is #2067.
  • Context: the issue read type as two meanings, a classifier (component, system, location, secret types) and a signal definition (metric, property, event, command, notification types), and asked whether system type survives now that a standard says what a system is built to. Evidence: 9 /x-types route families, 9 x_type:* permission families and about 2,400 Go identifiers share the one shape; docs say “location type” 71 times, “event type” 67, “command type” 34, “notification type” 28, “component type” 27, “metric type” 23, “property type” 20, “system type” 18, “secret type” 11; 15 console hints say genus. Considered: definition for the signal side (metric_definition and so on), which churns every one of those surfaces to split a meaning that is not split, and drops event type, the word CloudEvents and peers use; and folding system type into standard, already weighed and rejected by ADR-0096, since a standard fork is two ways to build the same kind of system and the grouping across them would be lost. The duplicate the issue named, a meeting system type labelled Meeting Room beside a room location type, is the system type describing a space; naming the use removes it without removing the classifier.

ADR-2035: The catalog is what the fleet is typed by; a registry is compiled in

Section titled “ADR-2035: The catalog is what the fleet is typed by; a registry is compiled in”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, UI, storage
  • Decision: (#2035.) The line is where the thing lives. Catalog is a set of database rows the fleet is typed by, shipped or the operator’s own: every list in the Catalog area and the area itself, at both levels (“the catalog”, “the metric catalog”, “a catalog row”). It is the word on every surface: the console, the docs, the API descriptions, the schema (registry_shadow becomes catalog_shadow in a new migration) and the Go names (typeregistry.go, requireRegistryRow, registryTables and the rest take catalog names). Registry survives only for a lookup compiled into the binary and resolved by name at runtime: the transports (ADR-0073), the expression engine’s functions, the simulator’s session tables. It is never an operator word: GET /transports describes “the built-in transports”, not “the code registry”. In console and docs prose, registry joins the denylist; ADR titles and anchors keep it as history. Three catalog labels change so each names the thing listed, which the Actions group’s neighbors made ambiguous: Rules becomes Event rules (its console route moves from /rules to /event-rules, the API’s path), Severity becomes Severity levels, and Targets becomes Notification targets. The rest keep the pattern ADR-2034 set: a short label where the group header supplies the missing word (Types under Components, Systems and Locations), the bare noun for a signal catalog. The renames are a follow-up under #2028.
  • Context: the two words were used interchangeably and at two zoom levels: the nav hint called the Catalog “every registry, browsable in one place”, while each list was “the device-class genus registry” or “the property catalog”. Counted (case-insensitive word hits): console 550 catalog against 456 registry, docs 944 against 827, Go 978 against 1,078 across 126 non-test files, OpenAPI 120 against 46, generated CLI help 30 against 18, migrations 32 against 56, one table (registry_shadow), and no route or permission in either word. Read closely, nearly every Go use of registry (the storage and API packages) means the catalog tables, so the drift reached the code; only the transports, the expression functions and the simulator’s sessions are compiled-in lookups. A two-level reading (a catalog is made of registries) was considered and rejected: nothing on screen behaves differently at the two levels, so the operator would learn a distinction with no use, and registry already carries the compiled-in sense. Peer usage agrees: a registry is what code resolves at runtime (container, schema and package registries), a catalog is what a person browses and picks from (a service or product catalog). The labels: “Rules” sits beside “Calc rules” and “Action rules” and reads as their parent while listing event rules alone (all three share the rule permission), and its route disagreed with the API; “Targets” sits in Actions, whose own copy gives commands “a target”; “Severity” names the attribute, not the ranked levels the page lists, the weakest of the three, changed for the rule that a label names what it lists.

ADR-2036: The IAM subject is a user, a person or a machine

Section titled “ADR-2036: The IAM subject is a user, a person or a machine”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, identity and access, storage
  • Decision: (#2036.) The subject a grant is given to is a user, on every surface: the schema, the Go names, the API (/users, /user-groups), the permissions (user:*, user_grant:*, user_group:*), the CLI, the console and the docs. Principal retires and joins the denylist. The table is users, the one plural table, because user is a reserved word in Postgres; every sibling stays singular (user_id, user_grant, user_group, user_label). A user’s kind is person or machine, the question an operator asks (is a human behind it): a person signs in with a password, carries an avatar and receives notifications; a machine user holds tokens. human becomes person, service becomes machine, and service account becomes machine user. An outpost is a machine user its outpost row points at, so kind = 'node' retires and code that needs to know reads the outpost row. The agent kind reserved by ADR-0001 is dropped: until a first-class agent is built (and decides its own kind), an AI acts as a person or a machine user. A set of users granted together is a user group; IAM gives up the bare word group, so the design-stage entity group (#10) qualifies itself when it is built, and system nesting (#879) keeps parent system and subsystem. Account stays plain English for a user’s sign-in state (a locked account, your own account), never a second noun for the row; username keeps its name. The Postgres role in a connection string is a database role, not a user. The renames are #2075 (schema, API, CLI) then #2076 (console, docs).
  • Context: the API, schema and permissions said principal (185 OpenAPI hits, about 1,940 in non-test Go, 796 in docs) while the console said Users at /users and Groups at /groups, and its own hint read “Users and service accounts”: the route drifted from the API and the label already counted machines as users. Principal is exact IAM vocabulary, but Omniglass’s operators are AV and IT staff, not IAM specialists, and the product already speaks of a person and people where it addresses humans (191 docs hits, the notification_people migration). User stretching to machines has precedent in Unix (www-data is a user) and AWS IAM; Kubernetes splitting users from service accounts was the counter-example, rejected because the console already merges them. Considered and rejected: keeping principal and renaming the console page Principals (exact, but the word an operator does not say); user on surfaces only with principal in schema and Go (two words for one row, what ADR-2035 rejected); account as the table (a second noun beside user) and a quoted "user" table (quoting forever). For kinds, person, service and outpost 1:1 with the detail tables was considered; it kept service, which collides with a product’s service kind, and kept a kind that the outpost row already answers. The pre-deployment stance makes this the cheapest the rename will ever be: one migration, no compatibility layer.

ADR-2037: Desired device state is a declared value; override is the catalog’s

Section titled “ADR-2037: Desired device state is a declared value; override is the catalog’s”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, config, secrets, and variables, settings
  • Decision: (#2037.) One word per kind of value.
    • Declared value is desired device state: what an operator asserts a device should be, stored as a property row with provenance = 'declared' (ADR-0079). It pairs with observed, and the gap between the two on one signal is drift. Config stops naming it in the console and docs: the planned Values entry becomes Declared values, the page “Config, secrets, and variables” retitles, and “declared config”, “desired state” and “desired value” join the denylist. Config keeps one sense, the server’s own startup configuration (flags, environment, file). Intended stays a command’s expected effect, a separate provenance; want stays the console’s column header over the declared value.
    • Override means only an operator’s sparse edit to a shipped (og) catalog row, the override column #1435 adds. A value set at one level of a cascade is a binding, as tag_binding and the glossary’s cascade row already say: setting_override becomes setting_binding in a new migration, with its constraints and the settings gateway. In cascade prose a deeper binding shadows a shallower one; it does not override it.
    • Confirmed with no rename, each already one meaning on every surface: variable (an inherited interpolated value, $var:), secret (an inherited encrypted value), setting (a platform or user preference, /settings), tag (an operator key: value, a governed key with values bound per entity; label stays the friendly display string of ADR-0118), property (the categorical signal: a property type is its catalog row and product_property and its siblings are contract lines declaring one, one concept seen from three sides as metric is), and default (what a value is when nobody bound it).
    • The renames are #2079.
  • Context: the console’s Values nav reads Variables, Secrets, Config, Files, with Settings under Admin, and the docs page that teaches them opens “config: declared device state”. Counted across the API, schema, permissions, CLI, console and docs, config named desired device state only in prose: no table, route, permission or CLI command carries it, the Config entry is not built, and in Go config is overwhelmingly the server’s own configuration. The code says declared (the provenance value, 709 Go hits for the word) and the docs say “declared value” 86 times, against 3 for “declared config” and 3 for desired. Override had three senses: the setting_override table (46 hits in 21 files); the cascade itself, in prose and generated help alike (the cascade page’s “set once, override where it matters”, the tag and variable combinators’ “values override most-specific-wins”, a component property’s set_value described as “the component’s override”); and #1435’s catalog override. The glossary’s default row already said shadows for the cascade, and the tag combinator becomes union on key, shadow on value. Considered and rejected: keeping config as the operator noun (the AV word, but code and console would then say two words for one row, what ADR-2035 rejected); desired, the Kubernetes pairing, which would rename the provenance value and every declared-value page for no gain in meaning; and keeping override in both senses with #1435’s column renamed (a patch), which leaves the cascade and the catalog edit sharing a word an operator meets on the same Settings and catalog pages.

ADR-2038: A rule fires, an alarm raises; incident is the ITSM’s

Section titled “ADR-2038: A rule fires, an alarm raises; incident is the ITSM’s”
  • Date: 2026-11-16 | Status: Accepted | Pages: glossary, alarms and actions, health
  • Decision: (#2038.) One word per link, each verb owned by one noun.
    • Event, alarm and notification keep their meanings: an event is a point-in-time occurrence on the event lane; an alarm is the stateful, severity-bearing row from raise to clear, kept after it clears; a notification is one message on one channel (webhook, email or inbox).
    • A rule fires on a component and endpoint when its fire criteria have held for the sustain and clears when its clear criteria have; while it has fired and not cleared, that endpoint is one of its firings. A firing writes one event at each edge and, if the rule has a severity, raises an alarm that clears with it. Condition retires: event_rule_condition becomes event_rule_firing in a new migration, the seeded generic event types condition-started and condition-ended become rule-fired and rule-cleared, and the rule page’s “Conditions in force” becomes “Firing”.
    • An operator snoozes an alarm. The snooze is stored on the alarm’s dedup key (ADR-0075) so it still holds when the same alarm raises again before it ends; that is storage, not a second noun.
    • Incident is left to the operator’s ITSM: it is the record an action opens downstream of an alarm, and Omniglass’s handle on it is a ticket. Omniglass never names its own rows or views incident. Where code and docs said incident for an alarm, they say alarm; the system Activity section headed “Incidents” becomes Health history, each entry still titled by its worst verdict (Outage, Degraded, Commissioning) with the alarms that explain it inside.
    • Alert never names an alarm. It stays for RFC 5424’s alert log level and the console’s alert component; the severity row’s “alert importance” becomes urgency.
    • Condition, incident and alert join the denylist with those exemptions. The renames are #2082.
  • Context: #606 settled the rule and alarm nouns but not the words around them. Counted case-insensitive across OpenAPI, non-test Go, the console, docs and migrations: event 132 / 1,115 / 336 / 1,533 / 176, alarm 216 / 1,049 / 731 / 1,872 / 90, notification 157 / 591 / 295 / 456 / 32, condition 50 / 280 / 103 / 398 / 28, incident 3 / 18 / 29 / 38 / 2, with no route, table or permission named condition or incident beyond event_rule_condition. Incident carried two meanings: the console’s Activity tab used it for a system’s stretch away from healthy, a status-page sense, while storage comments, the dev seed, the alarms page and the generated /alarms help (“returns the incidents that came and went”) used it for an alarm, and one file named its alarm list incidents beside its incidentList of stretches. Neither fits an operator who also runs an ITSM, where an incident is a worked record with an assignee and a lifecycle, and the architecture already puts that record downstream (an action opens a ticket as the alarm opens). The Activity entries are not alarms: one holds several members’ alarms, one can hold none (a commissioning gap), and alarms that never moved the system list apart, so the section names what it shows, the system’s health over time. Condition also carried two meanings, the rule’s in-force row (ADR-0145) and the alarm’s dedup identity that snooze keys on (ADR-1318), and an operator meets neither as a thing: they see a rule that is firing and an alarm they snooze. Considered and rejected: incident kept for the Activity stretch (the ITSM collision), outage for it (degraded and commissioning stretches would read as outages, and outage is a verdict), disruption (a disruptive command’s word), episode and impairment (a new noun the verdict titles already make unnecessary; impaired is a role short of quorum); condition kept for the rule’s state alone (a noun an operator never acts on, beside the verb fire the rule already speaks in its criteria).

ADR-2047: An agent may do what its person may, except take a credential out in plaintext

Section titled “ADR-2047: An agent may do what its person may, except take a credential out in plaintext”
  • Date: 2026-11-16 | Status: Accepted | Pages: identity and access, alarms and actions, connect an agent, secrets
  • Decision: (#2047, ruled 2026-11-16, amending ADR-1179.)
    1. secret:bind is the action that hands a secret to a target. An endpoint attach, an edit of a secret-bound endpoint’s inputs or node, a plan from a template, a simulated system or fleet device, a driver preview, a notification target and the mail relay each resolve a secret reference through secretBind: the reference must be within secret:read scope (else the non-disclosing refusal, as before) and within secret:bind scope (else a 403 naming secret:bind), with the admin tier for an admin-sensitive secret. Binding no longer rides on secret:reveal: a role can bind a credential it can never read, which is the role an agent needs.
    2. The seed. operator and deploy hold secret:bind beside reveal; admin and owner reach it through secret:>. A custom role that binds secrets names secret:bind.
    3. The ceiling is plaintext-out only. agentCeilingActions is reveal and enroll: reveal and copy return a secret’s plaintext, and an enrollment token is itself a node credential (a minted API token is already refused to an agent token by route). Every other action the person holds, secret:bind included, the agent holds, on every channel.
    4. Approval is client-side. Binding chooses where a credential goes, so an agent’s bind can route a credential to a host it picked. That is accepted: the person approves an agent’s tool calls in their MCP client (always, ask, never per tool, like any MCP client), every write is audited with audit_log.agent, and platform or role defaults for that policy, with “never” enforced on the agent channels, are #2063.
  • Context: ADR-1179 made binding wait on secret:reveal and so left a ceilinged agent unable to attach any credentialed endpoint, which kept agents from routine onboarding their person does every day. The ruling: if a person has permission to do something, their agent should be able to do it for them; the one hard line is that a credential’s plaintext never reaches the agent.
  • Limits:
    • A bound credential still leaves the platform toward the target named; secret:bind decides who may choose that target, not whether the target is trustworthy (the egress contract still judges where the platform itself dials).
    • The approval policy defaults are not built yet (#2063); until then an MCP client’s own setting is the only approval.
  • Not chosen:
    • Server-side pending approvals for an agent’s write. It makes every agent action a two-party flow and duplicates what MCP clients already do per tool.
    • Keeping binding behind reveal. It ties the right to aim a credential to the right to read it, so the role that should bind blind (an agent, an onboarding role) cannot.
    • Calling the action use. Every route that polls with a credential uses it; binding is the specific act of choosing where it goes.

ADR-2048: An MCP client signs in with OAuth 2.1 for an agent token linked to it

Section titled “ADR-2048: An MCP client signs in with OAuth 2.1 for an agent token linked to it”
  • Date: 2026-11-16 | Status: Accepted | Pages: identity and access, connect an agent
  • Decision: (#2048, ruled 2026-11-16, completing the OAuth item of ADR-1179.)
    1. The server is its own authorization server. /mcp answers a missing or bad token with a challenge naming its protected-resource metadata; that names the server’s own issuer, whose metadata lists the register, authorize and token endpoints. No external identity provider.
    2. Registration is dynamic and open (RFC 7591), for public clients only: no client secret, the code grant only, redirect URIs that are https or http on a loopback host. A registration nobody consented to within a day is pruned on the next registration.
    3. The grant is the authorization code with S256 PKCE and the resource indicator. Redirects match exactly; an unknown client or unregistered redirect is never redirected to. There is no implicit grant, no password grant and no plain PKCE. A code lives five minutes, is stored as a hash, and is spent by any attempt to use it.
    4. Consent is the person’s, in the console. The authorize endpoint hands a valid request to a console page, behind the person’s own sign-in, which offers the roles whose capabilities the person holds. The approval route refuses an agent token and an impersonation, so no agent consents for a client.
    5. The token is an opaque agent token. The exchange mints a credential row like any agent token (named after the client, mcp channel only, the approved roles, 30 days, an hour since ADR-2073), linked to its client. A client holds one token per person; signing in again replaces it in one transaction. Everything ADR-1179 and ADR-2047 say of an agent token holds unchanged: the intersection, the plaintext ceiling, the audit name, revocation.
  • Context: Minting a token and pasting it into a client’s config was the only way to connect an agent. MCP clients now speak the MCP authorization spec, which is OAuth 2.1, so the person can connect one from the client with a browser approval and never handle the token.
  • Limits:
    • No refresh token at first: after 30 days the client signed the person in again. Refresh shipped in ADR-2073.
    • No client ID metadata documents; a client registers dynamically (#2074).
    • Registration is open, so anyone reaching the server can create a client row; it grants nothing until a signed-in person approves it, and the row is pruned if nobody does.
    • The client name a person sees is the one the client declared; the redirect host is shown beside it so a loopback client reads as one.
  • Not chosen:
    • A JWT access token. An opaque credential row is revocable at the next call and reuses every check an agent token already has; a self-contained token would need its own revocation list.
    • An external authorization server. It adds an operator dependency for a flow the server can serve from the credentials it already keeps.
    • Granting the person’s full set by default. The consent asks for roles explicitly, so the client holds no more than the person chose.

ADR-2063: An install sets always, ask or never per class of operation for every agent

Section titled “ADR-2063: An install sets always, ask or never per class of operation for every agent”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, connect an agent, settings
  • Decision: (#2063, slice 1.)
    1. One class per operation, the most sensitive wins. An operation gated on secret:bind, directly or as its conditional second gate, is credential_destination; else a destructive one (PATCH, PUT, DELETE, or stamped so) is destructive; else a read-only one is read; else write. The class is derived from the same annotation rule as the MCP hints, once in tooldef.Classify, and a test holds the generated catalog’s class equal to the server’s for every tool.
    2. A platform namespace, defaults refusing nothing. agent holds one of always, ask, never per class; reads default to always and the rest to ask, so an install that sets nothing lets an agent do what its person may, as the agent token ruling holds.
    3. The server enforces only never. Right after authentication, a request under the agent ceiling (an agent token, or any call over MCP) whose class is never is a 403 with an agent_refused audit row naming the operation, written as the agent’s. The policy is re-read on each such request, so a change takes effect on the next call. ask is the client’s: there is no server-side pending approval, the person approves in their own client.
    4. Two operations are exempt. Reading who you are and reading the agent policy are never refused, so a refused agent can learn why.
    5. No agent rewrites the policy. Patching or dropping the agent namespace, and the factory reset that drops it with the rest, are refused to every agent request whatever the classes say, audited as agent_refused. Otherwise an admin’s agent with write set to always could set its own destructive back to always, and the policy would bind only the agents that leave it alone.
    6. The tool list carries the policy. Each tool in tools/list carries _meta["omniglass/agent_policy"] = {class, policy}, read with the caller’s own token. A never tool is still listed, marked, so the client may hide it. If the policy cannot be read the list goes out unmarked, since the server enforces it anyway.
    7. The caller reads its own policy. GET /auth/me/agent-policy (omniglass auth agent-policy) answers each class’s policy and whether it governs this request; the namespace itself stays admin-read.
  • Context: Agents act with their person’s grants, approvals happen client-side, and the server must still let an install rule out a whole class for every agent at once.
  • Limits: A per-role or per-tool override is #2088; the in-app assistant’s ask is #1166. The class is static per operation, so an update that binds a secret only sometimes is always credential_destination.
  • Not chosen:
    • Server-side pending approvals. They would queue writes for a person who is already at the client the agent runs in.
    • Hiding never tools from the list. The list would then depend on a setting the client cannot see, and the refusal is the server’s either way.
    • A class read from the request body. It would make the class depend on input; a static class is one the reference can print.

ADR-2073: An OAuth client refreshes a one-hour token with a rotating refresh token

Section titled “ADR-2073: An OAuth client refreshes a one-hour token with a rotating refresh token”
  • Date: 2026-11-16 | Status: Accepted | Pages: identity and access, connect an agent
  • Decision: (#2073, amending point 5 of ADR-2048.)
    1. An hour, renewed for a sliding 30 days. The exchange issues an access token good for an hour and a refresh token good for 30 days. A refresh issues a new pair and restarts the 30 days, so a client in use stays connected and one idle for 30 days signs its person in again.
    2. One credential row per grant, rotated in place. A refresh replaces the row’s secret and expiry, so the session list keeps one stable row per client, and revoking it there ends the refresh chain (the refresh rows go with the credential).
    3. A refresh token is single use, and reuse ends the grant. A refresh token is stored as a hash and spent by its refresh. A spent token presented again by the same client means a copy exists, so the credential and its chain are deleted, audited as a revoke taken by the client.
    4. A refusal spends nothing. A token presented by another client, an expired token, or one whose person is disabled is refused with invalid_grant and stays as it was, so a person enabled again has a client that still connects.
    5. The rotation is audited. Each refresh writes an update row on the credential, as the person’s, taken by the client (the audit agent name).
  • Context: ADR-2048 shipped a 30-day access token with no refresh. A long-lived bearer is the costliest thing an agent holds; an hour bounds what a leaked access token is worth, and rotation with reuse detection bounds a leaked refresh token, as OAuth 2.1 asks of public clients.
  • Limits:
    • Two refreshes racing with the same token look like a replay to the loser, which ends the grant; the client signs its person in again. This is the strict OAuth 2.1 reading, chosen over a grace window that would also admit a thief’s replay.
    • Each refresh writes an audit row, about 24 a day for a client in constant use.
  • Not chosen:
    • A new credential row per refresh. It would churn the session list and make a revoke chase a chain of rows.
    • A long-lived access token with no refresh. Simpler, but a leak is good for its whole life.
    • Not auditing a rotation. A credential’s secret changes; the trail should say when and by whom.

ADR-2074: An MCP client may name itself by a metadata document URL, fetched through egress

Section titled “ADR-2074: An MCP client may name itself by a metadata document URL, fetched through egress”
  • Date: 2026-11-16 | Status: Accepted | Pages: identity and access, connect an agent
  • Decision: (#2074, extending ADR-2048.)
    1. A URL client id is a document to fetch. An https client_id with a path is fetched at authorize; the authorization server metadata advertises client_id_metadata_document_supported. Dynamic registration stays for clients that do not publish a document.
    2. The fetch is the egress contract’s. It goes through the same outbound primitive a webhook does, with no allow list of its own: private and loopback addresses are always refused at dial time (the install’s allow list governs only its own notification sends, never this fetch), and the body is capped at 5 KB. The document is never reflected to the caller; a failure is a 400 with no redirect.
    3. The document must name itself. Its client_id must equal the URL it was fetched from, and its redirect URIs obey the registration rules (https, or http on loopback), compared exactly except for the port of an http loopback URI. A published document cannot know the port a native client will listen on (Claude Code’s lists http://127.0.0.1/callback), so a loopback redirect matches on any port, as OAuth 2.1 requires; this applies to registered clients too.
    4. Cached ten minutes, fail closed. The client is stored keyed by its URL, so the consent page, the credential link and the session list work as for a registered client. After ten minutes authorize fetches again; a refetch that fails refuses the client rather than trusting a copy its publisher may have withdrawn. The token and refresh grants resolve the URL without fetching. The client is named by its URL alone: its stored id, which the consent page carries, is no client at authorize, token or refresh, and consent refuses a document past its ten minutes, so no path reaches the stored redirect URIs without the freshness check.
    5. The host is shown. The consent page names the host serving the document beside the client’s name, which the client chooses freely.
    6. The client id may arrive as a Basic username. The go-sdk’s client sends it that way (RFC 6749 2.3.1); the server reads it there, ignores the empty password, and refuses a form value that differs.
  • Context: The MCP authorization spec prefers client metadata documents to dynamic registration: a client is identified by a URL its publisher controls, with no registration row per install to prune.
  • Limits:
    • An unauthenticated caller can make the server fetch a public URL. The egress contract bounds where and how much, and the response is never echoed, but there is no rate limit of its own.
    • A document withdrawn by its publisher keeps working for up to ten minutes.
  • Not chosen:
    • A direct HTTP client. It would bypass the private-address guard that makes an attacker-named URL safe to fetch.
    • Honoring HTTP cache headers. A fixed window is simpler to reason about and test.
    • Using a stale copy when a refetch fails. It would keep a withdrawn client signing in.

ADR-2086: Health is the word for health’s result; verdict retires

Section titled “ADR-2086: Health is the word for health’s result; verdict retires”
  • Date: 2026-11-17 | Status: Accepted | Pages: glossary, health
  • Decision: (#2086.) Health’s result is named by the concept it belongs to.
    • A system, a location and a component each have a health, one of the ordered values healthy < incomplete < degraded < outage (unknown off-order): “the system’s health is degraded”, health: degraded on the wire. Verdict retires as the name of that value. The value words themselves do not change.
    • Reach takes its own word, reachability. An endpoint’s up/down result is its reachability (reachability: up), and each rung of the ladder (responsive, authenticated) reads up or down the same way. It is not health: it is a different axis (can the outpost get through to this endpoint, against does this room work), on a different domain (two values, not four ordered ones), on a different owner (an endpoint, not a component, system or location), and it is an input to health, reaching it only through the alarm the reachability-lost rule raises. One word for both would put “the endpoint’s health is down” beside “the component’s health is degraded”, two scales under one name, and undo the distinction ADR-0050 drew between them (a device is down, a room has an outage). The reach section, the reachability panel and the endpoint-reachable key already say reachability.
    • A command’s settlement verdict is its settlement. The field is already settlement (none / pending / settled / failed); only the prose and the Go type (SettlementVerdict) say verdict.
    • Verdict stays where it is a judgment of a test: omniglass lab soak verdict and the perf and footprint gates’ pass or fail, a subscription’s test against past alarms (matched / missed), a notification target’s test send. Those are a verdict in the plain sense, a ruling on evidence, and none of them is a health value.
    • The vocabulary table’s verdict: key becomes health: (with its Verdicts() accessor and the guard that every health value is a term), and a health term carries the retired word, so the denylist that rides the table bans it in console strings and docs prose with the kept senses above in its Allow pattern. Until the rename lands the key keeps its name; this decision already rewrites the four value terms’ definitions and the system term’s to say health.
    • The renames land as three follow-up issues under the taxonomy epic, in order: the API, Go and CLI (#2102), the console (#2103), then the docs, the vocabulary key and the denylist (#2104). Surfaces that change:
      • API: the verdict field on ten health bodies (FleetDotBody, FleetHealthOutputBody, FleetLocationBody, FleetSystemBody, HealthSystemBody, HealthTransitionBody, ListAlarmsOutputBody, PlatformOutpostBody, PlatformServerBody, PlatformSystemBody) and on the bulk read’s entry becomes health; component_verdict becomes component_health; SystemVerdictBody and SystemVerdictsOutputBody become SystemHealthEntryBody and SystemHealthListOutputBody, its verdicts list systems; the operation list-system-verdicts becomes list-system-health. On reach, the endpoint’s verdict becomes reachability and ReachVerdictBody becomes ReachReadingBody (ReachEndpointBody’s responsive and authenticated rungs are the same type, so it names one reading, not the overall result). Route paths do not change: GET /systems:health and the two /{name}/health explanations already say health.
      • Schema: none. The recorded series is already the og.health property, and no column is named verdict; the word is only in migration comments, which stay (an applied migration is never edited).
      • Permissions: none. Health reads are gated by system:read, location:read and component:read; no permission names verdict.
      • CLI: the generated commands follow the OpenAPI rename; lab soak verdict stays.
      • Console: the outline filter key verdict becomes health (the outline’s own SystemRef already calls the field health), the reachability panel’s “verdict” label becomes “reachability”, and the health history strip, the system and platform hints and the webhook row’s tip follow; the Verdict type and verdict* helpers in web/src/lib follow.
      • Go: health.Verdict becomes health.Value (inside the package the word is already health), with ParseVerdict, SystemVerdict, SystemVerdictWith, ComponentVerdict and ImpactVerdict following; the storage reads (SystemVerdicts, ComponentVerdict, locationVerdict, the fleet view’s recordedVerdict) and the reach helpers (EndpointVerdict, ladderVerdict, probeVerdict, AuthVerdict) take health and reachability respectively.
      • Docs: the health, collection, API and glossary pages and the guides, swept by the denylist; decision entries stay as written.
  • Context: ADR-0050 framed health as “a verdict”, and the word spread from there to every surface. It is a courtroom word nobody uses for gear, and the architect found it the oddest word in the health model; the operator’s own phrasing is “the room’s health is degraded”, the page is Health, the routes end in /health, the stored property is og.health, the console’s badge, history and panel are HealthBadge, HealthHistory and Health history (ADR-2038), and the outline already names the field health. Every surface already says health for the concept and verdict only for its value, so the rename removes a word rather than adding one. Counted case-insensitive at the outpost sweep’s head (lines, keyword-classified by sense, so approximate): API (openapi.yaml) 80, of them 57 health, 19 reach, 4 settlement, with 12 verdict fields (11 health, one reach), one verdicts, one component_verdict, three schema names and one operation id; internal/api 245 (143 / 83 / 10, 9 test judgment). Schema: 13 lines, all migration comments, no column or table. Permissions: 0. CLI (internal/cli): 48, of them 35 the soak and perf gates’ judgment and 13 generated help. Console (web/src): 683, 528 health and 146 reach, about ten of them strings an operator reads. Docs (docs/src): 661, 433 health, 179 reach, 30 settlement, 19 test judgment. Go beyond the API: storage 528, the outpost 297 (mostly reach), health 79, collection 115, vocab 24. Considered and rejected for the health value: status (it collides with a decision’s, the board’s, HTTP’s, a command’s and an alarm’s status), state (too generic, and desired state is ADR-2037’s), condition (retired by ADR-2038). For reach, health (above) and status (the same collision) were rejected in favor of the word its section already uses.

ADR-2087: The rewritten pages are the architecture of record; the architecture pages archive

Section titled “ADR-2087: The rewritten pages are the architecture of record; the architecture pages archive”
  • Date: 2026-11-18 | Status: Accepted | Pages: docs with everything
  • Decision: (#2087.) The record moves to the pages written in the vocabulary’s words.
    • The architecture pages archive. They move under an archive section whose banner says they predate the vocabulary and points to the glossary. They are not edited for a rename again: the vocabulary denylist exempts the archive as it exempts the decision log, because an archived page’s words were true on its date. The rename sweeps cover code, API, schema, the console and the live docs, not the archive.
    • The rewritten pages are the record. The overview and the guide pages are rewritten one page per slice from the vocabulary table (#2029). Each rewritten page says how a surface works and how to use it, in present tense, and carries the status badge (Design, Partial, Built, Diverged) the architecture page used to carry. The badge-fence lint, the implementation-status grid and the /ship-slice status gate read the rewritten pages. A slice that ships a surface moves its page’s badge in the same PR, as before; a page not yet rewritten carries no badge, and its archived predecessor stays the reference until it is.
    • History stays dated. ADRs and the build log stay one file per entry and are not swept. An ADR still lands with any divergence from a rewritten page.
    • Generated pages follow the code. The glossary, the CLI and MCP references and the OpenAPI spec regenerate from the code and the vocabulary table, unchanged.
    • The archive PR changes the doctrine with it. CLAUDE.md’s spine link, docs-with-everything and /ship-slice move to the new record in the same PR that archives the pages, and each guide or overview page gets a rewrite ticket.
  • Context: The taxonomy epic (#2028) retires words that about 40 architecture pages use thousands of times, and every rename paid twice: once in the code and once in a grep sweep of prose that leaves seams. The rejected alternative was to let the ADRs and the build log alone be the record, with no status on any page. That keeps nothing to sweep, but it drops the badge, which is the one place a reader learns what is built today without reading a log; the rewritten pages keep the badge and keep it on a page the vocabulary already governs.

ADR-2087.2: The docs site is rebuilt by audience; the old pages leave as their section lands

Section titled “ADR-2087.2: The docs site is rebuilt by audience; the old pages leave as their section lands”
  • Date: 2026-11-18 | Status: Accepted | Pages: docs with everything, implementation status
  • Decision: (#2087, amending ADR-2087.)
    1. No archive section. The architecture pages do not move under an archive with a banner and frozen badges. The whole site, guides included, is rebuilt by audience (#2153), and git holds every page it replaces.
    2. The old pages lose their badges now. No page carries a status badge until it is rebuilt. The implementation-status grid and the badge-fence lint read a badge on any page, in any section, so both start empty and fill as the rebuilt sections land.
    3. The old pages leave at cut-over, per section. An old page stays the reference for its capability, kept true when a slice falsifies it, until the PR that rebuilds its section deletes it. The lints keep covering it while it lives; nothing exempts it.
    4. What survives. The decision log and the build log (one file per entry, cited by code and skills), the generated reference (CLI, MCP, OpenAPI, glossary), and the screenshot and demo tooling move into the new layout as they are.
  • Context: ADR-2087 archived the architecture pages in place and moved the badges to rewritten overview and guide pages. The rebuild grew to the whole site, laid out by audience on a current docs platform, so an in-site archive would have kept a second copy of every page the rebuild replaces, plus lint exemptions to keep it frozen. Deleting a page as its replacement lands keeps the published site whole at every step and leaves nothing frozen to maintain.

ADR-2088: Role and per-tool overrides narrow the agent policy, strictest wins

Section titled “ADR-2088: Role and per-tool overrides narrow the agent policy, strictest wins”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, connect an agent, settings
  • Decision: (#2088, extending ADR-2063.)
    1. Both overrides live in the agent settings namespace. agent.roles maps a role name to a partial set of classes, and agent.tools maps an operation ID to always, ask or never. They are platform settings like the classes, so they share its audit, its admin-only read and its rule that no agent may rewrite them. No migration and no column on the role table.
    2. Strictest wins, and only narrows. A request’s policy for its operation is the strictest of the class’s platform value, that class under every role the person is granted, and the tool’s own value. A role or a tool can make an agent stricter, never looser: a tool set to always under a never class is still refused.
    3. Granted roles, direct or through a group. The roles are the person’s grants, not a token’s narrowed set, so an agent token minted with fewer roles cannot step out from under an override that binds its person.
    4. Every value names its layer. GET /auth/me/agent-policy answers each class with its source (platform, role with the role, or tool) and lists every overridden tool the same way; on a tie the earlier layer is named (platform, then roles by name, then the tool). The 403 says which layer refused.
    5. Overrides are checked when written. An unknown role, an unknown operation, or one of the two exempt reads is a 422 on the patch, so a typo cannot sit in the policy binding nothing.
  • Context: #2088 asked for overrides stored with the role. Roles are seed-only with no operator write path, so a role column would have needed a write path of its own before an admin could use it.
  • Limits: A role override names a role, not a group or a user. Inherited roles do not count, only granted ones. The in-app assistant’s ask is #1166.
  • Not chosen:
    • A column on the role table. Roles have no write path today; the settings namespace already has its patch, audit and self-rewrite guard.
    • Most specific wins (a tool override beating its class either way). It would let an override loosen the install’s floor, which is the one thing an admin setting a never has to rely on.

ADR-2109: omnibot’s model key stays on the server, with no relay

Section titled “ADR-2109: omnibot’s model key stays on the server, with no relay”
  • Date: 2026-11-18 | Status: Accepted | Pages: AI, settings, connect an agent
  • Decision: (#2109, on the server-run loop of ADR-2121.)
    1. One adapter, chosen by URL. OpenAI-compatible chat completions with tool calls, OpenRouter by default; OpenAI, Ollama, vLLM and LM Studio are the same adapter at another base_url. The call leaves through the egress guard like any outbound call.
    2. The key is a secret by name. assistant.key_secret names a $platform api-key secret, as mail_secret names the mail relay’s. The server unseals it at the start of each run and sends it only as the model call’s bearer; a provider error that echoes it is redacted before it reaches an event or a log line. Amended (#2223): the secret may also be one the server’s environment declares (OMNIGLASS_SECRET__<NAME>, ADR-2223.2); it is still a $platform secret by name, behind the same secret:bind.
    3. Chosen per run. A configured provider whose key resolves; else OMNIGLASS_OMNIBOT_REPLAY; else 503. A provider configured with a key that no longer resolves is a 503 naming the secret, not a silent fall back to a recording.
    4. The CLI runs on the server. omniglass omnibot drives {name}:run and renders its AG-UI stream, confirming an ask on the terminal and answering it with a resume run. --replay keeps the local loop of ADR-1166 for tests and tapes.
  • Context: #2109 first specified a relay route that would forward a client’s model calls with the install’s key added. ADR-2121 then put the loop on the server, where the key is already in reach, which leaves a relay with nothing to do but widen the surface the key crosses.
  • Not chosen:
    • The relay. A route that forwards arbitrary prompts on the install’s key is a second way to spend it, outside the run’s permission, policy and audit.
    • A key per person. Each person bringing a key spreads a credential the install could hold once; a person-scoped key can come later if budgets need it.
    • GitHub Models as the default. #2109 first named it, but GitHub retired it on 2026-07-30, inference API included. OpenRouter takes its place: the same publisher-prefixed model ids, so openai/gpt-4.1-mini stays the default model, and one key reaches many publishers.
    • Falling back to the recording on a broken key. An operator would see canned answers and take them for the model’s.

ADR-2113: A person’s omnibot conversations are theirs alone

Section titled “ADR-2113: A person’s omnibot conversations are theirs alone”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, connect an agent, identity and access, storage
  • Decision: (#2113, building on ADR-1166. What a paused run keeps is ADR-2113.2.)
    1. Owner-only, by predicate. A conversation belongs to the user that created it. Every gateway read and write takes the caller as its owner predicate, so anyone else’s conversation is a non-disclosing 404 on every verb and absent from their list, an admin’s and the platform owner’s > included. The permission, assistant:use, rides viewer; it says who may keep conversations at all, never whose they may read. The scope resolver records the resource as fleet-wide on purpose: it is not placed on any tier.
    2. Impersonation is the one exception. A view-as or act-as session is its target for every read, so it sees the target’s conversations as it sees the rest of what the target sees, and an act-as write is audited with the real actor. This is the documented support path, not a grant: impersonation is already bounded (identity and access), so only a holder whose own capabilities cover the target may start one, an owner account cannot be impersonated, and the session itself is audited.
    3. Appends name the last message seen. An append carries after, the seq of the client’s last message; anything else is a 409, so two clients cannot interleave one conversation. Each write is audited without its content.
    4. Retention by last change. A conversation is pruned assistant.conversation_days (30 by default) after it last moved, its messages with it, in the retention pass’s bounded chunks.
  • Context: A conversation outlives the session that started it once it is kept, so who reads it has to be settled before anything stores one. #2113’s first cut fenced it from every role; the 2026-11-17 ruling kept impersonation’s reach, since excluding one resource from it would make the support path see less than the person it supports.
  • Limits: Usage is totalled only when a client reports it, and the recorded provider reports none (the relay’s per-turn usage is #2111). The console panel is #1167.
  • Not chosen:
    • Scope-fenced conversations (an admin reads anyone’s by grant). A transcript can hold what a person pasted; it is theirs like a draft, and the audit trail, not the transcript, is what an admin reads. Impersonation differs from a grant: it is a bounded, audited session that sees one person’s view, not a standing reach into everyone’s.
    • Fencing conversations from impersonation too. It would make the one resource a support session cannot see the one the person is asking about.

ADR-2113.2: A paused omnibot run keeps only its transcript

Section titled “ADR-2113.2: A paused omnibot run keeps only its transcript”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, connect an agent
  • Decision: (#2113, on the loop’s pause, #2120, and the conversations of ADR-2113.)
    1. A kept transcript is not a pending approval. A run that paused on an ask stores the conversation with a marker naming the call it waits on. The server never runs, approves, expires or notifies on that marker: it is the transcript’s last word, kept for its owner.
    2. The owner’s client decides it. The owner continues the conversation in their own client, which rebuilds the proposal from the transcript’s open call and the tools as they are now (a marker naming no open call is refused) and decides it as an inline ask is decided. The approval stays client-side (ADR-2063), and the eventual call is the owner’s agent’s like any other, re-checked against their grants and the policy when it is sent.
  • Context: An unattended run (an event rule’s omnibot step, #2126) has no terminal to ask on. The 2026-11-16 ruling keeps approvals client-side with no server-side pending approvals; this is how a paused run survives until its owner returns without the server holding a decision.
  • Limits: A transcript stored with an open call and no marker (a client that keeps a turn without its marker; the CLI keeps both in one append) is asked about that call on resume as a kept marker is (#2129): the CLI rebuilds it from the transcript’s open call with loop.Waiting, so a proposed write is never silently dropped.
  • Not chosen:
    • Storing the proposal itself. A stored proposal would carry the tool’s policy and arguments as they were when it paused; rebuilding from the open call and the live tools means a policy tightened since is the one applied.
    • A server-side approval queue. The 2026-11-16 ruling rules it out: the server would hold a decision that is the owner’s client’s to make.

ADR-2121: The server runs omnibot as the person, streaming AG-UI

Section titled “ADR-2121: The server runs omnibot as the person, streaming AG-UI”
  • Date: 2026-11-17 | Status: Accepted | Pages: AI, API, connect an agent
  • Decision: (#2121, on the loop’s pause, #2120, and the conversations of ADR-2113.)
    1. The wire is AG-UI. {name}:run takes an AG-UI run input and answers text/event-stream, the run narrated as AG-UI events. The conversation is the thread, and the stored transcript is the conversation: of the messages a client sends, only the last user message is read, as the prompt. A conformance test holds the server’s events to the protocol’s published schemas.
    2. The run is the person’s agent. It mints an agent token for the person, exactly as the CLI does (the omnibot channel alone, for the run’s 30 minutes at most), revokes it when the stream ends, and calls its tools in process through the same router and middleware a remote MCP call takes. Grants, scope, the agent policy and the audit all read that token, so a write is audited as omnibot acting for the person, and the model never holds a credential.
    3. An ask is an interrupt. A call the policy asks about ends the run with an interrupt naming the call; the run’s messages and the waiting call are kept with the transcript (ADR-2113.2). A later run whose resume names that interrupt answers it: approved runs the call, anything else declines it. A resume naming no waiting call, or a prompt while one waits, is a 409. Before any tool runs, the run claims the conversation; a second run, two resumes of one waiting call included, is a 409 until the first keeps its transcript, so a call runs once. A run that dies frees its claim when its 30 minutes lapse.
    4. Only the person, as themselves. An agent token or an impersonation session is a 403, so a run’s actor is always the conversation’s owner. This narrows ADR-2113’s impersonation exception for runs: impersonation still reads the target’s conversations, but does not act as their agent.
    5. A model is configuration. A server with no model answers 503. Until a live provider lands, OMNIGLASS_OMNIBOT_REPLAY names a recording the server plays; tests inject a model in process.
  • Context: The console panel (#1167) and an event rule’s omnibot step (#2126) both need omnibot to run somewhere other than a terminal. The 2026-11-16 ruling keeps approvals client-side; an interrupt hands the decision back to the client rather than holding it on the server.
  • Not chosen:
    • A bespoke event stream. AG-UI already names text, tool calls, results and interrupts, and an off-the-shelf client reads it; a house format would be one more contract to keep.
    • The run reusing the caller’s session. A session is not an agent: the policy, the channel and the audit’s agent column would read as the person acting directly.
    • Believing the client’s history. A client could then feed the model a transcript the server never kept, and resume a call that never waited.

ADR-2122: A console subject is a stamp on the shared primitives, gathered by one modifier-click handler

Section titled “ADR-2122: A console subject is a stamp on the shared primitives, gathered by one modifier-click handler”
  • Date: 2026-11-18 | Status: Accepted; superseded in part by ADR-2162 | Pages: UI, AI, connect an agent
  • Decision: (#2122, on the server run of ADR-2121.)
    1. Context is references, not renders. A subject is a kind and a name, dotted address or rule (alarm is component/rule, else component@raised_at), or the page as its route and arguments. Never a uuid and never displayed text, so device-written strings and anything revealed on screen stay out of the model’s context; omnibot reads the data itself, through its tools, under the person’s grants. The run frames each entry as quoted data ahead of the person’s message.
    2. The stamp lives on the shared primitives. FlatList, Outline, the entity blades and the alarm rows set data-subject-kind and data-subject-ref from their row, so a page built from them is gatherable with no code of its own. One capture-phase handler reads the stamp: alt-click adds a row, shift-alt-click every stamped sibling from the last one gathered, and a control inside a row keeps its own meaning. ⌘ and Ctrl are left to the browser’s open-in-new-tab.
    3. ⌘J hands over the page when nothing else is gathered, and opens omnibot. A detail page passes its entity’s name or address to the Page primitive, which ⌘J puts in place of the uuid its route holds.
    4. Triage is an embedded skill, by name. A run’s forwardedProps.skill names a skill and its arguments; the server renders the skill’s own prompt (ADR-2026), so the console never composes skill text. An unknown skill or a missing argument is a 422.
  • Divergence: the UI page puts one renderer per view behind ViewResult (#523), where a column could declare what a row is. That renderer is not built, so the stamp rides the list primitives the console does have; when ViewResult lands, its rows take the same stamp and the handler is unchanged.
  • Not chosen:
    • Sending what the console rendered. A screen holds device-written text and, on some pages, revealed values; a reference keeps both out and lets omnibot read under its own scope.
    • A per-page “add to omnibot” button. Every page would code its own; the stamp makes it a property of the primitives.
    • Ctrl or ⌘ as the gesture. Both open a link in a new tab, which a row’s link must keep.
    • Composing the triage prompt in the console. It would fork the skill’s text from the one the MCP server serves.

ADR-2139: Releases are cut from a release branch

Section titled “ADR-2139: Releases are cut from a release branch”
  • Date: 2026-11-18 | Status: Superseded in part by ADR-2652 | Pages: release and CI, a soak run
  • Decision: (#2139, decided by the architect for 0.1.0.)
    1. A release branch, not a frozen main. On the cut, release/<major>.<minor> is made from main, and main stays open. The release workflow runs only on such a branch.
    2. Candidates, then a final. Each dispatch tags the branch tip as the next candidate, v<major>.<minor>.<patch>-rc.<n>, a GitHub prerelease with its own image and binaries. The soak gate (#1988) runs a candidate. A dispatch marked final tags the newest candidate’s commit v<major>.<minor>.<patch> and is refused on any other commit, so the release is exactly what soaked. After a final, the branch’s next candidate is the next patch.
    3. Fixes by cherry-pick. A fix lands on main by its own PR, then reaches the branch by a cherry-pick PR; the next candidate’s soak starts over.
    4. The version is the branch’s, not the commits’. cmd/releaseversion reads the branch name and the tags already cut. semantic-release leaves the release path: computing the version from conventional-commit subjects would have numbered the first release 1.0.0 from breaking changes made before any release, and it cannot hold a version line on a branch. The notes are GitHub’s generated notes since the previous final release.
    5. The release App pushes the tag. The v* creation ruleset refuses GITHUB_TOKEN, and GitHub will not take the Actions app as a ruleset bypass, so the tag is pushed with a token from a dedicated release GitHub App, the ruleset’s one bypass besides the admin role (#1940).
  • Consequences: every push to a release branch runs the same CI as main, so a candidate has had the full CI before it is tagged. Release branches need a ruleset of their own, like main’s. The PR title no longer sets the version, only the line it writes in the notes.
  • Superseded in part by ADR-2652: release-please cuts every release from main, a minor and a patch alike, so decisions 1 (the release branch), 3 (fixes by cherry-pick) and 4 (the version from the branch) no longer hold, and there are no backports. Decision 2’s soak gates a final release from v1.0.0 on, and candidates wait until then. Decision 5 stands: the release App’s token creates the tag.

ADR-2162: Omnibot is handed the page, not what the person gathers

Section titled “ADR-2162: Omnibot is handed the page, not what the person gathers”
  • Date: 2026-11-18 | Status: Accepted | Pages: UI, connect an agent
  • Decision: (#2162, superseding points 2 and 3 of ADR-2122.)
    1. The page is the context. Each prompt carries the page the person is on, its route and query with a detail page’s uuid replaced by its entity’s name or address, as one AG-UI context entry. The panel reads it when the prompt is sent, so a prompt after navigating carries the new page.
    2. A chip shows it and can drop it once. The panel shows the page above the composer as a Looking at chip. Dismissing it leaves the page out of the next prompt only.
    3. Gathering is retired. The subject stamps on the shared primitives, the alt-click and shift-alt-click handler, the tray and the hand-over key are removed outright. Point 1 of ADR-2122 (context is references, never renders or uuids) and point 4 (triage is an embedded skill run by name) stand.
  • Divergence: ADR-2122 had a person gather rows by alt-click into a tray. In use the gesture was undiscoverable and the page already named what the person was looking at; omnibot reads the rest through its own tools.
  • Not chosen: keeping the stamps beside the page (two ways to hand context, one of them hidden); handing the rendered view (it would put device-written text in the model’s context).

ADR-2175: Agent work runs in GitHub Actions, picked by label

Section titled “ADR-2175: Agent work runs in GitHub Actions, picked by label”
  • Date: 2026-11-18 | Status: Accepted | Pages: agents in CI, labels
  • Decision: (#2175, decided by the architect.)
    1. Hosted runners, the off-the-shelf action. Builds, reviews and fixes run Anthropic’s claude-code-action on GitHub-hosted runners, authenticated with the architect’s Claude subscription and switchable to an API key or Bedrock by one input. No self-hosted runner runs code from this public repo.
    2. The label is the approval. run:dev-gha sends a ticket to agent-build. It is the only build label: the homelab harness dispatcher is retired. The label is taken off as work starts, so applying it again is the retry. The board shows status only.
    3. Teams gate the triggers. A build starts only from a maintainers member’s label on an issue the maintainers or contributors team wrote. A fix starts only from those teams’ @hyperscale-agent (or @claude) or review, or from agent-review’s Changes requested, five rounds per PR at most, after which the PR parks with needs-fred. A build also waits until every issue it is blocked by (GitHub’s issue dependencies) is closed. The decisions are one tested script, scripts/agent-trust.sh.
    4. Outside text stays out of the model. The build reads the ticket from a file holding the body and the two teams’ comments; the fix reads only the feedback that started it; the conversation is locked while a build runs; no pull_request_target, no forks, no bot but the agents’ own App and, when one is set up, the reviewer App that posts agent-review’s reviews (GitHub lets no App request changes on a PR it wrote).
    5. The architect gates start, merge and release. Builds open draft PRs and mark them ready when done; the agent-review check is red until the reviewer says ship on the head. Merges go to main (no staging branch; unfinished features ship behind a flag), and releases cherry-pick only fixes. The agents’ App has no Workflows permission, the rulesets are unchanged, and both still need the architect’s approval to merge.
  • Not chosen: keeping the homelab harness as a second builder (two builders to secure and keep in step, for no work only it can do); a staging branch between PRs and main (a second merge to review and a second branch to keep green, for what flags and reverts already give); self-hosted runners (they would run public-repo code on the architect’s hardware); triggering on board moves (Actions cannot listen for them, so it would mean polling, and it would not keep comments out of the model); the official Claude App as identity (it holds Workflows write).

ADR-2223: Settings read an env layer between the settings file and the console

Section titled “ADR-2223: Settings read an env layer between the settings file and the console”
  • Date: 2026-11-19 | Status: Accepted | Pages: settings, Admin > Settings
  • Decision: (#2223.)
    1. One variable, one key. OMNIGLASS_SETTING__<NAMESPACE>__<KEY>=value sets the key in that namespace at a new env level. The double underscore marks the boundary between the two segments: a namespace never carries one, so the parser splits cleanly on it.
    2. Validated against the declaration. The value is coerced to the key’s Go kind from the same reflected Settings struct the file layer validates against (ADR-0041): a []string takes a comma-separated list; a bool takes true/false/1/0; an int takes a base-10 int. A value that does not coerce fails the boot, naming the kind (expected an int), never quoting the value (it may be a bare secret).
    3. Between the file and the console. The resolver reads default < file < env < platform (< group < user): the committed file is the baseline, the env the per-process override, the console the install-wide operator’s decision. An admin edit still wins, so an operator trying a value in the console is never silently clamped by a container variable.
    4. Profile domain refused. A per-user namespace (ui, keybindings, any profile) has no process-wide meaning: a theme is not a server setting. The parser refuses the variable and the boot fails, naming it, as an unknown key or a value that does not parse does.
    5. Trusted as the file is. The env layer is the deployment’s own, like the settings file: whoever sets the server’s environment already sets OMNIGLASS_ENCRYPTION_KEY and OMNIGLASS_DSN, so holds every sealed secret. The secret:bind gate on assistant.base_url, assistant.key_secret and the mail relay is an API caller’s check, so neither base layer takes it, and the console still takes it when an admin moves them there.
    6. Rendered in the generated reference. The env-var reference (<ConfigVars />) emits one row per settable key, so the reference stays complete by construction and the registry’s drift gate still fails when the facts move.
  • Context: The twelve-factor rung between the file image (GitOps, ConfigMap) and the DB console binding was missing: an install wanting to flip one value per environment without an edit to its file had to open the console or ship a different file image. The env layer closes that gap without widening the console’s surface: everything already settable at the platform rung is settable here.
  • Not chosen:
    • Above platform. A variable that silently overrides the console would hide an operator’s decision behind a container’s environment, with no console badge to discover the override. Keeping it under platform leaves the console the authoritative read.
    • One JSON blob per namespace. OMNIGLASS_SETTINGS='{"retention":{"metric_days":30}}' is one variable per namespace but hides the schema inside the string: a typo in a key does not fail the boot, it just stores nothing. The per-key form carries each path to the type system.
    • A separate parser per kind. The file layer and the env layer share the single-source Settings struct’s reflection, so a new kind added to the struct is coerced by both from the same declaration (doctrine 5).

ADR-2223.2: A platform secret may be declared by the server’s environment

Section titled “ADR-2223.2: A platform secret may be declared by the server’s environment”
  • Date: 2026-11-20 | Status: Accepted | Pages: config and credentials, Secrets, settings, AI, connect an agent, the lab
  • Decision: (#2223, the second half beside ADR-2223; amends ADR-2109’s “the key is a secret by name”: it still is, from either source.)
    1. One JSON variable a secret. OMNIGLASS_SECRET__<NAME>='{"type": "<secret type>", "fields": {...}}' declares the $platform secret <name> (lowercased, each _ a -). The JSON is judged before the gateway opens and the fields against the seeded secret_type catalog right after the boot seed, as a create is judged; a failure names the variable and never quotes the value.
    2. Memory only. Nothing is sealed, written or audited; rotation is a restart. A stored platform secret of the same name fails the boot naming both, and creating one under an env secret’s name is refused, so a bare name never resolves two ways.
    3. Every consumer, one gate. omnibot’s key, the mail relay’s login and an endpoint’s secret input resolve an env secret as they resolve a stored platform one, and naming it still takes secret:bind (the all scope, the admin tier too for an admin-sensitive type). An outpost is told a version that is a MAC of the value under a key derived from the encryption key, so servers sharing a key agree and a changed value reads as changed.
    4. Listed, never written. The directory lists it with source: env, its type and its source_var, and no fields; an update, delete, reveal or copy is a 409 naming the variable.
    5. .env files load. The omniglass binary loads .env, then .env.local over it, from its working directory, under whatever the shell already set (the architect’s scope change on #2223).
    6. The lab on the primitives. omniglass lab run forwards the shell’s OMNIGLASS_SECRET__ variables to its server beside the OMNIGLASS_SETTING__ ones; --omnibot-key-env declares the key as the server’s env secret lab-omnibot-key and sets provider and key_secret in the env layer under any the shell set, and the seed seals nothing (it drops a key an older lab sealed).
  • Context: Pointing omnibot at Bedrock took a secret created over the API and a setting patched after every lab start. A container or a Helm chart configures a credential by its environment; with the env settings layer of ADR-2223 the credential was the one piece still missing.
  • Not chosen:
    • An env:VAR reference inside key_secret. It would let whoever may update settings point a model call at any variable the process holds, OMNIGLASS_DSN included. A named secret keeps the deployment deciding what is a secret and secret:bind deciding who may hand it out.
    • One variable a field (OMNIGLASS_SECRET__BEDROCK_KEY__KEY plus a __TYPE). Friendlier to a Kubernetes secretKeyRef per field, at the cost of a type variable and a secret half-declared when one is missing.
    • Env secrets owned below the platform. A location’s or component’s secret by environment has no owner the process can name stably; later, unfiled.
    • Signing a notification target. A target binds a stored secret by its row, so an env secret does not sign a webhook in this cut.

ADR-2334: An ambiguous name is a 409 listing the matches, a missing one stays a 404

Section titled “ADR-2334: An ambiguous name is a 409 listing the matches, a missing one stays a 404”
  • Date: 2026-11-23 | Status: Accepted | Pages: CLI
  • Decision: (#2334, reversing item 1 of ADR-1134.)
    1. Ambiguous is 409, absent is 404. A bare name that two or more rows the caller can see answer to is a 409; a name no visible row answers to is a 404. An operator copying a name from a list (30 components named videobar-1) read the 404 as “the alarm or the name is wrong”.
    2. Machine-readable. The 409 carries an error detail at location path.name whose value is the count and the listed candidates (at most ten, each a dotted address with its uuid). The CLI keys on it to print “the name matches N rows you can see; address one by its id or dotted address”.
    3. Candidate spelling, redaction and the no-caller-scope wording are unchanged from ADR-1134.
  • Context: ADR-1134 argued a 409 reads as a conflict with a stored row. The night-shift report showed the opposite failure: a 404 reads as nonexistence. The status now says the request is unresolvable as stated, and the body says how to fix it.
Section titled “ADR-2361: Single sign-on links a person to an identity provider subject, never by email”
  • Date: 2026-11-23 | Status: Accepted | Pages: identity and access
  • Decision: (#2361, reversing the oidc deferral in ADR-0004; the slices that build it are #2362 (OIDC sign-in for linked persons), #2363 (group mapping), #2364 (provisioning and enforce mode) and #2365 (SAML 2.0).)
    1. An identity provider identity is a credential. A new migration (the init migration is never edited) adds oidc to the credential.kind CHECK (#2365 adds saml the same way), a nullable identifier text column, and makes secret_hash nullable, with a CHECK that a bearer or password row still carries its hash and an oidc row carries an identifier and no hash. A unique index on (kind, identifier) where the identifier is set makes one identity one person. The identifier is iss|sub: the id_token’s iss exactly as the provider sends it and its sub verbatim, never normalized, since sub is unique only within its issuer. The row is a link, not a session: it holds no Omniglass secret, so it carries no expiry (ADR-0019’s time bound is on the credentials that are bearer secrets) and no purpose. It does hold the provider’s latest refresh token, sealed with the install’s encryption key as every stored secret is, and the time the provider last accepted it (point 9). A sign-in through it mints the ordinary 12-hour session credential, through the path password sign-in uses, and writes the login auth event with the method. That session, and every API token minted while signed in through it, records the link it came through (a nullable via_link reference on credential), which is what point 9 revokes. A person may hold more than one link.
    2. Linking is explicit; email never links. In the first slice an unlinked identity is refused with a message naming who can link it. An admin links a person to an iss|sub under a new user:link-identity permission (all scope), behind the takeover guard that user:reset-password uses, because a link an admin chooses is a way to sign in as its target: so no one links another owner. A person links their own identity with their current password, as a password change asks, since a link outlives the session that made it; that is how an owner gains SSO. Unlinking takes the same gate. Every link and unlink is audited, and a link records who made it: the guard judges the target only at link time, so when a person is granted owner every link someone else made for them is deleted (audited), and they link again themselves. Just-in-time provisioning (#2364) is a separate opt-in that only ever creates a new person; when the claims’ email matches an existing person it refuses and asks for a link instead of adopting the account. A new person’s email is taken from the claims only when email_verified is true.
    3. OIDC first, SAML on the same model. OIDC is the authorization code flow with PKCE (S256), a state and a nonce, stored hashed with a short expiry as oauth_code is, as a confidential client. The state is also bound to the browser that started the flow: start sets it in a short-lived httpOnly SameSite=Lax cookie and the callback refuses a state its cookie does not carry, so a callback URL an attacker completed as themselves cannot sign a victim into the attacker’s account (login CSRF). A self-link flow is bound to the signed-in session the same way. The id_token is verified for signature against the provider’s JWKS, iss equal to the configured issuer, aud containing the client id (and azp when there are several), exp and iat within a small skew, and the nonce; claims come from the id_token alone, so the groups claim must be in it. Sign-in starts at Omniglass (no provider-initiated sign-in). The callback is the request’s origin, under the trusted-proxy rule the OAuth server’s issuer uses, plus /auth/oidc/callback, registered at the provider, which checks it. Sign-in starts at /auth/oidc/start/{provider}, and the stored state names the provider, so one callback serves every provider (point 10). The default scopes add offline_access, so the provider issues the refresh token point 9 re-checks. Verification uses github.com/coreos/go-oidc/v3 over golang.org/x/oauth2. SAML 2.0 (#2365) follows, SP-initiated, as kind saml with the identifier <IdP entityID>|<persistent NameID or configured attribute>, reusing the link, provisioning, enforce and group mapping below unchanged.
    4. IdP groups map to Omniglass groups and may not reach an owner. An admin maps a value of the groups claim, keyed by issuer, to a user_group. user_group_member gains a source (local or idp) and, on an idp row, the issuer that granted it, and at each SSO sign-in, inside the sign-in transaction, the person’s idp memberships from that issuer are set to exactly the mapped set, each add and remove audited (another issuer’s rows are not touched); local rows are never touched, and a local row for a group stands in for an idp one. A token with no groups claim maps to the empty set (fail closed). Scoped access then follows with no authorization change, since a member inherits group grants in the per-request grant load (loadUser). A mapping to a group that carries an owner grant is refused, and so is an owner grant on a group that has a mapping, so no group mapping can make an owner.
    5. Owners keep password sign-in. Local password sign-in stays for owners, and omniglass set-password stays the last resort for a locked-out owner. An enforce mode, off by default, refuses password sign-in for every person who is not an owner, with a message pointing at SSO; it removes no password and does not touch bearer tokens, agent tokens, or the direct-database lanes (bootstrap, set-password).
    6. One sso settings namespace, the secret by name. A platform-domain sso namespace holds the one provider, named default: issuer (empty turns SSO off), client_secret (the name of a $platform secret of the seeded oauth2-client type, settable from the environment per ADR-2223.2), scopes (default openid email profile offline_access), groups_claim (default groups), point 9’s recheck_minutes (default 15) and recheck_grace_minutes (default 60), and #2364’s provision and enforce, each settable from the environment layer of ADR-2223. The client id is the secret’s client_id field, not a second setting, so the pair rotates together. Naming the secret from the console or API takes secret:bind on it, as omnibot’s key_secret does, and so does moving issuer while a secret is bound, as moving omnibot’s base_url does: the token exchange sends the client secret to the issuer’s token endpoint, so an issuer someone else controls would receive it.
    7. Every provider call goes through egress, under the install’s allow list. Discovery, JWKS and the token exchange use internal/egress, so TLS is verified, redirects are not followed and each call is bounded. Unlike a client metadata document (ADR-2074), whose URL an anonymous caller names, the issuer is configuration an admin set, so the install’s notification.egress_allow list applies: an on-premises provider is reached only when it names it.
    8. One token verifier for SSO and Cloudflare Access. The JWKS-backed JWT verifier (a key set fetched through egress, cached by kid, refreshed on an unknown one, with the issuer and audience checks of point 3) is one primitive under internal/auth, built by #2362, and the Cloudflare Access trust of #81 verifies its Cf-Access-Jwt-Assertion with it rather than a verifier of its own. An Access identity is an iss|sub like any other and resolves its person through the same link. #81’s preview-only policy of provisioning every Access user as an owner is the one exception to point 4’s spirit (no identity provider makes an owner): #81 records it, confines it to preview installs, and may not match a person by email (point 2).
    9. Removal at the provider ends access at the next re-check the provider refuses, without SCIM. A sweep every recheck_minutes (default 15) takes each link that has a live credential through it (point 1’s via_link) and redeems its refresh token at the provider’s token endpoint, storing the rotated token and the time. A provider that refuses the refresh (invalid_grant, as Entra does once an admin revokes the person’s sessions and Okta does once the person is deactivated or suspended) makes the sweep revoke, in one audited transaction, every session and API token through that link and clears its refresh token: the person can sign in again only if the provider lets them. When the refresh answers with an id_token that carries the groups claim, point 4’s sync runs on it, so a group removed at the provider lands at the first refresh whose token reflects it. A network error or a 5xx is not a refusal: the sweep retries, but a credential whose link has gone recheck_grace_minutes (default 60) without an accepted refresh is refused at authentication until one is accepted, so a provider outage suspends SSO-origin access for a while and destroys nothing, and owners keep password sign-in (point 5). A provider that issues no refresh token gets no long-lived access: a session through such a link lasts recheck_grace_minutes, not 12 hours, and minting an API token from it is refused, since nothing would ever re-check it. #2362 builds this with the first sign-in, so SSO never ships without the cut-off.
    10. One provider now, a second is additive. The model already allows several: the issuer is in every link’s identifier, in every group mapping’s key and on every idp membership, and the state names the provider. Adding providers later is a providers map in the sso namespace, keyed by name, beside which the flat keys of point 6 go on meaning the provider named default; the sign-in page lists one button per provider; and the start route already takes the name. No existing link, mapping or membership is rewritten, and the callback registered at the provider does not change.
  • Context: ADR-0004 shipped bearer and password credentials and deferred oidc. Installs that run an identity provider want their people to sign in with it, their leavers cut off there, and their building teams granted by the groups they already keep. The design already sketched the oidc credential as iss|sub; four slices needed one model to build against, and the account takeover paths (email matching, an IdP group reaching an owner, an admin choosing another person’s link) needed closing before any code.
  • Limits:
    • One identity provider per install (point 10). Changing issuer leaves every existing link on the old issuer, so those people cannot sign in by SSO until relinked.
    • Revocation is not immediate. Omniglass learns of a removal only by asking, so a removed person keeps their Omniglass session and API tokens until the first re-check the provider refuses: up to recheck_minutes (15) after the provider starts refusing, and longer if it is slow to. Disabling the person in Omniglass is the instant cut-off. Immediate revocation on disable or group removal needs the provider to push it, which is SCIM deprovisioning (deferred, see Not chosen); back-channel logout and shared-signals feeds are not sent by every provider and not for group removal.
    • The cut-off is only as good as the provider’s refusal, and providers differ (as each one’s documentation stood in November 2026; the setup page for each provider repeats its row):
      • Entra ID refuses once an admin revokes the person’s sessions; disabling the account alone is not documented as revoking refresh tokens, a group change can take up to a day to reach issued tokens, and a B2B guest’s tokens are not revoked in the resource tenant. The runbook is: disable and revoke sessions.
      • Okta refuses once the person is deactivated or suspended (reported, not in Okta’s reference). Its default refresh token lifetime is unlimited with a seven-day idle expiry, which the sweep keeps alive.
      • Google issues no groups claim, so group mapping (#2363) has nothing to sync from Google, and suspending a Workspace account is not documented as revoking a third party’s refresh token. With Google, disable the person in Omniglass too.
    • An API token minted by a password session (an owner’s) is not an SSO-origin credential and is not re-checked, since its person never went through the provider.
    • Only groups claim values: no nested-group expansion, no userinfo call, and no handling of a provider that leaves an oversized groups list out of the token (Entra’s group overage).
    • No SCIM, so a person removed at the provider stays an Omniglass person (unable to sign in by SSO once the provider refuses them) until an admin disables them, and nothing reaches Omniglass between re-checks.
    • MFA is the provider’s; the open question on a local TOTP path for installs without SSO stands.
  • Not chosen:
    • Linking by verified email. Convenient, but email_verified is only as good as the provider’s control over the address: a provider that lets people edit their email, a reassigned address, or a second issuer asserting the same one would hand over an existing account, an owner’s included.
    • Provisioning on by default. Every person at the provider would become an Omniglass person with whatever a mapped group gives; it stays a deliberate opt-in.
    • An IdP group reaching an owner. The provider’s admins would become Omniglass owners and the owner floor would move outside the product; owner stays a grant an owner makes.
    • Enforce mode for owners too. A provider outage or misconfiguration would lock every owner out with only the database lane left.
    • Several identity providers at once, now. Point 10 shapes everything for it; the settings map, the sign-in page’s list and the second issuer’s mappings wait until an install needs one.
    • A shorter SSO session as the removal cut-off. An hour-long session bounds a browser but not an API token the person minted, which the provider never sees; and a session short enough to matter makes people sign in through the provider several times a day.
    • Capping SSO-minted API tokens instead. A cap short enough to bound a leaver (hours) makes the tokens useless to the scripts they exist for; a cap long enough to be useful (days) is the gap point 9 closes.
    • Checking userinfo with the access token. Providers commonly let an issued access token run to its expiry (about an hour) after a person is disabled; the refresh grant is the one they revoke at once.
    • SCIM deprovisioning, now. It is the push the major providers send on disable, delete and group removal, and the only way to revoke at the moment of removal; it is deferred to keep the first SSO release to sign-in alone, and lands later as a receiver that revokes on those calls, with the sweep kept as the backstop for providers that do not send it.
    • Back-channel logout. It tells Omniglass a session ended, not that a person was removed, and the providers that matter here do not all send it; it can be added later as an accelerator on top of the sweep.
    • The implicit or hybrid flow, or a public client. OAuth 2.1 drops the implicit flow, and the server can hold a client secret.
    • A hand-rolled JOSE verifier. go-oidc is the maintained verifier the ecosystem relies on; signature and claim checks are not where a slice should write its own.

ADR-2362: A sign-in’s PKCE verifier and nonce are derived from its browser binding, not stored

Section titled “ADR-2362: A sign-in’s PKCE verifier and nonce are derived from its browser binding, not stored”
  • Date: 2026-11-23 | Status: Accepted | Pages: identity and access, single sign-on
  • Decision: (#2362, refining ADR-2361 point 3, which said the state and nonce are stored hashed with a short expiry as oauth_code is.) The start route mints two random values: the state, sent to the provider, and the binding, set in the httpOnly SameSite=Lax og-oidc cookie scoped to /auth/oidc. The oidc_state row holds only the hash of each, the provider’s name, the self-link’s user and session hash, and a ten-minute expiry, and is spent once. The PKCE verifier and the nonce are each an HMAC-SHA256 of the binding (sso.Derive), so the callback recomputes them from the cookie and the database holds neither, hashed or not.
  • Context: A verifier cannot be stored hashed: the token exchange sends it in the clear, so a stored form would have to be the verifier itself, sealed. Deriving it from the binding the login CSRF check already needs keeps every stored value a hash, and ties the code exchange to the browser that started the flow twice over: without the cookie, the callback refuses the state, and could not produce the verifier anyway.
  • Not chosen: sealing the verifier and nonce into the row (a stored secret for no gain), or deriving them from the state (the state travels in the redirect URL, so anyone who saw the URL could recompute the verifier, which is what PKCE exists to stop).

ADR-2363: An admin’s add makes an idp membership local, and a group’s last mapping takes its idp members with it

Section titled “ADR-2363: An admin’s add makes an idp membership local, and a group’s last mapping takes its idp members with it”
  • Date: 2026-11-23 | Status: Accepted | Pages: roles, groups, and grants, identity and access
  • Decision: (#2363, refining ADR-2361 points 4 and 9 where they are silent.)
    1. One row per group and user. user_group_member keeps its (group_id, user_id) key and gains source and issuer. An admin’s add of a member the provider brought turns the row local, audited as an update: the admin’s act is the stronger statement, and the row stops following the provider. An admin’s remove of an idp row lasts until the person’s next sync.
    2. A group’s last mapping takes its idp members with it. Deleting a mapping removes, in the same audited transaction, the idp memberships of that group from that issuer when no mapping from the issuer is left, since no claim value could justify them. With others left, the memberships wait for each person’s next sign-in or re-check, because which value put a person there is not stored.
    3. “Carries an owner grant” means at any scope. The guard refuses a mapping to a group with an owner grant of any scope, and an owner grant of any scope on a mapped group, both under a lock on the group row so the two sides cannot race. The sync also never joins such a group, a backstop for a row written around the API.
    4. A refresh syncs only on a token it can trust for this link. The id_token a refresh returns is verified (signature, issuer, audience, expiry; no nonce on a refresh); it syncs only when it names the link’s own iss|sub and carries the groups claim. One that does not verify leaves the refresh accepted and the groups as they were, logged, rather than failing the refresh and spending the grace.
  • Context: ADR-2361 fixed the model (claim values keyed by issuer, local and idp sources, fail closed on a missing claim at sign-in, the owner guard both ways) but not these edges, each of which the first build met.
  • Not chosen: a second row per source (two rows for one membership, and every reader of the roster would need to collapse them); keeping idp rows after their last mapping goes (access with nothing behind it until the person happens to sign in); storing the claim value on each membership so any mapping delete could be exact (a wider row for a case the next sync settles); failing a refresh whose id_token does not verify (a provider’s token quirk would suspend access at the grace).

ADR-2368: Fleet entities are created in batches, one collection per call

Section titled “ADR-2368: Fleet entities are created in batches, one collection per call”
  • Date: 2026-11-23 | Status: Accepted | Pages: the CLI
  • Decision: (#2368)
    1. A batch create per collection. POST /locations:batchCreate, POST /systems:batchCreate and POST /components:batchCreate follow AIP-233. The body is {"requests": [...], "validate_only": bool}, each request exactly the body the collection’s single create takes, and the answer is {"locations": [...], "batch_id": "...", "validate_only": bool} (systems, components), each row exactly what the single create answers, in request order. There is no new row shape to learn: a client that can create one can create a thousand.
    2. Atomic per call. The rows run in order in one transaction, each through the single create’s own transactional half, so a refused row refuses the whole batch and nothing lands. It is mapped as the single create maps it (the same status and message), with requests[3]: leading the detail and body.requests[3] as the error’s location. Because the rows run in order, a row names a row an earlier request of the same batch created (a floor’s parent, a system’s parent) by name, exactly as it would once committed; rows of an earlier batch are committed and resolve the same way.
    3. A dry run. validate_only: true runs the same transaction, every check and every name rule, and rolls it back: a dry run refuses exactly what the write would. It answers 200 with the rows and the names the write would mint, their ids empty since the rows they named are gone; a write answers 201. The spec declares both.
    4. Provenance in the audit detail. A write mints a uuidv7 batch id, returns it as batch_id, and storage.WithBatch stamps it into the new image of every audit row the batch wrote, under from_batch, beside from_template (ADR-0071 keeps provenance in the audit detail only). A batch is not an entity: the id is a handle for new->>'from_batch' and nothing else stores it.
    5. Bounded. At most 1000 requests per call; more is a 413 naming the limit, so a client splits a bigger import (by building). The body stays under the server’s 1 MiB cap.
    6. Gated as the single create. Each route takes its collection’s create permission (location:create, system:create, component:create), and each row needs what its single create needs: a component naming a system needs system:update over it. There is no import permission. A create gate is what the MCP classifier reads as a write, so each route is an MCP tool confirmed as one.
  • Context: Importing a fleet that already exists elsewhere (a spreadsheet, another system’s records) one create at a time is thousands of calls and no rollback. CSV parsing and the agent recipe are #2369.
  • Consequences: An import tool orders its calls: standards (the existing from-template route), then locations with parents before their children, then systems, then components, then slot assignments and declared values, linking each by name. A dry run of a later batch cannot see rows an earlier batch has not written yet, so an import dry-runs its first batch, writes it, and dry-runs the next against what landed.
  • Not chosen:
    • One plan object applied whole. The first draft took one body carrying standards, locations, systems and components together and applied it in one call. Plan is the word for change management, a plan computed, applied and reconciled, and spending it on a bulk create would take it from that. One object is also a big bang: one shape that grows with every kind of row, where a batch per collection reuses the shapes the API already has and adds one kind at a time.
    • POST, PATCH and DELETE on one :batch path. The CLI generator names a command after the custom verb whatever the method, so the three would collide on one command; and a DELETE with a body is poorly supported by some clients and proxies.
    • A body that is either an object or an array. An MCP tool’s input schema must be an object, and a union muddies the generated CLI flags and the typed web client.
    • Deferred: a batch of slot assignments, a batch of declared values, batchUpdate and batchDelete. Each is its own call on its own collection when it is built.

ADR-2423: A fleet blade renders its detail page’s body

Section titled “ADR-2423: A fleet blade renders its detail page’s body”
  • Date: 2026-11-23 | Status: Accepted | Pages: design system, UI, work with an entity
  • Decision: A fleet kind has one detail body, mounted by its page (host="page") and by its blade (host="blade"): every section, tab and action the page shows, the blade shows. The page is the address around the body (breadcrumb, name-shaped and sole-system landings, the miss faces, its own blade stack); the blade adds its title and Expand. The host decides three things only: where the active tab lives (lib/tabstate: the page’s ?tab=, a blade’s signal, so a blade never rewrites the page beneath it, and a rooted outline in a blade filters the same way), whether Edit answers the address’s ?edit=, and where a Delete leaves to (a blade closes its stack, a page goes to Explore). Editing is the Configure tab’s ConfigureFace in both hosts, with Delete in its footer. Sections lay out by container query, never the viewport, and the fleet blade is the wide variant (BladeDef.width: "wide", about 720 px). A body opens related entities on the ambient blade stack, so a nested open stacks in either host. Tabs stay tabs in a blade, in the same order with the same names, and Expand stays: the page still has the breadcrumb and a shareable address. fleetBlades.guard.test.ts fails if a kind registers a blade body that is not its detail body.
  • Context: ADR-0139 (#872) made the side panel the glance: health, why, context, identity and tags, with configuration and depth one Expand away. In the 2026-11-23 console review the architect ruled the reduced panel of little use: “the drawers and the detail pages would be identical. We would just push the detail pages into the drawers. The wrapping would certainly look different […] we shouldn’t have to go to the detail page to get information about an endpoint or a component.” The two implementations had also drifted (the page lacked the blade’s Troubleshoot and by-rule notes, the blade the page’s vitals, collection, members, history and configuration), and Files.tsx already showed one body serving two hosts.

ADR-2443: A recorded omnibot answers only the prompts it was recorded for

Section titled “ADR-2443: A recorded omnibot answers only the prompts it was recorded for”
  • Date: 2026-11-23 | Status: Accepted | Pages: AI, connect an agent
  • Decision: (#2443, on the recording of ADR-2121.)
    1. The recording says what it answers. A recording’s top-level prompt names the question its turns answer, and a conversation may carry a prompt beside, or instead of, its match. A prompt matches a message however it is cased, spaced or punctuated. A recording with no top-level prompt plays its turns for any message, as before, so tests and tapes are unchanged.
    2. The server refuses the rest. A run whose message no script answers is a 422 of type urn:omniglass:omnibot-replay-unmatched, “This lab plays a recording; connect a model to ask your own question”, before the conversation is claimed, so nothing is stored or run. Matching is decided where the recording is, never by a client comparing strings.
    3. A client can ask which it is talking to. GET /assistant/conversations gains an omnibot object: mode (live for any configured model, replay for a recording, none) and the recording’s prompts. Nothing of a model’s configuration is told. The console shows a Recorded demo note and the prompts as chips only in replay.
  • Why: a lab with no live model played the recording’s default turns for any question, so “Which alarm is worst?” read an unrelated component and proposed a tag with no answer: a wrong answer, not a replay. Refusing an unrecorded question, and saying why, keeps the demo honest.

ADR-2446: Platform health has one name and folds to a screen

Section titled “ADR-2446: Platform health has one name and folds to a screen”
  • Date: 2026-11-23 | Status: Accepted | Pages: ui, Platform health
  • Decision: (#2446.) The Platform health page has one name, Platform health, in the sidebar door, the top bar’s section label and the page’s own heading, read from one constant in nav.ts so they cannot drift. The one-word-tab rule (#1767) gains a second exception beside User groups. The page itself folds each section (where work is lost, each server’s panels, the outposts, the simulator) to one line, its health and the one number that matters, and opens it on demand; the open sections are the open query parameter, so a reload, a back step and a shared link keep them. The page carries no second Lab instance badge (the shell’s banner says it) and no figure that reads “not wired yet”: an unwired figure is removed, not shown as an empty promise.
  • Consequences: nav.test.ts holds the name (the door, the top bar and the heading are one string, and “Status” names no door) and its one-word test lists the two exceptions. Walkthroughs and docs shots that read a section open it through the address (?open=). A closed section mounts nothing, so a folded page reads no series and binds no stream. The simulator’s device table is a filtered page of rows with its system and location beside each name, which closes #1724.
  • Context: The page was called Status in the door (#1767 made every tab one word), STATUS in the top bar, which resolves its label from the same door, and Platform health on the page. It was 13,215 px tall with every panel open and an unbounded device table at the foot, so the first screen could not answer whether the platform was healthy.
  • Not chosen:
    • Status everywhere. One word keeps the old rule whole, but “Status” names nothing on its own beside Outposts and Settings, and the docs, Home’s tile and every link already say Platform health.
    • Platform. One word too, but it collides with the Platform tile’s own meaning on Home (the platform system’s reading) and with the platform components the page reads.

ADR-2459: An alarm on a member outside a slot is shown on its system, not rolled up

Section titled “ADR-2459: An alarm on a member outside a slot is shown on its system, not rolled up”
  • Date: 2026-11-23 | Status: Accepted | Pages: health, Explore, alarms
  • Decision: (#2459, ruled by the architect in the console review)
    1. Shown. GET /systems/{name}/health lists every member of the system with its own health, its open alarms, the slot it fills (slot) or outside_slot when it fills none, and a reason line naming the slots behind the verdict. The member list follows the caller’s component read scope, as the fleet view’s dots do: a member the caller may not read is never named, though the verdict and the slots are the same for everyone who may read the system. The console’s system page and drawer list every member’s open alarm (labelled “impairs X”, “in X” or “not in a slot”), say the reason beside the health, and name the members outside every slot with the action to place one in a slot.
    2. Not rolled up. A system’s health is still decided by its slots alone: an alarm on a member outside every slot moves nothing above the component, whatever its severity, exactly as the health page already stated. The slot and its impact are the system-level health rule.
    3. Verdicts come only from declared rules. A system’s health is decided by rules somebody declared (today, its slots and each slot’s impact), never implied from an alarm existing. An operator may well want “any open alarm on a member degrades this system” for some system, and that is a rule they would declare on it; the platform does not work that way implicitly. Its home is system-level rules over system-owned samples and system-owned alarms (#1002), where the use case is recorded. Nothing of it is built here.
  • Context: A component of a hand-built system (no standard, so no slots) could be in outage while its system’s page listed no alarm and read healthy, with nothing saying why (#2459). The defect was that the alarm was invisible, not that the verdict ignored it.
  • Not chosen:
    • Degrade the system. Ruled first and built in review: any open alarm on a member outside a slot made its system degraded, and an occupant still to attach (a driver product with no endpoint) read incomplete. Withdrawn by the architect the same day: a component may alarm without its system being degraded, such as a touch panel whose firmware is out of date, and deciding what an alarm costs the system is what the slot’s impact is for. The platform system (outposts and servers, in no slot) is the same case.

ADR-2485: Interactive primitives are in-house wrappers over Kobalte

Section titled “ADR-2485: Interactive primitives are in-house wrappers over Kobalte”
  • Date: 2026-11-23 | Status: Accepted | Pages: Design system
  • Decision: Every interactive primitive the console uses comes from web/src/components/ui/ (ModalDialog, ConfirmDialog, Popover, Tooltip, Select, Picker, Tabs, Toast, Collapsible, Switch, SegmentedControl), each a house-styled component over Kobalte with a keyboard-contract test. Only that directory imports @kobalte/core, enforced by web/src/kobalte-guard.test.ts. A surface that needs a primitive with no wrapper adds the wrapper first. Native <select>, checkbox, radio and <details> are not replaced where they fit, and the outline tree and TreeSelect’s tree stay ours (Kobalte has no tree).
  • Context: The console’s review (2026-11-23) found Kobalte imported directly in 13 files and the same patterns hand-rolled elsewhere (tabs, three comboboxes, a modal, 38 window.confirm calls). The Solid 2 analysis on #2290 raised replacing Kobalte with native primitives; the architect ruled the other way: lean into Kobalte, behind our own API, so builders reach for one component per pattern, every surface gets the same keyboard and focus behavior, and the library under it stays swappable in about ten files (the Solid 2 migration waits for Kobalte 2). The wrappers’ props are the contract the conversion epic (#2488) consumes. Building them found a live defect: Kobalte 0.13 assembles its Dialog and AlertDialog namespaces by Object.assign onto one shared root, so once the alert-dialog module loaded, Dialog.Content was the alert content and every Drawer announced itself as an alertdialog. The wrappers import Kobalte’s named exports, never those namespaces.

ADR-2558: A severity level declares its health effect

Section titled “ADR-2558: A severity level declares its health effect”
  • Date: 2026-11-24 | Status: Accepted | Pages: health, alarms and actions
  • Decision: (#2558, from the architect’s ruling on #2459: a verdict comes only from a rule someone declared, never from an alarm merely existing)
    1. Declared, not derived. severity_level.health_effect is one of none, degraded, outage. health.ComponentValue folds the declared effects of a component’s open alarms worst-wins; the OutageRank = 40 constant is gone. A component whose only open alarms declare none reads healthy and still lists them. Slots are unchanged: a component occupies its slot unless its own health is outage.
    2. Seed. info none; warning and average degraded; high and disaster outage. This moves exactly one behavior: an open info alarm no longer degrades its component. The boot seed is authoritative for the official rows, and when it changes a level’s effect it recomputes every component with an open alarm at that level in the same transaction, so a fleet upgraded with an open info alarm reads healthy after the first boot with no stuck degraded row.
    3. Custom levels. A custom level declares its effect on create; omitted, it takes what its rank had under the old floors (below warning none, below high degraded, else outage). The migration’s backfill of existing custom rows keeps today’s behavior instead (outage at rank 40 and above, degraded below), so an upgrade changes nothing for an operator’s own levels.
    4. Compatibility. The /severity-levels outage flag stays as a derived, deprecated alias (health_effect == outage); health_effect is the field to read. A re-rank no longer moves health; a change of effect does.
  • Context: An informational alarm (a touch panel’s firmware out of date) badged its component degraded because every open alarm did. System-level rules that turn member alarms into a system verdict remain #1002.

ADR-2561: Main recaptures the docs screenshots through a PR the architect approves

Section titled “ADR-2561: Main recaptures the docs screenshots through a PR the architect approves”
  • Date: 2026-11-24 | Status: Accepted | Pages: docs with everything
  • Decision: (#2561, ruled by the architect in the console review)
    1. How the recapture reaches the protected branch: a PR, not a bypass. Branch protection and the ruleset are unchanged and no App is added to a bypass list. On push to main (and release/**) the recapture job runs make docs-shots on the merged tree and, when a masked baseline changed (item 6), force-pushes one commit to claude/docs-shots-recapture (claude/docs-shots-recapture-<release> for a release branch) and opens the PR “docs: recapture the docs screenshots” or updates its body if one is open. The architect approves it like any PR. If a later recapture matches the committed shots the open PR is closed as superseded. The job mints the same agents’ App token agent-open-pr.yml uses and opens the PR as that App; it does not dispatch agent-open-pr.yml itself, because that workflow’s trust gate admits only a maintainer as the triggering actor and a workflow’s own token is not one.
    2. Latest main wins. The job’s concurrency group is per branch with cancel-in-progress, so merges landing close together coalesce, and a run whose commit is no longer the branch head stands down before pushing, so an older tree never overwrites a newer recapture.
    3. PRs stop modifying existing shots. scripts/docs-shots-guard.sh runs in the verify job on pull requests and fails a diff that modifies, deletes or renames a file under docs/public/screenshots/ or docs/screenshots/baseline/; adding a shot for a new id is allowed. The recapture branch is exempt.
    4. PR-time freshness stays off. The freshness comparison was already off on pull requests; it is now the recapture job, push-only. A PR’s visual evidence stays under .github/screenshots/<n>/.
    5. A queued recapture PR does not fail main (#2602). GitHub locks the branch of a PR in the merge queue, so a push to claude/docs-shots-recapture is refused (GH006). When the open recapture PR is queued, or the push is refused, the job pushes to a fresh branch claude/docs-shots-recapture-<short sha> and opens a new PR there as the App; if the queued PR already carries the same shots it exits green with a notice. The job fails only for a broken capture. scripts/docs-shots-plan.sh holds the branch choice and is unit-tested.
    6. Only changed baselines are committed (#2602). A clean shot’s live regions (ages, timestamps) differ on every capture, so committing every changed PNG would open a PR after nearly every merge. The job commits the shots whose masked baseline under docs/screenshots/baseline/ changed, plus their clean twins under docs/public/screenshots/; with no baseline change it changes nothing and exits green.
  • Context: On 2026-11-23 every merge made several open PRs conflict on the same shared PNGs (#2508 ejected from the queue twice, #2499 merging main three times, thirteen PRs holding). Git cannot merge binaries, so the shots needed one writer.

ADR-2652: release-please cuts every release from main, and the soak gates 1.0

Section titled “ADR-2652: release-please cuts every release from main, and the soak gates 1.0”
  • Date: 2026-11-26 | Status: Accepted | Pages: release and CI, the soak gate, a soak run, home
  • Decision: (#2652, decided by the architect: one release process for a minor and a patch, with nothing to work out at the cut. Supersedes ADR-2711, and ADR-2139 except its release App and its soak, which decision 7 scopes to 1.0.)
    1. release-please cuts every release, from main. On every push to main, the release-please workflow (googleapis/release-please-action) keeps one release PR open, chore(main): release 0.<n>.<p>, holding the next version and that release’s notes. It updates the PR as more PRs merge. Merging the release PR is the release: release-please tags the merge commit v0.<n>.<p> and creates the GitHub Release with the PR’s notes, and the same run then builds the release image and attaches the binaries, as release.yml does today, and comments “Released in” on the PRs it ships. A minor and a patch are the same step.
    2. The commits pick the version. The squash-merged PR titles since the last release are the conventional commits release-please reads, so the PR-title gate already holds the input. A breaking change (a ! after the type, or a BREAKING CHANGE: footer) or a feat bumps the minor, and a fix or perf the patch. bump-minor-pre-major keeps a breaking change on the minor while the version is below 1.0.0, and bump-patch-for-minor-pre-major stays off, so a feat is still a minor. 1.0 is never reached by a commit: it is a release-as set in the config on purpose, the release that first needs the soak.
    3. Forward only: no release branches, no backports. Every release is a tag on main’s history, and an older line takes no patches: a fix ships in the next release, and an operator upgrades to get it. A pre-production project with no production users has nothing to backport to, and a backport path is a second process to keep working. If a fix ever has to reach an older line (once 1.0 has users), release-please can run a release PR on a release/<major>.<minor> branch made from that line’s tag (its target-branch), and that is the time to decide it, by a new ADR.
    4. The release PR is the approval. Nothing scheduled merges it and nothing cuts a release without it. A release is cut whenever the work calls for one, roughly weekly, by merging the release PR, whose title and body show the version and the notes before anything ships. The PR stands open the whole time, so it is its own reminder, and no separate nudge is needed. The release-please workflow does nothing while RELEASES_ENABLED is unset (#1940).
    5. No CHANGELOG is committed. The release type is simple with skip-changelog, so the release PR changes only version.txt and .release-please-manifest.json, and the notes live on the GitHub Release (release-please writes the Release body from the release PR, not from a changelog file). Those two files are the only thing a release writes to main.
    6. It runs with the release App’s token. Three things need a token other than GITHUB_TOKEN: the v* tag ruleset lets only admins and the release App create tags; a PR opened with GITHUB_TOKEN starts no workflow, so the release PR’s required checks would never run and it could not merge; and a release created with it triggers no other workflow. So the workflow mints the release App’s token (#1940), with contents and pull-request write, and release-please opens the PR and creates the tag and the Release with it.
    7. Candidates wait for 1.0, and the soak gates 1.0. Before 1.0 there is no candidate: a 0.x release is the merge commit main already ran its full CI and the merge queue on. From v1.0.0 on, a final release still needs a passing soak record for its build (#1988), which needs a candidate; how a candidate is cut from main (release-please’s prerelease versioning, or a branch for the soak) is decided before 1.0. The soak tooling and its records stay, and a 0.x build can be soaked by choice.
    8. Pre-production until 1.0. The README, the docs home page and every release’s notes say that Omniglass is pre-production software: breaking changes can land in any release, at any time, without notice, and it is not for production use yet. The notice comes off in the release PR that cuts 1.0, and not before.
    9. Each release line keeps its docs. From v0.1.0 on, the docs for each release line are published beside the newest, and a version picker reaches them:
      • Where. main’s docs stay at the site root (docs.omniglass.hyperscaleav.com), so every link already in the console, the code and the issues keeps working; a release line’s docs live under /v<major>.<minor>/ on the same host. One version a minor: a patch updates its line’s docs.
      • How each release publishes them. The release run builds the site at the release’s tag with Astro’s base set to /v<major>.<minor>/ and deploys it to the Pages project as a branch alias named for the line. A Pages Function on the root deployment serves /v<major>.<minor>/* from that alias, so a new line needs no DNS, domain or project setting of its own.
      • How the picker finds them. The root build writes /versions.json from the release tags (one entry a minor, newest first, with its newest patch). The picker, a Starlight component override in the header, reads it from the root at run time, so a line’s docs list the releases cut after it. A versioned page carries a banner naming its line and linking the same page on the newest, and its canonical link points at the root page, so search engines index one copy.
  • Context: No release has shipped. ADR-2139 put a 7-day, 3,000-system soak in front of every final release, and on a pre-1.0 project with no production users that week held v0.1.0 back indefinitely. ADR-2711 then had the commits pick a release branch, but a branch per minor made every patch a cherry-pick, even when main held nothing but fixes, so a minor and a patch were cut two different ways. The architect asked for one process with no thought in it, like the semantic releases this project started with. Windmill (windmill-labs/windmill) releases this way: release-please on main, a patch and a minor cut the same way, no release branches and no backports. Unlike semantic-release, which ADR-2139 dropped, release-please releases only when a person merges the release PR, and bump-minor-pre-major closes the hole ADR-2139 named, the first breaking change numbering a release 1.0.0.
  • Not chosen:
    • A release branch per minor, patches by cherry-pick (ADR-2711). Two processes, and a cherry-pick PR for every fix even when main’s tip is the patch.
    • Fast-forwarding the release branch for a patch. It works only until the first cherry-pick, and the release/* ruleset takes pull requests only, so it needs a bypass push.
    • Tagging main with our own make release. The same flow as release-please, but a tool of our own to keep, where a maintained one already reads the same conventional commits.
    • semantic-release on every merge. It releases with no approval, a multi-arch image and a GoReleaser run for each of the dozen or more PRs main takes a day.
    • A committed CHANGELOG.md. release-please’s default; the notes already live on the Release, and a changelog would be a second copy in every release PR.
    • Keeping the soak on 0.x. It keeps the gate that has blocked the first release, for a stability promise 0.x does not make.
    • A subdomain a version (v0-1.docs...). Each line would need a custom domain added by hand, a manual step every release.
    • Rebuilding every version in one deployment. The root build would grow with every release, and a version’s docs would be rebuilt by today’s toolchain rather than kept as published.
  • Built with it: the release-please workflow, its config and manifest, and version.txt; release.yml called from it on a created release instead of dispatched on a branch; make release, make release-plan, cmd/release, cmd/releaseversion and their packages removed, and the release page rewritten to match. The release App already holds pull-request and issue write and its bypass on the tag ruleset, and the release PR’s footer carries the demo and regression-test tags, so the lints that read a human PR’s body pass it unchanged.
  • Follow-up (not built here): the notice in each release’s notes (#2787); the dead release/** triggers (#2788); turning releasing on (#1940); the versioned docs build, the Pages Function, /versions.json and the picker; and a release binary’s console linking its own line’s docs.

ADR-2711: The commits pick the release branch; the branch numbers the release

Section titled “ADR-2711: The commits pick the release branch; the branch numbers the release”
  • Date: 2026-11-25 | Status: Superseded by ADR-2652 | Pages: release and CI
  • Superseded by ADR-2652: release-please reads the same conventional commits and cuts every release from main, with no release branch, so make release and the cherry-pick list are retired.
  • Decision: (#2711, asked for by the architect: cutting a release should take no thought.) Refines item 4 of ADR-2139:
    1. The commits pick the line. cmd/release (make release) reads the remote’s release branches and tags (a tag deleted on the remote no longer counts, a local-only one never does) and main since the newest release line branched (its release/<major>.<minor> branch, else its newest tag) as conventional commits, with the same parser the notes use (releasenotes.Parse). A feat bumps the minor, a fix or perf the patch, anything else alone releases nothing.
    2. No breaking change numbers 1.0. A breaking change bumps the minor while the major is 0 and the major only from 1.0 on, so the trap ADR-2139 named (semantic-release numbering the first release 1.0.0) cannot recur. Reaching 1.0 stays a decision someone makes by name.
    3. A minor or major opens a branch; a patch does not. A new line is created at main’s tip after a preview of the version, the commits that drove it and the full notes, and a confirmation (DRY_RUN=1 previews, YES=1 skips the question). A patch lists the fixes the line’s branch lacks, matched by patch id, cherry-pick -x trailer, PR number or description, for cherry-pick PRs.
    4. The branch still numbers the release. cmd/releaseversion is unchanged: the tag a dispatch cuts comes from the branch name and the tags. The tool never dispatches the release workflow and never sets RELEASES_ENABLED.
  • Consequences: the PR title sets the release line again, not only its line in the notes, so a mistyped feat on a fix-only week opens a minor. The preview is the check against that.

ADR-2726: A throwaway lab’s seed lands past health and alarms, labelled as seeded

Section titled “ADR-2726: A throwaway lab’s seed lands past health and alarms, labelled as seeded”
  • Date: 2026-11-26 | Status: Accepted | Pages: health, alarms and actions, the lab
  • Decision: (#2726, approved by the architect.) A throwaway lab’s seed may land past derived state directly. LandSeededHealth writes a system’s (or a component’s or location’s) health edges as the calculated health rows the health read serves, at the given past times; LandSeededAlarms writes alarms already raised and cleared, keyed as their rule would key them. Both label every row with the seed’s source (devseed, as --platform-history labels its samples, #1790), are their own sentinel (a second landing writes nothing), write no audit or event row, recompute no health and queue no notification. The alarm row gains source (empty for every alarm the platform raises) so a seeded alarm is labelled like a seeded health row. The lab plan is the guard: the writes run only from lab seed --health-history, which needs a throwaway (--ephemeral) lab.
  • Context: A fresh lab’s health began minutes before a capture, so a one-minute outage swung a room’s Uptime from 82% to 69% (the marketing teaser, #2722), and nothing read like a fleet that had been running. Health and alarms are otherwise only ever the platform’s own writes, stamped now (health is recorded as a transition), and that stays true of every instance that is not a throwaway lab. Generating the history through the real rules on a virtual clock is epic #1796, several slices larger; this hand-shaped cut is labelled so #1796 can retire it. A seeded alarm’s own timeline is empty (no events, no audit rows), and it counts as nothing having observed its component, so a component nothing collects from still reads unknown. The seeded health goes before each owner’s own record and never rewrites it: the health series holds that no value follows itself and that id order is time order (every live read takes the highest id), so the owner’s series is rebuilt under its health lock with the seeded edges first and its own rows copied after them, and an edge at or after the owner’s first recorded one is refused.

ADR-2731: The console follows state over its one live stream, and polling is guarded out

Section titled “ADR-2731: The console follows state over its one live stream, and polling is guarded out”
  • Date: 2026-11-26 | Status: Accepted | Pages: UI, API, views
  • Context: The console polled: 48 refetchInterval reads across 27 files, every 1 to 60 s. A component page made about 90 requests a minute, each an auth query and a data query, nearly all answering “nothing changed”, and showed data up to 5 s old. ADR-1830 had already given each tab one multiplexed stream, carrying only ingest rows.
  • Decision:
    1. One stream per tab, widened, not a second one. /views:watch takes topics (comma separated kind:ref, a component or a system, at most 32) beside bindings, and either alone is a valid watch. A changed event names a topic a write moved: {"topic":"system:<ref>","kind":"system","id":"<uuid>","op":"update","v":<seq>}. It carries no data: the client refetches through the typed route it already reads, so authorization, redaction and the response’s shape stay on that route. /live was not added: the watch already had the cursor, the resume, the scope and the per-user cap.
    2. The change lane rides the tail. A notice is a row on the tail’s ring (tail.LaneChange), not a ring of its own, so a stream has one position: its event id resumes the bindings and the topics alike, and a position the ring no longer holds is a reset (with topics: true) for both. A notice publishes after the transaction that wrote it commits, never before: the write chokepoint notes the entity on its transaction’s connection, and a pgx query tracer on every pool connection publishes what that connection noted when it sees the commit, and drops it on a rollback. That is the one place every transaction’s commit is visible, whoever began it. In-process, as the tail is; not Postgres NOTIFY, which takes a commit-time global lock under write load.
    3. The chokepoint is the health recompute. Every write that moves a system’s health, its slots or its members recomputes the system, so the recompute names the system (and each component it recomputes), whether or not the verdict moved: a slot assigned to a healthy member changes the page without changing the health.
    4. Scope at connect, never a fleet-sized set. Each topic needs its kind’s read and resolves inside that read’s scope at connect, as a binding’s literal ref does: one out of scope is the same 404 as one that does not exist, so a stream never names an entity its caller cannot read. A stream holds the topics it named, not its caller’s scope.
    5. Coalesced per topic. A stream names a topic at most once each 250 ms: the first notice goes out at once, the rest of a burst waits and goes out as the newest at the window’s end. While one waits, no event carries the stream’s position as its id, so a reconnect from any id misses no change and repeats none. Rows never wait (a storm across several topics could hold them for good): sent while a notice waits, a rows event carries its cursor only in its body, which is what a binding resumes from.
    6. The console resumes from topics_cursor. A reconnecting EventSource’s Last-Event-ID resumes the topics, but the console passes topics_cursor instead, because Last-Event-ID would also move a newly joined binding past its history’s cursor. A stream opened with no position refetches what was read before it opened, the one window a notice could not cover.
    7. The hub owns the connection. liveQuery (web/src/lib/live.ts) is useQuery with topics, refetching on a notice (debounced 250 ms) and on a reset. The hub reconnects with jittered exponential backoff (1 s doubling to 30 s), closes the stream in a tab hidden 30 s and resumes it on focus, and refreshes every 30 s only while no stream delivers (a refused open, the per-user cap, no first event within 10 s behind a buffering proxy).
    8. Stream hygiene. Every SSE route sends X-Accel-Buffering: no and sets a 10 s write deadline before each send, so a client that stops reading ends the stream rather than parking its goroutine. The watch also sends retry: and, on server shutdown (RegisterOnShutdown), ends each stream with a final mark. The omnibot run is a POST no EventSource reconnects and AG-UI has no mark, so it takes the header and the deadline and keeps its own end.
    9. The guard. web/src/polling-guard.test.ts fails on refetchInterval, setInterval, new EventSource, and a setTimeout that reads or re-schedules itself, outside lib/clock.ts (the UI tick) and lib/live.ts. web/src/polling-allowlist.json names the files still polling: a file not on it that polls fails, and one on it that no longer polls fails, so the list only shrinks.
    10. Notices publish only while a stream follows topics. Change notices share the tail’s ring, so a recompute storm (an alarm storm, a fleet-wide ingest) with no topic follower would land a commit per recompute and evict sample rows, resetting every chart binding’s cursor. The hub counts the streams following topics (FollowChanges, taken before the stream’s position so no later change is missed) and PublishChanges drops a notice while the count is zero. We chose this over a second bounded ring because it keeps one cursor per stream (point 2); while someone does follow topics, a storm still shares the ring, bounded by the one-notice-per-topic-per-window coalescing on the send side only. A notice dropped is remembered (ChangesDroppedSince), so a topics cursor resumed across one, the gap of a reconnect with no other page open, resets and the client refetches instead of trusting a silence.
  • Divergence from the issue: the issue drew the change hub as a sibling of the tail ring; one ring keeps one cursor per stream (point 2). Collection topics (a scoped list, at most once a second) are not in this slice: the system page needs entity topics only, and #2732 tracks them.
  • Consequences: the system page’s health, slots, members and alarm history no longer poll; the remaining pages move in later slices, most requests saved first, each taking its files off the list. A second server does not see the first’s notices, as with the tail. The heartbeat still makes one auth query a stream each 15 s; an in-memory access epoch is a follow-up.

ADR-2741: A system’s Activity follows the page’s time range, opening on 30 days

Section titled “ADR-2741: A system’s Activity follows the page’s time range, opening on 30 days”
  • Date: 2026-11-26 | Status: Accepted | Pages: explore your fleet, alarms, the visualization inventory
  • Decision: (#2741, the default ruled by the architect.) The system page’s time range (#2304) governs Activity too: Activity reads the system’s health report a second time over the range, with its since (and until for a custom range), while the current report (header, Why, slots) stays the one unranged, polled read on every tab. Uptime is not ranged: it is the availability KPI over a fixed rolling 30 days (the service levels in health, #2607), read from the current report whatever the picker holds (“since …” for a younger system). The history bar opens at the range’s start in the health carried in (carried_in), and the alarm rows and markers read the same window (a custom range also reads its alarms with since and until, since the default alarm read covers only the last 30 days of cleared ones). With no range in the address, Activity opens on the last 30 days (HISTORY_DEFAULT_RANGE, a status page’s window) and Overview and the Timeline keep 24 hours; the picker shows the window each tab reads. The range primitive gains given (the range the address or a blade’s own pick carries, undefined when none) and an explicit write, so on a page whose tabs open on different defaults a pick of 24 hours lands in the address and holds on Activity. A custom range a caller without view:read cannot read falls back to each tab’s default, as before. A blade keeps its own range.
  • Context: Activity kept fixed windows when the range landed (#2304), because its reads could not honor one; the health read has since taken since and until and returned carried_in (#2425, #2735). Over a fixed 30 days a ten-minute outage is a fraction of a pixel and Uptime cannot be read for the hour an operator is looking at; asked for while recording the marketing teaser’s before-and-after health beats (#2722). Events and logs keep their 24-hour lists for now.
  • Amended (#2741, before merge): the first cut measured Uptime over the range too; the architect ruled it a fixed-window KPI, a status number rather than a troubleshooting readout, so it reads the 30 days whatever range is picked, and the range governs only the history beside it.

ADR-2754: A behavior tick streams only what it changed, and may report named events

Section titled “ADR-2754: A behavior tick streams only what it changed, and may report named events”
  • Date: 2026-11-26 | Status: Accepted | Pages: simulation
  • Decision: A behavior tick applies its mutations as before, but its diff is only the paths whose value changed (numbers compared as numbers, so a profile’s YAML integer and a template’s integer are one value); an unchanged write publishes no state change, bumps no version and fans out to no events, websocket or session face. Routes, commands and overrides keep reporting every write. A behavior may declare events:, as a route does (ADR-1145): each renders against the state the tick left, in the same numbered stream as the changes, and an event whose data renders empty (white space only) is skipped that tick, so the template’s own condition says when it fires.
  • Context: The video bar’s meeting schedule (#2754) is a timer that rewrites the call’s watched paths every tick; with every write a change, the bar’s feed would stream its call state and participant count every minute and the driver would land a property sample each time, against #1360’s cost rule (properties transition-only, richness from more kinds of signal). A tick that reports only movement keeps the feed a record of transitions. Named events on a behavior are what let a device report an occurrence nobody requested (a call starting on schedule), where a route can only report one a request caused.

ADR-2754.2: A behavior reads its device’s wall clock and draws from its device’s source

Section titled “ADR-2754.2: A behavior reads its device’s wall clock and draws from its device’s source”
  • Date: 2026-11-26 | Status: Accepted | Pages: simulation
  • Decision: The behavior FuncMap gains now (the device clock’s unix seconds), nextSlot t m (the next boundary of an m-minute slot strictly after t, counted from the epoch, so a 30-minute slot falls on the hour and the half hour), randInt lo hi and chance p. The clock is the device’s own (the one its computed fields read, Device.SetClock), never time.Now read directly, and the draws come from the per-device source seeded from its id. A route’s templates keep the process clock (amended by ADR-2800: a route’s and a command’s now read the device clock too).
  • Context: The architect ruled (#2754) that a video bar talks on a realistic meeting schedule, not a call every 90 seconds: meetings on 30 or 60 minute boundaries (sometimes 15), starting a little early or late, the room booked about half its slots, because a 90-second cycle on every bar costs the 3,000-system goal for no realism. A schedule needs the hour, and a test needs to hold the hour still to drive a day in a moment; the device clock was already the one seam a test pins. Booking tables do not exist yet; when they do, a room’s bookings would drive the same schedule instead of its draws.

ADR-2757: The lab calendar is derived, not stored, and a scripted source feeds it problems

Section titled “ADR-2757: The lab calendar is derived, not stored, and a scripted source feeds it problems”
  • Date: 2026-11-26 | Status: Accepted | Pages: simulation

  • Decision: The lab calendar is derived, never stored. calendar.Generate(room, knobs, seed, window) is pure (no clock, no global): a room’s day is generated whole from the seed, the room key (site, building, room) and the UTC day, so a day is the same across runs, engines and windows. The scenario declares it in a calendar: block, meetings as knobs per standard, validated at load. An entry has a kind, a window on the simulator’s clock, a room scope and a payload of its kind; meeting is the only kind built, and a scripted problem (#2769) is a second kind from a scripted source on the same clock, not a second calendar. Template funcs meetingNow and meetingNext read the device’s own room; roomMeetingNow and roomMeetingNext read a room by key. A service that speaks for many rooms (a booking platform pushing per .Owner system, a meeting platform across a whole account) reads by room key, and resolves its system to a room key itself, because the calendar is keyed by room and a system is not a room.

  • Context: The video bar kept its own schedule from its own draws (ADR-2754.2), so the panel, the booking service and the meeting platform could each say something different about one room. Storing a calendar would need a table, a sync and a place for it to be wrong; a pure derivation has none, and a seed plus the manifest is all a simulator already has. The seed is the room key and not #1749’s stable device key, which has not landed: meetings belong to a room, and every device in it must see the same ones.

  • Amended (#2773): the world is the simulator’s own. The sim is; Omniglass learns. The simulator holds the world it simulates (sim/world: sites, rooms with standard and capacity, each room’s planned devices, the services and the rooms they cover, the meeting knobs per standard, the calendar seed, versioned) and never reads it from the server or its database, so the server’s device list carries no location. The lab resolves the plan to one world file per simulator outpost (a pure plan -> world, sized to the outpost’s site) and the simulator loads it.

    • Transport. The seed one-off writes world/<outpost>.json into the data volume it already mounts; each simulator outpost mounts that volume read-only and finds its file at the path in OMNIGLASS_SIM_WORLD, as the lab already hands it its pushers. No new volume, host path or server route. A lab with no plan writes no file and its simulator has no calendar and no rooms.
    • The join: the world names, the seed obeys. The pull still says which devices to serve (ADR-0142, unchanged). The world gives every planned device a name of its own, unique across the plan and room-qualified, <system>-<slot>-<n> (hq-mr86-1-main-display-1), and the lab’s scale seed onboards each component under exactly that name instead of asking the platform’s generator for one. The simulator then places a pulled device by an exact lookup of its component name; the world does not replay Omniglass’s naming, and no address is predicted. A test seeds a plan and holds every seeded name and room to the world’s. A pulled device the world does not name keeps empty room fields. This changes a scale lab’s component names (they were display-1 in every room); the storyline, the omnibot recording and the marketing shots that named components follow.
    • Services. A service resolves a push’s .Owner system to a room through the world (ownerRoom, ownerMeetingNow, ownerMeetingNext) and reads the rooms it covers (coveredRooms); Omniglass is not asked. A grant names its systems by the server’s uuid, which the simulator does not hold, so a pusher the world covers pushes for the system names the world gives it (worldSystems, #2765) and the server resolves each inside the pusher’s grant; with no world it pushes for its grant, as before.
    • Polled services. A scenario’s services: block places a polled cloud service once for the whole scenario (#2765), at the headquarters: a component the lab seeds with the product’s own driver, covering every system of every site, so its world holds the other sites’ rooms (with no devices) too. The service is a conduit (ADR-1282): the lab’s seed binds each covered system’s name as a room id, as an installer would, and the simulator names its rooms by the same ids from its world.
    • The meeting platform (#2790) is a polled service and a webhook sender at once, one account for the whole scenario placed through services: like the scheduling service. The world owns the ids of what it lists: a room is its system’s name, a device has the stable id scenario.DeviceID gives its name, with the kind a meeting platform lists it as and the firmware it reports. The lab’s seed binds each room id to its system and each device id to its component; the platform’s device list is a second poll of the same driver, since an endpoint is named for its transport and a component holds one.
    • Deferred. The inversion of ADR-0142, where the simulator decides which devices exist and Omniglass discovers them, is a separate definition; the world file is the seam it would grow from.
  • Amended (#2770): the server reads the world file for the ground-truth route. A lab server serves GET /lab/calendar (lab-only, simulation:read, limited to the caller’s system read scope) by loading the world files the seed wrote into the data volume it shares and computing the calendar with the simulator’s own functions, so it needs no new setting and cannot disagree with a device. It is a read for display beside what Omniglass detected; nothing it reads enters collection or detection. A lab with no plan has no file and an empty calendar.

  • Amended (#2769): scripted problems. The second kind is built. A scenario’s calendar.problems scripts recurring problems (a cadence, a UTC time and duration, a scope resolved from the plan and the world, and the role of the room it lands on, never a product), derived like the meetings from the world and the seed: only an optional spread is drawn, a seeded whole-minute offset inside the cadence. (Superseded by the #2798 amendment below: the meetings-only and All split is gone.) One executor in the simulator applies a problem’s impairment as its window opens and clears it as it closes: a pin through the behavior-override seam (put back as it was), and unplugged or packet loss through the netns impairer, merged with the server’s own impairment and refused with a log line without NET_ADMIN. Omniglass is told nothing; the meeting platform’s devices list reads a device offline from the calendar while a problem has it unplugged, not from the dark device.

  • Amended (#2799): one impairment arbiter decides what a simulated device suffers. #2769’s executor owned a device’s whole override set and merged network wants its own way, so a next source (scenes, #2314) would have overwritten it or been overwritten. sim.Arbiter, one per engine, now takes each source’s wants under the source’s name (the operator’s route, each scripted problem as problem:<name>) and is the only writer to the override set and the impairer. Resolution is deterministic: unplugged if any source wants it; the highest loss, latency and jitter and the tightest rate; for one path the newest pin (by when its source first held it) wins, the losers kept and restored in order as winners release. Each source releases only its own. The meeting platform’s offline listing asks the arbiter, which holds scripted problems as a derivation from the calendar (central, so it also answers for devices another simulator serves) beside the registered wants.

  • Amended (#2798): an entry is a sum type, and there is one query. calendar.Entry carries its kind and exactly one payload, Meeting or Problem, behind a sealed Payload interface; the payload is not an exported field. NewEntry(kind, ...) refuses a payload of another kind or none, MeetingEntry and ProblemEntry build one that agrees by construction, and AsMeeting and AsProblem return the payload by value with a false for another kind, so a kind added later (#2314’s scenes, #1362’s narrative steps) cannot nil-deref a reader that does not know it. The meetings-only Entries, Now, Next, Prev and the Problems, ProblemsNow, All trio become one surface: Entries(room, from, to, kinds), with Active(room, t, kinds), Now, Next and Prev taking the same Kinds (MeetingKinds, ProblemKinds, AllKinds; the empty set reads nothing), so every caller states what it reads. Results stay in start order, meetings before problems that start together, so Entry.Map() and the GET /lab/calendar payload are unchanged on the wire (a golden of a pinned day, recorded before the change, holds it). A guard test (internal/build) keeps payload pointers, entry literals and the caltest helper out of non-test code outside sim/calendar.

  • Amended (#2797): one room phase, derived once. Timing rules were worked out again in about a dozen profile templates (roomInUse 120 300, “attended”, “in a call”, “sharing”), so retuning one silently split a room. calendar.StateAt is now the one primitive: a room’s phase (idle, waking, in-meeting, sharing, cooldown, impaired) and the facts its devices read, a pure function of the calendar like the rest. The wake lead, cooldown tail, recording tail and sharing stretch are knobs of calendar.meetings per standard (wake_lead_seconds, cooldown_seconds, recording_tail_seconds, sharing), defaulting to the values the profiles carried, so no reading moved. The engine memoizes the state per room per second; templates read it through roomPhase, roomPhaseOf and ownerPhase; roomInUse and meetingSharing are retired, and a guard test fails if a profile does arithmetic on a meeting’s time. An impairment is read from the calendar’s problem entries and shows as the impaired phase, but impaired takes the phase label only: in_use, call_active and sharing still follow the meetings, because a problem is something done to a device, not a reason for the room to stop meeting. The sharing stretch is whole numbers (parts of a meeting), not fractions, so it is exact at every second.

ADR-2757.2: Rooms are named the way companies name them, and the console shows the name with its address

Section titled “ADR-2757.2: Rooms are named the way companies name them, and the console shows the name with its address”
  • Date: 2026-11-27 | Status: Accepted | Pages: simulation, lab
  • Decision: A real building has both a name a company gave a room (“Curie”, “Huddle 3”) and the address of the place it sits (“Hq Tower 12 01”). The scenario plan labels each system with the name, drawn from one theme per site (room_names on the archetype, word lists held in internal/lab/scenario/roomnames.go and nowhere else) or, where a standard declares a room_name, from what the room is, numbered within its site; the location stays the address. A name is a pure function of the scenario, the site, the standard and the room’s index, and unique within its site. The world carries the label with each room, so the meeting and scheduling platform simulators list a room by its name with the address beside it, and the console names a system with its address wherever it is listed (the system page’s title, a device’s Systems it serves, a conduit’s bindings and picker, search, Explore and the system blade), the address left out where it would repeat the name. fleet.NameGenerator (the adjective-surname generator) is retired: nothing else used it.
  • Context: The lab labelled systems “Boring Edison” while the location tree carried the address, and a sole system’s page was titled by its location alone (#872), so a lab’s rooms read as an address on one surface and an unrelated name on the next. The architect ruled that reality is both: companies name their rooms. This diverges from ADR-0914, which kept the generator for the scale lab’s resolver.

ADR-2789: A poll declares how its list pages, and the engine walks every page in one poll

Section titled “ADR-2789: A poll declares how its list pages, and the engine walks every page in one poll”
  • Date: 2026-11-27 | Status: Accepted | Pages: drivers, collection
  • Decision: (#2789, a slice of #2757; the architect’s ruling that the engine hard-codes no field or parameter name.)
    1. The rule is a field of the poll’s request, request.paginate, on an http poll that reads records and sends a GET. It is declarative and names nothing of the engine’s: the driver spells every field and parameter, and a platform that calls its cursor next_page_token is the only place that word appears (its driver’s YAML).

    2. Two styles. cursor: the answer carries a value (read from the JSON body at the dotted path cursor_from, or from the response header cursor_from_header) that the next request sends back as the query parameter cursor_param or the request header cursor_header; an absent, null or empty value is the last page. page: the request sends an ascending number in the query parameter page_param, from first_page (1 when absent, 0 for a zero-based API); the walk stops at an answer with no records, or earlier at the answer’s declared total: pages_from (total pages) or total_from (total records, which needs size).

    3. Page size is optional: size_param and size go together.

    4. Bounds. max_pages (default 100, at most 1000) and max_records (default 10000, at most 100000) bound one poll. Reaching either, a cursor that answers itself, a page that fails, or a page whose body does not hold the records is a fault that names the endpoint (driver poll <driver>/<function> <METHOD> <path>) and the page, and nothing lands: the walk returns no answer, so no partial fan-out reaches the outbox. This extends MaxRecords (2048, still the bound of an unpaged answer): a paged poll’s bound is its own max_records, so a 3,000-room account is one collection.

    5. Where the walk lives. driver.Pagination.Walk (internal/driver/paginate.go) is the pure walk: it takes a function that sends one page and returns the first page’s body with the array at records replaced by every page’s records, in order. The collection engine supplies the page sender (fetchPagedPoll, internal/collection/driverpoll.go), so the walk is unit-testable with no network, and the interpreter, the identity read and the fan-out (ADR-1282) see one ordinary answer.

    6. Example (the shape another driver follows):

      request:
      path: /api/rooms
      paginate:
      style: cursor
      size_param: page_size
      size: 100
      cursor_from: next_page_token # or meta.cursor, or cursor_from_header: X-Next
      cursor_param: next_page_token # or cursor_header: X-Cursor
      max_pages: 100
      max_records: 10000
      records: rooms

      A page-number API: paginate: { style: page, page_param: page, first_page: 1, size_param: per_page, size: 100, pages_from: meta.total_pages }.

  • Context: A cloud platform lists thousands of rooms and devices a page at a time. Without a walk, a driver reads only the first page, and a driver per page would break the one-poll-per-account shape the conduit exists for. Declaring the rule on the request keeps the engine mechanical and lets two platforms with different field names share it. Out of scope, later and unfiled: rate-limit backoff and retry-after, and Link-header (RFC 8288) pagination. No schema migration, route or authorization changes.

ADR-2800: The simulated world’s clock has an offset, and a route reads it too

Section titled “ADR-2800: The simulated world’s clock has an offset, and a route reads it too”
  • Date: 2026-11-27 | Status: Accepted | Pages: simulation, the lab
  • Decision: sim.Clock is the simulated world’s clock: real time plus an Offset. The engine holds one (Engine.SetClock, real time when none is set) and every device it builds reads it (Device.clock), as do the scripted-problem executor and the pushers’ engine. A lab test names the offset with omniglass lab run --sim-clock-offset (a Go duration), which sets OMNIGLASS_SIM_CLOCK_OFFSET on each site outpost’s simulator. The offset moves every read of the world’s time: the calendar funcs, now, a device’s uptime anchor (seeded on the same clock, so uptime is unchanged by it) and the stamps a device writes in the world’s own time (a reboot’s boot_epoch, a webhook body’s ts). It does not move the outpost’s collection cadence, a timestamp Omniglass stamps (a sample’s collection time, a request hit, the observation window) or a signature timestamp a webhook receiver checks against its own clock. A route’s and a command’s templates now read the device’s clock for now, which amends ADR-2754.2’s “a route’s templates keep the process clock”: with an offset a route stamping real time into an anchor the device’s clock reads would read as a day of uptime. A session subject’s push template still renders on the process clock.
  • Context: Every #2757 lab test ran outside the corporate scenario’s 08:00 to 18:00 UTC hours, so only idle agreement was proven end to end. A test that places “now” inside a chosen meeting proves the live case without waiting. The offset is the first, fixed-speed step of #1362’s simulated clock: a speed factor joins Offset in the same Clock, the knob keeps its name and the seam is the one already there, so #1362 extends the type rather than replacing it. The world file was not the carrier: the world is what the scenario planned, the offset is how a run reads it, and one world file serves any offset.

ADR-2829: A simulated device is a definition that a YAML profile or a Go family satisfies

Section titled “ADR-2829: A simulated device is a definition that a YAML profile or a Go family satisfies”
  • Date: 2026-11-27 | Status: Accepted | Pages: simulation
  • Decision: sim/spec defines Definition (id, kind, identity, surfaces, initial state, products, behaviors, elapsed uptimes, push and webhook faces). A YAML profile satisfies it through an adapter (spec.FromProfile); a Go family satisfies it as a spec.Spec (identity, a typed Model table, interfaces and ports, the state tree, HTTPRoute and Command handlers as Go funcs, an Animator seam). spec.Catalog resolves a product: a family that claims it (its name or one of its models) wins, else the YAML profile that simulates it. A family may not share a name with a YAML profile (the profile is deleted when its family lands) and two families may not claim one product. The engine, the outpost, the fleet planner, the dev seed, the lab scenario’s catalog, the footprint sweep and the simulation routes all read the catalog, never the profile store. make gen writes the list of families (sim/device) by scanning its directories.
  • Context: #2826 migrates the simulator’s 31 profiles to Go one family at a time, so both kinds must run side by side and every consumer must be indifferent to which it has. A family’s routes and commands are listed on its surfaces (marked Native, no template behind them) so the console shows a family’s API as it shows a profile’s. The Animator is the seam the shared behavior primitives plug into; until they land a family may run YAML-style behaviors through the existing machinery. The Go handlers are not rendered from templates: a response is a typed Go value the engine encodes.
  • Amended (#2845): a family’s read-derived uptime is a typed spec.Elapsed{Path, Since} in Spec.Elapsed, not the YAML profile.Computed it first reused; Definition.ElapsedList replaces ComputedList, and a YAML profile’s computed: block is presented through the same list. The value read, and so every wire transcript, is unchanged.
  • Amended (#2837): the strangler ended. The last YAML profile was deleted with #2836, and #2837 deleted what only profiles used: the YAML store and its loader, schema.json, the surface fragments and the response and behavior templates, the spec.FromProfile adapter and Kind (a definition has no second kind to name), Definition.BehaviorList and Spec.Behaviors, the engine’s template routes, commands and behaviors, and the Native workaround fields (a family’s listing is built from its own typed declarations, wire.Route.Sets and wire.Interface.OIDs). sim/profile, a package of what a family still composes, is sim/wire. spec.NewCatalog takes the families alone, and a guard test fails the build if a YAML profile or a behavior template reappears. A product resolves to the family that claims it; there is no fallback to resolve to. The coverage accounting moved from coverage.yaml to Go (sim/device/coverage.go), and the simulation page’s family and coverage tables are generated from the specs (cmd/simgen).

ADR-2832: A Go family keeps its profile’s wire byte for byte and corrects only the profile’s accidents

Section titled “ADR-2832: A Go family keeps its profile’s wire byte for byte and corrects only the profile’s accidents”
  • Date: 2026-11-27 | Status: Accepted | Pages: simulation
  • Decision: A Go family that replaces a YAML profile is held to the profile’s wire, not to its author’s intent. Before the profile is deleted a recorder plays a fixed script against it (every route valid and refused, SNMP gets and walks, the drift a seeded source draws, a pinned room day with and without a calendar) and commits the transcript as testdata (sim/testdata/wire). The family’s parity test replays the script and compares status, headers, body bytes, the state after each write, SNMP types and values, and the behavior sequences. The family is correct when it matches, and a difference is either fixed or written down as a divergence in the test. Two are written down for the Boreal families (#2832). A product reports its own model: the Edge dashboard named “Edge 86” in its title and bar for every size because the template said so, and each size now says its own, so a 98-inch reports itself as one. A control route refuses a body it cannot read: the profile wrote <no value>, the word “loud” or the number 7 into a brightness, a volume or a mute and then answered a document that is not JSON, and the family answers 400 and writes nothing. A value outside a route’s fixed list is refused as before, with the engine’s own validation body.
  • Context: The epic’s bar is that readings stay identical (#2826). A profile’s tests assert what its author thought of, and the template engine adds behavior nobody wrote down (a missing field renders as <no value>, a JSON number reaches state as an int or a float by its look). Recording the profile’s own answers is the only complete statement of what “identical” means, and it costs nothing once the profile is gone. The two corrections are the only places the recording would otherwise have enshrined a bug: a size reporting another’s name, and state a collector would read back as garbage.

ADR-2833: Room control and switching split into five families by wire API, and refusals that were template accidents are refused plainly

Section titled “ADR-2833: Room control and switching split into five families by wire API, and refusals that were template accidents are refused plainly”
  • Date: 2026-11-28 | Status: Accepted | Pages: simulation
  • Decision: One package per wire API (ruling 1 of #2826), so the Newtron line is three families and the Meridian line two, each a one-row model table today. newtroncore answers the touch panel’s room and its own program, ports, panels, room power, temperature and macro; newtronpanel answers the room on five faces (raw TCP, TLS, Telnet, UDP and an SSH shell) beside its web API and a deliberately dead SNMP agent; newtronslate answers a room’s booking alone; meridianswitcher takes a route; meridianextender has a status and a reboot and no route. A processor and a touch panel share the NVP room surface and nothing else, and the catalog’s alignment test already holds a family’s models to one driver and one kind of component, which these five could not satisfy as fewer. Parity with the profiles is held by the golden transcripts recorded before they were deleted (ADR-2832), now covering line protocols: every NVP and shell line with its reply and the pushes it draws, and the device’s own command list. Two refusals differ from the profiles, each marked Quirk in the recorded script and pinned in the replay as a 400 that changes nothing:
    • A route whose field the profile wrote through a template without checking it (the panel’s scene, source, brightness and log line, the switcher’s route) answered, for a missing field or one that was not text or a number, with <no value> written into state or with the template engine’s own error text. The families refuse it as a control route refuses any unreadable field (a 400 naming the field), and a string stays a string: the profile coerced "7" or "true" into a number or a flag.
    • The switcher’s refusal of an input it does not have named a second path, the signal on that input, which the template resolved to <no value>; it names the input alone.
  • Context: The epic’s bar is that readings stay identical (#2826). Recording the profiles found these where the profile and its author’s intent part: no collector reads <no value>, and the console lists the quick sets of the input route as the one choice it is. Everything a collector, a driver or a test can observe of a valid request is unchanged, including the accidents that are harmless (the panel’s room, source and brightness routes all acknowledge the room’s scene; the scene and source accept any text, as the profile did).

ADR-2834: A Go family reports its profile’s named events on the live feed and corrects only the profile’s malformed words

Section titled “ADR-2834: A Go family reports its profile’s named events on the live feed and corrects only the profile’s malformed words”
  • Date: 2026-11-28 | Status: Accepted | Pages: simulation
  • Decision: A Go family reports a named occurrence on its device’s live feed with Device.Publish, from a route after the writes it follows, or from a tick’s Emit, which reads the device after the tick’s changes are written (as a profile behavior’s events are rendered against the state its mutations left). The recorder logs those events beside the state in every transcript, so the VRoom’s call-started, call-ended, participant-joined, participant-left and log events are held to the profile’s, in order, for every request, seeded tick and room day. A route marked Private is listed as private. Three differences from the Kestrel profiles are written down and pinned in the parity tests, and nothing else differs. The bar’s uplink-recovered log line printed the loss with a verb its template could not format when the loss was exactly zero, so it read loss %!f(int64=0)%; the family writes loss 0.0%. A value a route could not read as its kind (a volume or a pan that is a word, a mute that is a number, a missing field, a dialed codec’s count that is not a number) was written into state as text and answered a success; the family refuses it with a 400 and writes nothing, the same correction ADR-2832 made for the Boreal controls. The console lists a tick’s interval in whole seconds as it does for every family, so the status line’s 15m reads 900s.
  • Context: The Kestrel VRoom is the course’s one device whose feed carries named events beside state changes, and a driver maps each event to one of its own, so “readings stay identical” (#2826) includes them. A profile’s route events and behavior events were the only way to publish one, so a family had no way to keep them until the feed was reachable from Go. Recording them with the wire and holding them in the replay is cheaper than reasoning about each. The recorded zero-loss line is the one place the profile’s own words were wrong rather than its template’s accident, and a collector that reads log text would have been handed %!f(int64=0) for as long as the profile lived.

ADR-2835: A mixer channel the profile addressed by accident is refused

Section titled “ADR-2835: A mixer channel the profile addressed by accident is refused”
  • Date: 2026-11-28 | Status: Accepted | Pages: simulation
  • Decision: The Polaris DSP family (#2835) keeps the wire of the YAML profile it replaced, proven by the transcripts the profile recorded (ADR-2832), and corrects the accidents of its templates, each listed as a Quirk step in the audio wire script. The channel routes (POST /api/channels/mute, POST /api/channels/gain) took status.channels.<index>.<field> from the body: an index with a decimal point (1.5, "2.5") wrote a key that is no channel, nested inside the channel its whole part names and listed by every later read of it, and a mute or gain that was a word, a number where a flag belongs, missing or null was written into the channel as that word, <no value> or <nil>. The family refuses both with a 400 that writes nothing: an index must be a whole number, a mute a boolean or its text, a gain a number or its text. A body that is no JSON object is refused as unreadable, as every control route refuses it (ADR-2832). The other bad indexes (negative, past the last strip, a word, missing, null, a boolean, empty) are not accidents but refusals, and stay byte for byte: the 400 mutation failed document, naming the path and the state’s own reason (index 16 out of range [0,16)), which httpapi.Element builds from the list’s length.
  • Context: Readings stay identical (#2826), and recording the profile’s own answers is the only complete statement of what identical means. Most of what the recording held was a wire to keep. These requests were the exceptions: a collector could read back a channel that held the word “loud” as its gain, or a channel with a stray key, and nothing a lab operator typed into the console’s operations panel could have meant either. Refusing them costs a 400 where a malformed request used to succeed, and every request the console and the profile’s own dashboard make is unchanged.

ADR-2836: The census, the PDU and the cloud services are families of one named for their product, and the profiles’ template accidents are refused plainly

Section titled “ADR-2836: The census, the PDU and the cloud services are families of one named for their product, and the profiles’ template accidents are refused plainly”
  • Date: 2026-11-28 | Status: Accepted | Pages: simulation
  • Decision: One package per wire API (ruling 1 of #2826). The seven profiles share no API (a people counter, a PDU, an SNMP box and four cloud services behind different headers and routes), so there are seven families of one row. Each is named for its product, which the family table now allows (a model row may carry the family’s own name): the lab’s manifests, pushers and senders name a product as a profile (booking-service, ucc-platform), and a rename would touch every one. Parity with the profiles is held by golden transcripts recorded before they were deleted (ADR-2832), now also covering the census’s raw-TCP and binary bands, the recording service’s event stream, and every webhook post the UCC platform makes, checked against its signature. What differs, each pinned in the replay:
    • A refusal that was the template engine’s own text (a failed guard or path segment: Go template errors and the state path with {{ }} in it) is a plain 400 that writes nothing, naming the field and its pattern. A refusal the engine wrote as a validation body is unchanged, byte for byte.
    • Text is stored as text. The profile coerced a value that read as a number or a flag into one: a recording id "12345" became the number 12345, a webhook target of 5 or true was stored. A field that is not a string is refused 400 (Quirk).
    • The UCC dashboard names a room by its id when the platform holds no name for it, and reads a room with no state as idle, as its room list always did, where the template printed the markup <no value>; every page is html/template, so what a device holds is escaped.
    • A body that is not a JSON object is refused as one (ADR-2832).
    • The console offers no quick set for the PDU’s outlet state or a UCC device’s status. The profiles listed one, but its state path was a template that needs the outlet or the device named in the body, and a quick set sends only the value: on the profile the button answered 400 and wrote nothing. A quick set is a fixed state path; the routes stay in the operations panel, where an operator writes the whole body.
    • The UCC platform’s behaviors are not badged as posting a webhook: the badge read a YAML behavior’s emit, which no family has. The posts are unchanged, and the field behind the badge goes in the store’s retirement (#2837).
  • Context: The epic’s bar is that readings stay identical (#2826). The recording found the divergences above where the profile and its author’s intent part; nothing a collector, a driver or a lab test reads from a valid request changes, and the five lab tests that read these devices run unchanged.