Build log
Each entry below is one merged vertical slice, oldest first, logged as it landed. The live map of what is built sits on implementation status; this page is the history behind it. Entries are append-only and quote the vocabulary of their day, so retired terms appear here exactly as they shipped.
The code is built one vertical slice per PR, each a thin cut through the whole stack rather than a
horizontal layer. Slices are logged here as they land; a rebuilt page’s badge only flips once all of
its capabilities ship, so an early slice can prove a seam without moving any page off Design.
-
Slice 1: the walking skeleton. The single binary boots in two run modes.
omniglass migrateapplies an embedded dbmate migration (pure DDL, run-once, idempotent) against a BYO Postgres, andomniglass serverservesGET /api/v1/healthz, which pings the database through the Storage Gateway seam (the only DB path, an interface from day one) and reports{status, db}. The HTTP API is Huma over chi; the OpenAPI 3.1 document is generated from the Go structs (make gen), the source the typed clients are generated from in later slices. Proven by a testcontainer integration test (migrate applies clean, the gateway ping succeeds, healthz returns db ok) and an end-to-end test that builds and runs the real binary. Deferred to later slices: messaging (NATS / JetStream), the worker and outbox, identity and access (Slice 2), the collection engine, and the rest of the generation pipeline. -
Slice 2: the auth and gateway foundation. The identity and access schema (principal with per-kind human and service, credential, role, principal_grant, and audit_log; uuidv7 keys), the four official roles seeded idempotently at boot, and
omniglass bootstrap <username>, which creates the first owner (anowner@allgrant plus a bearer credential) directly and idempotently. A bearer token resolves through the Storage Gateway to its principal and grants, which flatten through the role index (inheritance, wildcards, the:readfloor) into a capability set. Two seams every later route reuses: the capability fast-reject (401 unauthenticated, 403 missing capability) andGET /api/v1/auth/me(principal, permissions, grants).GET /api/v1/rolesis gated byrole:read. Proven by testcontainer integration and end-to-end tests (bootstrap idempotency, the 401 and 403 paths, the auth/me contract) plus pure unit tests of the capability logic. Deliberate thin cuts this slice: bearer-token auth only, and scope resolvesowner@allto all (the per-actionvisible_setresolver lands when there are entities to scope). Deferred: password and OIDC auth, the first-class agent principal, and CDC-driven cache invalidation of the role index. -
Slice 3: locations and the per-action scope resolver. The first scoped core entity, and where the ABAC scope deferred from Slice 2 lands. The
location_typeregistry (the only shape-definer, since a location has no template) seeds the four official types at boot, ranked (campus/building/floor/room, spaced by ten);locationis a name-addressable, variable-depth tree (parent_id) whose type is a foreign key.POST/GET/PATCH/DELETE/list /api/v1/locationseach declare alocation:<action>capability and resolve the caller’s per-actionvisible_setfrom their grants and the role index, which the Storage Gateway expands (a recursive subtree walk) into the row filter and applies on every query, writing theaudit_logrow in the same transaction. The over-permit fix is real: only the grants whose role carries the action contribute scope, so a read-anywhere principal with a narrow write grant cannot write outside it. The three-way status split holds: out of read scope is a non-disclosing 404, readable-but-out-of-action-scope is 403, and a delete is refused (409) while the location still has children. Thelocation_typeregistry that classifies a location is itself readable atGET /api/v1/types/location(ranked, gated bylocation:read), which the operator console type picker lists. Proven by a pure resolver unit suite, a testcontainer integration test of the gateway split and audit, and an end-to-end HTTP test (scoped subtree listing, the 404, the capability 403, full owner CRUD). Deliberate thin cuts: scope kinds resolved areallandlocationonly; thelocation_typeregistry seeds official rows only;rankorders and signals hierarchy but does not constrain nesting; update patchesdisplay_nameandlocation_type(rename and reparent deferred); occupancy counts child locations only (placed systems and components join when they land). Deferred: system and component entities (Slice 4), group and dynamic-group scope (Slice 5), operator-defined location types via the namespace shadow, hard containment rules, and anyLocationTemplate. -
Slice 3a: the generated CLI. The second stage of the generation pipeline lands:
make gennow runscmd/cligen, which reads the committedapi/openapi.jsonand emits the cobra command tree (internal/cli/api_gen.go, committed and reviewed like the spec). One command per operation, derived from the AIP path and method:omniglass location list/get/create/update/delete,role list,auth me,healthz; path parameters are positional args, the request body becomes--flags, and--helpplus the example come from the operation’s summary and description. A:verbcustom method maps to<resource> <verb> <id>generically, so future custom methods surface with no generator change. The generated tree composes with the hand-written commands (theserver/migraterun modes and the trustedbootstraplane) on one root through a stable seam (internal/cli/api_hooks.go: the JSON-over-HTTP client and the shared--server/--tokenflags), so regeneration never touches a hand-written command. The CLI is a client of the API like any other: it carries a bearer token and the server enforces the same capability and scope. Proven by an end-to-end test that builds the real binary, bootstraps an owner with the hand-written command, and drives the generated location commands against a live server (create, scoped list, get, a non-disclosing 404 as a non-zero exit, delete, and--help). Deliberate thin cuts: JSON output only (no table rendering), and a generic client rather than a per-type typed one. Deferred: the typed SPA client and UI (Slice 3b), shell completion, multi-server contexts, and the YAML JSONSchema target. -
Slice 3b: the operator console. The last stage of the generation pipeline and the first browser surface: a SolidJS SPA (Vite, daisyUI 5 on Tailwind 4,
@solidjs/router,@tanstack/solid-query,openapi-fetch)go:embed’d into the binary and served under/web.make gennow also emits the typed SPA client (openapi-typescripttoweb/src/api/schema.gen.ts), so the console cannot drift from the API. The embed uses the build-tag-with-fallback pattern (internal/webui): a barego build/go testneeds nodist/and serves a build-the-console placeholder, whilemake build-webruns the Vite build and compiles with-tags webto embed the real shell. The visual system is the “Omniglass Console” design ported faithfully (thetheme.csstokens and component classes, the nav rail, top bar, density/theme tweaks, and Home). Locations is the first live view: list, detail, and create through the typed client, gated by a bearer-token login and the AuthGuard; the other nav sections render honest stubs until their backends land. Proven byinternal/webuiunit tests (the SPA-fallback routing against a fake FS, and the real embed under-tags web), an API mount test (/webserves the shell and the bare/webredirects), and a vitest suite over the locations data layer. Deliberate thin cuts: only locations is wired live; styling is daisyUI (two brand themes via the plugin) with Kobalte deferred until the first interactive widget needs it; auth is bearer-token paste, not a full login. Deferred: the mock-data screens (alarms, systems, components, dashboards) as their backends land, HTTP/2 (h2c) and the SSE live relay, and full auth UX. -
Slice 4a: the system tier. The second scoped core entity: a
system_typeregistry (seeded official, ranked, likelocation_type) andsystemas a name-addressable, variable-depth tree (parent_idsubsystems), optionally located at a location (location_id) and classified by its type. Full scoped CRUD (POST/GET/PATCH/DELETE/list /api/v1/systems), gated bysystem:<action>, with the same per-actionvisible_set, three-way 404/403 split, and in-transaction audit as locations. The scoped-tree recursive walk is now a shared primitive (internal/storage/scopetree.go): locations were refactored onto it and systems consume it, so the over-permit-safe subtree filter is written once. Proven by the pure resolver unit cases for thesystemkind, a testcontainer integration test (subtree scope, the 404/403 split, occupancy, FK faults, located-at, audit), and an end-to-end HTTP test plus the generatedomniglass systemCLI. Deliberate thin cuts: each entity is scoped by its own subtree (the cross-tier cascade, a location scope also covering its systems, is a later slice); reparent and located-at editing are deferred (create-time only). Deferred: components (Slice 4b), the cascade, templates, datapoints, and the systems UI (console section stays a stub for now). -
Slice 4b: the component tier, and a generic scoped-CRUD primitive. The estate is complete:
component(the leaf) joins locations and systems, with acomponent_typeregistry and a tree that belongs to a primarysystem_idand is located at alocation_id. The per-entity boilerplate is now a shared generic (internal/storage/scopedcrud.go): the read, resolve, and delete paths (list/get/resolve-for-action/ delete-with-occupancy/by-name, all scope-aware and audited) are written once over ascopedConfig[T], and locations and systems were refactored onto it; each entity keeps only its own create/update (which differ by the foreign keys they resolve). So a new scoped entity is a registry, a thin create/update, and a route file, not a mirrored copy. And the authorization conformance suite made adding component one registry line: the full security matrix (capability 403, the over-permit scope 403, the non-disclosing 404, in-scope success) and the no-unguarded-route guard now cover all three entities automatically. Proven by the pure resolvercomponentcase, a testcontainer integration test (subtree scope, the split, occupancy, belongs-to + located-at FK resolution, faults, audit), the generic authz conformance over location + system + component, and the generatedomniglass componentCLI. Thin cuts as the other tiers: own-subtree scope (no cross-tier cascade), reparent/rebind/relocate deferred, components UI deferred. -
Identity slice 1: password auth and the session cookie. Humans now sign in to the console with a username and password, the local-password method the identity model designs: a
passwordcredential (argon2id, PHC-encoded, one per principal).POST /api/v1/auth/loginverifies it and sets an httpOnly,SameSitesession cookie, so the console no longer holds a token (services and the CLI still send a bearer header);POST /api/v1/auth/logoutrevokes the session and clears the cookie, and the authn middleware accepts either.omniglass bootstrap --passwordsets the first owner’s password. Proven by argon2 unit tests, a storage round-trip, a real-binary login integration test, and a browser e2e that signs in through the form. Thin cuts: self profile edit and change-password (slice 2), admin user CRUD and role assignment (slice 3); email invite and forgot-password are later. -
Identity slice 2: the self-service profile. A signed-in operator manages their own account, whatever their role:
PATCH /api/v1/auth/meedits their own display name (email stays administrator-set), andPOST /api/v1/auth/me:changePassword(the first AIP:verbcustom method on the surface) verifies the current password and sets a new one, reusing the slice-1 argon2 primitive. Both are authn-only and self-scoped (they touch only the caller’s own principal), so they join the small ungated allow-list alongsideGET /api/v1/auth/merather than carrying a capability. The console gains a Your profile page (profile form, change-password form, and a read-only Access panel that teaches the principal, grants, and permissions it operates on); the CLI gainsauth update-profileandauth change-passwordfrom the generator. Proven by a storage round-trip, a real-binary integration test (wrong current password 403, short new 422, rotation, self-scope), and the client hook units. Thin cut: changing a password does not revoke existing sessions (a later hardening); admin user CRUD and role assignment are slice 3. -
Identity slice 3a: the admin principal directory. The first surface to exercise the already-seeded
principal:*capability:GET /api/v1/principals(with akindfilter) andGET /api/v1/principals/{id}list and read every principal with its grants, andPOST /api/v1/principalscreates a human with an optional initial password (argon2id, reusing the slice-1 credential; no new migration). All three are gated by aprincipalcapability that resolves only at all-scope: a principal is not a scope-tree entity, so a location or system grant confers nothing and the gateway answers a non-all scope with 403, proven both ways. Responses carry credential-free profiles and grants, so no secret ever leaves the API. The console/usersstub becomes a real Users directory (grid, detail panel, and a create form); the CLI gainsprincipal list/get/create. Proven by a storage round-trip, a real-binary integration test (all-scope allow, scoped-deny 403, duplicate 409, short-password 422, secret redaction, created-human login), the route-gating guard, and the client data-layer units. Thin cuts: nocreated_atcolumn in the directory yet, and create is human-only. Deferred: update / disable / delete a principal, role assignment, the owner-invariant trigger, and service-account and credential management. -
Identity slice 3b: admin update a principal.
PATCH /api/v1/principals/{id}edits a human’s display name, email, and username, gated byprincipal:update(all-scope). Renaming is safe by construction: nothing keys on the username (credentials and grants reference theprincipal.iduuid), so a rename re-homes the login rather than breaking it. A non-human target is 422, a clash 409, an unknown id 404, a location-scoped admin 403. The console Users detail panel gains an Edit form; the CLI gainsprincipal update. Proven by a storage round-trip (the rename re-homes authentication), a real-binary integration test (allow, scoped-deny 403, 409, 404, 422), and the client unit. Deferred: disable / delete, role assignment, and editing a service account’s label. -
Identity slice 3c: role assignment and the owner invariant.
POST /api/v1/principals/{id}/grantsassigns a role at a scope andDELETE /api/v1/principals/{id}/grants/{grantId}revokes one, gated byprincipal_grant:create/:delete(all-scope). This is how a fresh user gets permissions. The owner-invariant trigger (ADR-0006, now resolved) lands here: aDEFERRABLE INITIALLY DEFERREDPostgres constraint trigger refuses to leave zeroowner @ allgrants atCOMMIT, so revoking the last owner is a 409 while a one-transaction owner swap still passes (mapped from the custom SQLSTATEOG001toErrLastOwner). Bad inputs are caught: duplicate 409, unknown role 422, a scoped grant with no id 422, unknown grant 404. The console detail panel gains a grant chip x (revoke) and an add-grant form (role picker, scope kind, scope id); the CLI gainsgrant create/grant delete. Proven by a migration round-trip, a storage test (grant, revoke, the last-owner refusal, the swap), a real-binary integration test, and the client units. Deferred: disable / delete a principal, group grants, and editing a grant in place (revoke and re-grant instead). -
Identity slice 3d: disable and enable a principal.
POST /api/v1/principals/{id}:disableand:enable(AIP custom methods, gatedprincipal:update, all-scope) soft-disable an account: a newactiveflag onprincipal, andAuthenticateBearer/AuthenticatePasswordrefuse a disabled principal, so it can neither sign in nor use a token. Its rows (and the audit trail that references it) are kept, which is why the model is disable, not delete:audit_logreferences the principal, so an actor that has acted cannot be removed. A last-active-owner guard refuses to disable the final activeowner @ all(409), mirroring the grant trigger for the active flag. The console shows an inactive badge and a Disable / Enable toggle; the CLI gainsprincipal disable/enable. Proven by a migration round-trip, a storage test (both auth paths refused, enable restores, last-owner refusal, the swap), and a real-binary integration test. Deferred: hard delete (would need an audit-actoron delete set null, a separate decision) and bulk operations. -
Identity slice 3e: the grant builder (console). A UI-only refinement of slice 3c: the user card’s three stacked selects become a filter-bar-style scope editor. A keyboard-staged combobox (type a role, Tab/Enter to the scope kind, then the entity as an indented tree) commits each grant as a chip, and the whole set of changes is staged locally and applied only on Save (stage, preview, save), so there are no accidental or unclear edits: removing an existing grant marks it (dimmed, undoable) instead of firing a live
DELETE, and a pending-diff preview shows exactly what Save will grant and revoke. No new API: it drives the slice-3cPOST/DELETEgrant routes, applying adds before removes so an owner swap never trips the last-owner guard mid-batch. The staging core (draft, per-chip state, add/remove diff, stage validation) is a pure unit-tested module (lib/grantdraft); theGrantBuildercomponent takes its roles, entity trees, and save mutation as props, proven by a component test that drives the keyboard pipeline and asserts the saved diff. Deferred: previewing a grant’s effective access across the scope subtree (#89) and group grants. -
Console: unified button vocabulary. Buttons across the console moved from ad-hoc daisyUI classes (
btn-primary,btn-ghost text-error, and an inconsistent disable/edit pairing) to a small set of semantic intent classes defined inapp.css(btn-action,btn-quiet,btn-danger,btn-warn,btn-ok),@apply-composed from the daisyUI theme tokens so a future custom theme restyles every button from one place. Astyle-guardunit test scans the source and fails on a rawbtn-primary/btn-ghost, pinning the vocabulary against drift. No behavior or API change: purely how buttons are styled. See the design system. Follow-on: custom theme switching beyond the two brand themes. -
Identity: disabled-account sign-in message. A disabled account that signs in with the correct password now gets an explicit “This account is disabled. Contact your administrator.” (a distinct
403), instead of the generic invalid-credentials message, so a locked-out operator knows to ask an admin rather than assuming a wrong password. The disclosure is oracle-safe by construction:AuthenticatePassworddrops theand pr.activefilter, always runs the argon2 verify (against the real hash, or a dummy hash of matching parameters on a miss, so there is no early-return timing leak), and only branches to the newErrAccountDisabledafter the password verifies. So a wrong password (or an unknown user) against a disabled account is indistinguishable from any other bad credential: same generic401, same work. The bearer/token path is unchanged. Proven by storage tests (correct password on a disabled account ->ErrAccountDisabled; wrong password ->ErrBadCredentials), a real-binary api test (disabled + correct ->403, disabled + wrong ->401), and a web unit. Deferred: auditing the disabled-login attempt (#97), which belongs at the api/outbox layer, not the gateway read, to avoid a write-on-read and an attacker-append vector. -
Identity: root-excluded grants and the deploy role. A grant gains an optional
exclude_rootmodifier that narrows its modify actions (update, delete) to the root’s descendants: the holder can create under and edit within the subtree, but aPATCH/DELETEon the root itself is a 403 (readable, outside the write scope). Read and create-placement keep the root, so aPOSTunder the root and aPATCHon a child still succeed. A new deploy official role (create + update on location / system / component, read via the viewer floor) is the integrator / field-tech grant:deploy @ location:room-42 (exclude_root)populates a room without touching its record. The modifier lives onprincipal_grant, resolved in one predicate (inScopeTree) shared by all three tree entities, not a new scope kind (ADR-0009); an inclusive grant on the same root wins. Proven by scope unit tests (per-action classification, inclusive-wins) and a real-binary API test (read root 200, create-under-root 201, update child 200, update root 403, delete 403). API and CLI carryexclude_root; the grant-builder toggle is a fast-follow (#99). -
Console: scope-aware per-row action gating. The read side now annotates every inventory row with the scope-aware
actionsit permits (create-a-child / update / delete), computed from the same per-actionvisible_setthe gateway enforces (a new batchInScopeIDsprimitive answers a whole page in one query per action). The console’sListViewgates each row’s Add-child / Edit / Delete affordance onrow.actionsrather than the coarsecan(...)capability, so a scoped operator (e.g.viewer@all + writer@root, or adeploygrant) sees only the buttons the server would actually allow, per row, with no client-side scope math.can(...)stays the coarse nav/section hint; the server remains the only authority. Proven by a storage test (batch membership across all / rooted / exclude-root scopes) and a real-binary API test (owner gets every action on every row, a viewer none, adeploy @ root (exclude_root)gets create-only on the root and create+update on descendants). Thin cut: the list carriesactions; single-item GET annotation is a follow-on (the blades render from the list rows). -
Identity: impersonation (view-as and act-as). An owner or all-scope admin holding
principal:impersonatecanPOST /principals/{id}:impersonateto mint a bounded, revocable token to view as (read-only) or act as (full) another principal, andPOST /auth/me:stopImpersonationto end it. Two guarantees: the escalation guard (rbac.Set.Covers) refuses impersonating a principal whose capabilities exceed the caller’s, so no capability is ever gained; and dual-actor audit, a new nullableaudit_log.real_actor_principal_id(threaded via a request-scoped context value, no gateway signature churn) records the true admin behind every impersonated mutation. The token is animpersonation_session(its own table, not a credential);authnresolves it on a bearer miss to the target, andrequire()refuses every non-read action in view-as. Self and nesting are refused; disabling either party kills the session on its next request (ADR-0008 / ADR-0010). Proven by a storage round-trip and a real-binary API test (act-as writes in the target scope with a dual-actor audit row, view-as GET 200 / PATCH 403, a lesser admin cannot impersonate the owner, self 422, a viewer capability-gated, stop kills the token, a split-grant admin cannot act-as into a disjoint scope). The console ships an Impersonate action (View as / Act as) on the user card and a persistent acting-as banner with Stop. Deferred: act-as within a scoped admin’s own scope by intersection (#101; act-as currently requires all-scope over the target’s write capabilities) and re-checking the guard per request (bounded by the TTL + revoke for now). -
Identity: grant scope operators (
scope_op). Theexclude_rootboolean generalizes into ascope_opoperator onprincipal_grant(ADR-0011):subtree(root + descendants, the default, == oldexclude_root=false),subtree_excl_root(descendants only for update/delete, root kept for read/create, == oldexclude_root=true), andself(exactly the root row for read/update/delete, no descendants and no create-placement, a leaf-lock) which is net-new, a grant on exactly one node. The purescope.Resolvegains aSelfIDsset (matched by id equality, never subtree-expanded; aselfgrant re-adds a root asubtree_excl_rootgrant stripped), and the three gateway walks (inScopeTree,InScopeIDs,scopedListSQL) gain a self arm. The migration recreates the dedup index to includescope_op(fixing a latent collision where two grants differing only by operator clashed) and threadsscope_opthroughRevokeGrant’s audit SELECT (previously dropped). The grant builder gains an operator stage (role -> kind -> entity -> operator, subtree pre-selected), and each scoped chip shows its operator glyph (= / ≥ / >), so #99 (setting the modifier from the console) ships here too. Proven by scope unit tests (self classification, self re-adds an excluded root, self-under-subtree is redundant), a storage round-trip (bad operator refused, a self grant persists alongside a subtree grant on the same root), a real-binary API test (aselfgrant reads and updates its node, descendants 404, list returns only the node), and web unit + component tests (operator in the grant identity, an operator change diffs as revoke + grant, staging a self grant sendsscope_op: self). The act-as scope intersection (#101) is not subsumed: it is plumbing, orthogonal to how a scope is expressed. -
Identity: owner accounts are un-impersonatable. A principal holding
owner @ allcannot be impersonated by anyone, including another owner, in either mode (ADR-0012): a target-side check in the:impersonatehandler before the mode branch (403), reusing the owner-invariant’srole='owner' and scope_kind='all'lane. The escalation guard (Covers) already blocked a lesser admin from an owner, butowner.Covers(owner)was true, so owner-impersonates-owner was possible; this removes the highest-trust-account takeover vector explicitly. Impersonate stays gated byprincipal:impersonateswept byprincipal:*(holding it already lets a caller create and use its own principals, so impersonate confers no new reach there). Act-as scope intersection (#101) is dropped: act-as stays all-scope-only. Proven by the real-binary API test (an owner cannot view-as or act-as another owner, 403; admin-to-owner stays 403; a non-owner target still works). -
Identity: a grant cannot exceed the granter. Grant creation is refused (403) when the granted role’s capabilities are not covered by the granter’s all-scope capabilities (
rbac.Set.Covers, ADR-0013), so no caller can promote anyone (including itself) above its own tier: an admin cannot grantowner(*:*) and therefore cannot self-promote to superuser.CreateGrantpreviously checked only all-scopeprincipal_grant:create, so admin could grant itselfowner@alland log in as a superuser; the guard lives in thecreate-granthandler, mirroring the impersonation escalation guard, and only all-scope grants count (a narrowly-scoped capability cannot be conferred estate-wide). The deliberate stance: admin is bounded on purpose, the top management role, not the superuser;owneris the break-glass superuser and the owner-invariant anchor. Proven by a real-binary API test (admin cannot grant owner to a user or itself, 403; admin can grant viewer/operator it covers; owner can grant owner). Role editing will need the same rule. -
Identity: the Roles view and role metadata. Roles gain a
display_nameanddescription(additive migration, seeded for the five official roles), andGET /rolesnow returns them plus each role’s effective permissions (flattened through the role index: inheritance, wildcard, and the:readfloor resolved). The console gains a read-only Roles page (Settings > Roles): a self-teaching catalog of each role’s display name, description, inheritance, and effective permissions, ordered by tier, rendered from the real seeded roles. The grant builder role picker gains a hover tooltip showing a role’s description and permissions, so an admin sees what a role grants while assigning it. No custom-role CRUD (a later slice; the ADR-0013 cover rule must extend to role editing then). Proven by a real-binary API test (owner effective set is*:*, admin’s is broad but not*:*, viewer’s includes*:read, operator inherits the read floor), storage round-trip, and web tests (the Roles page renders and tier-orders the seeded roles). -
Estate slice: per-type location icons.
location_typegains aniconcolumn (a glyph key, seededlandmark/building/layers/door-openfor the four official types, defaultmap-pin), projected onGET /types/location. The console resolves the key to an SVG and renders it as the leading glyph on every location in the tree, tinted the same hue as the type badge, so a campus reads differently from a building at a glance. The glyph rides a new reusableleadIconslot on the sharedListView, andresolveIconfalls back tomap-pinfor a key the console does not know, so the API can introduce a type icon without a coordinated release. Proven by a storage round-trip (the icon survives upsert and idempotent update), a seed test (the four shipped keys), a real-binary API test (the icon travels the wire), and a client unit (the resolver and its fallback). Deferred: per-location icon override, an operator icon picker (needs alocation_typewrite surface), and server-side key validation. -
Dev experience: an example estate on
make dev. Distinct from the three production seeding concerns the storage page names (schema migrations, boot seed, one-time backfills), a dev-only example seed, applied bymake devand never in production.internal/devseedembeds a fixture (a multi-site estate of three campuses,hq/east/airport, three sign-in-able users, and their grants spanningoperator@all,viewer@hqsubtree, anddeploy@eastsubtree-excl-root) and installs it through the Storage Gateway on the same trusted direct-DB lane asbootstrap, exposed asomniglass seed-dev. It is idempotent (a re-run ofmake devchanges nothing: locations are skipped by name, users by their taken-username error), so a fresh console comes up populated instead of empty and nobody hand-creates rows to demo a feature. Proven by a pure fixture-shape unit test and a testcontainer integration test (run twice: thirteen locations across three campuses, three users with password credentials, three grants of the expected scope, all stable across the second run), plus theseed-devcommand driven end-to-end against a real Postgres. The/ship-slicegate now requires any slice that adds a new operator entity to seed an example of it here. -
Identity: the auth event log. The
audit_logalready recorded every privileged mutation (withactorand, for impersonated actions,real_actor); this adds the read surface and captures auth events.GET /audit-log(newest first, filter by resource / verb, backward-paged bybefore) resolves each actor and real-actor to a username, and login / logout are now captured (resource = 'auth', via a non-transactional emit seam, since login is a read/no-tx path), and so are failed sign-ins: a wrong password on a real account islogin_failed(attributed to that principal) and a correct password against a disabled account islogin_denied(#97), while an attempt on an unknown username is not written (so scanning cannot flood the log). The console gains a read-only Audit page (Settings > Audit): every action and sign-in, with anas <actor>tag on anything done while impersonating. It is admin/owner-only:auditis a sensitive resource, so aviewer’s*:readdoes not conferaudit:read, only an explicit grant or*:*(a smallrbacsensitive-resource carve-out, ADR-0014). Proven by an rbac unit test (the carve-out:*:readdenied,*:*and explicit allowed), a storage round-trip, a real-binary API test (a login appears, a real-account failed login is attributed while an unknown-user attempt is not, a viewer is 403, the resource filter narrows, and an impersonated action carriesreal_actor), and web tests (the Audit page renders and marks impersonated rows). Deferred: a failed-login rate-limit counter. -
Identity: permissions are topic patterns. The capability matcher became a consistent NATS-style topic match (ADR-0015, superseding the ADR-0014 carve-out):
*matches exactly one token and>matches the tail, so a two-token pattern (*:read,*:*,principal:*) structurally cannot reach a three-token:adminpermission, and admin-sensitivity is a deeper token rather than a special case.audit:readbecame the admin-sensitiveaudit:read:admin(the audit route requires it),ownerbecame>, and thesensitiveResourcesset andgrantsAllhelper were deleted.Set.Allowsmatches by token (with the unchanged:readfloor);Set.Covers(the impersonation and grant-escalation guard) became pattern subsumption plus the floor, staying conservative. The one seed change isowner’s*:*->>; every other permission keeps its meaning (*already meant a single token). As a free consequence,principal:*no longer sweeps a future admin-tierprincipal:<action>:admin. Proven by an rbac unit matrix (*one token,>tail,*:read/*:*/principal:*miss:admin,>and explicit hit it, Covers subsumption), the whole authz suite (the viewer is still 403 on the audit trail, now structurally), and web tests (the Roles view renders>as an “everything” chip and marks an:admintier). The console Roles view and grant-builder render the new grammar. Foundational for a custom-role permission preview (a permission catalog). -
Identity: the audit page joins the list-view standard. The Audit page swaps its bare table for the console’s shared FilterBar faceted search (the same one the inventory lists use): filter by
who,action,resource, orid, chips combining to narrow, matched client-side over the loaded rows via thelib/predicateengine. Load older pages backward through the serverbeforecursor, so a filter that comes up short is a cue to load deeper. Proven by a predicate unit test (each facet, within-chip OR and cross-chip AND, the sorted value catalog) and a component test (the FilterBar narrows the rows, and load-older asks for events older than the oldest loaded). Deferred: a chip time-range facet (the sharedmatchOpcomparesgt/ltnumerically, so an ISO-timestamp facet needs a date-aware operator in the predicate primitive first). -
Console: the list surface splits into a shell plus swappable bodies.
ListShellowns the chrome every list wears (the FilterBar chip state and client-side predicate, the card, the error banner, a trailing action slot) and hands its body the filtered rows;FlatListis the flat body (a sortable table, an optional row-to-Drawer detail, an optional create Drawer, an optional footer). The Audit page becomes a thinFlatListconfig, behaviour-preserving. This is the primitive-first factoring of the four list idioms that had grown up (tree ListView, the Users split-panel, the Roles catalog, the Audit table): the tree pages move ontoListShell+ aTreeListbody, and Users ontoFlatList, in follow-up slices; Roles stays the read-only catalog until custom-role CRUD. Proven by the Audit component test (unchanged behaviour on the new primitives) and the existing web suite. -
Identity: principal groups (grant-by-group), backend. A
principal_groupplus membership, and a grant that targets a group (a nullablegroup_idon the oneprincipal_granttable, exactly-one-of principal/group). A member’s effective grants are its direct grants unioned with its groups’ grants in the grant loader, the single seam both the permission flatten and the gateway scope resolution already read, so an inherited grant scopes and flattens exactly like a direct one and no other code changes. Group CRUD, member add/remove, and group-grant assignment ship on the Gateway and the API (/principal-groups), gated by a newprincipal_groupcapability (admin getsprincipal_group:*); a group grant reusesprincipal_grant:createand the same escalation cover-check. Proven against real Postgres: a storage integration test (a viewer @ hq granted to a group resolves into a member’s read scope and permissions; removal and group-deletion drop it; dedup / duplicate-name / idempotent-add hold) and an HTTP end-to-end test (a no-access user gains read once added to a group holding viewer @ all and loses it on removal; management isprincipal_group-gated; an admin cannot group-grant owner). -
Collection slice (checkpoints 1-2): the storage tier and the node runtime. The first cut of the collection engine. Checkpoint 1 landed the storage tier: the
node,interface_type,interface,task,datapoint_type, andmetric_datapointtables (an idempotent dbmate migration), the reachabilitydatapoint_typecanon and theicmp/tcpinterface_types seeded at boot, a scope-safemetric_datapointwrite path, and the pure reject-not-project registry. Checkpoint 2 adds the node runtime:omniglass serverhosts an in-processnats-server(JetStream enabled) andomniglass nodeenrolls (create,POST /nodes/{name}:enrollmints the token,POST /nodes:claimexchanges it for the NATS credential), then over NATS pulls its worklist (og.v1.worklist.<node>request-reply, its enabled tasks plus aconfig_generation) and heartbeats (og.v1.heartbeat.<node>, the server stampslast_heartbeat_at). Per-node subject isolation is real: an in-process auth callback scopes each node’s NATS credential to its own subjects, proven by a negative integration test (node A cannot publish or pull as node B) against a real embedded server on an ephemeral port, plus a fake-seam unit test and the full enroll -> pull -> heartbeat round trip. A node is a first-classprincipalofkind='node'with a 1:1nodedetail table (name is the estate address the collection FKs reference) and a bearercredentialrow, reusing the human/service identity machinery. Deliberate thin cuts (ADR-0017): the credential is an interim shared secret stored as a bearer credential (the enrollment token doubles as the NATS password; nkey/JWT and the single-use bootstrap deferred), and the control plane is JSON over core NATS. Deferred to later checkpoints of this slice: the probes (tcp, then icmp), the protobuf telemetryEventover JetStream, the ingest consumer, and the API/CLI/UI surfaces (interface and task CRUD, the Nodes inventory and reachability panels). -
Collection slice (checkpoint 3): the reachability datapoint, end to end. The capability-primitive heart:
omniglass noderuns a real tcp reachability probe (collection.NewTCPDialer, closed over the socket boundary and proven by a real-socket integration test, not just a fake seam), ships the result as a protobufEventover JetStream (og.v1.telemetry.<node>), and thetcp.open/tcp.connect_timedatapoints land inmetric_datapointowned by the target component. Protobuf is new to omniglass:proto/og/v1/event.proto(Event+Datapoint, no gRPC service), generated by agen-protostage onmake gen. The server hosts anOG_TELEMETRYJetStream stream and a single durable consumer (og-telemetry-worker) that derives inline: it binds the owner server-side from the task’s interface (the node stamps no component identity), confines a node to its own tasks (an Event carrying another node’stask_idis orphan-dropped, no row written), applies reject-not-project (an unregistered datapoint name is dropped), and writes through the checkpoint-1InsertMetricDatapointspath (provenance=observed). Both invariants are negatively tested against real Postgres + a real embedded bus, and the whole path is driven end to end through the realserverandnodebinaries. Deliberate thin cuts (ADR-0018): the hot-path/async split collapses (the durable consumer is the at-least-once worklist, no raw-telemetry table or Postgres queue), and owner binding is the interface-prebind path only. Deferred: raw-Eventpersistence + replay/backfill, label-based multi-owner routing, the remaining probes (snmp, http), and the API/CLI/UI surfaces. -
Collection slice (checkpoint 4): the icmp (ping) probe, the second capability primitive.
omniglass nodenow also runs a real icmp reachability probe (collection.NewICMPPinger, unprivileged SOCK_DGRAM ICMP viapro-bing), emittingicmp.reachable(always present,1/0with areasonlabel) andicmp.rtt_avg(ms, absent when unreachable). It rides the checkpoint-3 pipeline unchanged: the same protobufEvent, JetStream stream, and owner-confining reject-not-project consumer carry it (the consumer does not branch on probe type). The capability question is the point of the primitive: a once-cached loopback self-check tells “this node cannot do ICMP at all” (an error, inconclusive, no datapoint) from “this target did not answer” (DATA:icmp.reachable=0with a down reason), and per the capability-wrapping doctrine a fake-Pingerunit test does not close the increment, a real-socket integration test (loopback echo + a TEST-NET-1 unreachable address wherereceived==0is data, not an error) is the closing gate. -
Collection slice (checkpoint 5a): the reachability verdict as a state. The first honest substrate for availability history. The node now computes the per-interface verdict
interface.reachable(up/down, the AND of the interface’s probe results) and emits it as a built-in state datapoint (seededdatapoint_typeatkind=state, domainup/down), riding the protostring_value. A newstate_datapointtable mirrorsmetric_datapoint(same owner exclusive-arc, same lineage CHECK) with a categoricalvalue textplus optionalvalue_json, and the Gateway gainsInsertStateDatapoints/LatestState/StateTransitions. The ingest consumer now routes by the registry kind (metric tometric_datapoint, state tostate_datapoint) after the unchanged owner-confinement and reject-not-project, so a foreign or unregistered state is orphan-dropped identically to a metric (negatively tested for the state path). 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), proven by a negative test that repeated identical verdicts produce one row per transition, not per tick. Availability astime_in_stateover this state, and the operator surfaces that render the transitions, are checkpoint 5b. See ADR-0034. -
Collection slice (checkpoint 5b): the reachability surface, seen. The first datapoint read surface. A per-component read BFF
GET /components/{name}/reachability(permissioncomponent:read, scope-injected, so a viewer gets a 404 on a component outside its scope) composes, per interface, the latest verdict (LatestStateoninterface.reachable), the layer signals (LatestMetricontcp.open/icmp.reachableand their rtt), and the verdict’s transition history (StateTransitionsover a window). The operator console gains a Reachability panel on the component detail: one row per interface with a verdict pill (responding/down/stale/unknown, staleness derived at read time), an availability strip drawn from the state transitions (up/down over time, not a latency trend), and an expandable L3/L4 gate breakdown (ping and port, the inline probes this slice ships; the L7 app-layer gate lands with the snmp/http/ssh interface types) with the reason a down interface is down. It renders only real API fields. The availability-percentage SLI (time_in_stateover the verdict) still rides in with the health slice; the panel shows the transitions directly. Interface and task authoring (the “add check” affordance and the flat Nodes / Interfaces / Tasks pages) are checkpoints 5c and 5d. -
Collection slice (checkpoint 5c): the Nodes surface and enrollment. The first authoring surface for the node tier. The console
/nodesstub becomes a live Nodes inventory (the flat sibling of the tree lists, a config over the sharedFlatList): a row per collection daemon with a liveness status pill derived client-side fromlast_heartbeat_atagainst the server’s down window (OMNIGLASS_NODE_DOWN_AFTER, 90s:upwithin it,downonce stale,neverbefore first heartbeat), the relative last-heartbeat time, and a description, with name and status facets on the same FilterBar the other lists use. A row opens a detail Drawer (facts plus an Enroll / Re-enroll action), and New node creates a node then enrolls it (day-one: create, thenPOST /nodes/{name}:enroll). The minted enrollment token is a secret shown once: a modal reveals it in a monospace field with a copy-to-clipboard button and a clear “shown once, cannot be retrieved again” warning, and the token lives only for the modal’s lifetime (cleared on close, never written to the query cache,localStorage, or a log). The nav tab is gated onnode:read, create onnode:create, and enroll onnode:enrollvia the samecan()the sidebar and route guard read; the page renders only realNodeBodyfields. No API or engine change (the node routes already exist), somake genshows no drift. Proven by vitest: the data layer (list-envelope unwrap, create body, the:enrollcustom-method POST, the pure status derivation and its window boundary, the status facet catalog) and the page (a row per node with the derived pill, the create affordance hidden withoutnode:create, and the enrollment modal revealing the token, copying it to a faked clipboard, and clearing it on close). The Nodes page staysPartial: placement, assigned-task worklists, and node health beyond the heartbeat pill are still Design. Interfaces and Tasks authoring is checkpoint 5d. -
Collection slice (checkpoint 5d-api): the interface and task authoring backend. The operator CRUD over the two collection primitives that the reachability read and the node worklist consume. The Storage Gateway gains scoped
Create/List/Get/Update/Deletefor bothinterface(name, type, owning component, node placement, params) andtask(a content-addressed id over interface + mode + spec, so identical work dedupes), auditing every mutation in-transaction like the estate tiers; the Huma surface adds AIP CRUD at/interfaces,/interfaces/{name},/tasks, and/tasks/{id}, regenerated into the OpenAPI document, the cobra CLI (omniglass interface …/omniglass task …), and the typed SPA client. Both authorization layers apply on every route: aninterface:<action>/task:<action>permission (admin gainsinterface:*/task:*, operator keepscreate,update, the*:readfloor gives everyone read), and scope injected by the gateway. Neither primitive is a scope-tree entity of its own, so scope cascades through the owning component: an interface inherits its component’s read/action scope, a task inherits its interface’s component’s, reusing the component tier with no newscope_kind(an operator scoped to a component subtree administers exactly that subtree’s interfaces and tasks). A component-less (server-hosted) interface is reachable only under an all scope. An interface or task whose component is outside the caller’s scope is a non-disclosing 404 on read and update, and a create under an out-of-scope component is a 403, negatively tested at both the gateway and the API. No web surface yet: the flat Interfaces / Tasks pages and the “add check” affordance are checkpoint 5d-ui. -
Collection slice (checkpoint 5d-ui): the interface and task authoring surfaces. The console gains the two authoring pages the 5d-api CRUD feeds, plus the component-scoped Add reachability check affordance. The
/interfacesand/tasksstubs become live Interfaces and Tasks inventories (configs over the sharedFlatList, the flat sibling of the tree lists): Interfaces shows a row per endpoint (name, type, owning component, node placement, probed target derived fromparams) with name / type / component facets; Tasks shows a row per unit of work (display name or content-addressed id, interface, mode, an enabled pill, node) with interface / mode / enabled facets. A row opens a detail Drawer (facts plus an inline edit of the mutable fields and a delete), and New interface / New task open the create Drawer. Because there is nointerface_typelist endpoint, the type picker offers the built transports (icmp,tcp,ssh,http) this slice ships; a futureGET /interface-typesregistry route can replace the static options. The Add reachability check button on the Reachability panel (gated oninterface:createandtask:create) authors a check the way the node runs one: it creates the interface (type= the chosen transport, named by its protocol, owned by that component,params.targetthehost[:port]the probe dials) then a poll task over it (mode=poll, enabled), then invalidates the reachability, interfaces, and tasks queries so the panel and pages refresh. The two writes are handled honestly: if the task create fails after the interface exists, the affordance surfaces the partial state (the interface is created; the operator retries just the task) instead of swallowing it. Every nav tab and action gates on the real permission via the samecan()the sidebar and route guard read (interface:read/task:readtabs and URL guard; create / update / delete actions), and the pages render only realInterfaceBody/TaskBodyfields. No API or engine change (5d-api already ships the routes and typed client), somake genshows no drift. Proven by vitest: the two data layers (envelope unwrap, create / patch bodies, filter keys, the target derivation), both pages (rows, the create gate hidden without the perm, the type / mode / interface pickers), and the Add-check affordance (the gate needs both perms, submit fires the interface then the task create with the right bodies, and the two-step error path surfaces). This closes the collection slice’s authoring surfaces. (Superseded before the PR: checkpoint 5f removes the Add-check affordance, and 5g folds the standalone Interfaces and Tasks pages into the component and node details and derives the task, so these standalone surfaces and thetask:creategate do not ship; the flat pages became detail panels.) -
Collection slice (checkpoint 5e): the interface model reframe. Before its PR, the interface model was corrected: an interface is an API we intend to call (named by the protocol it speaks,
web/qrc, unique per component), not a network interface;interface_typeis the transport (the reach gate), not the protocol driver. Reachability is the first gate of a ladder (reach, auth, responds, collecting). The built transports grew fromtcp/icmpto also coversshandhttp(all reach by opening the tcp port; icmp pings), the Add-check picker separates the transport type from the protocol name, and the dev seed now models a lab polaris DSP with two protocol-named APIs on one device (webover http,qrcover tcp) somake devshows the “two APIs on one box” story. The driver layer that turns a device API into a normalized menu of datapoints and functions (OIDs, commands, parse) is a separate, later concern, decided in ADR-0035; this slice ships only the transport / reach tier of it. -
Collection slice (checkpoint 5f): reachability lands read-only; check authoring deferred. Before the PR, the component-scoped Add check affordance was removed: it was a stopgap that a proper driver-based authoring flow (attach a driver to a component, fill its inputs) replaces, and the driver/collect layer is under active design (template-centric vs driver-centric), decided deliberately rather than on momentum (ADR-0020 status note). So the reachability panel is now read-only display; a reachability check is authored by adding an interface to its component (checkpoint 5g settles the interface as the only authored primitive, its poll task derived, and folds the interface and task surfaces into the component and node details). The slice lands as remote node reachability: enroll a node, it probes, the operator sees per-interface reachability. The collect layer (drivers, the normalized menu, SNMP) is its own slice after the driver design. out of
TreeListinto a standaloneBladeStackprimitive over acreateBladeController, and both the inventory tree and the flat identity pages (FlatList) now consume it. A stack entry is a cross-entity{ kind, id }ref against a registry, so a user’s group opens the group’s blade over it and a group’s member opens that user’s blade, both stacking. Depth is bounded by construction: each page roots one kind and drills one direction (Users: user to group; Groups: group to user; Roles: role), so the drill graph is acyclic and the reverse relation on a terminal blade is read-only. A sharedDetailShell(Fact,RelatedList,DetailActions) standardizes the chrome, so a group’s members and a user’s groups render through one list idiom and every footer places the destructive action left of the primary. Roles moves from the card catalog onto the sameFlatList+ read-only blade. Behaviour-preserving for the inventory pages (the Locations blade is identical); proven by the web suite (theBladeStack,DetailShell, and both-way identity drill tests) and tsc. -
Console: the read -> Edit -> Save contract on a blade footer action bar. Every detail blade opens read-only; the header is chrome only (back, full-page, close), and a
createEditSlotper blade drives a sticky footer action bar thatBladeStackrenders: a destructive action on the left (always available), secondary actions in a⋯kebab, and Edit on the right (which swaps to Save / Cancel in edit mode). The body readsuseBladeEdit().editing()to switch its sections read-only vs live and registers the whole footer throughbind(editable,save,cancel,destructive,secondary), so editability and the destructive label follow the caller’s permission and a read-only blade (a role) registers nothing and shows no bar. In edit mode the profile becomes inputs, member add / remove stages locally, and theGrantBuildergains abindso its diff commits as part of the one blade Save; the destructive action (Delete for a group, Disable / Enable for a user, per the accounts-never-deleted invariant) confirms and is reachable straight from read mode. Save commits the staged session together and Cancel reverts. A single consolidated audit event and a config restore point (one backend action per Save) remain deferred to a batched endpoint; the user archive / purge lifecycle is its own slice. Proven by the web suite (the edit-slot, theBladeStackfooter-bar chrome, and the Group / User read-vs-edit tests) and tsc. -
Identity: the principal lifecycle (archive + purge), backend. Beyond the reversible disable, a principal can be archived (a soft delete,
archived_at: hidden from the directory, cannot authenticate, reversible) and then purged (an irreversible hard delete, gated on prior archival and on the admin-sensitiveprincipal:purge:admin, so admin and owner can purge but a two-tokenprincipal:*cannot reach it). The purge preserves the audit trail: everyaudit_logrow now denormalizes the actor’s label at write time, the audit foreign keys areON DELETE SET NULL, and the read coalesces the live join to the snapshot, so a purged actor’s history stays legible (ADR-0016, retiring the “never hard-deleted” rule). The last-active-owner guard extends to archive. Gateway (ArchivePrincipal/RestorePrincipal/PurgePrincipal), the:archive/:restore/:purgeAPI custom methods, and the generated CLI / client ship; proven against real Postgres by a storage integration test (lifecycle + audit-actor survival + owner guard) and an HTTP end-to-end test (the capability split, the archive-before-purge gate, soft-delete visibility). The console UI for the lifecycle is a follow-up (#143 backend). -
Identity: the principal lifecycle in the console, UI. The user blade’s footer action bar presents the lifecycle by state: the left slot is the reversible toggle (Disable / Enable, or Restore for an archived account), and the kebab holds the escalating red steps (Archive when live, Purge when archived and the caller holds
principal:purge:admin), each confirmed. The detail fetches the principal by id (not the directory list, which hides archived) so a just-soft-deleted user stays resolvable, and a Show archived toggle on the Users directory (a newinclude_archivedlist param) surfaces hidden accounts to re-find one.BladeSecondarygains a red tone and the destructive slot a restore tone; the webcan()already honours the three-tokenprincipal:purge:admin. This slice also renamed the soft-delete verb deactivate to archive (restore, not reactivate) so the ladder reads pause (disable) to remove (archive) to destroy (purge), instead of two pause-synonyms; the column, endpoints, capability, and list param follow. Proven by the web suite (the live and archived footer states and the show-archived flow) and a storage test for the include-archived list; completes #143 / #146. -
Identity: IAM console form + blade hardening, UI. A polish pass over the identity surfaces. Removing a principal now closes its blade cleanly: archiving, purging (and a group delete) closes the blade first, drops the dead detail query, then refreshes the list, so the blade never lingers on a stale or 404 view of the entity it just removed from the working set. Impersonation (start and stop) now reboots the console to Home (
window.location), so the permission-driven sidebar and route guard rebuild from the new identity rather than showing the previous principal’s navigation. The forms gain inline validation that mirrors the server’s Huma constraints: a username and a group name are lowercase handles (pattern^[a-z0-9][a-z0-9._-]*$, no capitals or spaces) and an email must be well formed (format: email), each enforced on the create body server-side and checked in the form so an invalid field shows an inline error and disables the submit before the round-trip (a newvalidgate on the blade edit contract disables the footer Save). The group create Drawer title now reads New group (it leaked theprincipal_groupresource key), the group create form gained the same subtitle the user form has, and the form placeholders are consistent across create and edit. A newly created user or group opens directly in edit mode so its grants (and a group’s members, child resources that need the parent id) are added in one flow rather than a second step. Proven by an API validation test (a malformed username, name, or email is a 422; a valid one is accepted) and web tests (the blade closes without an orphan refetch, and an invalid field blocks create and the footer Save). -
Identity: the Groups console + inherited-vs-direct grants, UI. A Groups page (
Settings > Groups, gatedprincipal_group:read) as a config over the sharedFlatList: list and create, and a row Drawer with member add/remove and the grant builder (reused, wired to the group grant endpoints, so a group’s members inherit what it grants). On the user detail, grants now split into direct (editable) and inherited from a group (read-only, taggedfrom <group>), so it is clear where a user’s access comes from; the principal grant body gainedgroup_id/group_namefor the distinction. Proven by the web suite and tsc, with the route guard and sidebar both gating/groupsonprincipal_group. This completes grant-by-group (#90); dynamic membership and SCIM group mapping remain deferred. -
Identity: password policy + generator. A single pure validator (
auth.ValidatePassword) enforces a password policy on the API password surfaces: create a user and self-service change-password. The direct-DB break-glass lanes (bootstrap,set-password) are exempt (fully trusted, DB-access-gated, the recovery path). The policy is at least 12 characters, not on an embedded common-password denylist, and not containing the username (NIST 800-63B style: length and a blocklist over composition rules). The API bodies raise theirminLengthto 12 and map a violation to 422 with a specific message; the console mirrors the length and username rules inline (a newpasswordError) and gates the submit, while the denylist stays server-side (a 422 on a manually typed common password). A sharedPasswordFieldcomponent adds a show/hide toggle and, on the New user and change-password forms, a crypto-strong Generate action (generatePassword, a readable charset with no look-alike characters, kept masked and copied or revealed on demand) plus a Copy button. Proven by aninternal/authunit test (short / common / contains-username / valid), an API test (a weak, common, or username-containing password is a 422 on create, a strong one is accepted), and web tests (the generator’s length / charset / policy-compliance,passwordError, and the Generate-fills-and-enables flow). Completes #104 and #151; an operator-configurable policy and a HIBP breached-password check remain deferred. -
Identity: admin password reset. An administrator can reset another user’s password without the user’s current one:
POST /principals/{id}:resetPasswordgated by a newprincipal:reset-passwordcapability (all-scope; admin holds it viaprincipal:*, so a future help-desk role can be granted only the reset), policy-enforced (a 422 on a weak password), refused on self (change your own password from your profile, which verifies the current one), behind the same takeover guard as impersonation (an owner cannot be reset by anyone, and a caller cannot reset a principal whose capabilities exceed their own, a sharedcheckTakeoverGuard, plus the sharedallScopeCoversall-scope-only cover that act-as uses so a reset cannot promote a narrow-scope capability estate-wide), and audited with the admin as the actor (the storage methodSetPrincipalPasswordsets by id, distinct from the self-serviceSetPasswordthat keys on username and audits the target). It also forces logout: a reset revokes every one of the target’s bearer credentials (all sessions and tokens) in the same transaction, so a compromised or departing account is cut off at once; the self-service change-password revokes the caller’s OTHER sessions (RevokePrincipalBearerskeeping the current session’s hash, stashed in the request context by authn). The console adds a Reset password kebab action on the user blade that opens an inline panel reusing thePasswordField(Generate, Copy, inline policy check); the set password stays copyable to hand over. This is the console counterpart to the CLIset-password(which, as a trusted direct-DB lane, stays policy-exempt). Proven by a storage test (the new secret authenticates and the old does not, the reset is audited as the admin, non-all scope and unknown id are refused), an API test (an operator lacks the capability 403, a weak / common / username-containing password is a 422, resetting yourself is a 422 and an owner is a 403, the admin reset lets the user sign in with the new password), and web tests (the kebab opens the panel and Generate + Set password calls the endpoint and confirms; the action is hidden on your own blade). -
Identity: bearer session expiry. Bearer credentials gain a nullable
credential.expires_at(a new additive migration), andAuthenticateBearerrefuses a credential whose expiry has passed (an expired session authenticates nothing). A web login installs its session cookie with a fixed absolute lifetime (12h), setting both the credential’sexpires_atand the cookieMax-Age, so a stolen session cookie is no longer valid forever; theIssueBearerCredentialgateway method gained anexpiresAtargument. CLI API tokens (omniglass token) and the bootstrap token pass a null expiry and do not expire, so automation keeps working. Proven by a storage test (a past-expiry bearer isErrCredentialNotFound, a future or null one authenticates). A sliding idle timeout and a background sweep of expired rows are deferred refinements; the security floor (expired is refused at auth) lands here. -
Identity: login brute-force lockout. Failed password logins are now throttled. Two additive columns on
human(failed_login_count,locked_until) count consecutive misses on a real account and, on the 5th, lock it for 15 minutes. Inside the windowAuthenticatePasswordrefuses every attempt (even the correct password) via a newErrAccountLocked, which the login handler maps to the same generic 401 as a bad credential so the lock is not an enumeration oracle (only thelogin_lockedaudit records it). The lock is decided after the argon2 verify (a locked account is not a faster probe), and a correct password below the threshold clears the counter. The decision itself is a pure, unit-tested function; proven end to end by a storage integration test (5 misses lock, the correct password is refused while locked, an expired window lets it through and resets) and a real-endpoint test (the lockout as seen overPOST /auth/login). Per-IP throttling and a configurable threshold are deferred. -
Identity: force a password change after an admin reset. An admin reset now sets a new additive
human.must_change_passwordflag; the user’s own change-password clears it. While set, theauthnchoke point (the same place view-as read-only is enforced) refuses every route with a 403 except reading their own principal and the change itself, so the admin-known secret cannot be used to act.GET /auth/mecarriesmust_change_password, and the console’sAuthGuardswaps the whole app shell for a forced change-password screen until it clears (auseChangePasswordthat invalidates/auth/mereleases the gate on success). Proven by a storage test (a reset sets the flag, a self-change clears it), a real-endpoint test (a flagged user reads/auth/mebut every other route is a distinct “password change required” 403 until the change, then the gate releases), and a web test (the guard renders the forced screen only when flagged). Enforcement is a hard block on all routes; the CLI break-glass lanes do not set the flag. -
Identity: address a principal by username or uuid. Every
/principals/{id}route (read, update, grants, the lifecycle verbs, reset, impersonate) now accepts either the principal’s uuid or a human’s current username. A new gateway primitiveResolvePrincipalRefresolves it (a uuid passes through unchanged, so an unknown uuid keeps its existing not-found handling; otherwise a username lookup, and an unknown username is a 404), and each handler resolves at the top, before any self-check (so addressing yourself by username is caught for a reset or impersonation). The uuid stays the stable identity; a username is a convenience address resolved at call time. Service principals have no username and stay uuid-addressed. This makes the CLI usable without a uuid lookup first (omniglass principal archive alice). Proven by a storage test (username resolves, a uuid passes through, an unknown username is not found) and an API test (get by username matches get by uuid, a:verbmethod archives by username, an unknown username is a 404). -
Tag: value-domain enums and existing-value autocomplete. A tag key can now constrain its values to an enum, answering the enum half of the value-domain open question. A new
allowed_valuescolumn ontag(empty = free text) is the value set a bound value must belong to;SetTagBindingenforces it (a non-member is a dedicated 422,ErrTagValueNotAllowed), soenvironmentcan be declared as one ofprod/staging/dev. The Tags directory create and edit forms gain a value-domain control (a checkbox that turns a 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 autocompletes the distinct values already in use for it, via a newGET /tags/{name}:valuesread (select distinct value), so an operator reaches for an existing value without the key declaring a set. Pureweb/src/lib/tagdrafthelpers (isEnumKey,valueOptions,valueAllowed) and a pureinternal/tag(ValidateAllowedValues,ValueAllowed) hold the logic. Proven by unit suites on both pure cores, a storage integration test (the enum admits members and rejects non-members, a free key admits anything, narrowing the enum is enforced on the next bind, the distinct-values query dedupes and sorts) and an HTTP e2e (the enum 422, the values endpoint, the round-trip). A typedvalue_typeand input normalization stay deferred (ADR-0024). -
Tag: apply and remove tags from the entity detail blade (TagAdder). The capability that closes the set-side of the tag console: an operator now binds and unbinds tag values from the UI, not only the CLI. Each component, system, and location detail blade carries a Tags panel listing the tags bound directly on the entity as removable colored chips, plus a staged key -> value add row. The key stage autocompletes the registry filtered by
applies_tofor the entity kind and by what is already bound (a pureweb/src/lib/tagdraftcore:keySuggestions,exactKey,canCoin,valueValid); withtag:create, a Create key affordance opens the Tags directory’s create form (#192’sCreateTagForm, now exported) in a drawer and returns with the minted key selected. Writes are immediate (each is the entity’s own:setTag/:removeTagwrite, gated by its:update), so there is no separate Save; the affordances hide without the permission. The resolved cascade (inherited tags) stays in the directory Tags column, not the panel. Proven by atagdraftunit suite (applies_to filtering, already-bound exclusion, exact-match and coin eligibility, value validity) and aTagAdderrender test (chips, the update-gated add row and per-chip remove, the read-only and empty states). The full winner-plus-shadowed cascade provenance in the blade, the dynamic tag search facets, and a stored per-key color override are later slices (#189). -
Tag: the colored effective-tags column on the directories. The first VISIBLE tag surface, consuming the batch resolver: Components, Systems, and Locations each gain a Tags column rendering their effective tags (the resolved cascade winners, not just direct bindings) as
key = valuepills. Color is client-derived and needs no backend:tagHue(key)(a pureweb/src/lib/tagcolorFNV-1a hash into a curated, yellow-green-pruned 12-hue ramp) maps a key to a stable hue, so the same key is the same color everywhere; a sharedTagPillscomponent crosses only that hue into a new unlayered.tag-pillCSS recipe (text and outline are the seed, the fill is the seed at 15% viacolor-mix), with lightness and chroma in per-theme tokens so one hue reads correctly and stays contrast-safe in both themes. The chips stay on one line, fading at the edge when they overflow, and a portaled hover tooltip reveals the full wrapped set (awrapprop onTagPillsis the seam for a future per-table wrap toggle). The column registers in each page descriptor, so the columns menu shows, hides, and reorders it, and it sorts by key set. A stored per-key color override is a later slice; the type-to-add editor and tag search follow (#189). Proven by atagHuedeterminism unit test (stable, in-ramp, spread) and aTagPillsrender test (sorted chips, the--tag-hper key, the empty dash), plus the page-descriptor conformance matrix. -
Tag: batch effective-tags on the directory rows. The first slice of the tag-apply UI, backend only: the directory list routes (
GET /components,/systems,/locations) now carry aneffective_tagsmap (key to winning value, winners only) on each row, resolved for the whole page in one batched query per kind (Gateway.EffectiveTags), feeding the coming Tags column with zero per-row fetch. Effective resolution extends past the component: a location resolves the install-wide tier + its own location tree, and a system resolves it + its system tree + the location it is placed at (ADR-0022), so a system in a PCI building surfacescompliance: pci. Three per-kind recursive-CTE resolvers thread a target id through the ancestor chains and rank per (target, key); the resolver is scopeless by contract (the list already filtered the ids to the read scope, the rowActions batch pattern). Proven by a storage integration test (the four-band component cascade, the placed-system-inherits-location case, the non-propagating flat case, a batched shared-ancestor pair with no false cycle, and the empty/unknown edges) and an HTTP e2e (effective_tagson the component, system, and location list bodies). The Tags column, the type-to-add editor, and tag search follow in later slices (#189). -
Tag: the console key directory. The tag vocabulary gets its operator surface: a Tags directory under Catalog on the shared FlatList shell, where an admin mints a key (
tag:create), edits its governance fields (applies_to and the cascade-versus-flatpropagatestoggle,tag:update), and deletes it (tag:delete, cascading its bindings). Rows address by the key name (the write paths key on the name), and the create drawer plus the edit blade reuse the estate’s drawer and blade primitives, no fork. Binding a value onto an entity and the effective-tags cascade panel are the next console slice (#189). Proven by a data-layer unit test (the envelope unwrap, the create/update/delete request shapes, the error throw) and the full web suite, and live-verified againstmake dev(the directory, the create drawer, the edit blade). -
Tag: the governed label vocabulary and its cascaded bindings. The tag primitive lands as its own page: a governed
tagkey registry (a normalized lowercase-identifier vocabulary, minting gated by all-scopetag:create, broadened totag:*for admin), a per-entitytag_bindingcell owned on the same exclusive arc as a secret and a variable (platform | location | system | component), and a resolver that unions keys and overrides values most-specific-wins down the cascade. The governance split is the point: minting a key is admin-curated, but setting a value is the entity’s own write (component:updateand friends), so an operator tags what it may already edit with no new grant; a platform-tier binding istag:updateplusplatform:update. A key carriesapplies_to(an entity-kind allow-list, checked on bind) andpropagates(cascade inheritance versus a flat per-entity set, the shape a file reuses).GET|POST /tags,PATCH|DELETE /tags/{name},POST /tags/{name}:setPlatform|:clearPlatform(the platform-tier value), and per-entity custom methodsGET /{components,systems,locations}/{name}:listTagsandPOST .../{name}:setTag|:removeTag(bindings are entity custom methods, like the principal lifecycle, so the generated CLI stays collision-free), plusGET /components/{name}/effective-tags(the per-component cascade). Deferred (ADR-0021): the console surface (a Tags directory and per-entity editor, #189), binding via groups and atemplate-scoped binding (#184), value-domain governance (#190), and binding onto a file (#191). Proven by a pureinternal/tagvalidation unit test (key normalization, value bounds, the applies_to allow-list), a storage integration test (the registry CRUD and all-scope gate, the applies_to and value gates, the binding upsert and the owner-update scope split, the full union-on-key / override-on-value cascade incl. the non-propagating flat case, and the delete-key cascade to bindings), and an HTTP e2e (the cascade over the wire and the mint-versus-bind authz split: an operator binds on its component but cannot mint a key nor bind on a system it cannot write, a viewer reads but cannot mint or bind). -
Variable: the cascade-resolved free value. The second member of the config, secrets, and variables trio lands, after the secret. A variable is a typed plaintext value (a macro) owned on the same exclusive arc as a secret (
platform | location | system | component) and resolved most-specific-wins down the cascade, but shown in the clear (no crypto, no masking, no reveal). Typing is inline: avalue_typeofstring/int/float/bool/jsonplus a jsonbvalue, validated against the type in a pureinternal/variablepackage (no shape registry, unlike the secret).GET|POST /variables,PATCH|DELETE /variables/{id}, andGET /components/{name}/effective-variables(the per-component cascade view, since retired, #281). Reads ride the viewer floor; create and update are granted to operators (variable:create,update), delete staysvariable:delete(admin, owner), the same split the secret got. Scoping a variable required wiringvariableinto the ABAC resolver’s owner-arc tiers, exactly as the secret did. The console adds a Variables directory (type in its own column) with a type-aware value editor; a per-component effective-variables cascade panel also shipped and was later retired (#281, the panel-retirement note below). Deferred (ADR-0020): thetemplateowner scope and cascade groups (#184), avariable_typeregistry (types are inline), the$var:interpolation consumer, and the secret-flagged variable. Proven by avalue_typevalidation unit test (each scalar’s valid and invalid forms), a storage integration test (jsonb round-trip per type, full cascade precedence, the owner-scope split), an HTTP e2e (the cascade, the authz split incl. the scoped-operator create / update and the viewer 403s), a scope-resolver unit test for the owner-arc kinds, and the web data-layer suite. -
Secret: the cascade-resolved encrypted value. The first of the config, credentials, and variables trio lands, and the prerequisite for the collection driver’s interface inputs (#155). A secret is a typed, encrypted-at-rest value owned on the exclusive arc (
platform | location | system | component) and resolved most-specific-wins down the cascade. Its shape is asecret_typeregistry (per-field secrecy and origin;snmp-communityandbasic-authseeded); crypto is envelope AES-256-GCM behind a pluggable KEK provider (env / file / fallback), with(owner, name, field)bound as AAD so a ciphertext cannot be lifted between rows. The load-bearing new piece is the cascade resolver: it walks the three owner trees up from a component, tags each owner with a band and depth, and ranks per name (highest tier, then deepest), returning the winner and the shadowed candidates.GET /types/secret,/secrets(all-scope list, create, update, delete),GET /components/{name}/effective-secrets(the masked cascade view, since retired, #281), and the audited decryptsPOST /secrets/{id}:revealand:copy(a clipboard copy, recorded under a distinctcopyverb). Masked reads ride the viewer floor; create and update are gated bysecret:create/secret:updateand granted to operators in their scope; delete stayssecret:delete(admin, owner); reveal and copy by the sensitivesecret:reveal, which the*:readfloor does not carry, so only admin (secret:*) and owner may decrypt. Scoping a secret required wiringsecretinto the ABAC resolver’s owner-arc tiers (location / system / component), so a scoped grant now confers secret scope over its subtree (before, only an all-scope owner could). The console adds a Secrets directory (type in its own column) with per-field in-place reveal + copy adornments; a per-component effective-secrets list also shipped (each resolved secret opening a blade that decrypts the value and shows the full cascade top-to-bottom) and was later retired (#281, the panel-retirement note below). Renamed credential to secret (ADR-0017). Proven by a real-crypto testcontainer test (seal, jsonb round-trip, unseal; encrypted-at-rest; full cascade precedence), an HTTP e2e (the cascade, the authz split incl. the scoped-operator create / update, and the reveal / copy round-trips plus their 403s), a scope-resolver unit test for the owner-arc kinds, and the web data-layer suite. Deferred: the variable and config members of the page, the interpolation consumer, secret lifecycle (oauth2 refresh, rotation), and groups / weighted precedence in the cascade. -
Identity: clear the login lockout on a password rotation. Rotating a password now clears the brute-force lockout (
failed_login_count = 0,locked_until = null) in the same transaction as the new secret. Before this the lock (from the login-throttle slice) only cleared lazily at the next login, so an admin reset left the account locked for the rest of the 15-minute window even with the new password. Both rotation lanes clear it: the admin reset (SetPrincipalPassword, the reachable intervention while an account is locked) and the self-service change / CLI set-password (SetPassword). No new endpoint or capability: rotating the secret is the intervention (auto-unlock over a dedicated:unlockaction). Proven by a storage test that locks the account with five misses, confirms it is locked, rotates via each lane, and asserts the new secret authenticates immediately with no wait. No migration (the columns exist); no operator-facing surface change. -
Identity: profile pictures for human principals. A human principal can carry a profile picture, managed on two lanes: self (any signed-in user sets or removes their own via
POST /auth/me:setAvatar/:removeAvatar, authn-only and self-scoped, no capability, on the ungated self-service lane) and admin (a newprincipal:set-avatarall-scope capability sets or removes any principal’s viaPOST /principals/{id}:setAvatar/:removeAvatar, audited with the admin as actor;adminholds it throughprincipal:*andownerthrough>, so noroles.yamlchange). A pureinternal/avatar.Normalizeprimitive is the server-authoritative pipeline: accept JPEG/PNG/WebP (GIF and all else rejected), reject a payload over 8 MiB or any dimension over 8000px (decompression-bomb guards), center-crop to a square, resize 256x256, re-encode JPEG q82; a bad or oversize image is a 422. Two additive columns onhuman(avatarbase64,avatar_updated_at) store the one normalized size; the bytes never load on theloadPrincipalhot path (which selects onlyavatar is not null), so a cheaphas_avatarbool rides the read models (GET /principals/{id}, the Users list,GET /auth/me). The read endpoint is JSON (GET /principals/{id}/avatargatedprincipal:read,GET /auth/me/avatarself), returning{ image_base64 }the console renders as adata:URL, deliberately not a rawimage/jpeghandler so every route stays under the Huma authz middleware (ADR-0018); a principal without a picture is a 404. The console Profile page gains an image-backed avatar with upload/remove (initials fallback), and the Users directory renders per-row thumbnails plus an admin upload/remove panel gated onprincipal:set-avatar. The CLI and typed client fall out of the generator (omniglass principal setAvatar/removeAvatar). Proven by theinternal/avatargolden-fixture unit suite (a square JPEG out, non-image / GIF / oversize rejected), a storage round-trip (set / get / clear,has_avatarandavatar_updated_at, the all-scope gate on the admin write), and a real-binary API test (self set + read + remove, garbage 422, the admin permission 403 withoutprincipal:set-avatarand success with), plus web tests for both surfaces. Deferred: the top-nav avatar, non-human avatars, multiple sizes / srcset, and external (Gravatar) sources. -
Identity: view and revoke your own sessions (slice 1 of 2). A signed-in user can now see and end their own sign-ins and API tokens. Two gateway primitives land on the existing
credentialtable (no migration;created_atandexpires_atalready exist):ListBearerCredentialsreturns each of a principal’s bearer credentials with only non-secret metadata (id,ogp_prefix, created, expiry) and never selects the rawsecret_hashinto a returned field (the request’s ownsha256(token)is compared in SQL to flag thecurrentone, so the hash never leaves the database), andRevokeBearerByIDdeletes one scoped to the owning principal so a caller can only revoke their own. Over the API,GET /auth/me/sessionslists them (labelledsessionortokenby the credential’spurpose, the current one flagged) andPOST /auth/me/sessions/{id}:revokeends one (204); both are authn-only and self-scoped, so a credential id belonging to another principal is a non-disclosing 404, and revoking the current credential signs it out. The console’s Your profile gains a Sessions card listing each credential with a Revoke action (Sign out on the current one), through the generated typed client and TanStack Query. The generated CLI gainsomniglass session list/session revoke <id>. Proven by a storage test (list returns both with metadata and no secret and the current flag, revoke by id scoped to the principal, a cross-principal or malformed id is a no-op) and a real-binary API test (the current session is flagged, a second session is revoked and stops authenticating, another principal’s id is a 404, and revoking the current one signs out). The admin surface (an operator revoking another principal’s sessions) is slice 2. -
Identity: every credential is time-bounded, and sessions split from API tokens. Building on the slice above, the tokens-never-expire behavior is reversed (ADR-0019): a web-login session keeps its 12h absolute lifetime, while a CLI/API token (
omniglass token) and the bootstrap token (omniglass bootstrap) now get a 90-day default expiry with a--ttloverride hard-capped at 365 days (a--ttlabove the cap is a clean error, before any DB work), so no eternal secret sits in the field. Because both kinds now carry an expiry, a newcredential.purposecolumn (session/token), not the nullableexpires_at, is the discriminator; a migration adds it and backfills existing bearers (expiry set tosession, elsetoken).IssueBearerCredentialandBootstrapOwnertake the purpose and expiry;ListBearerCredentialsreturns the purpose and now filters to live rows only (expires_at is null or expires_at > now(), mirroringAuthenticateBearer), so a dead credential is never listed. The console’s Your profile splits the one list into a Sessions section and an API tokens section, both rendering a sharedSessionsListprimitive, and a token now shows its expiry. Enforcement stays lazy (an expired row is refused at auth, no background sweep). Proven by a storage test (the list carries the right purpose and excludes an expired row), an updated real-binary API test (session vs token asserted via purpose, the minted token carries a future expiry), and a CLI unit test (a--ttlabove the 365-day cap errors for bothtokenandbootstrap). Deferred: a sliding idle timeout, a housekeeping sweep of long-expired rows, and nearing-expiry notifications. -
Identity: an admin can view and revoke a user’s sessions (slice 2 of 2). An administrator can now see and end another principal’s sign-ins and API tokens, so a lost laptop or a leaked token is cut off without resetting the account. No new storage: it reuses slice 1’s
ListBearerCredentials(passing a nilcurrentHash, so no row is ever flaggedcurrentwhen viewing someone else) and the principal-scopedRevokeBearerByID. A newprincipal:revoke-sessioncapability (a normal two-token permission, held byadminandownerthrough theirprincipal:*/>wildcards, kept separable for a future help-desk role) gates bothGET /principals/{id}/sessionsandPOST /principals/{id}/sessions/{sid}:revoke. The revoke is bounded to the target (asidthat is not theirs is a non-disclosing 404), sits behind the same takeover guard as impersonation and the password reset (an owner’s sessions cannot be revoked by a lesser admin, nor a principal whose capabilities exceed the caller’s), and is audited with the acting admin as the actor. The console’s Users blade gains Sessions and API tokens sections (a sharedSessionsListnow backs both them and the self-service Profile card), hidden unless the caller holds the capability, with a Revoke per row. The blade’s action-rail kebab also offers Revoke all sessions and Revoke all tokens (each confirmed), bulk-ending one purpose at a time through a newPOST /principals/{id}/sessions:revokeAllbacked by a purpose-filteredRevokeBearersByPurpose(revoking sessions never touches tokens), returning the count and under the same gate, takeover guard, and audit as the single revoke. The generated CLI gainsomniglass principal sessions <id>/principal revoke-session <id> <sid>/principal revoke-all-sessions <id>(the cligennameOverrideseam groups them underprincipalso they do not collide with the self-servicesessioncommands, which share the leaf noun). Proven by real-binary API tests: an admin lists a target’s sessions and revokes one so it stops authenticating, bulk-revokes all sessions (both cookies stop authenticating, the tokens survive) then all tokens, an operator is 403, revoking an owner’s session or bulk-revoking its tokens as a lesser admin is 403 (the takeover guard), asidthat is not the target’s (or an unknown principal) is a 404, a bad purpose is a 422, the secret never appears, and the revoke is audited with the admin as actor. -
Identity: a password change keeps API tokens, and self-service bulk revoke. Two refinements to the session/token model. First, a password change now revokes sessions only, never tokens (#194): a token is its own bearer secret, not tied to the password, and has its own revoke surface, so both the admin reset (
SetPrincipalPassword, nowpurpose = 'session') and the self-service change (RevokeBearersByPurposeExcept(pr, "session", keep), keeping the current session) leave the target’s tokens intact. Second, the self-service Profile gains Revoke all on each of its Sessions and API tokens sections (#195), through a new authn-only, self-scopedPOST /auth/me/sessions:revokeAll(a{ purpose }body) that ends all of one kind at once but always keeps the credential making the request, so a user is never signed out of the one they are on; the generated CLI gainsomniglass session revoke-all. Both are built on one shared primitive,RevokeBearersByPurposeExcept(the plainRevokeBearersByPurposebecomes its nil-keep case, and the now-unusedRevokePrincipalBearersis retired). The admin blade also stops offering revoke on an owner target (whom the takeover guard makes un-revocable): its session/token list renders read-only, with a line explaining an owner can be seen but not ended. Proven by a storage test (the keep-current filter revokes the others and keeps the current + the tokens), an updated real-binary API test (a password change and an admin reset both leave the token authenticating while the sessions die), a new self-service bulk-revoke API test (all sessions except current, then all tokens, a bad purpose 422), and web tests (the Profile Revoke all posts the purpose, and an owner target hides every revoke). -
Identity: break-glass
set-passwordlocks out live sessions. The direct-DBomniglass set-password <user> <pw>(the trusted recovery lane, and the only way to touch a compromised owner, whose credentials the API guards leave un-revocable) previously rotated only the password, so a stolen session cookie or API token kept working after the reset (#198). It now also revokes the target’s live sessions (a break-glass is a lockout), and revokes its API tokens too with--revoke-tokens(kept by default, matching the password-change-keeps-tokens rule; a full compromise wants the flag). It reuses theRevokeBearersByPurposeprimitive afterSetPassword, resolving the principal by username; no API or console change (break-glass stays behind Postgres access). Proven by a real-Postgres CLI test: a live session stops authenticating after the reset, the token survives without the flag and is revoked with it, and the new password authenticates while the old one does not. -
Identity: self-service tokens, token descriptions, and session identification. Three coupled additions to the bearer-credential model. A signed-in user can mint its own API token from the console (a Create token action on the Profile API tokens section) or the API (
POST /auth/me/tokens, authn-only and self-scoped): a required description and an optionalttl_days(default 90, capped at 365), returning the secret once (#204, #205). A token now must carry a description (the CLIomniglass tokengains a required--description, the bootstrap token gets a default, a session leaves it empty), so a user can tell tokens apart. And every credential records the device and address that created it: three additivecredentialcolumns (description,user_agent,client_ip), captured by a middleware before Huma so both login and the token mint stamp them, plus the existinglast_used_atnow bumped on authentication (throttled to the minute). The session and token lists (self and admin) show a device label (a coarse User-Agent parse,Chrome on macOS;CLI / APIfor a token), the creating IP, and a last active time;IssueBearerCredentialis struct-ified to aBearerIssueto carry the metadata. Location from the IP (a GeoIP lookup, #193) is deferred: v1 is IP and User-Agent only. Proven by a storage test (the identity fields round-trip andlast_used_atbumps on auth), a real-binary API test (self-mint returns the token once, it authenticates and lists as a described token, a blank description or over-cap ttl is a 422), adeviceLabelunit test, and a Profile web test. -
Identity: the Users, Roles, and Groups directories move to the admin tier. The directory reads of
principal(list, get, and the profile-picture route),role, andprincipal_groupare promoted from a two-token<resource>:readto the admin-sensitive<resource>:read:admin, so theviewerread floor (*:read) no longer reaches the Users, Roles, and Groups pages, on the console or the API. This supersedes the earlierrole:read/principal_group:read/principal:readgates named in the slices above.admincarries an explicit<resource>:read:adminalongside its wildcards, the same shape asprincipal:purge:admin;owner’s>is unaffected, and create, update, and the lifecycle verbs stay two-token. Proven by a real-binary API test (a viewer@all 403s on/principals,/roles,/principal-groups; admin and owner 200), the nav filter’s web test (the three tabs hidden from*:read, shown to admin), and rbac matcher cases (ADR-0023). Secrets, which an operator legitimately reads in scope, are handled by a later slice. -
Secret: admin-sensitivity and a scoped, sensitive-off-the-floor directory. The second half of the visibility rework, for secrets. Two axes now decide who reaches a secret (#210): placement scope (unchanged) gives locality, and a new per-secret
admin_sensitivecolumn flips a secret to the:admintier, so a platform credential (a Zoom or Microsoft client secret) stays admin/owner-only even at the same scope as an operational device secret. The type carries adefault_admin_sensitivethat seeds the create form (a newoauth2-clienttype defaults sensitive,snmp-community/basic-authoperational).secretalso joins a sensitive-resource set a bare*does not reach, in both the direct match and the:readfloor (Go rbac and the clientcan()), so aviewer(only*:read) reads no secrets whileoperator/deploygain a scopedsecret:read,reveal,create,update;admin’ssecret:*becomessecret:>. Enforcement is acanAdmincapability computed at the API and passed to the Storage Gateway: the/secretsdirectory is now scope-filtered and hides admin-sensitive rows, and reveal/update/delete of a hidden secret is a non-disclosing 404; creating an admin-sensitive secret needs the admin tier. Proven by a real-binary API test (an operator sees and reveals its in-scope device secret but a non-disclosing 404 on the admin-sensitive one and an out-of-scope one, and is 403 creating a sensitive one; a same-scope admin and the owner see and reveal it), storage integration tests (the scoped list, the seeded type defaults), rbac matcher and covers cases, and the nav/can()web tests (Secrets hidden from*:read, shown to an explicitsecret:read). The move of Secrets, Variables, and Config into Catalog is a separate branch (ADR-0025). -
Tag: filter the directories by their effective tags. The last major tag piece, closing the set-and-see loop’s read half: the Components, Systems, and Locations chip filters gain a single tag field that discloses one facet per tag key in use, so an operator narrows a directory by any tag through one guided step (tag, then the key, then the value) rather than a top-level field per key. A tag facet reads a row’s effective value (a component matches on a tag it inherits from its system or location, not only a direct binding), autocompletes the values already in use for that key, and offers two new value-less operators, is set (
?) and is absent (!?), that test only whether the tag is present. These land in the sharedlib/predicateengine (anexists/absentOpKeycarrying avaluelessflag, threaded throughopsFor,matchOp,buildPredicate, andtokenToChip) so every FilterBar inherits them, plus atagFilterKeyshelper that projects oneFilterKeyper tag key present on the loaded rows; the FilterBar keeps those presence facets out of the top-level field list and groups them under thetagentry (a directkey:still works as a fast path).ListConfig.filterKeysbecomes accessor-reactive (aFilterKeys<T>is an array or an accessor, resolved in a reactive scope), so the facet set appears the moment the effective tags resolve and tracks whatever the estate is tagged with; each page merges its static facets with atagFacetsmemo derived from the rows. Deferred: server-side tag filtering at pagination scale (today the match is client-side over the loaded rows) and a stored per-key color override (#226). Proven by alib/predicateunit suite (the presence operators, the per-key facet projection and its dedup against the static keys, the value-less tokenizing) andFilterBarrender tests (thetaggroup discloses its keys, and a?/!?token commits a value-less chip that renders with no value button). -
Estate: the
typecapability resource gates the location/system/component type registries. The three classifier registries (location_type,system_type,component_type) gain full CRUD behind one new, capability-only, unscopedtyperesource, replacing the borrowedlocation:readgate onlist-location-types.type:readneeds no new grant (already covered byviewer’s*:readfloor);type:create,update,deleteis granted toadmin. A shared storage primitive (typeregistry.go) carries the sentinels and the delete guard: anofficial(seed-owned) row is read-only (422 on update/delete), and a row still referenced by a location, system, or component is refused on delete (409, a Gateway pre-count backstopped by the parent foreign key’sNO ACTION).system_typeandcomponent_typealso gain their firstlistroute (previously list-only forlocation_type, absent for the other two), retiring the console’s fake-from-existing- rows type picker workaround.secret_typeis untouched (list-only; its fields-schema editor is a separate follow-up). Proven by a storage round-trip per registry (create, duplicate id 409, update, official read-only, in-use delete refused) and a real-binary API test per registry (the CRUD lifecycle, 422 official, 409 in-use, auto-discovered 403 withouttype:*by the route-gating guard). The generated CLI and web client ship in the same slice (make gen). Deferred: the Types catalog console page (segmented tab per kind, CRUD drawer over the three writable kinds plus a read-only view ofsecret_type) is a follow-up slice. -
Console: nav IA rework, estate values get their own group and Settings becomes Admin. The sidebar’s
nav.tsgains a new Values top-level group (Variables, Secrets, Config), the estate-attached values that used to sit under Settings, standing beside Inventory (Components, Systems, Locations, and Nodes, the collection daemons) rather than nested inside it. Interfaces and Tasks are dropped from the nav: an interface is a panel on a component and a task is a panel on a node, both future work, not directories of their own. The Settings group is renamed Admin (Users, Roles, Groups, Audit) and gains an ungated soon Settings leaf reserving the platform-preferences page (severity scales, schedules, retention, defaults) (#222). Routes stay flat and unchanged (/secrets,/variables,/config,/nodes, the new/settingsstub), so only the grouping and labels move; this supersedes the earlier same-day plan to move those values into Catalog (decision log). Proven bynav.test.ts(the Inventory and Values group order and labels, Admin’s renamed label and its soon-stub surviving for both an owner and a bare*:readviewer, the moved entries keeping their existing gates) and aSidebar.test.tsxrender test (the Inventory and Values groups actually render in the expanded submenu). -
Console: the Types catalog page. The UI follow-up to the type registry CRUD API above: Catalog > Types (
/types) is a segmented tab control over all four classifier registries (location_type,system_type,component_type,secret_type), the first catalog page to span several registries in one page rather than a directory per primitive. Each tab (Location, System, Component, Secret) renders its ownFlatListdirectory scoped to that kind’s rows, so the tab is the facet: no cross-kind table and no kind filter to type in. Name and official/custom still narrow the active tab, and rows are addressed<kind>:<id>on the shared blade stack since an id is unique only within its own kind. The create drawer opens scoped to the active tab when it is a writable kind (location, system, component); an official (seed-owned) row and every row on the Secret tab render with neither Edit nor Delete, the Secret tab instead showing each row’s declared fields (name, scalar type, secrecy, origin) read-only, with a note that the fields-schema editor is a follow-up. The page reuses the shell built for the identity surfaces (FlatList,BladeStack, the blade edit contract) rather than a bespoke layout, so a fifth classifier registry is aTYPE_KINDSentry and a route, not a new page shape. Proven by a web data-layer unit suite (lib/types.ts): the four-registry aggregation tags each row’s kind, a location row carries its icon and a secret row its fields, and create/update/delete each refuse thesecretkind without a network call. Deferred: thesecret_typefields-schema editor (noted above) and a page-level component test of the blade CRUD flow. -
Inventory: create-as-route and the read-only view invariant. Creating a component, system, or location no longer returns you to the list.
Newnavigates to/<entity>/create, a draft accordion (Identity and Placement writable, the Tags section locked until the entity exists); Save commits the row and hands off to/<entity>/<id>in edit mode via a one-shot pending-edit flag, so you tag and finish configuring in place. The detail is one accordion, read-only in view and the sole writer in edit: the own-field inputs and theTagAdderwrite controls appear only in edit (the footer Edit/Delete and the read-only effective-secrets/variables panels, both since retired (#281), were exempt), which retires the old drawer-reopen edit and the mutation-in-view. This is the Users inline-blade-edit model generalised to inventory, on both the docked blade and the full page (ADR-0027, #231). The sharedTreeListgains a per-surface edit slot onListCtx(the full page makes its own, since the sharedrenderDetailmust not calluseBladeEditoutside a blade provider), plusrenderCreate/onNew/onEdithooks and an optionalFormBody. Proven by the live console (draft to create to edit hand-off, then a read-only fresh visit) and per-page web tests for the three entities (the draft route renders, the view has no tag-add control). Deferred: a shared cross-page form shell (slice 2) and moving the Users page onto it (slice 3). -
Estate:
rankretired from the type registries; alphabetical sort.rankwas sort-only (no nesting enforcement, per its own seed comment) onlocation_type,system_type, andcomponent_type; a new dbmate migration (ALTER TABLE ... DROP COLUMN IF EXISTS rank, idempotent) drops it from all three tables, andListLocationTypes/ListSystemTypes/ListComponentTypesnowORDER BY display_name, id. The field is gone from the three type bodies, the boot-seed YAMLs, the generated client and CLI, and the Types catalog page (no Rank column, no Rank field on create or edit). This is the mechanical precursor toallowed_parent_types(placement constraints onlocation_type), which lands as its own slice (#239). Proven by the storage round-trip per registry (alphabetical order, not insertion or id order), the boot-seed idempotency test (the lowest-alphabetical official row per registry), and a web test suite update (no Rank fixtures, no Rank assertions). -
Estate: technical-name rename with an inline name check. A component, system, or location’s technical name (its
name, the URL address) is now editable from the detail accordion in edit mode rather than fixed at creation. Becauseid(uuidv7) is the identity and every foreign key, tag/variable/secret binding, and placement references that UUID, a rename is a one-column update with no cascade. A sharedValidateEntityNameslug rule (^[a-z0-9][a-z0-9-]*$) is the server source of truth, mirrored client-side, and now gates create as well as rename. An inline Check button calls a collection-levelPOST /<entity>:checkNamethat reports{valid, available, reason}; availability is deliberately scope-blind to match the global unique constraint (a scope-aware check would false-positive on a name held outside the caller’s scope) and is gated by<entity>:update. The check is advisory: Save stays enabled and the unique constraint (409) is the real gate.make gencarries the new field and method through to the typed client and CLI. Proven by the rename round-trip per entity (a child or binding’s UUID foreign key still resolves after the parent renames, and the old name frees for reuse), dup-name 409, bad-slug 422 at both create and rename, the three checkName states, and a scope-blind test (adeployprincipal sees an out-of-scope name as taken, not available), plus per-page web tests for the editable field and the read-only view (#245). Deferred: an old-name to id redirect for bookmarked links (a soft 404 today), and wiring the check into the create draft’s live validation. -
Files: the content-addressed blob store and the file handle. The first files slice. A
blobstore lands as a Storage Gateway primitive: ablob.Storeseam with a default pgblobs backend (bytes held inline in Postgres), keyed by the sha256 of the bytes so identical bytes dedup to one row (on conflict do nothing), integrity-verified on read. On top of it, thefilehandle, searchable metadata (name, content_type, size, sha256, sensitive) that points at a blob by hash, gets CRUD over the API: create-from-upload hashes and dedups server-side, plus get, list, download (bytes read back and hash-verified), and delete (which frees the blob in the same transaction when no other handle still references it, dedup-aware, so storage is reclaimed; async mark-sweep GC of aged/event-referenced blobs is a later slice). Access is two layers with no new machinery: thefile:<action>permission, and a per-filesensitiveflag reusing the secret:admin-tier rule (a flagged file is hidden from a non-admin lister and a non-disclosing 404 to a non-admin reader, admin-only to create), defaulting off and leavingfileoff the sensitive-resource set so the viewer floor reads ordinary files. Files carry no placement scope (a file is tenant-wide; its 1:many locality is a future attachment, not an owner arc). The generated CLI (afilecommand group) and typed client follow from the Huma structs, and the Files directory ships under Values (upload, download, delete, a sensitive badge). Proven by the pure blob and file-validation unit tests, the pgblobs testcontainer round-trip and dedup gate (the capability-wrapping close), the gateway integration tests (round-trip, dedup, delete-leaves-blob, the sensitive gate), and a real-binary API e2e (upload to download identical bytes, the viewer/operator/admin permission and sensitive gates) (ADR-0029, #242, #244). Deferred: attach-to-entities-and-types (slice 2), tags-on-files (#191), async mark-sweep GC of aged/event-referenced blobs, the S3 and disk backends, and the classification lattice (#243). -
Estate:
allowed_parent_typesconstrains where a location may be placed.location_typegainsallowed_parent_types(text[], default{}, a new idempotent migration): a set oflocation_typeids and/or the reservedrootsentinel a location of that type may sit under. Empty is unconstrained (every existing custom type, unchanged); non-empty is enforced onCreateLocationand a new move primitive onUpdateLocation(aparentpatch field, cycle-guarded). A violation is a distinctstorage.PlacementError(wrapsstorage.ErrPlacementNotAllowed, carries the offending child and parent type names), mapped to a 422 that names both.CreateLocationTyperefuses the idroot, so a real type can never collide with the sentinel. The four seeded types ship their sets:campus={root},building={root,campus},floor={building,campus},room={floor,building,campus}. The Types catalog gains an allowed-parents editor (a checkbox list over the location types plus a Root option) on the location tab’s create and edit forms, and the location edit form’s Placement section makes Parent editable: a picker (riding #240’s inventory edit model, the sameShow when={editing()}split as every other editable field) narrowed to the type’s allowed parents and excluding the location’s own subtree, wired to the move primitive; moving back to root is not offered (ADR-0030, #239). Proven by a storage integration suite (unconstrained allows all, a listed parent and root both succeed, an out-of-order placement is refused on create and on move with the type names in the error, a cycle move is refused distinctly, and an existing noncompliant placement is untouched by an unrelated update until something tries to move it), a boot-seed idempotency assertion, and API/web tests (including the reparent picker’s candidate filtering and self-exclusion). Deferred:allowed_parent_typesforsystem_type/component_type, the same read-only-in-edit Parent gap on Systems and Components, and a drag-to-reparent affordance (this slice’s picker is a select, not a drag surface). -
Collection slice (checkpoint 5g): the derived interface/task model. The reachability primitives were reframed to their honest shape (ADR-0040): the interface is the only authored primitive and the task is derived. An interface is now named by its protocol (the name derives from its
interface_type, unique per component), so the create surface takes a type, not a free-text name. Creating an interface derives its one poll task, so the task surface is read-only: thePOST/PATCH/DELETE /tasksroutes and thetask:create/task:updategrants are gone, leavingGET /tasksandGET /tasks/{id}.task.node_nameis dropped and projected frominterface.node_name(the worklist and the telemetry owner-confinement now join the interface for placement), and a node purge cascades its interfaces and their tasks (interface.node_nameandtask.interface_idareON DELETE CASCADE). The console follows the entity model, folding the collection children onto their parents: the standalone Tasks page is removed and a node’s derived tasks read as a panel on the node detail, and the standalone Interfaces tab is removed and a component’s interfaces (with their reachability, add, and edit/delete) read as a panel on the component detail (an interface belongs to its component). The interface create form drops the name input (name derives from the protocol), the node detail moves onto the shared read-edit-save blade, and the collection pages route through the shared Button primitive. Storage, the API, the CLI, and the typed client regenerate from the reduced surface, somake genis clean. Proven by the reduced storage, API, and web suites over the derived model (an interface derives its task, the task surface is read-only, placement projects, a node purge cascades). This keeps the collection and nodes pagesPartial: the driver / collect layer (the normalized menu, SNMP, the$sec:/$var:interpolation consumer, templates) is still Design. -
Catalog: the
component_makemanufacturer registry. The first landed slice of a larger make/model catalog: a flat, seed-and-custom registry (id,official,display_name,icon,support_phone,website) naming who makes a component, on the same official-row-read-only pattern as the*_typeregistries. Full CRUD (POST/GET/PATCH/DELETE/list /api/v1/component-makes) gated by a new, capability-only, unscopedmakeresource (make:readsits in the viewer*:readfloor,make:create,update,deleteat the admin tier, mirroringtype:*); eight official makes (Crestron, Biamp, QSC, Shure, Cisco, Extron, Sony, Samsung) are upserted idempotently at boot. Thewebsitefield is validated to anhttp/httpsURL on create and update, both client and server side (a non-browser caller is refused with a 422), closing a stored-XSS path ajavascript:/data:value would otherwise open when the console rendered it as a live link; a value that still fails the check renders as plain text, never a dead or unsafe anchor. The console ships a Makes catalog page (FlatList+ blade, an official row read-only, same shape as Types) and the generated CLI (omniglass component-make list/get/create/update/delete). Proven by a storage round-trip (official read-only, duplicate id, alphabetical list), a seed idempotency test, a real-binary API test (the CRUD lifecycle, the website-scheme 422, the capability gate), and web unit and component tests covering the safe-URL render guard. Deliberate thin cuts: no in-use delete guard (nothing references a make yet, so a custom row deletes unconditionally; the referential 409 lands withcomponent_model), nocomponent_typegenus tree, nocomponent_model, and no picker wiring a component to a make. Deferred: the rest of the make/model catalog (epic #254, #255). -
Field: an operator-defined typed attribute on a type (slice 0). The first cut of the field primitive: an operator declares a typed field on a
component_type(afield_definition: aname, adata_typeofstring/int/float/bool/json, and an optional type-level default validated against thedata_type, unique per(component_type, name)), a component sets a literal for a field defined on its type (afield_value), and the component’s effective value resolves to the set literal or the type default (anis_setflag marks the override). The whole vertical shipped: storage (transactional, audited), the API (the definition catalog flat andfield:<action>-gated, the value routes ABAC-scoped to the owning component), the generated CLI and typed client, and the UI (define on the component-type blade under Types, plus an Effective fields panel on the component detail that sets a literal and shows override-versus-default). Owner is the component only: macro interpolation ($var:/$sec:/$datapoint:in a value), the cross-type cascade (product → location → system → component, deepest-wins), thesourcesmodel, typedfilefields, and definitions on the non-component_typeowners are deferred to later slices; the UI cannot yet clear a set value back to the type default (the clear route exists on the API and CLI but is not wired into the panel). The config, secrets, and variables page moves toPartialfor the field member. Proven by a storage integration test (definition CRUD and the default type-match guard on create and update, the effective set-or-default read and the not-applicable guard, and value update/delete reverting the component to the default), an HTTP e2e (the effective read, the override set path, and the viewer-reads / operator-sets authz split at thefield:creategate), and a scope-resolver unit test for the field arc kinds (a component-scoped operator resolves a subtree scope, a viewer resolves empty). -
Platform: the settings engine (install-wide level). The settings subsystem ships its first slice: a pure
settingspackage that resolves an effective configuration document by deep-merging ordered layers (embedded declared defaults, an optional operatorfile, and the install-wide DB override) most-specific-wins in JSON map-space, tracking per-key provenance and enforcing a top-down lock (broader level wins). The singlesetting_overridetable holds only the override level, since the base layers are recomputed in memory each boot and restore is therefore a delete (ADR-0033), and its Gateway methods are unscoped, gated by thesettings:<action>permission alone (ADR-0034), reusing the cascade primitive on the principal axis (ADR-0035). The API exposes an adminGET /settingswith provenance, a client-safe authn-onlyGET /settings/me, andPATCH/DELETE/POST /settings:restoreDefaultswrites undersettings:read/settings:update; the generated CLI and typed client follow. Twoprofile-domain namespaces seed (uiandkeybindings), andui.themeis wired end to end: the console reads its theme from/settings/me, so an admin setting the org theme default re-themes the SPA on next load. The Admin Settings page (namespace sections, provenance badges, lock chips, restore-to-default) replaces the/settingsnav stub. Proven by the pure engine unit suite (deep merge, RFC 7386 merge-patch, cascade resolution, lock enforcement, provenance), a testcontainer override round-trip (upsert, audit-in-transaction, delete-restores), an HTTP e2e (admin read with provenance, patch-then-read reflects the override,/settings/mereadable by a non-admin, the admin read forbidden to a viewer), and web tests (the page renders a provenance badge; the theme mapper). Deferred to the fast-follow: the group and user override rungs and the Profile preferences tab, thesettings:locksplit for group-admins,platform-domain namespaces (retention,integrations), a GitOps read-only mode, and live file reload (SIGHUP). -
Platform: typed settings (slice 1). A setting is now declared once as a field on a canonical
SettingsGo struct: reflection over itsdefault,enum,pattern, andsettings:"<domain>,<visibility>"tags builds the code-defaults layer and the namespace registry (the embeddeddefaults.yamland the hand-keptNamespaces()list are retired), so adding a setting is one tagged field with no second place to drift (ADR-0041). The cascade still merges partial maps, but the effective read unmarshals into the typed struct: the APIvaluesis now the typedSettings(the generated client getsvalues.ui.themeas a union), and Go code reads a setting offsettingsSvc.EffectiveTyped(ctx). Writes validate against the reflected schema (HumaSchemaFromTypeplusValidate): an unknown namespace is a 404, an unknown key or a value failing itsenum/pattern/type is a 422. Amake genstep slices those field constraints out of the OpenAPI intoweb/src/api/settings.schema.gen.ts, and the settings form validates each field inline against it (an enum renders as a select of the generated options, a bad value shows an inline message and blocks Save), with the server 422 as the backstop, so the console and the server enforce the same rules from one source.default_landinggains a^/pattern to make the inline validation demonstrable. Proven by the reflection unit suite (defaults coercion, registry from tags), the validator suite (unknown-namespace, unknown-key, enum and pattern violations, null-delete skipped), HTTP e2e (a badPATCHis 422 and leaves no override, an unknown namespace is 404), and web tests (the inline validator plus the form rendering the generated enum). Deferred: the declarative operator-file machinery (a generated schema for the operator file, file-layer validation, and letting the file layer outrank the database at the platform level). -
Field: an optional
display_nameon a definition. Afield_definitiongains a nullabledisplay_name, a human label threaded schema through UI: the console shows the label wherever it is set (the Fields editor on the component-type blade and the Effective fields panel), while the rawnamestays the unique key and the interpolation handle, so an unset label falls back to the key. The column is additive and idempotent, presentation only. Proven by the storage round-trip (the definition create and update carry the label, an unset label stores NULL), the HTTP e2e (the create body acceptsdisplay_nameand it round-trips through the catalog list), and the dev seed (the seeded display fields carry labels without changing row counts). The config, secrets, and variables page keeps itsPartialfield badge. -
Field: batched edit, upsert, and inherited-versus-set clarity. The Fields panel’s edit flow is reworked. Setting a value is now an idempotent upsert (
SetFieldValue): the first set creates, a later set patches in place (no more409 field already existson a second set), and a set to the unchanged value is a no-op, so theset-field-valueroute returns200and staysfield:create-gated. In the UI the per-field save is gone: a field’s edit stages a draft and the blade’s Save changes flushes every touched field (an upsert, or a delete for a cleared override) alongside the component core, through a newonSavecontributor on the blade edit slot. Edit mode now tells inherited from set: an inherited field is an empty input with a greyedunsetplaceholder, a set field shows its value with a clear (×) that stages a revert to the type default (replacing the revert arrow). Proven by a storage integration test (a second set patches in place, a same-value set writes no audit row), the updated HTTP e2e (the second POST upserts to200keeping itsvalue_id), and a blade-slot unit test (contributors flush before the primary save, and a throwing contributor aborts and keeps the blade in edit). The config, secrets, and variables page keeps itsPartialfield badge. -
Config, secrets, and variables: the per-component effective-secrets and effective-variables panels retire. The standalone Effective secrets and Effective variables panels on the component detail, and their
GET /components/{name}/effective-secrets/GET /components/{name}/effective-variablesroutes (with the generatedomniglass effective-secret list/effective-variable listcommands and the matching typed-client methods), are removed (#281, under the field epic #266). The panels listed every cascade-resolving cell that reached a component, mostly inherited noise; the field primitive is the schema-over-cells consumer, so a component’s values are now its fields (override versus type-default, the Effective fields panel), and a secret or variable reaches a component by being sourced into a field (the deferred fieldsourcesmodel) or bound to a collection interface input, not through a per-component cascade-browse panel. Kept: 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. The config, secrets, and variables page drops the retired-panel claims and the decision log records the call. No schema change: the value cells, the resolvers, and the directories are all unchanged. -
Node identity and edit (N1). A node reaches parity with the component/system/location primitives: it gains a nullable
display_nameand an optionallocation(a descriptive placement referencinglocation(name),ON DELETE SET NULL, not a scope; a node stays estate-wide), added by an additive migration.namestays the immutable key and estate address.UpdateNodeandPATCH /nodes/{name}(gated a newnode:update, covered by the ownernode:*) patch display_name, description, and location, with an unknown location a 422 through the FK. The console blade becomes read-edit-save: the title is the display_name (falling back to the name), Edit is the primary action and Enroll / Re-enroll moves to the secondary kebab, the list row labels by display_name with the key and location as its subtitle, and the create Drawer carries the two identity fields (its enroll flow is unchanged). Proven by the storage round-trip (each patched field, name immutable, location set / clear, theON DELETE SET NULL), the real-binary API test (the PATCH round-trip, thenode:update403, the unknown-location 422, create mints no token in the body), and the web suite (the Edit action gated onnode:update, the editable fields, Re-enroll from the kebab, the labelled rows). Deferred to their own issues: the token-after-create flow (#287), node tags (#285), decommission (#286), and inline create for flat lists (a platform list-primitive concern). The nodes page staysPartial. -
Node tags (N2). A node becomes a taggable owner kind, alongside the install-wide tier / component / system / location. The
tag_bindingowner arc gains anode_idleg (an additive migration re-adding the two CHECK constraints;ON DELETE CASCADEso a node purge drops its bindings), and the governedapplies_toset can now includenode. A node is estate-wide, not a scope tree, so tagging it needs an all scope (node:update, reusing the identity gate) and its effective tags are the install-wide layer plus its own direct bindings, no inheritance. The generic per-entity tag routes grow the/nodes/{name}:listTags/:setTag/:removeTagmethods, and the node body carrieseffective_tags. The console node blade gains a Tags panel (the sharedTagAdder: read pills, add / remove in edit), and the node list a Tags column plus a per-key filter facet, the same shape as the component list. Proven by a storage integration test (the applies_to gate, the all-scope requirement, effective = install-wide- direct, unbind), a real-binary API test (bind / list / effective / unbind and the
node:update403), and the web suite. Follows node identity (N1); the tags page staysPartial. Deferred: setting tags during node create (an inline-create platform concern).
- direct, unbind), a real-binary API test (bind / list / effective / unbind and the
-
Node decommission (N3). The node blade gets its destructive action:
DeleteNode+DELETE /nodes/{name}(gated a newnode:delete, covered by the ownernode:*). It is a hard delete of the node’skind='node'principal, which cascades the node detail and, through it, its interfaces and their derived tasks, its node-owned tags and self-telemetry, and its enrollment credential, every referencing FK is alreadyON DELETE CASCADE, so no migration. A node is estate-wide, so it needs an all scope; the delete is audited, and the component telemetry the node collected (owner arc = component,node_idnull) survives untouched. The console blade adds a Delete action (confirm, then close and refresh), completing its cred-action set (Edit primary, Enroll / Re-enroll kebab, Delete destructive). Proven by a storage test (the cascade of interfaces / tasks / tags, the component datapoint surviving, the all-scope gate) and a real-binary API test (the DELETE and thenode:delete403). Closes the node-lifecycle arc (N1 identity, N2 tags, N3 delete). The nodes page staysPartial. -
Field: the override model. Field rendering converges on one generic primitive,
FieldControl(the field-facing sibling of theKVRow/KVStackedkey:value pair), consumed everywhere a resolved-value-with-override appears. It renders in two modes. Read is a slim one-line row (label left, value right) where an override reads with an accent dot on its key and its value in the accent colour, while inherited stays muted. Edit is a stacked cell whose key row carries a right-aligned Override switch: switch off inherits the resolved value (the type default this slice) with no editable input; switch on reveals a type-aware input seeded from that value, and revert is the switch off (no separate clear). This fixes the bool case the old renderer got wrong: inherited, a bool shows the resolved word (true/false) muted rather than a toggle you appear to have set, and override on gives a real editable toggle. A newfield_definition.requiredboolean (additive migration, default false, carried through the effective read) marks a required field with a red*, forces its override on, and gates the blade Save: the red input box and a “This value is required” label appear only after a submit attempt leaves the field empty, and Save is blocked while any required field is unfilled.EffectiveFieldsis the first consumer, now rendering every field throughFieldControland still batching each touched field onto the blade Save. The$source picker (variable / secret / file) and the symbol-plus-name display of a sourced value are drawn in the control but wired in a later slice; this slice sets literals only. Proven byFieldControlunit tests (read dot-and-colour and inherited-muted, edit switch-off-value versus switch-on-input and revert, the bool word-versus-toggle split, and the required marker plus the submit-only red box and Save gate), theEffectiveFieldsblade-batch test, and a storage/HTTP round-trip carryingrequired. The config, secrets, and variables page keeps itsPartialfield badge. -
The property catalog. The
datapoint_typecatalog is generalized into the primitive-agnosticpropertycatalog (the physical table; the concept, the/propertiesAPI, the GoProperty, and the console all readproperty, while a property’s identifier stays akey): the typed set of signals a datapoint observes and a field declares. The(scope, name)ladder collapses to anameprimary key plus anofficialboolean (seed-owned properties read-only);value_typebecomesdata_typeover{string, int, float, bool, json}(textbackfills tostring,booladded);kindis nullable (a declared-only attribute property has none); andvalidationis a JSON Schema enforced by Huma’s own validator with no new dependency. Value and source tables keep keying by the name string (no FK), so the rename is behavior-preserving: the ingest registry, the reachability BFF, and the metric/state sinks are unchanged. A newinternal/keyprimitive holds the one canonical name-format rule (lowercase, dot-hierarchied) and the typed value validator; tag’s key rule folds onto it. The Storage Gateway gains custom-property CRUD (gatedproperty:create/:update/:delete, official properties read-only, audited in the same transaction), exposed at/propertieswith a generated CLI and client, and a new Catalog > Properties console page (list, blade, create form). An official seed ships the reachability properties plus a starter attribute set (serial_number,mac_address,firmware_version,model_number). Proven byinternal/keyunit tests, thepropertyCRUD integration test, the/propertiesHTTP e2e (theproperty:create403 and official read-only), and the console suite. The type-schema (field_definition.key, PR-B) and reconciliation are deferred (ADR-0043, #297). The config, secrets, and variables page staysPartial. -
The component classification catalogs. The
component_makeregistry is generalized into avendorcatalog with akind(manufacturer/integrator/developer), and two new leaf catalogs join it as the rest of the component-classification reference data: adriver(id, display_name, version) and acapability(id, display_name). Each of the three reuses theofficial-boolean chassis the type and property registries prove: seed-owned official rows are read-only (update / delete refused 422), a custom row is full CRUD gated by the resource’s<resource>:create/:update/:deletepermission (admin gains<resource>:*, the*:readfloor gives everyone read) and audited in the same transaction, with official rows seeded at boot. All three ship end to end: the Storage Gateway CRUD, the Huma surface (/vendors,/drivers,/capabilities) regenerated into the OpenAPI document, the cobra CLI, and the typed SPA client, plus a gated Catalog console page each (/vendors,/drivers,/capabilities) with a list, detail blade, and create form, official rows read-only in the UI. Proven by the per-catalog CRUD integration tests (official read-only, the scoped permission 403), the HTTP e2e, and the console suites. This is PR2 of the estate-model shift toward property / event / command + vendor / product / driver / capability / standard / role / health;product,product_capability, andcomponent.productare the next slice (ADR-0044). The core entities page staysPartial. -
The product catalog.
productlands as the concrete SKU that ties the ADR-0044 leaf catalogs together: akind(device/app/service/vm), an optionalvendor_id(who makes it) anddriver_id(what talks to it), an optionalparent_product_id(a variant points at its base product), theofficialboolean, and the capabilities it provides through theproduct_capabilityjoin (a video bar provides microphone, speaker, camera, codec; a replace-the-whole-set update). It reuses theofficial-boolean chassis: seed-owned official rows read-only (update / delete 422), custom rows full CRUD gated byproduct:create/:update/:delete(the*:readfloor gives everyone read) and audited in the same transaction, official rows seeded at boot. The slice also addscomponent.product_id(on delete restrict), the pointer from a component to the product it is, making the product the source of a component’s shape and retiring thecomponent_type-as-shape notion; a product still referenced by a component cannot be deleted (409). It ships end to end: the Storage Gateway CRUD, the Huma surface (/products) regenerated into the OpenAPI document, the cobra CLI (omniglass product list/get/create/update/delete), the typed SPA client, and a gated Catalog console page (/products) with a list, detail blade, and create form (vendor, driver, parent, and capability pickers), official rows read-only in the UI. Proven by the product CRUD integration test (official read-only, theproduct:create403, an unknown vendor / driver / capability reference 422, and the in-use 409 when a component points at it), the/productsHTTP e2e, and the console suite. This is PR3 of the estate-model shift toward property / event / command + vendor / product / driver / capability / standard / role / health (ADR-0045). The core entities page staysPartial. -
The
eventlog-kind sink. The collection pipeline gains its third sink. A neweventtable is the log-kind sink (a past occurrence) besidemetric_datapoint/state_datapoint(a sampled present value), carrying the same datapoint owner exclusive-arc (owner_kindpluscomponent_id/system_id/location_id/node_id, one-set CHECK) and the same provenance (observed/calculated/intended/declared, defaultobserved), plus amessage(text) and structuredattributes(jsonb). A log-kind datapoint that the ingest consumer used to drop (it had no sink) now routes toevent:deriveDatapointsreturns metrics, states, and events, and the consumer callsInsertEvents, so a log ridesstring_value(its message) orjson_value(its attributes) under the same owner-confinement and reject-not-project gates as the other two sinks. A boot-seed propertylog.line(kindlog) is the canonical starter. The reservedevent_idcolumns onmetric_datapointandstate_datapointare closed into real foreign keys toevent(id)(on delete set null), so an intended-provenance datapoint references theeventthat produced it. Storage addsInsertEvents(batch, in-tx) andListComponentEvents(newest first); the read routeGET /components/{name}/events(list-component-events, gatedcomponent:read, non-disclosing 404 out of scope) returns the last 24 hours capped at 200, regenerated into the OpenAPI document, the cobra CLI, and the typed SPA client, and the component detail page gains an Events panel over it. Proven by the consumer unit tests (a log routes to the event slice, a metric/state still land in their sinks), theInsertEvents/ListComponentEventsstorage integration test, and the/components/{name}/eventsHTTP e2e (the newest-first window and the out-of-scope 404). With metric, state, and log all flowing, this is the P1 follow-up of the estate-model roadmap (ADR-0046); the datapoints and data collection pages stayPartial(thelog_datapointtable, theevent_typeregistry, and log-to-event promotion are stillDesign). -
The fields fold: the product contract and the property value store. The standalone fields feature retires: a field was never a primitive, it was a property with
declaredprovenance. Two tables take its place.product_propertyis the product’s declared-property contract (product_id,property_name, an optionaldefault_value, arequiredflag, unique per pair), replacingfield_definitionand its per-component_typecatalog;data_typeandvalidationare not duplicated, they stay on the property catalog.property_valueis the value store, carrying the same owner exclusive-arc asmetric_datapointandevent(owner_kindpluscomponent_id/system_id/location_id/node_id, one-set CHECK) plus aninstancediscriminator, aprovenance(observed/calculated/intended/declared, defaultdeclared), and a jsonbvalue; its series key isunique nulls not distinct, since the arc leaves three owner columns NULL and the default NULLS DISTINCT would let duplicates through. The resolverEffectivePropertiesis one SQL UNION: the contract arm (everyproduct_propertyof the component’s product, valuedcoalesce(the component's declared value, the contract default),from_contracttrue) plus the off-contract arm (declared values the contract does not declare), so a productless component still resolves, to its off-contract set alone. Six routes ship, regenerated into the OpenAPI document, the cobra CLI, and the typed SPA client:GET /products/{id}/propertiesandPUT/DELETE /products/{id}/properties/{property}(gatedproduct:read/:update/:delete, an official product read-only 422), andGET /components/{name}/propertiesplusPUT/DELETE /components/{name}/properties/{property}(gatedcomponent:read/:update, ABAC-scoped with a non-disclosing 404 out of scope, audited in the same transaction). The CLI readsomniglass product properties|set-property|delete-propertyandomniglass component properties|set-property|clear-property. The console renames the operator word from Fields to Properties: the component detail gains a Properties panel (contract rows, a dashed-bordered off contract group for the ad-hoc ones, an override toggle with an accent dot on an override, a required property blocking Save), and the product detail gains a Declared properties contract editor (declare, edit, withdraw, read-only for an official product). Retired with the feature:field_value,field_definition,component.component_type, and thecomponent_typetable with its/types/componentroutes, its console registry section, and its seed. A component’s shape now comes from its product (optional: a productless component simply has no contract), and the categorycomponent_typeused to carry (display, codec) is expressed by the capabilities that product provides. The seeded products ship a starter contract (cisco-room-barandsamsung-qm55declareserial_number,firmware_version, andmodel_numberwith defaults), androles.yamldrops the now-unclaimedfield:*permissions, sinceproperty:*already covers the tier. Proven by theproduct_propertyandproperty_valuestorage integration tests (the in-place contract upsert, a nil default round-tripping as SQL NULL, both resolver arms, the idempotent re-set on one series row, the clear-to-default, and the productless component), the/products/{id}/propertiesand/components/{name}/propertiesHTTP e2e (the official-product 422, the unknown-property 422, the out-of-scope non-disclosing 404, the withdraw-twice 404, and the clear back to the contract default), and the console suites for both new surfaces. This is PR5 of the estate-model shift (ADR-0047). No page badge moves: core entities and config, secrets, and variables both stayPartial(the cross-owner cascade, the non-declaredprovenance producers, and thestandard/location_typecontracts are still ahead). -
The
standardblueprint, the owner-generic resolver, and the template-fork seed model.system_typeis promoted tostandard: the blueprint a system conforms to, the system-side counterpart ofproduct. The renamed table gainsparent_standard_id(variants, mirroringproduct.parent_product_id) and a declared property contract, andsystem.system_typebecomessystem.standard_id, now optional, so a one-off system that conforms to no standard is first-class exactly like a productless component. The seeded rows carry over. Since a standard now owns a contract it is a Catalog entity, not a bare type registry: it leaves the sharedtype:*permission for its ownstandard:read/:create/:update/:delete(read on the viewer*:readfloor, the writes admin-tier, exactly likeproduct:*) and its routes move from/types/systemto/standards. Two contract tables joinproduct_propertyon the identical shape:standard_propertyandlocation_type_property(<classifier>_id,property_name, an optionaldefault_value, arequiredflag, unique per pair);data_typeandvalidationare never duplicated onto a contract, they stay in the property catalog. The resolver then generalizes toEffectiveProperties(ctx, ownerKind, ownerID, read), resolving component, system, location, and node off one parameterized SQL template driven by anownerContracttable (instance table, classifier column, contract table, contract key, arc column): component reads throughcomponent.product_id, system throughsystem.standard_id, location throughlocation.location_type, and a node, having no classifier, resolves ad-hoc values only. The two-arm shape is unchanged (contract armcoalesce(the instance's value, the contract default)withfrom_contracttrue, UNION the ad-hoc arm), so three classifier/instance pairs cannot drift apart.guardOwnerScopenow scope-checks every owner arc on a value write, not just the component one. The routes ship regenerated into the OpenAPI document, the cobra CLI, and the typed SPA client: the/standardsCRUD;GET /standards/{id}/propertiesplusPUT/DELETE .../{property}(gatedstandard:read|update|delete);GET /location-types/{id}/propertiesplusPUT/DELETE .../{property}(gatedtype:*, the registry CRUD staying at/types/location); and the value sidesGET /systems/{name}/propertiesandGET /locations/{name}/propertiesplus theirPUT/DELETE .../{property}(gatedsystem:*/location:*, ABAC-scoped with a non-disclosing 404 out of scope, audited in the same transaction). The CLI readsomniglass standard properties|set-property|delete-property,omniglass location-type properties|set-property|delete-property, andomniglass system|location properties|set-property|clear-property. The console gains a Standards catalog page with a Declared properties contract editor (the Products pattern), a contract editor on the location type blade, and a Properties panel on the system and location details (the component pattern: contract rows, a dashed-bordered off contract group, an override toggle, a required property blocking Save); the Types page drops its System tab. The seed model is the conceptual half of the slice: a standard and a location type are created by forking an in-code template, a one-time fork with no inheritance, so a template can be improved in any release because nothing in any tenant points at it. What lands is therefore operator-owned: shipped standards and the four shipped location types seedofficial: falsethrough seed-if-absent paths (SeedStandard/SeedLocationType,ON CONFLICT DO NOTHING), never the authoritativeUpsert*, whoseON CONFLICT DO UPDATEwould silently revert an operator’s edit on the next boot. Forking applies template -> standard, never standard -> system: a system conforms with live inheritance. The canonical catalogs are the exception and keep the authoritative upsert withofficial: true,propertyabove all, since it is the shared vocabulary a driver maps onto and a release must be able to correct it. Proven by thestandard,standard_property, andlocation_type_propertystorage integration tests, the owner-generic resolver tests across all four owner kinds (including the classifier-less node and one-off system), the seed regression test that edits a seeded standard, re-runs the seed, and asserts the edit survived, the/standardsand four property-route HTTP e2e suites (the official read-only 422, the unknown-property 422, the out-of-scope non-disclosing 404 on both the read and the write, the withdraw-twice 404, and the clear back to the contract default), and the console suites for the new surfaces. This is PR6 of the estate-model shift (ADR-0048). No page badge moves: core entities staysPartial(the cross-owner cascade, the non-declaredprovenance producers,system_membercomposition, and template pinning are still ahead), and API staysPartial. -
System roles, required capabilities, and the assignment guard. A system now declares what it needs filled.
system_roleis the slot (a table microphone, a main display), declared either on astandard, where every conforming system inherits it live, or directly on onesystem(ad-hoc, which is how a one-off system gets roles at all). Both owners ride the same exclusive arcproperty_valueuses (owner_kindplusstandard_id/system_id, a one-set CHECK, and aunique nulls not distinctkey over the arc columns and the role name, since the arc leaves one owner column NULL). A role carries aquorum(how many components should fill it, floored at one) and requires a conjunctive set ofrole_capabilityrows: a component must provide every listed capability. Two more tables complete it:component_capability(component_id,capability_id,present) is the component’s own capability facts layered over its product’s (present=trueadds one the product does not claim,present=falsesuppresses one it does), androle_assignmentrecords who fills the role in this system, with the component FKon delete restrictso a component staffing a role cannot be deleted out from under it. Two resolvers ship with them.EffectiveCapabilities(component)is the product’s capabilities UNION the component’s additions MINUS its suppressions, so a productless component resolves to just its own declarations; it is the single definition of “what this component can do” for the whole platform.EffectiveRoles(system)merges the inherited arm (from_standardtrue) with the ad-hoc arm, each role carrying its required capabilities, its quorum, its assignments, and the servedassignedandunderstaffedcounts, so no surface does the arithmetic itself. The slice’s decision is the guard:AssignRolerefuses (422) when the component’s resolved capabilities do not cover the role’s requirement, and the refusal 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), a refusal on modeled grounds in the same class as the location placement constraint, and named for the same reason. Capabilities became a resolved set precisely to make that strictness survivable:productis optional on a component, so a guard over a product-only fact would have locked every productless component out of every role. Eight routes ship, regenerated into the OpenAPI document, the cobra CLI, and the typed SPA client:GET /standards/{id}/rolesplusPUT/DELETE /standards/{id}/roles/{role}(gatedstandard:read/:update/:delete);GET /systems/{name}/roles(the resolved read) plusPUT/DELETE /systems/{name}/roles/{role}andPUT/DELETE /systems/{name}/roles/{role}/assignments/{component}(gatedsystem:read/:update); andGET /components/{name}/capabilitiesplusPUT/DELETE /components/{name}/capabilities/{capability}(gatedcomponent: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 on the read and the write alike, and every write is audited in the same transaction. The CLI readsomniglass standard roles|set-role|delete-role,omniglass system roles|set-role|delete-role|assign-role|unassign-role, andomniglass component capabilities|set-capability|clear-capability. The console follows the property pattern one tier up: a Roles editor on the standard blade (declare a role, set its quorum, pick the capabilities it requires), a Roles panel on the system detail (each role with its source, its staffing, an understaffed marker, and assign / unassign), and a Capabilities panel on the component detail (the resolved set, with the component’s own additions and suppressions marked against its product’s). The shippedmeeting-roomstandard declaresroom-mic(microphone + speaker, quorum 2) andmain-display(flat-panel-display, chosen so the shipped Samsung QM55 can actually fill it), seeded if absent on the operator-owned lane. Proven by theEffectiveCapabilitiesstorage integration test (the product’s set, an addition, a suppression, and the productless component resolving to exactly its own declarations), theEffectiveRolesand assignment test (both arms resolving, quorum 2 reading understaffed 2 then 1 after one assignment, the idempotent re-assign, the named shortfall on a display that provides neither microphone nor speaker, a productless component that declares what the role needs being staffed successfully, the unassign-twice miss, the unknown-role not-found, and the one-off system seeing only its own roles), the/systems/{name}/rolesHTTP e2e (the inherited and ad-hoc rows, the 422 that names the gap, the out-of-scope non-disclosing 404) plus the seeded-standard e2e, and the seed regression that retunes a seeded role’s quorum, re-runs the seed, and asserts the retune survived. This is PR7 of the estate-model shift (ADR-0049). No page badge moves: core entities staysPartial(a role’s impact on health,system_membercomposition, template pinning, the cross-owner cascade, and operational mode are still ahead) and API staysPartial. -
Health: the alarm-capability-role chain, and a verdict recorded as a transition. A system and a location now answer “is this working right now?” and “since when?”. An
alarmis component-local (aseverityofinfo/warning/critical, amessage, araised_at, and a nullablecleared_at, so clearing keeps the row and the record of what was wrong outlives the fix), andalarm_capabilitynames the capabilities it degrades. That naming is the only route out of the component: 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 the newsystem_role.impact(outage/degraded/none, defaulting todegraded, landing here because this is the slice that reads it); a system takes the worst contribution among its roles and a location the worst among the systems placed anywhere beneath it. The verdict domain ishealthy<degraded<outage, and the judgement is a pure package (internal/health) unit-tested with no database:Satisfies, the quorum boundary, worst-wins, and two deliberate safety defaults in opposite directions (an unrecognized impact readsdegraded, so a bad value never makes an impaired role silently harmless; an unrecognized recorded value readshealthy, so one stray row cannot paint an estate broken). The conceptual heart is how health is recorded. It is written transition-only ontostate_datapoint, which is already exactly that primitive (a row only when the value differs from the last one stored, andStateTransitionsreads the ordered flips the reachability strip draws), on the owner arc withprovenance='calculated'andsource_rule='health-rollup'; there is no new history table. Two alternatives were rejected for failing the requirement that the edges be accurate weeks later: compute-on-read keeps no history at all, and compute-and-write-through-on-read keeps a history sampled by whoever opens a page, so the recorded edge is stamped when somebody looked rather than when the estate changed. Instead the verdict is recomputed at the writes that can change it, in the same transaction: alarm raise and clear, assign and unassign, role declare and withdraw, a quorum or impact change, a component capability or product change, system create (which gives a system’s history a defined beginning), a standard change (which moves every conforming system), and a relocation (recomputing both the location arrived at and the one left, since that one may have just improved). A read never writes, and it computes the verdict it serves from the same resolved rows it displays, a correctness fix for a report that could otherwise sayhealthybeside an impairedoutagerole; recorded transitions stay the source for history. The slice also forced a latent bug into the open: recording an opening verdict at system creation gave every system astate_datapointrow from birth, and every rename then failed on the owner foreign key, because those FKs address the owner by name and declared noON UPDATE. Migration20260721170000re-adds all fourstate_datapointowner FKs withon update cascade, which is what name-as-address always meant; the same gap onmetric_datapoint,event,property_value,alarm, and the role tables is tracked in #314. Five routes ship, regenerated into the OpenAPI document, the cobra CLI, and the typed SPA client:GET/POST /components/{name}/alarmsandDELETE /components/{name}/alarms/{id}(gatedcomponent:read/:update, an unknown capability or bad severity a 422), plusGET /systems/{name}/healthandGET /locations/{name}/health(gatedsystem:read/location:read, scope-injected with a non-disclosing 404), each returning the verdict, the contributing roles with their degraded capabilities and the causing alarms (or the systems beneath, for a location), and the recorded transitions over the last 30 days. The CLI readsomniglass component alarms|raise-alarm|clear-alarm,omniglass system health, andomniglass location health, and the seed adds ahealthstate-kind property. The console carries a health badge on the system and location details and in the systems list, a Health panel that names the causal chain role by role (alarm -> degraded capability -> role below quorum -> verdict), a History strip reusing the reachability availability-strip shape, and an Alarms panel on the component (raise, clear, and a recently-cleared group). Proven by theinternal/healthunit suite (the quorum boundary, a degraded assignee dropping a role below it, worst-wins at both levels, the impact mapping, and the verdict round-trip) and the storage and HTTP integration suites (the transitions written through the whole chain, an irrelevant degraded capability changing nothing, the report naming the cause, impact and quorum, the moves on unassign / standard change / product change / relocation, the fresh system’s report, health surviving a rename, the alarm listing and its refusals, and the out-of-scope non-disclosing 404). This is PR8 of the estate-model shift (ADR-0050), and it closes epic #266: the slice that consumes what the previous seven built. Health advances fromDesigntoPartial(alarms raised by anevent_rule, system- and location-owned alarms, theunknownverdict, theglobalestate top, and the SLI / SLO / SLA and KPI tier are stillDesign); core entities and API stayPartial. -
System membership (
system_member): a component’s binding to a system is now a row rather than a write-once pointer nobody read, and a role attaches to it. Membership is many-valued, so a rack DSP serving three rooms is a member of all three, which the old single pointer could not say at all, andis_primarykeeps one answer for a question asked with no system in hand (a default for context-free callers, not a resolution rule; a partial unique index makes a second primary impossible). Staffing a role creates the membership, so the two can never disagree, while giving up a role leaves it, because a member carrying no role (a power conditioner, a spare) is ordinary. A one-time backfill reads both of the places membership used to be implied, the role table and the old pointer, since each holds components the other drops. The API addsGET /systems/{name}/members,GET /components/{name}/memberships,PUT/DELETE /systems/{name}/members/{component}andPOST /systems/{name}/members/{component}:setPrimary; the CLI addsomniglass system members|add-member|remove-member|set-primary-memberandomniglass component systems. Proven by the storage integration suite (the shared device in two systems, the first membership taking the default without being asked, a later one not stealing it, the default moving rather than duplicating, assignment creating the binding, removal refused while a role is still filled, the cascade from both ends, and the out-of-scope non-disclosing 404) and by a backfill test that executes the shipped migration file rather than a copy, covering the shared device, the pointer-only component, and both-at-once, and asserting a second run changes nothing. Resolution behaviour is a deliberate thin cut:component.system_idstays and keeps feeding the four cascade resolvers unchanged, so this slice ships and is verified on its own. Slice 1 of epic #324 (ADR-0051); core entities and API stayPartial. -
Membership-scoped resolution and the end of the component’s system pointer: the tag and variable cascades seed their system band from
system_memberrather thancomponent.system_id, and tag resolution takes the system to resolve against (GET /components/{name}/effective-tags?system=), falling back to the component’s primary membership when none is given. A shared device therefore answers differently for each system it serves, which the single pointer could not express at all. Secrets carry no system band, on ownership grounds: a credential belongs to the device, not to the room it serves.component.system_idis dropped; the component body now reportssystem(the primary, by name) andsystem_count, and the console reads both instead of joining uuids client-side. Proven by an integration suite written before the change, since a mis-seeded chain is valid SQL that silently returns fewer rows: the same component resolvingprodfor one system andlabfor another, the context-free read following the primary and moving when the primary moves, a component in no system resolving the other bands without error, a system the component is not a member of lending it nothing, and a system-owned secret never reaching a component. Slice 2 of epic #324 (ADR-0052); cascade and core entities stayPartial. -
The effective-values resolution view, resolved per membership: the component detail gains an Effective tags panel showing, per key, the winning value, the tier it won from (global, location, system, or the component itself) and the owner’s name, with the shadowed candidates struck through beneath it.
GET /components/{name}/effective-tagshad existed for some time with no console consumer, so the provenance it returns was being thrown away and the list’s flat pills were the only view of a resolved value. A system selector appears only when the component belongs to more than one system, and switching it re-resolves against that membership (?system=), so a shared device visibly answersprodfor one room andlabfor another. A component in a single system sees no selector and reads exactly as before. This closes epic #324: the engine became per-membership in slice 2, and this is the surface that teaches it. Cascade and core entities stayPartial. -
A name is the address (ADR-0053): the API accepted names on write and returned uuids on read, so a component created with
{"parent": "rack"}read back as{"parent_id": "0198f..."}and no response body could be replayed as the request that produced it. Every client had to fetch a second collection and join by uuid to render one label. Normalized on component, system, and location (parent,location) and on the tag, variable, and secret bodies, which already carriedowner_namebeside the redundant id. Enforced byTestResponsesAddressEntitiesByName, a guard over the generated OpenAPI that fails on any field naming another entity by uuid, and proven by an HTTP round-trip test on all three entities. Breaking at v0.0.0, deliberately. The schema stragglers (secret,variable,tag_bindingowner arcs) keep their uuid keys for now and are called out in the ADR. -
The owner arcs key by name (ADR-0055): the nine arc columns on
tag_binding,variable, andsecretconvert fromuuid references <entity> (id)totext references <entity> (name) on update cascade, matching every table from the collection era onward and completing what ADR-0053 deliberately left. The two conventions no longer meet inside a query: the cascade resolvers projected uuid chains purely to match these three tables, and each chain now projects the name while still recursing onparent_id. Proven byTestOwnerArcsSurviveARename, which binds a tag, a variable, and a secret at a location, renames it, and asserts all three still resolve; mutation-checked, since removingon update cascademakes the rename fail outright rather than merely orphan the rows.tag_binding.node_idkeeps its uuid (a node is addressed by its enrollment identity) andtag_binding.tag_idis tracked separately in #340. -
Every foreign key stores a primary key (ADR-0056): all 30 name-keyed foreign keys convert to the target’s primary key (a uuid,
principal_idfor a node), reversing the direction ADR-0053 set and ADR-0055 completed.on update cascadeis gone with them: it was write amplification across every referencing row to protect a key that did not need to be a name. The conversion also fixed a refusal, not just an inefficiency:interface.componentreferencedcomponent (name)with noon updateclause, so renaming a component that owned any interface failed outright with a foreign-key violation. Verified against the restored pre-conversion schema rather than argued. In exchange the API accepts either form wherever a reference is written (uuid tried first) and every response carries both the name and the id. Shipped in five slices grouped by subsystem so each file changed once; the last converts the collection tier (metric_datapoint’s four arcs,interface’s component and node arcs,node.location_name) and every remaining node reference. Proven byTestCollectionReferencesSurviveARename, which renames a component and a location under a live interface, task, and datapoint and asserts the node’s resolved worklist and the component’s interface list still come back; mutation-checked in both directions. Health keeps names internally on purpose, since its advisory lock hasheshealth/<kind>/<name>and a mixed currency would silently stop serializing. -
The cascade’s least-specific tier is
platform. One word,global, named two unrelated things: the install-wide binding tier and the singleton estate owner where health and KPIs roll up. The tier is renamedplatformon both axes, at exactly the rung it already occupied, anddefaultis documented off the axis entirely (ADR-0057). An idempotent migration rewritesowner_kindonvariable,secret, andtag_bindingplussetting_override.scope, with the check constraints and the partial unique indexes keyed on the value; no precedence changes, no rows are added, and every existing deployment resolves byte-identically after upgrade. The settings engine’scodelevel becomesdefaultand itsgloballevelplatform, the enum ridesmake geninto the OpenAPI, the typed client, and the CLI (tag setPlatform/clearPlatform,--owner-kind platform), and the console renders the tier and a declared default as what they are (“Declared default” carries no origin badge, because nobody set it). The new capability is authorization: a write at the tier now needsplatform:<action>on top of the resource permission, published per route asx-omniglass-platform-permissionand seeded toadminonly, so an all-scoped operator runs every site without being able to move the install-wide value under them.platformjoins the sensitive-resource set (withsecretandsettings) so a bare*:updatecannot reach it: install-wide authority is never implied by estate reach, in the rbac core and in the console’s mirror of it. The console gates every tier control on both halves, on all three surfaces that write at the tier: the Settings page, and the Secrets and Variables pages, where a caller without the tier half is not offered the Platform scope on the create form nor Edit / Delete on a tier row, and reads which capability is missing instead of meeting a 403. Breaking: a secret sealed at the old tier cannot be decrypted after upgrade, since the AAD bindsownerKind|ownerID|name|field(accepted deliberately, see the ADR). Proven by a testcontainer upgrade test (pre-rename rows resolve identically after the migration, the constraints and unique indexes still hold one row per identity), the settings resolver unit suite on the renamed levels, and an HTTP end-to-end authz test (an all-scoped role withoutplatform:*is refused at the tier and permitted below it, and the seeded roles carry the capability exactly where they should). The dev seed carries the no-root-location rule intomake dev: the example estate is a forest of three unparented tops with devices under two of them, so the location binding at HQ visibly misses the East campus and only theplatformvalue reaches both (proven by a pure fixture test and a seeded effective-tags assertion). A closing migration putssetting_override.scopeunder its own CHECK. It was the one tier column with no constraint behind it, which is how the rename passed a green suite while the Go layer still wroteglobaland orphaned every override in silence. The legal set is the levels that are persisted as rows, todayplatformalone:defaultis reflected off theSettingsstruct andfileis read from disk at boot, so neither can ever be a row, and the group and user rungs will widen the CHECK when they land. The cascade page moves toPartial: its binding chain ships for tags, secrets, and variables, while the template bands, group placement by weight, rule accumulation, and the resolve view stayDesign. -
The node API commands are reachable, and a guard keeps the CLI namespace honest (ADR-0058): the hand-written edge run mode and the generated
nodegroup both registered asnode, so cobra resolvedomniglass node listto the daemon and it failed asking for--token. Every generated node command was unreachable while the CLI guide documented them as working. The run mode is nowomniglass node run. The durable half isTestNoCommandNameCollisions, which walks the assembled tree and fails on any duplicate name: written first, it found the knownnodeandtype listcases plus two nobody had reported,grant createandgrant delete, where the principal-group variants shadow the principal ones and granting a role to a principal has no CLI path at all (#357). Those four are carried as an explicit list that may only shrink, since the guard also fails on an entry that stops colliding. -
The CLI naming rule is derived from the whole route, not the leaf noun (ADR-0059): every collection segment is a level, so a subresource is addressed under its owner (
component property list,principal grant create). The old leaf-noun rule produced 24 collisions across 195 operations (property listseven ways), each silently unreachable and each patched by hand afterwards:nameOverridehad reached 53 entries whose comments all described the same defect. It is now 14, all genuinely non-AIP/authroutes. The generator’s grouping also became a real N-level tree, since bucketing by the first word and naming by the last collapsed three-word paths back into collisions. 67 of 202 commands renamed, 135 unchanged, zero collisions.omniglass statu(the depluralizer eatingstatus) is gone. Two guards keep it: the collision test, whose known-collision list is now empty, andTestDocsOnlyNameRealCommands, which fails when a guide teaches a command that does not resolve and immediately found one that had never existed in any build plus two with no API route (#359). -
The
/typesumbrella is retired (ADR-0060): the location type registry was addressed two ways,/types/locationfor its CRUD and/location-types/{id}/propertiesfor its contract, so one entity had two command groups and an operator had to know both spellings. The registry CRUD moves toGET/POST /location-types,PATCH/DELETE /location-types/{id}, and the secret shape registry toGET /secret-types. The rule is now stateable in one line: a resource is one kebab-case noun, and nesting means ownership. Thetypecommand group is gone;location-type listis the registry andlocation-type property listits contract. Addressing only: same handlers, same permission gates, same scope injection, no schema change. -
“Latest” in a calculated series means the highest id (ADR-0061): a health row’s
tsisclock_timestamp()evaluated before its identity id is assigned, so two concurrent inserts can land with the two orderings disagreeing about which row is current. Every production reader already ordered by id; the health test helper ordered byts, which is what mademake testintermittently red with a verdict the engine never produced.LatestState, which backs the ingest transition guard, ordered bytsalone and now tie-breaks on id, so a poll cycle stamping several rows in one instant can no longer resolve to an arbitrary one. Reproduced deliberately (six concurrent copies of the storage package; never once in nine idle full-suite runs) and verified over 24 runs under the same load. -
The variable and secret cascades get their routes.
GET /components/{name}/effective-variablesand/effective-secretsresolve the same cascade the tag route resolves, returning the winner and the shadowed candidates with the tier each came from. The gateway resolvers had been written and tested since the cascade slice and were unreachable: no route, so no CLI command and no console read, while the CLI guide taughtomniglass effective-secret listas though it worked (#359, found by the docs-command guard). The two are gated differently on purpose: a variable read ridesvariable:read, a secret read ridessecret:read, which the viewer floor deliberately does not carry, and returns masked fields. The effective read answers which secret applies and where it comes from, never what it contains; plaintext stays behind the audited reveal, proven by a test that fails if the seeded plaintext ever appears. The CLI commands generated with no generator change (component effective-variable list,component effective-secret list), which is the parent-qualified naming rule paying off. Thin cut: the console’s resolution panel still shows tags only (#365). -
A list row carries both identities. Every estate entity has a key (
name, the kebab identifier the API and CLI address it by) and an optional display name. The console showed one or the other and never both, so the string an operator needs foromniglass component get <key>was invisible on every list but Nodes. The row now shows the display name with the key beneath it, muted and in the data face, always visible rather than on hover: hover does not exist on touch, is not discoverable, and cannot be selected to copy, and copying it is the point. When an entity has no display name the label is the key, so it renders once, in the data face, marking it as an identifier. Nothing is derived: sentence-casinghq-boardroom-dspgives “Hq boardroom dsp”, and this domain is acronyms (DSP, HDMI, NVX, PTZ, UC, AVoIP), so mechanical casing mangles them and makes an absent display name look like a typo rather than an absence. The rule now lives in one place (entityLabel), replacing nine copies ofdisplay_name || nameacross the node helper, three page mappers, two locallabelhelpers, and the owner and parent pickers. -
Create forms lead with the display name and derive the key as you type. An operator types “Conf Room 301” and the key fills in as
conf-room-301, editable underneath, instead of having to invent a kebab identifier and get the character class right.deriveKeyfolds diacritics (so “Café” iscafe, notcaf), collapses punctuation runs, trims leading and trailing separators, and respects the 100 character ceiling without leaving a trailing-; it only ever produces the empty string or a key matching the^[a-z0-9][a-z0-9-]*$the API enforces, asserted against that pattern directly. The moment the operator edits the key it becomes theirs and stops following, which is the rule that makes the pattern usable rather than infuriating, and the field says which state it is in. An existing entity’s key is owned from the start, so relabelling can never rename: the API takes a rename explicitly and it stays a deliberate act. The coupling is one primitive (createIdentity) rather than three copies of a signal pair, on Components, Systems, and Locations. -
The resolution panel reads all three cascades, in one list. It explained the tag cascade only; the variable and secret cascades had routes since the effective-values slice and no console read. All three are the same engine, so they share one table with a kind column rather than tabs or stacked sections: their bands genuinely differ (a variable seeds its system band from the primary membership, a secret has no system band at all), and one list makes that visible instead of hiding it behind a control. A secret shows its provenance and the word
masked, never a value: which credential a device resolves and from where is the operationally useful fact, and plaintext stays behind the audited reveal. The system selector appears only when a tag is in play, since it is the only kind that answers per-system. A caller withoutsecret:readsimply sees the other two kinds. Fixed on the way:bandLabelstill said global for the install-wide tier, months after ADR-0057 renamed it toplatform. Its test assertedfrom globalagainst a fixture whoseowner_kindwasglobal, a value the API stopped producing at that rename, so the label and its test were stale together and the suite stayed green. -
productandvendortake uuid primary keys (ADR-0062, slice 1 of #262): their kebab id becomesname, a unique renameable handle, and five inbound foreign keys move to the uuid (product.vendor_id,product.parent_product_id,product_capability,product_property, andcomponent.product_id). The registries were the last place a foreign key pointed at a mutable string, so a product id could not be corrected after a typo or a rebrand. The API now carries both forms on every body and accepts either wherever a product or vendor is named. Proven byTestRegistryHandleRenameKeepsReferences, which renames both handles under a live sub-product, contract, capability set, and component instance, and asserts every reference resolves and reads the new handle; mutation-checked. The remaining seven registries follow, and five of those are a rename ofidtonamerather than an addition, since the registries did not agree with each other on the column name to begin with. -
capabilityandstandardtake uuid primary keys (slice 2 of #262, ADR-0062): their kebab id becomesname, and eight inbound foreign keys move to the uuid,capabilityfromproduct_capability,role_capability,component_capability, andalarm_capability;standardfromstandard_property,system_role, its ownparent_standard_id, andsystem.standard_id. Every read that returned a capability set (the effective-capabilities resolver, the role requirement lists, an alarm’s degraded set, the health rollup) now projects the capability’s name, so the wire surface is unchanged while the storage key is a uuid. Two migration facts from slice 1 recurred and are worth the note: a renamed table keeps its old primary-key constraint name (herestandardstill answered tosystem_type_pkey), so the drop looks the name up from the catalog rather than guessing; and recreating a column drops the NOT NULL and the unique constraints it carried, so an unknown capability that resolves to null on a not-null arc is mapped back to the ref-not-found sentinel rather than surfacing as a 500. The rename test now renames a capability and a standard under a live product, role, and contract and asserts each still resolves and reads the new handle. -
propertytakes a uuid primary key, and telemetry keys become real foreign keys (slice 3 of #262, ADR-0062): the largest registry conversion.property’s kebab id becomesname, and its seven references move to the uuid: four contract/value tables (product_property,standard_property,location_type_property,property_value) that already referenced it, plus thekeycolumn onmetric_datapoint,state_datapoint, andevent, which had been a loose property name with no foreign key. Those three become realproperty_idforeign keys, so a rename now follows an observation series, not only a contract. Every telemetry key was already a registered property (reject-not-project drops an unregistered name at collection), so the constraint only makes the invariant the database’s as well. Every read still projects the property’s name askeyandproperty_name, so the wire surface is unchanged. Proven byTestRegistryHandleRenameKeepsReferences, extended to rename a property under a live contract, a declared value, and a metric datapoint, and assert the datapoint reads the new key. The remaining four leaf registries are slice 4. -
location_type,secret_type,driver, andinterface_typetake uuid primary keys (slice 4 of #262, ADR-0062): the last of the epic, closing the invariant that no foreign key anywhere points at a mutable string.location_type,secret_type, anddriverare a rename of their kebabidtoname;interface_typealready called its slugnameand only gains the uuid, aspropertydid. Five inbound foreign keys move to the uuid:location.location_typeandlocation_type_property.location_type_id,secret.secret_type,product.driver_id, andinterface.type. Every read still projects the type’s name (a scalar subquery aliased to the wire field), so the wire surface is unchanged while the storage key is a uuid, and the product body now carries adriverhandle besidedriver_idas it carriesvendorbesidevendor_id.allowed_parent_typesstays a text array of type names, not a foreign key, since it is a self-reference the placement validator resolves by name. Proven byTestRegistryHandleRenameKeepsReferences, extended to rename all four under a live location, a location-type property contract, a secret, a product, and an interface, and assert every reference resolves and reads the new handle; mutation-checked. With this slice every registry is uuid-keyed; retiring the slug-key carve-out in the doctrine and the guard allow-lists is the epic’s closing slice. -
The slug-keyed exception is retired (slice 5 of #262, ADR-0062, the epic’s close): a docs-and-guard slice with one real fix. The api-first rule now reads “every foreign key stores a uuid, no exception”; ADR-0056’s slug-keyed carve-out is marked retired. The
TestReferencesCarryBothFormsguard drops its slug-keyed allow-list: the registry references (product_id,vendor_id,driver_id,standard_id, and the two parents) move into the both-forms rule, and emptying the allow-list surfaced a real gap, the component response carriedproduct_idwithout the product’s name, now fixed by adding theproducthandle to the component body (the guard’s whole purpose, catching a uuid-only reference). The storage helper collapses in step: the per-registryproductRefCol/vendorRefColand theregistryHandlesset fold into oneregistryRefCol(ref), since every registry behaves identically now. Epic #262 is complete: no foreign key anywhere points at a mutable string. -
role(IAM) takes a uuid primary key, the last named entity still keyed by its slug. It gains a uuididand demotes the slug to a unique, renameablename, and its one inbound reference,principal_grant.role_id, moves to the uuid. The RBAC engine is unchanged: it keys roles by name and expandsinheritsby name, so the well-known handles (owner/viewer/operator/deploy/admin) stay stable and the storage layer resolvesrole_idto a name on read and a name (or uuid) to the uuid on write. The owner invariant, previously holding the literal slug'owner'in its trigger, now resolves owner by name ((select id from role where name = 'owner')), and the roles view and grant bodies carry the role’s name beside the uuid. With this every named entity in the schema is uuid-keyed; the only non-uuid identities left are deliberate (node.principal_id, the polymorphicscope_id/resource_id, content-addressedblob/task). -
The type-registry references carry both forms: the
interface,location, andsecretbodies gainedtype_id/location_type_id/secret_type_idbeside their name (type/location_type/secret_type), which were previously name-only, an inconsistency with the both-forms rule the epic enforces everywhere else.TestReferencesCarryBothFormsnow guards both directions: the forward scan already caught a*_idwith no name; a reverse pass over a curated set of unambiguous registry name-fields (location_type,secret_type) now catches a registry handle with no id, closing the gap that let those name-only references slip past (the forward scan has no*_idfield to trip on).typestays forward-covered on the primary interface body alone, since it also names an RFC-9457 error type and a secret field’s data type. Theproperty_namecontract and value bodies are a follow-up. -
The interface’s registry field is renamed
typetointerface_type(withinterface_type_id), matchinglocation_typeandsecret_typeso the interface reference reads uniformly and can join the guard’s reverse set (a baretypecould not, since it also names an RFC-9457 error type and a secret field’s data type). The create flag becomes--interface-type. The diagnostic reachability row keeps itsinterface_typename-only (a display value never fed back to a write), recorded as an explicit reverse-check exemption. -
The declared-property contract and value bodies carry
property_idbesideproperty_name, the last name-only registry references: the product / standard / location_type contract lines, the component / system / location value bodies, and the effective-property resolution.property_namejoins the guard’s reverse set, so a contract or value body can no longer name a property without its uuid. The event body carriesproperty_idbeside itskeytoo (keyis the datapoint-key vocabulary for the property name on the telemetry bodies): the event row already storedproperty_idexactly as metric and state do, so exposing it is just a projection. The guard acceptskeyas property_id’s name pair on the telemetry body;keystays forward-covered rather than joining the reverse set, since it is also a tag-binding field and so ambiguous. Every registry reference in the API now carries both forms. -
The migration chain is collapsed to a single init. The 69 per-slice migrations that carried the schema from the first commit through the uuid-key epic are squashed into one
db/migrationsfile that reproduces the current schema exactly. Verified by round trip: a fresh apply of the full chain and a fresh apply of the lone init produce a byte-identicalpg_dump. It is pure DDL (no seed rows, which a squash drops), reuses the original initial migration’s version so an existing database treats it as already applied, and carries a realdownthat drops every table. The workflow is unchanged going forward: the next schema change is still a new migration on top, never an edit to this one. One migration-history test that rolled the database back to a now-absent version was removed; the resolution behaviour it checked is covered by the cascade suite. (The stale constraint names the renames left,component_make_*onvendorand so on, are preserved faithfully by the squash; renaming them is a separate cosmetic pass.) -
The observation tables lose the
_datapointgenus:metric_datapointbecomesmetricandstate_datapointbecomesstate, matching their bare-noun siblingeventon the principle that the noun is the entity and classification takes a_type/_kindsuffix (thedatapoint_typeclassifier already becameproperty). Each table name now equals theproperty.kindvalue it stores (kind='metric'tometric), and the freed namedatapointstays available for the future UNION view over the kind-tables. Verified collision-free (not Postgres keywords, no existing table or column namedmetric/state/log). Dependent object names (pkey, sequence, indexes, FK and CHECK constraints) keep their_datapointidentifiers for now, as the#262renames leftvendorandstandard; the pending migration collapse cleans every stale identifier in one pass. Table-only rename, no data or wire change. -
The stale schema identifier names are cleaned, and two role tables disambiguated. The collapse preserved every dependent object name verbatim, so the single init carried constraints, indexes, and sequences whose prefixes no longer matched their tables:
metric_datapoint_*andstate_datapoint_*on the renamedmetric/state,component_make_*onvendor,system_type_*onstandard,datapoint_type_*onproperty. Each is brought back in line with its table, and the#262artifact is fixed too: every registry had a*_uuid_id_not_nullon its uuididcolumn while the text handle kept the old*_id_not_null, now*_id_not_nullonidand*_name_not_nullonname. Separately,role_capabilityandrole_assignmentbecomesystem_role_capabilityandsystem_role_assignment: both belong to the AV system role (a slot a component fills in a system), not the IAMroletable, and the barerole_prefix invited exactly that confusion. Identifiers only, no behaviour change: the init applies clean and the full suite is green. -
The name foundation of ADR-0063 lands:
property_type,property,property_type_id. The signal-definition registry (long carried in the docs asdatapoint_type, and built asproperty) becomesproperty_type; the latest-value storeproperty_valuetakes the freed bare nounproperty; and every data table’s FK to the registry (metric,state,event,product_property,standard_property,location_type_property, andpropertyitself) is repointedproperty_idtoproperty_type_id, on the wire as well as in the column. A guarded dbmate migration does the table and column renames (the stale dependent object names are left for a cosmetic pass, as the collapse did); the storage structs (PropertyType,Property), the API bodies, the generated OpenAPI, typed client, CLI, and JSONSchema, and the console all follow. This closes thedatapoint_type-to-propertydivergence the docs carried: the registry isproperty_typeeverywhere. The rename is complete, not a thin cut: the public resource surface moves too (the registry isGET/POST /property-typesunder theproperty_type:*permission, while the owner-scoped/{owner}/propertiesvalue routes stay), the both-forms name pair reads(property_type_id, property_type_name), the audit resources areproperty_type/property, and a second migration block renames every dependent constraint and index in line with its table. The fuller ADR-0063 model (the provenance-keyed cache, theevent_typefamily, thecommandpillar) is still staged. -
A component’s product, location, and parent, and a system’s location and parent, become patchable (ADR-0064). These fields were accepted on create but had no update path, so a mis-classified or physically moved entity could only be deleted and recreated, losing its telemetry history.
PATCH /components/{name}andPATCH /systems/{name}now take them on the house three-state (omitted unchanged, empty string clears, name sets); a reparent is cycle-guarded and scope-injected like a location move, and a product swap keeps hand-set property values while the new contract’s defaults follow. No new UI: this opens the API and CLI and unblocks the CRUD form primitive’s generated edit form. Closes #342. -
The
propertylatest-value cache and the reconciliation read land (ADR-0063, first feature slice).propertybecomes the single-lookup latest-value cache for the producer provenances: the telemetry ingest sink, after appending themetric/statesample, derives the newest value per(owner, property_type, instance, provenance)series through a newUpsertPropertiesgateway, where an out-of-order guard keeps a late older sample from displacing a newer latest. The derive is non-gating (a failed upsert is logged, never fails the ack, and the cache is rebuildable from the append-only samples) and idempotent, so a redelivery does not double-write.LatestValuereturns the current value in one lookup instead of anorder by tsscan, and a reconciliation read (GET /components/{name}/reconciliation) pivots want (declared, resolved live from the cascade viaEffectiveProperties, never a cache row), told (intended), and is (observed), with config-drift computed on read; a read-only Reconciliation panel on the component detail teaches the pivot. Onlyobservedhas a live producer today;intended(the command pillar) andcalculated(the calc engine) are tested cache slots. One additive migration adds the value’s owntstoproperty. The datapoints and config, secrets, and variables pages stayPartial(the cache and reconciliation are built; the intended/calculated producers, log-to-event, calc, and fusion remain). Part of #394. -
The event_type family lands: events get their own registry (ADR-0063, second feature slice). Events move out of
property_typeinto their ownevent_typeregistry, the occurrence keyspace and the twin ofproperty_type. A guarded migration createsevent_type, repointseventoffproperty_type(kind=log) ontoevent_type, adds theorigincolumn (caught/caused/derived/ scheduled) plus thecaused_by_event_idandcorrelation_idcausation columns, and drops thelogkind fromproperty_type(now{metric, state}). Event rows are ephemeral telemetry logs, so the repoint clears the occurrence log rather than backfilling a type. The registry ships full CRUD (/event-types, gatedevent_type:*, seeded officialcall.started, official rows read-only), a generated CLI and typed client, and a console Event Types catalog page mirroring Properties. The native caught path is built: a component that publishes an event (an xAPI event, a trap) has its registeredevent_typename route it to theeventsink withorigin=caught, under the same owner-confinement and reject-not-project as a metric or state, and the events panel shows the origin. Raw log lines are a separate ingest lane, not events (ADR-0066): thelog_linetable and the derivation rules that turn a log line into an event are a later slice. Only the caught path has a producer today;causedis the command pillar (#396) andderived/scheduledneed the rule engine and the clock (the action layer). events advancesDesigntoPartial; datapoints notes thelogkind’s graduation. Part of #395. -
The command pillar lands: the do primitive and computed settlement (ADR-0063, third and final slice). Events know, datapoints happen, and now a command records what a component was told, the third registry (
command_type) alongsideproperty_typeandevent_type. A migration addscommand_type(with a driver-ownedsettle_window_secondsand an optionaltarget_property_type) and thecommandinvocation table over the owner arc. Issuing a command is one transaction that composes the whole model: it writes thecommand, a caused event (origin=caused, typedcommand.issued, #395), and, for a settleable command, an intended value in the property cache (#394) that the observed value settles against. Settlement is computed, never stored: within the settle window a difference is pending, past it a match is settled and a mismatch is failed, the windowed form of the reconciliation read’s want/told/is. The registry ships full CRUD (/command-types, gatedcommand_type:*, seededset_input/reboot, plus avideo.inputstate and acommand.issuedevent_type), thePOST /components/{name}/commands:issuecustom method (gatedcommand:issue), a generated CLI and client, and a console Command Types catalog page mirroring the property and event catalogs. Deferred (the actuation half): the outbound push to a driver or node, the protobufCommandon the wire, and the device acknowledgement. A new commands page lands atPartial. Part of #396. -
The datapoint concept retires for property, sample, and current value (ADR-0065). The one word “datapoint” split the signal from the observation: a property is the signal (registry
property_type), a sample is one timestamped observation of it (ametric/staterow, the kind), and the current value is the latest sample per series (thepropertycache). A behavior-preserving rename, no tables touched: the protoDatapointmessage becomesSample, the metric and state datapoint Go types become*Sample,deriveDatapointsbecomesderiveSamples, and the value-model page is now properties (redirect from the old slug), which carries the current-value cache and want/told/is reconciliation explainer. The ADR also settles that the builtpropertycache, a table upserted from the sink rather than the once-sketched metric view, is the architecture-of-record for current values. Part of #405. -
The platform ERD is generated from the schema (data model). A new
make genstep (cmd/erdgen) applies the embedded migrations to a throwaway Postgres, introspectsinformation_schema(tables, primary and foreign keys), and renders a subsystem-clustered D2 entity-relationship diagram onto the new Data model page, so the diagram can never drift from the tables. Theinternal/erdrender core is pure and golden-tested; the introspection and a drift gate (regenerate, compare to the committed D2) run against the real schema. Tables land in hand-mapped subsystem containers (identity, estate, catalog, telemetry, collection, config, content, audit); an unmapped table renders in a visibleunclusteredbox that trips the drift gate. The sql_table shapes are themed from the brand tokens so the ERD tracks the light/dark toggle. Part of #406. -
The raw-log ingest lane is built for the read path (ADR-0066).
log_lineis the raw-arrival table: untyped device text owned through the exclusive arc, withseverityandfacilitypromoted to indexed columns for retention and routing, and freeformattributes/labels. A log line is not an event, so the write has no registry gate. The read isGET /components/{name}/logs(gatedcomponent:read, scope-injected), with a generated CLI and typed client, and a console Logs panel beside the events panel (severity badges, the structuredattributesandlabelscolumns on demand). The dev seed installs the lobby display’s device logs (link, CEC, EDID, input, thermal) as log lines, their model-correct home. The generated ERD picks uplog_linein the telemetry cluster. Still directional: the ingest producer, the derivation engine that turns log lines into events, and the lineage columns. Part of #410. -
The event lineage columns land (ADR-0066).
event.caused_by_event_idis renamed tosource_event_id(the source is the cause), andsource_log_line_id(an FK tolog_line, the raw line a rule derived the event from) andderived_by_rule_id(which rule) are added, all nullable, so a natively-caught event carries none. This is the schema the derivation engine writes into: a rule that turns alog_lineinto an event will stamp the two new columns. No producer fills them yet (the derivation engine is the next slice); the generated ERD carries the new shape and theevent -> log_lineedge. Part of #410. -
The raw-log lane gets its first producer: node self-logs (ADR-0066). The telemetry
Eventgains aLogLinemessage and arepeated logsfield: raw log lines are untyped arrival, not registry-resolved samples, so they need their own wire slot. The node now runs an slog handler that writes to its console and buffers every record, installed as the process default so it is a node-wide emitter: any node code ships a self-log with a plainslog.Info(...)(carrying afacility, and optionally asource, which the mapping lifts into thelog_linecolumns), with no logger threaded down to it, and the buffer is bounded (oldest dropped, count reported) so a chatty stretch between ticks cannot grow the edge process without bound. The run loop drains it each tick and publishes the records as a logs-only Event, which the ingest consumer routes tolog_lineowner-bound to the node, ahead of the sample owner-confinement and independent of any task (a logs-only Event lands without atask_id). The node narrates its operational story back to the platform (connected to the bus, worklist pulled, a task skipped) instead of swallowing it, and a skipped task becomes a node self-log, not a false-down component state. The read isGET /nodes/{name}/logs(gatednode:read, scope-injected), with a generated CLI (node log list) and typed client; the console reuses theLogsPanelprimitive as a Self-logs panel on the node blade. That panel’s disclosure is now named for the columns it reveals (attributes,labels, orattributes + labels, each block captioned once open) rather than the overloaded “fields”, which collided with a component’s property fields and said nothing about which of the two a line carries. The dev seed installs the edge node’s example self-logs, and one seeded device log line is classified with a label, the ADR-0066 way an untyped line gets sorted into a class without a registry, which nothing in dev exercised before. The end-to-end producer loop is closed by a real node publishing aworklist pulledself-log that lands on itslog_linelane. Still directional: a device-log source (a syslog listener or a poll) and the derivation engine that turns log lines into events. Part of #410. -
The telemetry wire message is renamed:
EventbecomesTelemetryBatch(#424). The protobuf message a node ships was calledEvent, but an event in this platform is a semantic occurrence (event_type-registered, carrying anorigin, per ADR-0066), while the message is the envelope that carries samples and, since the log lane landed, raw log lines. Naming the envelope after one of its passengers had put four different meanings on the word “event”, three of them in a single function signature. Soproto/og/v1/event.protobecomestelemetry.proto, the message becomesTelemetryBatch(head-noun-last, matching the subject it travels on,og.v1.telemetry.<node>), and the storage write structs align with theLogLineWriteconvention the log lane established:MetricSampleEventandStateSampleEventbecomeMetricSampleWriteandStateSampleWrite(they are insert structs, not events), andEventOccurrencebecomesEventWrite. Wire-safe by construction: protobuf encodes field numbers, never message names, so the bytes are identical before and after and a mixed-vintage node and server still interoperate. No behavior change, no schema change, no API surface touched. -
Push ingest: the API telemetry lane (#423). A second ingest lane beside the node’s, so data can arrive without a driver, a node, or a protocol client.
POST /telemetry:pushtakes telemetry in our own schema (a webhook, by contrast, is the case where we do not control the payload and something must normalize it, which is driver work) and is gated bytelemetry:pushwith the caller’s scope as the fence: the owner is declared in the body and read back through the gateway, so an out-of-scope owner is a non-disclosing 404. That is the inverse of the node lane, where the server must derive the owner because a node cannot be trusted to assert one. The payload is two arrays, split typed versus untyped:samples[], where the registry decides the destination (metric, state, or a caughtevent), andlogs[], which are untyped and ungated. The caller supplies a name, never a table, so reject-not-project stays the only authority over where a value lands. Rejection is synchronous (validated at the route against the in-memory registry snapshot) while acceptance stays asynchronous, because a 202 that reveals nothing is useless to a human who mistyped a name. A push publishes onto the data lane (og.v1.api.telemetry) rather than writing Postgres directly, since the rule engine is designed as a stream consumer and anything skipping the stream would be invisible to every rule, alarm, and derivation. Trust is decided by which subject a batch arrived on: the lane sits outside the single-tokenog.v1.telemetry.*wildcard (a node named for any literal reserved there would otherwise be granted it), only the server’s credential can publish to it, and a node-lane batch that asserts an owner is dropped, not ignored. Both lanes land through one extractedland(), so a new lane cannot drift from the node lane’s semantics. Three proto fields earn their place:owner,source(the node lane fills provenance frominterface_type, which a push has none of), andSample.instance(a first-class dimension the wire could never express, since the node lane smuggles it via the interface name). Both fall back to the interface-derived value, so the node lane is unchanged. Still directional: owner kinds beyondcomponent(#422) and webhook normalization. -
Templates are redefined, not deferred (ADR-0071). 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”, so the log asserted the pinned model was merely deferred, while the shipped schema pointed a component atproduct_idand a system atstandard_idand ADR-0047 and ADR-0048 had retiredcomponent_typeandsystem_typeoutright. A template is now an example configuration an operator clones: forking is one-time, with no inheritance and no back-pointer, so a template is upgrade-safe precisely because nothing stays connected to it. The versioned-shape model retires with the pin (component_template,system_template, their*_versionrows, thestable/betachannels, the frozen BOM, “an instance pins a version”). A component’s shape is itsproduct; a system’s is thestandardit conforms to with live inheritance. Forking applies template to row, conformance applies row to instance, and only the second is live. The word survives with its purpose inverted: the pin existed so a template could not change under an instance, the fork exists so it can change freely.templates.mdis rewritten to the fork model (its frontmatter description carried the retired nouns into search results), the cascade loses two rungs (a template cannot be a resolution tier when nothing points at it), and the glossary’s two shape rows become supersession entries. Two denylist entries land with it, scoped to the snake_case identifiers on purpose: the word template is not retired, so prose like “start from a template” stays correct. StillDesign: the template loader, its catalog, and the create-from-template flow (#317), which now also covers instantiating a whole system. -
The collect layer is authorized: a driver consumes transports, and a transport is code (ADR-0073). ADR-0039 recorded the driver-centric split as “the current-best direction, not a locked gate” and named its own successor: driver-centric versus template-centric had to be re-examined “in a later ADR before the collect layer is built”. That ADR was never written, so every collect slice sat behind the scope gate. This is it, and it confirms rather than reverses:
interface_typeis the transport, decided to be a code registry (one package per transport) rather than an operator-editable table, which retires the table, its FK frominterface.type, and the hand-written dispatch switch ininternal/node/probe.goin a later slice. A driver declares the transports it can run over and is never one of them. Theinterface_typeis a driver clause in ADR-0067 is retracted: a calendar integration is anhttpstransport plus agraph-calendardriver, which is the drift a table invites, since any string fits where a transport belongs. Two denylist entries land with it, matching the claim rather than the two nouns, so ordinary prose naming both a transport and a driver stays correct. Nothing here is built:driverstill carries identity only (name, version, official), and the catalog, the normalized menu, discovery, and the device pack are the collect layer epic. Deliberately left open, each with a home: whether a product may bind more than one driver, whether a product is versioned or stays a live classifier (#491), and where cadence lives. -
The feature-loop framework: work defined once, approved once, shipped as one rollup PR (ADR-0074). The feature loops contract page defines how a body of work executes through an agent loop with exactly two human touchpoints: the architect approves a prose definition at the front and merges one rollup PR at the end, while sub-issue slices cascade through per-slice gates (test-first, the docs lints, an adversarial review) on an integration branch between them. Four skills operationalize it:
/define-work(the nine-section approvable shape),/run-feature-loop(the executor run-book),/add-api-route(the middle-of-slice procedure, built from a code study so every named symbol resolves:gated(...), the scoped-CRUD primitive,writeAuditResin-transaction, the ADR-0062 addressing rule, the gen ripple), and/adversarial-review(refute-not-confirm, a concrete failure scenario per finding, sweeping a twelve-entry anti-pattern catalog seeded from the 2026-07-30 audit’s failure classes). Generate-first is codified as a house rule with its/ship-slicegate, and the harness gains unattended-run plumbing (a permission allowlist and a SessionStart environment check pinned to the gen-drift versions). Built as the AI-driven feature loops epic; the pilot loop (#502) runs one approved drift batch through the whole frame before any feature loop launches. -
The generated-facts rails: schema, seed, and environment claims can no longer drift (#433). Three artifacts now render the fact classes the 2026-07-30 audit found drifting worst, each committed by
make gen, gated bygen-drift.yml, and pinned by its own drift test.schema.json(erdgen’s introspection, extended to nullability, defaults, CHECK constraints, and unique indexes) feeds theSchemaTablecomponent, and eleven architecture pages plus tags now render their storage-table mechanics from it, hand-written narrative kept as notes; the sweep verifies no remaining hand-written row claims a live table’s columns.seed.json(seedgen, no database: the twelve embedded seed YAMLs, with role rows carrying effective permissions through the same rbac path the authorizer uses) feedsSeededSet, and five admin guides render their shipped-set claims from it, retiring the enumerations that undercounted the property catalog.config.json(configgen) renders the new declarative environment registry: every variable the binary reads is declared with its doc and scope,config.Getrefuses an undeclared key, and the container and Helm guides render their env tables from it (the Helm guide previously documented none). Two API guards land with it: every gated operation’s description must name itsx-omniglass-permissionstamp verbatim (one shipped deviation corrected:principal:purge:admin), and api.md’s last hand-written route table is replaced by the generated/reference/api/. Built as the #502 pilot of the feature-loop framework; the run’s lessons landed on feature loops in the same PR. -
Scope and secrets integrity: the schema admits only what the model allows (#431). The unifying idea, a value the code refuses must not be a value the schema, the API, or the console offers, closed across eight slices. The secret directory now injects scope into its query through the new arc-scope primitive (
arcScopeCTEs/arcScopePredicate, the exclusive-arc counterpart of the scoped-CRUD walk; one query regardless of row count), retiring the audit’sunscoped-gateway-listanti-pattern; the secret system band is gone from the CHECK, the enum, the console picker, and the docs (finishing ADR-0052); the sample provenance domains lost their impossibledeclaredarm;scope_kind='group'stopped being advertised by the schema and both grant enums (group-as-scope returns with its slice); the decoyplatform_settingtable and the eight unrouted seed grants are gone, the ship-ahead allowlist now deliberately empty under a reversed policy (a grant lands with its first route); the Helm chart defaults session cookies toSecure; andalarmgained its condition identity (ADR-0075): adedup_keyplus thealarm_open_condition_keypartial unique index make one-open-per-condition a database fact, withRaiseAlarma guarded conditional insert returning the existing incident instead of a duplicate. Run as the second feature loop on the ADR-0074 machinery. -
Console address honesty and the audit diff (#432). The console now addresses everything the way ADR-0062 promised: the uuid is identity, the kebab
nameis what an operator reads, types, and posts. Nine slices: the location_type and secret_type pickers post the handle the write paths resolve (a fresh install could not add a location from the console before); every registry write accepts either form throughregistryRefCol; the six catalog pages (Drivers, Vendors, Products, Capabilities, Standards, Types) lead with a Name column, filter and address rows by the handle, and keep the uuid as a dim blade fact; Products renders vendor/driver handles and its capability picker joins on the names the wire carries, so removal works; a successful create now lands the operator on the new row’s blade across all twelve catalog pages; the 52 blank CLI-reference flag descriptions are filled at their Humadoc:tags and a docslint check keeps the class from recurring; and the audit read finally answers “and to what?”:old/newride the wire and the Audit page’s first detail surface renders a field-level before/after diff (a purediffFieldsprojection), with redaction swept and pinned by an e2e (a secret’s audit body carries metadata only). The prevention half is a fixture guard: console test fixtures must mint uuid-shaped registry ids (uuidFor), and converting 25 files flushed out four more live uuid-vs-name joins (the Systems standard picker, RoleEditor, AlarmsPanel, CapabilitiesPanel), fixed in the same sweep. Theuuid-as-addressanti-pattern is retired in the adversarial catalog. Run as the third feature loop on the ADR-0074 machinery. -
The docs corpus restructures around the design fence (#434). A
:::designcontainer marks unbuilt prose structurally: it renders as a dashed target-design aside, must name the issue or ADR that tracks its gap (an unowned fence fails the build), and is machine-readable (internal/docslint’sRegions). The thirty hand-written “Still Design” summaries across fourteen pages migrated onto fences at the sections they described; the cascade and the two-lane data plane each consolidated to one home (cascade.md, messaging.md); the six entirely-unbuilt pages moved to a Design sketches sidebar group with page-spanning fences; this build log split off status.mdx (which dropped from 2,300 lines to 80); the glossary reconciled term-by-term against the generated schema; and a badge-fence lint now failsmake testwhen any architecture page’s badge disagrees with its fence census, so the badge is derivable, not asserted. -
The drift-prevention gates land: a documented fact must exist (#429). Seven slices close the loop the 2026-07-30 audit opened.
make testnow fails when current-tense prose names a route absent from the OpenAPI document (methods checked, fence-aware, with an illustrative-marker escape), a permission that gates no route (both directions: doc mentions and seeded grants, matched with the real rbac rules minus the read floor, handler-enforced admin tiers registered against their call sites), a make target, env var, or repo path that does not exist (with the generated config registry counting as documentation by construction), or atable.columnthe generated schema facts do not carry (seeded dotted registry keys exempt). The CLI docs guard now validates documented flags against the cobra tree and walks the architecture and contributing trees too. The semantic drift no lint can see gets the periodic/docs-auditskill, encoding the audit’s fan-out, drift definition, and issues-not-files landing rule. -
The prose diet: the corpus cut to its claim-preserving floor (#533). The architecture corpus (excluding the three logs) drops from 92,228 words to 68,473, 25.8 percent, with every cut classified: restatements deleted, rationale collapsed onto the ADR that records it, duplication sent to its one home, one worked example kept per concept, and fenced design tersened to sketch density with each fence’s tracker owning the depth. Two falsified claims the read surfaced were corrected (the spine’s retired pin-model invariant, api-first’s pluggable-engine claim). The 40 percent aim proved unreachable without deleting claims; the acceptance was amended to the measured floor, with the no-claim-lost rule outranking the number. The #429 lint suite guarded every identifier through both passes.
-
The segment rule reaches every segment-bearing table (#552).
ValidateEntityNameguardedcomponent,system, andlocationand nothing else, so seven registries accepted whatever they were handed. The rule now runs onlocation_type,standard,vendor,driver,capability,product, andnode, and its vocabulary moved to the settled word:ValidateSegment,ErrInvalidSegment,ErrSegmentIsUUID, insegment.go. It also moved into the contract, where API-first wants it: the create bodies carrypatternandmaxLength, so the generated spec, client, CLI, and JSONSchema enforce it too. The rule itself did not change and every seeded row already satisfied it.An adversarial review pass caught what the first attempt shipped. Five registries route their errors through one shared
mapTypeErr, which never learned the new sentinels, so an operator typo returned 500 on/vendors,/drivers,/capabilities,/standards, and/location-types; only the node path had been taught.producthad been missed outright, and a uuid-named product is unreachable by its own handle from the moment it is written, becauseregistryRefColroutes a uuid-shaped reference towhere id = $1. Two guards were added rather than two fixes: an API-tier test drives every affected route with nine illegal segments and asserts the operator receives a 422, andTestEveryNamedTableIsClassifiedreads the generated schema so a new named table fails the build until somebody classifies it as a segment or a keyspace key. The API-tier test then found a pre-existing 500 the review had not:ErrSegmentIsUUIDwas mapped only in the advisory:check-nameverb, never in the create mappers, so a pasted uuid 500’d on/components,/systems, and/locationsbefore this slice existed.Two gaps are recorded rather than closed. No registry patch carries a name field, so the renameable handles ADR-0062 describes are unreachable through any update path (#555). And
principal_groupis guarded by a looser pattern (^[a-z0-9][a-z0-9._-]*$) that admits.and_, which the address grammar would read as token separators. -
One identity cell replaces four column idioms (#553, #554). A list rendered an entity’s identity four different ways depending on the page: separate
NameandDisplay namecolumns,KeyandLabelcolumns, oneNamecolumn with an inline muted segment, or the segment alone. Sixteen hand-written column definitions, and the header word for the same fact differed between them.IdentityCellandidentityColumnstate the rule once (label on top, segment beneath, suppressed when equal, no uuid in a list), matching whatTreeListalready rendered. The keyspace pages keepKeyas their header word and deliberately do not derive, sinceicmp.rtt_avgis a legal key and an illegal segment. On the write side,createIdentityhad three consumers out of twenty surfaces despite being built for exactly this; every segment-bearing create form now consumes it. The recon that preceded the work corrected the plan: the rule was going to move intoListShellandDetailShell, butListShellis chrome only,DetailShellcontains no shell (it exportsRelatedListand the filename is a leftover), andPagehas one consumer in the SPA, so the rule had no home to move into and needed a primitive built instead. -
The detail surfaces caught up with the list (#553). Unifying the list column exposed that the word “Name” then meant two things two clicks apart: a list column header rendering the label, and a blade fact rendering the kebab address. Seven blades called the address “Name” while the three estate blades already called it “Technical name”; they now all say “Technical name”. Five registry blade titles rendered the address in the data face, so an operator clicked a row reading “Crestron” and got a panel titled “crestron”; the title now reads the same rule the row does. A source guard (
identity-vocabulary-guard.test.ts) pins it, because the failure mode is a new page reaching for the wrong word and the page nobody wrote a test for is the page that drifts. Create forms still label the address “Name”, which is the pre-existing convention on every page and is settled by thedisplay_nametonamerename, which moves both words at once. -
One word for the machine identifier: Key (#553). The console had settled on
Segment, which named a part where the whole is not visible: on a vendor form there is no path on screen, so the word was precise for us and meaningless at the point of use. It also hardened a migration artifact into vocabulary, sinceKeyandSegmentwere never two concepts but one concept in two states, an entity key already kebab and a keyspace key still snake pending the address grammar.internal/keyhad fixed the right doctrine long before this slice and nobody had noticed: a segment is one dot-separated component of a key. So a key is a value and a segment is a position, which makes “segment” correct in prose about topic structure and wrong on a form. The console now saysKeyeverywhere,identity-vocabulary-guard.test.tsretiresSegmentalongsideDisplay nameandTechnical nameas label text (matching quoted strings and JSX text only, so a donut chart may keep its segments), andValidateSegmentbecameValidateEntityKeyinentity_key.go, which no longer collides with thesegmentregexinternal/keyalready owned.Two key rules remain, deliberately: an entity key is kebab and a keyspace key is snake with an optional dot hierarchy. They are not merged, because each legitimately carries a character the other forbids. The console says
Keyfor both, and the differing character set surfaces as a validation message rather than as a second word. -
Every identity exception is named explicitly (#552). The key classification guard only inspected tables carrying a
namecolumn, so it saw 23 of 51 and was blind to every table identified by something else:humanby a username,blobby a sha256,taskby a content hash. Absence of anameis not evidence of absence of an identifier. It now declares one of four identity shapes for every table (key-bearing, keyspace, a human identifier that is not a key, id-only) and fails on a table with none or with more than one, so a new table is a failing test until somebody classifies it. Proved non-vacuous in both directions: removing a table fails, and declaring one twice fails. -
The identity triad, on every surface (#545). The vocabulary above is reversed, and this entry records why rather than quietly replacing it. The columns have always been
id/name/display_name; what drifted was the console, which had been taught to call the friendly string the Name and the identifier the Key. Prior art settled it: across 35 systems in five families, no system names an entity’s friendly string alabel, anddisplay_nameis the blessed standard field in AIP-148, which this API already follows. So the schema does not move and every other surface agrees with it (ADR-0076).Proving the classification is what exposed how wrong it was.
tag,variable, andsecretwere declared keyspace on the strength of the word “key” in their prose; none of them carries a dot, which is the only thing the keyspace rule adds, so all three are ordinary entity names. Behind the misclassificationtaghad its own private validator, a fourth name rule with its own ceiling and error text, andvariableandsecrethad no name validation at all: a secret could be named a uuid.CreateSecretchecked its crypto provider before the name, so an illegal name reported “no secret key provider configured”. Onlyproperty_type,event_type, andcommand_typeare keyspace.There is now one validator.
storage.ValidateName(table, name)picks between the two rules from the table’s declared identity shape, so a call site cannot pick the wrong rule or forget to pick at all, which is howsystem_rolehad reached production unvalidated. The four superseded validators are deleted, not renamed: leaving them exported would have let the next registry opt out of the primitive while passing review andmake test.principal_group’s looser API-layer pattern folded in with it (ADR-0077).Renaming became an explicit act.
POST /<collection>/{ref}:renameis gated by<resource>:rename, andnameis removed from the four PATCH bodies, because two ways to rename would have made the permission decorative.audit_log.resource_idnow always holds the primary key: it had held a name or the caller’s reference depending on the route, so one entity accumulated two audit keys and a rename orphaned half its history.Three guards carry the invariants, and each reads the tree rather than a hand-written list, because a hand-written list is how the last three escapes happened. One checks every
ValidateNamecall site names a declared table; one checks all 96writeAuditRessites key on a primary key, as a whitelist, because a blacklist waves through the commonest mistake of passing a dual-accept route’sid; and one checks that a console label matches the field it labels, after eleven detail blades were found showing the identifier and the friendly string both under the word “Name” while 812 tests were green. -
The blade field becomes a primitive (#574). The blade shell was a primitive and the blade contents were not, so every blade defect was an N-place defect. The identity work paid that three times in one body of work:
display_namewas labelled “Name” on 11 blades, a long description failed to wrap in 24 fields, and 3 blade headings rendered a raw id. Counting the duplication before designing anything found eleven pages defining a byte-identical localField(all eleven bodies hashing the same), a twelfth idiom in three create-as-route forms, positionalctx.field(...)/ctx.fact(...)helpers on four more, and the read-only box hand-rolled 24 times.Reading the code changed the answer. The label-and-control wrapper already existed as
FieldRow, and it was better than the eleven copies: it associates the label to the control by id with the tooltip trigger outside the<label>, where the copies wrapped the control in a<label>and broke its accessible name. Both positional helpers already delegated, toFieldRowandKVStacked. So the duplication was not two implementations, it was one implementation behind five call forms plus eleven pages that had adopted none of them.BladeFieldis therefore not a new wrapper but the read-or-edit switch composed over the two that existed, and noBladeFactwas added, becauseKVStackedalready was one.A read-only field renders as a fact, not a box that refuses typing (ADR-0078). The question was invisible in code and obvious in a screenshot: the seed-owned vendor blade, which nobody can edit, rendered five bordered input boxes directly below three plain facts. One read-only state, two appearances, and the boxed one signalled an editability that did not exist. Making the read state a fact also fixed half of #573 by construction, because text in a fact wraps.
The identity pairing stopped being a convention and became a type. A field or fact that shows one of the two words names the fact it is bound to (
bind="display_name") and takes its label fromIDENTITY_LABELS;labelis refused alongsidebindon all three components. The guard that had enforced this by scanning source shrank accordingly: gone are the four-alternate regex, the eight-line lookahead window, its terminator, and thedisplay()heuristic, all of which existed only because 74 sites paired a label to a binding by hand. What is left is the one failure a type cannot catch, a page bypassing the components, and it was mutation-tested three ways before being believed, including a multi-line tag the old line-based regex would have missed. -
A blade heading tracks its row (#579). Renaming an entity from its blade updated the row, the list, and the blade body, and left the heading showing the old words until the blade was closed and reopened. The cause was one line of placement repeated eight times:
const r = row()in the component body, where a Solid read subscribes to nothing because the body runs once. The lookup was correct; only the tracking was missing, which is why the #572 guard, which checks that a heading resolves its row at all, passed the whole time.BladeTitleis now the heading, so the placement lives in one component rather than being retyped, and a second guard checks the narrower rule the first one could not see: a*Titlecomponent may not bind its row accessor to a const in its body. Found not by a test but by driving edit, Save, and read through a blade while verifying the #574 rollup: both modes screenshotted clean and 834 tests were green, because nothing asserted a heading after a write. -
A blade heading is the words the row showed (#581). The third heading bug in the same family, and the one that made the rule structural. Types resolved its row correctly and tracked it correctly, and then read the wrong field off it: the name where its list showed the display name, so clicking “Machine hall” opened a blade headed
server-room. The two existing guards both passed, because neither is about which field a correctly resolved row is read for.No regex catches “wrong field”, so the third check is membership: a blade title renders through
BladeTitleor is named in the guard with a reason. Writing that list found two more hand-rolled headings a manual sweep had missed (the node blade and the effective-property blade), which is the argument for the check in one line. The named exceptions are the four entities that carry no display name at all, where the name IS the operator-facing string: a secret, a variable, a tag, an interface. Verifying that claim corrected it:display_nameonSecretTypehad been read asdisplay_nameonSecret, and a secret has none. -
Five telemetry lanes, and property stops being the genus (#584, ADR-0079, ADR-0080). Seven slices on one integration branch, and at the end of them an operator meets five lanes with five names and no overlap: a metric is a quantity, a property is a value, an event is a typed happening, a command is an instruction with a target, and a log line is raw arrival. Nothing here was greenfield; all five lanes had tables going in, so the epic was a catalog split, a fold, a rename, and a narrowing, the shape that hides defects in a large mechanical diff.
In slice order: one name rule, no dots (#586) collapsed the two name rules into one single kebab token capped at 100 characters, renaming fifteen dotted keys across 83 files with a backfill that refuses on collision rather than picking a winner. The catalog split (#587) partitioned
property_typeondata_type, the lane key: numeric rows becamemetric_typewith the numeric facts (unit, precision), rows kept their ids so every FK repointed as a pure constraint swap, and thekindcolumn retired along with thelogvalue its enum still advertised. The fold (#591) retired the value store: a declared value is a series row, an edit appends, an unset appends a JSON-null tombstone, and every current value is the latest series row, derived on read;PruneSamplesshipped in the same slice as the caller-less retention floor (never declared, never the latest row per series, ADR-0080). The rename (#588) gave the text sample table the bare nounpropertyonce the store had vacated it, and converged the two value columns into onevalue jsonb NOT NULL; the word “state” left the schema (a health state is a concept, not a table). The log split (#589) narrowedlog_lineto component-only with node self-logs moving tonode_log. The command lifecycle (#590) added the recorded status (issued/settled/failed/timed-out) beside the still-computed verdict, the two-armed target across both catalogs, and moved intended lineage onto the command itself (command_id). The per-lane wire (#594) closed the loop:TelemetryBatchcarriesmetrics/properties/events/logsarrays, each validated against its own catalog, the polymorphic samples array reserved and gone, with the stored property encoding byte-identical across the break so transition detection stayed honest.Two mid-loop stops earned their keep. The wrong-schema stop: the epic definition had been drafted against the pre-July init-dump names (
propertythe catalog,property_valuethe store), and verifying it against the running database before building found three claims pointing at tables that no longer existed under those names; the corrected map carried two rulings, thedata_typepartition key and derived-not-stored current values, and the same init-dump trap later caught two adversarial reviewers whose reds were refuted by reading the migrated schema instead of the dump. The node_log ruling: slice D as written would have orphaned the shipped self-log lane; the builder hit the stop condition, wrote nothing, and reported with evidence, and the architect amended the definition mid-loop to split the store by origin, after which the rebuild came back RED-first against the unmodified schema. The docs half landed the model on the architecture pages, appended ADR-0079 and ADR-0080, and put the retired vocabulary (stateas a sample table,property_value,StateSampleWriteand siblings) on the docslint denylist. -
The catalog surfaces finish (#601). The arc-closing epic behind the five-lane split: every catalog page names one thing and works for the principals who may see it, every capability the lanes landed storage-deep gained its authoring surface, every schema the catalogs accept means what it says, and the wire rulings left in an issue body became decision log entries. Six slices, one rollup PR.
In slice order: the Types split (#598) broke the one page holding two registries into Location Types and Secret Types, fixing the live viewer break (the shared data layer threw when the
secret:read-gated fetch refused, taking the location tab down with it) and renaming thetypepermission resource tolocation_typeon every surface (ADR-0082). The metric contract surface (#600) mirrored the property contract for the metric lane: twelve storage functions with in-transaction audit rows, three route families with the official-classifier refusal, theContractEditormetric lane, the effective-metric resolution reading the metric series, and the missingmetric_type_idindexes. The command target on either arm (#596) closed the whole projection, not just authoring: the read body, CLI, and console had been dropping the metric arm on the floor, and the seed loader had been silently ignoring or NULLing targets; both now refuse or carry, the exclusive-arc refusal surfaces as a named 422, and the console authors either arm by name through one picker. Schemas mean what they say (#595) landed the bare-requiredchecker at nine storage sites (the mapped six plus three boot upserts the recount found) and madeparams_schemaenforced at issue time; chasing the review’s finding exposed the deeper defect, a stored object-valuedadditionalPropertiesarriving as a plain map the validator silently skips, fixed by normalizing it into a real sub-schema at parse so enforcement is real. The guides (#599) shipped Events and Commands admin pages with every claim required true on the branch (four softened where the code lacks the feature), and swept the dotted-name copy class wider than its map: console hints, doc tags, web comments, and the architecture corpus still teaching the retired two-rule design, with a docslint denylist entry so the class cannot return. The wire contract (#602) recorded ADR-0081: theog.v1.<verb>.<node>grammar, theapi.telemetryown-segment ruling with its rejected reserved-name alternative, per-record subjects rejected, and the worklist/heartbeat singleton consequence with its HA fork deferred (telemetry does not face it; its durable JetStream consumer already joins), with messaging.md gaining the grammar section as page-of-record. -
The catalog finds its sections (#607). Fourteen flat Catalog entries hid five real clusters; now the rail reads as a taxonomy under one naming rule (ADR-0083): a section is named for the estate noun it serves, an entry keeps the registry’s own word, and where the registry’s only word is “type” the entry is Types with the section completing the sentence. The sectioned rail (#608) renders non-folding headers from the permission-filtered entry list (a fully gated section disappears with its entries), tags sectioned palette entries
Catalog · <section>, spells the full address in the top bar, adds the Logs and Notifications soon stubs, and walks Templates off the rail while a nav-path binding test pins that every unlive entry resolves to a registered stub. The overview hub (#609) opens/catalogfrom a visible entry: one card per section derived from the same navItems the sidebar renders and filtered through the same permission logic, live registry counts through the list pages’ shared query keys, each registry its own query so one failure marks its own row. Its review retired a vacuous leak-pin (a synchronous not-called fetch spy that the client’s async middleware made unfailable) for a query-cache assertion, and the vacuous-async-spy class joined the anti-pattern catalog. The map (#610) recorded ADR-0083 with the rejected shapes (flat rail, hover flyouts, uniform Types suffix) and the #606 fence around the rules/alarms vocabulary. Organizing line, taught on the UI page: Telemetry is what gets recorded, Action is what the platform does. -
The catalog shell (#619). The sectioned rail lived three days: four design rounds against the live console replaced it with a shell, and the catalog IA locked as direction, not genus (ADR-0084). Catalog is one rail entry opening a two-column area: a grouped subrail (Telemetry, Actions, Components, Systems, Locations, Metadata) whose entries navigate to the real per-registry pages rendered in the pane at their canonical flat URLs, and an Overview landing of teaching cards; both derive from one group table judged through the same permission filter the rail uses. The shell landed (#620) with every soon slot naming its tracking issue (#615, #616, #617 templates; #618 notifications; #624 rules), the guides on one path phrasing, and a source-level pin keeping the thirteen catalog routes inside the shell block beside a gate-mirror test tying every entry’s gate to the route guard. The blade model closed over every field (#621, the approval caveat): the audit of all twelve registry blades found the violations concentrated in ContractEditor and RoleEditor, which rendered declare, edit, and withdraw controls in read mode; both now consume the hosting blade’s edit slot, and leaving edit mode discards open drafts, so nothing typed before Cancel resurrects on the next pencil press. The decision landed (#622): ADR-0084 with the five-signal-lanes noun (four inbound, one outbound; a command is an instruction, not a reading), the glossary lane row rewritten, the phrase on the docslint denylist, and ADR-0083 superseded. Along the way the shell exposed a latent primitive bug (BladeStack’s fixed positioning captured by the page shell’s filled fade-in transform: blades now portal to body) and a screenshot-gate gap (#623: the freshness tolerance passed a dead rail at 0.13 percent).
-
The palette finds a registry again (#628). Collapsing the catalog rail took the registries out of the ⌘K palette with it: its command list was flattened from the nav items alone, so once Products, Metrics, and Tags moved off the rail, typing their names returned no matches and the only catalog destination left was the word Catalog. The palette now builds its list from both surfaces’ own tables, the nav items through the same
filterNavthat hides a sidebar button and the catalog groups through the samevisibleGroupsthe subrail and the Overview cards render from, so a registry is findable by name without a second membership list to drift, taggedCatalog · <group>and searchable by its group (telemetrylists Metrics, Properties, and Events). Gating came with it: the list was previously built at module scope from the unfiltered nav, offering an Audit jump the route guard would only bounce, and it is now judged per caller like every other surface. The pathless soon slots (the Templates reservations) are no destination and stay out; secret types keeps its standing ruling of no nav slot. -
Every component is an instance of a product (#614). The
component_typeregistry returns as a tree, above the product rather than beside the component: a seeded-plus-custom device-class genus (display,mic,dsp, …) nesting byparent_id, carrying the identity facts a generated name and a console glyph need (naming stem, icon, abbrev, default tags), each inheriting down the tree with override at any node (ADR-0085, a partial reversal of ADR-0047).product.component_type_idandcomponent.product_idboth landNOT NULL, closed in three ordered migrations (a nullable schema step, the boot seed plus a one-time backfill pointing every existing row at a matching generic, then theNOT NULLfloor), so no component ever exists unclassified; three generic products (generic-device,generic-app,generic-service) cover anything not yet modeled more specifically.product.kindnarrows todevice | app | service, loses its silent default (required at create instead), and retiresvm, folded intoapp(ADR-0086). The console: the Products form gains a required Type picker over the seeded tree and an optional per-SKU icon override (unset resolves the type’s own, walking its ancestor chain), the Components create form makes Product required with the three generics offered alongside every real SKU, and a new Types admin page (Catalog > Components) lists the registry in tree order with a minimal create and edit surface (a custom type’s tree placement is fixed at create; there is no reparent leg yet). Reconciling the ADR-0047 denylist entry that bannedcomponent_typein docs prose (now current vocabulary again, in its reintroduced shape) closed outinternal/docslint’s one carried red. -
A role is a typed slot (#626,
c006c62). The role assignment guard swaps its capability comparison for a typed-slot one: a component fills a role only when its product’scomponent_typefalls within the subtree of a type the role accepts (any type, if none are declared), and, if the role pins specific products, only when its product is one of them. Two new join tables,system_role_typeandsystem_role_product, carry the accepted set and the pin; the refusal names both parties in operator vocabulary rather than a bare capability gap. The capability registry itself and the health rollup’s alarm-impact reading are untouched here, staged for retirement in the next slice. -
Capability-gated staffing retires (#626,
ca78bd3,dbfa284). Thealarm -> alarm_capability -> degradedCapabilities -> rolechain is gone, replaced end to end: an active alarm impairs its component’s own verdict wholesale, and a role counts an occupant as satisfying it only from that verdict, not from a per-named capability. Five tables drop (capability,alarm_capability,component_capability,product_capability,system_role_capability) along with everything wired to them: the/capabilitiesAPI and its console pages,EffectiveCapabilities, the component-capability routes, and the seeded capability registry. The typed-slot guard from the prior slice becomes the only assignment check; it plays no further part in health. A same-slice review round foundOccupies()had landed asVerdict == Healthy, a stricter threshold than intended that let even an info alarm remove a component from every role it filled;dbfa284loosened it to the spec,Verdict != Outage(a merely degraded occupant still occupies, since severity is how loudly to page somebody, not a second staffing threshold), and raised every test and doc example that had used a warning-severity alarm as its “take this occupant down” trigger to critical, the true down case. Recorded as ADR-0087, which supersedes ADR-0049 and amends ADR-0050, filed against this slice rather than at the time, a gap this entry closes. -
A role says how many it will take (#626,
4925a7d). Roles gaincapacity(an optional upper bound above quorum) andposition_labels(per-slot names); both are wholesale-declaration columns, but onlycapacitypreserves on an edit that omits it: the storage upsert readscoalesce(excluded.capacity, system_role.capacity), so a nil*int(the API caller left the field out) keeps whatever cap is already declared, a server-side guarantee rather than a rule every caller has to remember to uphold.position_labelscarries no such coalesce, replacing wholesale likequorum,accepted_types, andimpact(its own doc string: omit or empty clears labelling), the same defectimpactalready carried before this task’s console fix (see below). A component may fill at most one role per system: the migration raises and names the offending pairs before adding the enforcing index rather than aborting mid-upgrade on an unnamed constraint violation, andAssignRolepre-checks inside its transaction so the refusal names both the component and the role it already holds (409: it depends on what else is currently assigned). Lowering a standard-owned role’s capacity below what any one conforming system has assigned is refused the same way, since each conforming system stages independently.mapRoleWriteErrnow discriminates by constraint name instead of collapsing every23505into “a role with this name is already declared here”: a double-staffing race, a capacity-below-quorum CHECK, and a genuine name collision now report distinctly, and the refusal status follows whether the problem depends on other rows (409) or the declaration alone (422), recorded in ADR-0087. -
A position is a slot you can address (#626,
dfda3ab,4c6012e). An assignment carries a 1-based position within its role, ordered by creation and never renumbered on its own: unassigning leaves a gap, and the next assignment refills the lowest free slot rather than growing past capacity. Both resolved reads (EffectiveRolesand the health rollup) report a role’s occupants in position order via a correlated subquery rather than aGROUP BYplusDISTINCT, since the roles query already joins types and products and a naive distinct ordering would have hidden that cartesian product instead of just losing order. Position uniqueness is a deferrable constraint, not a unique index, added after a one-time backfill: a plain index is checked per updated tuple, which would raise the moment a single-statement swap lands the first row on the other’s slot.SwapPositionsdefers it for the rest of its transaction before exchanging two occupants in one UPDATE (POST /systems/{name}/roles/{role}:swapPositions); it andAssignRoleboth take an advisory lock on the(system, role)pair, so two concurrent assigns cannot compute the same next-free position. The health rollup gainsshortandspare, the occupancy-aware counterparts of the roles read’s health-blindunderstaffed(a role can read fully staffed there and still short here, if what it has is down). A same-slice follow-up (4c6012e) found capacity enforcement had been emergent from the position collision, mislabeling the refusal once positions were contiguous and silently overfilling past the declared cap once a gap existed below it; added an explicit pre-check (CapacityFullShortfall, 409) beside the existing double-staffing one, skipped when the component already holds the role so a full role’s existing occupants stay idempotent, and renamed the swap body fields from{a, b}to{position, with}(the former generated unusable CLI flags). -
A standard states alternates (#626,
1f1de87,9817058,29810a5). A role can join an exclusive-or group instead of contributing to its system unconditionally:role_choiceis the group,choice_alternateone way to satisfy it,system_role.alternate_idhow a role joins one. The pure fold (internal/health.Alternate/Choice/SystemVerdictWith) picks each choice’s best-satisfied alternate by declaration position and folds only its roles, so an all-in-one room’s satisfied video bar no longer takes the system down over its component-built alternate’s five unbuilt roles.alternate_idisON DELETE RESTRICT, neverSET NULL: deleting an alternate would otherwise silently promote every attached role from conditional to mandatory, the same trade already made when a plainON DELETE SET NULLwas rejected at schema level;DeleteChoice/DeleteAlternaterefuse instead, naming the roles still attached. A composite ownership FK closes the cross-arc hole where a role could join a foreign owner’s alternate, and a same-slice repair closessystem_role’s own missing owner-arc CHECK (an unknown standard or system name used to resolve to NULL and succeed silently, creating an ownerless role a second typo would then update;role_choicewould have inherited the same hole). Two review rounds followed.9817058foundSetSystemRolewholesale-replacingalternate_idon every write with no route ever populating it, so any PUT through the existing role routes, including the console’s own save, silently detached a role from its alternate; the health report also carried the choice-aware verdict beside an ungrouped role list, so a satisfied choice’s unbuilt alternate read as ordinary impaired roles with nothing marking them as not why, closed bychoice,alternateandactiveonHealthRole.29810a5found the boot-seed reconciliation incomplete: it converged declared alternates onto their positions but never touched a stored row whose name had dropped out of the declared set, so a rename or a drop against an already-seeded database still collided onchoice_alternate_position_keyand aborted server boot. The seed now reconciles the stored alternate set to the declared one every boot, existing rows included, deleting any alternate no longer declared unless a role still points at it, in which case the whole call refuses withChoiceInUseShortfallrather than let the FK’s RESTRICT surface as a bare constraint violation or silently detach a role: refusing to boot beats silently detaching a role, the same trade theON DELETE RESTRICTcall above already made. This is a narrow carve-out from the boot-seed doctrine’s usual insert-if-absent rule, safe here only becausechoice_alternatehas no operator write path and its positions are a packed sequence where an orphan actively collides; recorded in ADR-0087. -
A role’s impact already reached the verdict (#626). The epic’s claim that
system_role.impactwas declared but never consumed, so a short role contributed outage regardless, was false against this branch, and this slice ships no code to fix it.Role.Contributes()(internal/health/verdict.go) has exactly two branches, healthy when satisfied andImpactVerdict(r.Impact)when impaired, andSystemVerdictfolds it worst-wins into both the recorded outcome and the served one; the chain landed in5a050e5(#323), well before this epic was written. Task 5’s rebuild changed only what makes a component occupy a slot, across two commits:feat: capability-gated staffing retires(ca78bd3) first readOccupies()asVerdict == Healthy, a stricter threshold that let even an info alarm remove a component from every role it filled, then its own review-round fix,fix: a degraded occupant still satisfies its role(dbfa284), loosened it to the intendedVerdict != Outage. Neither commit touchedImpactVerdict,Contributes, or the fold. The one real gap in this area was vocabulary, not behavior:understaffed(the roles read,Quorum - len(AssignedTo)) is health-blind assignment arithmetic, whileshortandsatisfying(the health read) are occupancy-aware, so a role whose sole assignee carries a critical alarm can reportunderstaffed: 0andshort: 1, impaired: trueat the same instant, both correct under their own definition. Both doc strings (internal/api/roles.go,internal/api/health.go) and the glossary now say so explicitly, andTestShortAndUnderstaffedDivergeOnCriticalAlarm(internal/storage/health_test.go) pins that a critical alarm makes the two figures diverge while a warning does not, sinceOccupies()isVerdict != Outage. Nofix:commit: nothing in the chain needed to change. -
The console reads a system two ways (#626, the epic’s last task). A predating bug shipped first as its own commit:
RoleEditor’sbuildSpecsent only quorum, display name, and the typed-slot sets, so the PUT’s wholesale replace silently reset a role’simpacttodegradedon any unrelated edit (the server defaults an omitted impact), invisible in the console with no warning; capacity andposition_labelshad the same gap. Every system now carries a colour of its own, a hue hashed from its uuid (system_color.ts, FNV-1a over the WHOLE string, since a uuidv7’s leading 48 bits are a shared millisecond timestamp within one devseed run and hashing only a prefix would land every seeded system at nearly the same hue), stepping past the five bands the theme’s semantic tokens already claim, rendered through a.og-system-dotswatch reusing.tag-pill’s per-theme lightness and chroma. The by-role lens (RolesPanel) reads the health body alongside the roles read for occupancy-aware short/spare arithmetic in place of the health-blind understaffed/assigned figures, marks a down occupant in place, and fixes the assign picker offering a component already staffing a different role in the same system, which the server refuses with a 409 (a component fills at most one role per system) nobody could have anticipated; it now renders disabled, naming the role it already holds. The by-role occupants drag into a new order, wired through the same draggable/onDragStart/onDragOver/onDrop shapeColumnMenualready uses (no dnd dependency added), decomposed into the server’s only reorder primitive (a pairwise position swap) by a new pureswapPath. The by-device lens (MembersPanel) names the role, if any, each member fills, pivoted client-side from the same roles fetch (roleByComponent; no reverse route exists). A standing bug closed alongside:HealthPanelrendered a role impaired without consulting itsactiveflag, so a role belonging to a choice’s losing alternate (#626) showed as an ordinary impairment beside a healthy status banner, flatly contradicting it on the seeded huddle-room shape; both derivations now read through a newactiveRoles, with the excluded roles named under their own heading rather than dropped. Records ADR-0087, which supersedes ADR-0049 and amends ADR-0050, and backfills five build-log entries the epic had carried without one. -
The console reads a system two ways, review round. A review pass on the slice above found twelve confirmed defects, all fixed.
EffectiveRoleBodygainspositions: index-for-index withassigned_to, each entry’s own 1-based position, since drag-to-reorder cannot address a specific occupant’s slot by assuming indexisits at positioni + 1once an unassign has left a gap (#626, never compacted);swapPath(the drag decomposition) reads real positions instead. The system-colour hue bands were HSL degrees guarding an OKLCH-rendered dot, leaving three of five semantic tokens open (about 28% of systems wore a status-coloured dot); recomputed in OKLCH, with the fixed-step escape (which clustered on--color-primary) replaced by a golden-angle step. Two committed D2 diagrams were stale against schema this epic’s own earlier tasks changed (data-model-0.svgstill drew the five dropped capability tables and omitted every table this epic added) or hand-patched without their generated geometry (index-1.svg’s corrected label text shipped without the mask and position a d2 SVG computes from it, so the edge line struck through the relabelled word); both regenerated.RolesPanelreintroduced the exact active-flag contradiction the slice above had just fixed onHealthPanelone panel over, and went one step further, discarding cache invalidation on a failed write (leaving a partial multi-swap reorder undetectable) and never invalidating the health read at all on any write (freezing its own short/spare/impact badges, now its primary readout, at their pre-write values).api.md’s roles section, silent oncapacity,position_labels,positions, and:swapPositions, and still calling every assignment refusal “a 422” when a component double-staffing another role or a role at capacity are both 409, is corrected to state the same 409-versus-422 rule ADR-0087 does.storage.md’s three-buckets section is where ADR-0087’s boot-seed carve-out belongs and had never landed; added there (and mirrored inCLAUDE.mdand thestorage-schema-changeskill) rather than existing only in the ADR and this file. -
Every gateway read that could resolve a name twice now resolves it once and binds the uuid (#627 Task 10, ahead of the placement-scoped uniqueness DDL below). A first pass (
840066a) converted roughly 40 inline scalar name subqueries gateway-wide to resolve a reference once viascopedByNameand bind the resulting uuid. A controller trace rejected that pass’s own deferral of the collection ingest write path:current_values.go,settlement.go, andproperty_samples.gostill resolved a component, system, or location by an inline name subquery on the hot path, which the moment two rows shared a name would raise SQLSTATE 21000 or silently fail a CHECK constraint; the same fix round also foundEffectivePropertiesandEffectiveMetricsresolving their owner inside a CTE rather than a scalar subquery, which never raises 21000 at all, it silently joins rows from every same-named owner into one answer, and aCreateSystem/UpdateSystemrecompute passing a system’s own freshly-written name, with its id already in hand, into the health rollup (d64b314). A 30-agent adversarial sweep then found six more of the same class the first two passes had missed: the node ingest lane discarding a task’s own component uuid for a re-derived name at four downstream sinks (cab918e), the push telemetry route authorizing by id then publishingcomp.Name(dd92017), five role-choice writes binding a raw name into a scalar subquery (47864bc), a standard-owned role recompute re-deriving conforming systems’ ids from names and raising an unmappedErrAmbiguousNamethat rolled back the whole write rather than failing usefully (4707bcb), the command and reconciliation routes re-deriving an id from a name the gateway had just resolved moments earlier (63b715e), and effective tags’ own?system=filter repeating the CTE silent-union shape in itsseed_sysclause (7802b32). A later, independent hunt, told to ignore all prior analysis, wrote a scanner over every SQL string literal in the tree and verified closure rather than finding anything new: only four production sites still resolve by bare-name scalar subquery, all four verified safe (the three*NameTakenadvisories, androleOwnerExpr’s standard branch, whose caller pre-resolves the id). No caller-observable behaviour changed throughout: every existing fixture used globally-distinct names, so the whole suite stayed green, and the new duplicate-name tests (b84a398,d889bbc,839d4d1) are the only regression net this class of bug now has. Filed #641: effective tags’?system=filter still resolves outside the caller’s own read scope, narrowed by the uuid bind but not closed, deliberately left for a later slice since this task’s own contract was to change no observable behaviour. -
A location, system, or component name is unique within its placement, not the whole estate (#627 Task 11,
f132a80,87207b7, ADR-0089). Each of the three tables trades its globalUNIQUE (name)constraint for a set of partial unique indexes, one per placement bucket, plus a plain btree for the ambiguity scan a bare-name resolve now has to run.componentandsystemeach carry three buckets (parented, located-but-unparented, orphan/root);location, which carries nolocation_idcolumn of its own, carries two (parented, root). A bare name matching more than one row in the caller’s scope is a409naming the candidates. A review round (fix round 1:f55daa2,829dc6e,9e3c017,0e4aea0,c097dd6, the last also rekeying the console’s tree builders (Components, Systems, Locations, the placement pickers) off the now-ambiguous name onto uuid) closed its own findings but introduced two new criticals in doing so: a cross-tier scope check that denied every non-all-scoped caller on a write carrying a location or system binding, and a scopedcomponent:readcaller’s effective-tags system band silently vanishing, neither caught by a fresh full test run because no existing test covered a scoped non-all principal on a write path carrying a cross-tier binding. The next round fixed both by a byte-identical revert to the pre-task baseline rather than a new authorization posture, with two tests genuinely red against the introducing round closing the coverage hole that had let them ship (ba8a9e6). The same round converged three near-identical scope-resolution functions (scopedByName/scopedByNameInScope/resolveScopedRef) into one,resolveRef, with a policy axis for the read-versus-write disclosure split, on the ruling that the converged primitive, checking its caller-supplied scope against the resource it was actually resolved for, would have caught both criticals at the first scoped test rather than after (1cf8d74,9de2fe7). A forward-insurance tier guard landed on the same primitive, documented as unable to fire on any input the current code produces (48db30f). Six known edges this convergence ships with, stated rather than hidden, are recorded in ADR-0089. -
A dotted address resolves to a uuid, beside the existing uuid-or-name dual accept (#627 Task 12,
72147c1,87e170d,3773fe1,e09e7b0).boi.17c.415a.$comp.display-1parses to a location-tree walk plus a plane switch ($comp/$sys,$rolereserved but unresolved) plus a plane-local descent, every segment validated against the entity name rule before it reaches a query; a percent-encoded slash arrives at the handler already decoded, closing the smuggling path a preflight probe had found. A registry whose names are a single global token (node,tag, the lane types) refuses a dotted ref up front rather than 404ing silently (ec12bf2). A review pass found the resolved address’s not-found case reaching a create’s body-reference field as the wrong status (a404naming the entity beingPATCHed rather than the missing reference); fixed by folding it to the entity’s own sentinel one hop upstream of the generic path-param mapper, closing the same defect shape at every other body-reference site for free (a71a549). The route census was hand-derived twice and wrong both times before the third count (82 operations, 57 tree-addressable, 25 single-token) was verified against the registration functions rather than a literal-string grep: the tag-binding routes are built by string concatenation, invisible to grep, the second time on this branch a route-builder helper defeated a coverage sweep the same way. ADR-0089 records the address grammar and its known edges; this slice is what makes it real. -
A placement change is its own gated act,
:move, not aPATCHfield (#627 Task 13,b4449f3, ADR-0088).parentandlocationleave the component, system, and locationPATCHbodies entirely, a wire-breaking change the rolled-up PR title carries aBREAKING CHANGE:footer for.:movewrites its own audit verb rather than the genericupdate, recomputes a platform-owned generated name at both ends of a component or system move, and closes a real gap the split surfaced: the oldPATCH’s reparent branch only guarded a non-empty parent, so an explicit empty string clearedparent_idto root with no scope check at all, letting a scope-limited principal walk a row out of every subtree their grant ever covered;MoveComponent/MoveSystemnow require the same all-scoped grant creating a root already needed.MoveLocationdeliberately gains no matching clear-to-root capability, since none existed before this split either. A review pass found the console stillPATCHingparentthrough the now-additionalProperties:falsebody,422ing an entire location save over an unrelated field; fixed with tests that assert HTTP method and path and throw on any unexpected request, the shape that would have caught the original bug where three tests mockingfetchat the body level had not (1382567). Filed #642: a location move leaves both the old and new ancestor chains’ recorded health verdicts stale, a pre-existing gap this split carries forward rather than introduces or closes. -
A component’s name can generate itself from its type (#627 Task 14,
3a571f1, ADR-0090). Left blank on create, the platform mints<stem>-<n>from the resolvedcomponent_typechain and the next free ordinal among siblings sharing that stem in the placement scope, serialized by a transaction-scoped advisory lock keyed on stem plus scope rather than a23505retry.name_generatedtracks who holds the pen: true on a generated create, false forever once:renametouches it, true again only through the new:resetName(gated by the samecomponent:renametoken:renameuses). A:moveor a product reclassify recomputes a still-platform-owned name in the same transaction as the write that changed its inputs; an operator-typed name is never touched by either. A review pass found the generator trusted an unvalidatedcomponent_type.stem(an operator could mint a dotted or spaced stem that would either split under the address grammar above or violate the entity name rule outright), fixed by validating a stem atcomponent_typewrite time with the same rule as a name (77febe5); a second pass found the malformed-stem fix had left the absent case open, an empty resolved stem minting the entity name-1, fixed by refusing an empty stem in the generator itself, requiring a stem on a rootcomponent_type(which has no ancestor to inherit one from), and validating the generated name as an enforced postcondition rather than an asserted comment (49b84f6). -
A component, system, or location’s resolved path, its renders, and the console’s own addressing all move to uuid (#627 Task 15,
c381060,cc8918b,280f95f,cb164ad). AGET/LISTresponse now carriespath,path_segments, and two display-onlyrenders(dash, the accessor stripped;bare, the final segment further compacted to the component’scomponent_type.abbrev), computed by walking the entity’s own placement, never a system it happens to belong to; aLISTskips the extra queries the bare render’s abbrev needs, since no console surface reads it there. The console’s URL, every panel, and every write on a component, system, and location detail page now address byid, ending the bare-name addressing this epic exists to retire, with a disambiguation chooser offered when a search matches more than one same-named row. A review pass found the chooser pointed at a dead end: every panel on the detail page it opened still addressed by name, so the exact case the epic legalizes, two same-named components in different rooms, landed an operator on a page where every write409d (bfdd7c8); traced and fixed panel by panel to the wire. A second review pass found three more swapped-value consumers the edit sites had not been traced past (a raw uuid painted in a field labelled “Component”, a reachability-panel cache key still built from the old name, a systems-list health badge still keyed on name against panels now invalidating by uuid), the fourth time on this branch that enumerating consumers from the edit site rather than the value’s type and usage missed a real one (2330954,01e4693). Fixing the assign and add pickers to submit a uuid, above, closed staffing but left an asymmetry open on the way out: unassigning a role or removing a member still addressed the component by name throughUnassignRole/resolveMembershipEnds, both resolving estate-wide viascopedByName, so an operator could staff a role or add a member with a duplicate-named component and then not undo it. A newloadByRefWithinprimitive resolves within the relation actually being edited (this role’s occupants, this system’s members) instead of the whole estate, closing the gap with no wire change (5a97266, closing #645).render_test.go’s ten cases were found to exercise a test-local reimplementation of the segment shape rather thanPathOfitself, the fourth occurrence on this branch of a test built on a reimplementation of the thing it is meant to catch; rewritten to assert against real fixture rows (79c2ccb). -
A list resolves every row’s path in a constant number of queries (#643). The path attach the entry above shipped ran
PathOfonce per row, two or three queries each, so an unpaginatedGET /components,/systemsor/locationscost tens of thousands of sequential round trips at estate scale and re-paid them on every write through the console’s query invalidation. A newPathsOfwalks a whole page at once: the same recursive CTEs, the sameCYCLEguard, seeded with every id and carrying the seed through the recursion asorigin, so a page costs three queries for the two accessor planes (the rows’ own chains, their plane roots, and the distinct plane-root locations) and one for locations, whatever the page size.PathOfstays, as the single-row entry point and as the oracle the new equivalence test holds the batch walker to row for row. ThescopedConfighook became a batch one (attachPaths), taking a slice rather than a row, soGETandLISTrender through the identical code instead of drifting apart down two paths; the bare render’s abbrev lookup, stillLIST-skipped, now resolves once per distinct product rather than once per row. No wire change:path,path_segmentsand both renders are byte-identical to what the per-row walk produced. -
The test harness migrates once per binary, not once per test (#649).
storagetest.NewDSNcreated a database per test and then replayed the entire migration chain into it, so a run ofinternal/storageapplied roughly 6,600 migrations and spent most of its wall clock in setup: the per-test distribution was not a spread of test costs but a spike sitting on a fixed provisioning floor. The chain now runs once per test binary into a template database, and each test is provisioned withCREATE DATABASE ... TEMPLATE, a file-level copy.schema_migrationsis copied with everything else, so a provisioned database stays indistinguishable from a migrated one, including to dbmate, and the rollback tests that drive dbmate against a harness database are unaffected. Isolation is unchanged and now has a test of its own: a row written in one database is absent from the next one provisioned, which also proves nothing leaks into the template. Postgres refuses to copy a template that has live connections, andinternal/migratebuilds adbmate.DBit never explicitly closes, so the template is sealed rather than assumed clean: stray backends are terminated andallow_connectionsis set false, making the copy deterministic instead of timing-dependent (a retry on the in-use error would have converted a deterministic bug into an intermittent one). Review caught the one regression the speedup smuggled in: per-binary work behind async.Oncecaches its error permanently, so a single transient container hiccup failed every remaining test in the binary where the per-test replay it replaced would have cost exactly one test. Success is cached and failure is not, so the next test retries.internal/storagefell from 152s to 65s (b661c4b,2a02307). -
The bare render compacts only a name its own type minted (#654).
RenderBarereplaced any final segment ending in a digit run with the component type’sabbrev, without checking the segment was one that type generated. So a component an operator renamed torack-3rendered asdsp3, putting a word on a cable label that appears nowhere in the entity’s name, and any hand-chosen name ending in digits reproduced it (booth-2,row-14). The code had drifted from its own documented design: both core entities and the wire description already said the substitution swaps the abbrev in for the segment’s stem. The stem was in hand the whole time, sinceresolveTypeFactsreturns it beside the abbrev and the path attach discarded it; both now resolve and memoize together per distinct product, and the substitution fires only on an exact<stem>-<ordinal>. The regex that scraped a trailing ordinal out of a whole segment is gone, which is the first piece of the ordinal-as-a-stored-fact work (#657) landing early. -
Two console papercuts from the identity work close (#644, #646). The name-availability precheck on the component and location edit forms passed the row’s parent and location as NAMES, which stopped being unique estate-wide when names scoped to placement. With a duplicate-named parent selected the request could not say which one was meant, and the
catchswallowed the error into operator silence: no “taken”, no “free”, no explanation. Both rows already carry the uuid and:checkNamedual-accepts one (ADR-0062), so the precheck now addresses placement the way every other path on those pages already did. Separately, an operator bounced off a filtered deep link by a session expiry lost their filter:AuthGuardcapturedpathname + searchbutLoginresolved only the pathname, so/components?system=<uuid>came back as the unscoped list. The capture and the resolve were inverse operations living in two files that disagreed, so they now live in one module (web/src/lib/next.ts) where a change to either is visibly a change to the pair, and the origin check that blocks an open redirect sits with them. -
A
PATCHcan say which fields it writes, so it can clear one (#666, with #638, #639, #640). The API could set a field and narrow one, but for anything that was not a string it could never unset one:system_role.capacityis an integer, preserved on omit and with no empty-string sentinel available, so once an operator set a cap raw SQL was the only way back to unbounded.internal/updatemaskis the primitive that closes it, a pureResolveover three lists with AIP-134’s rules exactly and unit tests written as the specification of them: an absent mask is the implied mask of the fields the body populated (what everyPATCHin the tree already did, which is why none of the other 108 registrations change or need to), a present mask writes exactly the fields it names so one carrying its zero value clears,["*"]is full replacement and refuses to be combined with named fields, and a mask naming a field the resource does not patch is a 422 naming the field rather than a silent no-op. It rides in the request body, not the query string (ADR-0091), and generates into OpenAPI, the typed client and a CLI flag with no hand editing.The role declarations are its first consumer and the reason it is provably a primitive rather than a helper: they were a
PUTcarrying two semantics at once,capacityandalternatepreserving on omit while everything else replaced wholesale, so a save carrying only a display name silently reset the role’simpacttodegraded(moving its system’s verdict rollup with no visible field and no warning) and dropped its position labels and its typed slot. Both arcs, standard-owned and system-owned, becomePATCHand consume the mask;SetSystemRolebuilds itsON CONFLICTset list from the resolved write set, so a field outside it is read and rewritten from the stored column inside the one upsert rather than merged in from a row read a moment earlier. Two wire behaviors changed deliberately: an empty list is not a populated field, so[]means “unchanged” where it used to clear (clearing means naming the field in the mask), and the console’s role editor therefore declares every field it owns inupdate_mask, and pointedly notalternate, which it has no control for. A role’salternatealso gained a read side: it was writable and returned by nothing, so an operator could join a role to an alternate and had no API way to confirm it landed; both role reads and the write’s own echo now carry it as the samechoice/alternateaddress the write body takes, asserted as a round trip. -
A location move recomputes both ancestor chains (#642, ADR-0092).
MoveLocationnever recomputed health, so a location with placed descendants moving to a new parent left the branch it abandoned frozen at the verdict of a room no longer in it, and the branch it joined reading healthy over a room that was: the one rollup that genuinely depends on where a row sits, sincelocationVerdictfolds every system in the location’s own subtree. The gap predates the:movesplit (UpdateLocation’s reparent branch never recomputed either), which is why ADR-0088 recorded it rather than closing it inside a task whose contract was to change no observable behavior.recomputeMovedLocationis the trigger, the location-tier twin ofrecomputeMovedSystem: it names ONE row per side, the moved location and the parent it left, becauselocationsOveralready takes its named locations as the seed of a recursive ancestry walk, so each named row carries every ancestor above it and walking either chain in Go would reimplement the walk the query performs. Resolving the old side after the write is safe for a reason worth stating: 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. The regression is red on both halves independently, proven by mutation as well as by the original RED: dropping the left-behind parent fails only the old chain’s assertions, dropping the moved location fails only the new chain’s, and each side is asserted two levels up so an implementation that named the two parents without walking above them fails too. The trigger sweep inhealth_invariant_test.gogains a location-move step for the transition-only invariant, which the missing trigger never violated (nothing written is never a duplicate), which is precisely why nothing turned red on this for as long as it stood. -
The round-trip counter becomes a primitive, and the list paths are pinned (#650, out of #643). The batch address walk shipped with a counting querier inlined in its own test file, which made that one file, accidentally, the repo’s entire performance regression net: no benchmarks, no bench target, no perf workflow. It is now
internal/storage/storagetest/querycount, with tests of its own, and the test that introduced it consumes it rather than keeping a copy.Promoting it forced the design question the inline version never had to answer. The old wrapper wraps the internal two-method querier, which observes the address-attach hooks because they take their querier as a parameter, and observes nothing on a gateway
List, which takes ascope.Setand queries the pool directly. A wrapper handed to one of those would have reported a small, flat, entirely fictional number, and every assertion built on it would have passed while measuring nothing. So the seam is the pool:storage.WithQueryTracerinstalls apgx.QueryTraceron the connection config (legitimate production observability, where an OpenTelemetry tracer attaches, not only a test affordance),NewPGparses the DSN into a config to reach it, andstoragetest.NewCountingDBhands a test a gateway whose every statement is counted. The primitive’s doc comment leads with that hazard, because a count means nothing if the code under test does not go through the counted seam.Nine list paths now carry an assertion, each checking both flatness across page sizes and an absolute ceiling, since equality alone passes a read that is still per-row with a smaller constant and a ceiling alone passes one that is flat at a bad number: components, systems and locations at four, four and two statements; members at five; alarms at two; interfaces, tags and roles at one. Every one of them was proven by mutation, breaking the batch walk, the join and the per-row read in turn and watching the specific number move. The fixtures spread their rows across several rooms and several depths on purpose: an address walk grows with the distinct rooms a page spans, so a page confined to one room makes a per-room loop look exactly as flat as a batch.
Pointing the instrument at the paths the issue did not name turned up a real one.
ListPrincipalsdrains its base query and then callsloadPrincipalper row, three more statements each (kind profile, effective grants, group memberships), so the admin directory reads at 1+3N: four statements for one principal, sixty-one for twenty. It is pinned at its current shape rather than fixed here, under a test whose name says it pins a defect and whose failure message says the fix is to delete it. (Fixed and the pin deleted in #671, below.) -
The second performance instrument: benchmarks that measure, and gate nothing (#651, ADR-0094). Counting round trips catches the N+1 exactly and deterministically, and is blind to everything that happens inside one statement: a dropped index, a plan flip to a sequential scan, a recursive CTE that stops being bounded.
make benchis the instrument for that blind spot. Ten benchmarks run over the real Gateway against real Postgres, at a small estate and a larger one, and none of them runs inmake test, gates a merge, or asserts a duration. A Go benchmark is inert without-bench, so diagnostic is the natural shape rather than a compromise, and the whole point of the previous slice was that a wall-clock threshold on a laptop either catches nothing or flakes until it is muted.The sequencing mattered. While per-test migration made provisioning about 90% of a storage run, timing anything on top of it would have measured the harness, which is why this waited for the template-database copy. The same trap shows up one level down, and the fixtures are shaped to avoid it: each estate is built once for the whole binary and shared, never inside a timed loop, and the timer resets after the fixture is in hand. The two sizes are not decoration either. One size cannot tell a constant apart from a linear cost, which is the entire question: a list should grow with the estate, a tag cascade walking one component’s ancestors should not, and only the pair says whether that is still true. It is:
ResolveTagsreads flat across a tenfold estate whileListComponentsand the batchEffectiveTagsgrow with it.One benchmark was built, measured, and deliberately not shipped, and the reasoning is the useful part. The health recompute chain (a raise and a clear over a staffed component) costs about 22ms and issues 58 statements to do it. Against a measured round-trip floor of about 265us, roughly three quarters of that number is transport no query planner can move, and its run-to-run spread is three times the reads’. A regression that halved every plan in it would move the total by less than its own noise. That benchmark could not fail for the reason it appeared to exist, so it is a comment in
bench_test.gonaming the gap instead of a number in the output implying coverage. A path that round-trip-bound is counted, not timed. -
An operator forks a shipped registry row (#655, ADR-0095, the first prerequisite of #657). Thirteen tables carry
official, and the enforcement was a flat refusal:UpdateComponentTypereturnedErrTypeOfficialfor any patch to a shipped row. Correct as far as it went, and it left an operator nowhere to go. An edit now forks: the operator’s version of the row lands inregistry_shadow, reads resolve it over the official row, the official row is never written, and restore (POST /component-types/{id}:restore) discards the fork so later releases reach the row again.The key was the decision worth the time, because twelve more registries copy whatever shape this slice picks. A
namespacecolumn with the unique relaxed to(namespace, name)was rejected on addressing: it makes every name-keyed lookup return two rows withQueryRowtaking an arbitrary one, across helpers shared with the other registries, and it gives one logical row two uuids whileproduct.component_type_idkeeps naming the official one, so the fork would not take effect for the rows that matter. Keying the shadow on the shipped row’s own uuid, in one registry-agnostic table, changes only what a read resolves to and never what anything addresses: the name stays globally unique, every foreign key andON DELETE RESTRICTsurvives, and the namespace cannot reach a URL. Generic rather than a shadow table per registry because #657 adds columns to the adopters, and a typed shadow would double the DDL cost of every future column thirteen times over.component_typeis the first adopter because it is nested, which forces the inheritance question rather than deferring it. The answer is per node, in official structure space: a shadow carries facts (display_name,stem,icon,abbrev,default_tags) and never structure (the uuid, the name, theofficialflag,parent_id), so the walk visits the same chain it always did and reads each node’s effective row on the way. Forking an ancestor reaches every descendant that does not override the field; forking a leaf does not cut it off from what it inherits. There is no such thing as a forked chain, only forked nodes.A fork captures the whole mutable row, so a later release’s change to an unedited column does not reach a forked row, which is the price of taking it over and what restore undoes. Sparse was not a live option: null on
stem/icon/abbrevalready means “inherit from the parent”, so a sparse overlay would need null to mean two things at once. The resolve still overlays only the keys the image carries, which is what makes a column added after a fork resolve to its official value.Mutation is what made the tests worth having, and it found a live bug on the way: dropping the overlay from the inheritance walk left the assertions passing, because
encoding/jsonunmarshals into an existing non-nil pointer by writing through it, so decoding a shadow’s stem into the official row’s*stringhad already rewritten the string that row points at. The overlay now decodes into a fresh value and assigns, and each overlay case gets its own row so the test cannot hide the same aliasing again. The re-seed acceptance carries the same suspicion: the fixture scuffs the official row in SQL before each re-seed and asserts the seed put the shipped value back, so “the fork survived” cannot pass by the seed having skipped the row.The console reads three origins now, not two: official, custom, and overridden. Edit is live on a shipped row for a caller holding
component_type:update(a viewer still cannot fork what they cannot write), the destructive slot carries Restore shipped on a forked row and a greyed Delete with the official sentence on a pristine one, and the shared registry lock keeps the flat read-only verdict for the twelve registries that have not adopted. -
A system carries a coarse type. The
system_typeregistry lands, the system-side counterpart ofcomponent_typeand the second prerequisite of the generated-names epic (ADR-0096): a nested, universally seeded taxonomy of what kind of space a system is, withsystem.system_type_idpointing at it (nullable for now; the floor waits until the shipped tree has proven out). The shipped tree isavoverroomoverboard/class/meeting/training/conference/huddle, andavoversignovervideo-wall/interactive-sign.stem,abbrev, andiconinherit downparent_idand are overridden at whichever node needs its own, soboardstatesboardroomandbrwhile taking its icon fromroom, which overridesav’s. Those strings are not filler: they are what the naming and label rules will render from, which is why they were chosen here rather than left for the rules to invent.Using
standard’s ownparent_standard_idinheritance for this was considered and rejected. A standard fork expresses design forks, two ways to build the same kind of room; the coarse classifier is a different question, wants a universal shipped seed, and one estate holds ten signage standards and six classroom standards under a single coarse type. So the system side ends up exactly parallel to the component side, andstandardis untouched: no columns added, no inheritance semantics changed.The identifier is deliberately reused.
system_typewas the old column name for what becamesystem.standard_id, and it sat on the docs-lint denylist; a table by that name is a different object from the retired column, so the entry is removed rather than exempted, on exactly the precedentcomponent_typeset, and the ADR records the reuse so a reader who greps and finds both has somewhere to land. The fossil left inmapSystemWriteErr(the constraint namesystem_system_type_fkey, which points at the standard key) now sits besidesystem_system_type_id_fkey, which is the new one, each labelled with which is which.The load-bearing test is the inheritance walk, built so it can fail: a three-level fixture with each fact set at a different depth (stem at the root, icon at the MIDDLE node, abbrev at the leaf), so resolving the leaf has one right answer per fact and each discriminates a different defect. Proven by mutation four ways: letting the last non-null win returns the root’s icon, refusing to walk returns an empty stem, skipping the starting row returns the root’s abbrev, and giving
boardits own icon in the seed trips the shipped-tree twin’s own premise guard. The delete path pre-counts both reference sides, so a type that still parents another type and a type that still classifies a system both come back as the registry’s clean in-use 409 rather than whichever raw foreign-key error fired first;deleteTypeRowbecame variadic to allow it.Surfaces:
GET/POST /system-typesandPATCH/DELETE /system-types/{id}undersystem_type:read|create|update|delete, the generated CLI verbs, a System Types console page under Catalog > Systems beside Standards, and a tree-indented type picker on the system create form and edit blade.system.system_type_idfollows the house three-state patch convention, so an omitted field leaves the classification alone and an explicit empty string un-classifies. -
The test harness stops charging a container flake to the gate (#661, #663). Two defects in
storagetestcontainer hygiene, shipped together because each fed the other. The container start still sat behind async.Oncethat stored its error, the exact shape #649 had just removed from the template build one layer up, so a single transient start failed every remaining test in the binary with the same replayed message at 0.00s each. It now caches success and never failure, behind a mutex, and the next test retries. Retrying exposed the second half:testcontainershands the container back alongside the error when the create succeeded and the wait strategy did not, so the caller that only checked the error was dropping a live Postgres, and a retry loop would have leaked one per attempt.startContainernow reclaims whatever it was handed, and returns a nil container on every error path as a contract its callers depend on.The other half was three packages,
internal/bus,internal/cliandinternal/node, that used the harness without routingTestMainthroughstoragetest.Main, leaving cleanup to a reaper this box cannot trust. A gate run withTESTCONTAINERS_RYUK_DISABLED=trueleft exactly three strays, one per package; the same run after the fix leaves zero, measured both times. The threeTestMainfunctions are the small part. The load-bearing part is that the requirement stopped being a doc comment:NewDSNrefuses to provision for a binary that is not running underMainand fails with the fix in the message. The guard sits exactly on the defect, since the call that would start an unreclaimed container is the one that fails, in the offending package, and it runs ahead of the-shortskip somake test-shortcatches an omission too. A static walk of the importers was the alternative and was rejected: it would have had to parse the module from inside a test to answer a question the runtime already knows, and a guard against flaky gate readings that can itself flake is not worth having.Every claim here is proven by mutation. Caching the start error again fails the recovery assertion; dropping the terminate on the failed-start path leaves the injected container inspectable; removing
internal/bus’sTestMainturns that package red on its first provision. The start failure is injected through a seam rather than provoked, because Docker cannot be asked for a half-started container on demand, while the real start and terminate stay covered against real Docker by the tests that were already there. -
The ordinal becomes a stored fact, and the allocator stops parsing names (#681, the first slice of #657, ADR-0097). The number a generated component name is minted from is written down (
component.ordinal, nullable) instead of being formatted into the name and dropped.NULLis the honest state for a row the platform did not name, so:renameclears it in the same statement it clearsname_generated, and the bare render now reads the column rather than re-deriving an ordinal from the string it is about to replace. That finishes what #654 left half-done and turns its guarantee structural: a component an operator calledrack-3has no number to compact, so there is no rule left to get wrong, and a hand-typeddisplay-1, which the stem match still compacted, is left alone too.The slice ran first because it carried the epic’s riskiest assumption, and the assumption turned out to be half right. Storing the ordinal is necessary for everything downstream (the render, a label rule’s
.Ordinal, the recompute-and-compare invariant), but it is not what unblocks a stem-less name, and allocation must not read it. 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 rather than of storage; inverting the loop to test the name it would mint against the bucket fixes that on its own, andmintName("", 1)is1. Reading the column instead would have been actively wrong: an operator can typedisplay-1by hand, holding the name while owning no ordinal, and an allocator that consulted only recorded ordinals would remint it into the scoped-name unique index as a23505the transaction cannot recover from. Mutating the allocator to read only rows with a stored ordinal reproduces that failure exactly, which is now a test. Every existing allocator unit test passes unchanged, because the two formulations agree on every answer they can both express.Six mutations back the assertions: an ordinals-only sibling read, a
:renamethat keeps its ordinal, a:movethat does not re-record it,max+1in place of lowest-free, a render that ignores the column, and a backfill that fabricates a number for a row it cannot read one off. Two of them exposed that the recompute-and-compare invariant was passing for the wrong reason (its estate had no row that stayed renamed, and its one move never left its placement bucket), so the estate grew both cases before either mutation counted as caught. -
A label rule renders a label, over a data map that is the sandbox (#682, the second slice of #657, ADR-0098).
display_namegains the pendisplay_name_generatedon component, system and location, the shapename_generatedalready had, and a nullablelabel_rulelands oncomponent_type,system_type,location_type,productandstandardwith the global tier in its own small table. Rules resolve most-specific-first and inherit down a nested registry by the same first-non-null walkstemandabbrevfollow, per node across the fork boundary, so setting a rule on a shipped type forks that row and the official one stays byte-identical.The rule language is Go
text/template, and a custom interpolation DSL was designed and rejected, because the security property a label rule needs is not a syntax that cannot express dangerous things but an environment that contains nothing dangerous. The environment is amap[string]stringwe build key by key: field traversal, a method call andcallall fail at execution over a string,indexreaches only what the map already holds, an undefined key renders as nothing, and a secret is absent structurally rather than filtered. The test that tries to reach one pins the key set exactly and then asks for every word a credential might be called, over a database holding a real sealed secret.What the map deliberately omits is placement, and that is the slice’s one divergence from how the definition’s acceptance text could be read. Because the label is stored, every input to a rule is something a write path must re-render on, and the keys chosen change on exactly five acts, all of them the entity’s own: create, rename, move, reclassify, reset. Adding a location’s name would add a sixth that is somebody else’s, staling every label under a renamed room, and the recompute-and-compare invariant would be right to fail. The cascade that would make placement facts safe belongs with the bulk recompute (#685), which can add the keys and the cascade in one piece.
The global tier is one row per entity kind with two columns,
default_templatefor what the release ships andtemplatefor what the operator chose, because one column cannot be both authoritatively re-seeded and operator-owned. The location kind ships an empty rule on purpose: a campus, a building and a room have real-world names, and every fact a rule could reach is either the type (“Room”, for every room) or the name itself, so any rule that ran would be a constant or a restatement, and the read ladder’s fallback to the name is already the better answer. That is the same argument the epic makes for refusing to auto-name a nominal location type.Twenty-three mutations back the assertions, and two of them were surviving at first for the reason slice 1 warned about. The empty-render test asserted a
NULLcolumn after a create whose rule produced nothing, but the stamp skips a write when the render equals what is stored, so nothing was written and the assertion held whatever the write would have done; it now drives a labelled row into a rule that stops producing one. And the recompute-and-compare invariant did not notice a:movethat fails to re-render, because its fixture moved a component into a bucket where the same ordinal was free, so name, number and label were all unchanged; the bucket is now stocked to force a re-mint, and its reset is preceded by a rename for the same reason. Review found four things after the slice was first proposed, and one was a hole in the argument rather than a bug in the code. A ceiling on output is not a ceiling on work. The rendered-label cap bounds bytes reaching the writer, and a value built inside a pipeline is materialized byfmtand never written, so the cap never sees it: 437 bytes of operator-authored rule allocates 85 MB and writes 8, every further doubling is 35 more bytes of rule for twice the memory, and twenty of them is an unrecoverable OOM of the single binary that re-triggers on every later write to any entity of that type, because the rule is stored and storing it on a shipped type forks that row for everything under it. Refusing:=does not fix it (the nested-pipeline form needs no assignment) and neither does removing a FuncMap entry (printfis a builtin the FuncMap never granted). The fix is the closed-data-map argument applied to the other half of the sandbox: an allowlist over the parsed tree, a closed set of node types and function names, refused at parse time so nothing is ever stored. Six mutations back it, including a forbidden call in non-first argument position behind an allowed function, which is the form a checker that inspects only the outermost call would wave through.The other three were the same defect in three places, a claim with nothing proving it. The pen defaulted false with no backfill, so on an upgraded estate the feature would have applied only to rows created afterwards; three of the four non-component stamps could be deleted with the suite green, because every rename test ran against rows whose rule read nothing a rename changes and the recompute-and-compare invariant iterated components only; and
label_rulewas declaredShapeIDOnly, which promises a uuid, against a text primary key with no id column, published into a generated reference. All three now have a test that fails when the thing is removed, and the shape guard was extended from “every table has a declaration” to “the declaration agrees with the primary key”, which is what makes the third one catchable at all. -
The console reads one label (#683, the third slice of #657). Slice 2 stored the pen and never put it on the wire, so the slice starts with an API change rather than a console sweep:
display_name_generatedjoins the component, system and location read bodies, read-only for the same reasonname_generatedis, and the operator claims or surrenders it by writing the label rather than by asserting a boolean.hasDisplayNamedecided whether a row shows its name on a second line, and it decided it by comparing the label to the name. That was the same question as “did a human choose this” only while a label was only ever operator-typed. A rule-rendered label differs from the name exactly as an operator’s does, so unchanged it would have put a second identifier line under every row in a 15,000-component estate. It now reads the pen, with the string comparison kept as the second half of a conjunction, because a rule with nothing to say about a row keeps the pen and stores no label (ADR-0098): holding the pen does not imply there is a label to attribute.labelGeneratedis the other half and marks the row, andlabelIsNameis the face questionBladeTitlehad been asking by hand.Forty call sites were hand-rolling the renderer beside it, in three dialects, and the classification mattered more than the count. Twenty-nine were labels. Two were sort keys, where converting changes ordering, and three were
<option>and picker rows where the value is submitted and the text beside it is not: every value was left exactly as it was, which is the #644 defect class this slice was warned about. Fifteen were filter facets, and those were the ones already broken: a facet spelling its haystack`${r.name} ${r.display_name}`searched the literal text “undefined” on every unlabelled row, so typing “undefined” matched them all and typing a label matched none. Two role pickers fell back to a uuid rather than the role’s name, and two registry lookups rendered the empty string for a found row with a blank label, because??does not treat""as absent.The sweep is held by a source guard rather than by page tests, for the reason the vocabulary guard exists: the page nobody wrote a test for is the page that drifts, and this rule had drifted in forty places. It is line-precise, not file-precise, since a file-level exemption is how half a sweep hides behind a neighbour that had a good reason (
lib/principals.tsis exactly that file: its role facet goes through the primitive andprincipalNamebeneath it does not). Four exceptions survive, each a rule that is genuinely not the entity label’s, and each asserted to still match so a stale entry fails too.The command palette does not follow, and that is the finding rather than an omission: it is a navigation jumper over static rail and catalog labels and holds no entity at all, so there is nothing in it to render through the primitive. Finding an entity by its label is a surface that does not exist yet.
-
The acronym list (#684, the fourth slice of #657). The word “dictionary” is what this slice is named after and the smaller half of what it did.
titleupper-cases a word’s first letter, sodsprenderedDsp, and fixing that is a list. Making the list something an operator can edit is what turned a package-level constant into a value with a lifetime, and that is the part slices 5 and 7 consume.The settings engine grew list support first, which was four separate places rather than one: a
defaulttag that has to become a typed slice, a write validator that has to admit a JSON array, a merge that replaces rather than merges, and a typed decode that has to turn[]anyback into[]string. Only the first needed code. The comma-separated tag form is Huma’s, followed exactly so one tag cannot produce two disagreeing defaults, and the JSON-array spelling Huma also accepts is refused loudly here rather than parsed a second way.labelis the firstplatformnamespace and the firstplatform,clientone: admin-write because a label is stored once and read by everybody, client-readable because the console renders one from the same list the server did.The engine’s lifecycle is the decision worth reading (ADR-0099). Parsing binds a template’s FuncMap, so a compiled rule carries the dictionary it was parsed against, and a mutable engine would leave rules rendering from a dictionary nobody can see. A change therefore builds a replacement, cached against the dictionary itself rather than a generation counter, because a counter has a failure mode a content key cannot have: the second write path that forgets to bump it. The gateway resolves the setting when it renders, so an operator’s edit reaches the next write with no restart, and the render functions take an engine so the bulk recompute can resolve one for fifteen thousand rows instead of fifteen thousand.
One defect found by reading rather than by a failing test, and worth the slice’s most careful test. The dictionary read was issued against the pool from inside the transaction that was stamping the row, so it took a SECOND connection while holding one. A pool whose connections are all held by writers each waiting for a second connection is deadlocked, not slow, and a bulk import of the estate sizes this epic exists for is enough to reach it. The resolver now takes an override level the caller read on its own transaction, and a pool of exactly one connection is the whole population of that race, so the regression test reaches the deadlock deterministically rather than hoping for it under load.
Splitting parse from render is what kept the ripple small.
label.Newbinds the same four function names whatever dictionary it holds and the grammar check walks a static allowlist, so whether a rule parses is a fact about the rule alone: the ten rule-validation call sites keep a dictionary-less engine and only the three render paths carry the current one.The console needed the work nobody scoped: it renders every setting through
String(value)and patches back what it read, which for a list is the joined string and a 422 the server is right to give. A list now reads as one comma-separated line and writes as an array, decided from the generated"type": "array"rather than from the value’s shape, so a list that resolved empty is still edited as a list.The honest limit is in the docs rather than left to be discovered: vendor model numbers are unbounded, so this list degrades quietly and forever. That is acceptable for a fallback one click from being overridden on the row, and it is why the dictionary matters less than it first appeared: a type’s
display_namealready carries correct casing, and the ladder reads that before it ever re-cases a raw name. -
A rule change previews then applies, and a label can read where it sits (#685, the fifth slice of #657, ADR-0100). The verb is what the sub-issue is named after and the smaller half of what the slice did. The larger half is that placement in the data map made slice 2’s write-path completeness argument void, and the argument was the load-bearing part: it could enumerate five acts and call the set complete precisely because every fact its map held was the labelled row’s own.
So the acts were re-derived from the map rather than inherited, and the derivation turned up more than the sub-issue listed.
MoveSystemhad never stamped a label at all, correctly, while a system’s map carried nothing a move could touch;LocationLabelmade it a write path. Membership is a write path the epic never named: a component reads its PRIMARY system’s type, andAddMember,RemoveMember,SetPrimaryMemberandAssignRole’s implicit bind each move which system that is. AndCreateComponentstamped BEFORE binding its membership, so every create naming a system rendered against no system and stored the answer.Two acts the sub-issue DID list turned out to be vacuous, which is worth recording as a finding rather than quietly satisfying. Moving a location restamps nothing: a location’s own map carries
NameandTypeName, and a component reads the label of the room it is in rather than that room’s ancestors, so a campus rename is free. The test that pins it fails the day a location gains an ancestry fact, which is the honest way to hold a claim that is currently true by construction.The line the slice draws is BLAST RADIUS rather than ownership. Bounded by a placement, the estate is restamped inside the act’s own transaction and is never observably stale. Bounded only by the estate (a rule at any tier, a
component_type’sdisplay_name, the acronym list) nothing is restamped and the operator applies it, which is the epic’s own argument about rules applied consistently to everything else that can stale fifteen thousand rows at once.A preview is an APPLY THAT ROLLS BACK, and that was a correction the invariant forced. The read-only version could not list what the apply changes: recomputing locations moves their labels, which stales the components and systems placed at them, and the first implementation shipped an estate that a fresh preview immediately reported as stale. Simulating the second hop would have been a second implementation of the cascade for the two to drift apart on, so the preview runs the apply and rolls back. It is exact by construction, and the cost is stated rather than hidden: a preview takes the operation lock and
FOR UPDATEon the rows it visits.D1 is ruled: one audit row for the operation, keyed on the rule (
label_rule’s primary key is the entity kind, the one key a rename cannot orphan), carrying the count and its per-kind split. Per entity writes fifteen thousand rows for one click and buys a restatement, since a generated label is derived; the health recompute, which cascades across a whole ownership chain and audits nothing, is the precedent.Cost is measured rather than asserted: the recompute and the location cascade are both flat in row count on #650’s counting instrument, and a placed, system-bound, generated create is pinned at nineteen statements with every one of them named, of which exactly one is this slice’s. Twenty-nine mutations, with three surviving the first pass: the create-ordering mutation and the unknown-kind refusal each survived because a second guard covered them, and the API’s update-scope wiring survived outright, because every case in that file drove an owner whose read and update scopes were both
alland a handler passing the read scope twice was indistinguishable from a correct one.The honest limit: the console has no rule editor, so the verb is reachable from the API and the generated CLI and nowhere an operator would find it.
location_typeandsystem_typegainedlabel_ruleon the wire here, because without them the routes this slice ships could never find a rule an operator had changed, but the global tier still has no route of its own. -
A system names itself, and the only one of its kind carries no number (#686, the sixth slice of #657, ADR-0101). The pen and both verbs spread from component to system and location; only a system generates, because
location_typecarries no stem and the slice that gives it one is #687. A location’s:resetNametherefore refuses with the missing fact named rather than reporting a reset it did not perform, which is also the test that flips the day the rule lands.D3 is ruled: suppress the first ordinal, accept the order dependence, and write the sequence down. A room’s only boardroom is
boardroomand the second isboardroom-2; deleting the bare one while the second survives frees the bare name for the next create, andboardroom-1never exists at any point. The suppression is a field on anameMintVALUE rather than a change to the shared shape, because a component that suppressed at ordinal 1 would rename every generated component that already exists, andpickOrdinalnow takes that same value. That second half is the one that would have bitten: a suppressing mint beside an allocator still testing<stem>-<n>disagrees on exactly ordinal 1, so the second create in a room mints a name the first already holds and dies on the scoped-name index. One value passed to both makes the disagreement unrepresentable rather than merely unlikely.The placement bucket became a value for the same reason. A system has three buckets and a location has two, so the location constructor takes no location id at all: 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 built.
The write paths were DERIVED rather than listed, the lesson slice 5 paid for. The mint reads two things, the type chain’s stem and the placement bucket, which yields create,
:resetName, both arms of:move, and thesystem_typehalf of a reclassify, and it settles two cases a list would have missed: un-classifying a platform-named system is refused by the generator itself rather than by a branch written for it, and astemedited on a shared registry row is estate-bounded, so it does not cascade, which is ADR-0100’s line applied to the name side. Both foreign keys agree (ON DELETE RESTRICT), so no placement moves without one of those acts.Review found two defects after the slice was first built, and both came out of suppression rather than out of the plumbing. A reclassify was gated on the
system_typefield being PRESENT rather than on the classification changing, and the console sends that key on every save so an unclassify can clear: an operator editing a label, with a lower ordinal freed by an earlier rename, would have had their system renamed undersystem:updatewith no rename asked for. And the allocation lock still carried the stem in its key, which was sound only while the mint was always<stem>-<n>: stemwallat ordinal 2 and stemwall-2at ordinal 1 are the same name, so two concurrent creates in one room took different locks and one would have died on the scoped-name index. The lock now guards the bucket, which is the only partition of the name space a mint cannot cross.The honest limit: the system bare render stays unwired although both halves of its substitution now exist.
RenderBarestamps<abbrev><ordinal>whenever it is given both, so a suppressed name would printbrd1for a room namedboardroom, a digit on a physical label that appears nowhere in the name. That is a rendering decision, and it is recorded rather than quietly deferred. The console is untouched too: the create flows are slice 8’s. -
A location type opts in to naming its own locations, and a rule change renames nothing (#687, the seventh slice of #657, ADR-0102).
location_typegains a nullablename_rule, and its presence IS the opt-in: null means an operator names every location of that type. Of the four shipped place types only floor ships with one, and it ships positional, so a floor created with no name is called1and the next2, allocated among that building’s own floors. A campus, a building and a room stay operator-named on purpose:17cis ground truth an operator holds, and generating one would be the platform guessing. The verb:resetNamestops refusing on this tier, which is the test #686 planted for exactly this slice to flip.The one design call: the rule is a declaration,
{"stem": "...", "bare_first": <bool>}, decoded straight into thenameMintthe previous slice made the one home of a generated name’s shape, and deliberately not thelabel_ruletemplate sitting beside it on the same table. A label that fails to render degrades to the next rung of the read ladder; a name has no next rung. It isNOT NULL, it is in a scoped-unique index, and it is what a runbook outside this system stores. So the promise #686’s acceptance made and nobody had built, that a rule which would mint an illegal name is refused when the RULE is edited, is kept here by MINTING from the rule at edit time: ordinal 1 and a nine-digit ceiling bound the whole output space, so a rule legal at both ends is legal everywhere in it. A template’s output could only have been sampled. The expressiveness would have bought nothing either: a location rule can readName(circular, it is what the rule produces) andTypeName, whose slug is the stem.Two rulings the slice owed. A rule change renames nothing, and there is no name-side recompute verb: #685’s preview-then-apply is the LABEL cascade, and the asymmetry is the point rather than a gap, since a bulk relabel is recoverable and a bulk rename breaks every reference stored outside this system.
:resetNameis the deliberate one-row-at-a-time way onto a new rule. And a positional type permitted at root is legal, allocating1,2across the estate: the bucket is the placement, never the placement and the type, so two positional types under one parent already share an ordinal space, and refusing at root would refuse the large instance of a rule that holds everywhere. Its real consequence is addressing, not allocation, and the dotted address already answers it (boi.17c.1resolves where1is ambiguous).The write paths were derived from the mint’s two inputs again, and it paid twice. The reclassify guard is the classification CHANGING rather than the field being present, because the console sends
location_typeon every save: that is the live defect review caught on the system tier one slice ago, refused entry here rather than repeated. And:movere-mints only when the parent actually moves, which is narrower than the system tier’s, where the same re-mint runs on a move that changes no bucket; nothing generated a location name before this slice, so there was no existing behavior to preserve and the narrow form is the correct one.locationalso gains the nullableordinalthe previous slice deliberately withheld from it, since the writer it was waiting for is this one, and the recompute-and-compare invariant now covers all three trees. -
The dev estate stops naming itself (#689, the ninth slice of #657, ADR-0103). Eight slices built a name generator that the one estate anybody actually looks at did not use: every fixture row in
internal/devseedhand-wrote its own name, and seventeen of the twenty-two hand-wrote their ancestry into it as well (hq-west-2-boardroom,boardroom-a-panel), which is the habit placement-scoped names retired two slices before this epic began. Now nothing in the estate names itself except the rows no rule could name. Its devices, its systems and its floors ask the platform, somake devcomes up on the generator’s own output: three rooms each holding adisplay-1, a divisible boardroom whose halves areboardroomandboardroom-2, and two buildings each with a floor called1.The mechanical crux was that a generated name cannot be the fixture’s identity, because the platform picks it and the fixture still has to say “put this component in that room” and still has to recognise its own rows on the second
make devof the morning. So the fixture grows akey, local to the document, never written to the database, and every reference resolves through it to a row id rather than a name (an id is a legal reference wherever a name is, ADR-0062, and it has to be one here: a baredisplay-1now matches three rows on purpose). Recognising a row on a later run is the other half, and it is answered by the fixture’s real claim: it does not say “there is a display called display-2 in the boardroom”, it says “the boardroom holds three displays”. A row the fixture names is found by name as before; a row the PLATFORM named is found by its position among the platform-named rows of the same classification in the same bucket, in the order the generator allocated them.The ruling the slice owed was the nominal-versus-positional question meeting real data for the first time. The West Building’s only floor is the building’s Level 2, and a positional generator calls it
1, because a positional ordinal is the lowest free number in the bucket and nothing else. The divergence is KEPT: a name is an address and a label is what a human reads, and a floor’s designation is signage the platform has no access to. (Reversed later on the same branch, see the floor entry at the end of this log: a designation is not an integer at all.) The estate now ships both cases of one type side by side, a floor named1labelled Level 1 and a floor named1labelled Level 2, which is the clearest thing in it. Seeding a Level 1 so the numbers would line up was refused as concealment; makingfloornominal, the plain reversal of ADR-0102, was refused on cost rather than principle and is written down as still available.The labels moved the same way. A set
display_nametakes the pen, so an estate that set one on every row demonstrated the exact opposite of the label rules: components now render theirs (Display 1,Video Bar 2) from the shipped rule over the resolved type and the allocated ordinal, and the survivors are enumerated with a reason each. The unclassified power conditioner keeps its typed label because the rule can only render “Generic Device 1” for a box with no product; the two boardroom halves keep theirs because which half is A is a fact about the air wall, and because the shipped system rule reads the type and would label both of them alike; every location keeps its own because no location rule shipped yet (four of those thirteen pins were released when one did, and two more when the floors were named for their designations, see the words and floor entries at the end of this log). Two pure fixture tests hold that line by key, so a fourteenth typed label is a deliberate edit rather than a quiet one, and the integration suite asserts every seeded name and label by value. -
The create form asks what and where first (#688, the eighth and last slice of #657, ADR-0104). Eight slices built a generator the console could not reach. Two of the three estate create forms derived the name from the display name and refused to submit without one, so a row created through the console arrived operator-named whether the operator meant that or not, and the third could leave the field blank but said nothing about what would land there. All three now lead with the classification and the placement, because those are what the naming and labelling rules read, and the identity section that follows shows what the platform will call the row.
What it shows is the SHAPE, and the ruling this slice owed was where to draw that line. The stem falls out of the classification the operator has just chosen; 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, so it does not exist until the row does. The form writes it as the token
n(display-n,boardroomfor a mint that suppresses its first ordinal,nalone for a positional type), always with the sentence that makes it honest. A draft-preview verb that minted and rolled back was refused twice over: its answer is provisional, since another create can take the ordinal in between, and the rolled-back mint takes the lock real creates need, so previewing on every picker change would serialise the estate’s creates behind a UI affordance. Re-rendering the label rule in TypeScript was refused outright as a second implementation of the engine slice 3 swept 42 copies of, so the label is not previewed at all.The placement is shown as a path beside the field and never as a prefix inside it. The sub-issue asked for the ancestry as a read-only prefix on the name, which two slices had already made meaningless: names became scoped to placement, so a name no longer contains its ancestry, and printing it back into the field would restore exactly the redundancy the scoping removed.
The three forms converge on one
CreateIdentitysection rather than a third copy, the two type registries’ inheritance walks converge on one primitive with the stem as their third consumer, and a name is now optional on all three, required only where nothing will generate one (an unclassified system, alocation_typewith no name rule, acomponent_typechain with no stem), which the form names rather than just refusing. The browser tier grew the case that closes the epic: it reads the shape the console resolved in the browser, creates with the name left blank, and asserts the row landed with that stem and an ordinal the console could not have known. That runner also moved onto the dockerised, no-published-ports recipe the docs capture already used, since the old one could not start whenever another worktree’s dev stack held 5432. -
The create form locks the generated name and label until you override (#699, the tenth slice of #657, ADR-0104 amended). Slice 8 showed the generated name as a hint line above two empty editable fields, which put the platform-owned path in the position of the fallback and the operator’s in the position of the default, exactly backwards, and said nothing at all about the label. Both fields now open locked, each filled with the value the platform will actually use, each with its own Override.
The ruling that made the label showable is that a render is not a mint, which ADR-0104 turned on without naming. Both of its refusals are about ALLOCATING: a minted ordinal is provisional because another create can take it before the commit, and a rolled-back mint takes the bucket’s advisory lock, so previewing per picker change would serialise the estate’s creates. Neither reaches an operation that allocates nothing.
POST /<collection>:renderLabelresolves the rule through the same tiers, builds the same closed data map, executes it with the same one engine, and writes the tokennwhere the ordinal would go. The TypeScript refusal is untouched and is what forces this shape: the label is shown because the Go engine rendered it, not because the browser learned to. The no-allocation claim is proven rather than asserted, by reading back every SQL statement the render issued (#650’s counting instrument) and by a create five renders later still taking ordinal 1.It is gated by the entity’s own
:create, the permission the create it precedes needs. The PLACEMENT is a separate question, because the rendered string can carry a location’s label and a system type’s label, so those refs resolve within the caller’slocation:readandsystem:readscopes and a placement out of scope is refused rather than rendered; the test that holds it drives a principal scoped to one wing, not an owner. A location draft injects no scope, because a location’s data map reads no other estate row.Each field has three states, and the third is not a loading one. Derived from the refusals in the code rather than from a list, they are: a
component_typechain with no stem, a system with nosystem_type, asystem_typechain with no stem (which the console’s copy had folded into the previous one), alocation_typewith no name rule, and, on the label side, no rule resolving at any tier. That last is the DEFAULT state of every location create form in a fresh estate, since no location label rule ships at any tier, so the locked field shows the NAME (the read ladder’s third rung) and says why, rather than sitting locked and empty.The wire contract is structural rather than remembered. A
Penclears its value when the lock closes, so “locked” and “posts nothing” are one state and a page’s create body stays thevalue || undefinedit already was, and the draft body mirrors the create body field for field, including the omitted-means-generate name. -
The epic’s review pass, before it shipped (#657). Four defects found reading the eight slices as one diff, each fixed with the test that failed first, and each of a kind the slice that introduced it could not have seen from inside itself.
A deleted system left every member component’s label stale.
system_member_system_id_fkeyisON DELETE CASCADE, so deleting a system had always taken its memberships with it, inside the parent row’s ownDELETEwhere the gateway can hook nothing. Slice 5 derived the label write paths from the data map and caught every EXPLICIT mover of a primary membership; this is the one the database performs. A component in a boardroom under[{{.SystemTypeLabel}}]went on reading[Boardroom]after the boardroom was gone, and the epic’s own invariant said so, which is the property it exists for. The memberships are now released explicitly one step ahead of the row’s delete, so a delete is the same actRemoveMemberperforms and carries the same two consequences: the sole surviving membership is promoted to default (a divergence between the two doors intosystem_memberthat predated the epic, fixed here because the label the delete leaves behind depends on which membership answers afterwards), and the released components restamp in one recompute. The generic scoped delete grew abeforeDeletehook to hold it. The invariant fixture now drives a delete too: its claim that a write path nobody thought of fails it only ever reached the acts the fixture performs, and all fifteen of them were writes.A
:movethat changed no bucket renamed a platform-named system. The re-mint was gated on the row being platform-named alone, so a move that re-stated the location a system already sat at, or supplied neither field, re-entered the generator; with a lower ordinal freed by an earlier:renamethat does not recompute to the same answer, it MOVES the name, undersystem:movewith no rename asked for. It is the reclassify defect ADR-0101 already refused, wearing the other verb’s clothes. The location arm shipped narrow one slice later and recorded the system arm as deliberately wide “because narrowing it would change an existing expected value”; the premise was false, since systems had only had generated names since this same unmerged branch. Narrowed, on thenameScopebucket rather than the two pointers, because a parent wins over a location. No test expectation moved.MoveComponenthas the identical shape, is reachable the same way, and is genuinely pre-existing, so it is left for its own issue.A platform-named location could not be reclassified, and neither the message nor the guide said so. The refusal is correct and stays: re-minting is what a reclassify does to a name the platform owns, and a type with no rule leaves nothing to mint from. But
flooris the only shipped type carrying a rule, so reclassifying a generated floor as a room, a building or a campus is the routine misclassification fix, and it is refused. The message said “name it yourself”, advice with nowhere to take it, since the patch that reclassifies carries no name field; it now names the escape the way the system tier’s twin does, and the operator guide documents the two-step fix where an operator meets it.A label preview listed rows the apply would then refuse to touch. The verb’s two halves were wired to different narrowings: the apply selects on the caller’s read scope AND their update scope, both injected into the one query, while the preview passed an all-scope action set that made the second predicate a constant. So an operator with estate-wide read and a narrow grant to update was shown a blast radius the apply then declined most of, with nothing on the wire explaining the gap. Both ADR-0100 and the recompute file’s own argument for why a preview is an apply that rolls back already said a preview must list EXACTLY the rows the apply changes, so the scoping was the one place the code disagreed with the reason it exists. The preview now takes the same two scopes the apply does, and the e2e case that pinned the old answer (a preview of two rows against an apply of one) pins the new invariant instead: the two agree, row for row.
-
A rule can read a name as words, so the dictionary reaches something (folded into #698 after the rollup review, ADR-0105). Ten slices built a label engine and an operator-owned acronym dictionary that no rule could reach from a NAME.
titleupper-cases each word and leaves the separator standing, so{{title .Name}}renderednorth-wingas “North-Wing”, and the closed FuncMap’s other three ran the other way or ignored word boundaries entirely: “HQ West” out ofhq-westwas unwritable in any spelling, which is most of what the dictionary was for.wordsis the missing half,slug’s opposite number: a run of-or_becomes one space, a leading or trailing run is dropped rather than becoming an edge space, and everything else, including whitespace the fact already carried, is untouched. It is deliberately notwordRe’s “anything that is not a letter or a digit”, since a catalog display name’s parentheses and slashes are punctuation somebody chose.Adding a function to a closed grammar is a three-place act (the FuncMap, the AST allowlist,
FuncNames), and two of the three is silent in both directions: a name in the FuncMap alone parses nowhere, and a name in the allowlist alone is just a hole in the allowlist. The published set is therefore walked by a test that parses each name in a real rule, so the three places are enforced rather than described.The global location rule then ships as
{{title (words .Name)}}, which reverses half of the argument the seed file made against it. It said any rule at that tier is “either a constant or a restatement”; the constant half stands (labelling every room “Room” is worse than the name it would replace) and 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 read ladder’s last rung cannot. That rung is unchanged and still verbatim: a row with no stored label renders its name exactly. Shipping the rule restamps nothing by itself, because the blast radius is the whole estate and waits for the verb, so an existing install keeps its raw kebab locations until an operator runs/locations:recomputeLabels, and the operator guide says that rather than implying a release does it for them.The dev estate stopped masking it. #689 pinned a
display_nameon all thirteen locations because nothing would have rendered one; four of those pins now restate exactly what the rule renders, so they are released and the RENDERED values pinned in their place, which is what keeps an assertion behind a released pin. Nine survive with a reason each:hq,west,eastandairportbecause a bearing or an abbreviation is not a place,huddle,briefingandhallbecause the room’s noun is not in its name, and ADR-0103’s two floors because a positional name is allocation order and releasing those two deletes that worked example from the estate. (Seven, after the floor reversal at the end of this log took the last two: a floor named for its designation renders that designation.) The media lab’s name becamemedia-lab, since every other location name was one word and nothing inmake devwould otherwise show a separator becoming a space. -
The pen becomes an inline action, and a locked field stops being a disabled one (folded into #698 after the rollup review, ADR-0104 amended). The lock #699 shipped was a text button on the field’s label row, a second visual language for an idea the console already had: a square icon in the field’s join, which is what a Variables row, a secret’s reveal, and a setting’s Restore to default have all been since they were built. It moved inside the field, and both actions now read as Settings’ own does, an opening padlock to take the pen and the restore arrow to hand it back, with the same words on the tooltip.
Dropping the text was not a restyle, because of what held the locked state: the field was
disabled. A disabled input fires no click, so click-to-override is impossible on one, and it is out of the tab order, so the value the row is about to carry had no keyboard path at all. Losing the button’s text without fixing that would have left the affordance discoverable only by hovering a field that cannot be focused. The fields arereadonlyinstead: not editable, still focusable, still fires events.The locked LOOK then had to be drawn, and the reason is worth recording because the old code read as if it were already handled. daisyUI 5 ships no
.input-disabledclass at all, only:disabledand[disabled]selectors, so theinput-disabledin the markup had been a no-op class since #699 and every bit of the locked appearance came from the attribute being removed..input-lockedinapp.csscarries it now, unlayered so it beats daisyUI’s own.input, with the hover border and the pointer cursor as affordance on top.Focus does not take the pen, and that is a deliberate departure from the direction, which asked for click OR focus. A locked field is a tab stop, by the same decision that made it readonly, so focus-to-override 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 also one-way: the way back discards what the operator typed, so it belongs on the button. A test walks the section’s tab order and asserts all four controls are stops in both states, and another tabs through and asserts both fields are still locked on the platform’s answer.
The hints lost their instruction halves, since the icon and its tooltip carry the action now, and kept the facts: the placement the name has to be unique in, the rule that rendered the label, and the fact that is MISSING where nothing generates. Those three keep a “so name it yourself” tail, because that is the one state with no button in the field and the words are the only thing left carrying the next move.
-
A floor is named by the operator, not by the allocator (folded into #698 as an architect-directed reversal, ADR-0103 amended, ADR-0102 amended). ADR-0103 met the estate’s floors and kept the divergence: the West Building’s floor is the building’s Level 2 and a positional generator calls it
1, and the two fields were held to be answering two different questions. The architect rejected that for floors, and the argument that settles it is one the entry did not have. A floor’s designation is not an integer. Buildings sign B2, LG, G, M, 1, 12A, P3, so an allocated ordinal is the wrong KIND of value rather than an imprecise one, which is what makes this obviously right instead of a matter of taste. It also dissolves the objection that looks hardest, since a negative floor is unspellable under the name rule but nobody signs a floor-1, they sign itB1, which is already a legal name.So
floorloses itsname_ruleand joins campus, building and room as nominal, and the dev estate’s two floors are namedlevel-2andlevel-1for the designations they actually carry. The shipped location rule renders “Level 2” and “Level 1” from those names, so the two pins ADR-0103 called load-bearing are released and the estate’s remaining hand-typed labels drop from nine to seven: name and label are one fact now rather than two that disagreed.The cost is stated rather than hidden, which is most of the work. No seeded location type carries a rule any more, so location name generation ships dormant: correct, tested, and demonstrated by nothing in a shipped estate. Seeding a fifth positional type to keep the demo alive was refused for the reason seeding a Level 1 was. Nine cases reached the generator through the SEEDED floor, and they now reach it through a positional type the tests create (a parking deck, whose number genuinely is an arbitrary disambiguator), because a feature losing its coverage when its last shipped user goes away is how one quietly stops working.
The second cost is the one the seed model imposes and no amount of care avoids.
SeedLocationTypeis insert-when-absent, so removing the line un-ships nothing from an estate that already booted with it: itsfloorstill carries{"stem": ""}and still names floors1. That is ADR-0102’s own consequence read backwards, and it composes badly with the other limit recorded there, since a rule cannot be CLEARED on the wire either (an omitted key and an explicitnullboth decode to a nil pointer). Such an estate reaches the new default only by a direct write, and a test now pins both halves rather than leaving them to be discovered: the re-seed leaves the rule standing, and a patch that omitsname_ruleleaves it standing too. -
A create binds a placement it can read (#700, ADR-0089 amended).
CreateComponentandCreateSystemresolved theirlocationandsystemreferences existence-only, and so did the two:moveverbs. That was defensible while a placement reference was only a pointer. It stopped being defensible when ADR-0100 put placement into the label data map: the label these four writes stamp is rendered from the location’s own label and the primary system’s TYPE label, and the row comes straight back in the response, so naming a location you cannot read handed you its label. The draft-render route built beside it is what made the gap visible: the console’s preview was stricter than the create it previews, so an operator could be refused a draft for a placement and then create into it anyway.All four now resolve the placement through one seam,
resolvePlacementRef, in the caller’slocation:read/system:readscope, which is the scope:renderLabelalready injects for the same references. The refusal is the read path’s non-disclosing not-found rather than the write path’s 403: a status that separated “no such location” from “a location you may not see” would be the same disclosure one level up, and sharing one refusal is what keeps the preview and the create from disagreeing. The moves are in scope for the same reason the creates are, since a relocate restamps the label from the DESTINATION. The reclassify paths are not:UpdateComponentandUpdateSystemresolve only catalog rows (product, standard, system_type), which are not scoped trees, and touch no placement reference at all.Two consequences are stated rather than left to be discovered. A caller holding no grant on a tier now binds nothing on it, because it reads nothing on it: while the cross-tier scope expansion is unbuilt (#10), a component-scoped grant confers no
location:read, so such a caller can no longer place a component at any location. That is the same sentence the read side already said, and the draft route already enforced. And the ambiguity redaction these binds carried (withoutCandidates) is now belt and braces rather than the load-bearing guard it was, since narrowing to the caller’s read scope means a candidate list can only name rows that caller may read; making it useful again is #697. -
A re-mint follows the mint’s inputs, not a field’s presence (#696, #691, ADR-0101 amended). The component tier catches up with the system tier on the two guards that decide whether a platform-owned name is minted again.
MoveComponentre-minted whenever the row was platform-named, so a:movethat re-stated the location the component already sat at moved its name;UpdateComponentre-minted whenever theproductfield was PRESENT in the patch, so a save that re-stated the product did the same. Neither is a harmless recompute, because allocation is lowest-free: an ordinal freed by an earlier:renamemeans the re-mint handsdisplay-2the namedisplay-1, undercomponent:moveorcomponent:update, with no rename requested and possibly nocomponent:renamegrant held. The label follows the name (it reads the ordinal), so the silent rename silently relabelled too.The move guard is the system tier’s, unchanged: the placement bucket compared as a
nameScopevalue rather than as two pointers, because a parent wins over a location and a parented component that merely relocates has moved a pointer and not a bucket. The reclassify guard is deliberately NOT the system tier’s. A system reads its stem from asystem_typechain; a component reads it from a product that points at acomponent_typechain, one hop further, so two products under one type mint identical names and a product-id comparison would still move the name on a real reclassify. It compares the resolved stem, withstemForProductlifted out ofgenerateNameForProductso a guard can ask what a name would be minted from without minting one. The matching residual one tier up (twosystem_typerows inheriting one stem) is #706.Six tests pin both directions on both verbs, since a guard that suppresses too much is the same defect from the other side: the two no-op acts, the parented relocate a pointer comparison gets wrong, the same-stem reclassify a product-id comparison gets wrong, and the two real acts that must still re-mint with the label following. No existing expectation moved.
-
A shipped location type is platform-owned, and a name rule can be cleared (#703, #692, ADR-0106). The two halves of one question: how does a shipped rule stop applying? A release withdraws it, and an operator clears their own.
The seed’s contract said authoritative upsert and
SeedLocationTypesaidon conflict (name) do nothing, which made a shipped default a one-way ratchet: adding one reached every estate, removing one reached only new installs. That was not an oversight. Shipped location types seededofficial: false, so the row belonged to the operator and an authoritative re-seed would have stomped their edits. So the ownership model is the fix rather than the seed statement:location_typebecomes the second adopter of the registry fork (ADR-0095), shipped rows seed official, an operator’s edit stores their whole version of the mutable columns inregistry_shadowunder the row’s own uuid, andPOST /location-types/{id}:restorediscards it. Every read resolves the shadow over the row, the placement check and the label and name generators included, so a fork reaches the surfaces it exists to change.The wire half is the mask (ADR-0091):
{"update_mask": ["name_rule"], "name_rule": null}clears a rule, because an object has no empty value to overload the way a string has""and an explicit null is indistinguishable from an omitted key after decoding. It composes with the fork rather than arguing with it: clearing on a shipped type forks the row with an image carrying no rule, clearing on an operator’s own type writes null, and an operator sees one behavior.The migration is one statement, and the interesting part is what it stopped doing. It first captured operator edits into
registry_shadowahead of the flip, telling an edit from a shipped value by the audit trail, since a row holding a value a previous release shipped and this one withdrew looks exactly like an edit and preserving it would defeat the withdrawal. The architect ruled that premise away: no release is cut and no operator data exists, so there is no upgraded estate and nothing to preserve, and a review had already found the discriminator wrong in two ways that both lose data silently with itscreateleg exercised by nothing. So the backfill isset official = trueon the four shipped names, its test asserts it writes no shadow at all, and ADR-0106 records that the removal rides on the premise: the first real release has estates, and owes them a migration that reasons about their rows. Still proven against the old shape, standing the database one migration back, writing the rows an installed estate holds, migrating forward with the real file, and driving the down leg as a round trip.One capability had to be defended rather than shipped: flipping the rows to official would have activated a guard dormant on this registry and silently taken away the contract editor for the four types an estate actually uses. A contract line is a row in its own table, nothing seeds one, so those writes no longer consult the official flag. Two expectations inverted deliberately, the seed test’s “official location_types = 0” and the wire test’s twin; the console’s origin column now reads three ways and its blade offers Restore shipped.
-
A create form shows the real ordinal, and a conflict is refused rather than renumbered. A create form showed the token
nwhere a generated name’s ordinal would go (display-n) and the row then landeddisplay-1, so the operator was never shown the name they actually got, which is the promise the whole locked-field design rests on. ADR-0104 had refused a preview because previewing meant MINTING, and a mint takes the bucket advisory lock real creates need: previewing per picker change would have serialised the estate’s creates behind a UI affordance.Reading the lowest free ordinal is not minting it. It is the computation the allocator already runs over the sibling names in the placement bucket, with no lock, no write transaction and no allocation, so
:renderLabelnow answers with the whole drafted name beside the label and the form showsdisplay-3. That the read allocates nothing is held by the counting instrument reading back every statement the render issued, and by a create five renders later still taking ordinal 1.The answer is provisional by nature, and that is answered rather than hidden: the form posts the number back as the create’s
expected_ordinal, the create allocates under its own lock exactly as before, and one that would land a different name is refused with a 409 naming the number that moved. The form re-reads and shows the new name. It posts a number and never a name, because a locked field posting a name would claim the pen and invert the feature; the API refuses the pair (422) where an operator supplied the name, since nothing is allocated there for the expectation to be about. (Corrected in the review below: the field isexpected_nameand carries the drafted name, which is the claim the locked field is actually making. It is still not the name field.)A create form is the one caller that cannot treat a refusal as “show it and stop”, so the two refusals it has to act on carry a machine-readable location rather than only a sentence: the conflict on
body.expected_ordinal(body.expected_nameafter that review) and “the platform will not name this row” onbody.name. That is the RFC 9457errorsarray the error model already publishes.Returning the name also ended a duplication: the console walked the type chain in TypeScript to resolve a stem, and the gateway walked it in Go, held together only by one browser end-to-end test (#695). The browser no longer knows what a mint looks like, and the three placement pickers feed the draft body because the ordinal is read from a BUCKET, which a draft that ignored the parent would have got wrong.
-
An ambiguous placement names the rows it matched. Every building’s first floor may be named
1, so a create or a move that binds a location by bare name matches one row per building and answered"1" is ambiguous for location (matches ): the operator was told their input was ambiguous and handed nothing to disambiguate with. The list was empty on purpose, and the reason had expired. It was stripped because a candidate could be a row the caller holds no grant to read, and disclosing that such a row exists, even only as a uuid in a 409, is the leak the non-disclosing not-found exists to prevent; the slice before this one narrowed the bind to the caller’s own read scope on the referenced tier, and the reference primitive filters the match set through the scope tree BEFORE it judges ambiguity, so every candidate is now a row that caller already may read.Only that one seam changed. The redaction does two jobs, and each of the other call sites still needs it, so it kept them: the three availability advisories resolve scope-blind by design (they answer about the placement bucket asked about, not the caller’s grant), and the component end of a membership write, a role write and a tag resolve holds only a scope resolved for the other tier, which can never narrow a component lookup. The redaction’s second job, folding a structural path miss down to the bare sentinel so a create’s missing location stays the 422 it is rather than becoming a blanket 404, is now its own function and is what the placement bind still calls.
The listed candidates are uuids, and a uuid resolves this same reference, so the answer is actionable rather than only descriptive. So is the dotted address the issue assumed did not exist here: the body reference has parsed one since addresses landed, which the slice pins with a create that binds
hq.wing-a.west.1where the bare1is refused. -
A create that writes a membership costs what the membership route costs.
POST /componentsaccepts asystemand inserts that component’s primary membership from it, the same row the membership route writes undersystem:update, while the create asked for no system permission at all. The gate on the membership route was therefore decorative: the create was the cheaper way around it. The create now requiressystem:updatewhen the reference is present, and resolves it in that scope rather than in the read scope the location beside it uses, because what decides the action a placement reference resolves for is what the write DOES with it.The consequence was accepted rather than worked around:
operatorholdscomponent:createand no system permission of any kind, so an operator can no longer create a component into a system. That is the line the seeded roles already draw (an operator maintains components, a deploy tech builds out systems and their membership), and grantingoperatorthe permission would have handed it general system editing to buy one binding.A narrowing discovered as a 403 after a form is filled in is the outcome the do-not-offer-what-the- platform-refuses rule exists to prevent, so the console does not offer the system picker to a principal that cannot use it: the slot keeps its place in the placement grid and explains itself, naming the permission to ask for. The API’s refusal names it too, which is what the CLI prints and what its generated help now says.
Two paths write one row, so the spec has to say so. The second permission is conditional on the request rather than on a tier, and middleware cannot see a body, so the check runs in the handler and the permission is published as
x-omniglass-conditional-permissionbeside the route’s primary stamp, the same shape a platform-tier write already used. It joins the route-derived permission universe, so the roles view and the docs lint both see it without being told separately. -
The membership gate is two layers, and a refusal names the one that is missing. The review of the slice above found both halves of “the narrowing is met before the form is filled in” untrue for a shipped shape. The console gate read the
system:updatePERMISSION and nothing else, so a principal holding it over an empty scope was offered the picker, filled the form in and was refused on submit. And the bind resolved in thesystem:updatescope alone, so a system outside it came back as the non-disclosing not-found and the route answered “system not found” for a row the same caller couldGET.The principal is not exotic.
applicableKinds("system")is{"system"}alone and the cross-tier expansion is unbuilt (#10), so a location-scopeddeploygrant fills no system-tier scope at all, and devseed ships exactly that astech-east. Driven end to end, that grant can do NO system work: create, update, rename, move and all three membership writes refuse it, and without a second grant it cannot even list a system. So the previous slice did not break a working role, it extended a pre-existing gap to one more path, which is why the fix here is an honest refusal and a console that does not offer what the server will decline, rather than the cross-tier expansion.The bind now takes
system:readbesidesystem:update. 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, a 403 names the scope, which discloses nothing either, since that caller can read the row. The console gate now also requires a system carrying the scope-awareupdateaction (the server’s own per-row answer, from the same per-action scope the gateway enforces), offers only those systems, and says which of the two layers is missing. -
A draft does not preview a bucket its create refuses, and the precondition binds the name. Two more findings against the create form’s identity render.
The draft resolved an empty parent to “the parentless bucket” with no gate, and every create refuses that bucket without an all-scoped grant. 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, and the stem asked about is the caller’s to choose, since writing one into a forked type’s name rule needs only
location_type:create. Driven, the root bucket answeredsecret-region-2to a principal whose create there is a 403. One seam (draftParentID) now applies the create’s own gate for all three tiers.The precondition bound the ordinal, and the ordinal is not the claim a locked field makes. A name is the stem, the suppression rule and the number together, so
PATCH /component-types/display {"stem":"monitor"}under an open form left the number untouched and the row landedmonitor-1where the field showeddisplay-1, precondition met.expected_namereplacesexpected_ordinalon all three creates and carries the whole claim by construction, so no future input to a mint has to be remembered here. It is still a precondition and not the name field: the create leavesnameempty, the row is stillname_generated, and posting it beside a supplied name is the same 422. The 409’s machine-readable detail moves tobody.expected_nameand carries the name the create would have produced, which is what the form shows next. -
An inherited component-type fact rides as omitted, never as an empty string. The component-type edit blade posted
stem,abbrevandiconas raw signals seeded with?? "", so a node that inherits a fact sent"". Those columns are nullable and the server’s walk treats only NULL as inherit, while the patch coalesces, so the empty string wrote a real value that stopped the walk for that node and every descendant under it: silent, permanent, and on the facts the generated name and the abbrev-compacted render read. The console hid it in both directions, since the wire omits an empty icon and the client-side resolver treats""as falsy and keeps walking, so the page still drew the inherited glyph while the server no longer resolved one.stemalso carries a minLength on the patch body, so a custom child that legitimately has none could not be edited at all: the save was a 422 before the handler ran. This is the original of the defect the system-type copy fixed alongside it, and it takes the same shape (empty means omitted, plus a guard test asserting no""ever rides the body). Clearing a fact back to inherit stays inexpressible from the console; the instrument for it is the three-state string sentinel already live onlabel_rulein the same handler, not the write mask, which stays scoped to nullable object fields. -
The recompute’s lock order is one stated fact, and it is the id.
locationsOverordered its result bynamewhilerecomputeChain’s comment said the order was by id andlockHealthOwner’s said it was by name: three statements, two of them wrong, and harmless only while a location name was unique estate-wide. Scoping name uniqueness to placement retired that guarantee, so two rooms under different buildings can both be415aand the comparison ties. A tie is not an order: it hands the visit order to the plan, and the plan reads its input, so the two production trigger shapes really did disagree. A location move (both rooms named outright) resolved the pair newest-first and a system move (one room reached through the system placed in it, the other named as the one it left) resolved it oldest-first, which is exactly the precondition the per-owner advisory locks assume away. The query now orders by id, matching what the two comments claim and whatrefSet.sorted()already did for the component and system tiers. The guard is the ordering itself, asserted two ways and deterministic in both; the concurrency test the issue asked for is kept as a liveness check and labelled as one, because driven against the unfixed ordering it survived over four thousand paired rounds without deadlocking and odds are not a guard. -
Settlement reads one clock, and a zero window stops arguing with it.
Settlecompared a sample’sts, written by Postgres, against anowsupplied by the Go process, so the verdict was a function of the skew between two hosts. At a zero settle window the comparison reduces to “is this sample stamped in the future”, with no margin at all to absorb the difference, which is how the setting whose whole meaning is “do not wait” became the one that could wait forever: a command that genuinely failed reportedpendingand never settled. It showed up first as an intermittent end-to-end failure and was reproduced on a branch containing no Go at all. Both settle paths now readnowfrom the database in their own transaction, which at issue is the very timestamp the intended row was stamped with, and a zero window is terminal before any arithmetic runs.Settlestays pure and still takesnow; what changed is who supplies it, at the cost of one round trip on each of the two paths. The alternative, stamping samples from Go, was refused as the larger ripple, and a tolerance was refused as the move that quiets a test without changing the behavior (ADR-0108). -
Two boardrooms in one room read differently. A divisible boardroom is two
boardsystems in one room, and the shipped system rule read the type alone, so both rendered “Boardroom”: the platform could tell them apart (boardroomandboardroom-2, ADR-0101’s suppression) and the operator reading the console could not. The rule now reads the ordinal under the component’s own{{if .Ordinal}}, and the estate’s two halves are the demonstration rather than two pinned labels spelling A and B over the top of it. What the issue and the ruling both described as one change was two, and the second is where the argument sits: the rule alone renders “Boardroom 1” for the only boardroom in a room, because{{if}}is false for an EMPTY string and a suppressed first name still owns the stored ordinal 1. So the data map’sOrdinalbecame the number the row’s NAME shows, asked of the mint rather than read off the name, which makes a label and a name unable to disagree about how many of a thing there are and costs the ability to author “Boardroom 1” for a system calledboardroom, a string this arc already calls the defect it was filed about. Every act that moves a system’s ordinal was re-derived and the set grew by none, because each of them already restamps unconditionally; the estate-wide invariant now runs a system rule that reads the ordinal, where the one before it could not have seen a hole in any of this. A shipped rule change restamps nothing, so an existing estate keeps both halves reading “Boardroom” until an operator runs/systems:recomputeLabels, which the seed, the architecture page and the operator-facing rule text each say where they are met (ADR-0101 amended). -
The Name column stops being the first thing a narrow screen drops. A list table is
table-layout: fixedand every column but Name declares a width, so Name takes what is left. That is what lets the identifier grow into a wide screen, and it also made Name the first column to give space up on a narrow one, to the point of vanishing: measured against the dev estate at a 1280 viewport, where the list card offers 973px, the Components table’s Name column was 0px wide while Tags kept all 340 of its pixels, and Systems was the same at 0px against 960px of declared columns. Locations, declaring 650px, had 173px left over and looked fine, which is the whole of why one page was reported and three were affected: identical markup, three outcomes, decided by the widths each page happens to declare. The remedy is one floor in the shared shell rather than numbers tuned per page: the table asks for amin-widthof everything declared plus a Name minimum, so the browser gives Name that much and the card (alreadyoverflow-x-auto) scrolls sideways when even that does not fit. Wide screens are untouched, sincewidth: 100%beats a smaller min-width and Name still absorbs the surplus. Held by a page test on each of the three pages (Name declares no width, and the table’s floor leaves it the minimum) and by a browser test that MEASURES the rendered column at 1280 and 1366, which is the tier the defect lives in: a column measuring zero pixels sat on main behind a green suite because nothing below a real browser does layout. -
The label pen leaves the list and lands on the field it owns. A display name the platform rendered from a label rule wore a full-text
Generatedchip in the identity cell, read by 18 flat-list pages and every tree. It charged the Name column the width of the word on every platform-labelled row, on the column a floor had just had to be put under, and it stated an ownership fact where an operator could do nothing about it. The chip is gone from both list renderers, and the fact is the lock on the display-name field of the edit blade: the create form’s own affordance, extracted so the two surfaces share one button, one pair of icons and one set of words rather than growing a second vocabulary for one idea. The NAME’s chip stays, beside the name on the component blade, which is the rule both now follow: a pen states itself beside the field it owns, where the operator can act on it. The whole-estate question the chip half-answered, which rows a rule edit would rewrite, is answered whole by<entity> previewLabels. Doing it closed a defect nobody had filed: every blade seeded its label input from the stored value and posteddisplay() || undefined, so opening the pencil on a platform-labelled row and saving a tag or a type posted the platform’s own rendering back as an override and took the pen silently. The field posts the pen’s own value now, which is the empty string while it is locked and is how the API says “still the platform’s”, so the same expression covers the no-op and the first way back the console has ever had (ADR-0104 amended). -
The Name column’s floor is re-measured now that nothing sits beside the label. The floor was 260px because the identity cell had to fit a label AND the label pen’s
Generatedchip; the chip left in the same slice, so the number it was tuned for is stale. Re-driven against the dev estate at a 1280 viewport, measuring each row’s name cell twice in one run (once with the chip’s exact markup injected back into the clone), the chip cost a uniform 69px on all 20 rows of the three pages, and the estate’s widest cell fell from 256px to 187px. The floor is therefore the old one minus the chip, 191px, rather than the “about 200” it was estimated at: the labels did not change, only the thing beside them, so the floor should carry exactly what it carried before. The method is written out beside the constant so the next move can be checked, and it was validated before the number moved by reproducing this comment’s own previous measurement (“Boardroom 2” wants 203px with its chip, recorded as 200). One page’s sideways scroll actually goes away: Components at a 1680 viewport now asks 1231px of a 1254px card where it asked 1300px. Systems still scrolls there (1301px) and Locations still scrolls at 1280 (991px of 974px), and nothing truncates on any page at 1280, 1366 or 1680. -
A preview is refused wherever the create it previews is refused.
POST /components:renderLabelresolved itssystemreference insystem:readwhile the create beside it had moved tosystem:update, so a caller holding the read floor and no membership authority was served a drafted label for a create the platform then refused, and the label it was served carried that system’s own type name. Nothing hit it in practice, because the console does not offer the picker to a principal that cannot use it, which is the agreement being kept by the caller’s good behaviour rather than by the platform. The draft now resolves that reference through the create’s own resolver, insystem:readandsystem:update, and carries the create’s conditionalsystem:updatepermission, so both halves of the gate rehearse and both routes answer the same sentinel: 403 naming the authority for a readable system, the non-disclosing 422 for one the caller cannot see. The LOCATION reference on the same two routes was checked in the same pass and is already aligned atlocation:read, deliberately, because a location is read and rendered into the label rather than written (ADR-0107, ADR-0104). -
A settle window is a duration, and the platform now says so.
settle_window_secondshad a default of 0 in four places and a floor in none, so a negative one was accepted by the column, the API body, the console and the seed loader alike. It is not a shorter wait:SettletestswindowSeconds > 0, so -5 behaves exactly as 0 does, which made it a value an operator could set, read back on the row, and never see honoured on any command of that type. The schema now floors the field at 0, so the generated client and CLI carry the floor too, and the gateway refuses one on create, on update and on the boot-seed upsert, the last naming the row the way its target refusals already do. Zero stays legal and unchanged: it is the documented way to say “settle immediately” (ADR-0108), and it is what the shippedrebootcarries. In the same pass, the settle-check’s comment claiming itsnow()is strictly later than the intended row’stswas corrected: READ COMMITTED does not provide that ordering, and while no verdict is wrong today (a negative delta ispending, and the zero case reads no timestamp at all), an invariant the isolation level does not give is one a later change can lean on. -
The deploy role stops claiming a reach a location grant has never had. Its operator-facing description, rendered in the Roles view and in the grant builder’s tooltips, said that granted at a location it “builds out and edits everything inside a subtree (add rooms, systems, and components)”. It does one of those three. A grant contributes to a resolved scope only when its scope kind can CONTAIN the resource, and each tree tier is contained by its own kind alone, so a location-kind grant fills no system-tier and no component-tier scope whatever actions the role carries: the shipped
tech-eastprincipal cannot create a system in its own building, and cannot read a component in it either. The gap was silent and expensive in exactly the way a stale sentence is: an admin granted the role expecting one thing, the console offered the surfaces, and the server refused. The description now says what the grant does, and two tests hold it there: a pure one over the embeddedroles.yamlthat computes the whole reach matrix through the same resolver the gateway uses (so a cross-tier rule landing shows up as a failing expectation rather than as prose going stale), and an end-to-end one that drives the component tier the way the system tier was already driven. The capability itself, a scope that spans tiers, is #10 and unbuilt; this slice is the claim. -
A series tiebreak is checked against the database rather than against a reading of the code. A single observed flake was filed as the series resolver breaking a
tstie on a random uuid, with the mechanism read off the resolver rather than off the failure. The premise does not hold, and the tiebreak the issue asked for is the one already there:property.idis a bigint identity column, soorder by ts desc, id descbreaks a tie on insertion order, and the test the flake came from cannot tie at all, since every declared write is its own transaction andtsdefaults totransaction_timestamp. No fix shipped for a mechanism that does not exist. What shipped is the proof: a test that reads the column’s shape out of the live catalog, so converting it to a random uuid fails loudly with the reasoning named, and that drives a genuine tie the public API cannot produce, resolving it to the later insert twenty times over. The ordering’s one real dependency is now stated where it is relied on:tsleads because the observed lane accepts a caller-supplied timestamp, so a clock stepping backwards between two writes to one series resolves to the earlier-written row, which no tiebreak can reach. Sixty-five repeats of the original test, forty of them under concurrent package load, did not reproduce the failure. -
The console stops answering a question only the operator can answer. A command type naming a target arm is asking to be settled against a reported value, so its settle window decides when a difference becomes a verdict. The create form seeded that field with
0and folded it withNumber(settle()) || 0, so an untouched field, a typo and a deliberate zero all reached the server as the same explicit0: a settleable type judged at the instant of issue, which nobody chose and no refusal announced. The value was never the defect. Zero beside a target is a statement of intent, the documented way to say “judge it now” (ADR-0108), and refusing the combination at the gateway would have reversed a decision accepted the day before and broken its own clock regression test, whose observable does not exist at a positive window. The default was the defect. The field now starts blank on the create form and the window is read through one rule both write surfaces share: a settleable type must state its window, and the create and the blade’s Save are refused until it does; a fire-and-forget type sends no window at all and takes the column’s own 0, which isreboot’s shape unchanged. Unstated survives as far as the body, where it is a field that is simply not sent, so it can no longer be confused with a chosen zero. What a stated zero does is now legible where it is typed, next to the field rather than only in the API reference, and a typed negative is refused there too:min="0"had been on that input since the command pillar landed and refuses nothing, because both submit paths are JavaScript (the drawer’s action bar and the blade’s Save sit outside any form), so native constraint validation never runs on the path an operator uses. The filed issue’s own account of the symptom was wrong and is corrected with it: a zero-window settleable command issettledwhen the observed value already matches,failedwhen it differs, andtimed-outonly when nothing has been observed, nottimed-outunconditionally. -
The admin directory stops reading at 1+3N (#671).
ListPrincipalsdrained its base query and then calledloadPrincipalonce per row, three statements each (the kind profile, the effective grants, the group memberships). Measured on the counting instrument that found it, the admin directory cost seven statements for two principals and sixty-seven for twenty-two, and it is the one directory that grows with the organisation rather than the estate, with no pagination to hide behind. It now costs four, whatever the page size: the base query, then one union over the three profile tables, one over the effective grants, one over the group memberships, assembled in memory by principal id. The shape is #648’s, reads keyed by id with the single-row function kept as the oracle, andloadPrincipalis unchanged and still the only pathGetPrincipaltakes.The projection did not narrow, and the console is why: the directory renders a grant COUNT and a badge per group a principal belongs to, so the list needs the same effective grants and memberships the detail blade does. A lighter row would have been the smaller fix and would have emptied two columns. Nothing about what the directory returns changed, which is what let the whole principal suite stay green with no expectation edited.
The kind profile is a union rather than a query per kind present in the page. A branch per kind would have been flat in page size too, but its cost would have depended on the MIX, a directory of humans, service accounts and nodes costing two statements more than one holding only humans, and a count that varies with the fixture’s composition is a count no assertion can state as a number. The cost fixture holds a node beside its humans to keep that honest rather than assumed, and grows the grants and the group memberships with the page as well as the principals, because a page whose rows carry no grants leaves the grant assembly flat by accident.
Two gates, both of which the batch had to earn.
TestBatchPrincipalLoadMatchesSingleholds the batch to the single-row loader field for field over a fixture carrying all three kinds, direct grants, inherited grants, both, neither, and a group with no display name; equality, not improvement, since a batch that answers differently from the loader every other read path uses is a second implementation rather than a fix. And the batch refuses what the oracle refuses: a principal of a profiled kind with no profile row is an error on both paths, not a directory row silently missing its username.TestListPrincipalsCostIsPerRowToday, which pinned the defect at its measured 1+3N and said in its own failure message that the fix was to delete it, is deleted;TestListPrincipalsCostIsFlatInPageSizetakes its place beside the other nine. -
The alarm write path gets the instrument that can see it, and it is not flat (#674). The recompute behind every alarm the platform raises was the one hot path with a two-digit statement count and nothing measuring it. A wall-clock benchmark of it was written during #651 and deliberately dropped: against the measured 262 us round-trip floor it is about three-quarters transport, so doubling every query plan inside it would move the number by ~25%, barely above its own spread. Counting is the instrument that does not care that transport dominates.
The issue named two candidate growth dimensions, the number of alarms and the number of roles the component fills, and asked which one the code actually varies over, because a fixture that holds the growing dimension constant is flat by accident and this repo has made that mistake twice. Measured over seven fixtures, two of them held back as out-of-sample predictions, one closed form fits all seven and predicted the last two before they were run:
raise = clear = 12 + 5*S + 4*LS is the number of slots the component fills, L the number of distinct locations above the systems holding them. So the first candidate is false and the second is true. The count is flat in the number of alarms, because a component’s open alarms are folded by one
array_agg; it grows at five statements per staffed system (an advisory lock, a role resolution, and a recorded verdict that re-takes the lock) and four per ancestor location. The 58 the issue reports is this shape’s minimum, one system three locations, counted as the raise and the clear together.Both facts ship as assertions, and the shape of each follows what is true rather than what would look tidy. The flatness in alarm count is asserted with an explicit guard that the two measurements were taken over genuinely different open-alarm sets, since a fixture that quietly deduplicated its alarms would report a beautifully flat number while varying nothing. The growth is pinned as an equation, the way #671’s defect was pinned before it was fixed, so a change is reported as which term moved; a ceiling generous enough to look comfortable would have hidden the slope underneath it. Reducing the count is explicitly out of scope: a reduction with no measurement in front of it cannot be shown to have worked, and this is that measurement.
-
The systems list stops fetching health once per row (#653). Every row of the systems list rendered a health badge that owned its own query, so a page of N systems fired N HTTP requests on first paint, and each one resolved every role the system needs, its occupants, their alarms and thirty days of recorded transitions in order to render one word and a colour.
staleTimesoftened the refetch and did nothing for the first load, which is the one an operator waits on. Measured on a twelve-system page: twelve requests before, one after.The badge needed no change. It has always preferred a verdict the caller hands it and only fetches when it has none, and the fix is at the call site: the page reads verdicts once and passes them through that prop. What the call site does NOT do is also load-bearing. It passes the verdict and not the system id, because the id is what makes the badge fetch, and a cell that passed one while the bulk read was still in flight would put the per-row request back precisely where it was removed from. The column stays quiet until the map lands, which is the behaviour it already had.
The read the issue named,
GET /views/estatefrom #632, is not on this branch’s ancestry, so the other option the issue offers is the one taken: a narrower bulk read of exactly what the column renders.GET /systems:healthanswers one verdict per system in the caller’s read scope, in one statement whatever the estate size, built on thedistinct onpass over the property series thatlocationVerdictalready ships rather than a correlated latest-row subquery per system. Its scope isListSystems’ scope by construction (the samescopedListSQLover the same table with the same binds), so a caller gets a verdict for exactly the rows it gets, and an empty scope is an empty list rather than a refusal.Two things are asserted rather than assumed, because both are places this could quietly go wrong. The bulk read computes nothing: it reads the recorded series and reports a system with no recorded row as healthy, so it is held to
SystemHealth’s own live-computed verdict over a fixture carrying all three verdicts and a system nothing has ever recomputed, which is the row that default exists for. And the health column’s freshness now depends on a second cache key, so the role and member writes that already invalidated the per-system key invalidate the bulk one alongside it; without that the column would go stale silently, which is exactly the regression #627’s review round 3 caught in the same place.The visible UI is unchanged, deliberately: the same badges in the same column. The measurement is the request count, asserted in the page test against a twelve-row page loaded cold, with the per-row endpoint still served by the fixture so that the old implementation fails on the NUMBER rather than by rendering nothing.
-
The health reads reach an index, and a perf guard may ask the planner what a query can reach (#725, ADR-0094 as amended). The bulk verdict read shipped in #653 made a systems list cost one statement instead of one per row, and the win was entirely in round trips:
propertycarried no index the read could use, so one scan of the whole series replaced N health resolutions. This slice is the other half, the work done inside that statement, and it starts by settling what a guard on it is allowed to ask.The issue framed it as a standoff between a house rule (a guard asks the planner, not the catalog) and an accepted ADR (no
EXPLAINassertions), and there is no standoff: ADR-0094 deferred them and named its own revisit conditions, neither of which is met here. What it deferred was asking the planner what it prefers, and it was right to. On a small fixture Postgres correctly chooses a sequential scan even over a perfect index, so an assertion about the chosen plan pins the fixture’s size. Asking whether an index is reachable at all is a different question, and the difference was measured rather than argued: planned withenable_seqscan = off, the health reads’ scan ofpropertywas the same index scan carrying the same index condition on an empty database, on a 45-row fixture with no statistics, and on that fixture analyzed, while the joins around it moved between hash and merge and a sort came and went. So the deferral of preference assertions stands untouched and a usability assertion is carved out, asinternal/storage/storagetest/accesspath: one relation’s access path, index name and index condition, gating inmake testbeside round-trip counting.The condition half is not decoration. Two of the four mutations run against this guard leave the index NAMED in the plan and empty out its condition (coercing the filtered column, dropping the leading column from the filter), so an assertion that greps for the index name passes while the read walks the whole index and filters afterwards. A third, giving the partial index a predicate the query cannot prove, leaves
pg_indexesreporting the index present and the read scanning the table, which is the failure this instrument exists for and the reason a catalog test would have proved nothing. The guard explains the statement the gateway really issued, captured off the pool tracer (querycount.Counter.Callsnow records arguments beside SQL) rather than copied into the test.Then the index, and it earned its place on measurement, at 1,521,600 property rows (334 MB, 1,500 systems, 7,500 components, 18,000 recorded health rows): the bulk read went from 51 ms to 10 ms, the location rollup from 45 ms to 0.7 ms, and the transition probe every recompute pays from 6.1 ms to 0.06 ms.
property_system_owner_idxleads withproperty_type_idbecause both reads fix it by equality, which leaves the rest of the range ordered by(system_id, id desc), exactly theirORDER BY, so no sort is needed; the reverse order was built and measured slower once systems carry properties other than health. It is partial onsystem_id is not null, which is what makes it free on the telemetry lane: 150,000 component-owned inserts cost 2237 ms with it and 2237 ms without. A coveringinclude (value)variant measured faster still (8.4 ms) and was rejected rather than shipped, because an index tuple is not TOASTed, so a property value over about 2.7 KB would fail the INSERT rather than the read. A concurrent build was rejected too, and the reasoning is in the migration: it cannot run in dbmate’s transaction, and a failed one leaves an invalid index that the retry’sif not existssilently skips, which is the same silently-unusable-index class this slice exists to close. -
The rule language’s function set stops being typed four times (#701). Adding
wordsin #657 meant editing thetemplate.FuncMap,FuncNames(), the AST allowlist and the prose that teaches the language, and forgetting any one of them failed differently: a name in the FuncMap alone parses nowhere, a name in the allowlist alone is just a hole, a name inFuncNamesalone is published and unreachable, and a name missing from the docs simply does not exist as far as an operator is concerned. That is the generate-first drift class the repo’s own rule names, inside the engine that renders the estate’s labels.The set is now declared ONCE, as an ordered list of name, summary, worked example and the builder that produces the implementation, and the other four are readers of it. The safety property ADR-0098 argues for is unchanged in what it guarantees and stronger in how: a function must be in the FuncMap AND the grammar to be usable, and deriving both from one declaration makes the two incapable of disagreeing rather than merely expected to. Adding a function is still a deliberate act with a test to change, because the closed-set test names the members and the committed artifact has to be regenerated.
Two tests were owed rather than one. The old set was walked in ONE direction (every published name parses in a real rule), so a grammar entry with no implementation behind it was the direction nothing checked; the converse is now asserted too, and the allowlist may differ from the FuncMap only by the named builtins. The docs table is rendered from
docs/src/generated/label.json(cmd/labelgen, drift-gated the way the seed and identity artifacts are), and each row’s example is EXECUTED through the engine on the way into the artifact, so what the table teaches a function does is what the function did rather than a claim beside it. -
The seeded type trees are rendered rather than typed (#678).
seed.jsoncarried eleven shipped sets and not the two inheriting classification registries, so the only copy of thesystem_typetree in the live docs was a sentence in core entities naming all eleven rows and their nesting, and thecomponent_typesection taught its taxonomy through examples that stopped at ”…”. The issue’s own framing was half right and worth correcting: there was no CLOSED hand-written enumeration ofcomponent_typein the live docs, only an open-ended one, which is a different defect (a set that cannot drift because it never claimed to be complete, and also never told an operator what ships).Both registries now render from the seed, and the render keeps a blank fact BLANK. That is the whole point of publishing them:
boardstates its own stem and abbrev and leaves its icon toroom, and a table that resolved the chain on the way out would teach the opposite of ADR-0095’s first-non-null walk while looking tidier. The location types the same bullet list enumerated a second time now point at the guide that already renders them, so the estate’s shipped shape is stated in exactly one place per set.The drift test grew the assertions the shape needs rather than a row count: a child points at its parent, a root carries the stem it has no ancestor to inherit, an inheriting row’s fact stays empty, and no row names a parent declared after it, which would silently drop a subtree out of the rendered tree.
-
The roles table stops being a second copy of the seed (#722). Identity and access carried a hand-written matrix of the five official roles and what each can do, beside an ASCII inheritance diagram, while
seed.jsonalready renders the same roles with their declared and effective permissions resolved through the authorizer’s ownrbacpath. #714 had already had to correct one stale claim in two places because of it.Two more had accumulated, both found by reading
roles.yamlrather than the page. Theoperatorrow claimed “ack/snooze/resolve alarms”, a capability the role holds no permission for and the API publishes no route for, while omittingtelemetry:push,command:issue,file:create,deleteand the four catalog grants it does hold. The diagram drewadmin <- owner, andownerinherits nothing at all: its permission is>, so there is nothing an edge could add. Neither was written wrong; both were written once and then left behind by the seed, which is the entire argument for rendering.The table and the diagram are now one
SeededSetrender, and what the permission strings cannot say stays hand-written beside it, per role: why the IAM directories are out ofviewer’s reach, why an admin-sensitive secret is a 404 rather than a 403, why adeploygrant reaches exactly one tier, whyadminis not the superuser. That split is the rule the page now follows, and it is the same one the access guide already followed. -
The docs site’s OpenAPI plugin comes back inside its declared support range (#704).
starlight-openapi@0.26.0declaresastro >=7.0.2and@astrojs/starlight >=0.41.0; the site runs astro 6.4.6 and starlight 0.38.5. pnpm warns where npm refuses, so it installed and built anyway, and nothing on the 331 pages we publish today was broken by it. Running a plugin outside its support range is still a latent failure with a misleading shape: the first page to hit a starlight API that only exists in 0.41+ would read as a content bug.What 0.25 gives up is worth stating exactly, because the ruling asked and the answer is checkable rather than assumed: nothing. 0.26.0’s changelog carries one entry, “Adds support for Astro v7, drops support for Astro v6”, and that is the whole release. It is not that 0.26’s features are unused here, it is that 0.26 explicitly dropped the Astro major this project runs.
^0.25.0resolves to 0.25.3, which carries every feature of the 0.25 line (operation snippets, request and response snippets, the overview operation list, on-demand rendering) plus its three fixes, and its peers (astro >=6.0.0,@astrojs/starlight >=0.38.0,@astrojs/markdown-remark >=7.0.0) are satisfied exactly. Moving to astro 7 remains its own slice whenever it is wanted; it is not owed to this plugin. -
The type chain is walked once, in the gateway (#695). The naming half of this closed in #702, which made the draft route answer with the name itself; what was left was
lib/typechain.ts, the console’s own first-non-null-wins climb of both type registries, running againstresolveTypeFactsin Go for the ICON. A drifted stem produced a wrong address; a drifted icon produces a wrong glyph, so this is the same duplication with a much smaller consequence, and it was fixed the same way rather than differently.Both registry listings now carry
resolved_iconbeside the rawicon, andlib/typechain.tsis deleted along with the inline copy of the same climb that had grown in the Component Types page. The cost was weighed rather than assumed: the listing already loads the entire registry in one unfiltered query and the handler already indexes it to fill each row’s parent name, so the walk is a pure pass over rows in hand and adds no query. Resolving PER ROW through the existingResolveTypeFactswould have been one query per level per row, turning a one-query list into a hundred, so it was not done that way; the field is on the listing only, and a single-row write response does not carry it, because nothing reads an icon there.The two Go walks that remain are not an accident and are not left on trust. One reads a node at a time through a caller’s own querier, because the name generator and the label renderer resolve facts INSIDE a transaction and must see the write still in flight; the other is a pure pass over a loaded listing. A test runs both over every seeded row of both registries and compares, which is what makes two walks in one package safe and is the instrument the old cross-language pair never had.
It also settled a disagreement that was already live rather than hypothetical. The TypeScript walk treated an empty-string icon as ABSENT and kept climbing; the gateway’s treats it as a value and stops, because the column is nullable and null is the “inherit” signal.
PATCH {"icon": ""}stores that empty string today, so the two answered differently for a row an operator could actually create. The console now shows what the gateway resolves. Whether that patch should clear the field instead of storing a blank is a separate question about the write path, and it is left alone here rather than changed under cover of a read-side fix. -
A registry fork locks before it reads, in a statement of its own (#709). A fork writes the whole mutable row back rather than patching columns, so it gives up the lost-update immunity a column-wise
coalescewrite has: two operators editing different fields of one shipped row at once both compute an image from the same starting point, and the second discards the first’s field with no error and no audit anomaly, both writes in the log.UpdateComponentTypeandRestoreComponentTypetook no lock at all, andUpdateLocationTypeandRestoreLocationTypetook one that did not work.That second half is the finding, and it was found by writing the test rather than by reading the code. #703 closed this on the location path with
for update of lton the read that resolves the shadow, and the issue named that as the model to copy. Driven by two concurrent forks of one shipped row,location_typelost an edit anyway. At READ COMMITTED the statement’s snapshot is taken when the statement begins, before it blocks, and a waiter released by a row that was locked rather than updated gets no EvalPlanQual recheck, so the left join it already evaluated still reports the shadow as its stale snapshot saw it. The lock serialised the two transactions without making the second read what the first wrote.Both registries now take the row’s lock through one shared
lockRegistryRow, in its own statement, before the resolving read; the read is then a new statement with a new snapshot taken after the lock is held.ADR-0095’s adopter contract grows a fourth fact saying so, since this is the half of the primitive an adopter cannot infer from the shadow’s shape. The test is a paired-fork loop over both registries, and it has teeth in both directions: it fails within two rounds against either unlocked form, including the one that shipped as the fix. -
The history windows are bounded by the database’s own clock (#719). Six read paths built
time.Now().UTC().Add(-window)in the server process and then filtered atscolumn the database stamps withdefault now(): 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. Two clocks on one comparison, which is the defect ADR-0108 settled for settlement. Nothing is wrong at a 30-day window, where skew of a few hundred milliseconds moves the edge by an invisible amount; what is wrong is that the edge is decided by two clocks with nothing bounding the difference, so the same read answers differently against a database on another host than against a local one.ADR-0108’s own answer, reading
select now()in the transaction, costs one round trip, and it was weighed rather than copied. These are read paths, and the three slices before this one (#653, #725, #726) were spent taking round trips OFF them. It did not have to be paid:Settlecompares in Go and needsnowas a value, but a history read only hands its boundary to awhere, and a bound can be computed where the data is. The window now travels as a duration and the query filtersts >= now() - make_interval(secs => $n). One clock, six read paths, no extra statement anywhere. A window of zero stays the unwindowed read and binds nothing at all.The regression test says what it proves and what it does not. Two clocks that agree return the same rows as one, so nothing a fixture can build tells them apart on a box where the process and the database share a clock, which is every box the suite runs on. What is observable is whether an instant crosses the seam at all, so the test captures the statements each read really issued and asserts that none of them binds a
time.Timeand that exactly one boundstsagainstnow(). A process that sends no instant is not the one deciding the boundary, whatever its clock says. -
The Docker-less test hatch is safe at any parallelism, and the gate’s own default is 1 (#662).
OMNIGLASS_TEST_ADMIN_DSNpoints the harness at an already-running Postgres instead of starting a testcontainer, for environments with no Docker daemon. Two names made it unusable with more than one test binary at a time:og_test_<n>, from a counter that starts at 1 in every process, andog_template, a fixed name that the template build drops and recreates, so one binary could drop the template another was copying from mid-run. Both now carry a per-process tag (the pid, which separates binaries on one host, plus a random half, which separates a shared Postgres reached from two machines and a pid reused after a crash), and the template teardown takes a name rather than reading the package’s, so “the template this binary built” is a property of the call.Exposure was zero: nothing sets the variable, and the hatch was already unusable concurrently because of the first collision. It is fixed so that raising parallelism on a bigger machine does not spring a trap that was set here.
The gate’s own
TEST_PARALLELdefault drops from 4 to 1 in the same change, on the architect’s ruling. Four concurrent testcontainer Postgres instances plus four link jobs exhausted a WSL2 VM’s memory and took the whole VM down, not just the run, and a gate that can take the machine with it is not a gate. It is a floor rather than a ceiling: the override the comment already documented (make test TEST_PARALLEL=8) is unchanged, and a machine with the memory for it should raise it.One expectation moved, deliberately, and it is the point of the change rather than a casualty of it:
provision_test.goasserted the template’s whole literal name,og_template. It now asserts a prefix carrying this process’s pid, and that exactly one database matches it. A test that pins the fixed name is a test that pins the defect. -
An operator acknowledges an alarm (#728). An alarm records that a human has seen it, and the console shows the queue nobody has looked at yet. The
alarmrow gainsacknowledged_atandacknowledged_by,POST /components/{name}/alarms/{id}:acknowledgesets them behind the newalarm:acknowledgepermission (seeded onoperator), the list read gains anunacknowledgedfilter, and the component’s Alarms panel gains the action plus an unacknowledged indicator.The shape of the whole slice comes from one fact read out of the code rather than assumed: an alarm’s raised state belongs to its condition (the one-open invariant is per
(component, dedup_key), ADR-0075), while an acknowledgement is a fact about a person. So the acknowledgement is two nullable columns orthogonal tocleared_atrather than astatusenum, andAcknowledgeAlarmis the one alarm write that does not recompute health: acknowledging is not fixing, and a transition recorded there would stamp a change at a moment when nothing about the estate moved.Three decisions were left open by the definition and ruled here, each recorded in ADR-0109. The permission spells its verb out, like every other seeded action, because a permission string is operator-facing. A second acknowledgement is idempotent, keeping the first person and the first time and writing no second audit row, decided in the database by a conditional
where acknowledged_at is nullrather than by a read-then-write. Anddeploydoes not get the grant: an alarm resolves scope on the component tier, a location-scopeddeploygrant reaches no component at all (#714), and the shapedeployis actually granted in is exactly that one, so the capability would have read as given and refused when used.Snooze and resolve were refused rather than deferred. Snooze suppresses notification and the notification registry is unbuilt (#618), so it would have been a column that lies; resolve is either the existing clear under a second name or an unspecified concept. The three-verb permission string that had sat in the test fixtures and in the identity-access page for most of a year turned out to be neither seeded nor enforced by anything, and the fixtures that carried it now use vocabulary no route will ever stamp.
Two expectations moved.
internal/rbac/rbac_test.goasserted the read floor againstalarm:ack, a permission that did not exist; it now asserts the same floor against the realalarm:acknowledge.internal/seed/seed_shrink_test.gousedalarm:ack,snooze,resolveas its retired grant and now useswidget:frobnicate,polish, since the mechanic under test is the upsert’s authority and borrowing a real resource’s vocabulary for it is what left phantom prior art in the repo in the first place.TestALocationGrantOfDeployReachesOneTiergainedalarmin its matrix, so thedeployquestion resurfaces on its own if the cross-tier expansion (#10) lands.One divergence recorded and not fixed: the identity-access page’s three-way status split says a target the caller can read but not act on is a 403, and every scoped route in the platform answers 404 there, this one included. Fixing it for this route alone would have made it the only route that answers differently from its own siblings, so it is one shared refusal primitive in #736 and the page now marks the branch as design.
-
The last stored function retires, and a principal’s identifier becomes the gateway’s answer (#564).
principal_label(uuid)was a stored SQL function,coalesce(human.username, service.label), and it was two defects wearing one name: 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 of its branches return an identifier. No test named it, so it could have returned anything and the suite would have agreed.The answer now lives in
internal/storage/principal_ident.go, which names the two sources once and renders every shape a statement can need from it, so a caller picks a shape and never a column. A read over many rows LEFT JOINs the sources and folds them in Go. Two positions cannot join:alarmColsis read by anUPDATE ... RETURNINGandRETURNINGcannot left-join, and the audit insert runs inside the caller’s transaction on every operator write, where a Go fold would cost a second round trip and the alarm write path pins its statement count as the exact equation12 + 5*slots + 4*locations(#674) that counts that insert. Both of those render the sources as correlated sub-selects, and both are bounded reads. Which shape is measured rather than assumed: on a 500-member group roster the sub-select shape projected AND sorted on costs 3011 shared buffer hits and 2000 index searches where the join costs 18. Moving the policy out of the database was the point; paying a round trip on every operator write, or two thousand index probes on a roster, was not part of it, and the pinned equation is unmoved.Only the ORDER is written twice, so
principal_ident_test.gois the invariant between the two shapes: it drives a human, a service account, a node and an unknown id through both against a real database. Anodestays out of the resolution exactly as the dropped function had it, so no audit row changes what it says. Recorded as ADR-0110, withprincipal_labelappended to the vocabulary denylist. -
A service account’s identifier is a name, and it is unique (#563).
servicehas exactly two columns and the second one is what identifies the row: the username analogue forkind=service, the only operator-visible handle it has. It was calledlabel, and it was on the wire three lines from the human body’sdisplay_name, so two different concepts read as one. It is nowservice.name,nameon the wire, and Name in the console.The uniqueness question was answered rather than inherited. The column carried no index and no constraint; it now carries
service_name_key, matchinghuman_username_keyandnode_name_key. Not for symmetry: the string is denormalized as bare text intoaudit_log.actor_usernameat write time and into an alarm’s acknowledgement on every read, and a duplicate makes both unresolvable after the fact with no uuid left beside the text. The migration copes with duplicates rather than assuming there are none, in the foundation / backfill / floor shape: the oldest row of each duplicated set keeps the name (principal.idis uuidv7, so it sorts by creation time) and every other is suffixed with its own principal id, unique by construction. The harness migrates an empty database, so running the chain forward can never exercise that sweep; a test stands the schema between the rename and the floor, writes three accounts under one name, and runs the extracted SQL twice, then lands the constraint on the result.The identity declaration moved with the column, and grew the guard that would have caught it.
servicewas declaredShapeIDOnly, which publishes “nobody names it”, and that was believable only while the identifier was spelledlabel. It is nowShapeHumanNotAKeywith its reason, and a new guard reads the generated schema facts and fails anyShapeIDOnlytable that carries aname.The clearest illustration of why the word had to move is the group roster. It read
coalesce(h.display_name, s.label, '')into a single field, a human’s friendly string falling through to a service account’s identifier; after the rename the same chain readscoalesce(h.display_name, s.name, '')and the mistake is on the page. It is now two fields, the identifier (name, resolved by the gateway’sprincipalIdent) and the label (display_name, which only a human has a column for). An API test had been asserting a service account’s identifier out of a field calleddisplay_name; it now asserts it out ofnameand asserts the display name is empty. Recorded as ADR-0111.Breaking wire change on two read shapes (
svcBody.labeltoname, and the roster’susernametoname). No CLI flag moves: neither is a request field. -
A generated flag carries the schema’s own type (#711). Every body flag the CLI generator emitted was a string, and every non-string field was coerced at run time by
jsonOrString. So the spec saidinteger, the flag saidstring, the generated CLI reference publishedstring, and an operator who typed a word learned about it from the server’s 422 after a round trip that had already authenticated. That is the generate-first drift class the repo’s own rule names, sitting inside the generator: a fact the spec states, restated by hand as something else.cmd/cligennow maps the property’s type to the flag that carries it, so--settle-window-seconds soonis refused by the shell before a request is issued,--ttl-daysis anintand--sensitiveaboolin--helpand in the reference. A structured field keeps ONE string flag parsed as JSON, and that is a ruling rather than a leftover (ADR-0112): a nested value has no shell-native flag type, andnullhas to stay sendable because it is what clears a field named inupdate_mask. A nullable STRING is the single exception, since this API clears a string with the empty string.The tests drive the REAL generated tree against a canned server rather than the generator’s model: a word for an integer flag is refused with the server as a tripwire that fails the test if a request was issued at all,
--settle-window-seconds 15arrives on the wire as the JSON number 15, and both spellings of the object case are pinned (--name-rule '{...}'and the--name-rule nullthat clears it under the mask), so a later move to per-leaf flags cannot quietly take the second away.One documented line broke, and the guard that found it is the point. A bool flag reads
--propagates falseas a positional argument, so--required truein the CLI guide could no longer work; the docs flag check now fails on a bool flag handed a space-separatedtrueorfalse. Two expectations moved incmd/cligen/main_test.go, both on the boolean:propagates.JSONwastrueand isfalse, and the rendered body line wasbody["propagates"] = jsonOrString(fPropagates)and isbody["propagates"] = fPropagates.The issue’s own example was wrong and is corrected here. It names
expected_ordinalas one of the two fields that surfaced this; the #702 review replaced that field withexpected_nameandinternal/docslintrefuses the word, so there is no integer field by that name to cover.settle_window_secondsis the integer under test in its place. -
The label data map is declared once, and the docs render it (#729). One paragraph away from the function table #701 had just made generated, the keys a rule may READ were still typed out: in
core-entities, in twolabel_ruleAPI field descriptions, and a third time in the map literals that build them. This arc changed that map three times (#682 built it, #685 added the placement facts, #693 changed whatOrdinalreports) and each time the prose had to be found and hand-edited.Each kind now declares its map ONCE, as an ordered list of key, summary and the accessor that produces the value, and
labelDatabuilds the map by ranging that declaration. The docs renderdocs/src/generated/labeldata.json(cmd/labelgenwrites it beside the rule language’s own artifact, drift-gated the same way), one table per entity kind rather than a union, because the differences between the three are the design: a location has no product, no vendor and no placement fact, and the reasons live in the declaration’s own comment now instead of in three places.The render is per kind and it carries a description per key, because one key needed one. Since #693
Ordinalis not the stored ordinal: it is the number the row’s NAME shows, empty when an operator named the row or when the mint suppressed the first of its stem, and a bare list of key names taught the opposite of that.A live drift fell out of doing it. The two
label_ruledescriptions, which are the console’s field help and a row in the generated CLI reference, enumerated the map as it stood before #685: an operator was taught seven keys where a rule could read nine, andLocationLabelandSystemTypeLabel, the two the epic’s worked example is built from, were missing from the surface an operator meets them on. A Huma description is a struct tag and cannot be built from the declaration at run time, so a test reads the generated OpenAPI and holds every such description to the declared key set and to the engine’s own function names. -
The decision log stops documenting a lock key the code left behind (#717). ADR-0056 carved health out of the uuid conversion and stated why: its advisory lock hashed
health/<kind>/<name>, so a mixed currency would hash two keys for one owner and silently stop serializing. The lock has hashed the row’s id since the identity epic (#627) landed its addressing slice (#647).This is more than a stale sentence, and the connection is the point: a name-keyed lock partitions an estate only while names partition it, and that same epic scoped a location’s name uniqueness to its placement, so two rooms under different buildings may both be
415a. The keying scheme stopped being safe at exactly the moment the epic made names non-unique. The code moved and the log did not, so the log was documenting a scheme that would be a live defect if anyone implemented it from the page.The entry is amended in place rather than renumbered, the original bullet left standing with a forward pointer, since the log is append-only and its argument (one currency per lock key) is the one that reversed its conclusion. The health page needed no change: it has said “owners are locked by id, in one order” since #670 moved the lock ORDER for the same reason. The build log’s own copy of the old claim is left exactly as it shipped, which is what this page is for.
The fact now has a test rather than only a paragraph. The key moved into one named function (
healthLockKey) and a unit test asserts what the amendment claims: two same-named rooms do not share a lock, one owner keys consistently, and the owner kind is part of the key. -
The console’s validation attributes were decorative, so the rule moved to TypeScript (#724). Found while closing #718, whose brief asked for a
min="0"on an input that had carried one since #411 and had never fired once. The browser enforcesrequired,min,maxandpatternon 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 save from anonClick.The audit decided the ruling rather than following it: 21 attributes on 24 rendered controls, 17 sites on a surface with no form submission, and the remaining four (three on Login, one on the forced password change) sitting in forms whose submit button is
disabledin exactly the states native validation would have refused. Zero of the twenty-four could ever fire, so a reader could not tell a live attribute from a decorative one because there were none of the first kind.So the rule is one vocabulary (ADR-0113): a pure function judges the typed value, the surface renders its message inline beside the field, and the binding’s
disabled/validrefuses the submit, which reads the same on a form and on a blade. Making the attributes live instead (form.requestSubmit()from the rail) 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 the inline message.One rule was genuinely missing rather than duplicated. The token drawer’s
min="1" max="365"had no TypeScript behind it, so a 400-day token was refused by the server’s 422 after a round trip; it istokenTtlErrornow, asserted through the drawer’s own rail button rather than by calling the validator.aria-requiredreplacesrequiredon the eleven fields that carried it, since a screen reader should still hear the fact;type="email"andtype="number"stay, because an input type carries keyboard, autofill and spinner behaviour and is not a claim about refusal.web/src/validation-guard.test.tsscans every.tsxand fails on a native constraint, with a self-check that the scanner can still find one (its first version could not: a JSX attribute written after an arrow-function handler defeats any regex that stops at the first>). -
An inherited type fact goes back to inheriting.
stem,abbrevandicononcomponent_typeandsystem_typeare nullable and inherited, NULL meaning “walk to the nearest ancestor that sets one”, and until now the console could destroy that state but never restore it. Two earlier slices stopped both edit blades writing""over a NULL, which was ending the walk for a node and every descendant under it; what neither could then spell is the opposite move, a node with a fact of its own edited back to inheriting its parent’s. Emptying the box sent nothing, the coalescing patch kept the old value, and the console silently retained a value the operator had just deleted.The instrument was already in both handlers, one column over.
label_rulehas honoured the house three-state string sentinel since it landed (omitted is unchanged,""clears to NULL, a value sets), so all four columns are now the same line in bothUPDATEs, and the fork leg decodes it too, since a shadow image is read back as the row. The mask was the wrong tool and ADR-0114 records why: it clears a nullable object, which has no empty value to overload, where a string has one already.The hard part was validation, and it was on the wire rather than in the handler.
stemcarriedminLength: 1and the name pattern on the PATCH body, so an empty box was a 422 in the validator before any handler ran and no client could reach the capability at all. TheminLengthgoes and the character rule is wrapped in an optional group,^([a-z0-9][a-z0-9-]*)?$, the spelling a name rule’s own stem already ships: exactly one new string is admitted, andBad Stem,-leading-hyphen,UPPERand a trailing space are still refused on both registries, with an e2e that says so. Create keeps itsminLength, because a row that does not exist yet has nothing to clear. A root still cannot clear its stem: there is no ancestor behind it, so create’s refusal now guards the second path that reaches the same broken row.Proven by testcontainer integration on both registries (the clear, the walk resuming at the ancestor’s value, one fact clearing without disturbing the two beside it, the root refusal) and at the wire, where the fork leg is tested through a consequence rather than a column:
abbrevisomitempty, so a shadow holding""and a shadow holding nothing read back identically, and only the name generator can tell them apart. Forking a stem onto shippedceiling-mic, clearing it, and watching the drafted component name go back to the parent’smic-1is what the assertion is. -
The console can set a name rule, not only clear one. A location type carries an optional name rule, and having one is the type’s opt-in to the platform naming the locations it classifies. An earlier slice gave the console the exit and no entrance, which made the affordance half a control: it could undo a state it could not create. It mattered more than an ordinary gap, because after ADR-0103’s reversal no shipped location type carries a rule, so generated location names were reachable only through the API or the CLI and the capability shipped effectively unreachable for the operators it was built for.
A rule is a declaration rather than a template (ADR-0102), so the editor is small: a tick box, a stem, and the flag that suppresses the number on the first of that stem under one parent. The rule’s PRESENCE is the opt-in, so the tick box is its existence rather than a fourth field, and the clear moves inside the editor: unticking it is what turns naming off. That write still spells the clear the one way the wire has for a nullable object, the field named in
update_maskwith no rule in the body, and because a mask governs the whole write it names every field the blade writes rather thanname_rulealone.What the editor says a rule will produce comes from the server. A
name_rulenow reads back withexamples, the first two names it mints, produced by the samenameMinta create allocates from, and the blade composes its sentence around those two strings: “Named wing, then wing-2, within their parent.” Nothing underweb/knows that a counted name is<stem>-<n>any more, which is the answer #702 took for the drafted name applied to a rule rather than to a row. An UNSAVED rule is told nothing about its output on purpose, since the only honest source is the mint. The stem’s character rule is restated in TypeScript and refuses the save inline (ADR-0113); the 90-character ceiling is not, because that number is arithmetic over the mint’s output space rather than a name rule.Two things this found. The mint’s own refusal, a rule that mints legally at ordinal 1 and illegally at the ceiling, is unreachable through this body:
stemcarriesmaxLength: 90and 90 plus the widest provable ordinal is exactly the 100-character name cap, so every stem the schema admits is legal at both ends. The refusals a surface renders are therefore the schema’s, and the console had been rendering none of them: Huma’sdetailfor a schema 422 is always the literal “validation failed”, with the field and the reason inerrors[], whichdescribeErrordropped on every console surface. It appends them now.Proven at the wire by comparing the served examples with the names two nameless creates actually get, on all three rule shapes, and by opting the shipped
floortype in: the edit forks the platform’s row, a nameless create then stamps the forked rule’s first example, and:restoretakes both the fork and the rule away. -
An inherited fact shows what it inherits, and Restore reads default. #716’s clear made the empty box reachable on purpose, and an empty box said nothing: the blade’s placeholder read “inherits from its parent”, which announced that inheritance was happening and never what would be inherited. The list cell had answered this all along; the blade, where the editing happens, had not.
The registry listing now serves
inherited_stem,inherited_iconandinherited_abbrevbeside the raw fields, each with the NAME of the ancestor the value comes from (ADR-0115). It is a different question fromresolved_icon, which answers what a row SHOWS and is therefore the row’s own value on every row that states one: a placeholder asks what the row would show if it stated nothing, so answering it with the shown value would print the string an operator had just deleted back at them. One walk intypechain.goanswers both, which is why the agreement test against the query walk widened from the icon to all three facts rather than leaving two unchecked.The console renders it in three places, and the lock is deliberately not borrowed for any of them: ADR-0104 gives the lock one meaning, the platform owns this value, and an inherited fact is one an operator MAY set. The placeholder carries the value (a placeholder natively means “leave this blank and you get this”). A teal provenance dot beside the field’s label says the value comes from somewhere that is not this row, in read and in edit alike, because Save leaves edit mode and that is where an operator lands the instant they clear a box. And the hint carries the one thing neither of those can: while the box HOLDS a value, it says that emptying it returns the field to inheriting, and names what it would inherit. Nothing climbs the type chain in TypeScript, and the web fixtures seed values no client-side climb could produce so a console that derived them would fail.
The dot replaced an
inherited from <ancestor>sentence under the read value, which this wave shipped in the morning and two spikes against the real console falsified by lunchtime. The sentence was the third telling of one fact on the line least able to carry it, and it could not appear in the edit state at all, which is the state that needed it: there the inherited value is a grey placeholder in a box that looks exactly like an empty one. Four things about the replacement were measured rather than drawn. It goes beside the LABEL because that is the one slot that is in the same position in both states (beside the value, trailing is right in read and lands 380px from a 407px input’s placeholder, leading is right in edit and reads as a bullet list in read). It encodes no DEPTH, because a segment-per-rung version measured 8px on a two-rung chain and 28px on a six-rung one and three marks encoding one chain never lined up. It is a focusable tab stop carrying the whole fact in its accessible name, since a hover has no keyboard and no touch equivalent. And it agrees with the hint by construction: one predicate over the text the field is currently showing, so the keystroke that empties the box brings the dot back and retires the hint’sEmpty inherits from mic.at the same instant.Once the dot was there, the hint was saying the dot’s own sentence a second time. On an empty box it appended
Inherited from mic.while the mark beside that same label said exactly that, so the clause came out and the hint dropped back to describing the fact. Its conditional twin,Empty inherits from mic., stayed, and the asymmetry is the whole finding: that one shows only while the box HOLDS a value, where there is no mark (the row states this value) and no visible placeholder (the box is not empty), which makes it the only thing on screen that tells an operator clearing the box returns the field to inheriting, and the only thing that names what it would inherit. One sentence described a state the mark already showed; the other describes an action nothing else offers. The CREATE forms are a different surface and keep their ownLeave blank to inherithints: the row does not exist yet, so there is no served ancestor, noInheritedFieldand no mark on those forms at all.One rule came out of the spikes and is now the design system’s: thread DATA through a field primitive, never an element.
FieldRowandKVStackedtake the ancestor’s NAME and build the mark themselves (the shapeinfoalready had for the (i) affordance), because aJSX.Elementin a prop compiles to a getter, so the element is rebuilt whenever anything that getter reads notifies, and a mark derived from a query is then replaced under the pointer on every refetch. Wrapping it in acreateMemolooks like the fix and is not: the memo tracks the derived array a refetch hands back equal-but-new. Playwright caught it as an intermittent “element was detached from the DOM”; the suite now pins it as an element-identity test over a refetch that changes nothing.The cost was measured rather than carried over from #695: the registry read is one statement for a registry twenty levels DEEPER, the dimension a per-level query would charge for, and the blade pays nothing on top because its read IS that listing (
useComponentTypeRowfinds its row in the same query).location_typeis flat, with no parent link and no stem or abbrev column, so it takes none of this.The blade’s destructive slot on a forked shipped row also stops reading Restore shipped and reads Restore default: it named the thing being restored FROM rather than the thing being restored TO, and the console’s other restores (Settings, the pen) already said default. The retired wording joins the
internal/docslintdenylist, with this log and the decision log keeping the words that were true on the day they were written. -
A node binds a location the caller can read (#705).
CreateNodeandUpdateNoderesolved their optionallocationscope-blind, the shape #700 closed on the component and system create and move paths and left here to keep that slice’s diff honest to its own issue. They now take the caller’slocation:readset and resolve throughresolvePlacementRef, the seam #700 built, with the API injecting that scope exactly as the system and component routes already do.The node tier reaches the fix by a different argument than the other four, and saying which one matters. #700 was urgent because a create stamps a label rendered from the referenced row’s, so an existence-only bind turned a create into a disclosure channel for a row the caller could not read. No node label rule exists, so nothing here is stamped and nothing handed back. What is left is the invariant this repository states as an invariant: ABAC scope is injected by the Storage Gateway on every applicable query, and a caller-supplied reference resolved without it is an exception to that rather than a carve-out anybody decided on. Out of scope answers the same non-disclosing
ErrLocationNotFoundan absent location gives, because a refusal that told them apart would confirm the row exists one level up.The regression test drives the gateway seam rather than the wire, and the reason is a fact about the shipped role set rather than a shortcut.
node:createresolves only from anallgrant (applicableKindsadmits no tier for a node), and every seeded role carryingnode:*inherits the viewer read floor, so no principal that can create a node today has a narrowlocation:read. The seam is where the two sets are separate arguments and where the invariant is written, and a custom role withnode:createand no read floor is a shape the platform admits. The owner runs the identical body in the same test, so the refusal is proven to be a scope boundary rather than a broken write path, and the out-of-scope refusal is compared against a genuinely absent location’s. -
The system reclassify guard keys on the stem, not on the type id (#706).
UpdateSystemre-minted a platform-owned name whenever the classification ID changed, and the mint does not read that id. It reads the STEM the type’s chain resolves to (resolveSystemTypeFacts, inherited-first-non-null, ADR-0095), so twosystem_typerows inheriting one stem from a shared ancestor mint identical names. A reclassify between them changes no input to the mint, and re-minting anyway moved the name onto a lower ordinal freed by an earlier:rename, undersystem:updatewith no rename requested. That is the failure ADR-0101 refused for the presence-shaped guard, one step narrower.The fix is the sentence the component tier already carries, not a new one:
stemForSystemTypeis the first half ofgenerateNameForSystemTypelifted out exactly asstemForProductwas lifted, andsystemTypeStemMovedisproductStemMovedover the shorter walk (a system reads its chain directly, a component reads a product that points at one). The regression test drives the issue’s own reproduction: two stem-less children of one stem-carrying parent, two generated systems of the first type in one room, a:renameon the first freeing the bare name, then a reclassify of the second onto the sibling type. The guard-rail rides beside it, because a fix that stopped re-minting entirely would pass that test alone: a reclassify onto a DIFFERENT stem still re-mints, and an un-classify still reaches the generator and is still refused there rather than by a branch in the guard.The divergence ADR-0101 recorded between the two tiers, put there by #696/#691, closes with this: both now compare the resolved stem, each over its own path to one.
-
A node principal has a name in the trail (#738). The gateway’s identifier resolution had a human arm and a service arm and no node arm, so a
kind=nodeprincipal resolved to the empty string everywhere a principal is named: the audit actor column, the alarm acknowledgement, the group roster. Preserved behaviour rather than introduced, and deliberately so: the droppedprincipal_label(uuid)wascoalesce(human.username, service.label)with no node arm either, and #564 kept the shape so a refactor about WHERE the answer lives changed nothing about what it says. What that preserved was a blank actor on an audit row.The node’s identifier is its
name, on the same reasoning that made the other two columns identifiers: it is the only operator-visible handle the row has, it is unique (node_name_key, besidehuman_username_keyandservice_name_key), and it is already the estate address and the NATS subject token, so it is the string an operator would recognise in a trail.node.display_namecannot be one, being optional and not unique, and this string is denormalized as bare text intoaudit_logwhere nothing survives beside it to disambiguate a duplicate.Adding it is one row in
principalIdentSources, because that list is the only place in the tree that names these tables and columns and every shape is rendered from it. The three folds that read those shapes each grew a column, which is the one thing the variadic resolution cannot catch for them, so the test grew to match: the invariant test drives the node arm to a real answer instead of to the empty string, and a new test drives all three kinds through the audit write, the audit read, the alarm read and the group roster, since a fold reading one column fewer than its query returned is a defect only a surface can show. Still not reachable in a shipped estate (nothing seeds a node principal with a grant), which is why it was worth fixing before something did. -
The registry list tells the truth about an inherited value (#743). #716 and #742 taught the type registries’ BLADE to show the value a row inherits and name the ancestor it came from. The LIST went on rendering an em dash in the Stem and Abbrev cells for exactly those rows, so the console asserted a value was absent on one surface and showed it on another, two clicks apart. Both cells now render the value the row takes.
No new query:
inherited_stem,inherited_abbrevand their_sourcefields already ride the listing (ADR-0115), which is also the blade’s read, so this is a rendering change over rows already in hand.The value only: the provenance mark stays a blade and detail affordance. A table is for scanning values, and the blade is where a value’s origin is explained; a reader running down the Stem column is answering “what is this type’s stem”, and a per-row attribution would charge them for a question they did not ask. So a stated value and an inherited one render identically in a table, which is the treatment rather than an omission and is asserted as such. It settles the dimming question with it: every value in these columns is
text-base-content/60already, and nothing separates them further.The Icon cell is the precedent the other two MATCH. It has rendered
resolved_iconsince #695 with no attribution at all, which 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. OneInheritedCellholds all six cells across the two registries, with one chain (the row’s own value, else what the server resolved for it, else the em dash), and the em dash keeps its one meaning for a row that states nothing with nothing above it.The first cut of this slice put the mark in the cells, trailing the value, and was reversed on review before merge; the entry above records what shipped, and ADR-0115’s third amendment records the reasoning.
-
A restore clears the drafts it just discarded (#741). A registry blade seeded its edit drafts once, on entering edit.
:restorediscards an operator’s fork, so the row changes underneath an open editor: the fields went on showing the values the operator had just thrown away, and the next Save would have written that fork straight back over the shipped ones. Fixed by hand on the location type blade in #710, where restore finally sat beside a field whose value restore changes; the same shape was live on the component type blade, unseen because nothing there had made it visible yet.It went into the SHARED blade primitive rather than being applied a second time by hand. Seeding a blade’s drafts from its row is one concept with two triggers, and the edit slot (
lib/blades) is the only shared thing that knows an editor is open, so a body now binds its seeder (edit.bind({ seed })) and the slot runs it on the way into edit, while a body that replaces the row asks for it again by name (edit.reseed()). Both registries with a restore leg are converted; binding is opt-in, so the thirteen blades that seed with a local effect oneditingare byte-for- byte unaffected.The system type registry needed no fix, contrary to the issue. It has no restore leg at all:
system_typehas not adopted the fork (#655, ADR-0095), carries noforkedfield, and there is no/system-types/{id}:restoreroute, so the blade has no path that replaces its row. It inherits the primitive the day it adopts one.The test drives restore with a DIRTY draft on top of a fork and asserts the four fields, not that the request was sent: sending the request was never the broken half.
-
The component create form states its root-stem rule (#744). One rule, refused on both tiers (
ErrRootComponentTypeNeedsStemandErrRootSystemTypeNeedsStem): a root type has no ancestor to take a stem from, so it must state one. The SYSTEM create form had said so since it shipped; the COMPONENT one never had, so the same operator was warned on one page and met the constraint as a 422 after submitting on the other. Pre-existing, found by #742’s copy sweep.The wording is matched rather than invented, and then written ONCE: the shared tail (
Leave blank to inherit the parent's; required on a root.) and the shared Parent sentence live inlib/catalogbesideOFFICIAL_LOCK, so the two forms cannot state the same rule differently again. Each form still leads with its own fact, since a component’s stem and a system’s are different facts. Both pages assert the full strings verbatim, so a change to either has to fail two tests.The paired-form sweep the issue asked for found nothing else: only these two registries are tree-shaped with a stem,
location_typeis flat and carries no stem column at all, and the abbrev and icon hints already agreed about inheritance on both pages. -
A refusal on a readable target tells the truth (#736, ADR-0116). Seventeen routes that hang off a scoped tree entity resolved their target with the action’s own scope alone, so a component, system, or location the caller could read but not act on came back as “not found”. They now make the read-then-action split the tree entities’ own CRUD has always made: outside the read scope is still the non-disclosing 404, readable but outside the action scope is a 403. Property set and clear on all three tiers, system membership add/remove/setPrimary, system role declare/withdraw/assign/unassign/swapPositions, and component alarm raise/clear/acknowledge, the last being the exact route #728 hit and deliberately left alone rather than ship one route out of step with its siblings.
The primitive already existed, which is what made this an adoption rather than a design:
resolveScopedtakes both sets and has since it was written. The audit that preceded the work is the reason the slice is this shape. It found three things the issue was wrong about. The matrix already asserted the three-way split and already had the read-but-not-act principal, so the work was route COVERAGE, not a new principal. The page’s own explanation of the gap (“every scoped route resolves its target with the action’s own scope”) was already false, since the tree CRUD split. And the real gap was narrower than “every scoped route”: it was the routes that hang OFF a tree entity, which is why the fix is seventeen call sites and not sixty-eight.The read set is the caller’s own
<resource>:readat every one of them, checked route by route rather than assumed. That is the condition that keeps the 403 honest: it names a row, so it may only be reached by a caller who could have read that row anyway. A wider set there would turn the truthful refusal into the disclosure the 404 exists to prevent.The conformance matrix’s registry now carries, per entity, the routes that hang off it, and drives all three branches through each. Per entity would have proved five of seventeen: the routes are not uniform across the tiers. Two expectations moved and neither was deleted: the acknowledgement refusal in
alarm_ack_e2e_test.go(404 to 403, on a test that already proved the caller could read the far alarm) and the membership refusal inlocation_grant_reach_e2e_test.go(404 to 403, the one route on that list that disagreed with the three above it). The property and role e2e 404s flagged during the audit turned out to be owner-driven misses on rows that do not exist, so they stayed.The property writes also stopped resolving their owner twice: the split returns the id the property arc stores, so
guardOwnerScopeplusownerArcValueInScopecollapsed into one resolve.Left alone on purpose, each with its own issue: the command-issue route fences its write with
component:read(#749), and the node placement bind’s coverage gap (#750) sits behindresolvePlacementRef, whose cross-tier non-disclosure is a different contract and not this one. -
Issuing a command is fenced by the issue scope, not the read scope (#749, ADR-0117).
POST /components/{name}/commands:issuewas gated correctly (command:issue) and fenced wrongly: all three of its gateway calls resolved withcomponent:read, so the ABAC set deciding which components a principal could actuate was its READ set and its issue grant narrowed nothing. A principal holdingviewer @ allbeside a room-scoped operator grant could command every component in the estate, and a command is a physical act rather than a disclosure.The route now resolves its target through
ResolveActionTargetwith the caller’scomponent:readas the read half andcommand:issueas the action half, the shape #736 built for the acknowledgement. That needed one thing first, and it is the part worth reading:commandwas not a scoped resource at all. It fell to the scope resolver’s default, where every grant but an all-scoped one resolves to the empty set, so fencing on it without registering it would have denied every scoped issuer instead of fencing them. It joins the component tier, besidealarm, and a pure unit test pins that acommand:issuegrant on a component resolves to that component and that a wide read beside it widens nothing.The target is resolved once and bound by id from there on, so
IssueCommandandCommandSettlementtake no scope: the fence on an actuation is a read-versus-issue split rather than one set, and a set re-checked on an already-resolved row could only re-answer that or disagree with it. It also removes two of the route’s three name resolves, and with them the second and third chances for a reference to resolve differently than the first.Proved in the conformance matrix rather than beside it, so the readable-but-not-issuable principal drives it automatically: the RED was a
200with a recorded invocation on a component outside the caller’s issue scope, which is the defect actuating rather than merely refusing wrongly. One gateway expectation moved (name_placement_test.godrives the two command methods by id, since the double name resolve it was written for no longer exists on that path). -
The column an operator reads is called
label(#613, ADR-0118).display_namebecomeslabelon all twenty-three tables that carry it, anddisplay_name_generatedbecomeslabel_generatedon the three that carry a pen. The column is nullable, and “unset” is SQL NULL and nothing else, normalized in Go at the gateway write path. One sweep: the migrations, the Storage Gateway, the Huma bodies, every generated artifact, the console, and the docs. A breaking wire change, and the CLI flag--display-namebecomes--label.The rename finishes a word rather than introducing one.
internal/label/is the rule engine,label_ruleis a column on five tables plus a table of its own, and the API already said:renderLabel,:previewLabelsand:recomputeLabels, so until this slice a route called:recomputeLabelswrote a column calleddisplay_nameand the console’slabelGeneratedreaddisplay_name_generated.The ordering was the trap, and it had already sprung. Postgres sorts NULL last under a default
ASCand the empty string FIRST, so anorder by display_name, namemeans opposite things depending on which spelling of unset the column carries. Seven registry lists were spelled that way, and every one of those tables was storing'': vendor, driver, product, standard, system_type, component_type and location_type were all already floating their unlabelled rows to the TOP of the picker. The test came first and was RED on all seven.Then the storage decision reversed, before merge, on the strength of this slice’s own diff. The first version of it made the column
NOT NULL DEFAULT '', which forced all seven of those orderings to be writtenorder by nullif(label, '') nulls last. Seven reads undoing the storage choice in one slice is the schema telling you which value it should have stored.labelis nullable now, unset is NULL, the orderings areorder by label nulls last, name, and what keeps NULL the only spelling islabelOrNull/labelPatchininternal/storage/label_unset.go, the one place the rule lives. The ordering test stayed RED through the reversal and green after it, re-run against the new spelling rather than assumed equivalent, and it now guards the WRITE side: break the helper or miss a create path and it goes red on that registry, which is howCreateStandardwas caught still binding its label raw.A PATCH carries a set flag beside the value, because clearing a label and leaving it alone are different instructions that both arrive as SQL NULL. Reads coalesce, so nothing above the gateway learns the column is nullable and no generated artifact moves except the schema facts.
Two things the sweep had to be told about.
registry_shadow.imageis an operator’s forked copy of a registry row stored as jsonb keyed by column name, so a column rename cannot reach it and the backfill rewrites the key; without that, an operator who had relabelled a forked type would have lost the relabelling silently.audit_log.old/audit_log.neware left exactly as written, because they record what a row looked like under the field names it had at the time.The word also collides with the console’s own
label, the prop a Button, an InfoTip, a nav item and a facet chip already took, which made the one-renderer guard match eleven pieces of ordinary chrome the moment the column moved. Both of its patterns were re-anchored rather than suppressed: the fallback excludes the exact readprops.labeland nothing wider, and the interpolation is anchored to an identifier read on the same line, which is the shape of the haystack bug it was written for. “Display name” joins the console’s retired-word list and the docs denylist.stemandabbrevare not swept: their NULL means inherit-from-ancestor, a third state with real content.label_rule,internal/label/,label_draftand the:renderLabelfamily already said label and already meant it.file.namestays the file’s own label (#755). -
A tag, a variable, a secret and an interface carry a label (#613, ADR-0119). The four key-bearing tables that had no label get one, and the identity declaration grows the expectation that produced them, so the gap cannot reopen. It closes the epic.
The declaration is the slice; the four columns are what it found.
internal/storage/identity_shape.godeclared every table’s SHAPE and was complete by construction about it: a table missing from the map fails the guard. It said nothing about the friendly string beside the identifier, sotag,variable,secretandinterfacewent without a label, no test failed, and an operator who could no longer writecost_center(the tightening ADR-0076 made, citing PagerDuty freezing a name and routing renaming pressure to the label beside it) had nowhere to write “Cost Center” instead.TableIdentitynow carriesNoLabel, the declared reason a table an operator names carries none, and the guard checks it against the generated schema both ways. Written first, against the schema as it stood, it named exactly those four.Four tables, four different problems.
tagis the only name-ADDRESSED one, so it proves the label and the address leave each other alone; its name is fixed at creation and there is no:rename, so the rename half is proved the way that table permits.variableis the simplest until you look at its PATCH, where the label had to become an instruction beside the value rather than a second meaning of it: the route’svalueis optional now, so a relabel is not a value write.secretis a sweep rather than a column, since it is read through the directory, the create and update returns, the audit image and the per-component cascade; the reveal and the copy carry no identity at all, which is pinned rather than assumed.interfaceis the strongest of the four and the reason D2 went the way it did: its name is SERVER-derived from its type, so its only string says which protocol it speaks and nothing about what it is for, and the label is settable at create rather than on a following edit, since an interface labelled by a second call is unlabelled at the moment it is made. Its declared name exemption stays exactly where it was: the name really is derived, which is the argument FOR the label rather than something the label replaces.One premise of that argument turned out to be false, and is corrected rather than repeated. The epic argued from “a component with three
sshinterfaces”, which the schema does not permit: the unique index is(component, name)and the name IS the protocol, so the second is a 409. The conflict is now pinned by a test, and the narrower statement carries the decision on its own, every SSH interface in the estate readingsshwith nothing to say which device role it plays.The ordering was treated as guilty. Every new list orders
by label nulls last, name, with a test, because #756 had just found seven registries shipping their unlabelled rows at the top of the picker from precisely this shape. The console’sbyLabelis the same rule on the other side of the wire. The two cascade projections keep ordering by NAME on purpose: there the name is the cascade key that groups a winner with the candidates it shadows, not a display order.Normalization was not rebuilt.
labelOrNullandlabelPatch(ADR-0118) already decide that unset is SQL NULL and nothing else, so the four join the sweep that drives every write path with a whitespace label and reads the raw column, rather than acquiring a forty-first hand-rolled binding. That sweep is complete by construction, and its list of labelled tables is now READ from the declaration instead of hand-kept beside it.No backfill: existing rows come out unset and render their name verbatim, never re-cased. No uniqueness, no pattern, no reserved words.
filekeeps its exemption (#755), andinterface_type,serviceandblobgain declared ones, rendered into the docs bycmd/identitygenrather than written out by hand. -
The edit face becomes a URL fact.
?edit=1beside an inventory detail address (or the users blade’s?u=<id>&edit=1) lands the edit face directly, behind the same<resource>:updatethe footer Edit is behind; leaving edit strips the param, and the create-as-route and row-pencil handoffs carry the mode in the URL instead of the retired one-shot signals (pendingedit,openPrincipalInEdit). One hook (web/src/lib/editurl.ts) owns both directions (ADR-0120); the name-to-uuid redirect keeps its query string. Proven by page tests on the deep link, the permission fallback, the Cancel strip and the redirect, and at the e2e tier by the create handoff’s own URL; the operator guide’s edit-face screenshot is declared from frontmatter with no capture-side clicks, which is the pipeline this unlocks (#758, #759). -
Every console route smokes in a real browser. The router now renders from a route manifest (
web/src/lib/routemanifest.ts, pure data;web/src/routes.tsxresolves each entry to its page), and the e2e smoke spec (web/e2e/routes.spec.ts) drives the same array: one browser test per route, failing on any page error or non-resource console error, with parametrized routes smoking their honest miss face through a well-formed-unknown uuid and the not-found face smoked like any other route. A guard suite pins the construction (every entry resolves to a registered page, the stub entries equal the nav’s own lists, every entry carries a concrete smoke address), so a route cannot be added without the browser tier rendering it (#758, #760). -
The browser e2e tier gates every PR. A second job in
test.ymlrunsmake test-e2eon every pull request and onmain: the already-containerized runner (web/e2e/run.sh) needs only Go, Node, and the runner’s Docker daemon, so CI executes exactly what a laptop does. With the route smoke spec in the same tier, a change that breaks any console route in a real browser cannot merge;make teststays unchanged (the local loop keeps the explicitmake test-e2etarget, the Playwright image being too heavy to fold into the default gate) (#758, #761). -
The screenshot freshness gate stops trusting a tolerance. The old percentage ceiling existed to absorb dev-seed jitter and passed exactly the changes the gate exists to catch: a renamed label at 0.033% and a collapsed rail at 0.13%, both under 0.5% (#398, #623). A double capture located every jittering region empirically (one page: the Files rows’ v7-uuid subtext and seed-time Added column); those regions are masked in frontmatter like the audit shot already was, the comparison moved into a testable unit (
web/e2e/shotdiff.mjs) with the contract pinned (web/src/shotdiff-gate.test.tsproves the old blindness and the new zero), and the default tolerance is now zero: the pinned browser’s rasters are byte-stable, so any unmasked pixel change failsmake docs-shots-check. The refresh also caught the secrets shot 0.437% stale against today’s console, live proof of the class (#768). -
The groups blade adopts the edit param. ADR-0120 left the groups blade on its one-shot signal “until it gains an id deep link”; it already had one (
?g=<id>), so the adoption was the Users port verbatim:?g=<id>&edit=1opens the group’s blade already editing behind the manage gate, the create flow hands off through that URL, andopenGroupInEdit/consumePendingGroupEditretire. No console one-shot edit signal remains (#762). -
Every blade seeds its edit drafts through the slot. The thirteen blades still carrying the hand-written
createEffect(on(edit.editing, ...))seeder (the twelve #748 listed plus SystemTypes, an omission its count missed) convert toedit.bind({ seed }): the slot runs the seeder on entering edit and again onreseed(), so the pattern is uniform when the next registry grows a:restoreleg. Behavior unchanged per blade, the existing suites the gate; the page-detail flavor of the same hand-rolled seeding is #769 (#748). -
A screenshot mask covers its cell, not its text. Playwright paints a mask over the element the selector resolves to, and its text engine resolves to the innermost span, so the masks the zero-tolerance gate depends on were sized to the values they hide: the audit trail’s un-padded hour made the box seven pixels narrower before ten o’clock, 8,400 changed pixels of pure clock jitter on a PR that changed no UI. The two timestamp masks now name their cell (
>> xpath=ancestor::td[1], pinned at 190px and 170px by the column descriptors) while the fixed-width uuid masks stay on the text, the fill becomes a deliberate neutral panel rather than a near-miss of the background, and every capture logs what each mask resolved to.DOCS_SHOTS_TZmoves the capture browser’s clock, which is how the fix was proven: the ten shots recapture byte-identical under a two-digit hour where the pre-fix masks did not, andweb/e2e/shotmask.spec.tspins both halves at the browser tier, including the single-digit day a timezone shift cannot reach. Two adjacent defects the work measured are filed rather than folded in: the gate’s per-pixel perceptual threshold (#774) and a capture that renders a shot in fallback fonts (#775) (#773). -
The console ships its own typefaces.
index.htmllinkedfonts.googleapis.comwithdisplay=swap, so the console painted in fallback metrics until a third party answered: wrong on the closed campus and AV networks this product is deployed into, and the cause of main going red at3b16b325. The docs capture opens a new browser context per shot, so every shot re-raced the CDN; two of ten lost, were written anyway, and failed the zero-tolerance freshness gate as UI drift on a PR that changed no UI (the two differed in the same 3,806 and 456 sidebar pixels, and in 20,955 greyscale glyph edges against 1,405 colourful, which is text metrics, not content). Both families are OFL 1.1 and are now vendored underweb/public/fonts/(54 files, 1,005,028 bytes, bothOFL.txtbeside them), copied verbatim into the Vite output the binary embeds and served by it asfont/woff2, which the handler states itself because the runtime images carry no mime database. Every script the CDN served is vendored, not a latin subset, so no operator-supplied string renders differently than before;unicode-rangekeeps the split so a latin page still fetches one file.font-display: blockreplacesswap.web/src/fonts.cssis generated byweb/scripts/vendor-fonts.mjs, never hand-edited. The capture now refuses to photograph a fallback render (web/e2e/fontguard.mjs: every face declared, both families rendered from their own files, no font request failed), which is the half that let a wrong PNG ship silently;DOCS_SHOTS_PROXYretires with the dependency it worked around. The ten shots recapture byte-identical, which is the proof the vendored files are the same faces the browser was fetching (ADR-0121, #775). -
A commissioning gap is not a failure (#631). The verdict domain gains a fourth value: a role short because its hardware was never installed reads
incomplete, ranked between healthy and degraded, and its declaredimpactdescribes failure only. Without it the fleet canvas would paint a half-commissioned fleet entirely red, which is the single thing that would make the medium useless on the fleets it serves. A pure enum insertion ininternal/healthplus the seeded property enum; the console’s badge gained the fourth look and--og-incompletein both themes (ADR-0122). -
The fleet reads itself in one projection (#632).
GET /views/fleetreturns the whole in-scope fleet as the canvas draws it: every location flat with its parent and recorded verdict, every system with its location and verdict, and one dot per component ({component, verdict, primary, shared}), never a component row. Each tier is scoped on its own read, so a caller who may read places but not systems gets the shape with no contents and an out-of-scope root is absent rather than empty. Found in review: the per-location and per-system verdict subqueries planned as sequential scans of the telemetry lane; the location arc’s owner index landed with the slice (the system arc’s arrived independently as #725), and the guard asks the planner withenable_seqscan = offrather than the catalog. -
A fleet worth looking at (#634). The dev seed grew the shapes the canvas is judged against: a fourth top of a deliberately different shape (a building at the root with rooms straight off it), leaves nobody commissioned, a system with nothing assigned reading incomplete, a room one microphone short, a real alarm dropping a staffed room to degraded beside the gaps, and a recording service shared across two tops for the ghost rule. The divisible boardroom became two sibling ROOMS with one system each and the shared bar physically in A serving both: an air wall splits a room into rooms, and nothing in a fleet has two boardrooms inside one boardroom.
-
The fleet zoom (#633). The first pixels of the one canvas:
/fleetrenders one band per root location (recorded-verdict chip, type, counts with the subtree depth), each system a wrapping cluster of dots painted on a per-band canvas, the holes as dashed inert cards, the four-chip zoom ladder, and the inspector aside. The pure core (layout, state buffer, paint grouping, hit test, ladder resolution, breadcrumb arithmetic) decides everything an operator could dispute and unit-tests with no DOM; the canvas shell does I/O in one paint function. On the canvas, health colour is exceptional and identity colour is the ground (ADR-0125); a band chip renders the location’s recorded verdict, never a client fold (ADR-0125). The lab layout ported with its three placement bugs fixed and pinned; its transient heat lanes are cut until an event channel exists to feed them (#631, #632, #633, #634). -
The location zoom (#635). The same canvas one level down, at the identity route behind
?zoom=1(ADR-0126, the fork the loop stopped on: the zoom was ruled onto the identity routes as a URL fact, the inventory detail staying the default face until the medium is judged).byChildOfLocationproves the grouping seam with a second real grouping (a factory over the anchor: one band per direct child whatever its type, the placed-here band keyed by the anchor itself and ordered first);holesUnderscopes the holes to the subtree under the child that contains each. Systems render as cards with the server’s own quorum arithmetic per impaired role, fetched per card at location-bounded fan-out; an unstaffed role reads incomplete, pinned in jsdom. The allowed child types are named beneath, the no-fixed-ladder lesson made operable (#635). -
The system zoom (#636). The typed slots a system needs filled, at the identity route behind
?zoom=1. The view model merges the two reads that each carry half the story (the health read’s figures and choice grouping, the roles read’s accepted types, pinned products and position labels) by role name, and computes nothing: a card’s every figure is the server’s own. A commissioning gap and a failure gap wear different marks from the same arithmetic; an inactive alternate renders as the legal build it is, its figures never presented as verdict reasons; a shared occupant is chipped with the other system it serves; the no-role members get their own strip as a state, not an error. The one-label-renderer guard caught the view model hand-rolling a label fallback, which is exactly what that guard is for (#636). -
The component leaf (#637). The end of the walk: what a component is (product, vendor, driver off the cached catalog), the memberships with the primary marked and the location-from-primary note, and collection in context, the one place a node appears to an operator. The collection card’s derivation is pure and pinned: a stale sample under a live node reads “the device or the path, not collection”, a dead node reads as the node, a fresh down answer as the device, which is the sentence that spares nodes a zoom of their own. Membership rows resolve a unique system name to its uuid for the drill and refuse to guess at an ambiguous one (#637).
-
The fleet pages match the design they were built from (#630). A fidelity pass after the architect compared the shipped zooms with the approved prototype: the right rail lands on every zoom as one primitive (
ZoomRailover a purerailModel: headline, a per-verdict ratio bar over the components in scope, the location types present, a worst-first attention list, the gaps footer); the location zoom’s system cards become the design’s card (status border, room and standard, a slot strip computed over the active roles’ quorum with the gap line in the design’s words); the ladder is a stepper with an arrow between levels and a per-zoom hint; the inert+ Top-level location,+ Locationand+ Systemcards mark where a thing would go, per the epic’s ruling that mutation renders as a hole; the leaf gains the what-it-is and where-it-sits panels, the type path, and the sample age; the dot field densifies. The dev fleet grows to a size the canvas can be judged at (57 locations, 41 systems, 112 components). One wire change rode along: a membership now carries both ends’ uuids beside their names (system_id,component_id), because a shared component’s memberships can legally name two systems that share a bare name, and a console that could only address by name either guessed or refused (#645’s class, now closed for this read). -
A dot is a component’s verdict, an outline is its system’s (#630). The architect’s second look at the canvas: the identity-hue scheme (ADR-0124) made one colour mean two things, and the design never had it. Reversed: every dot wears its own component verdict, the cluster outline wears the system’s (neutral when healthy), and the system zoom shows only the build in use for a choice, the alternate a room did not choose being the standard editor’s fact and not an operator’s. Cards on the location zoom order worst-first. The canvas raster is deterministic per seed now, so the shot gate stops masking it (#630).
-
The fleet zoom shows systems, one round mark each (#630). Ruled from an options artefact (four marks painted from the seed shape): the fleet zoom’s question is which systems need you and how many, and component dots at the top were the wrong grain (a carpet is not a count). One round mark per system, coloured by the system’s verdict, worst first per root; square component marks live one zoom down inside the system outline, so the shape is the grain everywhere it appears. The right rail goes: summary tiles on top carry its facts over SYSTEMS (systems, need-attention as a filtering tile, gaps, a health bar, roots), the console’s chip filter bar narrows the canvas, and a mark click opens the system in the blade drawer with its health panel and open actions. The canvas core is unchanged (clusters of one) plus one round paint path (#630).
-
The fleet pages wear the inventory pages’ shell (#630). Ruled after a look at the Locations list: every zoom shares one layout,
FleetShell, taken fromTreeList’s summary rail (badges that expand to a tile board with a verdict donut and facet legend, every badge a filter toggle, open state persisted per page) over the console’sListShell(filter bar and card) around the zoom’s own body. The summary is fleet-wide at every zoom; right-hand drawers exist only as detail blades. The tiles the previous cut had introduced are folded into the rail’s badges and board (#630). -
The breadcrumb is the walk; the ladder goes (#630). The zoom ladder duplicated what the console’s breadcrumb already does, and the fleet pages now use plain breadcrumbs: the trail ends at the parent (the current page is the title, never repeated as the last crumb), and a component’s trail runs Fleet, its places, its primary system. Titles stop repeating what the body says (a location’s type chip, a component’s product panel).
ZoomLadderandlib/zoomare deleted; the glossary’s zoom-ladder term retires (#630). -
The drilldown reaches the leaf, and the pages stop repeating themselves (#630). A design pass over live captures. An occupant on the system zoom (and a no-role member) is now a link to the component leaf, by uuid, keeping the zoom: the last step of fleet, location, system, component was missing. The band label column is one line wide (a wider column, truncated name, no depth count: depth is a summary tile). A system card’s room reads in the sans face with the standard as a mono aside. The leaf’s identity panel drops the slug sentence that restated its own rows, the type path becomes each crumb’s tooltip (the direction #784 sets), and a membership row names the room only when the room says something the system’s label does not (a system named for its room is the field’s commonest naming). The leaf screenshot is captured the way an operator reaches it, by clicking the huddle’s occupant, because component names repeat across rooms (#630).
-
The system zoom answers why and since when (#785). The header names the last recorded edge and its age; active alarms lead worst first (severity, message, the down component as a link to its leaf, the impaired role, the alarm’s age), read from the health wire the page already fetched; the verdict history strip renders the transitions; a role holding more occupants than quorum says so (”+ 1 spare”). And incomplete de-emphasizes: a deployed room fills every role, so slot arithmetic appears only while something is missing, and the dev seed rebalances to a deployed fleet (volume rooms staffed to quorum; the commissioning pair and the quorum-short room stay as the named teaching cases, pinned by a fixture guard).
-
The component leaf carries the dispatch facts (#786). The leaf opens with the verdict and a since-line from the worst active alarm (a component has no recorded edges, so what took it down is the age that matters), lists the active alarms with their ack state, folds every contract-resolved property into the identity panel (model, serial, firmware: the RMA facts), adds a Vitals card over the effective metrics with the live-series marker, and grows the collection card’s layer rungs so device-versus-path reads at a glance. Three component reads the console already had routes for and never called; no API change.
-
The location header matches the system zoom (#787). The location zoom’s header gains the verdict badge, the since-line from the location health read’s transitions, and a needs-attention count for this subtree whose click applies the existing worst-first verdict filter. No new API.
-
The system zoom goes components-first, and the prose moves to tooltips (#790, the first workspace slice). The room renders as one card per component with its role as a badge; role chrome appears only where it earns it (quorum beyond one, a shortfall, an unstaffed role), the build not in use never renders, and the no-role strip becomes ordinary cards. KPI tiles read the standard’s contract metrics (the seed declares room-temperature and occupancy-count on both example standards, sampled on the huddle). The tooltips-not-prose rule lands with its primitives:
Eyebrow(a section label with its explainer on the (i)) beside the existingInfoTip, and the history strip’s pedagogy rides the hover. TheTabRailprimitive ships tested, param-driven and deep-linked, mounting once a second facet lands. -
The standard declares a map, the system renders it (#791, ADR-0128). One jsonb value on
standard(aspect plus normalized 1-based role positions, validated in Go, cleared by JSON null), carried on the standard wire and patched through the standard API; both example standards declare one in the dev seed. The system zoom grows its first second facet: the Map tab (theTabRailmounts), a top-down room with one marker per declared position of the build in use, solid in the occupant’s state and linking to its leaf, hollow where nobody is staffed. -
The history tab: spans, markers, and what went wrong (#792). Every system’s zoom gains the History facet: the verdict spans the health read already carried, one marker per alarm raise on the same axis, and the what-went-wrong list, every member alarm in the window, cleared ones included, ongoing first (fanned out over the members’ alarm-history reads; a server rollup waits for a fleet that makes fan-out hurt). No new API.
-
System-scoped events and logs (#793). Two new reads:
GET /systems/{name}/events(the system’s own events and its members’, newest first, each row labeled by owner) andGET /systems/{name}/logs(the members’ raw lines merged, each naming its writer), both windowed and capped like the component reads, gated bysystem:readwith the non-disclosing resolve. The workspace grows its Events and Logs tabs over them. A wire lesson worth keeping: Huma does not flatten an embedded struct into the schema, so the system bodies spell their fields out rather than embedding the component bodies. -
The timeseries reads and the Data tab (#794). The platform’s first series-history reads:
GET /{components,systems}/{name}/metrics/{metric}/samplesand the property mirror at.../properties/{property}/samples, raw rows newest first, windowed (hours) and capped (limit, newest kept), extending the effective reads’ route grammar; downsampling waits for a measured need. Over them, theTimeseriesChartprimitive (a purechartLayoutcore, one series, area fill, recessive grid, the newest point emphasized) and the workspace’s Data tab, one picker chip per declared metric; the dev seed grows a day of temperature and occupancy on the huddle so the chart is judgeable. The chart primitive is dashboards’ seed (primitive first). -
The summary reflects the page it is on (#795 review). The rail stops repeating the fleet’s numbers on every zoom: each scope builds its own tile spec (the fleet over systems; a location over its subtree with a children count; a system over its own components with slots, active alarms, and shared members; the leaf over itself), and
FleetShellrenders the spec without knowing the scope. A summary identical on every page was chrome, not information. -
The history tab reads like a status page (#795 refinement). Uptime over the window leads (the health KPI over time), the timeline beside it; the transitions group into INCIDENTS, one entry per contiguous stretch away from healthy, ongoing first, each expanding to its verdict changes and the alarms whose lifetimes overlap the stretch; a stretch no alarm explains names itself a commissioning gap; alarms the room absorbed list separately.
-
The zoom face becomes the default (ADR-0129, stage 1 of the reconciliation ruled on the #795 review). The identity routes render the fleet faces without any param;
?zoom=1is tolerated for old links and never written; every in-app address is bare; the classic detail face survives at?view=detail(and under legacy?edit=1) until edit-in-blade lands.createstays a reserved segment. The remaining stages (one entity blade per kind, edit-in-blade, operate absorption, classic retirement) are the follow-up epic. -
The seed reads like a real enterprise (#796). The dev fleet stops contradicting itself: the auditorium gets its own standard and system type (projection, stage mics, conferencing) instead of wearing a meeting room’s, classrooms teach on the classroom standard (class display, instructor mic), digital signage stands on a one-panel standard, and the depot holds unassigned service stock rather than phantom rooms; a spare projection display leaves the critical alarm still degrading the hall. Boot canon grows the three standards, the auditorium type, and the call-ended and input-changed event families. The seed also gains judgeable telemetry breadth: call and input events across sites, log lines on three components, reachability series on the bars, room climate series on every standard that declares it, and one raised-then-cleared warning so cleared history renders. The fixture guard now asserts per-archetype quorums and type-standard coherence, so a future fixture cannot reintroduce a mismatched room.
-
The write sequence outlives the wall clock (#780, ADR-0130). The screenshot gate’s last two flaps (the audit page interleave, the users directory row swap) shared one root cause: on a loaded WSL2 host the wall clock steps several seconds mid-run correcting NTP drift, and both
created_atand uuidv7 ids read that clock, so rows written in order could sort out of it.audit_logandprincipalgain abigint identitythe database assigns at insert; the audit trail orders by it, the principal directory groups humans before nodes and orders by it within a kind. Regression tests simulate the step by rewriting committed rows’ clock keys and asserting the lists hold. The remaining clock-ordered reads are #801. -
One door and the density toggle (#798, stage 2 of the ADR-0129 reconciliation). The Inventory nav group dissolves: Fleet is the only way into the monitored fleet, and Nodes (infrastructure, not inventory) gets its own top-level entry.
FleetShellgains the canvas/list toggle, a URL fact (?view=list): on the fleet it swaps the canvas for the classic index tables re-homed as kind tabs (Locations, Systems, Components: the old page components mounted whole, filters, blades, and creation intact, tabs permission-filtered like the rail entries they replace); inside a location it lists the subtree one row per system through the newFleetRows, verdict first, a row opening the system full screen per the altitude rule. The bare index addresses redirect to their kind tabs, their gates and top-bar identities surviving off-rail, and the command palette keeps the three as Fleet destinations. -
One blade per fleet kind (#799, stage 3 of the ADR-0129 reconciliation).
EntityBladerenders each fleet kind as a condensed cut of its workspace cores: verdict and since lead, the alarms say why, the 30-day strip rides under them, a system lists its members and room vitals, a location its subtree rollup and what needs attention. Every body self-fetches by id, so the onefleetRegistryserves the fleet canvas, the system zoom (whose member cards, alarm links, and map markers now open the component blade instead of leaving the page, per the altitude rule), and the index tables (TreeList grows abladeOverrideseam that retires the inventory-era detail blade for these kinds). Expand promotes to the identity route; the label edits in place through the footer pencil and Delete confirms, both gated by the row’s scope-aware actions. -
The seed speaks real AV (#802, ADR-0131). The component_type registry becomes the OpenAVCloud AV Device Taxonomy v1.1 (category roots, subcategory types, form-factor mic subtypes, dante-card under dsp), the catalog goes fictional (eight omniglass-lab-universe vendors, twenty-two SKUs shaped by the AV-iQ database), and the standards become integrator-style room chains: size-serialized meeting rooms (mr55..mr98 pinning the display per variant), the divisible conference pair whose ONE audio rack satisfies both sides’ dsp and amplifier slots (retiring the physically impossible shared bar), the full training-room chain (dual front displays, form-factor mics, rack, switching, endpoints, control, people counter, back-of-room cameras), the hall-scale auditorium with no conferencing role, digital signs with players, and the light classroom. The fixture fleet restaffs to match, one bar per room at the front; the duplicate standard stubs and the control-room stub die; the guards pin per-variant quorums and prefix-paired archetypes.
-
The classic face retires (#800 slice 3, completing ADR-0129’s ruled target).
?view=detailstops being an address: the identity routes render the zoom, the workspace, and the leaf whatever the params say, with an honest miss face for an address no row answers. The classic detail bodies are deleted; the manage surfaces they were the only home of move to Configure, which the workspaces now host per kind: the system’s role staffing and resolved properties, the location’s parent mover (narrowed to its type’s allowed parents, uuid-valued, the #627 rule) and properties, the component’s reconciliation, tag resolution, properties, reachability with the interface blades, and alarm controls, with the leaf gaining an Events tab. The dead tests retire with the face; the behaviors that survive re-home in the workspace suites. -
Behavior tests stop borrowing the seed catalog (#804, the #802 rename’s structural lesson). Behavior tests mint their own products (
storagetest.MintProduct, classified under the one type the test depends on) instead of naming seeded SKUs; the official-row refusal tests anchor on the generic floor rather than a brand; the seed-contract pins derive counts, role shapes, accepted types, and contract defaults from the embedded YAML instead of restating them; and a repo guard ininternal/buildfails any test file that names a catalog SKU outside the designated pin files, reading the SKU list from the seed’s own render. A catalog change now touches the YAML and the pin files, nothing else. -
Every system carries its components (dev seed ruling, 2026-08-26). The demo fleet staffs every system to its standard’s quorum: the lab pods gain their displays, wireless mics, and touch panels (keeping their same-bucket ordinal demo), and the depot’s service stock stays racked in the bays rather than memberized onto the signage. Exactly one provisioning system remains, briefing-av, short its scheduling panel, so the incomplete verdict still appears without reading as a half-built fleet.
-
A missing asset 404s, so a broken deploy stops looking healthy (#778). The SPA catch-all answered every miss under the console’s own paths with
index.htmland 200, which made a partial deploy indistinguishable from a working one: a missing JS chunk arrived as HTML and the browser reported a syntax error at line 1, a missing face rendered wrong with no request having failed, and any monitor keyed on 4xx saw a healthy origin. The handler now reads the directories the build owns off the build output itself (assets/, andfonts/frompublic/) and 404s a miss inside one of them; a console route at any depth still renders the SPA. Derived rather than enumerated, so an asset kind the build starts emitting is covered with no code to remember it, which themedia/case in the test rail pins. Keying offAcceptwas weighed and dropped: a deep link from curl sends*/*and must still render the console, but*/*is also what a script or stylesheet request carries, so the escape hatch the deep link needs re-admits the case the fix exists to catch. -
A product with no label stops wedging its components (#805).
componentLabelChainscannedp.labelinto a plain string while every other label read coalesced, so a product whose label is NULL failed every component create, rename, move and reclassify that resolved it. The API cannot mint that row (create requiresminLength: 1), but the direct-gateway lane can, and that lane is the one seed, devseed and the tests use. The query coalesces like its siblings; the label falls through to the component_type, which is what an absent product label should render as. Found by the #804 sweep, whose harness had worked around it by setting labels. -
The two dated audit documents leave the repository root (#497).
AUDIT-2026-07-30.mdandDRIFT-PLAN-2026-07-30.mdsat beside the README, outside every lint scan root, asserting whatever was true on 2026-07-30 with nothing to flag them, in a repository that is public from the first commit. Both are deleted: the audit’s findings and the plan’s 42 sub-issues are tracked in GitHub, which holds them authoritatively, and a dated write-up that has been fully converted into issues has no second life. Thedocs-auditskill keeps the six-section output shape it encoded and stops pointing at a file that is gone. -
A documented example name the API would refuse fails the build (#571). An operator copying a name out of the docs could receive a 422 from the documented example, and nothing noticed: two of these were caught by eye during #545 and thirty-odd were not, which is the argument for a gate rather than a sweep.
internal/docslintnow runs every name literal in a fenced example through the platform’s own rule, reached by a newstorage.ValidateEntityName(the rule collapsed to one in #586, soValidateName’s table argument no longer carries any signal for a caller holding a literal and no row). Scope is the judgement, not the validator: only NAME positions (name:/type:/key:in YAML,"name":in JSON,--namein a command) inside FENCES.label:anddescription:hold English, andid:holds a uuid the name rule refuses by design, so none of the three is validated. Prose is out of scope permanently, because a page teaching the rule has to write the illegal spellings to teach them: the properties guide’s “it cannot drift intoserialNumberin one place andserial_numberin another” is correct and stays. A comment inside a fence is prose too, which the first draft learned by reporting--name flag.out of the sentence “there is no--nameflag”. A fence is what a reader copies, and nobody pastes a sentence into the API. The surviving offenders are fixed with it: the template-input example names the shippedsnmp-communityandbasic-authinstead ofsnmp_communityandssh_credential(no SSH-specific secret type ships), the cascade walkthrough readsretry-limitbeside its already-kebabpoll-intervalsibling, and the variables page readstls-cert. -
A select takes its value when its options land. 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 selects the first one instead. 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 query that answers when it answers, so it presented as a flake and an operator who saved in that window saved the fallback. Avalue=binding cannot answer it: Solid re-runs that when the VALUE changes and in the losing order the value never changes, the options do.bindSelectValue(value, ...options)(web/src/lib/selectvalue.ts) is the one primitive, used as the control’sref: an effect that reads every option source and then assigns the value, owned by the ref’s owner so it dies with the edit face, running after the<For>that fills the control. Thirteen controls convert, eight of them pickers that carry the fix to every consumer (TreeSelectacross five pages, the two type-tree pickers, the interface blade’s node picker, the vendor, driver and parent-standard pickers, and the command-type target picker over both its catalogs); five are page-local (the node placement and the workspace Configure face’s four, where the location-type select carries no placeholder, so the pre-fix fallback silently retyped the location as the catalog’s first type). Thirty-six of the forty-nine select sites are deliberately untouched, and the classification is the point: 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. Every test drives the gap by hand, delivering the collection between two assertions rather than sleeping on a race (ADR-0133, #398, #772, #782). -
Transport becomes code, and the entity an API is reached through is an endpoint. ADR-0073 executes and #603’s naming ruling rides it (ADR-0134): the six wires (icmp, tcp, udp, ssh, http, snmp) are a code registry the binary ships (
internal/transport, a leaf package so the storage gateway validates against it without an import cycle), theinterface_typetable and its FK retire, and the entity renames end to end in one slice. The migration carries everything that spells the old noun: the table (with the task arc’s column and every constraint code names), role permission arrays rewritten in place preserving order, and the canonical reachability datapoint renamed row-in-place so every uuid-keyed sample keeps its history; a testcontainer round-trip stands the database below the migration, plants pre-rename rows, and drives the embedded SQL twice for idempotence, with the down exercised by the same test’s rollback. An unknown transport now refuses at write against the registry (422) instead of surfacing as a null-FK insert error;GET /transportsserves the registry to the console picker (bound throughbindSelectValue, since the options arrive after the blade opens), so no surface hardcodes the pair the old picker showed. The docs corpus, the operator and CLI guides, the glossary, and the seed catalogs speak endpoint;interface_type,interface-reachable, and the entity phrasings of the old noun join the docslint denylist, which promptly caught five stragglers, the seeded datapoint’s own YAML among them (#811, #603). -
The ladder climbs to layer 7. The
httpprobe draws a real response off the API (any status is an answer; the dial is hooked so port-closed classifies on the L4 rung while an accepting port that never answers reads reached-but-not-responsive) and thesshprobe runs a real key exchange (a completed exchange that refuses the credential reads responded-but-not-authenticated, distinct from a daemon that never speaks SSH). The canon grows five-lane-shaped:http-response-timeandssh-handshake-timeon the metric lane,endpoint-responsiveandendpoint-authenticated(written only when a credential was actually tried, so an unauthenticated probe never reads as a failed login) on the property lane, and thecollection-failedevent type, which the node now lands for a task whose config cannot be used instead of only whispering into its own self-logs. The reachability read serves the new rungs per endpoint and the panel wears them as chips that appear only once a probe has climbed them. Proof is the capability carve-out’s both halves: fake-based sample shapes plus real-socket integration tests, an httptest server, an in-process ed25519 SSH daemon whose password callback genuinely adjudicates, and accept-and-hang listeners for the not-responsive rung (#812, #603). -
A driver carries its spec, and attach derives the endpoint. The driver registry rows gain their body: a versioned declarative spec (data, not code: one transport, typed inputs with secret references, poll functions, listeners, command bindings), parsed strictly (an unknown field refuses rather than projects) and validated against the live catalogs at every write, so an unregistered emitted name or a phantom secret type refuses at authoring time with the fault named (ADR-0135). Creating an endpoint with a driver reference becomes an attach: the spec derives the transport and target, required inputs must be supplied and defaults bake, secret inputs resolve by reference name against the secret store (a missing row or the wrong shape is a 422 naming it), and the spec’s functions derive the endpoint’s tasks in the same transaction, each carrying its function whole with emit lanes baked at attach so the node never consults a catalog at runtime. The seeded
snmp-generic(v2c scalar: sysDescr and sysUpTime, timeticks scaled to the canon’s seconds by a declared transform) andnewtron-nvp(line protocol: a status poll, an EVT listener with its subscribe arm, a set-input binding) become real specs,uptimejoins the metric canon, and the seed installs secret types before drivers so a first boot validates cleanly. The console’s endpoint create grows the attach face (pick a driver, fill the inputs its spec declares) beside the bare probe, the Drivers page renders each spec as the menu it is, and the docs’ driver table renders from the same generated facts. Proven by pure spec-validation units, testcontainer round-trips over the write gate and the attach flow (derived tasks, lanes, refusals), and an HTTP e2e that attaches the seeded driver (#813, #603). -
Poll collection interprets the driver. The compiled unit the attach bakes (function, request, emits with lanes) moves to the shared
internal/driverpackage and gains its interpreter: locate each emit by its one extractor (OID, regex capture, dotted JSON path, key), apply the declared transform (enum map, then scale, then cast), type by the baked lane. The contracts the tests pin hardest: a metric-lane value that is not numeric is a fault, never a wrong-lane sample; a missing emit faults by name while the rest still land; an unmapped enum value refuses rather than projecting the raw through; a failed fetch lands nothing at all. The node’s dispatch tells a baked driver poll from a probe task by its spec and publishes each fault as acollection-failedevent beside whatever landed; a standing listen task is skipped inert until the stateful arc arms it. Fetching is two new capability wrappers, each proven on real wires: the v2c scalar SNMP GET (gosnmp) against a hand-rolled from-the-BER-spec UDP agent (request-id correlated, community adjudicated with silence for a wrong one, an OctetString sysDescr beside a TimeTicks sysUpTime), and a stateless line exchange against a real listener. Credential delivery closes the loop: the worklist reply resolves a driver task’s secret inputs and ships them unsealed on the per-node subject (the node’s NATS grant is the boundary; the attach is the audited operator action, so machine delivery writes no per-pull audit row), and a reference that no longer resolves is delivered as absence, which the node turns into acollection-failednaming the missing credential (#814, #603). -
The command wire actuates. The subject the grammar reserved becomes real: a node pulls
og.v1.command.<node>(request-reply mirroring the worklist, the same reply-inbox confinement and per-node grant) and receives the commands whose owning component has a driver-attached endpoint placed on it and whose driver binds the command’s type, each with its request rendered server-side at dispatch (the intended value into${value}, issue params into${arg.key}, references validated at spec write, an unrenderable binding recorded terminal instead of redelivered forever). The command row grows the execution arc beside settlement:dispatched_atstamped by the pull, redelivery after silence, a delivery TTL past which a command no node picked up falls to settlement’s timed-out, andexecuted_atstamped once by the node’s report onog.v1.commandstatus.<node>under placement confinement, with execution idempotent per command id at the node (a redelivery repeats the report, never the actuation). Any device answer counts as actuated; whether the device DID it stays settlement’s judgment, which now closes with real observed values from the driver’s polls. Proven end to end in one integration test: issue set-input, the node pulls and actuates a real line server over a real socket, the report stamps, the observed value lands, the verdict reads settled past the window, and the other node’s pull dies inside the denied publish (ADR-0136, #815, #603). -
The stateless arc’s review hardening. A
/code-reviewpass over the whole arc before merge closed four robustness gaps, each with a regression test. The worklist no longer masks an infrastructure fault as a missing credential: a real unseal failure (a key provider that cannot open the envelope, a DB error) now fails the pull so the node keeps its last-good worklist and retries, while only genuine absence (not-found or an ambiguous name) still rides as acollection-failed. Driver-spec validation gained the symmetric transport-shape check it was missing: atcppoll emit that locates by oid, key, or jsonpath (forms a line response cannot feed) refuses at write, the way ansnmpemit already had to locate by oid, and the per-emit extractor check runs first so a malformed extractor names its own fault. The SNMP interpreter strips a leading dot from an emit’s OID the same way the getter strips it from the response, so a spec authored in the standard MIB.1.3...form matches instead of faulting every tick. And the node prunes its per-command idempotence memory past the redelivery window, so a long-lived node’s command map no longer grows for the life of the run (#603). -
One form per kind (#826 slice 1, #830). The original blade vision, restored:
EntityFormis the one component that renders a location, a system, or a component read or edit, and whether it appears in the blade or on the workspace’s Configure tab is only where the operator clicked. The host owns the edit slot (the blade’s footer, the page’s footer) and hands it in; the form binds seed and save, keeps every field’s own gate (a caller with update but not rename sees the name read-only, with the reason), wires its kind panels through the ambient blade stack, and keeps the ruled save order (update, move, rename last, uuid-addressed). Create is the same form empty (EntityCreateForm: what and where before identity, the platform-named identity fields locked on the value they will carry, and anunderprefill for the explorer’s create-where-you-stand), so the three create pages become hosts that only say where to go next. The #800 jump-anchor rows retire; the blade’s members, strip, and vitals move to the workspace they summarised. -
The Explore page (#826 slices #831 and #837 to #841). The sidebar’s one door into the fleet is Explore. What it draws, and why it is not the Miller-column drill this slice first built, is the entry below: the columns were replaced before anything shipped. What survives from here is the page’s frame: finding one thing by name or by path fragment (a hit list at first, the console’s filter bar by the end of the epic);
?node=landing on a node by uuid or by a unique name; create where you stand, the same form empty with the placement prefilled through?under=; and the header’s toggle wearing today’s list face at?face=tableuntil #828. The Fleet entry and the reserved Explore stub retire from the sidebar;/fleetredirects here. -
Three tabs and one counts line (#826 slice 3, #832). Every workspace carries Overview, Activity, Configure: the system’s map and vitals fold into Overview, its history, events, and logs into Activity, and the retired tab addresses map onto the tab that absorbed them so old links still land. The shared header shows one counts line with the zero values left out (
countsLineover the scoped tile spec every altitude already built), and need-attention stays a filter where the page has rows to filter; the KPI summary rail, the tiles board, and the location header’s duplicate attention chip retire. The band canvas retires with them: the Fleet page, BandCanvas, and the paint core are deleted,/fleetredirects to Explore, and a guard over the source tree keeps the retired surfaces retired. -
The autopilot harness: an unattended day ships a reviewed slice (#844). The Define gate assumed a present architect: no approval comment, no branch, so a day nobody attended shipped nothing while the backlog aged. ADR-0138 moves that approval to the PR for slices the autopilot scopes itself: a scheduled Routine fires a fresh session each morning, the session reconciles the standing autopilot PRs, then takes the first rung that applies (an in-progress loop, an architect-approved definition, a
Bugby board priority, else it files a marked definition in the/define-workshape and proceeds), and the architect accepts by merging or vetoes by closing. The bounds are the point: the authorization layers, the migration rules, the audit contract, breaking API changes and dependency majors still wait for a human comment; at most two autopilot PRs stay open; merge stays human, always. Two disciplines ship with it because unattended is where they pay./assess-uimakes the visual claim checkable: the state list is written before the code, the matrix is captured against the real console (make dev,shot.mjs, the seeded fleet, dark-only), every capture is actually read against an eight-line rubric, and first-pass failures are named in the PR rather than smoothed over./file-bugmakes every finding an issue in the house shape rather than a TODO or a drive-by hunk; #845 (the viewport flag the squeeze check wants) is the discipline’s first artifact. Provenance is a marker line in the issue and PR body, never a new label class, the taxonomy staying fixed. -
The shipped seed names no real company, and a guard keeps it so (#658). The boot seed’s vendors and products moved to the fictional omniglass-lab catalog in the system workspace slice (#795), but the Vendors and Products guides kept enumerating the eight real manufacturers and four real SKUs by hand, so the docs still claimed an affiliation the binary had already dropped. Both guides now render their shipped set from the generated seed facts (
<SeededSet kind="vendors" />andkind="products", the products table carrying each declared-property contract), the same generate-first render the other catalog guides use, so the claim cannot drift again. A unit test ininternal/seedfails the build if any of the eight real names reappears in a shipped seed file; real vendors stay legal as operator data, which the guard does not touch.
Explore becomes a renderer library over one cut (#826, slices #837 to #841)
Section titled “Explore becomes a renderer library over one cut (#826, slices #837 to #841)”The Miller-column drill that slice 2 built was replaced before it shipped. Tested against a
generated fleet of a thousand systems across twelve roots of four different tree shapes, it
failed three ways: a screen spent on four levels of tree, a uniform depth assumed that
location_type and allowed_parent_types do not guarantee, and one question answered where
operators arrive with several.
What replaced it is four renderers over one model. place_cut.ts chooses, per root, the
shallowest container type that root has at least two of, so a campus of buildings and a
two-level annex sit side by side with each card naming its own type; the rule took three
attempts, and the two wrong ones (excluding childless types, breaking ties on a global tier)
each passed their unit tests and were caught by a render and by the e2e walk. view_budgets.ts
turns labels, area and z-order into things a view can afford rather than settings an operator
chooses: the label ceiling is twenty-four rooms, measured against the console rather than
picked. explore_view.ts is the one model every renderer consumes, so cards, bands, mosaic and
matrix cannot disagree about which card a system lands in or what a count says.
Two rules were earned by looking at output. A mosaic tile’s fill is the share needing attention, not a worst-wins rollup, because the first render came out uniformly red: at any realistic failure rate almost every aggregate contains one outage. And the mosaic’s layout is integer pixels with edges snapped once and widths derived from them, proved as a property test that every pixel of a frame is covered exactly once, because the percentage version left seams and overlaps that read as data.
presets.ts saves a way of looking under the name of the job it serves. A preset is a snapshot
of the same object the controls write to, so it can never mean something the controls cannot
produce, and it carries no scope at all: that omission is the line between this page and a
dashboard, and there is a test asserting it.
The page then took the console’s standard chrome, which is what the rest of the fleet already
wears: a counts line on top whose need-attention count is itself the quick filter, then
ListShell (filter bar and card) around the body. Three bespoke things retire with it. The
search box and its hit list become the filter bar’s bare term, matching a system by name or by
the place it sits in, and lib/explore.ts is deleted with them. The attention checkbox becomes
the counts line’s own button, writing the same verdict chip the filter bar shows, so the two
cannot disagree. And the status line folds into the counts line. Filtering drops a card whose
systems all fall outside it, which is what makes the filter read as a search; the filter keys
are verdict, location type, standard, path and name, and deliberately not a location facet,
since naming a subject is the drill’s job and the line this page holds.
Two defects came out of the alignment. The page’s attentionOf had excluded incomplete while
the console’s fleet tiles had always counted it, so the counts line said one when two systems
needed somebody; the older surface won, and the badge and the mosaic then had to learn that
incomplete is its own hue rather than a shade of degraded or the colour of an empty tile. And
the hover readout grew the counts line when a dot was hovered, reflowing the page under the
pointer and moving the dot out from under the click that was landing on it, which the e2e walk
caught; its slot is now reserved.
A readiness pass over the whole surface, driven against the console state by state, then found
what the unit suites could not. Every xs button in the console was drawing at 40px, larger
than an sm one: the Button primitive assembled its size class at runtime, the stylesheet
scan never saw btn-xs, and the rule was never emitted, so the preset bar and the counts
line’s filter stood taller than the cards they framed. The class names are spelled out now and
a test pins that every class the primitive emits is one the scan can see. The incomplete dot
was the neutral, which on this theme is the card’s own ground, so the one dot asking for
somebody was invisible; it wears the commissioning hue its badge wears, and a mosaic tile’s
name takes an ink chosen from its fill, since one ink for every tile vanished on the empty one.
The counts line now counts where the operator is standing. Beside the breadcrumb, “Headquarters,
41 systems” read as a claim about Headquarters, and the fleet’s attention count offered inside
a node holding none filtered that node to nothing. A section header under a filter says how
many of the place’s cards are drawn (“1 of 4 rooms”) instead of passing a filtered count off as
a fact about the place, and it pluralises a customer’s type name as the word goes. A control is
offered only under a renderer it changes, the matrix follows the drill its own rows trigger,
standard: filters under every renderer rather than only after the matrix had loaded the join,
and a drilled header opens the location’s own workspace, which the table face had been the only
road to. The face toggle and the kind tabs became the controls the workspaces already wear. A
link’s ?chips= and the browser’s stored view are checked on the way in, so a hand-edited link
or a renderer key from an older build draws the fleet instead of nothing.
The last of the inventory-era surface went with it. The Locations table still carried a KPI
chip row (a summary board with a type-mix donut) that ADR-0137 had retired everywhere else, so
the board, its TreeList plumbing and Donut are deleted; so are the health and members
panels the classic faces had left unmounted since #806, the name-address fallback no fleet
table can reach now that an identity route is a workspace, and the tile and band helpers the
canvas alone had read. The retired-surfaces guard names each one.
Explore becomes an outline of places (#861, slices #866 to #869)
Section titled “Explore becomes an outline of places (#861, slices #866 to #869)”The renderer library did not survive use. Four drawings of one fleet, a cut the operator had to reverse-engineer from the cards, and controls that came and went with the renderer made the page hard to navigate and opinionated about how to look; the ask was one simple way to see the stack at a glance and drill in as needed. Explore is now an outline: the place tree as an ARIA tree, each place wearing the system that sits there (standard and verdict on its own row, the components directly beneath), single-child chains folded into one row, and a collapsed row that says what it holds in the registry’s own type labels and counts its systems by verdict in four fixed slots. The rules the library had earned carry over (depth is the customer’s, counts rather than a worst-wins rollup, a predicate over live state rather than a scope); everything that asked the operator to choose how to look is gone. ADR-0137 is rewritten in place, since none of it shipped.
lib/outline.ts is the one pure model, tested with a plot, sector and coordinate fixture beside
the shipped campus tree, and components/Outline.tsx renders it. The cut, the budgets, the
presets, the mosaic and matrix cores and their renderers are deleted (about 4,000 lines with their
tests), as are the index halves of the Locations, Systems and Components pages: each route is now
its workspace or, at /<kind>s/create, a shared CreatePage, and TreeList keeps only the
options Files uses. Find things in your fleet folded into the Explore guide, and its address
redirects there.
The e2e rewrite found three things the unit suites could not. A folded row’s + could only add under its innermost place, so a campus of one building could never gain a second from the outline; the add menu now offers a section per place the row joins. A fleet with no locations showed “No locations yet” while a component created nowhere existed, invisible. And beside an open sidebar the Name column measured 16px at a 640px window: the columns followed the window, not the outline, so they now answer container queries and give way in order (standard, then type, then detail). The rollup’s own live capture at 640px then showed that passing a width check is not reading: a folded row cut its outer path and its own name equally (“Air… A.”), and a room two levels down kept one letter. The outer path now gives way first and steps aside at the narrowest, the indent halves, and Health drops its empty slots there; the e2e asserts the row’s own name is not clipped. The sidebar that keeps a third of a 640px window is the shell’s, filed as #871.
An adversarial review of the view then found nine more, each fixed behind a test proven red
first. The Detail column’s alarm text never rendered, because the health report names an alarm’s
component by uuid and the page looked it up by name. A collapsed place holding one system showed
only that system’s verdict and hid an outage in a child place. Every toggle rebuilt every row and
dropped keyboard focus (rows now iterate stable string keys). Keys pressed inside the portaled add
menu bubbled to the row behind it and opened the wrong panel. The add menu had no keyboard path
(it is + now), the unplaced node’s filter result opened a panel for a place that does not exist,
health reads fanned out for every system ever opened (now only those on screen, and none while
the filter shows results), results had no keyboard way to open a panel (Space), and ?node=
missed a folded outer place, a system placed out of sight, and a name shared by two kinds.
A detail view is one per system, its place a card of context (#872)
Section titled “A detail view is one per system, its place a card of context (#872)”The outline left the workspaces “reviewed separately”, and the review found them still speaking what the outline retired: a location page that was a band canvas with inert dashed holes and a cards/list toggle, a room and its system as two views under two names (“Meeting Room” titled under a “Briefing Room” crumb), three frames for one idea (the tabs above the counts line on two kinds and inside the card on the third), facts said twice (slots in the counts line and the header, metrics as tiles and as a table, the history on two tabs), and a side panel that was a configuration form. The architect’s ruling: the model is right, the orientation was not. Systems are the unit, places are folders and metadata, components are pieces of systems, and people care about their systems (ADR-0139).
So a system’s view is its place as a card of context above the system card and its tabs, and a
room holding one system lands on it. A folder place (none, or several) keeps a view of its own:
a brief card per system, then the outline rooted there, which needed OutlineWorkspace lifted
out of Explore and rootAt added to the outline model. A system’s components are rows in the
outline’s idiom, a role grouped only where it says something, the KPI tiles fold into Data, and
the history is Activity’s alone. The side panel is the glance (verdict, why with severity, the
place or the systems it serves with the role in each), the form’s configuration panels staying
on Configure. The shipped system label rule leads with the place, so a fresh fleet’s rooms and
systems read as one name, and healthy is grey on every pill, strip and marker. The band
builder, SystemCard, FleetRows, FleetShell and fleet_tiles are deleted and guarded.
The live console found two things the component suites could not. A room holding two systems re-mounted its system cards hundreds of times a second: the list iterated the system objects, a fresh fleet read handed back new ones, and each rebuilt card’s reads refetched the view (the cards now key on ids, behind a test proven red on the old code). And a role whose one device was down drew an “empty slot” beside that device, because the gap was counted from the shortfall rather than from unstaffed seats.
One claim did not survive the audit: the component page said a component’s place “follows the primary system”, and the schema carries no such inheritance (a component’s place is only what was set). The view now says which it is showing, the component’s own place or its system’s standing in, and the storage question stays with #862.
The label rule’s first cut read the place alone, so two systems of different kinds in one room
(a classroom and its signage) both read “Media Lab”. The architect’s ruling: a shared place names
each system’s kind (“Media Lab Meeting Room”, “Media Lab Signage”). That is a fact the rule could
not see, so the system’s data map gained SharesLocation, and a create, a move or a delete restamps
the systems at the places whose count it changed, in the same transaction.
The simulator joins the binary (#885, slices #886 to #888)
Section titled “The simulator joins the binary (#885, slices #886 to #888)”The device simulator that lived in the separate omniglass-lab project now ships in the omniglass
binary (sim), so a fleet of fictional devices can be collected from without real gear
or a second stack. The first slice ports the engine: the embedded catalog of device and system
profiles, templates and fleet manifests; the fleet compiler; and per-device listeners for HTTP(S),
SNMP, SSH, Telnet, TCP line sessions and UDP over one live state per device. The lab’s director,
gRPC stream, packet tagger and Zabbix trigger definitions stay behind, and the lab’s word
“estate” follows the glossary to fleet.
Porting found what the lab’s own tests had stopped seeing. They located the catalog by probing the filesystem and skipped when the probe failed, so a template reference left behind by the move to fictional vendors had gone unnoticed; they now load the embedded catalog and fail loudly, and a test walks every template the catalog references. A stopped device kept answering clients that were already connected, because each listener stopped accepting without closing what it had accepted; the acceptance test failed every second run in the same process until stops closed their connections. And with state no longer round-tripping through a database, integers stayed integers, which a DSP template formatted as floats.
The second slice puts the simulator beside a node. omniglass sim run holds the node’s own
credential, so the node’s subject grant is the whole of its authority: two new subjects in that
grant carry its device-list pull (og.v1.simlist.<node>) and its hit batches
(og.v1.simhit.<node>). It serves each component placed on the node whose product names a profile
and whose interfaces target a loopback address, and follows the list without a restart. The server
keeps hits in memory, accepting them only for components it handed that node, and shows them at
GET /nodes/{name}/simulation (omniglass node simulation). Writing the end-to-end test showed a
collector’s reachability probe never registered, since it connects and closes without a request;
an accepted connection now counts as a hit. The Helm chart has no node to put a sidecar beside
yet (#892).
The third slice simulates the seeded inventory, so the dev fleet is collected for real. The dev
seed gives every component a simulator profile serves an address and endpoints on the dev node:
the SNMP products attach snmp-generic (a seeded community secret, which meant seed-dev now
loads the server’s secret key), the Newtron panels attach newtron-nvp, and products whose drivers
are still stubs get a reachability probe. make dev-sim runs the simulator and the node together.
Run live, all 122 simulated components were served and reached, each landing what its driver
collects (uptime and an observed model number over SNMP, the observed video input over the line
protocol), and set-input issued to a panel changed the simulated device. Profiles share only
between variants of one kind of device (the Boreal Edge sizes), held to that by the seed’s
component types; the touch panel gained the NVP port, the display and DSP answer sysDescr, and
the port shift lifts only ports below 1024. The 1,000-device benchmark found a device with two line
protocols serving both with one’s config. Run live, set-input actuated but never settled: the panel is polled
every 30 seconds against a 15-second settle window, and settlement is only checked at issue. The
fix, settling from the command’s response or the next observation as each binding chooses, is
#900.
A command settles when its evidence arrives (#900)
Section titled “A command settles when its evidence arrives (#900)”Run against the simulator, set-input to a panel actuated and the device switched, yet the command
stayed issued and was later recorded timed-out: the panel is polled every 30 seconds against a
15-second window, settlement was checked only at issue, and the CLI’s instance-less command never
met the endpoint-instanced observation. Settlement now follows the evidence (ADR-0141). Each driver
command binding declares its source: the reply (from: response, with a value extract recorded as
an observation, or a success confirmation) or the next observation (from: observe, the default).
The node carries the device’s reply on its execution report and the server judges it by the
binding, recording a property target’s value as a validated, transition-only observation; a matching observation taken after the intent settles a command inside its window; the
check runs when an observation lands; and a server sweep times out what nothing settles. A command
with no instance is judged on its dispatched endpoint’s series. newtron-nvp’s set-input settles
from its reply, and the simulator end-to-end test now asserts the command settles.
Simulated devices can be broken on purpose (#885 rollup 2, slice #889)
Section titled “Simulated devices can be broken on purpose (#885 rollup 2, slice #889)”An operator unplugs, slows, or degrades a simulated device through PUT /components/{name}/impairment
(simulation:update, audited), and the simulator beside its node, started with --impairments and
NET_ADMIN, applies it through netlink: an nftables table drops traffic to unplugged devices and
ICMP echoes to loopback addresses that are no device (so ping tells the truth), and a netem class per
degraded device adds its delay, jitter, loss and rate. The release image is distroless, so no nft
or tc binary is involved. The real applier and the whole loop are tested in a NET_ADMIN
container (make test-netadmin, part of make test and CI), never on the host: unplugging fails the
collector’s ping and TCP checks and both endpoints read down, replugging recovers, a 300 ms delay
shows in the connect time, and a rate limit holds both ways (the review caught it shaping only
the requests; a second, rate-only class now takes the device’s replies, so the latency still counts
once). Two findings came out of it. Impairments are opt-in, because a simulator
run as root on a workstation would otherwise rewrite the host’s firewall. And an unplugged device’s
system verdict does not move: a component’s condition is its active alarms, and nothing raises one
from reachability yet (#819).
The simulated fleet in the console, and the simulator documented (#885 rollup 2, slices #890 and #891)
Section titled “The simulated fleet in the console, and the simulator documented (#885 rollup 2, slices #890 and #891)”The simulated fleet gets its surfaces. GET /simulation is every simulator and its devices,
GET /simulation/profiles the catalog, and GET /components/{name}/simulation a device’s API surface
read from its profile (every protocol surface with its routes, commands and OIDs, ports as the
simulator binds them). POST /components/{name}/simulation:fire sends one operation over the bus to the
simulator beside the component’s node, on a new subject of the node’s own grant (answered under a
one-reply response permission), and the device answers in process from its live state, so a command’s
change sticks and the fire lights up its row; the real-simulator e2e fires through the CLI and sees the
answer and the hit. POST /nodes/{name}/simulation/components adds a simulated component through the dev seed’s planner,
promoted to sim/simfleet, and the simulator serves it on its next pull. The console shows a
Simulation page (a card per simulator, a table of its simulated components whose rows light up on a hit), a simulation drawer (status,
impairment controls, the API surface and a fire form), and a Simulation section on a simulated
component’s page, all hidden while no simulator is connected. The docs gain the operator’s guide
(simulate a fleet), the install guide’s simulator privileges (ports below 1024, ping, NET_ADMIN, macOS
aliases), and ADR-0142 for the run mode. The profile vocabulary meets ADR-0134 on the way: a profile’s
“interfaces” are its protocol surfaces wherever an operator reads them, and the fire body names a
surface.
A whole simulated system, built to a standard (#911, slices #912 and #913)
Section titled “A whole simulated system, built to a standard (#911, slices #912 and #913)”An operator adds a simulated system in one step: POST /nodes/{name}/simulation/systems (omniglass simulation add-system) builds a system to a standard, staffing each of the standard’s roles with a
simulated product that fits its accepted types and pins (sim/simfleet.PlanSystem, pure), and
creates the system, the components, their endpoints and the role assignments in one transaction. The
system, component, role and endpoint creates were split into a public begin-and-commit wrapper over a
...Tx body, so the composite is the ordinary creates with the caller’s own scopes and audit rows,
committed once. GET /simulation/standards/{standard}:plan previews it, roles nothing simulated fits
listed short with the reason. The architect ruled the platform’s standard is the archetype and names are
platform-minted; the lab’s room archetypes stay only as the fleet compiler’s input (#914). The
real-simulator e2e adds a meeting room through the CLI and waits for the simulator to serve every
component. The console’s Add simulated system (#913) previews the plan as the standard is chosen
and adds the system from the Simulation page.
The test and capture stacks run side by side (#884, slice 1: #855 and #771)
Section titled “The test and capture stacks run side by side (#884, slice 1: #855 and #771)”make test-e2e, make docs-shots / docs-shots-check and make test-netadmin share one stack helper
(web/e2e/lib/stack.sh): every container and network takes a per-run id and a label, teardown stops
only its own on exit, interrupt or termination, and a run killed outright is swept by the next run with
the same prefix once its owning process is gone. Two worktrees running the same target at once no longer
destroy each other (both proven green at once), and a stack disturbed from outside mid-run fails saying
so rather than reporting the resulting broken capture as pixel drift. The old recipes also leaked
Postgres’s anonymous volume on every run; containers now start with --rm. This is the stack the
walkthroughs (#923) build on.
The walkthrough stack, with a node and the simulator (#884, slice 2: #923)
Section titled “The walkthrough stack, with a node and the simulator (#884, slice 2: #923)”stack_walkthrough_up in the shared stack helper brings up everything a walkthrough shows, all in Docker
with no fixed host port: Postgres, the server seeded with the dev and simulated fleets, the node edge-hq
enrolled through the API with a one-time token, and omniglass sim run --impairments sharing the node
container’s network namespace, with NET_ADMIN on the simulator only and the ping sysctl on the node. The
binary is the release image built from the tree with the Dockerfile, tagged with the run id and untagged at
teardown, so a clean checkout needs only Docker. The bus listens beyond loopback and advertises the
server’s container name, so the node claims and connects. In a container the simulator binds the real
ports, so seed-dev gained --sim-port-offset (default 10000, as make dev-sim needs) and the stack seeds
with 0; seeding with no lift had never been exercised and dereferenced a nil port shift, now fixed under a
test. make walkthrough-stack holds it for authoring, make dev-sim-container publishes the console on an
ephemeral loopback port for exploring by hand (it carries its own server: attaching to a host make dev
would need the host’s network, where NET_ADMIN reaches the host’s firewall), and make test-walkthrough-stack proves it against the real stack (the node collects; an unplug set through the API
takes a component’s reachability down, and repair brings it back), proven with two copies of the tree at
once and one killed mid-run. It stays out of make test: it builds the release image, and the impairment
loop itself is gated there by make test-netadmin.
The walkthrough recorder: scripts as data, captions and a visible cursor (#884, slice 3: #924)
Section titled “The walkthrough recorder: scripts as data, captions and a visible cursor (#884, slice 3: #924)”A walkthrough is web/e2e/walkthroughs/<id>.yaml: a title, an optional description, and steps of six kinds
(goto, click, type, select, press, wait), each with a caption. Validation is pure and strict
(web/e2e/walkthroughlib.mjs, unit-tested, and every script in the tree is validated by make test), so a
typo fails naming the file and the step before a browser starts. make walkthroughs plays each script on
the walkthrough stack in a Playwright container: it signs in off camera, records with Playwright’s video
at 1320x860, and draws into the page, from a shadow root that never takes a click, a cursor that glides to
each target before acting, a click ripple, a highlight ring on the target or the awaited result, and a
caption bar; a title card opens the video, and the pace is a person’s (a beat to read, the glide, the
action, a beat to see it; typing keyed at about nine characters a second). The webm becomes an H.264 mp4 in
a pinned ffmpeg container with no network (jrottenberg/ffmpeg:7.1-alpine, by digest), beside a poster (the
step marked poster, else the last) and a still per step. A step whose result never appears fails the run
naming the step, its kind and its wait, keeping the partial stills and the failing frame; a recording of
60 seconds or more, or 10 MB or more, fails naming which. The sample (sample-simulation, five steps)
records to about 16 seconds and 0.6 MB. make test-walkthroughs pins both failure paths against the real
stack with fixtures under web/e2e/walkthroughs/fixtures/.
Walkthroughs as PR evidence: the run:walkthrough comment and the gates (#884, slice 4: #925)
Section titled “Walkthroughs as PR evidence: the run:walkthrough comment and the gates (#884, slice 4: #925)”Applying the run:walkthrough label runs walkthrough.yml: it records the PR’s walkthroughs on the
walkthrough stack (every one, or just the scripts a PR that changes nothing else under web/ adds or
changes), exactly as make walkthroughs does locally (the simulator’s NET_ADMIN is a container
capability, which a hosted runner grants as it already does for make test-netadmin), uploads the mp4s as
a workflow artifact, replaces the PR’s stills on its branch with each passing walkthrough’s poster and
per-step stills under .github/screenshots/<pr>/walkthroughs/<id>/, and upserts one PR comment, found
again by its marker and its bot author as the preview comment now is too, embedding them by commit SHA
and naming any walkthrough that failed (a failure also fails the job; a stack that never came up is
reported as that). The choices it makes (which walkthroughs, where stills go, the SHA-pinned URLs, the
comment body, with script text escaped onto one line) are a dependency-free module
(web/e2e/walkthroughpr.mjs) unit-tested in make test-web, and walkthroughs.sh record now takes
several ids, lists the failed ones in out/failed.txt and marks a stack that came up with out/stack-up.
It cannot loop: it runs only on labeled, and GitHub starts no workflow for the workflow token’s push.
Fork PRs are skipped, checkout persists no credential, and only the push step holds the write token.
/ship-slice gained the gate the architect ruled (a PR that adds or changes an operator flow is not
ready without the walkthrough comment), /assess-ui grades the per-step stills with a walkthrough
rubric (the agent cannot watch video), and the PR template’s Visual confirmation carries a Walkthrough
line. The workflow’s run against a real PR is proven on this epic’s rollup PR, not by a local test.
Walkthroughs in the docs: the walkthrough directive (#884, slice 5: #926)
Section titled “Walkthroughs in the docs: the walkthrough directive (#884, slice 5: #926)”A docs page embeds a walkthrough the way it embeds a screenshot: the id in walkthroughs frontmatter
and ::walkthrough{#id} alone on its line. The two directives share one resolver
(docs/src/plugins/frontmatter-directive.mjs), one source scanner (docs/scripts/lib/embed-scan.mjs:
a leaf directive alone on its line, never a text directive, a container, or a quote in code or an HTML
comment) and one pre-build gate (docs/scripts/check-embeds.mjs, formerly the screenshots-only check).
The declaration is only the id: the embed renders the recorder’s manifest, so the title, captions, the
poster step and the folded per-step stills come from the recording, never a restated caption; the
manifest’s types and id and still rules are one module the PR comment also reads
(web/e2e/walkthroughcore.mjs). The recorder’s budget gate now writes a budget mark into
walkthrough.json on a pass, and make docs-walkthroughs copies the manifest and stills of every
declared walkthrough into docs/public/walkthroughs/<id>/ (committed, like the screenshots) only from a
manifest carrying that mark, pruning files from an older recording. The mp4 is not committed: the embed
renders the video and its link only when docs/public/walkthroughs/<id>/<id>.mp4 is present at build
time (gitignored; DOCS_WALKTHROUGH_VIDEO=1 copies it for a local build). Astro caches a rendered page by
its own content and cannot be told the embed depends on the manifest, so a post-build check
(docs/scripts/check-walkthrough-embeds.mjs) re-renders every built embed from the shipped manifest and
fails the build on any difference or dead reference; a re-copy is followed by a forced build. The docs lint
suite gained the walkthrough lint (a script per declared id, every declaration embedded, every directive
declared, the budget mark, the stills and poster present, no drift between the copy and its script’s title,
description, step count and captions, no orphan copies), the render and the scanner are unit-tested in
make test-web, and simulate a fleet embeds the sample.
Walkthroughs teaches writing, recording, reviewing and embedding one.
The first walkthroughs: fix a place, set up monitoring (#884, slice 6: #927)
Section titled “The first walkthroughs: fix a place, set up monitoring (#884, slice 6: #927)”Two walkthroughs record under make walkthroughs and pass as tests. Find a place and fix it drills
Explore to a place, opens its system, renames the place from the system’s Configure tab, and shows the
label follow into the system’s header and back on the outline; it is embedded in the
fleet guide. Set up monitoring attaches the generic SNMP driver and adds an
ICMP endpoint to a simulated display, then reopens its page to show reachability and samples arrive (the
view does not poll yet, #934, so the driver goes first and the probe holds past a node heartbeat); it is embedded in the
collection guide. Node enrollment runs on the node’s host, so the
walkthrough uses the node the stack enrolls and says so; the unplug, the rule’s alarm and the health verdict
are their own walkthrough, Watch a rule raise an alarm, embedded in the rules guide (#921). The walkthrough stack adds one simulated-product component with no
endpoint (bay-2-display) so the monitoring walkthrough starts from nothing, and the page header carries a
page-header test id as a stable wait target. Defects found on the way are filed: #931, #932, #933, #934.
Severity becomes a ranked registry, and event rules are authored (#819, slices #917 and #918)
Section titled “Severity becomes a ranked registry, and event rules are authored (#819, slices #917 and #918)”Severity is a registry of named, ranked levels (severity_level): five official levels from the boot
seed (info 10 to disaster 50), operator levels added between them, renamed (alarms follow), recolored and
re-ranked at /severity-levels. The alarm’s three-value CHECK became a by-name reference, added NOT VALID because the levels are boot-seeded after migrations run, and existing alarms mapped by meaning:
critical became high, the outage floor, so no verdict moved. A component’s own verdict reads the
rank. The review caught a re-rank leaving recorded health stale (a re-rank now recomputes every
component with an open alarm at the level) and a future official level able to take over an operator’s
(a clash now stops the boot naming it). The console reads the registry through one severity badge. Event
rules are authored at /event-rules (gated rule:*, fleet-wide config): a registered sample key on its
lane, fire and clear criteria (the placeholder comparison until the expression engine), sustains, a
severity level, and a selector of component types and components; an update bumps the version. The five
rulings are ADR-0144.
Rules raise alarms on their own, and the loop closes (#819, slices #919 and #920)
Section titled “Rules raise alarms on their own, and the loop closes (#819, slices #919 and #920)”The evaluator judges each landed sample against the enabled rules reading its key, in the sample’s
transaction and under a savepoint (a rule’s failure is logged, the sample lands), through the same
guarded raise and clear a hand raise uses. One alarm per component and instance, keyed rule:<name>:<instance>
so a rule’s conditions never share a hand raise’s namespace; a sample older than its series’ newest
decides nothing, so a late or redelivered down cannot reopen an incident; disabling, deleting or
narrowing a rule clears what it holds. Sustains run on a durable streak per rule, component and instance,
acted on by a later sample or by a sweep on the settlement tick: the architect’s ruling when it turned out
the reachability verdict reports only on change. The adversarial review hardened the streak: the sweep
and an arriving sample serialize on a per-series advisory lock, and the sweep claims a streak by
compare-and-delete, re-judges the newest sample and acts in a transaction per streak, so a recovery that
lands as the sustain runs out can no longer leave the alarm open; an ingest holds the rules it judges by
(FOR SHARE) for its batch, so a disable or delete waits for an in-flight batch and clears what it raised; sustains are timed by the server’s
receipt, not the node’s clock; only a material edit restarts a streak; and creating, enabling, materially
editing or seeding a rule primes it from each series’ newest sample, so a condition that already holds
is not lost on a transition-only input. The boot seed ships reachability-lost, and the
NET_ADMIN end-to-end now closes the loop with no hand-raised alarm: unplug a simulated component, the
rule opens its alarm after 15 seconds (the test asserts none opens in the first 10) and the system,
whose one outage-impact role at quorum 1 the component fills, leaves healthy; plug it back and both recover. The
#557 fix rode along: every alarm read carries the component’s uuid and name, and the console links by the
uuid again (the review caught stale fixtures hiding the break).
The rules page, the severity levels beside it, and the epic’s docs (#819, slice #921)
Section titled “The rules page, the severity levels beside it, and the epic’s docs (#819, slice #921)”/rules went from a stub to the event rule registry: each rule’s key, its criteria in words, its
severity in the level’s color and its live state, read from GET /event-rules/{name}/state (the alarms
it holds open and its streaks waiting out a sustain), with a blade listing both linked to their
components and create, edit, disable and delete in a drawer, validated in TypeScript; official rules are
read-only. Catalog > Actions > Severity sits
beside it, a read view of the levels worst first with rank, color and effect (authoring stays CLI and
API, #930), and every alarm chip in the console renders through the registry. “Last evaluated” did not
ship (#929, ADR-0144 point 7). Writing the docs caught the console teaching the wrong thing: the
disable hint and the delete confirmation said a rule’s open alarms stay open, where the server clears
them; both now say so, under a test. The seed facts render the shipped levels and the official rule, so
the alarms page and the new rules guide no longer restate them by hand. The
closed loop was walked on a simulated fleet with NET_ADMIN: unplugging a component opened the official
rule’s High alarm and degraded its system, replugging cleared both, and a rule created on /rules opened
its alarm, in an operator level’s label and color, when a simulated panel’s input moved.
Review hardening on the same slice. A rule edit is now judged on what it changes from the stored rule
(a restated selector entry, key or criteria is not re-resolved), and the console PATCH sends only the
fields an edit changed, so a rule watching a since-deleted component or type stays editable; the form
marks such an entry deleted. The list and get carry open_alarms and pending_streaks, read for the
whole list in one aggregate query, so the page polls the list every 10s instead of each row’s /state.
GET /auth/me gained fleet_permissions (the permissions on all-scope grants), and every rule write in
the console is gated on it, so a caller holding rule:create only on a place is no longer offered one.
Criteria values are kept exact (edge spaces refused, a metric a strict decimal). Rules now read like a registry
(any rule:read lists them, with counts, open alarms and streaks fenced to the caller’s component read
scope), while writes keep an all-scope grant (ADR-0144, amended).
The slice carries the epic’s walkthrough, Watch a rule raise an alarm, embedded in the rules guide: a simulated touch panel unplugged from its page, the official rule’s blade showing the streak wait out its 15s sustain and then the open High alarm, and the panel’s system degraded with its Touch Control role short. It waits on the blade’s own poll rather than holding for a fixed time, and it stops at the open alarm: the probe’s detection, the sustain and the sweep tick take about 31s of the 60s budget, which leaves no room for the replug and the clear.
A walkthrough plays on the PR page and in the docs: the animated preview (#937)
Section titled “A walkthrough plays on the PR page and in the docs: the animated preview (#937)”GitHub plays inline video only from a browser upload, which a workflow cannot make, so the recorder
now encodes an animated WebP preview (preview.webp, beside the poster) from each mp4 with the same
pinned ffmpeg, as a labelled background one-shot like the mp4 encode: 8 frames a second, 960px wide,
lossy quality 70, looping forever. Measured on the four shipped recordings (19 to 58 seconds), the
previews land between 0.60 and 0.85 MB, about the size of their mp4s, with the caption bar and the
console’s text legible; 6 and 10 fps, quality 60 to 80 and the full 1320px width were measured too,
and full width more than doubled both the size and the encode time for text already legible at
960px. The budget gained MAX_PREVIEW_BYTES beside MAX_SECONDS and MAX_BYTES, measured
on the file: a missing or over-budget preview fails the recording naming the limit, and the budget
mark, now carrying the preview’s size, is written with the preview’s name into walkthrough.json only
when the mp4 and the preview both pass (a later failure takes an earlier mark back);
make test-walkthroughs proves an over-budget preview fails a recording whose mp4 passes. The
run:walkthrough comment leads each walkthrough with its preview, embedded by commit SHA, the poster
and folded stills below, and the workflow commits the preview with the stills. The docs embed shows
the preview in place of the poster step’s still when the manifest names one, make docs-walkthroughs
copies it, the post-build embed check re-renders it, and the docs lint fails a manifest naming a
preview that is not preview.webp or was not copied; the preview name is one constant in the shared
manifest core (web/e2e/walkthroughcore.mjs). The four docs walkthroughs were re-recorded and
re-copied, so every embed now plays.
Review follow-ups on the same PR. The video starts before the title card is painted, so a preview cut
from frame 0 opened on black or a half-painted card: the recorder now notes when the card is painted
and the preview encode seeks a settle beat past it, and the budget gate measures the opening frame’s
brightest luma and fails one that is blank. The docs embed wraps the preview in a <picture> whose
source applies only without a reduced-motion preference, so those readers get the poster step’s still.
The docs lint refuses any preview value but preview.webp (empty and null included, as the shared core
does) and a stray preview.webp beside a manifest that names none, the selftest checks a failed
preview budget also removes the preview’s name, and the workflow job gained a 45 minute timeout.
Walkthroughs and labels now state what the
committed previews and stills cost the repository per re-recording and per PR.
The Cloudflare Pages docs build failed on every commit of the PR while the GitHub build passed. Its logs
were not reachable, but the cause reproduces locally: Pages restores Astro’s content cache
(docs/node_modules/.astro) from the last deploy, the cache keys a page render on the page’s own
content, and building main, then this branch on main’s cache, keeps the pre-preview render of the
three .md pages that embed a walkthrough, which the post-build embed check fails as stale. The docs build now runs Astro through
docs/scripts/astro-build.mjs, which digests every copied walkthrough.json, each walkthrough’s
file listing (the video renders only when present) and the embed’s plugin sources, compares the
digest with a stamp written beside Astro’s cache after the last good build, and forces the build
only when they differ, so a copied walkthrough no longer needs a manual astro build --force.
A reconcile pass heals a rule decision lost to a race (#928)
Section titled “A reconcile pass heals a rule decision lost to a race (#928)”The #920 review left two windows that could lose one decision on a transition-only input: a rule enabled while a batch carrying its key was uncommitted (the prime cannot see the batch’s sample, and the batch loaded its rules before the enable), and a judgment aborted by a deadlock (the sample lands under its savepoint, the action does not). Both now heal within a minute: the settlement tick runs a reconcile pass that reads every series with a sample past the older of the last two passes’ marks (a batch in flight at one pass may commit ids below its mark), judges each enabled rule’s state against the newest sample in memory, and corrects only a series that drifted, in its own transaction under the documented lock order. A pass over agreement writes nothing and keeps every streak’s clock; a failed correction rereads its range next time. Both windows are reproduced in testcontainer tests (the enable stalled behind an in-flight batch, and a real deadlock the batch detects and aborts), each leaving drift on the previous code and healed by one pass.
A rule says when it last judged a sample (#929)
Section titled “A rule says when it last judged a sample (#929)”The rules page could not tell a quiet rule from one whose key had stopped arriving. Each rule now
carries last_judged_at on the list, a get and the state route, shown as the Live column’s tooltip and
the blade’s Last judged fact. The #920 review had kept a per-sample write off the ingest path, so the
stamp is coalesced (ADR-0144 point 7, amended): an ingest batch stamps the rules it judged once, as its
last statement, only when a rule’s stamp is at least 5 seconds old, skipping a stamp row another batch
holds, in a new event_rule_live table rather than on the rule row every batch holds. Testcontainer
tests prove the stamp moves only on a judgment (not a disabled rule, an unwatched component or a
history sample), coalesces inside the bound, agrees across the list, get and state, and never makes a
batch wait.
Severity levels are authored on the console (#930)
Section titled “Severity levels are authored on the console (#930)”Catalog > Actions > Severity went from a read view to a registry an operator writes: New severity
level and a level’s Edit open one form in a drawer (name, label, color, rank), and Delete sits
behind a confirm; official levels stay read-only. Writes use the existing API and gate on
severity_level:* on an all-scope grant, like a rule write (ruled 2026-10-20, ADR-0144): a level’s rank
moves health fleet-wide, so the gateway refuses a bounded holder (ErrSeverityLevelForbidden, a 403,
proved by a testcontainer storage test and an API test of a place-scoped owner), and the console gates
New, Edit and Delete on the caller’s all-scope permissions (canFleet). The form
teaches the rank as it is typed, against the live registry: where the rank sits (“Between Average (30)
and High (40).”), whether an alarm at it takes its component out or degrades it, and the chip its
alarms will wear; a name or rank another level holds is refused before anything is sent, and a delete
the server refuses (a level an alarm or rule still names) says why on the blade.
The rule follow-ups’ review hardening (#928, #930)
Section titled “The rule follow-ups’ review hardening (#928, #930)”The review of the three follow-ups caught the reconcile pass costing more than it healed at the edges.
A restart read the whole sample history (twice, through the two-pass lag), and the property lane had no
per-series index, so each newest-sample lookup read a series’ whole history: a fresh pass now starts a
bounded lookback from the newest sample, and property_series_idx (component, type, instance, ts desc)
replaces property_component_idx, the twin of the metric lane’s metric_owner_idx, asserted by an
EXPLAIN test on both lanes. The pass ran inside the sweep’s goroutine without a deadline, so a slow pass
held up sustains and settlements; it now has a loop of its own, under a deadline, cancelled on shutdown.
And one series whose correction kept failing pinned the mark, widening every later pass: the marks now
always advance, and a failed series is retried on its own a few times, then dropped with an error.
On the severity page, the name is judged on the shared entity name rule (the length cap and the uuid-shape refusal included, and only when an edit changes it), a save refreshes the cached alarm, health and fleet views a rename or re-rank moves, and a level write now locks the rules naming the level before the level itself, the same order an ingest takes, so a rename concurrent with a batch raising at the level waits for it instead of deadlocking (a regression test reproduces the deadlock on the old order).
An event rule’s alarm is optional, and its events are typed (#938, slice #948)
Section titled “An event rule’s alarm is optional, and its events are typed (#938, slice #948)”The first slice of the event-to-alarm edge. event_rule.severity is nullable (the reference to the
level registry keeps ON UPDATE CASCADE): a rule with no severity is informational, and the evaluator
raises no alarm for it, while a clear still resolves an alarm the rule holds open from before it went
informational. A rule names its event types from the event_type registry by name, a required
fire_event_type and an optional clear_event_type, stored as fire_event_type_id and
clear_event_type_id references (a type a rule names cannot be deleted; deleting a referenced event
type is now a 409, where it was a 500). The boot seed lands two official types, condition-started
and condition-ended, and gives the official reachability-lost rule that pair; the seeded-rules table
on the rules guide renders the types and an informational rule’s absent severity from the seed. The
schema change is three migrations, one per bucket: the DDL (the nullable severity, the two type
references, event.alarm_id with ON DELETE SET NULL, and the event_rule_condition table keyed and
cascading like event_rule_state), a one-time backfill giving every existing rule the generic pair
(creating the two types insert-if-absent when rules exist, since the boot seed runs after migrations;
a fresh database gets them from the seed alone), and the NOT NULL on the fire type after it.
/event-rules takes and returns the new fields (severity absent on read for an informational rule;
a PATCH with an empty severity makes a rule informational, an empty clear_event_type drops the
clear event, an empty fire type is a 422), and the CLI follows from make gen. Changing a rule’s event
types is not a material edit: it changes what the rule writes at an edge, not when the edge falls, so
its streaks keep running. The console’s new-rule form sends the generic pair until it gains the type
pickers (#951). Writing the events at the edge, the condition rows and event.alarm_id is the next
slice (#949); the page badges move with the epic’s last slice.
A firing rule writes its events at the edge, carrying its alarm (#938, slice #949)
Section titled “A firing rule writes its events at the edge, carrying its alarm (#938, slice #949)”The second slice of the event-to-alarm edge. A rule’s in-force state is now its own
event_rule_condition row, for every rule, informational or not, rather than the alarm it holds open.
Every path that judges a rule reads it: the ingest evaluator’s in-force check, the sweep’s re-judge
before it acts, priming on create, enable or material edit, and the #928 reconcile pass, whose drift
check reads the condition in the same one-statement scan (so an informational condition held across
samples no longer reads as drifted on every pass, and its streaks no longer churn). When a condition
comes into force the rule writes the row, opens its alarm when it has a severity, and writes its fire
event; when it leaves, it deletes the row, resolves the alarm and writes its clear event when it has a
clear type: once per edge, in the transaction that moves the alarm and recomputes health. The event is
origin = derived on the series’ component and instance, with the rule’s message and the sample’s
key and value as attributes, derived_by_rule_id (now a reference to event_rule, set null with the
rule, by a new migration), the rule’s name and version in source_rule and source_rule_version, and
alarm_id set to the alarm it opened or resolved. Disabling, deleting or narrowing a rule ends its
conditions with their clear events; turning a severity on opens alarms for the conditions in force,
and turning it off resolves them, leaving the conditions in force, with no condition event either way
(the alarm’s audit rows, naming the editor, record a rule edit’s open and resolve), and a material
edit primes before its severity reaches the conditions. A hand clear of a rule’s alarm holds until the
condition ends and returns, and an alarm the rule holds open with no condition row (an older binary’s,
mid-upgrade) counts as in force, so a recovery resolves it rather than stranding it. A one-time backfill gives every rule-raised alarm open
at upgrade its condition row, since it opened, so the next recovery resolves it with a clear event. The
component and system event reads return derived_by_rule and alarm_id. The netadmin end-to-end
test now proves, on the real stack, that each alarm the unplug opens was opened by exactly one
condition-started event carrying its id, and resolved after the replug by exactly one
condition-ended event carrying it.
An alarm’s timeline, its events and audit rows (#938, slice #950)
Section titled “An alarm’s timeline, its events and audit rows (#938, slice #950)”The third slice of the event-to-alarm edge. GET /components/{name}/alarms/{id}:timeline (omniglass component alarm timeline) reads one alarm’s history oldest first: the events that carry it through
event.alarm_id (a rule’s fire and clear events) merged with its audit rows (the raise, each
acknowledgement, the clear, and a rule edit’s severity open or resolve, naming the editor). It is gated
alarm:read, resolves the component in the caller’s component read scope first (a component it cannot
read, and an alarm not on the component, are the same non-disclosing 404), and costs two bounded
statements: the alarm, then one ordered union of both sources. A new partial audit_log index on
alarm rows keeps the audit half a probe rather than a scan. At one instant an event sorts
before the audit row it caused, since a rule’s event and its alarm write share the transaction’s clock;
an audit row the platform wrote for a rule alarm names that rule. In the console every alarm row (the Why
strip on a component’s and a system’s page and blade, the component’s alarms panel, active and recently
cleared, and a rule’s open alarms on the Rules blade) carries a clock toggle that opens the timeline in place under the row, one shared primitive
(AlarmTimeline and createTimelineToggles), since a drawer is the design system’s form surface and a
row’s history is read where the row is.
Informational rules on the console, and derived events on Activity (#938, slice #951)
Section titled “Informational rules on the console, and derived events on Activity (#938, slice #951)”The last slice of the event-to-alarm edge. The rule form’s Severity gains None (informational);
a new rule still starts at the default level until its author picks one (None included), and an edit
never fills one in. Fire event type (required) and Clear event type (optional, No clear
event) pick from the event type registry, judged in TypeScript. The rules list shows an informational
rule with a quiet neutral chip in place of a level, and its live column counts conditions in force
beside open alarms and pending streaks: the list, a get and the state route carry conditions_in_force,
and the state lists the conditions themselves, each fenced to the reader’s component scope like the
other counts. A rule’s blade gains Writes (its event types) and Conditions in force. Activity on
a component and a system names the rule that derived each event, linking to the rule’s blade
(/rules?rule=<name> now opens it), and an event that carries an alarm opens that alarm’s timeline in
place; the system event read names each row’s owner by uuid (owner_id) so the timeline opens on the
right component. The docs roll up: ADR-0145
records the optional alarm, the event types on a rule, the condition row as in-force state, one event per
edge with severity toggles writing no condition events, and a hand clear holding while the condition
persists; the rules guide teaches conditions and both behaviors; the glossary gains condition and
informational rule. Alarms and actions and events stay Partial (actions, log derivation, the
scheduled origin and the CDC publisher are still design). The watch-a-rule-raise-an-alarm walkthrough
is unchanged: this branch predates the 2s simulator check-in (#945), so showing the derived event on
the component’s Activity would not fit its 60s budget.
An alarm’s timeline reads every id form and stays fresh (#938, #950 follow-ups)
Section titled “An alarm’s timeline reads every id form and stays fresh (#938, #950 follow-ups)”Review follow-ups on #950: the timeline matches an alarm id in any form Postgres reads (uppercase,
braced) by its canonical form, which the audit rows key on (an uppercase id had returned the events and
none of the audit rows); the platform’s audit lines name the rule as its events recorded it, so a
deleted rule still names them; the gateway takes the component uuid the route resolved, so the read is
the two statements it says; the audit index is partial on alarm rows, with its upgrade cost in the
migration’s header; an open timeline refreshes every 5s like its alarm list (paused while the tab is
hidden), and an acknowledge or clear refreshes it at once; the toggle is a disclosure
(aria-expanded, aria-controls) named by the alarm’s message; each line shows its message and an age
to the second, with the exact time on hover, every age from one clock. Identity and access now says the
timeline shows an alarm’s hand actors to alarm:read (the effective actor only) on purpose.
Rule links and counts tell the truth (#938, #951 follow-ups)
Section titled “Rule links and counts tell the truth (#938, #951 follow-ups)”Review follow-ups on #951. The /rules?rule=<name> link follows the param as it changes (back and
forward open the rule it names) and clears it when the blade closes; a linked rule’s blade says
Rule not found only once the list has loaded, and reads no state for a rule that is not there. An
event names its rule by id (derived_by_rule_id) while the rule exists, so Activity links a live rule
and shows a deleted one’s recorded name as plain text marked deleted. A rule’s live counts and state
read conditions in force the way the evaluator does, an open rule alarm with no condition row
included, so open alarms never outnumber conditions in force. ADR-0145 gains its one exception: a
severity turned off and back on reopens an alarm for every condition in force, a hand-cleared one
included.
Configure place lands on Configure, followed in the console (#932)
Section titled “Configure place lands on Configure, followed in the console (#932)”Configure place on a sole system’s place card links to the place with ?tab=configure, and the
place’s view hands its address on to the system, query kept. Followed inside the console it landed
on the system’s Overview: the redirect read the query off the window, which on a client-side
navigation still holds the page being left. It reads the router’s own location now, the same
fix for the three name-to-uuid redirects (place, system, component) that read the window the same
way. A component test follows the link from another page, the path a direct load never took.
An endpoint still answering reads fresh (#931)
Section titled “An endpoint still answering reads fresh (#931)”The reachability verdict is stored only when it changes, so its timestamp is the last up/down transition, and the console aged it as though it were the last sample: an endpoint answering every probe read stale in the Endpoints panel, and “stale sample; the node is healthy” in a component’s Collection card, a few minutes after its last change. The console now ages an endpoint by when it was last seen (the server’s stamp, #933 below), in the pill, the Collection state, its “last seen” age and the panel’s “last checked”. Pure tests pin an old transition with a fresh stamp reading responding and collecting.
A driver endpoint reads collecting while its samples arrive (#933)
Section titled “A driver endpoint reads collecting while its samples arrive (#933)”A component’s Collection card read no sample yet on a driver endpoint (an SNMP display, say) while
its Vitals showed a live Uptime: the card judged collection by the reachability verdict, which only a
probe endpoint gets. No sample row can stand in for it: ingest stamps a sample with its endpoint’s name
only when the driver gave it no instance of its own, the property lane writes only a changed value, and
a sample’s time is the node’s clock. So ingest now records it directly: as it lands a batch from a task,
it stamps the task’s endpoint seen in endpoint_live, by the server’s clock, whatever the batch carried.
The stamp is coalesced as event_rule_live is: one statement per batch, a row stamped within 5s left
alone, a row another batch is stamping skipped (SKIP LOCKED), and a first sight inserted ON CONFLICT DO
NOTHING so two batches seeing a new endpoint never abort each other. The reachability read carries it as
last_seen per endpoint, and the verdict’s ts is documented for what it is, the last change. The console
judges collection by last_seen (a down verdict still reads as the component answering badly), so a
driver endpoint reads collecting while its batches land and stale once they stop. Proven by a bus test
through the one ingest write path (an instanced driver series, a property-only driver whose value never
changes, a sample dated an hour ahead), a storage test (first sight, the coalescing bound, sixteen
concurrent first sights), the reachability API test, and pure tests of the collection state.
A component’s view refreshes as collection arrives (#934)
Section titled “A component’s view refreshes as collection arrives (#934)”A component’s view fetched once at mount, so after adding an endpoint its Collection and Vitals stayed as they were until the operator left and came back; only its Simulation section polled. The view’s own reads now poll: reachability, vitals and alarms every 5s (the cadence of a rule’s detail and the Simulation section), and the two fleet-wide reads it borrows (the verdict off the fleet view, and the nodes behind its Collection card, whose heartbeat age would otherwise go stale under fresh samples and read “node offline”) every 10s. Each is one request however many endpoints or series the component has, and TanStack holds an interval while the tab is hidden. The alarm ages move with the alarms read rather than staying pinned to the page’s open, which would have read negative for an alarm raised after it. A component test advances the clock and watches a stale endpoint, a missing vital and an absent alarm all arrive, and another holds the poll while the tab is hidden.
Set up monitoring no longer reopens the page or holds past a node heartbeat: it closes the new endpoint, turns to Overview and waits there for the samples, and its poster now shows both endpoints collecting (#933). It records in 51s to 56s. Watch a rule raise an alarm still ends on the open alarm and the system it moved: its wait is the probe’s detection, the sustain and the sweep, not the component’s view, and the replug and the clear would add about 12s to a recording that runs 53s to 56s.
The component view’s review follow-ups (#931 to #934)
Section titled “The component view’s review follow-ups (#931 to #934)”A component’s view no longer polls anything that grows with the fleet. Its verdict rides on its alarms
read (GET /components/{name}/alarms now carries the component’s own verdict, the one its active
alarms make, computed the way the health recompute records it), and the node behind each endpoint is
read one by one (GET /nodes/{name}, every 10s), where it polled the whole fleet view and the whole node
list for one verdict and one node. The API health test pins the verdict through an alarm’s raise and
clear, and the leaf’s poll test counts no fleet view and no node list.
Every age on a component’s view, and in its Endpoints panel, now reads one ticking clock (a
createClock primitive, a second’s grain) rather than the time the data last changed: a poll that
returns the same answer changes nothing a query can see, so a node that died would have left its
endpoint reading “collecting, 4 s ago” indefinitely. Tests hold every read in flight, advance the clock,
and watch the card turn to node offline and the pill to stale.
The Collection card and the Vitals hint say component where they said device (“check the component or the path”, “component reports down”), the product’s word for the thing collected from.
The walkthrough stack checks in every two seconds (#934)
Section titled “The walkthrough stack checks in every two seconds (#934)”The walkthrough stack’s node now runs with a 2s heartbeat where it ran with 5s (web/e2e/lib/stack.sh,
a test-stack setting; the product’s node run --heartbeat default is unchanged). Each check-in pulls the
worklist and runs the probes, so a walkthrough’s waits on new tasks and on a probe’s verdict ride on it.
Set up monitoring now records in 48s to 51s (three runs). Watch a rule raise an alarm records in 44s to
53s (three runs), most of it the sustain, the sweep and the blade’s poll, which the heartbeat does not
touch, so it still ends on the open alarm: the replug and the clear were recorded on top of it and
measured 64.1s ending on the panel reading healthy again and 68.2s ending on the rule’s blade at
Open alarms (0), both over the 60s budget. The script header and the rules guide carry the numbers.
A blade title reads its row once (#953)
Section titled “A blade title reads its row once (#953)”Opening a rule’s blade requested /event-rules about 1,300 times in 6 seconds. The title was written
<BladeTitle row={useRuleRow(id)} />, and Solid compiles a JSX prop to a getter, so every read of
row called the hook again and minted a fresh query observer; BladeTitle read it inside a memo that
the list’s own data re-runs, and each new observer, stale on mount, refetched the list, which re-ran
the memo. Seventeen registry blades carried the same inline form. The fix is at the primitive and
behind it: BladeTitle reads its accessor once in its body and tracks only the value, so even the
inline form calls the hook once; every title now calls its row hook in its own component body and
passes the variable; and a guard test (hook-in-prop-guard) fails on any JSX prop that calls a hook.
A regression test opens each of the seventeen blades against a stale cache and bounds the list
fetches; before the fix every one of them stormed.
The expression primitive on Expr (#956)
Section titled “The expression primitive on Expr (#956)”The first slice of the expression engine (#524): internal/expression, on Expr
(github.com/expr-lang/expr v1.17.8, MIT). A site declares its environment as a Go struct and
pins its result type (EnvOf[T](expression.Bool) for a criteria); the binding names, types and
docs come from the struct’s fields and expr / doc tags (Env.Bindings()), which is what the
generated bindings list will read. Compile refuses an unknown binding, a result of the wrong
type (including one whose type is only known at run time), and any $ name (Expr’s dynamic
$env and the engine’s own plumbing), each as an *expression.Error with a phase and a 1-based
line and column. Program.Run takes one prepared input of the site’s type.
A site also names the builtins it admits and its run budget (WithBuiltins, WithBudget).
Builtins are an allowlist: every Expr builtin is off, and a site may admit only vetted ones,
each linear in what the run is charged for with output no larger than its inputs. Two adversarial
review passes shaped this. The first found walks the budget did not charge (string +, variadic
arguments, comparisons, contains and matches subjects); those are charged, at least one per
step. The second found the charging model cannot bound Go-native builtins at all: repeat
allocates before any check, aliased map builds 10^9 leaves for a few units that max, toJSON
and flatten walk natively for seconds, uniq is quadratic, replace and join output a product
of their inputs, and the deadline cannot interrupt a native call. So the criteria set is
comparison, arithmetic, in, contains / startsWith / endsWith, constant-pattern matches,
len, the numeric builtins on scalars only, the trim and case builtins, and all / any /
none / one / count / filter with no nested predicate; the range .., the builders and
encoders, and literals past 64 elements are refused at compile time, with a position. Each later
site vets a builtin deliberately, with its cost argument and tests. A third pass found two costs
the charge understated: RE2 is linear in the subject times the compiled pattern
((a|aa|aaa|b){0,1000}z over 1000 characters took 643ms on a charge of 1000), so a pattern is
capped at 256 compiled instructions and a match charged length times size; and equality on a
struct, a map, or a list of lists falls to a deep comparison (200ms for 2 units), so ==, !=
and in take scalars and lists of scalars only, checked on the typed tree. count without a
predicate needs a list of bools at compile time, and the sandbox’s settings (CriteriaBudget,
CeilingBudget, CriteriaBuiltins, DisabledBuiltins) are functions returning fresh copies, the
ceiling built from constants.
The caps: a 4096-byte source, 1000 AST nodes (counted by walking the tree), and a per-site budget
(criteria: 10,000 walked, 10,000 allocated, a 5ms deadline; ceiling: 1,000,000, 100,000, 250ms).
The deadline is a backstop for charged work and the one nondeterministic limit. now, date,
duration and timezone can never be vetted; an expression calls builtins only (no method, no
bound value); and an environment type carrying a func, a channel, an interface (any included),
or methods is refused when the site is declared, so a future JSON-payload site needs a dedicated
data-only value type. Integer arithmetic wraps on overflow, as Go’s does. Compiled programs are
cached by (source, env, including its builtins and budget) in a 1024-entry LRU safe for concurrent
use. The expressions page keeps its Design badge until the criteria entry point lands.
Event rule criteria are expressions (#957)
Section titled “Event rule criteria are expressions (#957)”The second slice of the expression engine (#524): an event rule’s fire_criteria and
clear_criteria are expressions, stored as {"expr": "..."} and compiled by the criteria site in
internal/rules (rules.Compile, a Judge per rule). The prepared input binds value (a metric’s
float64; a property’s value typed by its data_type, text for string and json, a bool for
bool), key, instance and component {name, type}, with the criteria builtins and the criteria
budget, result bool. The short form {op, value} is still accepted on input (the API, the CLI, the
console’s builder) and lowered by a pure rules.Lower: text JSON-quoted (value == "down"), a number
made a float literal (value >= 80.0) so Expr parses it with the same correctly rounded ParseFloat,
and a bool property’s non-boolean threshold lowered to the constant it always meant. An absent clear is
still !(fire); a non-finite metric, or a bool property reading neither true nor false, holds.
That last is the lowering’s one divergence from the old evaluator, by decision (decision 3 on #524):
such a sample was compared as text before and holds now.
A one-time data backfill (20261021040000, no DDL) rewrote every stored short form with the same
lowering in SQL, byte for byte: numbers are written as Postgres writes a jsonb number (plain decimal,
no exponent) and text is escaped as to_json escapes it, in both, and the integration test compares
the text (exponent forms and U+2028 included). A row whose expression would pass the 4096-byte source
cap is left in short form rather than failing the migration. Its down migration restores the short
form for every expression the lowering writes. The old {op,value} evaluator is kept as a test
oracle: the lowering decides 21,324 criterion and sample pairs as it did (hostile strings, quotes,
control characters, unicode, signed zero, NaN, the edges of float precision), the bool divergence
pinned separately, and an integration test migrates short-form rules forward, back and forward again,
re-seeds, and drives an upgraded reachability rule and a metric rule through the real ingest. The official reachability-lost ships the backfill’s own text, so an
upgraded fleet’s first boot changes nothing.
The gateway holds each rule’s compiled criteria per (rule, version, data type), so the ingest, the
prime, the sweep, the reconcile scan and its settle all judge with a program compiled once per rule
version (a test counts zero compiles across two 50-sample batches). A compile that fails is cached the
same way, and the rule carries it as criteria_error (field, line, column, message) on its list entry,
get and state, which the Rules list and blade show as criteria that do not compile; that is how a rule
whose key’s data type changed under it, or a short form the backfill left over the cap, is seen. A run
over its budget, or a value the lane cannot read, holds the rule for that sample, is logged once per
rule version per process, and the sample still lands. The API accepts {expr} or {op, value} and always answers {expr}; a criterion that
does not compile is a 422 located at body.fire_criteria.expr (or clear_criteria), or at the
criteria when the body gave the short form, with its line and column. The console’s builder still sends the short form; the Rules page reads a lowered expression
back into its comparison for the words and the form, and shows any other expression as written,
keeping it on save (editing it in the console is #960).
Validate an expression, with the site’s bindings generated (#958)
Section titled “Validate an expression, with the site’s bindings generated (#958)”The third slice of the expression engine (#524). Each place an expression is written is a site,
declared once in internal/rules (site.go): its environment per value type (for criteria, a
metric’s number, a string or json property’s text, a bool property’s bool), the builtins it admits,
the result it must yield and its budget. Env.Bindings now lists a nested struct’s fields by their
dotted path (component.name, component.type), the way an expression names them.
POST /expressions:validate (gated rule:read, omniglass expression validate) takes a site, a
source and, for criteria, the sample key (required; it types the value), and
answers whether it compiles, positioned diagnostics, and the site’s bindings, builtins and budget,
read from the declaration. It stores and runs nothing; an unknown site or key is a 422, and the
site enum is checked against the registry by a test. cmd/exprgen (run by make gen) writes the
same declaration to docs/src/generated/expressions.json, which the expressions page renders as its
bindings and builtins table, so no binding is hand-listed; a drift test fails when the committed file
is stale. The expressions page moves from Design to Partial: the criteria site is built, and the
built engine (compiling once, the allowlist, the caps and budgets, the $ refusal) is taught outside
the design fence. Validate compiles through expression.Check, which skips the shared program cache
so cycling sources evicts nothing, and a diagnostic names a nested binding by its path (component),
never by its Go type. A binding’s doc reads the same for every value type, which a test holds.
Preview an event rule against recent samples (#959)
Section titled “Preview an event rule against recent samples (#959)”The fourth slice of the expression engine (#524). POST /event-rules:preview (gated rule:read,
omniglass event-rule preview) takes a candidate rule (sample key, selector, fire and optional clear
criteria; sustains accepted and ignored) and answers what it would have done, writing nothing: the
gateway’s PreviewEventRule runs in a read-only transaction and compiles the criteria once. As first
built it read the key’s lane twice, the newest sample before the window of every series and every
sample in it, capped at RulePreviewRowCap (5,000) rows each. A review proved that read wrong at scale
and in four ways, and it was rebuilt before the rollup merged (below). Each selected series is
walked as the ingest would walk it with no sustains, from the state its pre-window sample sets: a fire
out of force is a fire edge, a clear in force a clear edge. The answer carries the edges, the series in
force now (with the window’s fire that brought each in, absent when it was in force before the
window), the window, the cap, truncated and sustains_ignored: true. A bad criterion is a 422 at
its line and column. Tests seed a reachability window and check the edges and the in-force set, a
component-scoped and a place-scoped viewer, the truncation flag at a lowered cap, and that the event,
alarm, condition, streak, audit and rule row counts do not move.
The console expression field and rule preview (#960)
Section titled “The console expression field and rule preview (#960)”The fifth and last slice of the expression engine (#524). ExpressionField (web/src/components) is
the console’s one expression editor: the source in a monospace textarea, checked against its site as
it is typed (POST /expressions:validate, debounced), each diagnostic pointed at under its line and
column with a caret, and the site’s bindings and functions listed from the same answer, each doc a
hover away; it carries no native validation attributes, and a form learns the verdict through a
callback. The rule drawer authors criteria either way: the comparison builder shows beneath it the
expression it is stored as (the TypeScript lowerShort, mirroring rules.Lower), Write as an
expression switches to the field seeded with that expression (and back, keeping the comparison when
the expression still is one), a rule whose criteria the builder cannot say opens as an expression, and
a source that does not compile refuses the save. Preview at the foot of the drawer runs the draft
through POST /event-rules:preview: in force now, linked to the components, the window’s edges, a
truncation notice and that sustains are ignored. The blade shows the criteria as code, and the list and
blade keep #957’s criteria-do-not-compile display. The decision record is ADR-0146; the expressions
page stays Partial (functions, convert, the other sites and the function-run bindings are design).
A walkthrough, write-a-rule-as-an-expression, is embedded in the rules guide, and the screenshots
are under .github/screenshots/960/. A review then fixed four gaps: a rule whose criteria do not compile
opens that side as its stored expression (the builder would hide what is wrong) and always sends it,
so a save repairs it; an expression the builder cannot say survives a switch to the builder and back;
a preview answer is dropped once the draft it answered changes; and the save waits for every pending
or failed check, with the “Stored as” line written in the server’s plain decimals.
A rule preview reads only the series it judges, as ingest would (#959)
Section titled “A rule preview reads only the series it judges, as ingest would (#959)”A review of the preview, with EXPLAIN ANALYZE on 200,000 rows, found its seed read scanned the key’s
whole history and its window read sorted every window row before the cap; the selector ran in Go after
the capped read, so unselected rows spent the cap; a series seeded from its newest sample before the
window missed a hysteresis rule’s state (fire above 80, clear below 70: 85, then 75, then 60); the cap
cut series in half; a late sample was judged though the ingest skips it; and a selector name resolved
fleet-wide said whether a component outside the caller’s scope existed. Now the selection is SQL
(the named components and the type subtrees, within the read scope), each selected component’s
instances are found by a loose index skip on the series index, and each series is two index probes: its
starting state from the newest deciding sample within RulePreviewSeedLookback (7 days, probing at most
RulePreviewSeedProbe samples; none, and the series is listed in state_unknown), and its window. A
window sample older than one that arrived before it decides nothing, the ingest’s stale check. The cap
takes whole series, reported as series_judged of series_total; selector names resolve in the
caller’s scope, so a hidden component is the same 422 as a missing one. The console’s preview panel
counts the series it judged and those that started unknown. Tests cover each case, and an EXPLAIN test
asserts every per-series read on both lanes is an index probe on its series index with no seq scan.
An event rule’s name is renameable, its references stay by uuid (#977)
Section titled “An event rule’s name is renameable, its references stay by uuid (#977)”Event rules shipped with create-only names (#918), against ADR-0062 and ADR-0076; the architect folded
the fix into #524’s rollup. POST /event-rules/{name}:rename (gated rule:update on an all-scope
grant, like every rule write; omniglass event-rule rename) moves an operator rule’s name through the
shared validator, audited (rename, keyed on the uuid) and answered with the rule and its id; an
official rule is a 409, as every official write is, and a taken name a 409. A rename is not a material
change: no version bump, streaks keep their clock, conditions stay in force. The one reference that
held the name was the alarm’s dedup key, which is now rule:<uuid>[:<instance>] everywhere it is built
or read (the raise and clear, the in-force probe, the candidates and in-force reads of the reconcile
pass and the live state, the state’s instance parse); a one-time data migration
(20261021050000_alarm_rule_dedup_key_by_uuid) rewrote every rule-raised alarm’s key, open and
cleared, through raised_by_rule_id, leaving a deleted rule’s alarms as they were, with a tested down
and a second run that changes nothing. The #949 condition backfill still parses names, which is right:
it runs before the rewrite. An event’s source_rule stays the historical name beside
derived_by_rule_id, so an episode spanning a rename reads its fire event under the old name and its
clear under the new. The console renames from the rule’s Edit drawer, on the entity forms’ save model
(the PATCH first, the rename last, so a refused rename leaves the rest saved), and an event’s rule link
now carries the rule’s uuid, which the Rules page resolves, so a link written before a rename still
opens the rule. The rules guide, alarms and actions, the API page and ADR-0144 (a dated amendment to
its point 5) say so, and the write-a-rule-as-an-expression walkthrough’s name caption no longer
claims a name cannot change.
A review of #977 closed four gaps. A replica from before #977 still raises a rule’s alarm under the
name key during a rolling upgrade, after the migration ran, and the new binary matched only the uuid
key, so such an alarm was never cleared (or was opened twice, or stranded once the condition row
went). Every rule-alarm match now finds the alarm by raised_by_rule_id plus the instance parsed from
its key after the rule segment (ruleKeyInstance, mirrored in SQL), under either segment; a new raise
always writes the uuid key. A hand raise may no longer take a rule: key (422), which could have stood
in for a rule’s alarm. The rule form judges a name only when it changed, by the shared entity name
rule the server applies (names.ts), so a stored name like too-hot- stays saveable; and a stale
comment that still called the name create-only is gone.
Seed scenarios (#964)
Section titled “Seed scenarios (#964)”omniglass seed-dev --scenario <name> stands up a named fleet instead of always the example one: a
fresh install with nothing seeded, the example fleet with an open alarm on one in every three
components, or the example fleet at enterprise size (about 5,400 components). The synthetic user
(#961) needs these so each exploratory run can start from the situation its mission is about. Every
scenario but the fresh install is the example fleet run through a pure expansion: Replicate copies
the fleet’s self-contained rooms (found from the fixture, never named in code, so no location type is
keyed on) under replica sites with fleet-unique location names, and Degrade reuses the severities and
messages the fixture’s own alarms carry. The registry is the CLI help, so the list cannot drift.
Only the example fleet’s own devices are ever wired to the simulator, on every run, so a plain re-seed
of a database the large scenario filled does not turn the next make dev into a collector load test.
make dev takes SEED_SCENARIO and the walkthrough stack STACK_SCENARIO (every scenario but the
fresh install, which the stack refuses: its node and devices come from the example fleet). Tests: every scenario’s
document passes the fixture shape check, the replica and degraded paths are idempotent against a real
Postgres, the fresh install seeds nothing, and the large fleet seeds within a five-minute budget
(2m9s measured).
The run digest (#965)
Section titled “The run digest (#965)”make probe brings up the walkthrough stack, visits every route in the console’s route manifest and
replays every walkthrough at machine speed (a 300 ms beat after each action, since at none a key can
beat the drawer it should close), recording console and page errors, every API call’s status and
time, web vitals, axe-core accessibility violations and walkthrough outcomes as raw events. A pure
reducer (web/e2e/digestlib.mjs) folds those into digest.json: grouped by kind, API calls by their
OpenAPI path template (read from api/openapi.json), ranked breakage before friction, capped at 16 KB
of the written file with a count of what the cap dropped, and independent of event order. A planned
surface count makes a run that never reached some surfaces a finding of its own. The digest is what the synthetic user (#961) reads instead of logs. The recorder’s step
locator moved into walkthroughlib.mjs so the probe and the recorder cannot read a script
differently. Tests: the reducer’s unit tests (an injected console error and an injected slow route
each appear by name, a clean run has no findings, the byte cap holds on the written file under a 2,000-error flood,
the output is the same for events in any order, a slow route called per device is one finding, an
unvisited planned surface is named); proven live with two consecutive clean probe runs on the dev scenario
(49 surfaces, about 640 API calls, every walkthrough passing). Its first run found the console’s
contrast, an unlabelled profile field and nested controls on Files (#972, #973, #974).
The explore skill, missions and the lens agents (#966)
Section titled “The explore skill, missions and the lens agents (#966)”The synthetic user’s daily run is the /explore skill over web/e2e/explorer.mjs, whose
decisions are pure and tested in explorerlib.mjs: which mission today (one whose repo surfaces
changed since the last run, else the least recently run), which lenses (the mission’s own, with
a lens unused for a week taking the second slot, counted from the first run on record), the one
finding shape every lens returns, and the filing plan (a known key is a sighting, a bug is its
own issue, a suggestion is a sub-issue of the week’s epic under a weekly cap, and the weekly
roll-over carries what was seen again and closes the rest). State lives on GitHub as marker
lines, so a fresh session needs nothing on disk. Seven missions ship in
web/e2e/explorer/missions.yaml, each signing in as a seeded non-owner user; a test holds every
mission surface to a path that exists. Five lens agents (.claude/agents/lens-*.md, Sonnet)
carry narrow rubrics, the design lens reusing /assess-ui’s. probe.sh gained hold (keep the
probed stack up, published, with a token for the mission’s user in stack.env), replay (play
one script against it from the host, exit 0 when it reached its end, how a repro is proven) and
release (a TERM to the holder, since a backgrounded shell ignores INT). A fresh install now
stands the stack up as the server and its owner alone, where the scenario slice had refused it.
Proven live: hold on the dev and degraded scenarios as non-owner users, the CLI driven with the
held token, a broken script failing replay and a good one passing, release leaving no container,
and the empty scenario probed. The first live probes’ accessibility bugs (#972 to #974) were
adopted with their digest keys.
Before it merged, a supervised trial had Sonnet run the whole loop unaided on the fresh-install
mission (it reached done through the CLI and API, dispatched both lenses and produced thirteen
valid findings), and its stumbles and an adversarial review shaped the slice: the weekly epics
are searched newest first (an unsorted search returns best match), a mission counts changes since
its own last run and cools down for three days so a busy area cannot starve the rest, a
finding’s area is checked against the repo’s real labels before anything is filed (nine of the
trial’s thirteen named labels that do not exist), filing reports a partial failure instead of
stopping, replays run in their own directories with a still per step and an exit code that tells a
failing script from a replay that never ran, release only signals a process that is a probe
hold, probe.sh node runs a node the persona enrolled, and the walkthrough recorder and the
stack check refuse the fresh-install scenario, which has no fleet to walk.
Look-alike findings are held, not filed (#966)
Section titled “Look-alike findings are held, not filed (#966)”Keys deduplicate the same defect seen again, but not one a person filed in other words or two
lenses described under two keys. possibleDuplicates compares a finding’s title with every open
issue’s (prefixes, stop words and plurals folded; a match shares at least two words and 60% of the
shorter title), and the filing plan holds a match as possible-duplicate with its candidates until
the run adopts one or confirms the finding with --confirm-new; look-alikes within one run fold into
the more severe. A sighting posts once per issue per day. The supervised trial’s findings were filed
through it as the program’s first run (epic #978, bugs #979 to #981 and #983): the guard held one
suggestion against two unrelated issues, which the run read and confirmed, and a repeat dry run
planned nothing new.
The criteria deadline cannot refuse a small run (#956)
Section titled “The criteria deadline cannot refuse a small run (#956)”Re-running the lowering oracle on a loaded machine refused one trivial criterion (value >= 1000000000000000000000.0) for its wall-clock deadline: the meter read the clock at a run’s first charge, so a goroutine preempted between Run and that charge read as an overrun and would have held a rule for no reason. The clock is now read every 256 charges and never before the first 256, so a run that small is bounded by its iteration budget alone and the deadline stays a backstop for long charged work; TestDeadlineSparesSmallRuns pins it.
A system’s view refreshes as its members’ health moves (#940)
Section titled “A system’s view refreshes as its members’ health moves (#940)”A system’s view fetched once at mount, so a member going down or recovering was not seen until a reload,
and Watch a rule raise an alarm opened the system with a fresh load for that reason. The view’s own reads
now poll at the component view’s 5s cadence (#934): the system’s health report (its verdict, Why, the
roles’ staffing and the since-line’s edges), its declared roles, its data section’s latest values, and on
Activity the members’ alarms, events and logs; the Data table’s 24 hour sparklines every 30s.
Each member’s health light came off the fleet view’s dots, a fleet-sized read, so the system’s members
read (GET /systems/{name}/members) now carries each member’s own component_verdict, the same
recorded value a dot reads, and the view polls that instead; the fleet view is still read once, for the
place, the path and who the members are. Activity’s incidents were explained by one alarms read per
member, a poll as large as the room, so a new GET /systems/{name}/alarms reads every member’s alarms at
once (active ones whatever their age, those cleared in the last 30 days, capped at 500), and an Activity
poll is a fixed seven requests whatever the member count. Nothing polled grows with the fleet, and TanStack holds every
interval while the tab is hidden. The ages on the page (since when, how long an alarm has been raised)
move with a one-second clock rather than the mount’s pinned now; the history and the charts read a
clock that ticks each minute, so a second’s tick redraws only the ages, and never behind the report’s last edge (the docs screenshot gate caught an ongoing incident that opened in the current minute vanishing under a floored clock). Proven by a component test that advances the clock and
watches a member’s alarm land as the degraded verdict, the alarm in Why and the member’s red light,
with one request per read and no fleet view; another that holds the poll while the tab is hidden; a
third that ages the since-line under an unchanged report; a fourth that keeps a seconds-old incident; a fifth that polls Activity for a fifteen-member system and
counts exactly one alarms read and no per-component request; and API and storage tests of the member’s verdict and the system’s alarms read (members only, the
window, the cap) across a raise and a clear.
Watch a rule raise an alarm now opens the system in the page, from the panel’s Systems it serves, before the alarm opens, and waits there for the alarm to land in Why with no reload. It records in 44 to 50s (three runs: 49.7s, 44.5s, 49.2s). Following the alarm’s event to the rule’s blade was measured at 57.9s, too near the minute to hold, so the rules guide says it in words.
One coalesced-stamp primitive for rule and endpoint last-seen (#943)
Section titled “One coalesced-stamp primitive for rule and endpoint last-seen (#943)”event_rule_live (#929) and endpoint_live (#933) were built independently to the same shape: one
statement per ingest batch, stamped by the server’s clock, a row stamped within 5s left alone, a row
another batch holds skipped (SKIP LOCKED), and a first sight inserted ON CONFLICT DO NOTHING. That
statement is now one primitive, liveStamp (internal/storage/live_stamp.go): a table, its key and
stamp columns, and an optional owner table whose missing rows first sight skips. The rule evaluator
calls it on its ingest transaction and the endpoint stamp on the pool, so a third live stamp is a call,
not a copy. Behavior is unchanged: the #929 and #933 tests pass unedited, and the helper’s own
testcontainer tests, on a scratch table, prove concurrent first sight, the bound, the owner guard, never
waiting on a held row, and the transaction’s clock.
Indexing a filter result compiles, and a pass that panics says which (#1003)
Section titled “Indexing a filter result compiles, and a pass that panics says which (#1003)”filter(members, .has.a)[0].value.a was refused at compile time with a recovered nil pointer
surfaced as a type error, while members[0].value.a compiled. The fault is upstream, in Expr
v1.17.8: its optimizer rewrites filter(list, p)[0] and [-1] into find and findLast and
copies the old node’s type onto the rewrite without the record’s field table, so its compiler
panicked on the field read. Expressions now compile with Expr’s optimizer off until upstream is
fixed (#1006). The typed checks no longer read folded constant literals (an unoptimized literal
list is still its own node), and charging is unchanged, since every charge wraps its operand
before Expr would have folded it: a 50-construct corpus decides identically with the optimizer on
and off, and the lowering oracle still compares 21,324 decisions identically. The filter’s list is
still charged its full length (TestIndexedFilterResultCharged). Each compile pass, the engine’s
and Expr’s, now runs under a guard: a panic in one becomes a positioned type error naming the
stage and the construct it was on, never a nil pointer and a stack (TestPassPanicNamesThePass).
The property lane maintains one series index, not two (#971)
Section titled “The property lane maintains one series index, not two (#971)”property_owner_idx (the #588 rename of state_owner_idx) and property_series_idx (#944) were the same index: btree on (component_id, property_type_id, instance, ts desc), partial on component_id is not null, so every property insert maintained it twice. 20261022010000_drop_property_owner_idx.sql drops the older name and keeps property_series_idx, the one TestSeriesNewestIsAnIndexProbe explains its reads against. TestNoDuplicateIndexes groups pg_index by table, access method, key columns, operator classes, collations, sort options, expressions, predicate and uniqueness and fails on any group of two, so a twin cannot land on any table again; this pair was the only one in the schema.
The calc_rule registry, with the cycle check (#995)
Section titled “The calc_rule registry, with the cycle check (#995)”The first slice of epic #525 (ADR-0147).
calc_rule (migration 20261021060000) is the event rule’s sibling: a uuid id and a renameable name,
owner_kind (component or system), the event rule’s selector shape, inputs as [{as, key}],
reduce as a named reducer or an expression, and output_key held by id in the property or metric
registry with its lane recorded. /calc-rules lists, gets (by name or uuid), creates, patches,
renames (:rename, no version bump) and deletes, gated rule:* with writes on an all-scope grant,
audited on the uuid; the CLI’s calc-rule commands are generated. The calc expression site
joins criteria in the site registry: its environment is built per rule from the inputs
(expression.EnvFor over a struct type made at run time; a component binds each input as one value,
a system as the list of its members’ values), its result pinned to the output key’s type, the
criteria builtins and a larger budget (100,000 walk, 25ms), and an input’s name refused when it is a
keyword or any Expr builtin’s name. Its named reducers are declared and type-checked there, and
POST /expressions:validate answers for it given the output key and the inputs. Every write refuses
a rule that would close a cycle in the graph of enabled rules’ input keys to output keys (a 422 naming
the chain, judged under a transaction lock), a second enabled writer of an output key, health as an
input or output, and an output a collection declares: a native probe key (now declared once in
internal/collection/probekeys, which the probes emit from) or a driver’s declared emits. A stored
reduce that stops compiling reads back as calc_error and cannot be enabled, and deleting a type a
rule writes is a 409 naming it. Nothing runs a calc rule yet: the pending set,
the tick and the reducers’ folds are the next slice. The calculations
page moves to Partial, its running half still fenced.
A calc rule derives component samples (#996)
Section titled “A calc rule derives component samples (#996)”The second slice of epic #525 (ADR-0148).
calc_pending and calc_rule_state (migration 20261021070000) hold a rule’s pending work and its last
outcome per owner. The sample-write path (writeMetricSamples, writePropertySamples, shared by the
ingest and the calc write) marks every enabled component rule reading the batch’s keys on an owner its
selector picks, before it inserts anything, skipping the rule that produced the batch. The server’s calc
tick (internal/bus/server.go, every second, 500 marks a pass under a 10s deadline) drains marks with
FOR UPDATE SKIP LOCKED, one transaction each: reads the inputs’ current values (every instance for a
named reducer, the aggregate instance for an expression, never intended), reduces (rules.CalcProgram.Reduce:
the eight reducers and the compiled calc expression), and writes a changed result as a calculated sample
naming the rule and its version, where event rules judge it. A missing input writes nothing and is named
in the state row. Proven: a cross-key rule writes once the tick runs and an unchanged input writes no
row; an event rule fires on a derived property; a chain recomputes downstream and a rule never re-marks
itself (a mutation that dropped the skip re-marked it forever); two replicas compute every mark once and
a restart mid-backlog loses nothing; and end to end, a node’s tcp probe on a simulated device is folded
by a CLI-authored rule into a calculated metric whose event rule raises an alarm. System rules wait for
#997. Review hardened it before merge: a mark the
batch finds already present is updated, not skipped, so the batch holds it until commit and the tick
cannot compute from the old value (a skipped conflict lost the change); the ingest retries its whole
transaction on a deadlock with the tick (sampleWriteAttempts); a failing mark is recorded and deferred
30s while the pass goes on, a held rule’s marks are passed over, and a panicking pass is recovered; a
rule’s create, enable or edit marks the components already holding its inputs and resets its state; the
output is written on the lane the rule holds it by; and a reducer folds named instances (the aggregate
only when alone) and skips instances stale past an hour, naming them in the state.
System-level calc rules (#997)
Section titled “System-level calc rules (#997)”The third slice of epic #525. A system rule’s selector names system types (subtypes included) or
systems, resolved to ids, beside a component rule’s component types and components. A system’s members
are its role-bound components, read through roleOfSystemSQL, the role-of-a-system predicate the health
rollup’s role resolution now shares. The sample write’s probe finds rules of both kinds in one index
probe (TestCalcProbeUsesTheInputsIndex holds it to calc_rule_inputs_idx), and one more statement
marks each enabled system rule reading a sampled key on the selected systems the sampled component
staffs. Role assignment and withdrawal, role declarations, and a system’s create, retype or new
standard mark its rules before the health recompute; a system leaving a rule’s selector drops that
rule’s state there. Each input binds as the list of the members’ values (a named reducer folds every
member’s per-instance values), a member with no value is named in the new calc_rule_state.skipped
(migration 20261021090000), and the output is a system-owned calculated sample with the rule’s
lineage. Event rules do not judge it yet (#1002). The calc tick now logs at Info only when it served
marks or the backlog reaches calcBacklogInfo.
Review tightened it before merge: a system expression reads members, one record per member (name,
then id) with value.<as> and has.<as> per input, so a member’s inputs stay aligned (the expression
engine now lists a list of records’ fields as members[].<field> bindings); skipped and stale entries name
components by id; a system with no members keeps its last value and its state records
no_members_since; and a retype out of a selector deletes the deselected marks first, skipping one a
serve holds, while the serve rechecks the selection and drops its own work, so neither waits on the
other and no stray state or output survives.
Calc rule state and preview (#998)
Section titled “Calc rule state and preview (#998)”The fourth slice of epic #525. GET /calc-rules/{name}/state reads calc_rule_state and calc_pending
for one rule, fenced in SQL to the owners the component and system read scopes admit, the owner named at
read time; skipped members and stale instances, stored by component id since #997’s review, are named
only when the caller may read that component and otherwise counted (skipped_hidden, stale_hidden);
pending owners and a deferred mark’s due time ride along, with the rule’s fleet-wide pending depth.
POST /calc-rules:preview runs a candidate through the save’s own checks (prepareCalcRule: compile,
cycle, one writer, collected output, health) inside a read-only transaction, selects the owners in
scope (a selector naming an owner out of scope is refused as missing), and computes each with the
tick’s reduceCalc, the candidate compiled afresh rather than cached; it answers per owner the value it
would write, the current output and whether they differ, up to CalcPreviewOwnerCap (200) owners.
Proven: a scoped viewer sees only its owners and no out-of-scope member’s name, on the gateway and over
HTTP; the preview’s value is what the tick then writes; truncation at the cap; row counts of the sample
tables, calc_pending, calc_rule_state, audit_log and calc_rule unchanged by a preview; and a
second writer, a broken reduce and a cycle refused by the preview as by a save.
Calc rules in the console (#999)
Section titled “Calc rules in the console (#999)”The fifth slice of epic #525. Catalog, Actions: Calc rules (/calc-rules, web/src/pages/CalcRules.tsx)
is the calc rule registry’s page, a sibling of Rules and Severity as each registry in the Actions group is
its own page. The list reads each rule’s owner kind, inputs, reduce (a reducer in words, an expression as
code) and output, with live counts the list route now carries (owners_computed, owners_pending,
owners_unsupported, owners_failed, over the owners the caller may read, CalcRuleCounts). The blade
shows the rule and its state per owner from GET /calc-rules/{name}/state (valued owners first, skipped
members grouped by key and counted past four, out-of-scope members only counted, the no-members notice,
pending and due), and the calc_error alert. The Drawer form creates, edits and renames (the owner kind
fixed at create), with the selector of its kind, an inputs list, a reducer offered by the input’s type or
the shared expression field against the calc site (now sending the inputs and owner kind to validate),
the output picker, and an on-demand preview (POST /calc-rules:preview, valued owners first, truncation
said). A calculated sample now records its rule’s id (source_rule_id on metric and property,
migration 20261021110000); the effective metric reads carry source_rule and source_rule_id, and a
component’s vitals and a system’s data table link a calculated value to its rule (CalcRuleLink). The
guide is calc rules.
Review of the preview and state routes (#998), fixed after the console slice: the preview resolves its
selector’s names in the caller’s scope before the save checks, so a missing name and an out-of-scope
name are the same 422 and a shared name means the one in scope; it skips the calc graph lock (a preview
saves nothing, and held the lock through its computation); it types and compiles the candidate once,
bounds total input reads (CalcPreviewWorkCap) beside the owner cap, and previews the components
holding an input, as the tick marks them; the state’s pending depth counts only the owners listed, and
the state reads in one read-only snapshot.
The expression editor (#1000)
Section titled “The expression editor (#1000)”The sixth slice of epic #525, the trigger #524’s decision 5 set (a second expression site). The shared
ExpressionField (web/src/components/ExpressionField.tsx) moves from a textarea to a CodeMirror 6
editor, used unchanged by both sites (an event rule’s fire and clear criteria, a calc rule’s reduce), with
no new server surface: everything it offers comes from POST /expressions:validate’s existing answer. The
pure half is web/src/lib/expressionEditor.ts: Expr as a CodeMirror stream language (keywords, atoms,
strings, numbers, operators, comments, a dotted path as one word, a word before ( as a call),
completion of the answer’s bindings and builtins (silent inside a string and until a word is begun, on
demand with Ctrl-Space), the binding a hover names (the longest binding a field path extends), and each
diagnostic’s 1-based line and column placed as an underline on the word there. The field now asks
validate for the site’s vocabulary while the source is empty (that answer gives no verdict and no
diagnostic), so the first word completes; the diagnostic list, the caret pointer and the bindings and
functions beneath the field are kept. Tab is not bound, so the field never traps the keyboard; the
content carries the field’s accessible name and aria-invalid. Colors are the daisyUI theme variables, so
the editor follows both themes. CodeMirror is loaded with a dynamic import (expressionEditorView.ts, the
console’s first split chunk, about 112 KB gzipped), so a page without an expression site pays nothing for
it. Tests read and type through the editor’s state (ExpressionField.testing.ts).
The calc rules rollup review (#525)
Section titled “The calc rules rollup review (#525)”The review of the epic’s rolled-up diff, fixed before the rollup. The preview withholds an expression over a
system with a member the caller may not read: owners were scoped but members were not, and an expression
reads a member by position (members[1].value.t), so a rule:read holder of the system could read an
out-of-scope member’s own value; the system’s row now carries an error counting the members out of scope,
while a named reducer, the aggregate the rule’s state shows, is still previewed. A rule’s inputs read
observed and calculated values only, as the calculations page always said: the read also folded an
operator’s declared value, which marks no rule when it changes, and a cleared declaration’s null
tombstone failed the read and deferred the mark every 30s. Proven by TestCalcRuleStateAndPreviewAPI (the
withheld expression, east viewer and fleet), TestCalcIgnoresDeclaredInputs, and a delete in
TestCalcDerivesComponentSamples that keeps the deleted rule’s calculated rows and their lineage.
A calc rule’s reduce is always an expression over aliased inputs (#1018)
Section titled “A calc rule’s reduce is always an expression over aliased inputs (#1018)”Ruled by the architect in the rollup’s review, reshaping #525 before it merges
(ADR-0147
and ADR-0148,
amended). The reduce is {expr} only: the named reducers became list functions in the engine’s
vetting registry (internal/expression/lists.go, WithListFunctions): max and min over one list
(or numbers), avg, sum, majority, and the one-list any and all, each with its cost argument and
charged one pass (majority its strings’ bytes too), a mistyped argument refused at compile time on the
argument. Expr parses any, all and sum as predicate builtins only, so a one-argument call is told
apart lexically and renamed in place to the engine’s function of the same length. Each input binds by
its alias as the list of its current values (per instance on a component, every member’s on a
system, members records kept), and each retired reducer is one expression proven equal to its fold on
both owner kinds (TestCalcListFunctionsEqualTheReducers). Aliases are held to one rule set
(rules.CheckAlias: an identifier of at most 64, not reserved, unique), whose reserved names make gen
renders for the console (web/src/lib/calc_names.gen.ts, TestCalcNamesMatchCommitted). Inputs moved
to calc_rule_input, holding each key by id on its lane (20261022020000), with a data backfill
(20261022030000, TestCalcRuleInputBackfill) and the old column’s drop (20261022040000): a key
rename leaves the rule computing (TestCalcInputsHeldByID), a key a rule reads cannot be deleted, and the
marking probe, graph and reads go by key id. A name no alias binds is a diagnostic carrying the name
(unbound), and a let shadowing a binding is refused. Found while building it: Expr trusts a function
call’s type on its last check and never revisits its arguments, so an unknown name inside max(...)
compiled; the charger now runs as a repeatable patcher and clears the call’s type.
The console’s form is the inputs (a key, its alias filled from the key’s name in snake_case and checked
as the server checks it), then the expression editor with Start from templates and Bind it to a
key on an unbound name; the list and blade show the expression as code. The #999 review’s remaining
fixes: a property a calc rule writes resolves through EffectiveProperties with source_rule and
source_rule_id and links to its rule on the component and in the properties panel; the preview orders
on the server (owners holding the output first, so the cap never hides one) and withholds only a reduce
that can read one member’s value; the state route orders failing, pending, missing, valued, takes a
limit and answers the total, and the blade’s and N more asks for the rest. The #1000 editor’s
review: the editor is named by its visible label, takes an outside value without entering undo history,
follows a changing placeholder, refuses its verdict when its chunk fails to load, drops an answer landing
after it is gone, hides its caret echo from assistive technology, and draws its tokens in colors that
meet text contrast in the light theme. The walkthrough
(derive a value with a calc rule) is re-recorded on the new flow. The adversarial review’s low findings were fixed after: a sum or an extreme over ints folds as an int
(exact past 2^53, wrapping as Expr’s ints do), a refusal of an unadmitted function lists the list
functions too, and a follow-up backfill (20261022050000, TestCalcRuleReservedAliasBackfill) disables
a moved rule whose alias is now reserved.
A calc rule’s output is bound visibly (#1019)
Section titled “A calc rule’s output is bound visibly (#1019)”Folded into the calc rules rollup by the architect after the walkthrough hid the rule-to-output
binding. The rule form’s Writes offers New metric and New property: the output is registered
from the drawer through the existing create routes (POST /metric-types, POST /property-types), a
refusal shown at the inline field it names, and selected. The form and the blade state the binding,
“Writes <key> on each component|system. No other rule or collector may write it.”, with the why a tip
away. A metric or property type a calc rule writes carries written_by (rule, rule_id) on its list
and get, read from the rule’s output reference in the same query (TestKeyWrittenByCalcRule), and the
Metrics and Properties pages name the rule in the row and on the blade, linked by id. Leaving the rule’s
name field now flags the name alone, rather than every field at once, which had moved the form under the
pointer. The calc walkthrough is one flow: the rule, its output created inline, the expression, preview,
save, then a component whose vitals show the derived value linked to the rule.
Walkthrough evidence lives off main, and its videos scrub (#939)
Section titled “Walkthrough evidence lives off main, and its videos scrub (#939)”The run:walkthrough job no longer pushes to the PR branch. It commits each passing walkthrough’s
mp4, animated preview, poster and stills under <id>/ to the PR’s own ref, refs/walkthroughs/pr-<n>,
as a fresh tree built in a scratch index on top of the ref’s last commit (so a re-run drops a removed
script’s files while an older comment’s SHA stays reachable), and the comment reaches every file by that
commit’s SHA. The PR head and its checks are untouched, a squash-merge carries none of it into main, and
a default clone never fetches it; the “push an empty commit to rerun checks” step is gone from the
labels page, the walkthroughs page and /ship-slice. A ref was chosen over an orphan branch after
probing both hosts: a commit pushed only to a refs/walkthroughs/* ref is served by SHA from GitHub’s
raw host and from jsDelivr, and the push needs no more than contents: write. Each walkthrough in the
comment now leads with a Watch (scrubbable) link to its mp4 through jsDelivr, which serves it as
video/mp4 with range requests (the raw host serves an octet stream), so the browser’s player seeks; the
preview stays the inline glance. The job is split so no write token shares a runner with the PR’s
code: record runs the PR’s code with a read-only token and stages the files and the comment body
(written against a placeholder SHA) as an artifact; publish holds the write token, checks nothing
out, builds the evidence commit in a fresh repository with no global, system, hook or fsmonitor
configuration, pushes only the ref derived from the event’s PR number, and pins and upserts the
comment. walkthrough-prune.yml deletes an evidence ref daily once its PR has been closed 30 days.
The ref, the files, both URL builders and the prune choice are pure functions in
web/e2e/walkthroughpr.mjs, unit-tested in make test-web; the hosting is
ADR-0149.
The docs carry the video too: make docs-walkthroughs copies every declared walkthrough’s mp4 (no
longer opt-in, and no longer gitignored), and the embed renders <video controls> with the poster step’s
still as its poster frame and fallback. The docs no longer carry the animated preview (the committed
copies were removed; it stays PR evidence), and the lint flags a stray one. The walkthrough lint and
the post-build embed check both fail a declared walkthrough whose copy has no mp4, and the remark
plugin fails the page. The six docs walkthroughs were re-recorded to get their videos, about 6 MB of mp4 in the
repository, a cost walkthroughs states.
A session holds its connection (#816)
Section titled “A session holds its connection (#816)”The first slice of epic #603’s stateful arc. A stateful transport keeps its connection across ticks:
internal/collection/session.go is the machine (establish, operate, recover, teardown) over a
HeldConn seam, and internal/collection/linesession.go is the real held line connection (one TCP
connection, a single reader goroutine framing lines and handing the next one to the exchange waiting
for it, a line nobody asked for dropped as unsolicited until listeners claim it in #817, an
unterminated flood bounded, a 15s keepalive). The node (internal/node/session.go) holds one session
per endpoint whose worklist carries a standing listen task over a transport with a session dialer (the
line protocol over tcp), keyed by the endpoint id the worklist now carries beside its name, and
reconciles the held set on every pull: a new listen task starts one, a removed task or a re-addressed
endpoint tears it down, node shutdown tears down all. The endpoint’s line polls borrow the held
connection instead of dialing per tick; a poll waits only while the first dial is in flight, and over a
session that is otherwise not up it faults at once naming the state (a down device never stalls the
tick), never dialing on its own. Recovery is bounded by named constants: a
jittered exponential backoff (SessionBackoff: 250ms doubling, 30s cap, 20% jitter), five consecutive
failed dials to down (still retrying at the cap), and churn (a connection dropping within 10s) growing
the wait so an accept-and-drop device cannot hot-loop. The honest states land as the seeded
session-state property per endpoint (establishing, up, recovering, down), published at each
transition under the listen task, and each transition is a node self-log carrying the reason; there is
no session table (ADR-0150).
Proven at three tiers: the state machine over fakes (internal/collection/session_test.go), the real
held line connection over a real socket (linesession_integration_test.go) and against the
simulator’s NVP listener (sim/session_hold_test.go: three polls ride one connection, the
listener killed mid-session reads recovering, then up once it returns), and end to end
(internal/node/run_session_test.go: the shipped newtron-nvp driver attached, the real node and
bus, the session-state series on the server reading establishing, up, recovering, up through a
listener outage, the reason in node_log, and node shutdown leaving the device holding no session).
The held session’s review fixes (#816)
Section titled “The held session’s review fixes (#816)”The slice’s review, fixed before the rollup, each with a regression test that failed first. A
timed-out exchange recycles its connection (ErrExchangeTimeout), since its late reply would answer
the next ask forever (TestHeldSessionTimeoutNeverAnswersTheNextAsk: SLOW GET INPUT times out, GET
VOLUME gets VOLUME); the held line connection was rebuilt so one reader goroutine draws every ask’s
boundary (discard what already arrived, write, hand the next line over), so a banner sent on connect
is never an answer (a banner on connect is never an answer, fifty fresh connections). An attempt
now fails on a churned connection or an answer timeout as well as a failed dial, so an
accept-then-drop or a hung device reads down within the attempt budget instead of up forever
(TestSessionAcceptThenDropReadsDownWithinTheBudget, TestHeldSessionToAHungDeviceReadsDown), and a
stable connection’s drop still never does. The first dial’s wait window closes inside the up
transition, and a listen task’s spec re-hash keeps a healthy connection while a credential change
recycles it (TestSessionManagerKeepsTheConnectionAcrossATaskRehash). ADR-0150 now says the last
session-state outlives a teardown and is read by its age.
The held session forgives a healthy device’s rare timeout (#816)
Section titled “The held session forgives a healthy device’s rare timeout (#816)”The re-review of the review fixes, each with a regression test that failed first. The previous
commit’s title overclaimed: a line the device sends after the drain and before it reads the request
is still taken as the answer, a window #817’s reply matching closes (ADR-0150 point 5 now says so).
An answered exchange now forgives the failures before it, so one missed answer in fifty never reads
down (TestSessionSporadicTimeoutsNeverReadDown, 250 good exchanges); a down session publishes
nothing until a returning connection proves itself by an answer, or by outliving the stable window
unless answers were what failed, so an accept-then-drop or hung device no longer flaps up and down
(TestSessionHungDeviceStaysDownWithoutFlapping, TestSessionDownReadsUpOnceTheConnectionProvesStable).
On the wire: a late interrupt mid-answer keeps the partial bytes (TestLineConnLateInterruptKeepsThePartialReply),
only a passed read deadline is an interrupt so a failed keepalive keeps its cause, a caller’s own
deadline is not recorded as the device’s timeout, and the wait for a first dial has its own budget
(TestSessionFirstDialWaitHasItsOwnBudget).
Listeners and their instantiation commands (#817)
Section titled “Listeners and their instantiation commands (#817)”The second slice of epic #603’s stateful arc: a driver’s listeners come alive over the held session.
The session arms every connection with the listeners’ arm commands before it reads up (on establish
and on every recover; plumbing per the #603 ruling, each a session armed self-log with the device’s
reply, an unanswered one a failed attempt). The held line connection’s one reader routes every inbound
line by a documented precedence
(ADR-0151):
a line a listener’s match claims lands at once as a push sample under its listen task (the endpoint
its instance, no poll involved), and is never an exchange’s answer unless it also matches the
exchange’s declared reply shape; an exchange takes the first line its new request.reply shape
matches (or the first unclaimed line); a line waiting in the socket when an ask begins is routed, not
discarded; the rest is counted unclaimed, with a new spec-level unmatched: collection-failed policy
landing one fault per tick. Commands ride the held session too (the delivery now names its endpoint
and carries the binding’s reply shape), falling back to a throwaway connection only when none is held,
and the transport registry marks tcp as held. The seeded newtron-nvp declares its reply shapes.
Proven over the simulator’s NVP port (sim/listener_hold_test.go: SUBSCRIBE INPUT armed, a
change made elsewhere heard within a second, thirty GET polls amid a stream of pushes each getting
their own answer, the subscription re-armed after the listener dies and returns) and end to end
(TestNodeLandsPushedSamplesThroughARecover: with the node’s tick at an hour, a change on the panel
lands as the component’s video-input within a second, and again after a recover).
The slice’s adversarial review, fixed before the rollup, each with a real-socket test that failed with
the fix disabled. A reply may declare an error shape: the panel’s -ERR refusal now answers a command
at once as a refusal carrying the device’s text (its execution error and its reply), not a timeout that
recycled the session and charged its budget (TestLineConnErrorReplyIsAFailureNotATimeout, and over the
simulator in the listener test); the seeded newtron-nvp declares it. A shaped exchange’s timeout fails
only that exchange and keeps the connection (TestLineConnShapedTimeoutKeepsTheConnection). An arm’s ack
is the first line of any kind, a listener’s push included, and no ack within the timeout is logged as
armed, unacknowledged rather than failing the attempt, so a device that acks with a push or not at all
no longer stays down (TestSessionArmAckedByAPushReadsUp, TestSessionArmNeverAckedStillReadsUp).
Regexes compile once per process (TestRegexCompiledOnce), and the drivers guide says a regex is an
RE2 substring search to anchor (TestLineConnUnanchoredReplyRegexMatchesAPush pins it).
Driver tasks re-derive when a driver’s spec changes (#823)
Section titled “Driver tasks re-derive when a driver’s spec changes (#823)”Deferred from the stateless arc’s review, closed in the stateful rollup. Driver tasks were baked at
attach and never re-derived, so fixing a regex in a driver left the fleet emitting by the old one while
the Drivers page showed the fix, and the reply and error shapes #817 added to the official
newtron-nvp never reached endpoints attached before it. Now a driver update over the API, and the
boot seed’s upsert (now one transaction per driver), re-derive every attached endpoint’s driver tasks in
the same transaction: the tasks the spec derives are written where missing and the driver tasks it no
longer derives retire, while the reachability probe stays. Ids are content hashes, so an unchanged
function keeps its row, a re-seed that changes nothing touches no task and no endpoint, and an endpoint
whose tasks changed has its updated_at (the node’s config generation) moved. The update’s audit row
covers it. Proven over Postgres (TestReseedWithNoChangeTouchesNothing,
TestSeededSpecChangeReachesAttachedEndpoints, TestDriverUpdateRederivesAttachedEndpoints) and end to
end (TestDriverFixReachesTheNextPoll: a regex fix turns a faulting poll against a real line server into
a landed value on the next poll). The review that followed closed three races and a cost, each with a
Postgres test that failed first: an attach now reads the driver row FOR SHARE, so one racing an update
waits and derives the committed spec instead of keeping the old one for good
(TestAttachDuringADriverUpdateDerivesTheNewSpec, two interleaved transactions); the re-derive’s endpoint
list takes FOR KEY SHARE in id order, so a concurrent delete is waited on and skipped rather than
failing the update on the task foreign key (TestRederiveSkipsAnEndpointDeletedConcurrently); and the
seed’s upsert writes only when a field differs and re-derives only when it wrote, so an unchanged boot
leaves the driver and task rows’ xmin as they were. Samples published under a retired task id in the
one-tick gap before the node’s next pull are dropped as orphans, accepted and documented.
The node honors a driver poll’s declared schedule (#822)
Section titled “The node honors a driver poll’s declared schedule (#822)”Deferred from the stateless arc’s review, closed in the stateful rollup. A driver poll’s schedule.every
was validated and baked but unread, so every driver poll ran on every heartbeat. The node now keeps a
per-task next-due time for the run (internal/node/schedule.go) and runs a driver poll on the first
tick at or after it: a task new to the worklist runs at once, the cadence books from the due time so tick
jitter does not drift it, a late tick runs once rather than bursting, and a task that leaves the worklist
is forgotten. Reachability probes still run every tick, and a listener’s pushes are never gated
(ADR-0152,
settling the nodes page’s open question for driver polls). Proven by TestPollScheduleRunsOncePerInterval
(a 60s poll on a simulated 1s tick runs at 0, 60 and 120s) and TestNodeHonorsThePollSchedule (the real
node on a 50ms heartbeat asks a device about 4 times in 1.3s for a 400ms poll; the same test against an
ungated stub measured 26). The review that followed added the retry: a run whose fetch failed retries on
a backoff from the heartbeat, doubling, capped at the interval (TestPollScheduleRetriesAFailureOnABackoff;
it also let the simulator end-to-end test drop the start-order workaround the gate had forced on it),
pinned the anti-drift booking (TestPollScheduleDoesNotDrift), and let a listener’s push prove a down
held session, which a gated poll could otherwise keep reading down for its whole interval
(TestSessionDownReadsUpOnAPush).
The collection decision set (#818)
Section titled “The collection decision set (#818)”The closeout of epic #603. The four decisions the epic names are in the log, cited rather than
duplicated: spec-is-data
(ADR-0135), the
actuation contract
(ADR-0136, with
settlement from the reply in
ADR-0141),
the endpoint naming with interface on the docslint denylist
(ADR-0134), and
instantiation commands as plumbing
(ADR-0151
point 1). One new decision records the arc’s held-session proof
(ADR-0153):
the line protocol over tcp, with SSH and the other held transports deferred to #1032 through #1041 and
server-hosted ingress to #1024, and no serial transport (serial is reached through an IP-to-serial
gateway over tcp, tls, or telnet), which the collection and nodes pages’ transport fences now name. The
sweep moved what the arc built out of design prose: the nodes page’s status note (the command wire,
scheduled polls, held line sessions, listeners and the demux), its listen-mode, sessions, and task-queue
sections, the glossary (the endpoint row’s rename note, and new listener and reply-shape rows), the
collection page’s stale hand-count of seeded catalog rows, and the roadmap. Badges stay at their floors:
collection, nodes, messaging, commands, and the glossary are each Partial, every one still carrying
design.
Healthy reads green (#1067)
Section titled “Healthy reads green (#1067)”The grey healthy verdict read as the grey unknown one, so it turns green
(ADR-0154).
One --og-healthy token in app.css feeds three utilities: badge-healthy (the health pill and the
simulator’s running pill), bg-healthy (the history strip), and the muted text-healthy (the outline’s
healthy slot and a good uptime figure). Unknown keeps the grey chip. A guard in theme-badges.test.ts
fails if any of the three is mixed from the base-content grey again. Badges are unchanged: health stays
at its floor.
The system map’s dots wear each component’s verdict (#1071)
Section titled “The system map’s dots wear each component’s verdict (#1071)”The map filled every occupied, up position with the retired grey and only a down one red, so a
degraded component and a healthy one looked alike, beside coloured glyphs on the same page. Each dot
now wears its component’s own verdict through a verdictDot primitive in lib/health.ts (healthy the
muted bg-healthy-muted, incomplete indigo, degraded amber, outage red, unknown grey), read through
the one lookup the component rows also use, recorded as an amendment to
ADR-0154.
The theme guard covers the new fill with the other three.
Expression diagnostics: the registry (#1051)
Section titled “Expression diagnostics: the registry (#1051)”The first slice of #1021. The engine gains a registry of diagnostics
(internal/expression/diagnostics.go): each rule declares a stable code, a severity (error, warning or
hint), the sites it applies at, a trigger (refine, which explains a refusal it recognises at the place
the mistake is, or lint, which flags a likely mistake in an expression that compiles), a pure matcher
over the typed tree, a message, an optional fix as one text edit, and fixtures beside it in Go. To give
a refine rule the typed tree of an expression the checker refused, compile still goes through
expr.Compile (the engine never reimplements Expr’s pipeline, by the architect’s ruling in review) with
one more expr.Patch visitor that changes nothing and only records the slot the root sits in, read
after a refusal: Expr’s checker annotates those same nodes in place, as far as it got
(TestRefusedTreeKeepsCheckedTypes). The recorder sits before the engine’s charger, so the charger’s
walk stays the last before Expr’s final check, and TestCompileGoesThroughExprCompile fails if the
package imports Expr’s checker or compiler. Check now returns the warnings and hints beside
its refusal, and a compiled program carries them (Program.Diagnostics). Each site names itself on its
environment (WithSite: criteria and calc), so a rule runs only where it applies. Proven with
test-local rules (internal/expression/diagnostics_test.go): a refine rule’s refusal replaces Expr’s
with its code and positioned fix, an unrecognised refusal is Expr’s unchanged, warnings and hints ride
along on Check and on the cached program, an error lint refuses, a rule runs only at its sites, a
panicking matcher is skipped, the registry refuses a rule without both kinds of fixture, and the
fixture runner fails a rule whose examples disagree with it (TestFixturesHoldARule,
TestEveryDiagnosticPassesItsFixtures).
The starter diagnostics (#1054)
Section titled “The starter diagnostics (#1054)”The second slice of #1021, the registry’s first rules, each in
internal/expression/diagnostic_rules.go with its fixtures beside it (compiled against criteria-shaped
and calc-shaped fixture environments that name their sites). sum-of-bools (refine, error) recognises
Expr’s refusal of a sum over bools, whether the operator mismatch where the sum is compared or the
engine’s own refusal of the list or predicate, and refuses on the sum with “sum adds numbers” and
the fix to count; float-equality (lint, warning) flags == or != between a number-typed value and
a decimal that is not whole; count-equals-len (lint, hint) offers all(xs, p) for
count(xs, p) == len(xs); unused-alias (lint, warning, calc only) names each input the reduce never
names, read through WithInputs, which a calc rule’s environment now declares from its aliases. The
existing refusal of sum(pts, .has) moved from the operator to the sum with the clearer message.
Proven by the fixtures (TestEveryDiagnosticPassesItsFixtures, each fix applied and recompiled) and on
the real sites (internal/rules/diagnostics_test.go: the acceptance example refused at validate and
create alike and its fix compiling, the unused alias and the float equality never refusing).
Validate answers diagnostic codes, severities and fixes (#1052)
Section titled “Validate answers diagnostic codes, severities and fixes (#1052)”The third slice of #1021. POST /expressions:validate answers every diagnostic with a severity
(error, warning, hint) and, from a registered rule, its code and a quick fix (a range and its
replacement); an expression that compiles answers ok with its warnings and hints (phase lint). A rule
an error diagnostic refuses is a 422 carrying the code, at create and update alike. Stored rules carry
their warnings as notes (definition decision 1): criteria_warnings on an event rule and
calc_warnings on a calc rule, read from the same cached compile that gives criteria_error and
calc_error, which gained the code; a warning never refuses a save, and a row that newly trips an
error diagnostic reads it as its fault without being rewritten. Hints stay in the editor. Proven by
TestStoredRuleDiagnostics (the gateway: the warning saved and read on get and list, the error refused at
create and update, the out-of-band row read as sum-of-bools and left as stored) and
TestExpressionDiagnosticsAPI (the route: each severity, the fix, the 422’s code, both rules’ warnings
on create and get).
The generated diagnostics table (#1055)
Section titled “The generated diagnostics table (#1055)”The fourth slice of #1021. make gen (cmd/exprgen) renders the diagnostics registry to
docs/src/generated/expression-diagnostics.json (expression.DiagnosticsFactsJSON), and the expressions
page renders it as a table (ExpressionDiagnostics.astro): each rule’s code, severity and when it runs,
its sites, its message, and its examples, which are its fixtures (what it flags, with the fix’s result,
and what it leaves alone), so no row or example is hand-written. Each row carries the anchor
#diagnostic-<code> the console’s editor links a code to. Proven by TestDiagnosticsFacts (every rule,
its examples its fixtures) and the drift gate TestDiagnosticsFactsMatchCommitted.
The editor shows severities and offers quick fixes (#1053)
Section titled “The editor shows severities and offers quick fixes (#1053)”The fifth slice of #1021, the console half. The shared expression field
(web/src/components/ExpressionField.tsx) draws each diagnostic at its severity: an error a wavy red
underline, a warning a wavy amber one, a hint a dotted info line (toEditorDiagnostics keeps the
severity, underlines an operator whole, and names the diagnostic by its code). Only an error marks the
field invalid (textarea-error, aria-invalid) or withholds the verdict, so a warning never stops a
save. Beneath the field each diagnostic names its severity, links its code to the generated docs table
(diagnosticHref), and offers its fix as a button that applies it as the author’s own, undoable edit, only
while the source is still the one the answer was for (applyFix, fixRange, columns counted in
characters); the same fix rides the underline’s tooltip, and the editor gains CodeMirror’s lint keys (F8,
Mod-Shift-M). A stored rule’s warnings show on the calc and event rule blades as a note
(ExpressionNotes), never an alert. Proven in make test-web: the pure half
(expressionEditor.test.ts: severities, the fix in characters and its refusal on stale text, the docs
link), the field (ExpressionField.test.tsx: a warning leaves the field valid and the verdict ok, the fix
button rewrites and undoes, the code links), and both blades’ notes.
Sessions authenticate before they act, and a refusal stops the retrying (#1049)
Section titled “Sessions authenticate before they act, and a refusal stops the retrying (#1049)”The first slice of the protocol backlog under epic #603, under the architect’s ruling of 2026-10-23:
auth is a layer that gates a held session, and non-retryable errors are defined in drivers. The
session machine (internal/collection/session.go) runs each attempt as dial, then the auth step,
then arm, then up, over a staged dialer (Connect, Authenticate, Open) so the line reader does
not exist until the step passes; the real line dialer (linesession.go) is staged, running a declared
login dialog (login.go, one primitive for raw tcp, telnet and ssh keyboard-interactive) over the
raw connection, with prompts matched on a partial line. A terminal error
(collection.TerminalError, terminal.go), declared by the driver’s session.terminal rules
(internal/driver/session.go) or classified by a transport, moves the session to the new
rejected state without spending the budget: no dialing, polls and commands failing fast with
the reason, never a throwaway connection. It leaves on an identity change (a fixed credential
recycles it), an operator’s audited POST /endpoints/{id}:retry (the new endpoint:retry action,
moving the endpoint’s revision, which the worklist now carries), or the driver’s slow
session.reprobe. The auth verdict lands as endpoint-authenticated and every transition as
session-reason beside session-state (both seeded), and a poll fault that is terminal waits its
interval instead of the failure backoff. Proven over fakes with a fake clock (a wrong credential dials
once over an hour, a retry once more, a 20m re-probe three times an hour, a transient failure still
spends the budget, nothing arms before the auth step), over a real socket (a raw tcp line protocol
behind a password prompt: the right password logs in before the first poll, the wrong one is dialed
exactly once and never arms), against Postgres (the worklist carries the session block and revision,
:retry moves it and is audited, a login driver’s command delivery is session-only), and over the API
(a viewer is refused :retry, an out-of-scope operator gets a non-disclosing 404). Recorded as
ADR-0155
and ADR-0156.
A telnet session with option negotiation and a login dialog (#1033)
Section titled “A telnet session with option negotiation and a login dialog (#1033)”The second slice of the protocol backlog. telnet joins the transport registry as a held line
transport (internal/transport), its reachability probe connecting and waiting for the first
negotiation or banner bytes (telnet-response-time, seeded; a silent port reads reached but not
responsive). The held session is the line protocol’s own behind a filter (internal/collection/telnet.go):
inbound IAC sequences are stripped (including one split across reads, and subnegotiations), DO is
answered WONT and WILL is answered DONT, and a literal 0xFF is escaped. The login is the shared dialog
from #1049, run as the session’s auth step on establish and every recover. The simulated panel gains an
nvp-telnet face (port 23, a login whose prompts end no line, the NVP verbs and pushes behind it), and
the official newtron-nvp-telnet driver declares the login and the panel’s terminal refusal. A poll
that faulted on its session’s refusal now runs at the first tick its session is up again, so a fixed
credential lands data within a tick rather than an interval later. Proven against real sockets (the
filter and the probe), against the simulator (telnet_session_hold_test.go: login, poll, command,
push, a recover that logs in again and re-arms, and a wrong password connected exactly once and
rejected with the panel’s own text), and end to end (run_telnet_session_test.go: the shipped driver
attached with a wrong password reads rejected, session-reason auth: auth rejected and
endpoint-authenticated no, logs one rejection across twenty ticks, a :retry dials once more, and
fixing the secret reads up, authenticated, and lands the polled value).
An ssh session holds a shell for the line protocol (#1032)
Section titled “An ssh session holds a shell for the line protocol (#1032)”The third slice of the protocol backlog. ssh becomes a held line transport
(internal/collection/sshsession.go): a staged dialer whose auth step is ssh userauth with the
credential the driver names (session.credential: a password, a private key, or keyboard-interactive
answered by the shared login dialog), then a shell channel (a PTY on session.pty) or an exec channel
(session.exec) bridged onto an in-memory pipe so the line reader keeps its read deadlines. A refused
credential is terminal auth; the host key is pinned on first use: the node trusts the first key,
publishes it as the seeded ssh-host-key property, and the worklist delivers it back as the pin (the
declared value first), so a changed key reads rejected, class host-key, naming both fingerprints.
POST /endpoints/{id}:retry takes an optional host_key, which declares the new pin (audited) and
recycles the session onto it. The simulated panel keeps its ssh host key across listener restarts (a
test rotates it to model a replaced component) and serves the NVP subject on its ssh shell; the
official newtron-nvp-ssh driver ships. Proven against the simulator (poll, command, push, recover onto
the same key, down after the budget, a wrong password and a rotated key each rejected after one
attempt) and end to end (run_ssh_session_test.go: trust on first use lands ssh-host-key and the
worklist pin, a rotated key reads rejected naming both keys, a malformed host_key refuses, and the
accepted key reads up). Recorded as
ADR-0157,
which also logs the designed endpoint-params login retiring. Prompt-delimited answers are #1057.
The telnet review’s fixes (#1033)
Section titled “The telnet review’s fixes (#1033)”Each with a test that failed first. A telnet negotiation reply carries its own write deadline, and the
line reader and login dialog clear theirs after each write, so a component that sends IAC DO TIMING-MARK after an idle spell is answered rather than silently dropped (and the stale deadline can no
longer surface from a read as the reader’s own interrupt). The telnet probe reads a port that accepts
and hangs up as closed, not timeout, and while the node holds an up telnet session the probe takes
its verdict from the session instead of dialing a second connection. The design fences that still
listed telnet and ssh as unbuilt, and their endpoint-params rows, are retired.
The ssh review’s fixes (#1032)
Section titled “The ssh review’s fixes (#1032)”Each with a test that failed first. The trusted host key publishes on every authenticated connection
and again on every tick the worklist delivers no pin, and the node carries it across a session’s
recycle, so a lost publish followed by a credential edit cannot reopen first use to whatever answers
next. A keyboard-interactive question nothing declared answers (a one-time code) is an auth
refusal, not a retry loop. An ssh session requires session.credential (the ssh user), and the
ssh-key secret type ships so the private-key path works end to end, proven with the pty and exec
channels against a real ssh server. The :retry route says a host_key recycles any session onto the
new pin. The ssh probe’s params login, which ignores the pin, is filed as #1060.
One connection fingerprint gates every connection (#1056, #1060)
Section titled “One connection fingerprint gates every connection (#1056, #1060)”The architect’s rulings on #1056 and #1049, folded into the rollup. A component that hangs up after
the final secret with no refusal text charges a login budget (three in a row read rejected as
auth; ErrLoginDropped in the login dialog, a sim telnet face that rejects silently proves it over
the wire). The retry signal is an explicit session_retry counter on the endpoint (a migration), not
updated_at, so a label edit no longer pulls a rejected session out. internal/fingerprint is the
connection fingerprint: the worklist computes one per endpoint over every input a connection is
made with, the attached secrets as digests of their sealed envelopes, and a reflection test and a
table test hold its inputs complete. The node holds a gate per endpoint
(internal/node/gate.go) at the ladder rung a terminal refusal holds, for that fingerprint, across
its held session (started rejected), the ssh probe (#1060: its params credential tried once, and
never past a changed pinned key), stateless polls and commands; the gate publishes as
endpoint-rejection and is carried back, so a restarted node makes no attempt. The driver spec’s
ladder declares the rungs (an informational ping, the transport rung that gates, the session rung),
defaulted by the registry’s new rung, a request rung proven over the line client. Proven end to end
(run_session_identity_test.go): a silent panel spends the login budget; a label edit and a node
restart try nothing; a retry, a login-declaration change, a rotated secret and a re-attach over ssh
each try again; a wrong port reads down on refused connects and tries no login; the ssh probe sends a
wrong password once, across a restart, then authenticates after a params edit. Recorded as
ADR-0158,
with ADR-0155 amended.
The fingerprint review’s fixes (#1056, #1060)
Section titled “The fingerprint review’s fixes (#1056, #1060)”Each with a test that failed first. The gate (endpoint-rejection) republishes every pull until the
worklist reflects it, under a task chosen from the current worklist, so a lost publish or a
re-derived driver can no longer leave a restarted node without it. A refusal reported for an attempt
under an older fingerprint gates nothing. A host key trusted on first use stays out of the
fingerprint (only the declared pin goes in), so first use no longer recycles a healthy session. The
push lane refuses the node’s control facts (endpoint-rejection, ssh-host-key). A request rung
refuses at write anywhere but a line over tcp (#821, #1037). The informational ping runs beside the
probe on a 500ms bound. Fixed-port simulator collisions are #1066.
A driver-attached endpoint’s connection edits in place (#1061)
Section titled “A driver-attached endpoint’s connection edits in place (#1061)”The architect’s ruling before merge: re-attach is not the path. PATCH /endpoints/{id} takes a
driver-attached endpoint’s inputs (the host, the port, an attached secret’s reference), merged over
the stored ones and checked against the driver’s declared inputs (a non-number port, an undeclared
input, a raw params.target, or a transport the driver does not speak is a 400 naming the field),
every attached secret re-resolved under the editor’s own secret scope (an editor cannot redirect a
credential they could not use), audited, and the tasks re-derived in the same transaction through the
one per-endpoint derivation #823’s driver update now shares (rederiveEndpoint; ids move only where
the derived spec does). The console’s endpoint blade edits the declared inputs in place, sending only
the ones changed, and omniglass endpoint update <id> --inputs regenerates. Proven against Postgres
(the port and address and secret edits, task ids unchanged, the refusals, two audit rows), over the
API (a 400 naming port, the viewer refused), in vitest (only changed inputs sent, a label-only edit
sends no inputs), and end to end (TestADriverEndpointEditsItsAddressInPlace: a wrong port reads
down with no login; the port edited in place connects and authenticates within a tick; a label edit
recycles nothing; the address edited in place moves the healthy session to the other component).
Recorded in ADR-0158 point 6.
The in-place edit’s review, each with a test that failed first: a params.timeout value is parsed
and refused by name unless it is a positive duration; an input a driver update dropped no longer
blocks an edit; an empty value clears an optional input (its default fills it again) and refuses a
required one by name, the console sending a cleared field rather than dropping it; the row is locked
before an edit merges over it, so two concurrent edits cannot lose one; a transport restatement is
judged against the endpoint’s own. End to end, an in-place swap of the attached secret now un-gates
a session its stale credential had rejected, within a tick.
CI on the rollup found two more. A telnet test’s scripted peer hung up as soon as it reported, racing
the test’s peek at the connection; the peer now stays connected and the test proves the connection
survived with a second exchange (a review catalog entry records the pattern). And a stateless poll
kept the failure backoff it built up against an address since edited in place, so its first good
fetch could wait tens of seconds: a poll whose endpoint’s connection fingerprint moves now runs at
the next tick. The fix-an-endpoint-in-place walkthrough ships on the operator collection guide.
Simulated faces bind ephemeral ports, so test runs never collide (#1066)
Section titled “Simulated faces bind ephemeral ports, so test runs never collide (#1066)”Every simulator-backed test bound each face of its simulated component at a fixed loopback address
and port (127.89.16.5:20023 and its like, after the privileged-port lift), so two go test runs on
one host (two worktrees, or a session beside a make test) failed with bind: address already in use; #1061’s tests had taken a fresh address per stack as a stopgap, which isolated a -count rerun
but not a second process. Now a face binds whatever port the engine’s port map asks for and records
the address it got: Device.Faces lists each face with its surface’s name, protocol, declared port
and bound address. The map is the explicit choice: fixed (no map, or PrivilegedPortShift) for the
operator-facing simulator, whose ports an operator, a seeded endpoint and the docs all name, and
sim.EphemeralPorts for tests, where every face binds port 0 and the kernel hands it a free port. A
face reports the port it bound everywhere it reports one (its hits, its session events, SNMP’s request
detail), where a face asked for port 0 had reported 0; SNMP binds before it builds its
agent so it knows the port, and a simulated component’s raw-TCP faces find their session registry by
the declared port rather than the mapped one. Every in-process simulator test (the sim package, the node’s session
tests) serves on ephemeral ports and aims its clients and endpoints at the reported addresses. The
end-to-end and run-mode tests drive omniglass sim run, which binds the profile’s ports (lifted) on
the address an endpoint targets and cannot tell the endpoints a port it picked, so they stay on fixed
ports and claim a loopback address no other test holds (simtest.ClaimLoopback, a sentinel listener
held for the test’s life); so do the engine tests that pin a port on purpose (an address handed over
or swapped, a squatted port released and rebound). Proven by a test that serves one address from two engines at once
and finds every face of both bound, answering on its own engine at its reported address, with the
bound port on its hits and session events (it failed first, the line protocol’s session events
reporting port 0), and by the sim, node and end-to-end packages run twice side by side with no
collision, where on main the same pair failed with bind errors. The
simulation page teaches the two choices.
An endpoint shows its held session, and a rejected one offers a retry (#1059)
Section titled “An endpoint shows its held session, and a rejected one offers a retry (#1059)”The first console surface to read session-state (ADR-0150 point 2). The component’s reachability
read now carries each endpoint’s id (the address :retry takes), its held session (the latest
state, when it changed, and the session-reason beside it), and the rejection a terminal refusal
holds (the rung and class of endpoint-rejection; the fingerprint is dropped at the read). Three
console primitives render it, each on the component’s Collection card, its Endpoints panel and the
endpoint’s blade: SessionPill (each state its own glyph, word and soft hue on HealthBadge’s recipe,
rejected amber with a refusal glyph apart from down’s red, aged by last_seen and grey once the
endpoint has delivered nothing for the staleness window), ReachLadder (reachable, responsive and
authenticated bottom up, the ping’s chip dashed as informational, the held rung marked and the rungs
above it untried, each chip teaching its rung through InfoTip, which now takes a trigger of its
own), and SessionNotice (the reason for a down or rejected session; for rejected, Retry through
the generated client, greyed with its reason without endpoint:retry and holding its spinner until
the session moves, and the way into the endpoint’s edit, where Edit credential focuses the secret
input). The collection card’s state reads polls stopped for a rejected session and polls failing
for a down one, where freshness alone read collecting. Rows on both lists are now kept by endpoint id
rather than by the objects a poll hands back, so an expanded row and a retry waiting on its session
survive the next poll. The dev fleet’s huddle touch panel gains an NVP-over-telnet endpoint logging
in with the secret from before a password rotation (sim_secrets, sim_endpoints in the fixtures,
wired with the simulated fleet only), so make dev-sim shows a rejected session to read and fix, and
the fix-a-rejected-session walkthrough points its login at the rotated secret and watches it come
up. Proven against Postgres (TestReachabilityCarriesTheHeldSession: the state, reason and rung
read, the fingerprint never served, a lifted gate and a session-less endpoint absent;
TestSeededFleetHoldsARejectedSession), in vitest (the ladder model, the pill, the notice’s retry
and its permission greying, the blade’s credential edit, rows surviving a poll), and live against
the simulated panel. Host-key trust from the console (#1059’s ssh half) is #1078.
The review’s fixes, each with a test that failed first: session-state and session-reason join
the node’s own facts the push lane refuses (a push could read a rejected session up, hiding its
Retry, or plant a reason the node never scrubbed; ADR-0158 point 5 amended); the read serves a
session only while the endpoint holds one (a standing listen task, or a driver declaring a
session), since teardown publishes nothing and a torn-down session’s last state stood beside a
Retry that could change nothing; the reason is cut to 500 characters at the read; a retry in hand
lives in the query cache under the endpoint, so the Collection card’s notice and the blade’s hold
it together and cannot stack a second redial; the ladder no longer grows a login rung for a
session with no login; and the rows-survive-a-poll tests now let the poll land and assert DOM
identity, proven to fail against the unkeyed iteration (two review catalog entries record it).
The push lane refuses every key only a node can write (#1080)
Section titled “The push lane refuses every key only a node can write (#1080)”POST /telemetry:push refused a node’s control facts (the gate, the trusted host key, a held
session’s state and reason) but took the rest of the native probe keys like any property, so a
principal holding telemetry:push could write a reachability verdict, its rungs, or a probe metric
or timing under an endpoint’s name, and the console read it as the node’s observation. Now every
native key is refused by name, 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, beside rows in the same batch that
land; the rejection’s reason names the key. The set is internal/collection/probekeys itself: each
key is ruled there node-only or pushable with the one-line reason it may be pushed (none is
pushable today), and a test reads the package’s declared constants from source and fails on a key
ruled neither, so a key declared there cannot ship pushable by omission; the reachability read’s
keys are now those declarations too, and a test fails on one the ruling does not hold node-only. The
node’s own lane never consults the ruling. Proven against Postgres and a real bus (TestTelemetryPushRefusesNativeKeys:
every node-only key on every lane and instance refused by name, a batch landing only its two
pushable rows, casing and spacing variants refused, nothing native landing;
TestNodeLaneLandsEveryNativeKey: a node publishing every native key on its own subject lands
each one), and in unit tests (TestEveryKeyRuled, TestIsNodeOnly, TestNodeOnlyRejection,
TestReachabilityReadsOnlyNodeOnlyKeys). The review found other write surfaces that can reach a
native key’s series, and node-lane confinement wider than the endpoint; they are #1084 and #1085,
and collection-failed, a node-emitted key declared outside probekeys, is #1086.
ADR-0158 point 5 is amended; the push tests that used icmp-rtt-avg as their sample metric now
push room-temperature and uptime.
The end-to-end servers claim their own ports, so concurrent runs never collide (#1077)
Section titled “The end-to-end servers claim their own ports, so concurrent runs never collide (#1077)”Every end-to-end test started omniglass server on ports it found with a pick-and-release helper:
bind 127.0.0.1:0, read the port, close the listener, and hand the number to a binary that bound it
seconds later, after migrating and seeding. In that gap any other process on the host could be handed
the same port, so a run beside another (two worktrees, a session beside make test) failed with
bind: address already in use on the API, or nats-server not ready for connections when the bus’s
port went. Now the server binds port 0 itself and reports what it got. OMNIGLASS_ADDR and
OMNIGLASS_NATS_ADDR may name port 0; the API binds before it serves, so its address is known; the
bus reads port 0 as ephemeral, where nats-server alone reads it as its default 4222; and a new
OMNIGLASS_READY_FILE names a path the server writes, whole or not at all, once both listeners are
bound: a JSON object of the bound addr and nats_addr and the nats_url it advertises, removed at
a graceful shutdown. The advertised bus URL, when OMNIGLASS_NATS_URL is unset, is now the address the bus bound
(loopback for a wildcard host) rather than a fixed nats://127.0.0.1:4222, which is the same URL for
every configuration that worked before and the right one for a bus on port 0. The end-to-end package
starts every server through one helper, startServer, which sets the listen addresses to port 0 and
reads the ready file, and a guard test fails any test that runs the server another way or sets its
listen addresses (against main’s tests it names all seven server starts). Proven by the bus binding a
kernel-picked port for 0 (it bound 4222 first), the ready file’s write, replace and removal, and the
healthz end-to-end test asserting both reported ports are live and neither is 0 or 4222 (it failed
first, no ready file). Beside a squatter that holds and churns ephemeral ports, standing in for a busy
host, main’s healthz test failed four runs in four (one on the API’s port, three on the bus’s) and the
fixed one passed four in four; the end-to-end package run twice side by side, three pairs, passed every
run. The
CLI guide teaches the ready file, and the deployment guides’
configuration tables render the new variable from the registry.
The review’s fixes, each with a test that failed first: the harness observes the server’s exit by
closing a channel rather than sending its one value, since a server that died before it was ready
had its exit taken by the wait, leaving the cleanup that stops it blocked until the suite’s timeout
(every later test aborted, the boot error never printed); the boot clears a ready file already at
the path before anything that can fail, since a server killed outright runs no shutdown and its file
named a dead run’s ports, which the next boot left in place throughout, or for good when that boot
failed; and the test-driven page scopes the one-helper rule to internal/e2e, noting that the browser
tier and the walkthrough stack isolate through a private Docker network per run.
Docs-shot masks paint a fixed box, so baselines never move with the clock (#1081)
Section titled “Docs-shot masks paint a fixed box, so baselines never move with the clock (#1081)”Two masked baselines moved with the capture’s wall clock though their masks exist to pin exactly
that region: entity-blade masked [data-testid=blade-since] and fleet-place-systems masked
[data-testid=summary-since], each a hook on the since span itself, so each mask was painted at
the size of the text. The text moves with the clock (fmtTime prints a month name, a bare day and
AM or PM; the age reads 9s or 17s), so the same blade captured at 01:57 AM and at 06:59 PM painted a
box one pixel apart (64 changed pixels in the blade’s baseline, 160 in the card’s). Every recapture
therefore rewrote both baselines with no UI change, which is how #1059 found them, and the gate
passed only because its perceptual threshold happens to absorb a mask edge moving over a dark
surface (#774), not because the bytes held: the class #773 fixed for table cells, met again on a
data-testid hook.
A mask entry can now declare its box: { selector, width } is painted at the value’s top-left,
as tall as the value and width CSS pixels wide, whatever the value reads, for a value whose
position is fixed but whose width is not, and whose only container that holds still also holds
what the shot exists to show. Both since masks declare one: 184px over the blade’s line, 208px over
the card’s, against the widest line a capture can render in the console’s face (164px and 186px,
“since May 28, 12:59 AM · 59m”). A value wider than its box fails the capture by name instead of
leaving its tail live. The capture’s mask code moves out of docs-shots.mjs into
web/e2e/shotmasklib.mjs (plan, paint, log), so the code that paints a baseline is the code the
browser test drives; the docs content schema and docs-shots-verify accept and check the new
entry. No console surface changed. A sweep of every other mask found none of the class: the uuid
masks stay on fixed-width monospace text, the timestamp masks name their cells, and every other
since-line, age and timestamp mask names a row, an incident entry, a panel or a chart its layout
pins (the uptime figure’s box by its minimum width), with no capture-relative region left unmasked.
DOCS_SHOTS_EXACT=1 makes the freshness diff compare every pixel exactly, since the gate’s own
comparison scores this defect zero. Proven both ways. At the browser tier,
web/e2e/shotmask.spec.ts now reads each mask from its page’s own frontmatter and drives the
shared mask code, and its blade and card cases failed against the old selectors (the box moving
from 164 to 179 pixels) and pass against the declared boxes, which also leave the verdict and the
card’s name live. At the shot level, a recapture with the clock moved
(DOCS_SHOTS_TZ=America/Los_Angeles) changed exactly these two baselines before the fix, every
other mask resolving to the same box, and changes no pixel after it (DOCS_SHOTS_EXACT=1). The
review catalog gains text-sized-mask, and unmasked-capture-relative-region now points at a
mask that holds.
The review’s fixes, the first three each with a test that failed first: the first cut masked the since lines’ whole rows, which held still but hid the verdict badge from the last two baselines that still gated it (the declared box replaces it, and the browser test now fails a mask that covers what its shot shows); the documented way to prove a mask holds ran the gate’s perceptual comparison, which cannot see this bug (the exact comparison, pinned by a unit test that the default scores a one-pixel mask move zero and the exact mode does not); a declared box is measured again when the baseline is shot, since the clean shot comes between planning and painting and a reflow in between would plant the box where the value used to be (and a value that outgrew its box meanwhile still fails by name); and the browser test now finds the docs from its own location, so it also runs from the repo root. A declared box suits only a value whose left edge stays put, which the docs and the catalog now say.
A changed host key can be trusted from the console (#1078)
Section titled “A changed host key can be trusted from the console (#1078)”The ssh half #1059 deferred. A host-key refusal now carries both keys as data
(collection.TerminalError Pinned and Offered, built by collection.HostKeyRefusal for the held
session and the probe alike), and the node’s gate publishes them with itself: endpoint-rejection
appends <pinned-key> <offered-key> to <rung> <class> <fingerprint>, both or neither, the one
shape declared in 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 byte-identical to
what the server holds (ADR-0159,
amending ADR-0158 point 5). The reachability read’s rejection serves pinned_key and
offered_key. POST /endpoints/{id}:retry with host_key now refuses (409, nothing written) any key
other than the offered key the refusal on record names, and its audit row carries the pin replaced
(old.host_key) beside the pin set (new.host_key) and the actor.
In the console, a session rejected for a changed key reads The host key changed and names both
keys (PinnedKeyNotice, two KVStacked facts, which now take a hint), side by side where the card
is wide and stacked in the blade. Trust this key (gated endpoint:retry, greyed with its reason)
opens ConfirmDialog, a new primitive (a centred Kobalte AlertDialog, its rail the one
PanelFooter, the focus on Cancel): it repeats both keys and teaches Why a key changes as three
chips (reinstalled, hardware swapped, man in the middle), each explained on hover. It holds the refusal
as it was when opened, sends exactly that offered key, and will not send once the live read’s offer
has moved; after a trust it waits on the session as Retry does. Both components are generic over the
class, so the tls slice’s certificate refusal (#1035) renders through them unchanged. The dev fleet’s
briefing touch panel gains an ssh endpoint pinning the key it had before a reimage, so make dev-sim
shows a host-key rejection, and the trust-a-changed-host-key walkthrough trusts it and watches the
session come up.
Proven test-first: the rejection shape’s round trip and parse (internal/collection/rejection); the
gate publishing and adopting the keys and a session manager’s host-key refusal publishing them
(internal/node); the read serving the gate’s keys and never a decoy pair planted in the reason
(TestReachabilityCarriesTheHeldSession); the stale trust refused with nothing written and the
accepted trust audited with both keys and the actor (TestTrustingAKeyChecksTheOfferedKeyAndAuditsBoth);
the viewer floor’s 403 and the 409 over HTTP (TestEndpointAPI); the real-wire panel publishing both
keys and refusing the old pin (TestNodeSSHSessionPinsTheHostKeyAndRefusesAChange); the seed’s stale
pin, idempotent and never put back over a trusted key (TestSeededFleetHoldsAHostKeyRejection); and in
vitest the notice, the confirm, the exact key sent, the moved offer, the server’s refusal and the
greyed viewer. The adversarial review found no exploitable hole and two advisories, both fixed: the
409 claimed the component “now offers” the key on record, which a gated node cannot know (it now says
what the record names and to retry first, and the docs say the same), and the boot-seeded
endpoint-rejection description still named three fields.
A component’s product change brings its calc rules in line (#1015)
Section titled “A component’s product change brings its calc rules in line (#1015)”A component retyped out of a component calc rule’s selector kept the rule’s state, and one retyped in
waited for a new sample. Changing a component’s product now runs the component counterpart of the
system path’s marking (markComponentCalcRules, by the event rules’ component matcher the serve
rechecks with): a rule that selects it is marked when it holds one of the rule’s inputs, and a rule that
no longer does drops its mark and state there (TestCalcComponentRetype). The issue’s other half, a
deleted member, does not occur: a component staffing a system role is refused delete (409), so a system
rule never computes over a member that is gone.
The line protocol over tls, with a pinned public key (#1035)
Section titled “The line protocol over tls, with a pinned public key (#1035)”The first slice of the protocol wave (#1076), under the architect’s approval of its decisions 1 to 4
and 7a (ADR-0160).
tls joins the transport registry as its own held line transport, its rung the handshake, rather
than an option on tcp: an endpoint is named by its transport, so a component now holds a raw
control port and a TLS one side by side. The handshake is one primitive, collection.HandshakeTLS,
under one of three modes (verify against the node’s system roots with the host as the server name,
pin the public key on first use, skip), reporting the offered key’s SPKI fingerprint (the ssh
SHA256: form) and the not-after. The mode is the driver input tls-mode, derived into the
endpoint’s params as host and port are and edited in place; the driver declares its default
(the new official newtron-nvp-tls pins), none means verify, and a spec defaulting to skip is
refused at write. The held session runs the handshake before its auth step through a TLSDialer
(ConnectTLS), so a session that declares tls over a dialer that cannot run one is a protocol
refusal, never plaintext. Polls and commands dispatch by the registry’s line flag, and a tls poll or
command rides only the held session.
A changed key or any verification failure is a terminal certificate refusal at the transport rung,
naming both keys for a changed one and carrying them as data (TerminalError.Pinned/Offered). The
node keeps one pin per tls endpoint, shared by the held session and the probe, admitted atomically
once the handshake completes (HostKeyPin.Admit), published as tls-certificate on first use and
again while the worklist lacks it, replaced (recycling the session) when the worklist delivers a
different one. Beneath a certificate gate the probe runs only the TCP connect, across a restart
too. The gate value carries the two keys (responsive certificate <fingerprint> <pinned> <offered>, the grammar ADR-0159 gives a refused key), and the reachability read serves them as rejection.pinned_key
and rejection.offered_key (as #1078 serves a host key’s), so its
trust-this-key notice renders a certificate refusal unchanged; :retry takes the key through
host_key (now the key the endpoint’s transport pins) as well as certificate, under ADR-0159’s
409 for a key that is not the offered one on record. The
worklist delivers the pin as CertificatePin (declared first), the declared pin joins the connection
fingerprint (fingerprint.Inputs.CertificatePin, the reflection and table tests green), and
POST /endpoints/{id}:retry takes certificate (audited, a tls endpoint only, a SHA256:
fingerprint only; omniglass endpoint retry --certificate). The four tls keys are ruled node-only
(#1080’s ruling, merged beside this slice), so the push lane refuses them. The probe lands the tcp pair, endpoint-responsive, one
tls-handshake-time per answered probe, and for an accepted certificate tls-certificate-expiry
and tls-certificate-days-left; the reachability read serves a tls row’s mode, key, handshake,
expiry and days left, and the console’s breakdown teaches them (amber inside a month) with
unverified on a skipped row. The simulated panel serves NVP over TLS (nvp-tls, 51326) with a
key derived from the simulated component’s id, so a pin survives a simulator restart, its validity window the
profile’s tls_validity_days; the dev fleet attaches newtron-nvp-tls to the huddle panel.
Proven over real sockets (internal/collection/tls_test.go: pin, verify with an unknown authority,
a name mismatch and an expiry, skip, plaintext retryable, the probe’s facts, a held session rejected
for a changed key that then dials nothing over an hour of its clock), over fakes for the node’s
pin, probe gate and restart (session_tls_test.go), against Postgres (tls_pin_test.go, the API
e2e), and end to end against the simulated face (run_tls_session_test.go: first use, poll,
command, push, recovery onto the same key, a changed key held beneath the gate with no handshake
across a node restart, the operator’s accepted key, verify refusing the self-signed face as
certificate and skip connecting, each mode edit lifting the gate). The collection page’s probe
table gains its tls row by hand; rendering it from the registry is #1087.
The review’s fixes, each with a test that failed first: a driver may not emit a node-only key
(tls-certificate, ssh-host-key, endpoint-rejection, session-state, session-reason, and with
#1080’s ruling every native probe key), refused at spec write, since a poll emitting the pin key would have had the worklist deliver a driver’s
constant as the pin, bypassing the audited :retry (a lane open for ssh-host-key since #1032; the
catalog entry now covers every lane); a probe-only endpoint’s certificate refusal self-logs its
reason once, since it has no session-reason; the reachability read serves the pinned key in pin
mode alone and withholds the last accepted certificate’s expiry and days left while a certificate
gate holds (the probe then connects only, so they froze and read as current), the panel naming the
refusal instead; a bare tls endpoint’s tls-mode param is checked at create and edit
(ErrEndpointParamsInvalid, a 422 naming the field); and the seeded tls-certificate description
says what the node publishes (first use, again while the server lacks it).
A probe-gated endpoint shows its refusal and offers a retry (#1110)
Section titled “A probe-gated endpoint shows its refusal and offers a retry (#1110)”An endpoint gated by its reachability probe alone (a tls certificate refusal, a udp terminal
reply, an snmp authorizationError, the ssh probe’s refused credential) holds no session, so the
console showed the held rung on its ladder and nothing else: the notice, its reason and Retry keyed
on a rejected session, and the node’s reason for the refusal was logged and lost
(ADR-1110).
The node now publishes endpoint-rejection-reason beside endpoint-rejection in one batch,
whenever it records a gate (held session or not), republished with the gate until the worklist
reflects it; a gate adopted after a restart publishes none, and a held session started rejected
under it does not re-record it from its own replay (told by identity: a re-probe’s refusal under
the same fingerprint records its words and publishes the reason again beside the unchanged gate),
so the refusal’s own words stand. The notice reads the gate’s reason first, since such a session’s
reason is the node’s placeholder. The
key is seeded and node-only. The reachability read serves rejection with its reason and ts
whether or not a session is held, the reason only while a gate holds. SessionNotice keys on the
gate (endpointNotice in lib/session): the same notice, reason, Retry behind endpoint:retry, and
Trust this key for a changed key, with no session pill, a retry waiting on the gate’s publish time
where no session exists (retryMark), captured when the retry is asked for. The Endpoints panel
renders its notice slot only for a row with something to say, and the Collection card reads polls stopped for a gate that holds the polls (pollsHeld, the node’s stateless rung: any gate at the
transport rung, and snmp’s at the session rung, on an endpoint holding no session, whose polls a
held session would carry instead). The dev seed gains a probe’s gate: the
auditorium’s touch panel’s snmp-generic endpoint reads the community the panel’s agent refuses,
which the fix-a-refused-probe walkthrough fixes from the console.
Proven by tests that failed first: on the node (TestAGatePublishesItsReasonBesideIt,
TestRejectionSamplesCarryTheReasonBesideTheGate, and the adopted gate’s reasonless republish,
mutation-checked), end to end against the simulated snmp face (run_snmp_test.go: the reason lands
beside the gate and survives a node restart), on the read for each gated transport with no session
held (TestReachabilityServesAProbeGateWithNoHeldSession: tls, udp, snmp and ssh, the reason cut at
500 characters, a lifted gate serving none, a viewer reading the same gate while its retry is
refused 403), in the dev seed (TestSeededFleetHoldsAProbeGate: the secret holds the community the
simulator’s profile refuses, nothing holds a session, a second run adds nothing), and in the
console (the notice, Retry, the denied viewer and the re-gated retry for each transport; the
Endpoints row, the Collection card and the endpoint’s blade; Trust this key for an ssh probe’s and a
tls probe’s changed key).
The review’s fixes, each with a test that failed first: a restarted node’s held session, started
rejected under the gate it adopted, replayed the gate’s placeholder refusal into the gate as fresh,
so the placeholder went out as the reason (TestAnAdoptedGatesSessionReplayPublishesNoReason,
session-backed); telling the replay by value would have swallowed a driver’s re-probe meeting a real
refusal under the same fingerprint, whose words now record and go out beside the unchanged gate
(TestAReprobedRefusalPublishesItsReasonUnderAnUnchangedGate); the notice reads the gate’s reason
before a rejected session’s; pollsHeld leaves the polls to a held session, as the node does; the
tls verify bullet, a probe comment and the read’s type comment stopped saying a probe’s reason is
only logged. The review’s new class joins the catalog (replayed-state-rerecorded). The guard
over the legacy backfill’s key lists rules the new reason key born under the ruling.
An ADR’s number is its issue number (#1108)
Section titled “An ADR’s number is its issue number (#1108)”A decision now takes the number of the issue it was decided under (ADR-1108), so two PRs
recording decisions at once can no longer race for the same next number. ADR-0001 to ADR-0163 stay a
closed legacy range, still checked for gaps; a number above it must be one of the decision’s own
frontmatter refs, and a second decision on one issue takes a suffix from .2 (ADR-NNNN.2), which the
heading renders with its dot and the anchor without (#adr-NNNN2-<slug>). Both readers changed
together: fragments.mjs orders the index by value (legacy, then issue numbers, a suffix after its
issue, five-digit numbers last) and refuses a mismatched refs, a mis-padded number, a suffix of one, a
suffix on a legacy number, and two files holding one number by name; TestDecisionsFormat adds the
suffix runs (no .3 without .2, no .2 without the plain number) and refuses two decisions whose anchors
would share a prefix. make adr-renumber takes suffixed numbers, rewriting mentions and file names in
the dot form and anchors in the dotless one while leaving the plain number alone, and survives only for
two PRs adding one issue’s next suffix. /record-decision, docs with everything, the slice workflow,
/autopilot and CLAUDE.md teach the rule, the decision log explains its two ranges, and
ADR-0162
carries the amendment. Proven test-first: issue-numbered decisions with and without matching refs, a
gap above the legacy range passing and one below failing, a suffix’s heading and anchor through the
renderer and the post-build check, suffix and anchor clashes, and the renumber tool moving a suffix
and a plain number to a suffix over a fixture tree.
An endpoint’s audit row reads as JSON and shows its whole change (#1088)
Section titled “An endpoint’s audit row reads as JSON and shows its whole change (#1088)”An endpoint’s audit row read its params and inputs as base64, and the long values pushed the drawer’s
change table past its edge, so the After column sat off screen. The base64 came from the write: a row
image is the gateway’s struct marshaled with encoding/json, and a jsonb column scanned raw is a byte
slice, which marshals to base64. The audit write now carries each top-level byte-slice field that holds
JSON as that JSON (inlineJSONBytes, through an embed like the retry’s pinned endpoint), so the fix
reaches every image marshaled from a struct with such a column: an endpoint’s params and inputs on
every write, and on create a driver’s spec, a command type’s params schema, an event type’s payload
schema and a property type’s validation (their updates and deletes were already JSON, read as rows).
Bytes that are not JSON, or that a jsonb column would refuse, marshal as before, and a key a tagged
field owns keeps its value. Redaction stays the write’s own: an endpoint’s secret inputs are references
by name. The drawer opens
in the wide panel, lays its table out fixed with each value wrapping in its own column, renders JSON
indented, and drops the column of a side with no image, so a create’s spec takes the whole width.
Proven by a gateway unit test of the image (the JSON inlined under the key encoding/json gives the
field, a nil embed, non-JSON bytes still base64, a named embed left alone), an API test that reads an
attach, an edit and a retry back from GET /audit-log as objects and a driver’s spec as one (each
failed first on base64), a redaction test that finds the secret’s value nowhere in the trail, read as
returned or decoded from any base64 string in it, while the rows name it by reference, component tests of the drawer, and live captures of an
endpoint edit, a retry, and a driver’s create and delete. Rows written before the fix keep their base64,
the record as written; decoding them on read is #1121.
Every key has one writer, enforced at the gateway (#1084, #1085, #1086)
Section titled “Every key has one writer, enforced at the gateway (#1084, #1085, #1086)”The push lane’s refusal of native keys (#1080) generalizes into an invariant the Storage Gateway
holds beside scope
(ADR-0161).
Every metric, property and event type has exactly one writer class, resolved from code and the
catalogs and never stored (internal/writerclass): node-probe (the probekeys set, which now holds
collection-failed), platform (health, the rollup’s verdict; the self-monitoring follow-on #1094
is its planned consumer), calc (a calc rule’s output, generalizing WrittenBy) and collected
(every other key). Every gateway function that lands a sample or an event names its writer (the node
lane bound to its task’s endpoint, the push lane, a calc rule, the health rollup, a command and its
reply, an operator’s declared value, a key pin (the ssh host key, the tls certificate), an event rule) and holds every row to its
key’s class before anything lands; a refusal is a 422 naming the key and who writes it. 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), a calc rule’s output, an event rule’s event
types, and an operator-created type under a reserved name on any lane. On the node lane a node-probe
key lands only under the endpoint whose task the node ran; a driver’s own keys keep their instance.
The reachability, session and transition-guard reads serve a key’s observed series only, the health
reads the rollup’s rows only, and a node-probe sample dated more than five minutes past the database’s
clock is stored at the database’s now. The tls
keys (#1035) are node-probe like every native key; the driver spec’s node-only emit check #1035
added is now the writer-class ruling itself, the tls certificate’s pin through :retry is admitted
as the ssh host key’s is, and the reachability read serves a tls endpoint’s pin in force (the
declared key, else the one trusted on first use). The type
reads carry writer_class, and the properties page renders the ruling from the code
(cmd/writerclassgen, docs/src/generated/writerclass.json). Proven test-first: a source guard reads
every sample and event insert in the gateway and fails on a function that is not a registered write
path or skips the check (shown failing on a planted unregistered path), a migration guard rules the
one historic migration that writes sample rows, a Postgres table drives every registered path with a
mismatched writer and each admitted one (TestWriterMismatchRefused), every seeded type reads one
class and no lane takes a reserved name (TestEveryCatalogKeyHasOneWriterClass), and the lanes end
to end (TestTelemetryPushRefusesKeysItDoesNotWrite, TestNodeLaneConfinesNodeProbeKeysToItsEndpoint,
TestWriterClassOnTheWire). Test fixtures that wrote a native key as a generic sample now write it as
the node would, under one endpoint; a few use a collected key instead (video-input,
firmware-version, uptime as a metric target). The dev seed writes its native samples as the node
under their endpoint, and its breadth round-trip series under one named icmp.
http polls and commands parse json, xml and html (#902)
Section titled “http polls and commands parse json, xml and html (#902)”The first slice of the second protocol wave (#1113), under the architect’s approval of its
decisions 1 and 4 to 7 (ADR-0902).
A driver’s http request declares method, path, query, headers, a body and the response
format, validated at write (a path, a known method and format, no body on a GET, no credential
header, no secret in a template, a poll rendering nothing) and rendered injection-safe
(internal/driver/http.go). The one Extract primitive gains a namespace-aware xpath over xml
and parsed html (internal/driver/xpath.go, antchfx), one value per selector, each emit’s selector
bound to the declared format. The session block declares scheme (basic, bearer, api-key, its
placement on the driver) over the new bearer-token and api-key secret types; terminal rules
may match a status. https joins the registry over the TLS primitive (the registry’s tls flag
drives the tls mode, the pin and :retry with certificate for both), http stops claiming held,
and a listener on a transport with no listen path is refused at write (#1115).
The node’s http fetcher (internal/collection/httpfetch.go) sends one request with the credential
applied, over plain http or the shared handshake, never following a redirect and capping the body,
and the status table (JudgeHTTPAnswer) splits a gating refusal, a request’s own fault (which waits
its interval) and a retryable answer (which backs off at least its Retry-After). A query key is
redacted from every URL named and the credential scrubbed from any reason. A credentialed poll or
command sends at the session rung, so a refused credential gates both, and its answer lands
endpoint-authenticated; the probe stays credential-free and, over https, runs the handshake as its
rung, landing the handshake time and the certificate facts. An http command’s rendered request rides
the command wire whole, its credential read off the node’s worklist. The seed ships kestrel-api
(https, basic: system, call and audio polls; set-volume, set-mute and set-power) and http-json
(http, a header key: status and occupancy), the keys and command types they read and drive, and the
simulated fleet attaches both. The simulator’s http faces gain bearer and query-key auth, an https
face serves an ECDSA key derived from its component’s id, and the DSP serves namespaced XML.
Proven in the driver (validation, rendering, xpath over xml and html, the terminal rules, the
credential’s resolution), in collection over fakes (JudgeHTTPAnswer’s table, the scrub, the
request’s shape and scheme) and over real sockets (httpfetch_integration_test.go: the request and
its key, a redirect, the body cap, a query key never named, verify, pin and skip, the https probe),
on the node over fakes (http_test.go: the session rung, a command’s credential off the worklist
and its gate, the bookings), in the simulator (the bearer and query faces, the https key lasting
across a restart), against Postgres (https_pin_test.go), and end to end (run_http_test.go: the
bar polled over https and actuated three ways, each settled from its reply, a replaced key held
beneath the gate across a restart until trusted, verify refused and skip connecting; a wrong header
key refused once per fingerprint across a restart and a rotation bringing it up; a bearer token over
namespaced XML and a query key over an HTML status page).
Legacy collection data honors the one-writer ruling (#1100)
Section titled “Legacy collection data honors the one-writer ruling (#1100)”What was written or declared before the one-writer ruling is held to it wherever it would still act
(ADR-1100,
amending ADR-0161). A declared key pin (the ssh host key, the tls certificate’s public key) is trusted
only as the endpoint’s audited :retry wrote it: its row carries source key-pin, and the worklist,
the fingerprint, the reachability read and the audit row’s replaced pin read a declared pin by that
mark alone. A node carries and republishes only a key it learned on first use itself, and forgets a
pin the worklist stops delivering, so its session redials trusting on first use. Two migrations: a
retired_sample table (DDL), and a one-time backfill that stamps the :retry pins written before the
mark (matched to the audit row their transaction wrote) and moves every row of a reserved key its class
would refuse today into retired_sample, whole, with its reason: a declared pin :retry did not
write and what a node published under it (ordered by arrival), a node-probe row on an owner that is
not a component, by a writer other than the node (a command’s reply among them), under an instance
naming no endpoint of its component, or dated past the database clock, a health row the rollup did not write, and a command-issued event no command points
at. Retirement is a move, never a delete or a flag: no read serves a retired row, and its down restores
every one; a retired pin’s key is never re-learned as the pin until a :retry declares it, and at boot
every event rule series a retirement touched is judged again, so a condition a retired row raised lets
go. The worklist strips from every driver task an emit the node lane may not carry, a
re-derivation never bakes one, and the server’s boot audit names each stored driver spec, derived task,
contract line, event rule and command type the ruling refuses (a rule whose clear event the ruling now
reserves still lets its condition go). The node lane’s writer binds the component its task collects for
as well as its endpoint (NodeWriter(component, endpoint)); contracts on all three classifiers refuse a
reserved key (a 422 naming it) and a legacy line lends no default; and command-lifecycle joins the
reserved family, holding command-issued, which only a command writes. Proven test-first, each test
shown failing before its fix: the gateway binds both halves of a node’s writer
(TestNodeWriterBindsItsComponentAndEndpoint), a command’s lifecycle event is refused to a push, a
node and an event rule (TestCommandLifecycleIsTheCommandsAlone), contracts refuse reserved keys on
the operator’s and the seed’s paths (TestContractsRefuseAReservedKey), a planted ssh or tls pin is
never delivered and moves no fingerprint while a :retry pin is (TestPlantedPinIsNeverDelivered), a
node forgets a withdrawn pin (TestSSHWithdrawnPinIsForgottenAndTrustsOnFirstUseAgain,
TestTLSWithdrawnPinIsForgottenAndTrustsOnFirstUseAgain), stored specs and tasks carry no refused emit
to a node (TestStoredSpecsAndTasksCarryNoReservedEmit), and the backfill retires exactly what the
ruling refuses, leaves the honest rows, changes nothing on a second run and is reversed by its down
(TestLegacyBackfillRetiresWhatTheRulingRefuses, TestLegacyBackfillDownRestoresTheRows), with its key
lists held to the code’s (TestLegacyBackfillNamesTheRuling). The adversarial review’s in-scope
findings were fixed the same way: a retired pin is never re-learned from the series
(TestRetiredPlantedPinIsNeverRelearned), a condition a retired row raised is released
(TestRetiredRowsReleaseTheConditionsTheyRaised), and a legacy rule still lets go
(TestARuleWhoseEventBecameReservedCanStillLetGo). The contract tests that used a node’s
probe metric as a stand-in now use collected metrics, and the dev seed’s breadth round-trip series lands
under each component’s own endpoint once the simulated fleet gives it one.
Refused-dial tests never aim at a released port (#1089)
Section titled “Refused-dial tests never aim at a released port (#1089)”Five collection tests (the TCP dialer, the HTTP, telnet and TLS probes, and the line session’s
dial) found a “closed” port by listening on 127.0.0.1:0, reading the port and closing the
listener, then dialed it expecting a refusal. The port is free the moment the listener closes, so a
concurrent run on the host could be handed it before the dial, which then reached a stranger’s
listener and read open. Now they aim at nettest.RefusedAddr, a loopback port held for the test’s
life by a socket bound to it that never listens: a connect finds no listener and is reset, and
because the holder is bound without SO_REUSEADDR, a listen on the address, the IPv4 wildcard or
the dual-stack wildcard fails with address in use, with or without SO_REUSEPORT. A guard in
internal/build (TestNoTestUsesAReleasedPort) reads every test file and every test-helper
package and fails any use of a raw listener’s or an httptest server’s address after it closes:
closed in line or in a subtest, or by a defer in a function that returns the address, with the
address followed through what is derived from it. Its excused uses are the two UDP tests whose code
under test must be told a listen port, picked again on a collision, and the helper’s own contrast
test. A port released through a wrapper is outside what it reads: the node’s session tests restarted a
simulated face on its port at an address every run shares (#1116); they now take a claimed address
(simtest.ClaimLoopback), and a sibling guard (TestNoTestRestartsAFaceAtALiteralAddress) fails a
test that stops a face and restarts it on a port at a literal loopback address. Off Linux, where the
hold’s bind semantics differ, a refused-dial test skips. Proven three ways: each of the five tests failed with a
competing listener injected into its gap and passes with the same injection beside the helper,
whose bind is refused; the helper’s tests take the address with every listen form and option and
fail to; and four runs side by side beside a squatter holding and churning 4000 ephemeral ports
saw about 640 of 20000 refused-dial runs answered on main and none with the helper. UDP refusals
already aimed at a privileged port, which bind(:0) never hands out, and stay there. The
test-driven page carries the rule and the
fixture-binds-a-fixed-port catalog entry the refused-dial form.
snmp proves reachability with a standard get (#821)
Section titled “snmp proves reachability with a standard get (#821)”The third and last slice of the protocol wave (#1076), under the architect’s approval of its
decisions 6 and 7a (ADR-0821).
snmp reads built and stateless in the transport registry. Its transport rung is a get of a
standard OID answered, ladder.transport.request.get, sysUpTime.0 by default (ResolveLadder
supplies it, so snmp-generic gains its rung with no spec change), validated at write: a line or
a non-numeric OID is refused. The worklist delivers an snmp endpoint’s reachability probe its
community, the one credential its rung sends. The getter reads an authorizationError answer as a
terminal auth refusal and a silent drop as a timeout. On the node the rung dispatches beside
udp’s: an answer lands endpoint-responsive, one snmp-response-time (node-probe) and
endpoint-authenticated yes, and decides the verdict, with no tcp-open; an authorizationError
gates the session rung, beneath which neither the probe nor a poll sends a get under that
fingerprint; silence reads timed out and says nothing of the community. The reachability read
serves the rung as a request layer timed by snmp-response-time, and the panel names it the get,
its why-line naming the v2c limit. The simulated v2c faces judge the community themselves (the
library, unsecured, answered any) and answer a declared refused_community with
authorizationError; the catalog’s faces refuse revoked.
Proven against a BER agent of the test’s own (snmp_integration_test.go: an authorizationError a
terminal auth refusal, a wrong community a retryable timeout), against the simulated faces
(snmp_community_test.go), on the node over a fake getter (snmp_rung_test.go: the rung and its
verdict, the gate at the session rung holding the probe and a poll, a rotation lifting it), against
Postgres (the probe task carries the community alone), on the reachability read, and end to end
(run_snmp_test.go: the get answered and timed beside the poll, a wrong community silent and never
rejected, the refused community gated with no further get until the secret rotated, a stopped agent
down), with loss injected through the impairments under NET_ADMIN (the netadmin end-to-end test’s
snmp leg reads down under 100% loss and up once it lifts).
The review’s fixes, each with a test that failed first: beneath the auth gate the get, snmp’s only transport probe, was not sent and nothing landed, so the verdict froze at the last answer and the row read responding against a powered-off agent; the held rung now reads down, rejected, and the panel names the refusal. A restarted node’s poll is proven held beneath an adopted gate (the suite had stayed green with the poll’s gate check reverted). An snmp driver must declare its community input, since the rung and the poll both read it by name. And the fleet guide, the gate paragraph, the drivers guide and the transport table stop saying snmp has no verdict, that the rungs below always keep running, or that snmp is a held connection.
The line protocol as datagrams over udp (#1037)
Section titled “The line protocol as datagrams over udp (#1037)”The second slice of the protocol wave (#1076), under the architect’s approval of its decisions 5
and 7a (ADR-0163).
udp is built in the transport registry, stateless, its rung a request. The datagram primitive,
collection.DatagramConn, is one bound, unconnected socket per endpoint with the error queue on
(IP_RECVERR, drained on every report): an exchange takes its reply by the declared shape with the
held line connection’s precedence, re-sends a lost datagram within the one timeout, reads a closed
port refused, and counts and drops a datagram from any other source. The driver spec gains
request.retries (udp only, 0 to 5; 2 for a poll and the request rung, none for a command unless
its binding declares them) and the listen-port input (udp, a port), which the attach derives into
the endpoint’s params, so editing it moves the connection fingerprint and a bare endpoint’s is
checked at write; a udp driver must name its request rung and may declare only terminal replies in
its session block. The node holds each udp endpoint’s socket beside its sessions: the request rung,
polls, commands and the arm conversation leave from it; the rung lands endpoint-responsive and one
udp-response-time per answered probe (writer class node-probe, ADR-0161), never tcp-open or session-state, and decides
the verdict where no port can be opened; a terminal reply gates the transport rung; a recovered rung
re-arms the listeners; another source’s datagrams are self-logged once per tick. A command delivery
carries its binding’s retries. The console’s breakdown lists a udp endpoint’s request rung (the
layer its verdict follows), and its ladder hint and why-line teach it. The
simulated panel serves NVP as datagrams (nvp-udp, 51327, per source address over the shell loop),
dropping a share of datagrams each way, seeded per datagram so a lossy run repeats; the dev fleet
attaches the new official newtron-nvp-udp to the huddle panel.
Proven over real sockets (udp_integration_test.go: the shaped answer beside a push, the error
shape, retries within the timeout, a command sent once, a refused port, a stranger counted, a
terminal reply, the listen port), on the node against a real component socket (datagram_test.go:
the rung and its verdict, refused, the gate, a poll through retries, commands once unless declared,
arm at open and on recovery, the foreign flush, rebinding), against Postgres (udp_test.go: the
listen port as a fingerprint input, a bare endpoint’s check, a delivery’s retries), and end to end
against the simulated face dropping 30% each way (run_udp_test.go), passing with two runs at once.
The layered-gate fence’s udp.open, pingGates and per-check toggles retire into the ladder.
The review’s fixes, each with a test that failed first: a gate carried back to a restarted node now
holds the arm too, which had subscribed to the component that refused (the first answered rung after
the gate lifts arms); an exchange whose answer came back too soon after its last send to be that
send’s reply leaves a ghost absorbing repeats of it, since a slow component’s surplus reply had
answered the next ask (a command took a poll’s reply), while a retry loss caused leaves none (the
re-review caught a first cut that starved a command’s identical ack), and every udp request now
declares its reply’s shape; udp-response-time is timed from the
first send, since a reply may answer any send and the later send had read a slow component fast; an
arm line is sent once, never once per retry; a gated request rung reads refused beneath the gate in
the console, not unanswered; the tests pick no released port (a privileged port is the closed one,
the end-to-end test reads the node’s own port back from the panel, a listen port is picked again on
a collision); and the nodes and simulation pages stop calling udp Design and an echo. Two catalog
entries record the classes: connectionless-late-answer and side-send-skips-gate.
Four fixes ported from the duplicate #1105, each test-first: one listen-port reading for the write
path and the node (driver.ParseListenPort; the write had taken 51400.0, which the node refused,
and refused null and "", which the node read as unset); an error-shaped answer timed, since it is
the component’s answer; the reachability read serving the request rung as a request layer, timed
by udp-response-time only while answered, so the panel’s row carries its round trip; and the
breakdown’s label column widened so its labels align.
The logs and the generated spec stop conflicting on every merge (#1095)
Section titled “The logs and the generated spec stop conflicting on every merge (#1095)”The build log, the decision log, and the adversarial-review anti-pattern catalog are fragment
directories now (ADR-0162):
398 build-log entries, 159 decisions, and 27 anti-patterns became one file each, split by a one-time
script that proved the files rebuild the old text byte for byte. The pages carry a directive
(::build-log, ::decision-index, ::decision-log) that docs/src/plugins/remark-fragments.mjs
expands before the parse, from the shared renderer in fragments.mjs; the docs loader
(fragments-loader.mjs) folds a host page’s fragments into its cache digest and, in dev, re-announces
the page when one changes; scripts/check-fragments.mjs renders every directory before astro build
(refusing a directive line in an entry body, the one way an entry could fail a remark plugin), since a
render error on a .md page is swallowed, and scripts/check-fragment-pages.mjs proves afterwards that
every index anchor names a heading on the built decision log and the build log carries a heading per
section; and the full-text llms-full.txt expands the same directives. The build-log page renders byte-identical HTML. The decision log’s entries render
byte-identical, and its index, generated from the files, is one table again: blank lines had cut it
after ADR-0095 since #679, leaving 64 rows as pipe text, and the renderer now escapes a bare | in a
cell, which would otherwise have cut ADR-0102’s summary short.
The docs lint follows the files: TestDecisionsFormat reads the directory (the index fields, Date and
Status in the body, one file per number naming both files on a collision, no gap), TestBuildLogFormat
and TestAntiPatternCatalog check the entry shapes, TestLogsStayFragments fails an entry written into
a page or the catalog’s old single file, and walkDocs reads the entry files so the path, table, and
env lints keep their coverage of the history. make adr-renumber (cmd/adrrenumber) renames a decision
and rewrites every ADR-NNNN mention, #adr-NNNN- anchor, and file name in any text file (docs, code
comments, .proto, skills), refusing a taken number; with FILE= it repairs a tree that already holds both
decisions, rewriting only the lines git blame gives to the commits after SINCE. api/openapi.json is written pretty-printed with
sorted keys (canonicalJSON), semantically identical, with the typed client, the CLI tree, and the
settings schema regenerating unchanged, and .gitattributes marks the generated artifacts. Proven
test-first: the renderer’s node tests (ordering, the two entry forms, the index anchors and escaping, the
directive splice, a collision), the Go lints and the renumber tool over fixture trees, and the canonical
JSON writer. Every procedure that wrote the old files now teaches the new one (/record-decision,
/ship-slice, /run-feature-loop, /autopilot, CLAUDE.md, docs with everything).
a calc input reads its key over a time window (#1142)
Section titled “a calc input reads its key over a time window (#1142)”The first cut of #1065, the rolling figures a calc rule could not compute. A component rule’s input
gains window_seconds (1 to 3600, on calc_rule_input): its alias binds as the key’s samples in the
window, oldest first, each a record with value, at (unix seconds; an expression environment holds
no time.Time) and instance (internal/rules/calc.go). The list functions fold a list of records
with a value field by that field, one rule in internal/expression/lists.go (foldElem, asList),
so avg(rtt) over a 300s window is a 5-minute mean with no new function; the predicate forms and len
read the records as they are.
The read walks the key’s in-window samples on the component through the series index and keeps the
newest 1000 (readCalcWindow, internal/storage/calc_eval.go). A window moves with no new sample, so each
computation records when its oldest sample leaves the window (calc_rule_state.window_due_at), and the
calc tick marks the owners whose due time has passed since, one statement a mark so it joins no lock
cycle, and passes over a rule a write holds (markCalcWindowsDue; the review found its foreign key
check could otherwise deadlock with a rule edit’s reset). A window outside its bounds, or on a system rule, is refused at write on
the input’s field.
Deferred to #1143: a sample’s outcome and rate (they need #1063’s observation model), system-rule
windows, the console’s window field and completion, a cadence-derived cap, naming a truncated window,
an arrival-time window, and the backtest.
A command’s status is readable from issue to settlement (#1155)
Section titled “A command’s status is readable from issue to settlement (#1155)”A command now reads back whole
(ADR-1155):
GET /components/{name}/commands and /commands/{id}, gated command:read on the component tier
with the read and action split, each command carrying a time per transition, its in-flight phase
(queued, delivered, awaiting the reply or the observation, derived on read), its settle mode, the
endpoint, node and driver that carry it, the evidence and a reason, and its issuer. One migration
gives the row what it lacked: the reply, a reason, settled_by, the observed sample, and the
settled_event_id of the lifecycle event its terminal status now writes (command-settled,
command-failed, command-timed-out, joining command-issued in command-lifecycle). Every terminal
path (the issue’s zero window, the execution report, an observation, the sweep) goes through one
recordOutcome (internal/storage/command_outcome.go), which builds the reason from where the command
stopped.
The reply is masked before it is stored, by a new pure primitive, internal/redact: the dispatched
endpoint’s secret fields in the forms a component commonly echoes them (raw, url-escaped, JSON-escaped
any way, html-escaped, base64, any case, a basic login’s authorization value) and any pair, element,
header or config keyword the text labels a credential; the node’s http scrub now calls it too. It fails
closed: when the server cannot read the endpoint’s secrets, the reply and the error are withheld, and
the confining stamp runs before any secret is read. Lifecycle events name the command and carry no
evidence, so the evidence stays behind command:read, and a one-time backfill retires events of the
three newly reserved names that no command wrote.
The issue gains wait and wait_timeout (--wait on the CLI), bounded in time and to 64 waiters (4
a principal), a 429 refused before anything is issued, and it judges the command at its deadline so a
timeout answers at the window.
The console’s component Activity tab carries the command history above the events, each row opening
in place to its arc (each leg timed from the issue), its evidence and what carried it; Issue a
command offers the commands the component’s drivers bind and raises a toast, a new primitive
(lib/toast, drawn by the shell’s Toaster), that follows the command live and opens its row.
Proven at every tier: the redact forms and the phase, settle-mode, timeout-reason and stored-text
functions as unit tests; the read model against Postgres (a reply-settled arc, the failures and their
reasons, a never-answered command timing out with where it stopped, an observation-settled command’s
sample, a reply masked of the endpoint’s login, a reply withheld when the server cannot read that
login, a refused report storing nothing, a legacy error read masked, the cap, the filters, and the
backfill retiring a forged outcome event); the routes end to end (the
reads, the scope split, the wait answering timed out at its window and in flight at its timeout, the
waiter limits refusing before anything is issued); and over a real node and the simulated Kestrel bar
(run_command_status_test.go: set-volume with wait settles over the websocket with the answer frame
as its evidence, and over https with the bar’s confirmation, each on the component’s timeline).
An adversarial review with a security lens (reply masking, scope on the reads, the wait’s limits)
found the reads’ scope and the wait’s bounds sound and shaped the rest, each fixed test-first: the
masking failed open when the server could not unseal the endpoint’s secrets while its node still held
them (now withheld), it missed common forms and labels (now any case, base64, lowercase hex, ASCII
JSON, every quote spelling, config keywords, elements, cookies, and an object or list value masked
whole), the report read the endpoint before it was confined, the three new reserved names inherited
rows nobody’s command wrote (now retired), and the lifecycle event’s message carried the evidence
past command:read (now it names the command only).
A driver emit lands on any lane, events and log lines included (#1145)
Section titled “A driver emit lands on any lane, events and log lines included (#1145)”The first part of #1145, the primitive the server ingress epic (#1146) and the files epic (#1147)
both consume (ADR-1145).
A driver’s emit now resolves against the event catalog beside the metric and property ones
(internal/storage/driver_attach.go), an event emit carries a message and attributes, and a log
line emit, which names no key, carries its message, severity, facility, source and attributes
(internal/driver). Any emit may read its time out of the payload in one of five layouts, clamped
to arrival past five minutes; a log line is never lost to an extract that misses, which faults
instead. internal/logline holds the one severity vocabulary (RFC 5424’s eight levels and their
aliases) and the 16 KiB caps, and the Storage Gateway applies both to every log_line write.
On the node, an event rides the batch’s event lane and a component’s log line a new task_logs
field, never the self-log lane; a listener’s unmatched: log lands what nothing claims, and a plain
poll fires its occurrences on change. Ingest files a task’s lines in log_line on its component
with the collecting endpoint as their instance and the server’s receipt beside their own time
(received_at). The component and system log reads filter by a severity threshold and a source and
list the window’s sources; the console’s component Activity tab carries the Logs panel beside the
events, with the filters, and the system workspace’s Logs section takes them too.
The simulator’s Newtron panel pushes its diagnostics log and its scene changes on the NVP face, and
a simulated route may declare named events, which the Kestrel bar’s dial and disconnect routes use
to report a call starting and ending with its id. The shipped newtron-nvp and kestrel-api
drivers map them. Proven by the spec’s validation and the interpreter’s tests, the node’s batch and
router tests, the gateway’s tests against Postgres, and end to end (run_lanes_test.go: an input
push lands as the property and an input-changed event, a diagnostics line as a warning log line
on the component, an unclaimed push raw, none of them in the node’s self-logs; a call lands as
call-started and call-ended with its id).
a driver spec can be validated, previewed and run now (#1163)
Section titled “a driver spec can be validated, previewed and run now (#1163)”Slice 2 of epic #1161: three routes, each a CLI command and an MCP tool, for building a driver
against the real component
(ADR-1163).
POST /drivers:validate checks a spec as a save would and writes nothing, answering every finding it
can pin down per function (driver.Findings), the first the fault a save names.
POST /drivers:preview runs a spec’s polls once through the node named and stores nothing: the
samples each poll extracted, each emit that did not locate, and a bounded excerpt of the raw answer
(the new Capture hook on a driver poll), masked of every secret the preview used.
POST /endpoints/{endpoint}/polls/{poll}:run runs an attached endpoint’s poll now on the node that
holds it and lands its samples, the API and CLI half of #1160.
Both runs ride one new primitive, the on-demand node run: the server requests on og.v1.run.<node>
and the node answers once, a preview on the request’s goroutine with no held session, a run now on
the run loop so it borrows the endpoint’s session and honors its gate (a gated endpoint refuses with
the gate’s reason, nothing sent). The storage side plans each run in one audited transaction
(PlanDriverPreview, PlanEndpointRun): a preview’s secrets must be ones the caller may reveal.
driver:preview and endpoint:run are operator grants; runs are bounded by a stricter in-flight
class (16 across the server, 2 per caller). The permission lint learned that the label taxonomy
(run:preview) is never a permission claim, now that a real preview verb exists.
Proof: a node test drives the whole flow over the real wire against the simulator’s digest-guarded
display (validate a broken spec to its finding, preview the fixed one with nothing landing, run the
attached poll now and watch it land, then a wrong password gates the endpoint and the next run is a
409 naming the refusal); API tests hold the permissions, the masking, the findings, the 503 without a
bus and the 429 past the bound. The driver-preview tape demos it. The adversarial review caught two
blocking defects, each fixed with its test: a run now skipped the change memory a scheduled run keeps
(so it could land an event twice; the new side-run-skips-change-memory catalog entry), and a
preview’s excerpt was masked after it was cut (a secret at the cut, or a basic header’s value, could
survive; it is now scrubbed on the node, credential and all, before the cut). It also tightened a late
run now (dropped once its budget passed), the reply’s permission window, a stream’s first attempt,
the 403 for a scoped preview, and validate’s findings for a command on a held-session transport.
A PR records only the demos it tags, and carries its clip (#1180)
Section titled “A PR records only the demos it tags, and carries its clip (#1180)”run:demo now records exactly the demos a PR body tags in its Demo section (demo: <id>, or
demo: none (<reason>)), plus any tape or walkthrough the PR adds or changes, and nothing it did
not name (ADR-1180).
The parse and the selection are pure (web/e2e/walkthroughpr.mjs demoTag and selectDemos),
and demo-tag.yml lints the tag on every PR. Each selected demo records on a runner and a stack of
its own; one job combines them, and the publish job writes each demo’s clip (GIF or animated
preview, and its scrubbable link) into the PR body between markers, keeping the comment as the full
record. The splice is an inline program of the workflow, played against fixtures by
web/src/demo-workflow.test.ts, which also holds the token boundary against the workflow file. A
nightly run on main records every demo and opens, updates or closes one issue. The terminal
recorder pulls its pinned base images while the stack builds and copies a pinned static jq
rather than installing one.
an MCP server whose tools are generated from the API (#1162)
Section titled “an MCP server whose tools are generated from the API (#1162)”The first slice of epic #1161: omniglass serves MCP, so an operator’s own agent (Claude Code, or any
MCP client) drives the fleet through the same API every other client does
(ADR-1162).
An operation is exposed by a stamp at its registration in Go (Extensions: mcpExposed()), and
cmd/mcpgen, beside cligen in make gen, generates the tool catalog (internal/mcp/catalog_gen.go)
and the MCP tools reference from api/openapi.json. The first catalog is 46 tools:
the reads of places, systems, components, nodes, the catalog, endpoints, secrets (masked),
reachability, samples, events, logs and a command’s status, and the writes an agent setting up monitoring needs (create a
component, an endpoint, a secret or a driver, edit and retry an endpoint, issue a command). One pure
rule (tooldef.Annotate) annotates each tool read-only, destructive, idempotent or open-world from its
method and gate, and a stamp can only add caution.
The server is mounted at /mcp over streamable HTTP, and omniglass mcp relays stdio to it for an
agent that launches a local command; omniglass mcp tools and omniglass mcp call are a thin stdio
client of that relay. Both transports answer only to a bearer token the API accepts, and every tool
call runs its route through the same router with that token on a fresh request context, so the gate,
the scope and the same-transaction audit row are the route’s own. The relay sends the token only to
the server it was given and follows no redirect, and renews its session when the server has let
it go (an idle timeout, a restart), resending only a call the server refused before running it. A
route that panics behind a tool answers that call 500 instead of crashing the server.
audit_log gained channel and client: an MCP call’s row reads channel: mcp and the client’s
declared name, set on the request context by the dispatch so no direct caller can claim one, and
GET /audit-log returns both. Minting and revoking a token now write credential audit rows, which
they never did, since a token is how an agent is given access: the bootstrap token’s mint (with no
actor) and a logout that presents a token as its session included. The CLI reference generator learned to
document a command group that is itself runnable, which omniglass mcp is.
Proof: an e2e test builds the binary, runs the server, a simulator and a node, and drives omniglass mcp tools and omniglass mcp call over stdio, reading a simulated component’s reachability verdict
and writing a secret whose audit row names the user and the MCP channel; API-level tests drive a real
MCP client over HTTP through the gate (a viewer’s write refused), the scope (a component-scoped
principal sees its component alone), revocation mid-session and impersonation. The mcp-server tape
demos it. The adversarial review’s security lens found the auth, the channel guard and the relay’s
token handling sound; it caught a 70 MB generator binary about to be committed (now ignored, with
the older stray cligen filed as #1174), a panic path, the relay’s lost session, two annotations
too weak (retrying an endpoint is destructive; the endpoint writes and issuing a command are
open-world), and two token paths the audit missed, each fixed with its test.
every operator resource answers to its name (#1133)
Section titled “every operator resource answers to its name (#1133)”Every route that took only a uuid now takes the resource’s name as well
(ADR-1133).
An endpoint is <component>/<endpoint name> on its existing /endpoints/{endpoint} routes and its
:retry; a secret or a variable is its name, or <owner>/<name> with $platform for the
install-wide tier; a file is its filename; a principal group is its name; a group member and every
/principals/{id} route take a username or a service account’s name; and a grant’s scope_id takes a
name or dotted address, stored as the uuid. Secret and variable names were already unique within
their owner on every tier, so no migration rode along.
One primitive file holds the resolvers (internal/storage/name_ref.go), each built from the
component resolver’s own lookup (loadByRef, loadByRefWithin) and the existing scope checks:
candidates are narrowed to what the caller may read before ambiguity is judged, the resolve runs in
the request’s transaction and yields the uuid, and the route’s read-then-action split, permission
tier and audit row then run on that row unchanged. A name nothing visible answers to, or several do,
is ErrUnresolvedRef, a 404 naming the reference and listing each visible match in a spelling that
resolves. Two latent defects went with it: a non-uuid reference on these routes reached Postgres as a
uuid cast and answered 500, and a secret or variable update wrote back through the reference it was
given rather than the row it resolved.
The generated CLI shows a path parameter’s OpenAPI example in its help and sends every positional as
one path segment (a slash and a colon both encoded), so omniglass endpoint retry 'boi.17c.415a.$comp.display-1/https' and omniglass secret update demo-panel-login --fields ... work
as printed. The guides and the CLI guide now type names, the http-logins tape rotates its secret by
name, and a name-addressing tape demos the slice end to end;
TestDocsCarryNoHardCodedUUIDs and TestDemoScriptsCarryNoHardCodedUUIDs keep it that way, the demo
half held to the tape linter’s own rule (any uuid at all, comments included). The console
still addresses everything by uuid (ADR-0089), so it moved only where a path parameter was renamed.
An adversarial security review found the authorization sound (every name narrowed to the caller’s
read scope before ambiguity, the existing split run on the resolved row) and six edges, each fixed
test-first: the principal routes resolve a name only for a caller who may list the directory, so a
scoped admin cannot probe usernames or service names; the candidate narrowing moved into SQL, a
constant number of statements however many rooms share a name (TestNameRefCostIsFlatInCandidates);
a uuid-shaped or dot-segment filename is refused at create; the CLI refuses a dot-segment positional;
a secret or variable write answers with the owner it landed on; and the break-glass set-password
revokes sessions by the human it rotated (ResolveUsername), never a same-named service account. A
qualified name through the chart’s Traefik ingress is unverified (#1138).
Proven in storage against real Postgres (each form, ambiguity judged in scope, an out-of-scope row
refusing byte-for-byte as an absent one, the write split and the audit key unchanged), over HTTP (the
same through every changed route, and a scoped caller’s refusal leaking no uuid), and end to end
through the CLI binary’s own commands against a live server (internal/cli/name_address_test.go).
every PR’s demo plays as an animated terminal recording (#1132)
Section titled “every PR’s demo plays as an animated terminal recording (#1132)”A demo is now one concept with two recorders
(ADR-1132):
a terminal demo, a VHS tape under scripts/demo/, for CLI and API work, and the walkthrough it
already was for a console flow. Every PR demos its feature, and /ship-slice and the PR template
carry a Demo line it refuses to go without; the demos page (the walkthroughs
page, renamed) teaches both.
The terminal recorder (web/e2e/tapes.sh) brings up the walkthrough stack, builds VHS’s own
image, pinned by digest, with jq, a prelude and this tree’s omniglass binary added
(web/e2e/tape/Dockerfile), and follows the stack’s container logs into files a tape can read.
Each tape is held to the house rules and wrapped in the house settings
(web/e2e/tapelib.mjs: only the commands a demo types and waits on, every Enter waited on, no
uuid typed, one size, font, theme and typing speed), played on the stack network with the CLI
pointed at the stack, and judged: the prelude lists every command the tape typed that exited
non-zero, and any listed command, a Wait that ran out, a missing GIF or MP4, or a recording over
budget fails it, naming the tape and the cause. In a Hide block, demo_until and demo_hush
wait and look up unseen and erase their own lines, so a demo’s waits cost the GIF nothing.
make demo ID=<id> records a demo of either kind (web/e2e/demo.sh dispatches by id), and
make test-demos proves every failure path against the real stack.
The pipeline is the walkthrough one, widened rather than doubled: demo.yml (renamed from
walkthrough.yml) runs on run:demo, and still on run:walkthrough, records the demos the PR
names (every tape when it changes the terminal recorder, every walkthrough when it changes the
console), and its publish job commits them to the same refs/walkthroughs/pr-<n> under the same
prune (demo-prune.yml). One comment lists every demo, a terminal demo’s GIF inline with its MP4
linked through jsDelivr, beside the walkthroughs; the upsert finds the walkthrough comment’s
earlier marker too, and now matches a marker only at the start of a bot comment.
#1131’s scripted session, http-logins.sh, became the first tape, http-logins.tape: the panel and
the display by dotted address, the ids the log grep needs looked up by name unseen, the polls’
waits hidden, and only fields that hold still on screen.
Proven in web/src/tape.test.ts (the rules, the wrap, the verdict, the manifest, and every tape in
the tree), web/src/walkthrough-pr.test.ts (the selection across both recorders, a terminal demo’s
evidence files, and the one comment), and make test-demos against the real stack (a passing tape,
a command that fails, an unseen wait that runs out, a command stuck past its Wait, and an
over-budget recording).
http holds a server-sent events stream (#1038)
Section titled “http holds a server-sent events stream (#1038)”The third slice of the second protocol wave (#1113)
(ADR-1038).
An http session may declare session.stream, a GET held open, and listeners claim its events by
the event name, a prefix or regex on the data, or a JSON field match (internal/driver/message.go).
The held connection’s seam widens from a line to a message, so one router serves lines and events.
The collection engine’s stream dialer (internal/collection/httpstream.go) is the session machine’s
staged dialer: it connects (and runs the handshake over https), logs in first when the session
declares a login, sends the stream request with the scheme’s credential, the login’s session, the
cookies and the Last-Event-ID, and judges the answer’s head; the reader feeds the WHATWG
event-stream interpretation (internal/collection/sse.go). A drop resumes from the last event id
after the server’s retry, held to the backoff’s bounds (the last id carried across a reconnect that
saw no event), and the event a resume is sent again first is dropped; an adversarial review shaped
the bounds on a held answer, an id, an oversize event and the head. The
node holds an http endpoint’s stream as its session, sharing the endpoint’s learned auth and a
resume that outlives a recycle; 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. The registry’s http and
https read held.
The simulator’s http face may declare events, every change to its named paths one numbered event
replayed from a Last-Event-ID, 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 that stream beside its polls.
Proven by the event-stream interpretation’s tests, over real sockets (events in order, a resume
after the server’s retry with nothing lost or twice, a refused credential one attempt, digest
across a reconnect, a form login first and again on a lapse, an uncredentialed stream proving no
credential), in the simulator’s face, and end to end (run_http_stream_test.go: a change on the bar
lands within a second with no poll; a dropped stream recovers and lands each change once; a wrong
password reads rejected with its reason, sent once under the fingerprint, across a restart; the fix
brings it back; a stream behind a form login logs in first).
http logins keep a session and digest answers its challenge (#1114)
Section titled “http logins keep a session and digest answers its challenge (#1114)”The second slice of the second protocol wave (#1113), under its decision 3
(ADR-1114).
An http session declares session.login: the login dialog #1061 shipped, its steps requests naming
only secret fields, a capture of the last answer’s values through the one extraction primitive,
the headers that send them, an expiry, a login path and an expired match
(internal/driver/httplogin.go, every field validated at write and a fingerprint input). digest
joins the schemes on basic-auth.
The collection engine (internal/collection/httpsession.go) runs the login on a fresh cookie jar,
keeps what it opened in an HTTPAuthState, renews before a declared expiry, and on a lapse (a 401,
a redirect to the login page, the expired text) logs in once more and replays once; a lapse right
after a fresh login, or a refused login, is a terminal auth held for the life of the state, so it
is tried once, and three logins in a row that draw no verdict after their secrets were sent spend
the login budget. Digest (internal/collection/digest.go) answers MD5, SHA-256 and their -sess
forms, holds the challenge and answers a stale or quietly rotated nonce afresh; a 401 it cannot
answer never sends the credential. The node keeps one state per http
endpoint, in memory alone, shared by its polls and commands and dropped when the fingerprint moves
or a terminal refusal lands; a command never rides to an address its worklist does not name.
Everything the state holds is scrubbed from reasons, errors and URLs, a jar keeps cookies for a
login session alone (bounded), and an adversarial security review’s findings shaped the bounds on
an expiry, a cookie, a challenge and a response’s headers.
The simulator’s http gate gains form, token and digest faces, with sessions the console can expire
through a face’s expire_path; the Newtron panel’s https API now signs in with a form and the Boreal
display’s web admin answers digest. The seed ships newtron-panel-web and boreal-edge-web.
Proven in the driver (validation, refusals, rendering, headers, expiry), in collection against the
RFC 7616 vectors and over real sockets (httpsession_integration_test.go: one session across
requests, one re-login on a lapse, a wrong password tried once, a renewal before expiry, concurrent
requests sharing one login, digest with a stale nonce, nothing held in any reason or URL), in the
simulator (each face, the console’s trust and expiry), in the fingerprint (every login field moves
it), and end to end (run_http_login_test.go: form and token logins keep one session across many
polls and log in exactly once more on expiry; digest answers its challenge, a stale nonce and a
command; a wrong password reads rejected with its reason after exactly one attempt across a
restart, and the secret fixed in place brings each back).
No help text ever shows a credential (#979)
Section titled “No help text ever shows a credential (#979)”Every command’s --help printed the live bearer token. The root’s --token flag took
OMNIGLASS_TOKEN as its default when the tree was built, and cobra prints a flag’s default in
every help page, so (default "ogp_...") sat under every command, ready to be pasted into a
ticket; the synthetic user (#961) found it on five missions running. --server had the same
shape, so a server URL carrying a password in OMNIGLASS_SERVER leaked the same way, and the
generated CLI reference was a function of whatever the person running make gen had exported.
The connection flags now resolve at run time (flagOrEnv in internal/cli/api_hooks.go): the
flag when given, an explicit empty value included, else the variable, else the literal default.
Their defaults are fixed literals, and help names $OMNIGLASS_TOKEN and $OMNIGLASS_SERVER as the
sources instead. The CLI guide teaches the order and why help is now
safe to paste.
Proven with the token in the environment, not in a flag: a walk of all 390 commands renders each
one’s --help, help <command>, completion of its flag names and of the --token value, plus
the four completion scripts, and none carries a value any registered variable supplied
(TestNoHelpShowsACredential); a guard fails on any flag whose default, usage or no-value default
carries one, and on any os.Getenv in the command package that would dodge that sweep
(TestNoFlagDefaultReadsTheEnvironment); the reference renders byte-identically with every
variable unset and set, and the committed page holds nothing token-shaped (cmd/docsgen). The
token still authenticates from the environment, a flag still wins over it, in process and against
the built binary and a live server (TestCLIEndToEnd).
The security review found the same credential leaking through error paths the fix had not
touched, each fixed with a test that failed first. url.Parse quotes its whole input, and its
detail quotes pieces of it (the port it read, a bad escape), so a password with a reserved
character printed through the parse error alone: on every generated command for
OMNIGLASS_SERVER, and for OMNIGLASS_DSN on every command that migrates first, a crash-looping
server writing it to its logs on each restart. One primitive, redact.ParseURL, now parses the
CLI’s server URL, the node’s claim URL, the migration DSN and the Gateway’s URL-form DSN, naming
the value and withholding the detail. A claim that could not reach its server wrapped the raw
URL around net/http’s already masked error, which sim run logged on every retry; it now carries
the masked one alone. The node variables’ reference entries stop calling the token a flag
default.
The review’s second pass found two more, fixed the same way. A password whose first reserved
character comes first, or after digits alone (operator:/abc...@host), parses without an error
but wrongly: the parser takes operator for the host and the rest of the password for the path,
nothing masks it, and the dial error printed it while the request carried the token toward a host
named after the user. redact.ParseBaseURL refuses a server base URL with an @ past the host, a
query or a fragment, which is where every such misread lands, and the CLI and the node claim parse
their server through it (the base only, so a typed positional may still carry an @). A third
pass caught curl’s user:pass@host habit, with no https://: the parser names the scheme after
the user and keeps the rest opaque, so a base URL also needs http or https and a host. And pgx
masks a DSN’s user:password but not a ?password= parameter, so a parameter pgx refuses after
the migrations accepted it printed the whole DSN; the Gateway now reports pgx’s reason without the
DSN.
Omniglass receives webhooks and maps them to any lane (#1024)
Section titled “Omniglass receives webhooks and maps them to any lane (#1024)”Slice 1 of the server ingress epic (#1146,
ADR-1024).
webhook is the registry’s first push transport (internal/transport): an endpoint on it is
hosted by the server, has no reachability task or ladder, and reads last heard. Creating one mints
its token, a sealed webhook-token secret on its component (internal/storage/webhooks.go), and
POST /endpoints/{endpoint}:rotateToken mints it anew. A webhook driver declares its scheme
(hmac over a signed timestamp, token, basic, or none, which reads unsigned), the
signature’s shape, a delivery id and a verification challenge; its listeners claim a post by its
body or a header and read a json, xml, form or text body through the one primitive
(internal/driver/webhook.go).
The listener primitive’s core (internal/ingress) is pure: the schemes’ constant-time checks,
failing closed on a missing or blank credential; the replay window and the per-endpoint delivery
memory; token buckets bounded under a flood of sources; listeners-first routing to a batch that
lands the raw post as a log line unless a listener says log: false; and the tally of refusals and
unknown senders. The server hosts it at POST /webhooks/{token} (ungated by necessity, beside
POST /nodes:claim), answering 202 once published, 401, an identical 404, 413, and 429 with
Retry-After, and publishes on the push lane, whose writer admits only collected keys. Refusals
count onto the endpoint’s read; posts to an unknown token land in the unclaimed-source inbox
(GET /unclaimed-sources, node:read), let go once the sender’s posts land on an endpoint. The
console’s endpoint row shows a webhook endpoint’s scheme, last heard and refusals, with its URL
revealed and copied under secret:reveal.
The simulated UCC service takes a webhook subscription on its admin API and posts each meeting’s
start and end signed, with a delivery id, its event header, and faults that post a wrong signature,
a stale timestamp or one delivery twice; the shipped ucc-webhook driver maps them to
call-started, call-ended and call-state, and the dev fleet carries the service with its
webhook endpoint. Proven by the spec’s validation, the ingress core’s tests, the face’s posts
checked by the server’s own check, and end to end over the real wire
(internal/api/webhooks_e2e_test.go).
The websocket transport carries messages and answers by id (#1034)
Section titled “The websocket transport carries messages and answers by id (#1034)”The fourth and last slice of the second protocol wave (#1113), which completes the epic
(ADR-1034).
websocket and wss join the registry as held line transports, wss over the shared TLS primitive
with its key pinned as tls and https pin theirs. A request is a frame (a line, or a JSON body
rendered injection-safe), and a reply may correlate by a field: the node mints a random id into
it each time it sends the frame, and the answer is the frame carrying it back
(internal/driver/websocket.go).
The collection engine’s websocket dialer (internal/collection/websocket.go) is the session
machine’s staged dialer: it connects (and runs the handshake over wss), logs in first when the
session declares an http login, and sends the upgrade with the scheme’s credential, the login’s
session and its cookies through a bounded head; a 401 or 403 to it is a terminal auth. A reader
bounds each frame, a router owns every data frame written and routes what it reads by the line
session’s precedence, and a pinger keeps the socket proven. The node holds the endpoint’s socket as
its session, its upgrade sharing the endpoint’s learned auth, binds each correlated poll and command
at execute, and probes it as http and https are probed. An adversarial review with a security lens
(upgrade auth, origin, frame limits) found three blocking faults, each fixed test-first: a frame
read just before the component’s close could be lost (now routed in order before the connection
dies), a re-probe could only replay the gate (refused at validation), and a status-scoped terminal
rule judged a frame’s text (it now judges the upgrade alone).
The simulator gains a websocket face, a JSON control socket behind its own auth with subscribe,
get and set and a console drop; the Kestrel bar serves one over wss on 9443, and the seeded
kestrel-ws driver holds it: the subscription armed on connect, the pushes landed by listeners, the
polls and the set-volume and set-mute commands answered by their ids.
Proven by the driver’s validation and correlation tests, over real sockets (an arm on connect, an
exchange answered by its id past a push and another id’s answer, a drop recovered and armed again, a
wrong credential refused once whether 401 or 403, each scheme and a form login, the keepalive, an
oversize and a binary frame dropped, a pinned key, the head bound), in the simulator’s face, and end
to end (run_websocket_test.go: a change on the bar lands within a second, a command settles from
the answer to its id, a drop recovers and arms again, a wrong password reads rejected after one
upgrade across a restart, and a replaced bar’s key is held until :retry trusts it).
A capacity refusal names only systems the caller can read (#1216)
Section titled “A capacity refusal names only systems the caller can read (#1216)”Hardening on the standard role write path. Lowering a standard role’s capacity is checked against every conforming system, and the refusal used to name the worst-exceeding one whatever the caller’s scope. It now names the worst-exceeding system the caller may read, and when the caller reads none of them it says only that a system it cannot read is in the way, with no name or count. The check stays fleet-wide, so nothing a narrower caller could not see is allowed through; only the refusal’s wording follows the caller’s read scope. It reuses the redaction #504 gave the role-name collision on the same route, now one helper for both refusals.
A map marker reads like its row, and anchors inward at an edge (#1074)
Section titled “A map marker reads like its row, and anchors inward at an edge (#1074)”Each occupied position on the system map is now its component type’s icon in its verdict’s hue, with
the component’s label under it, read through one member context the Components rows also use, so a
marker and its row cannot disagree: the same display label, the same glyph, the same verdict. The
role, product, health word, and any alarm ride a tooltip on hover or keyboard focus; an empty position
is a dashed ring named for its role, and it takes focus too. A marker near a side anchors inward and one
near the bottom puts its label above the icon (markerAnchor in lib/system_map.ts), which eases
#1072’s edge clipping at desktop widths; a narrow map can still spill a label (the thresholds are
fractions, the label is pixels), and label collision in a crowded room stays open on #1072. Markers are
keyed by their declaration slot, so a health poll updates them in place rather than remounting them
under an open tooltip. verdictHue replaces #1071’s verdictDot and the outline’s own hue map, so one
primitive tones every glyph that stands for a verdict
(ADR-0154).
This work first merged on 2026-10-23 as #1075, but into its stacked base branch after that branch had
already landed, so it never reached main; this entry records the re-land. Proven by the component tests
that pin a marker’s label and glyph to its row’s, its verdict hue across a polled read, the tooltip’s
detail on focus, the marker node surviving a poll, and edge markers anchoring inward, plus unit tests
of verdictHue and markerAnchor.
A push is fenced on the component it names, and its instance names an endpoint (#752, #456)
Section titled “A push is fenced on the component it names, and its instance names an endpoint (#752, #456)”POST /telemetry:push resolved its owner under the telemetry:push scope alone, so every refusal
was a 404, and a ruling recorded on #752 would have removed that fence altogether.
ADR-0752
keeps the fence and moves the route onto ResolveActionTarget, the split every other route acting
on a component target takes, with one difference: push is the stronger grant, so its own scope is
enough to see the target, and a push-only integration with no component:read pushes to exactly
the components it is granted (TestAPushOnlyIntegrationPushesWhereItIsGranted). A miss outside
both scopes is a non-disclosing 404; readable but not pushable is a truthful 403. telemetry resolves on the component tier alone, the
command:issue precedent, since a location- or system-tier grant could never reach a component’s
chain. The matrix in authz_matrix_test.go drives the split through the route as push-telemetry.
The push lane now holds an instance to what ADR-0456 says it is: the endpoint an observation came
through. A push naming an instance no endpoint on its owner carries is refused whole with a 422 that
names the instance and lists the owner’s endpoint names, at most ten and then a count, so a series no
observer stands behind is never written. The endpoint names are read once per batch, only when an
instance is named; TestPushCostsOneScopeCheckPerBatch counts statements at the pool and pins a
batch of forty-five observations to exactly the statements a batch of three issues. The
reconcile-instances demo now observes its display through two of its endpoints, and shows the
refusal first.
A telemetry batch lands once, however many times it is delivered (#311, #453)
Section titled “A telemetry batch lands once, however many times it is delivered (#311, #453)”The delivery half of telemetry integrity for 0.1.0 (#825, #430). A sample a node collects is now
written exactly once as an outcome, and a caller who gets a 202 from the push route can stand on
it.
The ingest consumer lands a batch through one gateway call, LandBatch
(internal/storage/land_batch.go), that writes its node self-logs, its log lines and its metric,
event and property rows in one transaction whose first statement inserts the batch’s receipt
(telemetry_receipt, keyed by the subject and the batch’s Nats-Msg-Id). A failure part way writes
nothing; an id that already landed writes nothing at all, so a redelivery after a lost ack, a
consumer that died between its commit and its ack, and a publisher’s retry past the stream’s
duplicate window all land each row once, log lines included
(ADR-0311).
The property lane’s transition guard moved into the insert as a conditional write, held per series
by a transaction lock, so concurrent batches never write a value twice (#455); since the guard is right
only if a series lands in order, the consumer keeps one batch in flight, redelivering a transient
failure before anything behind it and dropping a refused write at once. The batch
takes every lane’s rule rows and calc marks before any lane writes, the platform’s lock order held
for the whole transaction, and the gateway replaces a NUL in any lane’s text before the insert, so a
batch landing all or nothing can neither deadlock a rule edit nor be lost to one stray byte. Receipts
are kept a day and pruned hourly. The boot seed now refuses to ship a name two registries share
(#457).
Both publishers moved to JetStream: the push and webhook routes wait for the stream’s ack
(collection.PublishBatch) and the node keeps a window of 32 batches with it (collection.StartBatch),
each carrying a Nats-Msg-Id minted once per batch (a UUIDv7) and kept across retries, and
OG_TELEMETRY keeps a five-minute duplicate window. The push route answers 202 only after the ack and
503 after three attempts. The node’s send only queues; a shipper goroutine holds what the stream has
not acked in a bounded spool (internal/node/spool.go: 10,000 batches, 16 MiB or 12 hours, the
oldest dropped and told, a batch the bus can never take dropped rather than blocking the rest) and
ships it on the next tick, over a connection that reconnects without limit and buffers nothing across
a reconnect, so the window stays in order
(ADR-0453).
Proven against a real Postgres and a real JetStream: a batch whose ack is lost after its commit is redelivered and lands once; a consumer killed inside a landing, before its commit and after it, replays cleanly into a restarted server over the same stream store; a batch replayed under one id inside the window is stored once, and past it (a fresh stream) is held by its receipt; the push route answers 503 with no stream to store the batch; and a node publish whose ack is lost twice is retried on the next ticks under its id and lands once, a self-log line and a task’s sample alike; a node behind an outage longer than any reconnect budget ships what it held once the bus is back; and a batch over the bus’s payload limit is dropped and told while the batch behind it lands. At the gateway: a batch id lands once (eight concurrent deliveries land it once), a refused row leaves nothing behind, concurrent batches carrying one verdict write each transition once, a transient failure redelivered keeps a flip pair in order and a refused batch is dropped on its first delivery, a batch carrying NUL on every lane lands, and a batch waiting on a rule row an edit holds holds no health lock. In the spool: a send never waits on a stream 50 ms away, and 120 batches ship in order in a few round trips.
An instance means one thing, and reconciliation and settlement resolve it (#456)
Section titled “An instance means one thing, and reconciliation and settlement resolve it (#456)”The ingest stamped every node-lane sample with the endpoint that collected it, while reconciliation
and settlement read only the owner-level series, so a property collected through an endpoint never
appeared as is and an un-instanced command no node had carried could only time out.
ADR-0456
gives the column one meaning (which of several values of one key on one owner a row is), names its
stamper per provenance (the observer for observed, owner-level for declared, calculated and health,
the command’s for intended), and one rule for every reader: a question about the owner reduces
across every instance of the key, and a question naming an instance never does.
The reads and the two reductions are one primitive (internal/storage/instance_values.go): every
instance’s current value of a key on an owner, newest first, on either sample lane, and two pure
reducers over it. Reconciliation reduces worst-case: drift when any observed instance disagrees with
want, is the newest disagreeing value (else the newest agreeing one), and the read now names the
instance it came from (is_instance on GET /components/{name}/reconciliation). told is the
newest intended value on any instance. Settlement reduces any-instance-agrees for a command with no
instance that no endpoint can carry: an observation on any instance runs its settle check and the
first agreeing one settles it, while a command dispatched over an endpoint stays judged on that
endpoint’s series alone (#900), and one still queued is judged on the endpoint queued to carry it
and times out, never fails, when no node took it. Both reductions leave out a retired observer, an
endpoint since deleted whose frozen last reading would otherwise hold the owner in drift or settle
a command it never saw; told reads only the instances commands named, one probe each. The verdict a command’s issue answers with now reads the same
observation the recorded outcome did, where it used to read the owner-level series even for a
dispatched command.
Proven test-first: the pure reducers’ tables, reconciliation over one and two endpoints against real
Postgres (agreeing, disagreeing, worst-case across two, told from an instanced command, a deleted
endpoint left out while a pushed instance counts, told’s plan filtering no observed row), a queued
command judged on its carrier and timing out where it stopped, an owner-level command settling on
any agreeing instance, failing when none agrees and never settling on a retired observer, a
dispatched one ignoring another instance, the API read naming the endpoint, and end to end over the real bus
(internal/bus/instance_resolution_test.go): a node’s reading with no instance lands under its
endpoint, and reconciliation and the command’s settlement both resolve that same row. The vitals
row’s display rule (the newest across instances, named) is recorded for #1020 to build.
An orphaned node batch is warned about once a minute and counted on the node (#1200)
Section titled “An orphaned node batch is warned about once a minute and counted on the node (#1200)”A node batch whose task is not placed on that node (a task moved to another node, or one the server
does not know) is dropped by the confinement fence by design, and the drop left no trace: the
operator saw a component stop updating and nothing said why. The ingest consumer now records it
(internal/bus/orphan.go). The first orphaned batch from a node in a minute is a warning naming the
node, the task and the samples dropped; the rest of that minute is only counted, and the next warning
says how many went unlogged, so a node stuck on a moved task cannot flood the log. Every one is
counted on the node: GET /nodes/{name} serves orphaned_batches and last_orphaned_at, written
once a minute per node rather than once a batch, the last of it on shutdown, and a count the store
could not take is kept for the next flush. The tally is pure apart from its lock, so its window,
its count and its forgetting of a quiet node are unit-tested on explicit times; over the real bus,
five orphaned batches inside one window are one warning and a count of five. Migration
20261026190000_node_orphaned_batches.sql adds the two columns.
Thirteen design fences leave the closed #603 (#1190)
Section titled “Thirteen design fences leave the closed #603 (#1190)”Thirteen :::design fences on the nodes, collection and variables pages still said their design
was tracked in #603, which closed with its follow-ups moved to #1187. Each was read against the code
and either re-pointed or retired. What the stateful arc built became built text: the server-baked
worklist and the secrets it carries to the node, the listen mode, the session lifecycle and where its
failures land, the extract rules every built transport shares. Two fences retired outright because
the design they hedged was superseded rather than pending: the raw-tcp table (the built tcp
transport, ADR-0153) and the config member’s observed-side worker (ADR-0079 retired every maintained
current-value cache), and the provenance fence now says what ADR-0079 built, declared as the fourth
provenance.
What remains design names a live owner: the templates and $var: values (#827, #296), framing-driven
routing (#1057), the held transports ahead (#1036, #1039, #1040, #1041), snmp v3 (#1083). Where a
remnant had no open owner it got one, filed under #1187 where it is collection: a declared value’s
reconcile policy (#1248), the node’s component lanes, concurrent gate and verdict-gated polls
(#1249), secrets on a TLS bus decrypted on use (#1250), the raw bytes on a collection-failed
(#1251), the name[instance] suffix (#1252, which the properties page’s authored-instance fence now cites too), the Expr transform and cascaded labels at the edge
(#1253), the session pool’s knobs (#1254), and the cross-owner property cascade (#1255), the refile
the closed #291 asked for.
Migration versions are unique and newer than main’s (#1246)
Section titled “Migration versions are unique and newer than main’s (#1246)”dbmate keys an applied migration on its version alone, so a hand-picked version is a collision
waiting to happen: #933 had two branches each take 20261019050000, and whichever merged second
would have been recorded as applied without running. Two checks now hold the rule. make test
fails when two files in db/migrations/ share a version or a file carries no dbmate new
stamp (db.CheckUnique). The new migrations workflow, and make migration-check locally,
fails a change whose added migration is not newer than the newest on the base branch’s tip, or
is stamped later than the clock (db.CheckAgainstBase, run by cmd/migrationcheck against the
base read from git). It runs on each PR and on each push to main, where the base is the commit
before the push, so two PRs that both went green before either merged still meet the check.
make migration NAME=<snake_case_name> wraps dbmate new at the version go.mod pins, so a
version is a UTC stamp, not a choice. The /storage-schema-change skill,
the storage page and release and CI
teach it.
Pre-tag hygiene, the API and data half (#555, #260, #558, #570, #808)
Section titled “Pre-tag hygiene, the API and data half (#555, #260, #558, #570, #808)”Pre-tag hygiene for 0.1.0 (#825), the contract half: each is cheapest before a public release exists.
A registry renames (#555,
ADR-0555).
ADR-0062 gave every registry a uuid primary key so its name could change, and nothing but raw SQL
could change it. POST /<registry>/{id}:rename now moves the name of a vendor, driver, product,
standard or location type, by its current name or its uuid, gated by its own <registry>:rename
(admin) and served by one gateway primitive, RenameRegistry. Every foreign key holds the uuid, so
every referencing row reads the new name; a location type’s by-value copies in
allowed_parent_types and in forks move in the same transaction, and a driver’s attached tasks
re-derive under the new name. An official row keeps its shipped name, and so does a shipped example
standard (409), which the boot seed plants by name whenever it is absent (standard.seeded marks
them; #827 forks templates instead). The rename is audited. The CLI gains omniglass <registry> rename. The remaining
registries are #1188.
A product’s references can be cleared (#260). The product patch wrote its nullable columns with
coalesce, and the API collapsed an explicit empty string to nil first, so a vendor, driver, parent
or icon could be set and never unset: the console’s None reverted on refetch. They now follow the
house three-state string, the same CASE the inherited registry facts use (omitted is unchanged,
"" clears to NULL, a value sets), and the blade sends an emptied picker as the clear.
The encryption key is named for what it is (#558,
ADR-0558).
OMNIGLASS_ENCRYPTION_KEY and OMNIGLASS_ENCRYPTION_KEY_FILE replace the SECRET_KEY pair, which
read as a secret’s own key. The old names are still read while neither new one is set, warning on
every boot with the replacement, so an upgrade never locks an operator out of their secrets.
The node table stops carrying its own name rule (#570). A new migration drops
node_name_subject_safe_check, a looser rule than the entity name rule the gateway applies first, so
it never fired and only misdescribed the identifier; its two unreachable mirrors in Go go with it,
and a gateway test refuses every character the CHECK used to catch.
A console miss that names a file at the root is a 404 (#808). #778’s build-directory rule could
not see the root, where public/ lands a contributor’s file, so a typo of one answered the shell with
200. A miss whose last segment carries an extension is now a 404 too, resting on the premise that no
console route carries a dot, which a test reads off the route manifest; a build directory is a 404
rather than a listing of its hashed assets.
System role staffing keeps its integrity (#504)
Section titled “System role staffing keeps its integrity (#504)”Four defects in role staffing, each fixed test-first against a real Postgres. A membership or a role
assignment now costs a write on both of its ends: the five routes that bind, unbind, re-default or
staff a component need component:update over the component beside system:update over the
system, each end resolved in its own tier’s scope, so a principal scoped to one system can no longer
bind a component it cannot read and inject system-band configuration onto it through the cascade
(ADR-0510).
A structural guard finds every write whose path names an entity of another tier and requires it to
publish that tier’s permission and be driven by a scoped principal in the staffing test, so the next
cross-tier route cannot ship unfenced.
A role name means one role in a system: a system role that would shadow its standard’s, a standard
role a conforming system already declares, and a move onto such a standard are 409s naming both
owners, and a collision written before the rule is refused rather than resolved to whichever row
came back first
(ADR-0503). Changing a
system’s standard carries its staffing onto the new standard’s roles of the same names, under the
typed-slot guard and the new capacity, and releases the rest as members with no role, so no
component is ever wedged; a backfill releases the strands earlier releases left
(ADR-0506).
The role seed lands whole and repairs a set an interrupted install left missing
(ADR-0508).
The epic’s fifth defect, an unknown standard landing an orphan role (#505), was already closed by
#647’s owner-arc check; its read-side residue goes with this slice, so listing an unknown standard’s
roles is a 404 rather than an empty list. The role-staffing demo moves a staffed room between
standards and refuses a scoped technician.
The project board tracks the work, moved by one script at fixed points (#1191)
Section titled “The project board tracks the work, moved by one script at fixed points (#1191)”The org project board (#1, “Omniglass”) becomes the live status of the work: it had held 27 stale
items against 249 open issues, with status living only in chat. scripts/board.sh is the one way an
agent moves it: add (Backlog, an existing item’s Status kept), set (Backlog, Todo, In Progress,
In Review, Done), iteration <issue> current and show. It resolves the project, its fields, their
options and the issue’s item by name once per run, so no skill carries an id; every command is
idempotent; it never writes Priority; until the board has an In Review status a move there lands on
In Progress with one warning; and when it adds an issue it waits for the board’s Item added to
project workflow to give the new item its Status before writing its own move, which the workflow
would otherwise overwrite. The skills call it at fixed points: /define-work and /file-bug
add to Backlog, /run-feature-loop sets In Progress as a slice starts, /ship-slice sets In Review
as the PR opens, and /autopilot makes the same moves and lists them in its day report. Done is
GitHub’s built-in workflow, on close; Priority and the iteration are the architect’s alone, and
/file-bug no longer sets Priority.
The board teaches the fields, who moves what (the skills, and
the six built-in workflows enabled on the board, two of which meet the skills’ moves), the four views
(Roadmap, Board, Needs you, In flight) and the one-time setup in the UI: the In Review option, each
workflow’s target (only the UI can set one), auto-add from this repository, and the views. Proven by go test ./scripts/, the
script driven against a fake gh that answers from the board’s recorded field list and refuses any
id the project lacks (each name resolved to its recorded id, a second run writing nothing, the In
Review fallback warning once, a Priority name refused, the board’s workflow waited for, the missing
scope, issue and project each named), and once against the live board on #1191, added and then
archived.
The CI gate is make test, and every action is pinned (#214, #66)
Section titled “The CI gate is make test, and every action is pinned (#214, #66)”Pre-tag hygiene for 0.1.0 (#825), the CI half. test.yml now runs make test, the gate
contributors run, instead of its own go test ./...: the SPA typecheck and vitest suite join CI
for the first time, beside every Go tier and the NET_ADMIN tier, so a web-only regression fails the
PR that introduces it (#214, which #846’s calendar rot showed was not hypothetical). The job raises
TEST_PARALLEL to the runner’s core count, which is what the bare go test ran with. The
run:test and run:build labels it would have replaced are retired from the label docs, and
CONTRIBUTING no longer says the full suite is label-gated.
Every workflow’s actions, first-party actions/* included, are pinned to a full commit SHA with
the version in a trailing comment, and .github/dependabot.yml keeps the pins and the Go and npm
dependencies current through weekly grouped PRs whose titles pass the PR-title gate (#66). The
release and CI page teaches both.
Two stray files leave the tree: the 5.5 MB cligen binary at the root, already covered by the
anchored ignore #1162 added (#1174), and an empty root package-lock.json, now ignored too. The
roadmap’s 0.1.0 row stops saying #603’s stateful arc closes the epic: #603 is closed, and its
follow-ups live on #1187.
The client address believes a forwarded header only from a configured proxy (#1185)
Section titled “The client address believes a forwarded header only from a configured proxy (#1185)”A follow-up of the webhook slice under epic #1146
(ADR-1185).
The address a login or a new API token is stamped with used to be the first X-Forwarded-For hop
from any peer, so a client reaching the server directly could record any address it liked. It is
now the answer of one primitive, internal/clientaddr, which the webhook receiver’s source reads
too: the peer, or, only when the peer is trusted, the rightmost forwarded hop outside the trusted
set. OMNIGLASS_TRUSTED_PROXIES configures that set (CIDRs or addresses, none, a bad entry
failing the boot); unset, it keeps the loopback and private ranges, and the server logs the set it
believes at boot. The webhook route resolves its sender once, in its bound middleware, and the
handler records the same source the limits counted.
Proven by the primitive’s table tests (the walk, a configured public proxy, a private peer left out,
none, the grammar and its refusals) and end to end over the real API: a login carrying a forged
leftmost hop records the rightmost untrusted one under the default and the loopback peer under
none, and a stranger’s webhook lands in the unclaimed-source inbox under the same two answers.
A lab says it is one, and lab and real databases refuse each other (#1195)
Section titled “A lab says it is one, and lab and real databases refuse each other (#1195)”The lab marks the database it creates (the lab_mark table, whose one row the lab’s seed writes;
never a migration or boot-seed row) and starts its server in lab mode, a hidden setting only
omniglass lab run passes. A server outside lab mode refuses a marked database, and a lab refuses a
database that holds data and no mark, each saying why and what to do. GET /auth/status reports
lab, and the console shows a Lab instance banner on the sign-in page and in the shell. The
lab guide’s safety rails teach it.
A node runs its own simulator in process (#1198)
Section titled “A node runs its own simulator in process (#1198)”omniglass node run --simulate runs the node’s loop and the simulator side by side in one process,
under one context (simnode.RunWithNode). Both halves claim with the node’s own name and enrollment
token, so there is no second enrollment and no second grant, and the simulated components sit on
the loopback the node collects from by construction: no namespace to share between two processes.
The two live and die together, and the first real failure is the one reported. --impairments,
--port-offset and --poll move under --simulate and are refused without it, as is --once.
omniglass sim run stays for a simulator as a process of its own. The
simulation and
nodes pages and the install guide’s
run a simulator teach it.
A system owns its own metrics and properties (#422)
Section titled “A system owns its own metrics and properties (#422)”A system now owns telemetry of its own on both producers that have one. A system calc rule’s output
was already a system-owned sample (#997); a test now drives it end to end through the real server and
the CLI and reads it back on the system’s metrics and properties. The new producer is the push lane:
POST /telemetry:push takes owner.kind: system, and the system’s metric, property and event land
on its own arc, observed, at the owner level, with the batch’s source. The ingest stamps the arc the
binding resolved on every lane instead of a hardcoded component.
The fence is ADR-0752’s, joined by the system tier as that decision said it would be: telemetry
resolves on the component and system tiers, the push scope alone sees a system it may push to, an
unreadable miss is a 404 and a readable one a 403, once per batch, and a test pins that the two tiers
do not reach each other. A system has no endpoints and owns no log lines, so a system push naming an
instance or carrying a log line is a 422 before anything is published. A system’s observed property
reads on its change history (omniglass system property sample list) until the unified properties
read (#1297) carries observed values beside declared ones for components and systems alike.
The ruling narrowed the issue (ADR-0422): location-owned observed telemetry is out, and the docs stop claiming it; a location keeps its calculated health. Node-collected system telemetry is the shared-API fan-out filed as #1282, extending the webhook ingress, rather than a system-owned endpoint.
make only builds, and the console loop proxies to a lab (#1196)
Section titled “make only builds, and the console loop proxies to a lab (#1196)”The bare make needs only Docker: from one Dockerfile it builds omniglass:dev and exports this
machine’s binary to bin/omniglass (the hostbin stage), both stamped with one build id, with
BuildKit cache mounts. make dev builds that and runs npm install in web/, and starts nothing.
make dev-sim, make up, make down, docker-compose.yml, SIM_PORT_OFFSET and its test retire;
seed-dev --sim-port-offset defaults to 0, the lab’s real ports. The Vite dev server proxies /api
to http://127.0.0.1:8080, moved by OMNIGLASS_LAB_URL, so the console’s fast loop is a lab in one
terminal and npm run dev in another. The docs that named the retired targets point at the
lab.
omniglass lab brings up a collecting simulated fleet in Docker with one command (#1194)
Section titled “omniglass lab brings up a collecting simulated fleet in Docker with one command (#1194)”omniglass lab run (and make lab) brings up a working omniglass on Docker as the compose project
omniglass-lab: Postgres, the server, and the node edge-hq running node run --simulate --impairments, seeded with the dev fleet through a one-off lab seed, with only the console
published on 127.0.0.1:8080 and dev/dev to sign in. internal/lab is a pure planner (options
to a project spec) and a runner over the Docker Engine API (the moby client, now a direct
dependency) that stamps compose’s labels, resolves the daemon the way the docker CLI does, runs
preflight before creating anything, waits on readiness (the console, the login, every simulated
component running, every collected endpoint up but the seed’s planted faults), tears down on Ctrl-C
keeping the volumes, and reaps a killed run. A dev binary runs only the omniglass:dev image whose
version label is its own build id; a release binary runs ghcr.io/hyperscaleav/omniglass:v<version>,
which image.yml now publishes on a release tag, and its boot smoke is a lab smoke. The guide’s
topology and walkthrough list render from the planner and the walkthrough manifests
(docs/src/generated/lab.json, via cmd/labgen). make test-lab is the integration test against a
real daemon. The guide is try omniglass in five minutes.
Terminal demos pause after each command, so the inline clip reads (#1247)
Section titled “Terminal demos pause after each command, so the inline clip reads (#1247)”A terminal demo’s GIF plays inline in the PR body, where a reader cannot pause it, and the tapes
went straight from one answer to typing the next. One pacing rule now holds every line a tape shows
before the prompt comes back: a command’s output for 2.5s plus 0.5s per row it filled (up to 7s),
and a typed caption for 1.5s plus 0.2s per word (up to 4.5s). The numbers are PACE in
web/e2e/tapelib.mjs. The prelude applies them through web/e2e/tape/pace.sh, running the shell
under script(1) so the rows are counted from what the terminal was actually sent, and it lists each
hold in the recording’s pace.txt.
A tape can no longer add, skip or override a hold. The house rules refuse a Sleep (all 60 hand-placed
ones are gone from the 14 tapes) and any typed text that reaches the rule’s hooks: the prompt
variables, the prelude’s own names, the shell’s history, or an exec, a trap or a new interactive
shell, including one reached through a path, env, command or builtin. A caption runs nothing, so
it is exempt. make test-demos now proves that each caption and command a passing tape shows is
held for at least the rule’s base time, and that the video runs at least as long as its holds.
The terminal demo budget rises from 120s to 180s
(ADR-1247).
make test-web adds up the least each tape can run and fails one that is already over budget before
a stack starts. Re-recorded under the rule, the 14 tapes run 56s to 163s, with GIFs from 0.3 to
1.1 MB. Stepping through the frames, each answer stays on screen, whole, before the next command types.
The autopilot never arms auto-merge (#859)
Section titled “The autopilot never arms auto-merge (#859)”The /autopilot skill no longer tries gh pr merge --auto after opening its PR. Agent PRs are
authored under the architect’s token, so a required approving review can never be given, and
without one auto-merge fired on green CI alone. The architect’s manual merge stays the gate
(ADR-0859).
The demo pipeline rides the lab (#1197)
Section titled “The demo pipeline rides the lab (#1197)”The last slice of the lab epic. The walkthroughs, the terminal demos and the probe record on the
product’s own lab, omniglass lab run, instead of the walkthrough stack, a bash recipe that built the
same topology by hand; stack_walkthrough_up, make walkthrough-stack, make dev-sim-container and
make test-walkthrough-stack are gone, and web/e2e/lib/stack.sh keeps only the Postgres-and-server
half the browser e2e tier and the docs screenshots use (#1267 moves those too). A recording now shows
what a learner’s lab shows, the “lab instance” banner included, and all thirteen walkthroughs were
re-recorded on it once, each within its budget.
Each recorder runs ./bin/omniglass lab run as a throwaway lab (web/e2e/lib/lab.sh): a project of
its own per run, so two recordings on one Docker daemon never meet, on a port Docker picks, seeded with
the dev fleet at the 2s cadence. Three hidden flags make that a script’s lab rather than a learner’s:
--ephemeral removes its volumes at teardown (and lets the next run reap an abandoned one of any
project), --ready-file writes, once ready, how to reach it from a container on its network, with an
owner token minted for the run, and --while-pid ends the hold once the script’s process is gone. The
script’s trap stops the lab with one SIGTERM on every exit path; a recorder killed outright leaves the
lab to notice and tear itself down within two seconds, and a lab disturbed from outside fails the run
saying so. A helper container (Playwright, ffmpeg, VHS) carries the lab’s labels, so the lab’s own
teardown removes it too. make walkthroughs, make demo and make probe now build first, and the
run:demo workflow runs make before it records.
The one component the stack added for the set-up-monitoring walkthrough, bay-2-display, is that
walkthrough’s own setup now: a new optional list of API creates the recorder (and the probe) makes
off camera before the title card, an existing one counting as made. The lab guide lists it for a
learner as the CLI command that makes it, rendered from the script, and a test holds that command to
the real CLI. The dev seed is unchanged.
The lab comes up for a recording in about 12 seconds once make has built the image, where the
stack built its own image on every run. The definition’s follow-up for the browser tier and
the screenshots is #1267; the epic’s placeholder for simulated components with real addresses on the
lab network is #1268.
The ingest footprint is counted, so storage work has a before and an after (#1272)
Section titled “The ingest footprint is counted, so storage work has a before and an after (#1272)”The storage efficiency epic (#1265) is about to change how telemetry is written and kept, and every
change in it needs a measurement a reviewer can trust. TestIngestFootprint is that measurement.
It seeds the dev scenario’s fleet and delivers a standard workload through the real telemetry
handler, one node batch per simulated endpoint per check, exactly as JetStream would deliver it.
Only the transport is a double.
It holds what one batch costs the database, all deterministic. Statements per batch, rows per
observation on each lane, metric rows per full heap page and the metric index definitions are
exact. Index bytes per row are bounded after a REINDEX, because a live index’s page splits follow
the fleet’s random uuids and vary by a fifth from run to run. WAL bytes, the live index size and
wall-clock time are reported but never held
(ADR-1272).
The workload is built deterministically from each task and tick (internal/footprint). Its mix is
calibrated to a measured lab run, so it is re-derived when the simulated fleet grows rather than
waiting for it.
The first reading, on main at 50d4ae8d, for a batch of five observations:
| Measure | Value |
|---|---|
| Statements per batch | 31: among them four catalog reads, the same component read six times, and one INSERT per metric (the ADR lists all 31) |
| Metric rows per heap page | 65, about 126 bytes a row |
| Index per metric row | about 91 bytes rebuilt, about 100 to 135 live |
| WAL per observation | about 460 bytes |
| Time and memory per batch | about 3.3 ms and 135 KB allocated, flat from 13 tasks to 130 |
Breaking the handler on purpose with one extra catalog read fails the test at 32 statements a
batch, listing the statements issued. make footprint prints the figures, and make bench now
times the same path.
A batch lands its metric lane in one statement (#1274)
Section titled “A batch lands its metric lane in one statement (#1274)”After #1279, a node batch of five observations still cost 29 statements. Six were the same
component lookup, made once per sample and again for the lock pass. Three were select now(), one
per lane. Four were an INSERT for each metric.
An ingest batch now resolves each owner and reads its clock once, for every lane, through a wrapper around the batch’s transaction. The metric lane lands every sample of a series the batch carries once in a single ordered statement. A series the batch carries twice keeps the old insert-then-judge order, so a rule judging a sample never sees a later sample of the same series from the same batch (ADR-1274). A new test lands 31 then 20 in one batch and requires the rule to fire and then clear. Batching every row instead derives nothing and fails it.
Measured on the standard workload, against #1279’s branch, back to back on one host:
| Per node batch | Before | After |
|---|---|---|
| Statements | 29 | 19 |
| Time | 3.4 to 4.0 ms | 2.3 to 2.6 ms |
| Allocations | 811 | 596 |
| Bytes allocated | 67 to 80 KB | 47 to 57 KB |
Rows, heap density and index size are unchanged. Against main before either slice, a node batch
went from 31 statements and about 3.8 ms to 19 and about 2.35 ms.
A component starts from a template (#1326)
Section titled “A component starts from a template (#1326)”POST /components:createFromTemplate (omniglass component createFromTemplate) creates one component from a
component template at a place: its product, the template’s declared values, and, when the request’s
inputs carry the address and a node, its endpoint attached through the product’s driver with the
template’s preset under the inputs given. A secret input names a secret the caller may read and is
resolved exactly as an attach resolves it. It is one plan through the planned create, gated by
component:create (plus component:update for declared values and endpoint:create to attach), every
piece in the caller’s scope with an audit row carrying from_template. A place outside the caller’s
location read scope is a non-disclosing 404.
A group or a person is told in the console inbox, only what each can read (#1352)
Section titled “A group or a person is told in the console inbox, only what each can read (#1352)”The first slice of people as notification targets (#1341). A notification_target can now name
people: a principal_group target reaches every human member of a group and a principal target
one person, each on the channels it names (inbox here; email follows in #1317). They ride an action
rule’s targets exactly as a webhook does.
The group is expanded inside the alarm transition, reading the membership as it stands, so a member
added after the rule was written is told on the next alarm and a removed one is not. Each member is
kept only when their own component read scope, resolved from their grants as a request of theirs
would be, admits the alarm’s component. The filter is set-based (a fixed four statements and a pure
resolve per person; a test pins that a group of 2 and a group of 20 cost the same) and runs under
#618’s savepoint, so a failure in it never fails the transition (a test hides the role table and the
raise still commits). An inbox row is written sent, delivered by its commit, and never drained by
the tick.
GET /auth/me/notifications, :markRead and :markAllRead read and mark the caller’s own entries,
each read scoped again by the caller’s component read scope as it stands, so an entry about a
component they lost is gone. /notifications and the alarm timeline carry each row’s channel and its
recipient, named only to the recipient and to principal:read:admin holders. Binding a group or a
person takes the directory’s admin-tier read, and a bound group or person cannot be deleted: the
refusal names the target.
ADR-1341
records the queue-time expansion and the two-point scope check.
A member opts out of a group notification the admin allows (#1354)
Section titled “A member opts out of a group notification the admin allows (#1354)”A platform action rule gains opt_out_allowed (default false) and action_rule_opt_out. A member of
a group the rule targets opts out for themselves with POST /action-rules/{name}:optOut and back in
with :optIn (notification:subscribe, audited); a rule that does not allow it answers 409. The
opt-outs of the firing rules are read in one statement and skipped when their group targets expand,
a pending email from that rule fails at send for a member who opted out after it was queued, and
taking opt_out_allowed back off withdraws every opt-out (recorded on the rule’s audit row). A target that names
a person directly is not affected by their opt-out.
A multi-endpoint metric’s vitals row says which endpoint it shows (#1020)
Section titled “A multi-endpoint metric’s vitals row says which endpoint it shows (#1020)”A component’s Vitals row for a metric two endpoints collect showed the newest sample across them with no word of which endpoint, or that another existed. Beside a calc rule’s max over the same key it read as a contradiction. The metrics read now names the instance its value came from, counts the live instances holding a sample, and lists each one’s latest when there is more than one. The console’s row reads “latest of 2 endpoints (tcp)”, with a tooltip, and opens to each endpoint’s value and age. A single-instance metric reads as before.
The read also stopped showing a deleted endpoint’s frozen reading. The ADR-0456 liveness test,
which only the per-key reads (reconciliation, settlement) applied, is now one SQL predicate,
liveInstanceSQL, that this read applies too, so a metric whose only observer was deleted leaves
the read. The properties side needed nothing new: since #1297 each row’s reconciliation already names
its is_instance. TestEffectiveMetricsNameTheShownInstance covers two endpoints, a newer sample
moving the shown one, an endpoint retired, a calculated owner-level sample, and a system’s pushed
metric.
A notification type says what a message about an alarm says (#1319)
Section titled “A notification type says what a message about an alarm says (#1319)”The first slice of the notification lane (#618). A notification_type is a registry row with two
templates, a one-line subject and a body text, the outbound peer of command_type. Two official
types ship, alarm-raised and alarm-cleared, through the authoritative boot upsert; an operator
creates, patches, renames and deletes their own (notification_type:create,update on operator,
notification_type:* on admin, read on the viewer floor, no scope injected).
The templates render through the label engine’s sandbox, lifted into internal/sandbox so a label
rule and a notification are one primitive rather than two. A label keeps its 200-character cap and
whitespace collapse in internal/label; a notification’s subject collapses too, its text keeps its
lines, capped at 4000. The alarm facts a template reads are declared once in internal/storage
beside the accessor that builds them and rendered into the docs by cmd/labelgen, the same way the
label data map is.
POST /notification-types/{name}:preview renders a type, or an unsaved draft of it, against a
component’s real alarm and returns the facts beside the result, writing nothing. The console’s
Notifications catalog page stops being a soon stub: it lists the types, edits an operator’s
templates, and previews them through that route.
A planned system lands whole through one primitive (#1325)
Section titled “A planned system lands whole through one primitive (#1325)”The simulator’s add-a-system path generalizes into the planned-system primitive the template layer
builds on. The pure planner moves to internal/systemplan and takes each role’s candidate products as
an input: the simulator passes the products it serves (simfleet.PlanSystem is now that call), and a
system template will pass the product it names per role. The transactional half is
storage.CreatePlan: standards to create from their templates when absent, a subtree of places parents first, systems with
the components that fill their roles (each with its endpoints and declared values), and standalone
components, all in one transaction, each piece the ordinary create in the caller’s scope with its own
audit row. A plan’s template, when it has one, is written into the detail of every audit row it
writes as from_template, the only trace of where a row came from. CreateSimSystem is now a consumer, and the
simulation route’s tests pass unchanged; the location, declared-value and standard-from-template writes gained
the in-transaction forms the plan shares with their own routes.
A reachability probe runs on its own interval (#1273)
Section titled “A reachability probe runs on its own interval (#1273)”A node ran every reachability probe on every heartbeat, so the lab, which checks in every 2s so a
change in the console reaches its node within seconds, probed every endpoint every 2s and wrote
most of its rows doing it. node run --probe-every now sets how often probes run, through the same
per-task schedule a driver poll uses; unset, a probe still runs on every heartbeat.
A learner’s lab checks in every 2s and probes every 10s. The throwaway lab a walkthrough is recorded on keeps probing every 2s, so a walkthrough that waits on a probe’s verdict stays inside its time budget (ADR-1273).
Its review found that the per-task schedule, which driver polls already used, skipped ticks at random when an interval equalled the heartbeat: a run is booked from when its tick reached it, which varies by milliseconds. A task is now due within half a heartbeat of its due time.
A registry collision is logged when it is found, then hourly (#1298)
Section titled “A registry collision is logged when it is found, then hourly (#1298)”A name in two catalogs, say a metric and a property both called input, resolves on no lane, so
every sample carrying it is refused. The ingest consumer warned about it on every batch that carried
samples: about 65 lines a second on the dev fleet at the lab’s cadence, for as long as the collision
stood. Since #1279 the consumer keeps its registry until the catalogs change, which is the only time
a collision can appear or clear, so the warning now lives there. It is logged when the registry is
built with a collision and once an hour while it persists, and deleting either side stops it (these
catalogs cannot be renamed yet, #1188).
A standard forks from a template, and the stand-in seed retires (#1324)
Section titled “A standard forks from a template, and the stand-in seed retires (#1324)”POST /standards:fork (omniglass standard fork --template <template>) writes one standard of the
caller’s own from a standard template: its choices, roles, property and metric contract lines and map,
in one transaction, gated by standard:create and audited once as fork with the template’s name in
the detail. A taken name is a 409, a variant whose parent the caller does not hold is a 422 naming the
template to fork first, and an unknown template is a 404. The boot seed stops planting standards, so a
fresh install holds none; a migration drops the standard.seeded mark, and with it the rename’s refusal
of a seeded example, so a standard an older release planted renames and deletes like any operator row
and never comes back. The dev seed and the lab fork every standard template through the same primitive
before they build their fleet, which also gives them the metric contract and layouts they used to add
by hand. The catalog’s build checks grew with the review: a system template must build to a standard
template the catalog ships, a preset’s values and a declared value are held to the checks the attach
and the write apply, a fill’s product must be a type its role accepts, a map is held to the write’s own
rule, a second YAML document is refused, and a schema test pins that no table or column is a template
(ADR-0827).
A subtree of places starts from a template (#1328)
Section titled “A subtree of places starts from a template (#1328)”POST /locations:createFromTemplate (omniglass location createFromTemplate) creates a subtree of places from a
place template under a parent or as a new top, with the systems it carries staffed and unattached, in one
transaction. Each place’s type must be one the fleet holds and allow its parent’s type, read from the
fleet’s effective allowed_parent_types, so an operator who forked a shipped type is checked against
their fork; a type the fleet lacks or a placement its types refuse is a 422 naming the type or the pair.
Places are named by the template, the request (the root) or their type’s name rule. No logic is keyed
on any particular type.
A system starts from a template, whole (#1327)
Section titled “A system starts from a template, whole (#1327)”POST /systems:createFromTemplate (omniglass system createFromTemplate) lands a whole system from a system
template at a place in one transaction: its standard (the caller’s of that name, else created from the
standard template with any ancestor the fleet lacks, parents first), a component per role filled to its
quorum by the shared planner with the product the template names, each assigned so the staffing reads
complete, and the declared values. A role given an address in attach lands attached; the rest are
listed in to_attach. The route checks every permission its pieces need up front, and a refused piece
(a component outside the caller’s create scope, a standard to create from its template without standard:create) lands nothing.
A type keeps its own retention window (#417)
Section titled “A type keeps its own retention window (#417)”The retention pass kept every metric sample for the metric lane’s window and every property
transition for the property lane’s. A busy probe metric and a rare, important property had no way
to differ. Now a metric or property type can carry its own window:
omniglass metric-type setRetention tcp-connect-time --days 3 keeps that type three days, and
--days null returns it to the lane’s.
The types that most want a window of their own are the shipped ones, which are otherwise read-only. So the window is set by a method of its own rather than an edit, it works on an official type, and the boot seed never resets it: a type’s definition is the seed’s, how long an install keeps its samples is the install’s. The lane’s prune skips an overridden type, and the pass prunes each one to its own window, with the same floor and the same per-row index search.
A user subscribes themselves to the alarms they can see (#1353)
Section titled “A user subscribes themselves to the alarms they can see (#1353)”A personal action rule is an action_rule with an owner and the channels it tells its owner on
(inbox, email), and no targets. /auth/me/action-rules creates, lists, edits, pauses, deletes and
:tests the caller’s own, gated by a new notification:subscribe that viewer carries; another
user’s rule is a 404 on every verb, the platform /action-rules never lists one, names are unique per
owner, and purging the owner takes their rules.
At the transition every personal rule’s owner is judged in one set-based pass, and a rule whose owner
cannot read the alarm’s component is skipped before its when runs (ADR-1341, decision 4). The test
that proves it gives a component-scoped owner a rule whose when divides by zero, so running it
would write a failed row about the alarm; an alarm outside the owner’s scope writes nothing at all,
and the test failed with the gate removed. A personal rule’s email rows are judged again at send like
any person’s, and its rule name is withheld from others with the recipient. :test judges the rule,
or a draft, against the owner’s recent alarms in scope and writes nothing.
A webhook notification target, sent through the egress primitive (#1320)
Section titled “A webhook notification target, sent through the egress primitive (#1320)”The second slice of the notification lane (#618). Omniglass had no server-side outbound HTTP; the
only egress was the simulator’s. internal/egress is now the one client every outbound send uses:
internal, link-local and carrier-grade NAT destinations refused unless the new
egress_allow setting (the notification settings namespace) names them, cloud metadata refused always, judged on the
address actually dialed; https, or http only to a named destination; TLS verified; redirects not
followed; every phase bounded; no environment proxy. Its tests dial real sockets, since a loopback
receiver is exactly the destination the contract refuses by default.
A notification_target names a channel kind (webhook), a URL and an optional platform secret.
It is admin-only (a new sensitive resource, off the viewer floor) and every route takes an
all-scope grant. The URL is masked on read and in the audit log, and revealed whole by :reveal
under its own audit row; a secret a target binds cannot be deleted from under it.
internal/notify builds the request in the page’s order: the envelope rendered once, signed over
those exact bytes in the scheme the inbound hmac webhook verifies, with an Idempotency-Key. A
test feeds a delivery through ingress.Authenticate, so Omniglass verifies its own signature. The
envelope’s JSON Schema is generated from its struct into the docs. :test sends one synthetic
message and answers what the receiver said.
An alarm is emailed through the install’s relay, proven against a mail sim (#1317)
Section titled “An alarm is emailed through the install’s relay, proven against a mail sim (#1317)”Email is the second channel that reaches a person (#1317, inside #1341). The relay is set in the
notification settings (mail_relay, mail_security, mail_from, and mail_secret, a platform
basic-auth secret whose binding takes the right to reveal it). internal/mail builds a plain-text
message from the row alone (its Message-ID the row’s uuid, its date the row’s own, so a retry sends
the same bytes, which a test compares byte for byte) and speaks SMTP to the relay over the egress
primitive’s one dial, now exported as Policy.DialContext, so the relay is judged where it actually
connects: an internal relay only when the allow list names it, a metadata address never, TLS required
unless the allow list names the relay.
An email target sends to a shared mailbox’s addresses; a group or person target with the email
channel sends each person their own row, to their directory email resolved at send. Before sending a
person’s row the tick judges them again inside the row’s transaction (still active, still in the
group, still reading the component) and fails it at once with the plain reason otherwise; a test that
narrows a grant, removes a member and archives another between the queue and the send failed before
the recheck existed. omniglass sim mail is the relay simulator tests and the demo send to: it keeps
what it accepts as JSON lines, sends nothing on, and refuses on demand to show the retry.
An alarm transition queues notifications and a tick delivers them (#1321)
Section titled “An alarm transition queues notifications and a tick delivers them (#1321)”The last slice of the notification lane (#618) closes the loop. An action_rule says when a
message is sent: on an alarm’s raised, cleared or both, when a predicate holds, send a
notification type (the official one for the transition when it names none) to its targets. The
predicate is a new action expression site whose bindings are the alarm fact map a template
reads, in snake_case, plus the severity’s rank; a test holds the two declarations together. It is
authorized as a rule (rule:*), its writes all-scope.
The notification is a row written in the alarm transition’s own transaction, at the seam every
hand and rule raise and clear passes (raiseAlarmTx, ClearAlarm, clearAlarmByDedupTx),
rendered then, so a rollback leaves none, a re-raise writes none, and an acknowledgement is never a
transition. A rule whose predicate fails to run, or whose type fails to render, still writes its
rows, failed with the reason. internal/notifier drains the due rows every 2s, one per
transaction under FOR UPDATE SKIP LOCKED with the send inside the lock, backing off from 10s,
doubling, to a final failure at the 8th attempt
(ADR-0618
records the divergence from the CDC sender). Tests prove two drainers never send a row twice and a
restart loses nothing.
GET /notifications is scoped by the alarm’s component as the alarm reads are, and
POST /notifications/{id}:retry (operator) re-queues a failed one. Each row joins its alarm’s
timeline after the edge that queued it; the console’s timeline reads it (notifying, notified,
failed to notify) and offers Retry. The admin guide gains the end-to-end task, sending an alarm to a
chat channel.
An older binary refuses a newer schema (#1289)
Section titled “An older binary refuses a newer schema (#1289)”An image older than its database used to boot silently: migrate.Run applied whatever was pending
and the server came up on columns it did not know. A helm rollback past a migration was the
common way to get there.
Every migrate now starts with a guard. It reads every version the database records as applied,
including ones the binary does not embed (which dbmate’s own listing drops), and compares the newest
with the newest embedded migration. A newer database stops the migrate run mode, the server’s boot
and every direct-database command with ErrSchemaAhead, naming both versions. A database at the
binary’s head or behind it migrates as before, and a version below the head that a collapsed chain
(#388) no longer embeds passes, since it is history rather than a newer schema.
TestRunRefusesASchemaNewerThanTheBinary stamps a migration past the embedded head into a real
Postgres and proves the refusal names both versions; with the guard removed it fails. This is the
schema-guard member of the Helm epic (#1287).
Every endpoint reports its own collection (#1369)
Section titled “Every endpoint reports its own collection (#1369)”Every endpoint now carries telemetry about its own collection, on by default, once a report window (a
minute, collection.report_seconds). A polled endpoint lands its polls’ mean time and, when any
failed, how many. A held session or udp socket lands the messages its listeners claimed (zero when
quiet) and, when any, the ones they did not. A webhook endpoint lands the posts the server accepted
and refused.
A device that only pushes, or that reports nothing of its own, now has telemetry beside its reachability. This is built-in data, which every endpoint gets whatever its driver, as against the collected data its driver declares; the drivers guide now draws the line. The cost is a few rows per endpoint per window, held by a footprint gate at 13 statements and two rows for an endpoint that polls and listens. Making the window a per-endpoint-type default a driver and an operator can override is #1373.
Every lab component is simulated or accounted for (#1359)
Section titled “Every lab component is simulated or accounted for (#1359)”The dev seed places 214 components, 213 of them always and the UCC service when the simulator is on. The lab collects from 123 of them. A test now accounts for the rest:
- 75 wait on a simulator profile, each product listed with the issue that will add it;
- 15 are passive (ceiling speakers and analog goosenecks with no network interface), each listed with how the fleet watches it instead, which later lands on them as their own telemetry through the fan-out (#1367);
- one is the fleet’s example of a component with no product, which becomes a networked power conditioner (#1368).
A component of a new, unlisted product fails the test with its name. So do a listed product that has since gained a profile, a “passive” product that has a driver, and a productless entry whose component has since gained a product.
This is the first step of making the simulated fleet complete before it is scaled (#1266, then #1357). Each profile slice from here shrinks the list of 75; the fleet’s recording service, a software service with no driver, is on it and gets its profile in #1363.
Log lines are pruned by severity (#417)
Section titled “Log lines are pruned by severity (#417)”The retention pass now keeps the two log tables as well, a component’s log lines and a node’s own, by severity: debug 3 days, info and notice 14, warning 30, and error and worse 90, four settings an admin changes beside the sample windows. A line with no severity is kept as long as info.
Every prune is searched rather than walked. A new (severity, ts) index on each table, and a
(ts) index for lines with no severity, find exactly the lines past a band’s window, ordered as the
index is so the planner never falls back to reading the table. So the BRIN limit the sample prune
lives with does not reach the logs.
The review found the cost that mattered most outside the log tables. Each deleted line clears the link from any event that named it as its source, and with no index on that link, every deleted line scanned the whole event table: 27.7 seconds for 2,000 lines over 200,000 events. That link now has its own index, at 8.8 milliseconds.
A band only works if every line speaks the same vocabulary. A one-time backfill mapped the older
words still stored (warn, ERROR, a numeric 5) onto RFC 5424’s eight levels, and moved any
other word to the severity_raw attribute. A test holds the backfill’s alias list to the one every
writer uses. A node’s self-logs are now normalized at the gateway, as a component’s have been since
#1145.
One properties read carries every property and its reconciliation (#1297)
Section titled “One properties read carries every property and its reconciliation (#1297)”GET /components/{name}/properties and GET /systems/{name}/properties now list every property the
owner has, declared, calculated, observed or told, and every row but a calculated one carries its
reconciliation: want, told, is (worst case across every live instance, naming is_instance) and
drift. The storage Reconciliation resolver folded into EffectiveProperties, which gained the
observed and told keys (one catalog probe per key on the owner’s series and command indexes, a retired
observer’s frozen reading left out, as before) and reads each key’s series with the arc it already
resolved instead of re-resolving the owner per key. The reserved keys (a native probe key, health) stay off it, on the reachability read that gates
them, and two partial indexes give command a system and a location owner index, so a system’s or a
place’s read probes rather than scanning a table that is never pruned
(TestPropertiesReadReachesAnIndexOnEveryArc). A key that is only observed was invisible before;
it now reads want: null, its is, and drift: false. GET /components/{name}/reconciliation and
omniglass component reconciliation list are removed
(ADR-1297).
The console’s Reconciliation panel reads the same cached rows as the Properties panel, so the two
never disagree; it now sits on the system view too, and a key only observed or told stands there and
not among the declared properties. The reconcile-instances demo moved to the properties read and
gained the observed-only beat. Proven by TestPropertiesCarryEveryKeyAndItsReconciliation (storage:
observed-only, told-only, retired observer, a probe key left out, a system’s push, a place, out of
scope), TestPropertiesCarryReconciliationAPI
(HTTP: drift naming the instance, observed-only, a system’s block, the 404 and 403, the retired route’s
404), and the panel tests.
One verb creates from a template (#827)
Section titled “One verb creates from a template (#827)”The four methods that create from a template take one name on all four collections:
POST /standards:createFromTemplate, /components:createFromTemplate, /systems:createFromTemplate
and /locations:createFromTemplate (omniglass <resource> createFromTemplate). A custom method names
what differs from Create, and the difference is the template input, so one verb now means one thing
across the kinds. Every row a template creates is audited as a create carrying the template’s name as
from_template, one key in place of two, and an answer’s standards_created lists the standards a
write created from their templates. The day-old :fork and :instantiate are retired terms, refused
by the vocabulary lint
(ADR-0827).
Samples are pruned to their retention window (#417)
Section titled “Samples are pruned to their retention window (#417)”Nothing pruned the sample tables, so the metric table grew by millions of rows a day at the lab’s cadence and never shrank. The server now keeps metric samples for 14 days and property transitions for 90, install-wide windows an admin changes in the new retention settings (ADR-0417). Every hour a pass removes what is older in chunks of 5,000 rows, each a short statement of its own, so a first pass over a large backlog never holds the database. While a lane is behind, the next pass comes a minute later.
The floor holds. A declared value and the latest row of every series are kept however old. “Latest” holds under both orders the readers use, so a clock that stepped back costs nothing. A command’s own rows are kept too, for its history.
The old PruneSamples ranked every row of both tables on every call. The new one applies the cutoff
first, then checks each old row for a newer row of its series with an index search. A new partial
index covers the one owner the existing indexes missed, a metric a system or a location owns. The
review caught an EXISTS form of that check that Postgres turned into a hash over the whole table,
and an unbounded window that overflowed the timestamp encoding; the check is now a limited
subquery, held per owner by the accesspath instrument, and windows stop at a century. It also
caught the console’s Settings page sending an integer as text, which this first integer setting
would have hit on every save.
Log lines and a window per type are the next two slices of #417.
The command-targeted property names ride the kept registry (#1299)
Section titled “The command-targeted property names ride the kept registry (#1299)”Settlement only looks at observations of a property some command type targets, and every batch
carrying a property sample read that set from command_type inside its transaction, though it
changes only when a command type does. The ingest consumer now keeps the set beside the registry it
already keeps between batches, rebuilt when the catalog fingerprint moves, which now covers command
types too, and hands it to each batch
(ADR-1299).
A node batch costs 18 statements instead of 19, with no new read. A command type created between two batches is honored by the second: a test creates one, issues a command, and the next batch’s observation settles it.
The console inbox and alarm subscriptions page (#1355)
Section titled “The console inbox and alarm subscriptions page (#1355)”The console half of people as notification targets. A bell in the top bar counts the caller’s
unread inbox entries (polled every 30s, as the alarm surfaces poll, and refreshed on every mark), and
Inbox lists them newest first with mark read, mark all read, an unread filter, and an empty state
that names what reaches it. Profile, Alarm subscriptions lists the caller’s personal rules (pause,
edit, delete) and opens one in a drawer whose when is checked as it is typed and whose Test judges
the draft against the caller’s own recent alarms through POST /auth/me/action-rules:testDraft, so a
first subscription is tried on real alarms before it is saved. The action expression field gained a
keyless mode for a site that judges no sample key.
The console starts anything from a template (#1329)
Section titled “The console starts anything from a template (#1329)”The /templates stub became a live Templates page inside the Catalog: the shipped catalog across its
four kinds, filtered by a kind facet that lives in the address. The Catalog’s three Templates slots
(once soon, #615, #616, #617) open it filtered, each counting its own kinds of one shared list, and the
Systems slot reaches the standard templates too. A row’s panel renders what the template creates from
the template body itself: a standard’s roles and choices, a system’s role fills, a place subtree as an
indented tree, a component’s product and preset. Start from this template, gated by the create
permission of what it makes, opens the kind’s form and posts the matching :createFromTemplate; a refusal
reads as the API words it. A success lands on the created row with ?from=, where one shared notice
says the row is the operator’s own and nothing follows the template. The standard, system, place and
component create flows carry Start from a template, carrying the place as the form’s default. A
place is offered and posted by its dotted path. The stale “start a location type” hint is gone: a
location type is not a template kind.
The ingest registry is kept between batches (#1279)
Section titled “The ingest registry is kept between batches (#1279)”The footprint harness (#1272) showed the telemetry consumer reading all three catalogs in full on every node batch: the metric, property and event types, each with its calc-rule writer. The catalogs change only when an operator edits a type, so nearly every one of those reads returned what the previous batch had read.
The consumer now keeps the registry between batches. Before each batch it reads one fingerprint
(storage.CatalogFingerprint), a digest of every row version of the four tables the registry is
built from. It rebuilds the registry only when that moves, so a type created, renamed or retired is
honored by the very next batch
(ADR-1279).
A drift guard fails if the catalog list queries ever read a table the fingerprint does not cover.
Measured on the standard workload:
| Per node batch | Before | After |
|---|---|---|
| Statements | 31 | 29 |
| Allocations | about 1,267 | about 812 |
| Bytes allocated | about 135 KB | about 74 KB |
Wall-clock time moved within the host’s noise. TestRegistryFollowsTheCatalogBetweenBatches proves the
cache follows the catalog. A metric type created between two batches lands on the second. A calc
rule that starts writing that metric makes the next node sample of it drop. A cache that never
rebuilds fails it.
The template catalog ships in the binary and reads over the API (#1323)
Section titled “The template catalog ships in the binary and reads over the API (#1323)”A new internal/template package holds the catalog: kind-tagged YAML embedded in the binary, in four
kinds (standard, system, place and component templates), loaded and validated without a database and
never written to one. The loader refuses an unknown field, a role naming half a choice, a variant whose
parent the catalog lacks, a component preset that sets the address, a system template that leaves a
role unfilled or answers a choice two ways, and two templates of one name. A build test dry-runs every
shipped template against the seeded catalogs, so a release that withdraws a product, a type, a driver
input, a property or a location type a template still names fails the build, naming both. The shipped
standards are now the standard templates (the seed still plants them from there until the fork ships),
and the templates carry the room metric contract and the layouts the dev seed adds by hand today. GET /templates and GET /templates/{template} read the catalog under template:read on the viewer floor,
and the CLI and MCP tools are generated from them. The templates page renders the catalog from the
seed-facts artifact, and the ADR-0071 lint narrows so the kind names can be used
(ADR-0827).
The template layer’s fences re-point, and ADR-0827 records what the layer owns (#1322)
Section titled “The template layer’s fences re-point, and ADR-0827 records what the layer owns (#1322)”The first slice of #827 is docs only. Every fence that cited #827 for collection authoring described
the ComponentTemplate model (functions as a trigger plus a step DAG, Expr extractors, inputs
bound at :apply), which the driver spec replaced; the four collection fences and the glossary’s
edge-function terms now read as historical records pointing at the driver spec, with the still-wanted
pieces (an Expr transform on an extractor, a step guard, Omniglass functions, function-run bindings)
re-pointed to #1331. The registry scope ladder drops its template rung and moves to #318, on the
glossary and the properties page, whose section is now “Key scope: org and official”. The nodes
page’s config-propagation fence became a built note: the node re-pulls its whole worklist every tick,
edits and spec changes re-derive tasks server-side, config_generation rides the reply, and :apply
retired. Drift named by the definition is fixed: the spine’s Collect section names the driver as the
reusable shape, the cascade’s template bands are the product and standard classifier bands (#1255,
#184), a signal is settable through the driver’s command binding, the identity page says shipped
location types seed official: true, and the utilization KPI line names drivers. The templates page
now carries the approved design of record (four kinds, GET /templates, :fork and :instantiate,
provenance in the audit detail, no versioning, shipped templates only) inside its #827 fence, with the
trust surface fenced on #318
(ADR-0827).
A bare catalog name resolves local, then og (#1432)
Section titled “A bare catalog name resolves local, then og (#1432)”Slice 2 of namespaced catalog keys (#318,
ADR-0318). A
catalog’s name is now unique within its namespace, not across them, on every catalog but
severity_level, so a release that ships a name an operator already holds writes its og row
beside the operator’s local one instead of skipping it.
A bare name resolves along the search path: the operator’s row first, then the platform’s. In SQL it
is <table>_in_effect(); in Go, storage.ResolveNameLane for the three signal catalogs (one name
space across them, generalizing #1307’s cross-catalog rule) and storage.InEffect for a list a
caller indexes by name. Every by-name read in the storage package, about 240 statements, now goes
through the search path, by uuid through any row, or into one named namespace;
TestNoByNameLookupSkipsTheSearchPath scans the package’s SQL, constants and dynamic tables
included, and fails on a raw by-name read of a namespaced catalog.
The seed resolves a shipped row’s references inside og, so shipped content always binds to
shipped rows: a product’s vendor, driver, type and contract, a child type’s parent, a command
type’s target, an event rule’s key and events, and a driver’s validation. The seed upserts return
the row’s id where the seed needs it back.
Two rulings: a role name both namespaces hold reaches neither (fail closed), and severity levels keep
names unique install-wide (overridden, never shadowed). An operator’s own create or rename of a
local row onto a name og holds is refused as before, so a shadow arises only from a release.
A driver function reads records and names each one’s identity (#1386)
Section titled “A driver function reads records and names each one’s identity (#1386)”Slice 2 of the shared-API fan-out (#1282,
ADR-1282).
A poll or a listener may now declare records, a dotted path to an array in a JSON body, and an
identity, a registered property type and the extract that reads its value. The one engine reads
each array element as its own payload, so one poll of a room list, or one batched webhook post,
yields one identified record per room.
Every metric, property and event a record yields carries its identity onto the wire: the
og.v1.TelemetryBatch metric, property and event samples gained an identity field (the match key
and the value), set by the node’s batch builder for a polled or a held-session listener and by the
webhook’s batch for a post. A record whose identity misses lands nothing and is a fault naming
the record; record faults collapse to one per kind per run, and one payload yields at most 2048
records. A JSON number identity keeps its literal, so ids past 2^53 never collide, and
driver.ValidIdentity holds the bounds a server can recheck on a received identity. Log lines
never carry an identity. The driver preview shows each sample’s identity.
At write, the key must be a registered property type a driver may write, the identity’s extract is
held to the transport as an emit’s is, and records is refused on anything but a JSON body. A
function that declares neither field bakes to the bytes it always did:
TestAFunctionWithoutIdentityKeepsItsTaskHash pins a task’s hash and spec captured before the
fields existed.
Nothing resolves an identity to an owner yet, so an identified sample still lands on the conduit’s component with its instance unchanged. The fan-out step that lands it on the bound owner is slice 4.
A node’s own logs can keep their own window (#1350)
Section titled “A node’s own logs can keep their own window (#1350)”A node’s own log lines, until now kept by the same four severity windows as a component’s, can be
kept for windows of their own: node_log_debug_days, node_log_info_days, node_log_warning_days
and node_log_error_days in the retention settings. Each is unset by default, and while it is unset
nothing changes: a node’s lines follow the shared window. Set one and the retention pass prunes that
band of the node’s lines by it, and a component’s still by the shared window.
These are the first settings with no default. The Settings page used to list only the keys the effective document resolved, so a setting with no default would never have appeared there; it now lists every key the schema declares, and an unset one reads not set until an admin saves a value.
A per-node window, so one node under investigation keeps its logs longer, waits for the cascade to gain a node leaf (#1351).
A notification on an alarm’s timeline is a status row (#1413)
Section titled “A notification on an alarm’s timeline is a status row (#1413)”Every timeline line read ”
The pill is a new primitive, NotificationStatusPill, worn by both the timeline and a blade’s
Recent notifications, which drops its own status table: queued reads on its way, sent
sent, failed failed, and suppressed snoozed in the neutral pill, each with a hint that
teaches the status. The blade also stops prefixing a snoozed row’s reason with “Retrying:”, which only
a queued row is. A row a person’s own subscription wrote has no target, so it is addressed by the
person and channel (“alice (email)”, or “a person” to a caller who may not see who, whose row also
withholds its rule). The SnoozeButton’s tooltips say “recorded, not sent” for what they called held
back. The rendered subject rides as the addressee’s hint. No API change.
A snooze that ends on a still-raised condition tells people again (#1382)
Section titled “A snooze that ends on a still-raised condition tells people again (#1382)”The third slice of #1318 closes the snooze’s loop. EndExpiredSnoozes is the deadline sweep: it takes
each snooze past its deadline FOR UPDATE SKIP LOCKED, one per transaction, deletes it, audits
snooze-end from the platform on the condition’s latest alarm and, if an alarm of the condition is
still open, announces it again as a raised transition through the one queue seam, judged against
the rules and memberships as they stand then. :unsnooze takes the same path, audited as unsnooze
naming the operator. The notifier’s 2s tick runs the sweep before each drain, so an announcement is
delivered in the same pass, and a sweep that fails is logged without stalling the drain; it moves to
the time primitive when #419 lands. Two gateways sweeping one database end each snooze once, a rule
disabled during the snooze stays quiet, and a condition that cleared during it gets nothing.
ADR-1318 records the end as the one operator act that queues notifications, and the alarms page’s
cycle-safety rule 2 and the workers page say so.
A snoozed condition’s notifications are written suppressed (#1381)
Section titled “A snoozed condition’s notifications are written suppressed (#1381)”The second slice of #1318 builds the primitive a snooze acts through. notification.status gains a
fourth, terminal value, suppressed, the reason in last_error (the condition is snoozed until <deadline> UTC by <who>). In queueNotifications, the one seam every raise and clear passes, one
lookup of the alarm’s condition (two primary-key reads) 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
and a personal rule’s owner alike, is written suppressed instead of queued or sent; a rule whose
when fails still writes failed. The delivery tick judges a due row’s condition again before it
sends, so a row queued before the snooze and waiting out its backoff is marked suppressed instead
of sent. Nothing changed in the inbox, the drain index or :retry: each already reads only sent,
queued or failed rows, so a suppressed row is never shown, drained or retried. GET /notifications?status=suppressed lists them under the caller’s component scope, and the timeline
carries them as suppressed with the snooze audit lines. The first slice’s review findings are fixed
here too: writes to one condition’s snooze serialize on an advisory lock, so two first snoozes audit
the replacement, and unsnoozing a snooze already past its deadline records nothing.
An identity binding ties a conduit’s identity to the owner it names (#1385)
Section titled “An identity binding ties a conduit’s identity to the owner it names (#1385)”The first slice of #1282 stores the binding the fan-out will resolve through. An identity_binding
row ties one value a conduit component reports under a match key (a registered property type; the
boot seed gains ucc-room-id) to exactly one owner, a system or a component, on an exclusive owner
arc whose CHECK admits no place and no node. The Storage Gateway lists, puts and deletes bindings with
both ends scoped, the ADR-0510
rule applied to a relationship whose owner may sit on either tier: the conduit resolves in
component:read then component:update, the owner in its own tier’s pair, a move also needs update
on the owner it leaves, and a re-put to the same owner writes nothing. Every change is audited in its
transaction, naming both ends. The routes live under the conduit,
GET /components/{name}/identity-bindings and PUT and DELETE on
/components/{name}/identity-bindings/{key}/{value}, with the owner’s system:update published as
the conditional permission and refused with a 403 naming it before anything resolves; the list names
an owner only inside the caller’s read on its tier and counts the rest. The CLI
(omniglass component identity-binding) and three MCP tools are generated from them. The
collection page
renders the table and describes the binding as built, with the fan-out itself still behind its design
fence until slice 4
(ADR-1282).
An operator snoozes an alarm’s condition (#1380)
Section titled “An operator snoozes an alarm’s condition (#1380)”The first slice of #1318 builds the snooze record. alarm_snooze holds one row per snoozed condition,
keyed (component_id, dedup_key) with snoozed_until and snoozed_by, the condition identity of
ADR-0075 rather than an alarm row, so a flapping condition’s every re-raise reads the same snooze.
POST /components/{name}/alarms/{id}:snooze takes a duration from 1m to 7d (a Go duration or
whole days; outside the bound a 422 naming it) and sets or replaces the deadline, and :unsnooze ends
it early, a no-op 200 on a condition that is not snoozed. Both are gated by the new alarm:snooze,
seeded on operator only and resolved on the component tier from that permission through
ResolveActionTarget, exactly as alarm:acknowledge is, and both are audited on the alarm they name
with the deadline before and after, so the timeline shows them with no change to its read. Every alarm
read carries snoozed_until and snoozed_by from a scalar subquery on the snooze’s primary key, so the
UPDATE ... RETURNING reads stay single statements. The CLI gains omniglass component alarm snooze
and unsnooze, generated. The alarms page replaces the snooze half of its “deliberately absent”
caution with a section on snooze as a fact about a condition, its cycle-safety citation now points at
the page’s own rule 2 rather than ADR-0069, and
ADR-1318
records the decision, amending ADR-0109.
An operator’s row shadows an official row of the same name in another registry (#1307)
Section titled “An operator’s row shadows an official row of the same name in another registry (#1307)”A release that seeds a name an operator already holds in another ingest registry (their custom
property x, then a shipped metric x) left the name in two catalogs, and every sample carrying it
was refused. Now the boot seed still upserts the official row, which is always the platform’s, and
on that install the operator’s row shadows it: their series keep landing where they did
(ADR-1307).
The rule is one function, storage.ResolveNameLane, and every reader of a bare name calls it: the
ingest registry, an event rule’s sample key, a calc rule’s key and the catalog a driver spec is
validated against. TestEveryNameResolverAgreesWithTheShadow holds all four to the same answer. A
reserved key held twice is never shadowed. The registry cache reports a shadowed name on a rebuild
and hourly, apart from collisions, and a push of the shadowed official row is refused with a
reason that says it is shadowed. Deleting the operator’s row lets the official one resolve.
The same name in the same registry still cannot coexist: the seed takes the operator’s row over. #318 answers that with namespaced keys, where a bare name resolves the operator’s namespace before the platform’s.
Every alarm audit row carries its before and after (#1442)
Section titled “Every alarm audit row carries its before and after (#1442)”An alarm’s audit rows outlive the alarm (deleting a component removes its alarms today, and cleared alarms will age out with #1339), so each now says on its own what it changed. An acknowledgement and a clear record the field they moved before and after, a first snooze records that no deadline was in force, an unsnooze or a snooze’s end records the deadline going away, and every row names the component, by name even when the console addressed it by id, and the condition it was about. The audit page’s diff drawer shows both sides for each of them.
The rule behind it is the audit table’s: a row’s reference to its subject is a string, never a foreign key, and deleting the subject never touches the row (ADR-1442).
Every catalog key has a namespace, and the seed writes only og (#1431)
Section titled “Every catalog key has a namespace, and the seed writes only og (#1431)”Slice 1 of namespaced catalog keys (#318,
ADR-0318). The 18
catalogs that carry official gain a namespace: og for the platform’s rows, local for the
operator’s, backfilled from official. A CHECK holds that an og row is official.
The boot seed now lands every shipped row in og, and each of its 16 upserts applies its conflict
update only to an og row. Before this, 14 of them took an operator’s row of a shipped name over
and two (notification types and severity levels) refused and stopped the boot; an official event
rule refused the same way. Now the operator’s row is left exactly as it was, the shipped row’s
children (a product’s contract) are not written either, and the server boots. One refusal stays: a
severity rank a differently named operator level holds still stops the boot, naming it, until #1432
settles ranks under namespaces. An official rule or driver meeting an operator’s of the same name is
left unprepared, so it is never compiled against a catalog the operator holds differently.
TestEveryOfficialCatalogIsNamespacedAndTheSeedWritesOnlyOg enumerates the catalogs from
information_schema, so a catalog added later is held to the rule without being listed: it turns
every shipped row into an operator’s, seeds again, and requires each to read back unchanged.
Uniqueness stays on name for now, so on an install where an operator already holds a shipped
name, the shipped row is not written, and a shipped row that names it binds to the operator’s. The
search path (#1432) lets both exist and resolves the seed’s references inside og.
Every collection method runs healthy in the lab (#1370)
Section titled “Every collection method runs healthy in the lab (#1370)”Second in the collection phase of #1266. The dev fleet’s HQ boardroom now runs every collection
method the rest of the fleet does not: the bar’s control socket over wss (kestrel-ws), the
display’s web admin over http digest (boreal-edge-web), the panel’s https API behind its sign-in
form (newtron-panel-web), the healthy twins of the ssh and telnet faults, and a bare icmp probe.
A simulated device’s ssh host key is now derived from its id, so a pinned key survives a simulator
restart. The simulator subscribes a simulated service to its webhook endpoint from the device list
(ADR-1370),
fenced to a lab-marked database and the simulated address block, so the UCC service’s posts arrive from the
start. A simulated booking service pushes the boardroom system’s booking-count and
booking-state through POST /telemetry:push, as a service principal holding telemetry:push
alone on that one system, its token minted per lab run like the node’s.
TestEveryCollectionMethodRunsOnAHealthyLabComponent fails on a seeded driver or registry
transport no healthy simulated component exercises, and on a listed gap the fleet gains (a plain
websocket, #1414; the unbuilt push listener, syslog and traps). make test-lab proves it live: each
method up with a value its driver emits landed from it (a fanned-out one on its bound owner), and a
system holding the push.
Migrators take turns on an advisory lock (#1288)
Section titled “Migrators take turns on an advisory lock (#1288)”dbmate takes no lock by default, so two servers starting after one upgrade raced to apply the same
pending migrations and all but one failed on a duplicate object. A two-replica Helm release did
exactly that in its migrate init containers.
migrate.Run now holds a Postgres advisory lock (migrate.LockKey) from the schema guard through
its last migration, on one pinned connection, and turns on dbmate’s own migration lock for the
migrating connection as a second fence. The first run migrates; the rest wait (up to five minutes),
then judge the schema the first one left and find nothing to do. Holding the guard inside the lock
closes the window #1289 left: a run that waited now refuses a schema a newer binary moved while it
waited, rather than booting on it.
TestConcurrentRunsApplyEachMigrationOnce races four runs at an empty database and fails without the
lock on a duplicate catalog key. TestRunGuardsTheSchemaUnderTheLock holds the lock, lets a run queue,
stamps a future migration and releases; the run must return ErrSchemaAhead. Whether the chart runs
migrations as a Helm hook Job or keeps the per-replica init container is still open on #1288; the
lock is the guarantee either way.
Notification targets and action rules have console pages (#1346)
Section titled “Notification targets and action rules have console pages (#1346)”The admin half of the notification lane moved from the API and CLI into the console. Catalog, under
Actions now holds Action rules and Targets beside Notifications, each a FlatList over its
registry with a blade, a create Drawer and an edit Drawer, the Rules page’s shape.
A target’s panel says where it sends for every kind (a webhook’s URL masked to scheme and host, a
mailbox’s addresses, a group or a person with the channels it tells on), reveals a webhook’s URL whole
with one audited :reveal per click, and sends a test to a webhook or a mailbox, showing what the
receiver answered or why it did not take the message. It names the action rules that send to the target
(the reason a delete is refused) and lists what was recently sent to it. Targets is admin-only like the
routes behind it: notification_target is a sensitive resource, so its subrail entry is off the read
floor.
An action rule’s form writes its when in the console’s one expression editor at the action site, checked
as it is typed and refusing a save until it compiles; a refusal the server places on when lands beside
the editor. Its panel carries the Disable and Enable switch and the rule’s recent notifications, picked
from the newest 500 the caller may see, since GET /notifications filters by target but not by rule. A
person’s own subscription can share a platform rule’s name, and its rows travel through no target, so
they are left out.
The Boreal media player is simulated and collected (#893)
Section titled “The Boreal media player is simulated and collected (#893)”The dev fleet’s four Boreal Cast M1 signage players had no simulator profile, so the lab placed them
and collected nothing from them. They now have one, and a driver of their own. The catalog had put
them on http-json, but that driver is the Tessellate sensor’s: it reads occupancy behind the
sensor’s own header, and nothing a media player reports.
The profile is one face, the way signage players are integrated with a content system: an HTTP JSON
API behind an api key in the X-Boreal-Key header. Its status reports identity, uptime and how full
the player’s storage is; its playback route reports whether it is playing and which item, and sets
play, pause or stop. While it plays, a behavior steps through its four-item playlist, wrapping at the
end; paused or stopped, the item holds. Storage drifts slowly between bounds. A scenario timeline can
stop a sign or fill its disk later.
The new boreal-cast-api driver reads identity and storage-utilization (the player’s percentage, stored
as the canon’s ratio) every five minutes and
playback-state and content-name every 30 seconds, three signals new to the boot seed’s canon. The
lab seeds the player’s key as a platform secret beside the other simulated credentials, and attaches
the driver with it; the player leaves coverage.yaml. The simulation page now states the attach rule
instead of listing each driver.
The Boreal projector is simulated and collected (#899)
Section titled “The Boreal projector is simulated and collected (#899)”The auditorium’s Boreal Beam 340 had no simulator profile: a projector is not a display, so the Edge
profile could not stand in, and the lab placed it and collected nothing from it. It now has a profile
of its own and a driver in place of snmp-generic, which read only sysDescr and sysUpTime.
The profile follows the Boreal convention the Edge displays set. A web admin behind HTTP Digest
reports the projector’s state as JSON and sets its power, its shutter and its input; SNMP on the
Boreal enterprise arc answers the same state, the power state where every Boreal agent keeps it and
the projector’s own branch at .55520.6: light-source hours, shutter, input and temperature. The
light source ages only while it is lit, a minute’s hours a minute, a behavior a scenario timeline can
run faster to walk the source toward its service threshold.
The new boreal-beam-snmp driver reads identity every five minutes and, every 30 seconds,
power-state, video-input and two signals new to the boot seed’s canon: light-source-hours, the
number a projector is serviced by, and shutter-state, open or closed, since a closed shutter blanks
the picture with the projector still on. The lab attaches it with the community secret every SNMP
driver there uses, and the projector leaves coverage.yaml.
The browser e2e tier and the docs screenshots ride the lab (#1267)
Section titled “The browser e2e tier and the docs screenshots ride the lab (#1267)”The follow-up the lab epic filed: make test-e2e, make docs-shots and make docs-shots-check now
bring up a throwaway lab through web/e2e/lib/lab.sh, the same way the demo pipeline and the probe
already did, and web/e2e/lib/stack.sh, the last hand-built Postgres-and-server recipe, is deleted.
Each target builds first (make), since the lab is the binary and the image one build makes; the CI
jobs for both drop their Go toolchain step accordingly.
The e2e tier’s lab is seeded with the empty scenario, so the CRUD round-trips start from a fresh
install as before, signed in as the lab’s dev login. The screenshots needed a lab whose pages hold
still: lab run gains a fourth hidden script flag, --no-node, allowed only on a throwaway lab, which
seeds the dev fleet without the simulated fleet’s wiring and enrolls and runs no node. That is exactly
the fleet the old capture seeded (seed-dev --sim-fleet=false, no node), and 22 of the 23 masked
baselines came back byte-identical. The capture hides the lab’s banner with a style rule on its
data-testid, since the docs show the product an operator runs, not a lab.
The one baseline that moved is the audit page’s, and for a reason worth knowing: the lab proves its
login works by signing in, and mints the script’s token through the API with that session, so the
trail now carries a login row by dev and the token’s credential create is by dev rather than
system. A second capture reproduced the new baseline exactly.
The conduit’s page binds the identities it reports (#1389)
Section titled “The conduit’s page binds the identities it reports (#1389)”Slice 5 of the shared-API fan-out (#1282, ADR-1282). A component that speaks for many owners gains an Identities card on its Overview, under Collection, and a component that speaks only for itself shows none. The card reads the two routes slice 1 and slice 4 built: Fans out to, each binding with its owner linked and the owners the caller cannot read counted, never named; and Heard, not bound, the conduit’s inbox with each identity’s count, last heard and the keys it carried. An unbound row binds in place through a picker over the systems and components the caller may update, and the row moves up; a refusal (403, 404 or 422) reads in plain words against the row, and a 404 reads the owners again so a vanished one leaves the picker. A bound row unbinds after a confirm. Both lists poll while the card shows, so an identity heard for the first time appears without a reload.
In the lab, binding the one identity the simulated UCC platform reports unbound (zr-boardroom-b) from the card made the
next poll land its call state on the chosen system, observed, its source naming the conduit and its
endpoint (the component guide).
The console snoozes an alarm and shows it (#1383)
Section titled “The console snoozes an alarm and shows it (#1383)”The last slice of #1318 puts snooze in the console. SnoozeButton sits beside the acknowledgement
wherever an alarm offers one: the component page’s and the component blade’s Why strip and the
alarms panel, where a recently cleared alarm offers it too, since silencing a condition that just
cleared is how a flapping one is quieted. Unsnoozed, it opens a Kobalte popover of four durations
(15 minutes, 1, 4 and 24 hours); snoozed, it is Unsnooze. It is gated on alarm:snooze alone,
outside edit mode as acknowledging is, and its tooltip teaches how a snooze differs from
acknowledging, opting out and pausing a rule. A snoozed alarm wears a snoozed until chip on the
badge-snoozed token, its tooltip naming who set it, which a viewer sees without a control. The
alarm timeline words the snooze’s audit lines (snoozed, unsnoozed, snooze ended) and a suppressed
notification as held back from its target with the reason, muted rather than in the error hue.
The operator guide gains a section on snoozing and the admin guide’s delivery section reads a
held-back row. A rule’s open-alarms list, which offers no acknowledgement and carries no snooze
state, is left as it was.
The ingest fans each identified value out to its bound owner (#1388)
Section titled “The ingest fans each identified value out to its bound owner (#1388)”Slice 4 of the shared-API fan-out (#1282, ADR-1282). The ingest consumer gains one fan-out step that the node lane and the webhook lane both pass. It splits a batch’s identified samples from the conduit’s own, resolves every identity against the conduit’s bindings in one read, and lands each bound value on its owner in the batch’s one transaction, under its receipt: observed, at the empty instance, its source naming the conduit and its endpoint. The conduit is the component the batch is already confined to (the node’s own task’s component, or the webhook token’s endpoint’s component), so a payload names only an identity, never an owner, and a batch confinement orphans is dropped before any identity is read.
The Storage Gateway gains a fan-out writer class: a collected key only, on an owner one of the
conduit’s bindings names, re-read in the write’s own transaction, so a binding deleted mid-flight
refuses the row. A batch about two hundred owners resolves them in one read and one fence; a query
count pins that it issues the statements a batch of three does. An identity no binding places lands
on no owner and is upserted into the conduit’s new unbound inbox (a count, first and last heard, the
keys carried; 1024 per conduit, aged out after seven days), read at
GET /components/{name}/unbound-identities; binding it lets its row go. A received identity is held
to the engine’s bounds again on the server. A sample with no identity lands exactly as before.
One acceptance behavior waits on another issue: event rules do not yet judge a system’s samples (#1002), so a rule over a fanned key raises its alarm on a component owner today and on a system owner once that lands. The discovery rule that would propose bindings from the inbox is #1395.
The lab footprint measures a running lab, per container (#1277)
Section titled “The lab footprint measures a running lab, per container (#1277)”The ingest footprint (#1272) counts what one node batch costs the database, but not what a lab
costs to run. make lab-footprint now measures that. It brings up a throwaway lab at a cadence
profile and warms it up. Over N windows it then reads each container’s CPU and working set from
its cgroup, rows a minute per lane, and the growth a day of each table, the database and the WAL.
Last it times the 24 h and 30 d series reads with the server and Postgres held to one vCPU. Each
figure is the median, with the lowest and highest window beside it. It is a diagnostic, never a
gate (ADR-1277).
When it finishes it stops the lab and checks that nothing of its project is left.
The lab’s node cadence is now a named profile: lab (a learner’s), walkthrough (a recording’s,
probing on every check-in) and default (the product’s 30 s). The lab guide renders the profiles
from the planner.
The first reading, on build ccbb5d56, the dev fleet (41 systems, 215 components, 609 tasks): a
2-minute warm-up, then 5 windows per profile (one minute each, two at default, so a window
holds four of its check-ins), run back to back. The host was shared, with a load average of 6 to
17 on 12 cores, so CPU reads high and the ranges are wide. At default the simulator re-pulls its
list at its own 10 s rather than the lab’s 2 s, so the figure carries as little simulator traffic
as a lab can.
| Per lab | walkthrough (2 s, probe every check-in) | lab (2 s, probe every 10 s) | default (30 s) |
|---|---|---|---|
| Metric rows a minute | 13,257 (13,000 to 13,342) | 2,930 (2,929 to 2,961) | 1,205 (1,044 to 1,366) |
| Metric table a day, with indexes | 4.21 GiB | 966 MiB | 376 MiB |
| Database a day | 5.42 GiB | 1.25 GiB | 556 MiB |
| WAL a day | 11.77 GiB | 2.71 GiB | 1.50 GiB |
| CPU, server / node / db (millicores) | 222 / 88 / 289 | 114 / 28 / 145 | 28 / 13 / 90 |
| CPU in all | 596 (580 to 643) | 289 (285 to 313) | 131 (129 to 133) |
| Memory, server / node / db (MiB) | 44 / 128 / 100 | 42 / 130 / 79 | 41 / 134 / 76 |
| Series read, 24 h / 30 d, one vCPU | 3.9 / 4.2 ms | 3.5 / 2.9 ms | 2.9 / 2.8 ms |
This reproduces the 2026-10-27 hand measurement at 2 s, about 13,000 rows a minute. It also reproduces the 2026-10-28 learner’s lab figure of 2,733. At 30 s it reads 1,205 against about 1,000, because the fleet has grown since. CPU at 2 s reads 596 against about 470, on a host this busy. The reads are fast because a lab minutes old holds minutes of history; the 1,000-system lab (#1357) measures them on volume.
The Lyra microphones are simulated and collected (#894)
Section titled “The Lyra microphones are simulated and collected (#894)”The dev fleet’s twenty Lyra microphones, ten Arc A2 ceiling arrays and ten HX-1 wireless systems, had
no simulator profile, so the lab placed them and collected nothing from them. They now have two, one
per product: the issue asked for one profile serving both, but the catalog serves variants of one kind
of component from a shared profile and never a different kind, and a ceiling array and a wireless
system are different microphones. Each also has a driver of its own in place of snmp-generic.
Both answer SNMP on a Lyra enterprise arc (.55530): mute and the input level in dBFS at .1, and
identity at .5. The HX-1’s receiver adds its transmitter’s battery at .2, which the Arc, wired
and powered over its network cable, does not have. A small HTTP API behind a Lyra header key mutes
and unmutes either. The level rides speech within a talker’s band, and the HX-1’s battery drains a
tenth of a percent a minute, about sixteen hours from full: behaviors a scenario can drive toward a
silent place or a dead transmitter.
lyra-arc-snmp reads mute and audio-level; lyra-hx-snmp reads those and battery-charge, the
receiver’s percentage stored as the canon’s ratio. A ceiling array has no battery, so the two cannot
share one driver without a fault on every poll. audio-level and battery-charge are new to the boot
seed’s canon. The analog gooseneck, the Lyra GN-12, stays passive.
The metric lane stores narrow rows, partitioned by month (#1275, #420)
Section titled “The metric lane stores narrow rows, partitioned by month (#1275, #420)”A metric sample is now (id, series_id, ts, value). What it is a sample of (the type, the owner,
the instance, the provenance, the source, and the node that collected it) is one row of a new
metric_series table, shared by every sample of the series; a command’s intended rows moved to
metric_declared, which no retention pass touches. The make footprint harness, five runs on the
same host before and after, put the row at 60 bytes of heap and 39 of index (after REINDEX), down
from 126 and 91, and WAL at about 310 bytes an observation, down from about 459.
metric is partitioned by month from birth. The server keeps this month and the next two, checking
at boot before ingest starts and on every retention pass, and a batch whose month has no partition
makes it and lands rather than being dropped as refused, the blocker #420’s review found. Retention
drops a month wholly past every window, detaching it concurrently, and keeps the window exact inside
the rest. The metric floor is now the latest row within retention; property keeps its floor and is
not partitioned. The upgrade copies every wide row in one migration and refuses unless the counts
agree. event, log_line and node_log partitioning is #1417.
The Polaris amplifier is simulated and collected (#898)
Section titled “The Polaris amplifier is simulated and collected (#898)”The dev fleet’s five Polaris Amp 4-100s had no simulator profile, so the lab placed them and collected
nothing from them. They now have one, and a driver of their own in place of snmp-generic, which read
only sysDescr and sysUpTime.
The profile serves two faces from one state. SNMP, on the amplifier’s branch of the Polaris enterprise
arc (.55540.3), answers the chassis power, the protect state, the heatsink temperature, the fan, and
a channel table of output level, clip and load for its four channels. An HTTP JSON API behind the
Polaris header token enters and leaves standby and resets a latched protect. Temperature, fan and the
output levels drift as behaviors, each in a band, so a scenario timeline can drive them later.
The new polaris-amp-snmp driver reads identity every five minutes and the operating state every 30
seconds: power-state, protect-state, temperature and fan-speed. The last three are new to the
boot seed’s canon, named for the measurement rather than the owner, so a DSP’s chassis temperature can
land on the same name. The channel table is served but not yet collected: per-channel values need a
driver to name an instance (#1252), and a channel’s load reaches the speaker it drives through the
fan-out (#1367).
The lab attaches the driver with the same community secret snmp-generic uses, and the amplifier
leaves coverage.yaml. The admin drivers guide’s hand-written list of the shipped drivers, already
two short, now links to the set rendered from the seed.
The simulated UCC platform speaks for many rooms (#1387)
Section titled “The simulated UCC platform speaks for many rooms (#1387)”Slice 3 of the shared-API fan-out (#1282,
ADR-1282).
The simulator gains ucc-platform, the meeting platform’s account-wide plane: one service whose
room list answers every room’s meeting state and participant count, whose meeting routes post a
start and an end naming the room by id, and whose report route posts one batched state naming every
room. A room id the account has not seen joins it, and a request’s room id reaches the device’s
state only as one path key, through a new segment template function.
Two shipped drivers read it. ucc-rooms (new) polls the room list as records, each naming its room
by the ucc-room-id identity. ucc-webhook gains three listeners for the platform’s room-naming
posts, each declaring the same identity; its per-room listeners are unchanged, so the lab’s per-room
UCC services land on their own component as before (their retirement is #1390). The dev fleet
carries the platform at headquarters, polled and subscribed, and binds four of its rooms to their
systems; the fifth room is left unbound for the inbox to show.
A series chart is truthful at every zoom (#1269)
Section titled “A series chart is truthful at every zoom (#1269)”The series reads gain a resolution. Given it, GET /{components,systems}/{name}/metrics/{metric}/samples
and the property sibling return every regular bucket of the window instead of the newest raw rows:
epoch-aligned, empty buckets present with count: 0, 30 days at one hour exactly 720. A metric bucket
carries min, max, avg, count and last; a property bucket count and last. The body carries
covered_from, the edge of the type’s effective retention, and nothing is read beyond it.
The chart draws a metric bucket as a min/max band under the avg line (a one-sample spike survives any zoom) and a property as steps. A system’s Data table now reads a day at five-minute buckets. The OpenAPI document, the typed client, the CLI and the MCP catalog are regenerated.
Not in this slice: the gap break from a series’ cadence (the avg line runs across an empty bucket meanwhile) and a failed check drawn as its outcome: that is #1475, after task liveness (#1264).
The Kestrel codec and camera are simulated and collected
Section titled “The Kestrel codec and camera are simulated and collected”The Kestrel Relay C1 codec and Gaze P2 PTZ camera now have simulator profiles and drivers of
their own, so the dev seed’s six placed Gaze cameras report their class from the camera’s own API
instead of identity and uptime alone.
- Relay C1 (
kestrel-relay-api): call state, participant count, content sharing state and the count of connected peripherals. The profile serves dial, disconnect, share and stop, and a reboot. - Gaze P2 (
kestrel-gaze-api): pan, tilt, magnification (thezoom-levelmetric), the recalled preset and the tracking mode. A preset recall or a position set moves the camera and puts it in manual tracking; while it tracks, a behavior drifts pan and tilt inside the mount’s limits. - Neither is a video bar. Each has its own profile and its own driver, and
kestrel-apistays the VRoom’s. Nothing is shared withkestrel-vroom’s profile. - New seed signals: metric types
pan-angle,tilt-angle,zoom-level,camera-presetandperipheral-count; property typescontent-sharing-stateandtracking-state. - The field is
magnificationin the camera’s API, because the catalog lint refuses real company names and the lab’s fictional vendor should not borrow one in its payloads. - The ratchet shrinks. Both products leave the known-gap list in
coverage.yaml.
No Relay C1 is placed in the dev fleet yet (#1446), so the Gaze cameras are the live check; the Relay is covered by the profile test and the node test that runs both drivers against both profiles. The class’s full standard signal set is #1360.
The Meridian switcher and extender are simulated and collected (#895)
Section titled “The Meridian switcher and extender are simulated and collected (#895)”The dev fleet’s seven Meridian devices, MX 84 presentation switchers and XL-1 AV extenders, had no
simulator profile, so the lab placed them and collected nothing from them. They now have two, one per
product: the issue asked for one profile serving both, but the catalog serves variants of one kind of
component from a shared profile and never a different kind, and a switcher and an extender are
different components (TestEveryDeviceProfileNamesASeededProduct holds a profile to one component
type). Each also has a driver of its own in place of snmp-generic, which reads only sysDescr and
sysUpTime and so cannot reach a signal of the device’s class; like every driver, each is named for
its product (meridian-mx-snmp, meridian-xl-snmp), not the device class.
Both answer SNMP on a Meridian enterprise arc (.55550): the switcher’s branch at .1, the
extender’s at .2, identity at .5. The switcher reports its routed input, the signal on that input,
and a table of the signal on each of its four inputs. The extender reports the link to its transmitter
and the signal on its one input. A small HTTP API behind a Meridian header key reports the same state
as JSON; the switcher’s POST /api/route changes the routed input, and the signal it reports for the
routed input follows the new route at once and then each tick, so a source pulled from the routed
input shows as no signal. A route to an input the switcher does not have is refused and changes
neither the routed input nor its signal. Both reboot over HTTP, which restarts uptime and retrains the extender’s
link.
meridian-mx-snmp reads video-input and signal-state; meridian-xl-snmp reads
link-state and signal-state. signal-state (present or absent) and link-state (up or down) are
new to the boot seed’s canon. The per-input signal table is served for the class’s fuller signal set
(#1360), which waits on a driver naming an instance (#1252); the drivers read only the routed input’s
signal today. Both products leave coverage.yaml.
The Newtron processor and scheduling panel are simulated and collected (#896)
Section titled “The Newtron processor and scheduling panel are simulated and collected (#896)”The dev seed places Newtron Core 3 control processors and Slate 5 scheduling panels, and both were
listed in coverage.yaml with no profile, so the lab collected nothing from them. Each now has a
profile matching what the device is.
The Core 3 speaks the panel’s room and source control (GET INPUT, SET INPUT, the input, scene and
log subscriptions) and its own surface: the program state (GET PROGRAM, SET PROGRAM, pushed as
EVT PROGRAM), the control ports and the count of connected panels. The Slate 5 answers its room’s
booking (GET BOOKING, BOOK, RELEASE, GET NEXT, pushed as EVT BOOKING). Both keep an
uptime computed from a boot epoch, and both leave coverage.yaml.
The room and source control is defined once. A device interface takes a shared fragment in with
include: (surfaces/nvp-room.yaml), expanded by the simulator’s profile loader, and the Panel 7
now includes it too in place of its own copy; a test holds that the processor answers everything the
panel does. The decision, and the product-catalog primitive it declined, is recorded in ADR-0896.
Two new drivers collect the class signal, both on the Newtron line protocol: newtron-core-nvp reads
video-input and the new program-state property (running or stopped), polled every 30 seconds and
pushed on change, and newtron-slate-nvp reads booking-state. Each reuses the newtron-nvp
poll, listeners and command blocks by YAML anchor rather than restating them. The two products move
to their drivers; newtron-nvp and the Panel 7 are untouched. The control ports and the connected
panel count are served but not yet collected: the class’s full signal set is #1360.
The power conditioner is simulated and collected (#1368)
Section titled “The power conditioner is simulated and collected (#1368)”The dev fleet’s power conditioner was the last component with no product, which left the lab nothing to simulate for it and #1359 holding an allowance for it. It is now a Ferrite PDU 4C, a new fictional rack power vendor, with a simulator profile and a driver of its own, and the allowance is gone: a dev seed component with no product is an error.
The profile serves one state over two faces. SNMP, on the Ferrite enterprise arc (.55560), answers
the mains voltage in millivolts, the total current in milliamps, and an outlet table of name, state and
current for the four outlets, with identity beside it. A read-only JSON document carries the same state
in the shape a networked PDU publishes it (an agent block, a global measure, an array of outputs). Outlet
control is not modeled on either face. The mains and the outlet loads drift as behaviors; an outlet that is
off draws nothing, and the total is the sum of the outlets.
The ferrite-pdu-snmp driver reads identity every five minutes and, every 30 seconds, uptime,
voltage, current (both scaled from the agent’s whole numbers to volts and amps) and four outlet state
properties. The outlets are four named properties, outlet-1-state to outlet-4-state, because a driver
cannot yet name an instance (#1252); when it can they collapse into one property with an instance per
outlet.
The class already existed: power-device (stem power) was in the component types, so no standard was
added. The component’s generated name follows its type, so device-1 is now power-1, and it keeps its
operator label “Power Conditioner”.
The recording service is simulated and collected (#1363)
Section titled “The recording service is simulated and collected (#1363)”The dev fleet’s Fleet Recording Service was a generic-service the lab placed and collected nothing
from. It now has a simulator profile, a product and a driver of its own, so the lab shows how
Omniglass watches a software service: reachable over HTTPS, healthy by its own health endpoint, with
the counters a recording service reports.
The recording-service profile serves an HTTPS JSON API behind an api key header
(X-Recording-Key). GET /api/health answers a status, a version and an uptime; GET /api/work
answers the recordings in progress, the queue depth, the storage used and the last failure. The work
drifts as behaviors, each in a band. POST /api/recordings/fail fails a recording: it records the
failure and names it on the service’s live event feed.
The new recording-service-api driver polls both routes every 30 seconds and holds the feed open.
It lands service-state and software-version (new properties), active-recording-count and
queue-depth (new metrics), and storage-utilization, the ratio the Boreal Cast player already uses,
beside uptime. A failure on the feed lands as a recording-failed event on the component carrying
the recording’s id and the reason.
The recording-service product (Shinra Cloud, generic-service classification) carries the driver,
the dev fleet’s recording service moves onto it, and the lab attaches the driver with a platform
secret holding the key. The service leaves coverage.yaml’s known-gap list. The issue asked for
http-json, which is the Tessellate sensor’s driver (plain http, a census key, two polls); the
service needs https, three counters and an event, so, as for the Cast player (#893), it has a driver
named for its product (ruled on the issue).
A catalog count no longer fails the screenshot gate (#1482)
Section titled “A catalog count no longer fails the screenshot gate (#1482)”A PR that only seeds a driver or a catalog type touches no UI, yet it failed make docs-shots-check
on five shots (action-rule-new, notification-target-new, templates, templates-dialog,
templates-system) while main passed on the same base. The cause was one digit: the Catalog
subrail shows each registry’s live row count (Drivers, Property types, and the rest), every one of
the five pages sits under that shell, and a seeded row moves a count by one. The diff was a 12 pixel
wide column in the rail, identical on all five.
The counts are the seed’s, not the page’s, so the baseline now paints over them. The mask
primitive gains a right-anchored declared box ({ selector, width, align: right }) because the
count is right-aligned at the end of a fixed-width row, so its right edge holds still and its left
edge moves with its digits, which the top-left box could not hold. A standing mask list
(STANDING_MASKS in shotmasklib.mjs) applies it to every shot wherever the rail renders, so a
shot added under the Catalog later does not need to remember it. The clean shots the docs embed
still show the counts live; the tolerance stays zero.
The alternatives were a fixed minimal catalog fixture (the shots would stop photographing the catalog an operator sees, and the fixture would be a second seed to keep honest) and pinning each picker’s state (nothing but the rail was moving). The labels, the rows and the rest of the rail stay in the baseline, so a renamed entry or a changed button still fails the gate.
The Boreal Edge display reports its power and input (#1372)
Section titled “The Boreal Edge display reports its power and input (#1372)”The lab’s Boreal Edge displays were attached to snmp-generic, which read only model-number and
uptime, so a display could be switched off or pointed at another source and the console would not
notice. They now carry a driver of their own, boreal-edge-snmp, that reads the display’s identity
every five minutes and, every 30 seconds, uptime, power-state and video-input from the Boreal
enterprise arc the Edge profile already serves.
The choice was a new SNMP driver over extending boreal-edge-web: the surface exists, the web admin
sits behind HTTP Digest and a login secret the lab does not attach, and the Boreal convention keeps
telemetry on SNMP (the Beam projector’s driver is the precedent). Firmware is left out because the
profile does not serve it over SNMP.
No signal was missing from the canon, so the simulator gained none. power-state and video-input are
declared by the seed catalog (property_types.yaml) and by the driver’s emits, which the seed validates
against it; they are live readings, so the products’ property contract does not list them. One simulator fix rode along: the input route accepted any string, including
a source the display has no port for, and now rejects it with the same enum the profile lists. A POST
to the power or input route changes what the driver reads on its next poll. The lab test states the
floor, power state and input collected on every placed display, until #1371 holds it.
The Newtron touch panels report their room’s scene (#1494)
Section titled “The Newtron touch panels report their room’s scene (#1494)”The lab’s Newtron touch panels reported only video-input, below the class-signal floor ruled on #1266.
They now report a second signal of their class: the room’s scene (idle, presentation or video
conference), as the new scene-state property in the boot seed’s property catalog.
The newtron-nvp driver reads it on a 30-second poll (GET SCENE), so a panel carries a value from its
first poll and not only after a scene change. The scene pushes (EVT SCENE) still land as raw log lines,
the unclaimed-push example the lanes test holds. The simulator’s shared
nvp-room surface gains GET SCENE and SET SCENE, so the Core 3 processor, which includes the same
surface and reuses the panel’s poll and listener blocks by anchor, reports it too, with no copy.
The lab’s own integration test states the floor for the panels: after the warm-up, every placed Panel 7
carries a collected scene-state from an endpoint of its own. It stands until #1371 holds the floor for
every class. The panel’s full class set (events and log lines per class) stays in #1360.
The Polaris DSP reports its program mute and level (#1493)
Section titled “The Polaris DSP reports its program mute and level (#1493)”The lab’s Polaris DSP 16s were collected by snmp-generic, which reads model-number and uptime
and nothing of what a DSP does. They now carry the class floor (#1266): a mute and a level read off the
DSP’s own API.
The polaris-dsp-16 simulator profile serves the DSP’s program output, the bus that feeds the room,
from one state. Its SNMP agent answers the output’s mute and level on the DSP’s branch of the Polaris
arc, and a new HTTP route on the DSP’s API mutes and unmutes the bus, so the value the driver
reads follows the toggle. The level drifts as a behavior inside a band, and a reboot or factory reset
returns both to their defaults.
The new polaris-dsp-snmp driver reads identity every five minutes and the program output every 30
seconds: uptime, mute and audio-level. A dedicated driver rather than OIDs on snmp-generic,
which has only the MIB-II set and no way to carry the vendor arc; this is the choice the amplifier
made. No new metric or property types were needed: mute and audio-level were already in the boot
seed. The product moves to the driver, and the lab attaches it with the community secret
snmp-generic uses.
The per-channel strips (gain, mute, peak) are served but not collected: per-channel values need a
driver to name an instance (#1252), and the DSP’s full class set is #1360. The lab test states the
floor for the DSPs, every placed Polaris DSP 16 carrying a sampled audio-level and a mute sample,
until the lab-wide check holds it (#1371).
A lab-level test proves the telemetry outcome (#1371)
Section titled “A lab-level test proves the telemetry outcome (#1371)”make test-lab now holds the dev lab to #1266’s outcome, tier by tier: after the warm-up, every
component carries its full built-in data, at least one collected class signal beyond identity and
uptime, and every system a value of its own. A gap fails naming the owner and the tier.
The check is its own package, internal/labcheck, a function of a base URL and a client so the scale
lab (#1357) can call it at any size. Its judgment is pure over a snapshot of the lab, proven without a
lab; its read of the API is proven against a fake one. The expected built-in set is generated, not
listed: the transport registry now declares what an endpoint of each transport writes (always, and
once answered), a driver’s shape (polls, listeners, session block) adds the collection telemetry of
#1369, and probekeys and the writer classes rule the keys.
The first live run shaped the rules. A down endpoint owes no response time, and a telnet endpoint whose
session is up owes none either (the probe yields to the held session, #1033; the transport registry now
declares that). Endpoints the seed plants a fault on are read from devseed.PlantedFaults and owe no
built-in key, though they must still exist. A finding names the component by product and location, since
a name is unique only per room.
The known gaps live in devseed.TierGaps, each with its issue: the passive gear of #1367 on the built-in
and collected tiers, the generic device (#1514) and the platform component (#1515) on the collected tier,
and every system on the system tier under #1361 (one coarse entry, since the seeded systems carry no
stable key to name). A listed owner that now carries the tier fails as stale.
Day blocks and span sizing are measured at 10 s to 1 h cadence (#1518)
Section titled “Day blocks and span sizing are measured at 10 s to 1 h cadence (#1518)”The #1516 shootout measured hour blocks at product cadence and found the cost jumps wherever a
block row stays under Postgres’s 2 KB compression threshold. make compress-bench now asks the
follow-up: how long a block should be at each cadence, what the hourly summaries a longer block
carries cost, and what a late sample costs to merge into one. It runs 10 s, 30 s, 60 s, 5 m and
1 h, with 24 h as the reference, over 30 days of the same seeded series (duplicate instants,
ADR-0061). No product schema, ingest or retention change, and it does not choose a format.
- F0 and F2 (the #1516 hour blocks,
timestamptz[]or millisecond offsets besidefloat8[]) run at hour and day spans everywhere, and at week and month spans at 1 h. A block longer than an hour (/day,/week,/month) also carries per-hour summary arrays: count, min, max, sum, first and last for every hour of the span, so an hourly bucketed read never opens the values. - F5 (TimescaleDB on day chunks) runs everywhere as the extension reference, plus month
chunks (
F5/month) at 1 h. F1, F3 and F4 are dropped: the #1516 tuning moved nothing, and pg_deltax’s fit answers stand.
Every figure is the median of 3 runs. Every cell round-tripped exactly, samples, hourly
buckets and every block’s hourly summaries, before and after the late merge. The full tables,
with ranges, are what make compress-bench prints.
Bytes per sample after VACUUM, every table, index and TOAST relation counted:
| candidate | 10 s | 30 s | 60 s | 5 m | 1 h | 24 h |
|---|---|---|---|---|---|---|
| raw | 133.27 | 133.22 | 133.06 | 132.64 | 127.57 | 102.14 |
| F0 | 10.82 | 12.72 | 19.66 | 30.49 | 185.38 | 184.92 |
| F0/day | 8.64 | 9.28 | 9.98 | 17.04 | 84.94 | 476.71 |
| F0/week | 29.32 | |||||
| F0/month | 26.32 | |||||
| F2 | 7.78 | 13.67 | 15.41 | 26.50 | 177.72 | 177.25 |
| F2/day | 7.21 | 7.59 | 8.16 | 10.73 | 72.78 | 476.53 |
| F2/week | 26.04 | |||||
| F2/month | 24.07 | |||||
| F5 | 10.08 | 10.04 | 10.03 | 11.83 | 25.24 | 434.34 |
| F5/month | 9.55 |
The share of block bytes the hourly summaries take, and the share of block rows whose values Postgres compressed:
| cadence | F2 summary share | F2/day summary share | F2 rows compressed | F2/day rows compressed |
|---|---|---|---|---|
| 10 s | 1.5% | 1.9% | 80% | 80% |
| 30 s | 2.6% | 5.3% | 0% | 80% |
| 60 s | 4.7% | 9.4% | 0% | 80% |
| 5 m | 13.6% | 23.6% | 0% | 80% |
| 1 h | 24.3% | 69.7% | 0% | 0% |
At 1 h, F2/week is 60.2% summaries with 70% of rows compressed, F2/month 53.9% with 80%. Rows compressed tops out at 80% because the generator’s noisy fifth (full-precision values) never compresses; the other four fifths cross the threshold together.
The span rule. Per cadence, the shortest span at which at least half the block rows compress; where none does, the span with the fewest bytes a sample; raw where no block beats the narrow row:
| cadence | F0 span | F0 B/sample | F2 span | F2 B/sample | raw B/sample |
|---|---|---|---|---|---|
| 10 s | hour | 10.82 | hour | 7.78 | 133.27 |
| 30 s | hour | 12.72 | day | 7.59 | 133.22 |
| 60 s | day | 9.98 | day | 8.16 | 133.06 |
| 5 m | day | 17.04 | day | 10.73 | 132.64 |
| 1 h | week | 29.32 | week | 26.04 | 127.57 |
| 24 h | raw | 102.14 | raw | 102.14 | 102.14 |
The raw cutoff is 24 h: a series at 24 h or slower stays raw, because a day of one sample is one row, and any block of it costs more than the row. Between 1 h and 24 h nothing was measured, so the cutoff is only known to sit in that range. F2’s int4 offsets halve the timestamp column, which keeps a 30 s hour row under the threshold where F0’s crosses it, so F2 needs a day span one cadence sooner.
A longer span costs the merge, not the read. A late sample rebuilds its whole block
(insert ... on conflict do update, after a checkpoint, so the first write after each
checkpoint pays full-page images):
| cadence | candidate | late merge ms | late merge WAL B |
|---|---|---|---|
| 10 s | raw | 0.55 | 20296 |
| 10 s | F2 | 1.25 | 53904 |
| 10 s | F2/day | 44.03 | 294336 |
| 60 s | F2/day | 3.62 | 87312 |
| 5 m | F2/day | 1.66 | 57624 |
| 1 h | F2/week | 4.31 | 81464 |
| 1 h | F2/month | 24.54 | 165392 |
| any | F5 | 0.53 to 1.15 | about 11400 |
A day block at 10 s merges 35 times slower than an hour block and writes 5.5 times the WAL, for 7% fewer bytes. The span rule already keeps 10 s on hour blocks. At 1 h, a month block is 8% smaller than a week block and merges nearly 6 times slower. TimescaleDB’s late insert is the cheapest here because it lands in an uncompressed region of the chunk rather than rebuilding a segment; the recompression that later folds it in is not counted.
Reads barely move with the span. Every block holds the 30 d hourly bucketed read of one series under 1.5 ms at every cadence (raw takes 62.54 ms at 10 s and 8.54 ms at 60 s), and the 24 h raw read at a median under 5 ms. Compression time per 1000 samples roughly doubles from hour to day blocks (0.8 to 1.7 ms at 10 s) and reaches 3.7 ms for a 1 h month.
The summaries are the 1 h cost. At 1 h an hour holds one sample, so each summary entry restates it six ways, and they are 54 to 70% of the bytes from day to month spans. Subtracting them, an F2/week block would hold about 10 B a sample. At 30 s and faster they cost under 6%. Summaries coarser than an hour at slow cadences is a design question for the choice, not part of this measurement.
Month spans need int8 offsets. An int4 millisecond offset from the block start overflows at
24.8 days, so F2/month stores int8[] offsets; every shorter span keeps int4[].
Parquet, recorded only. Parquet row groups are meant to be 128 MB to 1 GB, so one row group holds many series-days. A day block maps onto a contiguous run of rows (or a few pages) inside a row group, not onto a row group of its own, and the hourly summaries correspond only loosely to page statistics (min and max per page, no count, sum, first or last). A cold tier would rebuild summaries in its own layout rather than carry the blocks over. Nothing was built.
Caveats, all deliberate:
- The containers run with
fsyncoff, so compression and merge times measure CPU and WAL volume, not the disk. - Each late merge follows a checkpoint, so its WAL includes full-page images: the worst case for one late sample, and an overstatement for a burst of them into one block.
- Block boundaries are
date_truncin UTC. - Series counts scale with cadence (10 at 10 s up to 3000 at 1 h) so every cadence from 10 s to 1 h holds 2.2 to 2.6 million samples; 24 h keeps 3000 series and about 92 thousand samples.
Hourly metric trends by compaction (#1276)
Section titled “Hourly metric trends by compaction (#1276)”Every observed metric series now keeps one row per hour in metric_trend (count, minimum, maximum,
sum, first and last value), written by the retention pass a day after the hour ends and kept for
retention.trend_days (two years by default). A one-sample spike survives as its hour’s maximum after
the samples themselves are pruned at 14 days, under the default windows (each is set on its own).
The compaction announces the hours it is about to close, waits on an advisory lock every metric insert holds shared for the inserts already in flight, so no sample slips between, and then folds each hour in a transaction that moves a second, folded mark past it, so a pass cancelled anywhere skips no hour. A long transaction elsewhere, or in another database, holds no such lock and stalls nothing. The first pass starts at the longest window back, so an upgrade does not fold years of hours. A sample that arrives after its hour closed (a spool replayed late) marks the hour in the same insert that lands it, and the next pass recomputes the hour, holding the same lock so a second late batch into the hour is never folded out; batches still cost 18 statements, at READ COMMITTED whatever the server’s default. The metric prune and the month drop never pass the folded mark. A day of trends costs about 3.5 KB per series. Reading them is the bucketed series read, #1269.
Metric compression is measured at product cadence, with pg_deltax and TimescaleDB beside the hour blocks (#1516)
Section titled “Metric compression is measured at product cadence, with pg_deltax and TimescaleDB beside the hour blocks (#1516)”The storage efficiency epic (#1265) rested on one figure: about 10.4 B a metric sample in hour
blocks of SQL arrays, measured once, at the 2 s lab cadence. make compress-bench now measures
the candidates on the same seeded series, with duplicate instants (ADR-0061), on throwaway
Postgres 18 containers, at 2 s, 30 s, 60 s and 24 h. Every candidate gives back exactly what it
was given, sample for sample and bucket for bucket, or the run fails. The extensions run from
test-only images built from their official, unmodified releases (pg_deltax 0.2.1 under Apache 2.0,
TimescaleDB 2.31.0 under the Timescale License with its Apache 2.0 core), licenses installed beside
them. No product schema, ingest or Helm change. It does not choose an approach.
- F0:
float8[]plustimestamptz[]per series per hour. Every block row carriesseries_id, the hour, count, min, max, sum, first and last. - F1: F0 with
toast_tuple_target = 128and lz4. - F2:
float8[]plusint4[]millisecond offsets from the hour. - F3: F2 tuned like F1.
- F4: pg_deltax on the narrow row, segmented by
series_id, ordered bytsthenid(which keeps duplicates of one instant in landing order), on day partitions. - F5: TimescaleDB’s columnstore on the narrow row, on day chunks, segmented and ordered the
same, plus an hourly continuous aggregate (
F5 cagg).
At 24 h the run adds day blocks (/day) and month partitions or chunks (/month) beside the hour
blocks and day partitions. Every figure is the median of 3 runs; every cell round-tripped exactly.
The full per-cadence tables, with ranges, are what make compress-bench prints.
Bytes per sample after VACUUM, every table, index, TOAST and companion relation counted:
| candidate | 2 s | 30 s | 60 s | 24 h |
|---|---|---|---|---|
| raw | 133.25 | 133.22 | 133.06 | 102.14 |
| F0 | 8.16 | 12.72 | 19.66 | 184.92 |
| F1 | 9.69 | 13.53 | 19.66 | 184.92 |
| F2 | 7.12 | 13.67 | 15.41 | 177.25 |
| F3 | 7.54 | 13.67 | 15.41 | 177.25 |
| F0/day, F1/day | n/a | n/a | n/a | 184.92 |
| F2/day, F3/day | n/a | n/a | n/a | 177.25 |
| F4 | 9.47 | 17.02 | 18.67 | 1889.08 |
| F4/month | n/a | n/a | n/a | 140.85 |
| F5 | 8.42 | 10.04 | 10.03 | 434.34 |
| F5 cagg | 0.15 | 1.37 | 2.51 | 138.98 |
| F5/month | n/a | n/a | n/a | 41.03 |
| F5/month cagg | n/a | n/a | n/a | 146.56 |
Reads in ms, a 24 h raw read of one series, then a 30 d hourly bucketed read of it:
| candidate | 2 s | 30 s | 60 s | 24 h |
|---|---|---|---|---|
| raw | 8.37, 388.29 | 0.72, 24.21 | 0.45, 8.49 | 0.27, 0.18 |
| F0 | 15.02, 0.58 | 1.30, 0.64 | 0.68, 0.73 | 0.23, 0.15 |
| F1 | 15.32, 0.70 | 1.21, 1.02 | 0.68, 0.53 | 0.25, 0.14 |
| F2 | 18.61, 0.77 | 1.66, 0.88 | 0.78, 0.57 | 0.24, 0.20 |
| F3 | 18.71, 0.59 | 1.34, 0.90 | 0.67, 0.61 | 0.36, 0.12 |
| F4 | 29.06, 756.89 | 16.78, 85.43 | 16.87, 140.13 | 21.37, 101.39 |
| F4/month | n/a | n/a | n/a | 22.25, 76.54 |
| F5 | 6.14, 39.71 | 0.74, 6.66 | 0.45, 4.44 | 0.41, 2.31 |
| F5 cagg (bucketed only) | 1.19 | 1.11 | 1.04 | 0.55 |
| F5/month | n/a | n/a | n/a | 0.55, 0.66 |
Compression in ms per 1000 samples:
| candidate | 2 s | 30 s | 60 s | 24 h |
|---|---|---|---|---|
| F0 | 0.80 | 0.63 | 0.60 | 3.03 |
| F1 | 0.51 | 0.59 | 0.57 | 3.46 |
| F2 | 0.75 | 0.73 | 0.75 | 3.47 |
| F3 | 0.65 | 0.71 | 0.75 | 3.37 |
| F4 | 1.08 | 1.54 | 1.58 | 165.59 |
| F4/month | n/a | n/a | n/a | 12.29 |
| F5 | 0.35 | 0.40 | 0.42 | 6.58 |
| F5 cagg | 0.14 | 0.19 | 0.24 | 4.94 |
| F5/month | n/a | n/a | n/a | 0.79 |
What the numbers say.
- At 2 s everything compresses about the same. Every candidate lands between 7.1 and 9.7 B a sample, 14 to 19 times smaller than the raw row. F2’s millisecond offsets are the smallest.
- At 30 s and 60 s the block formats lose ground and F5 does not. A 60 s hour block is 60 samples, under 1 KB of arrays, so Postgres stores it uncompressed and F0 rises to 19.7 B. F5 compresses up to 1000 rows of a series together whatever the cadence and holds 10.0 B.
- The F1 and F3 tuning does not do what F1 and F3 assumed.
toast_tuple_targetsets how far Postgres shrinks a row once it decides to compress, not when it decides, which is still the fixed 2 KB threshold. So F1 equals F0 at 60 s, and at 2 s lz4 compresses these arrays worse than the default pglz (F1 9.69 B against F0’s 8.16 B). - Blocks answer bucketed reads from their own aggregates. A 30 d hourly read of a block format takes under 1.1 ms at every cadence, because each block row already carries count, min, max and sum. F5 has to scan its columnstore (39.7 ms at 2 s) unless the cagg answers (1.19 ms); the raw row takes 388 ms. For a raw 24 h read F5 leads (6.1 ms at 2 s) and the blocks pay for unnesting (15 to 19 ms).
- pg_deltax is the slowest at every read. Its 30 d bucketed read at 2 s takes 757 ms, longer than the uncompressed raw row, and its raw 24 h read never drops under 16 ms.
- At 24 h per-row overhead decides, and only month chunks beat the raw row. One sample a day makes an hour block, or a day block, a block of one, so the blocks cost 177 to 185 B against raw’s 102 B. Day partitions cost F4 1889 B a sample (its companions per partition) and F5 434 B. On month chunks F5 drops to 41 B; F4 on month partitions to 141 B.
- The cagg is cheap where the data is dense. It adds 0.15 B a sample at 2 s and 2.5 B at 60 s, but at 24 h an hourly bucket holds one sample and the cagg costs more than the data.
- Compression is cheap everywhere but pg_deltax at 24 h. Every format compresses 1000 samples in under 1.6 ms from 2 s to 60 s, F5 fastest. At 24 h on day partitions F4 takes 166 ms per 1000.
F0 at 2 s is 8.16 B, not 10.4. Splitting one 2 s hour block into its columns on a bare
Postgres 18 shows why. The timestamptz[] column costs about 5.4 B a sample after Postgres
compresses it, whether timestamps carry millisecond or microsecond jitter. The float8[] column
costs anything from 0.1 B (a value that never changes) to 8.0 B (full-precision noise, which does
not compress). So F0 is about 5.4 B plus the value mix’s share. The generator’s mix is a fifth each
of constant, counter, two rounded walks and full-precision noise; 10.4 B means a value column of
about 5 B, a lab whose series were mostly full precision. The figure is a property of the fleet’s
values, not of the format, which is why the table reports every cadence and the round trip
rather than one number.
Caveats, all deliberate:
- The containers run with
fsyncoff, so compression time measures CPU, not the disk. - F2 and F3 hold timestamps to the millisecond. The generator emits milliseconds, so they round trip; the node stamps microseconds today.
- Postgres compresses an array only once its row passes about 2 KB, which is why the blocks’ cost
jumps at 30 s and 60 s.
toast_tuple_targetdoes not move that threshold (the reading above). - A block format’s compression time is materializing blocks from a staged narrow table. F4 and F5’s is the extension’s compress call alone, after the same rows were loaded narrow.
- pg_deltax keeps a
_deltax_compressedcompanion table per compressed partition; its bytes are counted.
The fit questions. Each answer is a statement run against a real server and what it returned
(make compress-bench prints every step).
Q1, the month partitioning, the roll (#1275), retention (#417) and the ADR-0080 floor.
pg_deltax accepts deltax_create_table on the product’s month-partitioned metric, but it only
manages the day partitions it creates. The product’s own month partition stays attached and is
never compressed, and draining the default partition is refused (SQLSTATE 428C9) until the
GENERATED ALWAYS identity becomes GENERATED BY DEFAULT. Its retention is a background worker
that dropped 3 compressed day partitions, companions included, within 55 s; it runs only in the
worker’s target database and has no run-now call, so the product’s retention pass cannot drive it.
TimescaleDB refuses create_hypertable on an already partitioned table (42809): adopting it means
the hypertable replaces the month partitioning and the roll. Its retention is drop_chunks, which
dropped 2 compressed chunks whole and left no orphans, the same whole-unit drop the ADR-0080 floor
assumes of a month partition today. With day chunks the unit is a day, not a month.
Q2, a late row. pg_deltax refuses an INSERT into a compressed partition (55000), and
UPDATE and DELETE (XX000). storage.IsRefusedWrite classifies 55000 as retryable, so the
consumer Naks the batch, retries it 5 times and Terms it: the whole batch, its on-time rows
included, is lost. A late row would need decompressing the partition first, or a classifier change
plus a dead-letter path. TimescaleDB accepts the late INSERT into a compressed chunk, the batch
lands and is acked, and the row reads back; UPDATE and DELETE are accepted too.
Q3, DETACH and DROP, dump and restore, physical replication. The retention pass’s
DETACH PARTITION CONCURRENTLY is refused by both (0A000): pg_deltax while any partition is
compressed, TimescaleDB because a chunk is an inheritance child; drop_chunks is its path. A
pg_deltax DROP TABLE of a compressed partition is accepted but leaves all 13 companion relations
behind and still listed. A pg_deltax dump restores clean and then cannot be read (XX000, no
compressed partition info), and a hot standby cannot read the table at all (“cannot assign
TransactionIds during recovery”); only after promotion do the rows match. TimescaleDB’s dump,
between timescaledb_pre_restore and timescaledb_post_restore, restores with matching rows and
3 of 3 chunks still compressed; its standby and its promoted standby match the primary exactly.
Q4, image cost and managed Postgres. The pg_deltax image is 669.0 MB, 24.8 MB over
postgres:18 (one 12.7 MB shared object). The TimescaleDB image is 1279.2 MB, 635.0 MB over it
(54 shared objects, 414.0 MB). Neither extension is offered on RDS (which offers pg_tle for
trusted-language extensions only), on Aurora at any version, or on Cloud SQL, which does not
allow installing your own. Azure Flexible Server offers TimescaleDB 2.24.0 in its Apache 2.0
edition only, which has no compression, behind shared_preload_libraries; it does not offer
pg_deltax. The block formats are plain SQL and run on all four.
Q5, the F5 cagg’s size and refresh. The cagg costs 0.15 B a sample at 2 s, 1.37 B at 30 s,
2.51 B at 60 s and 139 B at 24 h (the tables). It is materialized only: a late row (1e6) into a
materialized, compressed hour left it at 61 samples, max 1, until refresh_continuous_aggregate
over that hour brought it to 62 samples, max 1e6. The refresh policy’s job (run_job) picked up a
second late row (63 samples, max 2e6) because its window reached back past it; a policy whose
start_offset stops short of a late row leaves it out until a manual refresh.
Four pg_deltax findings contradict its documentation or look like defects; none is filed upstream:
DROP TABLE orphans every companion, a restored dump cannot read its own compressed
partitions, a hot standby cannot read them, and DETACH is refused while any partition is
compressed.
Sources for Q4: RDS for PostgreSQL extensions, Aurora PostgreSQL extensions, Cloud SQL extensions, Azure Flexible Server extensions and its considerations, pg_deltax.
The lab keeps a generic SNMP device (#1372)
Section titled “The lab keeps a generic SNMP device (#1372)”Moving the Boreal Edge displays onto boreal-edge-snmp left snmp-generic attached to no simulated
device, which the lab’s method coverage and the SNMP e2e both hold. Rather than list the generic driver
as a gap, the lab gains an unclassified device: auditorium-unclassified on the existing
generic-device product, with a generic-device simulator profile that serves MIB-II sysDescr and
sysUpTime, the two objects snmp-generic reads, so it lands model-number and uptime and nothing
more. The generic-device product now names snmp-generic as its driver, so the lab plan attaches it.
It sits in the auditorium system as a member filling no role, outside the standard’s slots, beside the house spare microphone: the devseed already models that case, and a custom standalone system would have added a system to the fleet for one box.
The lab node starts under rootless Docker (#1506)
Section titled “The lab node starts under rootless Docker (#1506)”The lab’s node container asked for net.ipv4.ping_group_range="0 2147483647", every group there is.
Under rootless Docker the container’s user namespace maps only 65537 groups (the user’s own plus the
65536 of /etc/subgid), and the kernel refuses a range naming an unmapped group, so runc failed with
invalid argument and the node never started. The range is now 0 65535: it admits root, which the
node runs as, and distroless nonroot (65532), and fits any standard mapping. The same value goes to
make test-netadmin and the e2e probe container. The CI runner’s host-wide grant is untouched: it is
set as root on the host’s own namespace, where the full range is valid.
The reachability demo DSP reports its mute and level (#1507)
Section titled “The reachability demo DSP reports its mute and level (#1507)”With the simulated fleet, the seed turns the worked reachability check’s boardroom DSP into a
simulated polaris-dsp-16 and re-aims its HTTP and line-protocol checks at a simulated address. It
never gained the product’s driver, though: the fleet plan skips any component that already has an
endpoint, and the demo had its two reach checks. So the one DSP the lab’s DSP floor found without
audio-level and mute was the demo, and make test-lab failed on it. The re-aim now also attaches
polaris-dsp-snmp at the same address, once: a later run finds the demo already off its fixed
address and changes nothing.
Metric timestamps are whole milliseconds (#1526)
Section titled “Metric timestamps are whole milliseconds (#1526)”A metric sample’s ts now has no digits below the millisecond. The node truncates it where a batch
leaves the spool, and the ingest truncates it again before the row lands (truncating, not refusing,
so a spool replayed from an older node still lands). It holds for observed and calculated rows in
metric and for metric_declared; the property, event and log lanes keep their timestamps. A
migration truncated the rows already stored and set the columns’ default to now() on its
millisecond.
The reason is that NTP-synced node clocks are only accurate to a few milliseconds, so the microseconds were noise, and a raw row now agrees exactly with the compacted block (int4 millisecond offsets) that a later slice of #1265 writes. Two samples of one series can share a millisecond; both land, in arrival order. Event and calc rules judge the same samples the same way.
The storage and devseed tests run in parallel, and devseed seeds once (#1537)
Section titled “The storage and devseed tests run in parallel, and devseed seeds once (#1537)”The first run of the sharded gate (#1536) put internal/storage at 294 s and internal/devseed at
281 s, the two slowest packages. The cause differed between them.
internal/storage ran 1,060-odd tests one after another: nothing opted into t.Parallel(), so the
package’s wall time was the sum of its tests although each owns an isolated database. Every top-level
test now starts with t.Parallel() and shares the package’s one container. The few that touch
process-wide state (the Set*Cap hooks, the slog default, rules.CompileCount) are marked
// Serial: and run before the parallel tests are released. Three pg_stat_activity queries now
filter on current_database() so one test no longer sees another’s sessions, and the container runs
with fsync=off and max_connections=400.
internal/devseed paid for the boot seed and a full devseed Run in each of about twenty tests. The
harness gained derived templates (storagetest.NewDSNFrom): the seed runs once per binary into a
sealed template and each test clones it. Tests that verify seeding (idempotence, the port option, the
large scenario) still seed. The large scenario is real work and cannot be cloned, so it moved to
budget_test.go, which sorts first and is therefore released first among the parallel tests.
A scanner, storagetest.RequireParallelOrSerial, runs as a test in both packages and fails any test
that is neither parallel nor marked serial. No test was removed, skipped or moved behind -short.
Summary-free blocks are measured at the span rule, the week minimum and trend cost (#1522)
Section titled “Summary-free blocks are measured at the span rule, the week minimum and trend cost (#1522)”The draft compacted-tier ADR on #1265 drops the per-hour summaries from the block and leaves
hourly reads to metric_trend. make compress-bench -plain measures that design and closes
its open questions 3, 4 and 6. The block is F2 with nothing else: metric_block (series_id, span_start, span, n, offset_ms int4[], value float8[]). Each series-day picks its span from
its own count:
- 170 samples an hour or more on average (at least 4080 in the day) makes hour blocks.
- 170 or more in the day makes one day block.
- Anything sparser waits for its ISO week’s block.
The datasets are the #1518 ones (30 days, with duplicate instants under ADR-0061), started on
a Monday. No product schema, ingest, retention or metric_trend change, and it does not choose
a format. Every figure is the median of 3 runs. Every cell round-tripped exactly: samples,
hourly buckets, the trend’s buckets, and every series-day’s span against the rule.
Question 4: bytes a sample at the rule span. F2p is the summary-free block. The F2 column is the same span carrying #1518’s hourly summaries, rerun here:
| cadence | span | F2p B/sample | F2 B/sample | draft | F2p rows compressed |
|---|---|---|---|---|---|
| 10 s | hour | 7.71 | 7.78 | 7.7 | 80% |
| 30 s | day | 7.18 | 7.59 | 7.2 | 80% |
| 60 s | day | 7.25 | 8.16 | 7.4 | 80% |
| 5 m | day | 7.84 | 10.73 | 8.2 | 80% |
| 1 h | week | 8.58 | 26.26 | 10.4 | 64% |
| 24 h | week | 35.41 | 0% |
The draft’s figures hold at every cadence, and at 1 h F2p beats the draft’s 10.4 B. Without summaries, the cost of a sample no longer climbs as cadence slows: it stays between 7.2 and 8.6 B from 10 s to 1 h. At 1 h only 64% of rows compress. The 30 days end on a two-day partial week whose 48-sample rows stay under the threshold, on top of the generator’s noisy fifth that never compresses.
Question 3: the week minimum is 2 samples a week. For this question every block was a whole ISO week: 3000 series over 4 weeks, against raw rows:
| samples a week | raw B/sample | week block B/sample | block / raw |
|---|---|---|---|
| 1 | 126.54 | 151.98 | 1.20 |
| 2 | 114.07 | 83.96 | 0.74 |
| 3 | 109.70 | 58.64 | 0.53 |
| 4 | 106.97 | 47.97 | 0.45 |
| 7 | 105.49 | 32.30 | 0.31 |
| 14 | 100.54 | 22.60 | 0.22 |
| 24 | 112.20 | 18.57 | 0.17 |
| 48 | 116.97 | 16.12 | 0.14 |
| 168 | 121.95 | 8.09 | 0.07 |
One sample a week is the only count at which a block loses to the row it replaces. This overturns #1518’s raw cutoff at 24 h. #1518 saw a 24 h block cost 476 B a sample, but that was a day block carrying summaries. Without summaries, a 24 h series in week blocks costs a third of raw (35.41 against 103.48 B over 30 days, 32.30 against 105.49 over whole weeks).
Question 6: the trend pays for itself at fast cadence and not at slow. The table shows what
metric_trend adds per stored sample, and the 30 d hourly bucketed read of one series from
each source:
| cadence | trend B/sample | F2p read ms | trend read ms |
|---|---|---|---|
| 10 s | 0.38 | 109.85 | 0.66 |
| 30 s | 1.06 | 28.36 | 0.80 |
| 60 s | 2.07 | 16.81 | 0.58 |
| 5 m | 10.21 | 4.25 | 0.55 |
| 1 h | 122.15 | 0.74 | 0.58 |
| 24 h | 122.12 | 0.23 | 0.16 |
The trend costs one row, 120 to 140 B, for every hour that holds a sample. At 10 s that is under 0.4 B a sample, and it turns a 110 ms unnest into a 0.7 ms read: the summaries’ job, done more cheaply than #1518’s per-block summaries. At 5 m it already costs more than the block itself. At 1 h and 24 h each hour holds one sample, so the trend is a second copy of the data, 14 times the block at 1 h and 3.4 times at 24 h. It saves 0.16 ms and 0.07 ms on a read the week blocks already serve in under a millisecond. Hourly trend rows for slow series buy nothing a block read does not.
Mixed cadence keeps every series-day on its own span. Over one ISO week, the week minimum held at 2:
- Series 1 polls 60 s, then turns to 30 s at Wednesday noon. It stays on day blocks every day: 1459 samples Monday, 2212 Wednesday, 2938 Sunday. A 30 s day (2880 samples) is below the 4080 an hour block needs.
- Series 2 polls 1 h, then turns to 30 s at Thursday noon. Monday to Wednesday (24 to 26 samples a day) wait for the week block; Thursday (1485) and the days after go to day blocks.
- Series 3 reports three times a week. All three samples share one week block.
Every sample came back once and only once. Each block’s n matched both array lengths, each
offset fell inside its span, and the read gave back exactly the generated series.
Caveats, all deliberate:
- The containers run with
fsyncoff, as in #1518, so times measure CPU and not the disk. - F2p’s compression time (2.3 ms per 1000 samples at 10 s against F2’s 0.8) is a staging query that sorts each series-day in SQL. It says nothing about a product compactor.
- No late merge was measured for F2p. A summary-free block rebuilds the same way #1518’s did, minus the summary arrays.
- The trend is refreshed from the staged samples in one pass. Its incremental refresh cost is not measured.
- Block and week boundaries are
date_truncin UTC; the week is the ISO Monday.
The metric lane is partitioned by day (#1527)
Section titled “The metric lane is partitioned by day (#1527)”metric is now partitioned by UTC day instead of by month, so retention drops raw samples whole a
day after they pass the window rather than deleting up to a month of them chunk by chunk. One
migration copies every month-partitioned row into the day partitions, keeping its id, and refuses
unless the counts agree; its down swaps back to months.
The server keeps today and the next three days partitioned, and the boot now reads the partitions back and refuses to start ingest unless every instant through the third day ahead is covered, naming the first one that is not. A batch that misses a day still makes it and lands. The drop takes a day once it is past the lane’s window and the trend’s compacted mark, and keeps a day that holds a sample of a type kept longer than the lane, where the months were all held back to the longest type window installed.
make footprint, same host and build, before (month) and after (day):
| Figure | Month | Day |
|---|---|---|
| Heap rows a page | 136 (60.2 bytes a row) | 136 (60.2 bytes a row) |
Index bytes a row, after REINDEX | 40.5 | 38.1 |
| Index bytes a row, live | 61.9 | 61.9 |
| WAL bytes an observation | 309.5 | 310.2 |
| Statements a batch | 18.00 | 18.00 |
| Receipt bytes a batch | 161.9 | 161.9 |
The test gate runs in parallel shards and reports its slowest tests (#1536)
Section titled “The test gate runs in parallel shards and reports its slowest tests (#1536)”The test job took 14 to 17 minutes, and because main requires branches to be up to date, that set
the pace of the whole merge queue. test.yml now runs the parts of make test as parallel jobs:
test-web, three Go shards, and test-netadmin. The shards are Makefile targets, so a contributor
runs exactly what CI runs (#214): test-go-storage and test-go-devseed (the two slowest packages,
510 s and 475 s on the baseline run) and test-go-rest, whose package list is go list ./... minus
the named shards, never hand-listed. make test-go-shards-check fails if any package is in no shard
or in two, and every shard target runs it first. make test still runs everything, serially, with the
same TEST_PARALLEL default of 1.
The required check is unchanged: a final job named test needs every shard, runs if: always(),
and fails unless each succeeded, so the ruleset is untouched.
Each Go shard runs under the new cmd/gotestreport, which runs go test -json, prints what a plain
go test would (an ok line per passing package, the failing tests’ output for a failing one), and
ends the log with the 20 slowest top-level tests and each package’s wall time. That list is where
the follow-up that makes the suite itself faster starts.
The api and node tests run in parallel (#1540)
Section titled “The api and node tests run in parallel (#1540)”With storage and devseed parallel (#1537), the test-go-rest shard was bound by internal/api at
177.5 s and internal/node at 159.3 s. The two had different causes.
internal/api ran about 350 tests one after another, each paying roughly 170 ms of setup: a 55 ms
database clone and a 115 ms boot seed. The wall time was the sum of many short tests plus the same
seed repeated. Every top-level test now starts with t.Parallel(), and about two hundred of them
clone a derived template that holds the booted seed (seededDSN, built once per binary with
storagetest.NewDSNFrom) instead of seeding themselves.
internal/node was dominated by a few long end-to-end tests: nine tests over five seconds summed to
88.8 s, and thirteen between one and five seconds to 41.7 s. Running them in parallel overlaps those
waits. Their stacks already bind ephemeral ports (sim.EphemeralPorts, bus.Config{Port: -1},
httptest), so nothing needed to change but the t.Parallel() call.
Six tests swap slog.Default or assert on a package log and are marked // Serial:: the webhook
ingress end-to-end test in api, and the self-log, UDP datagram, TLS probe and two spool tests in node.
storagetest.RequireParallelOrSerial runs as a test in both packages so a new serial test must say
why. No test was removed, skipped or moved behind -short.
Calculated metric series fold into blocks with their rule lineage (#1534)
Section titled “Calculated metric series fold into blocks with their rule lineage (#1534)”Calculated metric series now fold into metric_block as observed series do, and each block carries
the calc rule lineage its samples were written under: source_rule, source_rule_id and
source_rule_version, null on an observed block. A day splits at every rule edit or rename, and each
lineage earns its own hour, day or week span by its own count. The block key is a unique constraint
over series, span start, span and the lineage, with NULLS NOT DISTINCT so an observed span still has
one block. A late calculated sample merges into the block of its own lineage, or starts its week’s
block when its version has none. MetricBlockSamples reads a range back from the blocks with each
sample’s lineage, and VerifyMetricBlocks holds each block to its own lineage’s raw rows. Calculated
series still have no trends; ADR-1534 records that lineage is the reason.
make footprint now reports a dense calculated series: 30 series at 30 s for one ISO week, the rule
edited mid-week, 616,881 samples in 240 blocks.
| Bytes a sample | |
|---|---|
| Calculated blocks, with lineage | 7.25 |
| Calculated raw rows, with lineage | 167.10 |
An observed block’s three null lineage columns cost its row an 8-byte null bitmap, which moves the observed figures by under 2% except at 5 min, where day blocks sit right at the size that fits four to a heap page:
| Cadence | Span | #1528, through the fold | This slice |
|---|---|---|---|
| 10 s | hour | 7.82 | 7.84 |
| 30 s | day | 7.18 | 7.22 |
| 60 s | day | 7.37 | 7.38 |
| 5 min | day | 8.01 | 8.70 |
| 1 h | week | 8.25 | 8.36 |
The health recompute costs what it touches (#1562)
Section titled “The health recompute costs what it touches (#1562)”Seeding the corporate scale plan row by row slowed as the fleet grew, and the health rollup was why.
Every AssignRole recomputes the four locations above its system (room, floor, building, campus), and
each of those used to fold every system in its subtree. The campus call covers the whole site, so at
1,000 systems each call took 5.1 ms, against 0.65 ms at 100.
A location now rolls up from its direct children’s recorded verdicts (its systems and its child
locations), one latest row each by the owner indexes, after the recompute locks its chain and works
from the bottom up (ADR-1562).
The verdicts and the recorded history are the same. The recompute per AssignRole went from 6.3 ms
to 3.8 ms at 100 systems and from 23.9 ms to 4.0 ms at 1,000, and seeding the corporate plan at
1,000 systems went from 2m37s to 48.6s on the same machine. A new test holds every recorded system
and location verdict to a full recompute from scratch after each kind of write.
The late merge and the trend recompute agree on when a block covers a sample (#1546)
Section titled “The late merge and the trend recompute agree on when a block covers a sample (#1546)”With the window cutoff inside a folded day, a late sample of a still-intact hour was kept, skipped by
the merge (its day was no longer intact) and then left out of the hour’s trend row, which the
recompute read from the day’s block alone: the trend undercounted, and trends are kept for
trend_days. The recompute now reads a block only for a day that passes blockIntact, the merge’s
own predicate, and reads the hour’s raw rows otherwise, so each hour reads exactly one source.
ADR-1529 names the shared predicate. The tests pin the database clock, so the cutoff sits exactly on a
day’s start, on an hour’s start or inside an hour, for a type’s own window and for the lane’s.
The late merge still waits for a fold with no timeout: the consumer Terms a batch after five
deliveries (about 15 s), so a timeout shorter than a fold chunk would drop the batch, on-time rows
included. ADR-1529 records the bound instead: the stall a waiting batch can cause a trend compaction
on another server ends at trendDrainTimeout and fails the compaction, not the batch. It cannot occur
on one server, which runs the folds in order. A late batch adds 3 statements (settings read, block
lock, merge) and a batch carrying an old sample adds the window check; an on-time batch stays at 18.
Late metric samples merge into the block that covers them (#1529)
Section titled “Late metric samples merge into the block that covers them (#1529)”A late observed sample for a day the block fold has passed now merges into the block that covers it,
in its own batch’s transaction: the hour block of its hour, the day block of its day, or its ISO
week’s block once the week has folded. Each block is rewritten once a batch from the block itself,
never from the raw rows, so the merge holds when #1530 drops raw days early. The folds and the merge
are ordered by a block advisory lock that only late batches take, so the on-time ingest is unchanged
at 18 statements a batch. #1528’s dirtied-day rebuild and metric_block_dirty are gone.
A sample older than its series’ window is now dropped before it lands, with one warning line a series
giving its count and age, and the rest of its batch lands. The trend recompute of a dirtied hour reads
a folded day from its block. The raw row still lands beside the merge until #1530, so
VerifyMetricBlocks still holds every block to its raw rows. ADR-1529 records where this differs
from the issue and from ADR-1528: a lock of the block’s own in place of the trend lock, and no
re-spanning of a merged day.
One batch of 120 late samples into an hour block, a day block and a week block writes each block
once, 34,264 bytes of WAL (285 a sample) against 30,368 for the same batch landing raw only, so the
three rewrites cost 3,896 bytes (TestLateSamplesRewriteTheirBlockOnce).
make test-short passes again (#1542)
Section titled “make test-short passes again (#1542)”The drop-at-cleanup tests from #1501 provision their database inside a subtest, so the parent can
check after the subtest’s cleanup has run. Under -short, NewDSN skips that subtest, and each parent
then failed on its own guard (“the subtest did not provision a database”). Three tests did this:
TestNewDSNDropsItsDatabaseAtCleanup, TestNewDSNDropsDespiteAnOpenConnection and
TestNewDBClosesItsPoolBeforeTheDrop. The full gate never runs with -short, so CI stayed green
and only make test-short broke.
Each of the three now skips under -short before its subtest, the way every other Postgres-backed
test in storagetest does. Without -short they run and assert exactly as before.
Observed metric samples fold into lossless blocks (#1528)
Section titled “Observed metric samples fold into lossless blocks (#1528)”The compacted tier’s first slice: each closed UTC day of an observed metric series now folds into
metric_block rows of millisecond offsets and values, in landing order, at the span its own sample
count earns. 4,080 samples or more in the day make hour blocks, 170 or more one day block, and a
sparser day waits for its ISO week’s block, which has no minimum. The retention pass folds after the
trend compaction, on its marks, two days a pass, and each batch of series advances the block mark in
its own transaction, so a cancelled pass resumes where it stopped. A late sample marks its day in
metric_block_dirty in the same insert that marks its trend hour, and the next pass rebuilds the day
and its week block from the raw rows.
The blocks are written beside the raw rows and nothing reads them yet: every reader answers exactly
as before, the late merge without raw rows is #1529, and block reads, the early raw drop and the block
prune are #1530. VerifyMetricBlocks checks every block against its raw rows, sample by sample and
bit for bit. ADR-1528 records #1265’s accepted design with its 2026-11-05 rulings, including a 30-day
metric_days default and per-type trends, which #1531 builds.
make footprint, one ISO week of #1525’s generated series at its series counts, folded by the pass,
against #1525’s 30 days folded in a staging query. The ingest is unchanged at 18 statements a batch.
| Cadence | Span | Samples | #1525, bytes a sample | Through the fold |
|---|---|---|---|---|
| 10 s | hour | 616,783 | 7.71 | 7.82 |
| 30 s | day | 616,881 | 7.18 | 7.18 |
| 60 s | day | 616,788 | 7.25 | 7.37 |
| 5 min | day | 616,972 | 7.84 | 8.01 |
| 1 h | week | 514,147 | 8.58 | 8.25 |
The scale lab brings a scenario up with a node per site (#1554)
Section titled “The scale lab brings a scenario up with a node per site (#1554)”The second slice of the scale lab: omniglass lab run --scenario corporate --systems N brings the
resolved plan up instead of only printing it. The lab’s runner (internal/lab) gained a scale path
beside the learning lab’s: the same network, Postgres, seed one-off and server, then one node
container per site, each enrolled with a token minted for it this run and simulating its site’s
components in process. The seed one-off takes --systems, creates each site’s node, and calls
devseed.SeedPlan (#1563), whose PlanOptions.NodeFor puts each site’s endpoints on that site’s
node. Every component answers on its own loopback address, and the lab is ready once each site’s simulator lists all of the site’s components and each of them
reads up (the planted faults aside). A scale lab is its own throwaway project, omniglass-scale.
What was extended rather than written anew: the lab’s plan carries a list of site nodes in place of its one node, the reachability read that judges a lab ready is shared by the learning lab’s wait and the per-site wait, the hold watches every site’s node, and the CLI’s Docker connection and runner are shared by both kinds of lab.
Before it starts anything, the lab estimates what a size needs from a cost model measured on this
branch with docker stats at 20 and 100 systems: about 170 MiB and a twentieth of a core for the
server and Postgres, 36 MiB and a hundredth of a core for each site’s node, and 0.9 MiB and a
thousandth of a core for each component. It sets that against 80% of what the Docker host reports and
refuses a size that does not fit, naming the largest that does, found by a binary search over the
scenario’s sizes. --plan prints the estimate and the decision. A hidden --host-memory forces a
lower limit, to see a refusal without a small machine.
The bring-up is bounded (20 minutes by default, the hidden --ready-timeout otherwise), the seed
included. Past it the lab names the sites whose simulators never connected and each site’s
components not up, by name and loopback address, since a component’s name is unique only within its
system, and removes all it started.
make scale-lab runs scripts/scale-lab.sh, which brings a size up as a person would and asserts one
node container per site, every component on its own loopback address, and a teardown that leaves no
container or network. It is outside make test and CI. On the 12-core, 32 GiB worker, 100 systems (3
sites, 322 components) came up in 24 seconds. Bringing up 1,000 systems and more, and measuring a
running lab, is the harness’s (#1556).
Scale lab plans seed as configuration rows (#1555)
Section titled “Scale lab plans seed as configuration rows (#1555)”The second half of the scale lab’s plan: devseed.SeedPlan takes a resolved scenario.Plan and lands
it as rows, the sites, buildings, floors and rooms, the systems in the rooms, the components filling
each system’s roles, and the simulated endpoints on the components. It is the seeding function the
bring-up in #1554 calls. A plan system now carries Roles, the product and count filling each role,
because seeding has to staff the roles and the plan had dropped that mapping.
The seeder goes through the Gateway’s create methods, one row per transaction, the path every other seed takes. The tests seed a 20-system plan and check the systems, their rooms, each role’s staffing, the components and the endpoints against what the plan said, and that two seeds of one plan mint the same names and addresses.
The issue asked for a bulk SQL path. Measuring first changed that. At 1,000 systems the row-by-row seed
takes 2 minutes 13 seconds and 317,374 round trips, already inside the 3-minute target, and the
dominant cost is not round trips: locationVerdict’s recursive subtree walk in the health recompute is
about 67 of the 131 seconds spent in statements, and it grows faster than the plan (0.8 ms a call at 100
systems, 4.1 ms at 1,000). A bulk path would have to skip that recompute or reimplement the Gateway’s
name minting, labels, audit and slot checks beside it. We keep one implementation and fix the recompute
in the product (#1562), then batch transactions over the existing *Tx functions in a later PR.
TestRunScenarioLargeWithinBudget passes at 3 minutes 17 seconds against its 5-minute budget, so the
large dev-seed scenario needs no bulk path (#1069).
Scale lab scenarios resolve to a plan (#1553)
Section titled “Scale lab scenarios resolve to a plan (#1553)”The first slice of the scale lab: a scenario manifest describes a vertical environment once, and a
size knob turns it into a plan. internal/lab/scenario parses a manifest (site archetypes, each
archetype’s buildings and floors, the standards placed at its sites as ratios, and the catalog
product filling each role of each standard), validates it, and resolves it at N systems. corporate is the one manifest
that ships. omniglass lab run --scenario corporate --systems N --plan prints the plan and exits;
without --plan it says bring-up lands with #1554.
The manifest speaks the platform’s vocabulary, so it cannot invent a device. A standard is a
standard template, and its products are planned through the shared system planner
(internal/systemplan) the way a system template’s are, so a quorum of two takes two and a choice
is answered by one alternate’s roles. A product must be in the shipped catalog and served by a
simulator profile. Every problem comes back at once, each with the manifest line that holds it.
The number of sites scales with N, so a big plan means many nodes rather than a few big ones. A
manifest declares one headquarters, placed exactly once, plus repeated archetypes, each with a
weight and a typical number of systems per site, and the bounds on its site count. The plan has
the headquarters plus one site for each average repeated site’s worth of systems beyond the
headquarters’ typical size, clamped to the bounds. The repeated archetypes share the other sites by
weight, and their sites are numbered from the archetype’s name (regional-03, branch-12).
Corporate’s bounds of 3 to 30 give 3 sites at 100 systems, 18 at 1,000 and 30 at 3,000, an
enterprise of the size the scale lab targets. A missing or doubled headquarters and inverted bounds
are refused with their line.
N is then split across the sites, each taking one system and the rest going by typical size, and
then each site’s share across its standards by ratio. Both splits use the largest remainder method
in whole-number arithmetic, with ties going to the earlier entry. The plan always totals N. Each
site is within one system of its quota and each standard within one of its quota at a site. The
tests hold those bounds at 100, 1,000 and 3,000, and they check that the site count stays inside
the bounds and never falls at any size the knob takes. Labels come from the
simulator fleet’s name generator, now exported as fleet.NameGenerator, seeded per system, so a
plan is deterministic. The shipped catalog is read without a database through new seed
accessors.
The simulator’s older fleet manifests (sim/profiles/fleets, compiled by
sim/fleet) describe sites and devices by profile rather than by standard and product.
Once bring-up consumes these plans they could be retired in favor of scenarios. That retirement is
left to #914.
omniglass lab measure prints the scale lab’s table (#1556)
Section titled “omniglass lab measure prints the scale lab’s table (#1556)”The last slice of the scale lab: omniglass lab measure (and make scale-measure) runs against a scale
lab for a stated window and prints one table, then writes the same figures as JSON so two runs compare.
With --systems N it brings a throwaway lab up, measures it and removes it; without, it measures the
scale lab already running. How to run it and how to read each row is in the
lab guide.
It extends the lab footprint (#1277) rather than starting over. Reused unchanged: the window arithmetic
(WindowOf, UsageFromStats), the database counters query (DBCountersQuery), the harness’s
psql, usage and get, the ready-file wait, the teardown and leftovers check, and the table’s
count and size formatting. New: the rate and extrapolation summary for a scale lab, nearest-rank
percentiles, the lag, redelivery and drain readers (internal/labfootprint/scale*.go), and the
lab measure command. BenchmarkIngestFootprint’s fleet parameter was not touched: the harness reads
a real lab’s database, so a benchmark of the ingest path alone has nothing to add to a table of the
whole stack.
Two changes to the lab itself. The scale lab’s Postgres starts with track_commit_timestamp=on, because
the ingest lag is a row’s commit time minus its probe time and Postgres keeps the commit time only when
asked at start. And the lab’s hold loop no longer calls a container stopped the instant it is seen down:
it waits up to 30 seconds for it to come back (Runner.RestartGrace), since the retention probe restarts
the server to run the pass and the lab tore itself down when it saw that. A crash stays down and is still
reported.
Worker runs.
12-core, 32 GiB shared worker, corporate scenario, one window of 3 minutes after a 2 minute warm-up
(table and WAL growth extrapolated from the window to a day). The baseline is the 41-system dev fleet
(#1265, 2026-10-28), which reported only the three figures it has.
| 41-system baseline | 100 systems (3 sites, 322 components, 1,796 tasks) | |
|---|---|---|
| metric rows a minute | 2,733 | 7,997 |
| property rows a minute | 6 | |
| metric table a day | 0.85 GB | 1.15 GiB (1.24 GB) |
| receipts a day | 1.20 GiB | |
| database a day | 2.36 GiB | |
| WAL a day | 5.43 GiB | |
| server cpu | 227 m | |
| db cpu | 233 m | |
| node cpu (hq, regional, branch) | 42 m, 14 m, 6 m | |
| total cpu | 21% of a core (about 210 m) | 523 m |
| server, db memory | 52 MiB, 183 MiB | |
| node memory (hq, regional, branch) | 193 MiB, 72 MiB, 39 MiB | |
| total memory | 539 MiB | |
| ingest lag p50, p95 | 462 ms, 1,737 ms (20,000 rows sampled) | |
| consumer redeliveries (logged, a floor) | 0 | |
| fleet view p50, p95 | 7.7 ms, 18.6 ms (20 reads) | |
| retention drain (property lane) | 150,000 rows in 1.7 s, 5.3 million a minute |
Per system the fleet writes about 80 metric rows a minute against the baseline’s 67, so the 100-system row rate is 2.9 times the baseline’s for 2.4 times the systems. The metric table is 1.24 GB a day against the baseline’s 0.85 GB, 46% more for 2.9 times the rows (the two fleets differ in more than size, so this is a comparison of order, not a regression). Two things stand out and are filed rather than tuned here (#1570): the receipts table grows about as fast as the metric table (1.20 GiB a day against 1.15), and the database’s CPU is as high as the server’s. The drain figure is quantized by the half-second poll and a 150,000-row backlog under one pass’s budget, so it is a floor on the rate, not a limit.
1,000 systems (#1571, #1587).
The 1,000-system run (18 sites, 3,016 components, 17,340 enabled tasks) comes up: before #1577 the
lab’s bring-up, with the seed taking 42 seconds, was still waiting on its last site after 10 minutes
(17 of 18 sites up, 2,210 of 3,016 components), because the headquarters node could not get its
worklist. With #1577 it was ready in 2 minutes 44 seconds. The measurement, with a 2 minute warm-up
and a 2 minute window (shortened from 3 so the run fits one foreground command), first failed on its
ingest lag read, which found no metric row probed inside the window that had landed by its end, and
printed no table (#1587). The lag read now reports what it found instead of failing, so the run
completes (make scale-measure SYSTEMS=1000, JSON written):
| 1,000 systems (18 sites, 3,016 components, 17,340 tasks) | |
|---|---|
| bring-up, command to ready | 2 m 44 s |
| metric rows a minute | 11,596 |
| metric table a day | 2.19 GiB |
| receipts a day | 2.44 GiB |
| database, WAL a day | 4.63 GiB, 9.03 GiB |
| server, db cpu | 594 m, 642 m |
| total cpu, memory | 2,096 m, 3,173 MiB (headquarters node 201 m, 618 MiB) |
| ingest lag p50, p95 | not measured |
| consumer redeliveries | 0 |
| fleet view p50, p95 | 78 ms, 131 ms (20 reads) |
The lag is past the window, which is the finding: the newest sample that had landed by the end of the window was probed 424 s before it ended, against a 120 s window, while the newest commit was milliseconds old. Landing runs more than seven minutes behind the probes at this size, so the lag has no figure here. The window’s row rate (11,596 a minute; the earlier run that failed read 21,714) is a rate of rows landing, not of the fleet producing them, so it is not a capacity figure while landing is behind. The lag itself is ingest throughput, not this ticket’s: it is named on #1517 with its figure.
The reading is a new ingest_lag_not_measured object in the JSON (the reason, the age of the newest
commit and of its sample, and whether the sample predates the window) and a footer under the table; the
lag cells read not measured. The 100-system table is unchanged.
Metric days, the drop log and the retention test hold across UTC midnight (#1567)
Section titled “Metric days, the drop log and the retention test hold across UTC midnight (#1567)”A run on main crossed UTC midnight and three tests failed. TestNodeProbeReadsServeOnlyObserved
planted a row an hour back, in yesterday, and the template its binary built after midnight had no
partition for it (no partition of relation "metric" found for row, 23514).
TestATooOldSampleIsDroppedAndCounted saw its drop warning twice: the batch missed yesterday’s day,
was retried whole, and logged in each attempt. The bus retention test seeded its block marks on a
Sunday, at that week’s Monday, and two days a pass could not catch up (Behind: [metric_block compaction]).
The roll now keeps yesterday through three days ahead, and the test template is rolled when it is
built. The drop warning goes out when its batch commits. A new storagetest.PinClock pins a test
database’s clock, and AtEachMidnight runs the three tests, and the roll’s, at the real time and 30
seconds either side of midnight. TestMidnightAloneLeavesNoFoldBehind states when the block fold
reads Behind across a midnight
(ADR-1567).
Node worklists survive a fleet-wide start (#1577)
Section titled “Node worklists survive a fleet-wide start (#1577)”At 1,000 systems the scale lab’s headquarters node never got its worklist: its 3.3 MB reply was over the bus’s 1 MB limit, the server answered every pull in series, and a node whose first pull timed out exited and was restarted by Docker. Three tunes, per the architect’s narrowed decision on ADR-1577, and no rebuild. How the pull now behaves is on the nodes page.
- The node never exits on a pull. The first pull and every later one retry with jittered backoff
(each wait in the upper half of a step doubling from 1 s to a 30 s cap) and keep the last good worklist; the pull runs on its own interval
(
node run --worklist-every, 30 s by default, 5 s in the lab) instead of every heartbeat. The server answers a pull it cannot read in full with the reason and no body, so a database blip never reaches the node as a short worklist.TestATransientStorageErrorLeavesTheNodesSessionsUntouchedholds that: three failed pulls against a node holding a live session, and the session is still one, still up, with no transition logged. - The reply is gzipped past 64 KB under
Content-Encoding: gzip. Headquarters at 1,000 systems is 3,273,096 B of JSON and about 463 KB on the wire. - A bounded responder. A pool of 8 workers (held under the database pool less one connection for
ingest) answers pulls; a pull whose
Omniglass-Timeoutbudget ran out while it queued is dropped unread, and one arriving with the queue full is refused as busy rather than waited on. Every outcome is counted (Server.WorklistCounts).
Measured on the worker (12 cores). make scale-lab SYSTEMS=1000: all 18 sites up 199 s after the
command (17 of 18 after 10 minutes before), and no node container restarted. The fleet test, 18 nodes
pulling the 1,000-system corporate lab at once over the real bus, serves every pull in 1.64 to 1.72 s
with none expired. That misses the 1.4 s target: HQ’s own build, about 1.2 s on one worker, is the
floor, and the set-based reads (#1578, #1581) are what lower it.
The 1,000-system column of the scale measurement
is still partial: the bring-up now fits, but lab measure at 1,000 systems fails on its ingest lag
read (#1587), so only the figures it printed before that are recorded there.
Filed from it: paging and the normalized wire, if HQ at 3,000 systems is still over 512 KB gzipped (#1583); the set-based secret, pin and rejection reads (#1581); an “unchanged” answer from the worklist’s input generation (#1584); the materialized worklist as the target, with its triggers (#1586); and the measure’s lag failure (#1587).
One series read serves raw rows and folded blocks (#1572)
Section titled “One series read serves raw rows and folded blocks (#1572)”The first slice of #1530: every reader of a metric series’ samples now reads them through one Storage
Gateway read over raw metric rows and unnested metric_block rows. The bucketed read at every
resolution, the raw read, the series API and the CLI answer the same before a day folds and after, and
the same again with the folded days’ raw rows gone, which only a read of the blocks can. A late sample
lands raw and merges into its block, so the read takes each day of each lineage from one source: its
blocks when a block of its lineage covers it and the day is intact, its raw rows otherwise. Each
sample comes back with its lineage, by ts, then lineage, then landing order.
ADR-1530 records the choice, and amends #1530’s spec, which said the bucketed reads were unchanged:
ListMetricBuckets read raw rows only. A bucket’s last now breaks a tie at its newest instant by series
and lineage rather than by raw row id. No raw row is dropped yet; the trend recompute’s move onto the
read is #1573, the pending table and the early drop are #1574, and trend-served buckets are #1566.
A probe’s state is written when it flips, not every tick (#1592)
Section titled “A probe’s state is written when it flips, not every tick (#1592)”The two probe states, icmp-reachable and tcp-open, left the metric lane for the property lane.
They are words now (up/down, open/closed), and the property lane’s transition-only guard
writes each one once until it changes; the probe timings beside them (icmp-rtt-avg,
tcp-connect-time) stay metrics, every tick. The reachability API’s value reads the word, the
console panel and the endpoint verdict read the word, and the request-layer rungs (udp, snmp)
report up or down the same way.
The basis is the 1,000-system measured run (#1591): the metric lane landed about 109 M rows a day
and the two states were about half of them, each restating the previous row on a healthy fleet.
Liveness never read those rows, so nothing an operator sees changes except that the storage curve
loses the flat half; endpoint_live.last_seen_at is stamped after every landed batch, and the new
storage test proves a steady closed batch that writes no property row still refreshes it.
The ingest footprint’s statement budget for the standard mix rose from 18 to 22 because the property
lane still takes a lock and a guarded insert per sample; one statement for the whole property lane is
#1593, and camera-preset as a property is #1594
(ADR-1592).
One tick of a node lands as one batch of task groups (#1582)
Section titled “One tick of a node lands as one batch of task groups (#1582)”A node used to publish one batch per task per tick, and the server landed each in its own transaction of
about twenty statements, so the receipt table grew as fast as the metric table (about one receipt per
sample, measured on the worker in #1570 and #1556). Now the node’s spool coalesces the groups of a tick
(a TaskGroup per task, with its own observed time and lanes) into one TelemetryBatch, flushed after
a second, at its byte budget, or at once when a session pushes a change, with the id and the bytes fixed at the flush so a retry ships the same
pair. The consumer resolves every group’s task in one query, binds a writer per group, and lands the
batch in one transaction under one receipt whose statement count does not grow with its groups: the
arcs are preloaded in one query, every group is admitted in Go, the property series are locked in one
sorted statement, and each lane is a set insert per writer.
A group the gateway refuses is skipped and its siblings land, with the receipt written once and the message acked, where a refused row used to fail the whole batch. A value only Postgres refuses reruns the batch in a fresh transaction with a savepoint per group to learn which groups it refuses, rolls that pass back, and lands the batch once more without them, so a refused group leaves no calc mark on its owner. The identity bindings of every conduit in a tick resolve in one read. A series a batch carries twice still lands each changed value in order, so the property lane’s transition guard holds. A node-subject batch that carries top-level task samples is terminated: the node lane moved wholesale to groups, with no compatibility path.
ADR-0311 and ADR-0161 are amended in place: one batch per tick, a refused group dropping only itself,
and the writer per group. The receipt horizon stays 24 hours, past the spool’s 12 hour age cap.
omniglass lab measure gains batches landed, samples landed, samples per batch and batches a second,
from the database’s receipt and row counters.
The figures this is held to are targets until the slice’s pull request records a measured run: at 1,000 systems the busiest node ships 40 or more samples per batch, all nodes together land 18 or fewer batches a second, statements per sample fall at least fivefold from about 18, receipts stay under 0.5 GiB a day, ingest lag p99 stays under 5 s, and a ten minute backlog drains.
A node’s worklist pull reads key pins and rejections in one statement each (#1571)
Section titled “A node’s worklist pull reads key pins and rejections in one statement each (#1571)”The 1,000-system corporate scale lab never came up: its headquarters node (806 components, 4,434
tasks) timed out on its first worklist pull (the node waits 5 s) and restarted in a loop while the
other 17 sites came up. The cause is product code, not lab code. NodeWorklist read a key pin per ssh
or tls endpoint (keyPin), a rejection per component endpoint (latestRejection), and parsed the
driver spec once per task, so the headquarters pull issued about 4,330 statements: 1.15 s on an idle
database; with 18 nodes pulling through the server’s one worklist subscription it did not finish inside 5 s.
The pull now reads every pin in one statement (keyPins) and every rejection in one (latestRejections),
and parses each driver spec once per pull. keyPin and latestRejection stay as one-element calls of the
batch, so there is one implementation of each read. The headquarters pull is 1,106 statements and 0.43 s,
and all 18 sites’ pulls together cost 1.26 s of statements, down from about 7.5 s. A statement-count
test (TestNodeWorklistStatementsDoNotGrowWithEndpoints) failed before the change (21 statements for 9
endpoints, 7 for 2) and passes after it. TestPlanWorklistMeasure is the probe behind these figures.
The 1,000-system bring-up still did not reach ready after this change: the headquarters node’s pull still timed out (“pull worklist: nats: timeout”, 17 restarts in 10 minutes) while the other 17 sites came up by 168 s and the server and database ran at 50 to 290% and 50 to 420% CPU. The server logs no per-pull timing, so the logs show the timeout but not how long the pull took under that load. Pulls that are answered one at a time, and abandoned ones still computed, are #1577. The 1,000-system column of the scale measurement is not recorded yet.
A node’s worklist pull resolves every secret in one statement (#1581)
Section titled “A node’s worklist pull resolves every secret in one statement (#1581)”After pins and rejections were batched, the headquarters node’s worklist pull in the 1,000-system corporate plan (806 components, 4,434 tasks) still issued 1,106 statements. Nearly all of them were the secret resolve: per (secret reference, component) pair, a read of every secret by that name, a cascade check per candidate, and a re-read of the secret types.
NodeWorklist now resolves every pair in one statement (nodeSecrets). The component and location
chains are walked once for the whole batch, each chain row tagged with the component it started from,
so a candidate secret covers only its own reference’s component. The secret types are read once per
pull, and a credential several components share unseals once. The single-secret readers (webhook
delivery, command masking, the sim) are one-element calls of the same batch, so the delivery rules
live in one place.
Measured with TestPlanWorklistMeasure (PLAN_MEASURE=1000) on one machine, before and after:
| statements | wall time (idle) | |
|---|---|---|
| headquarters, before | 1,106 | 954 ms |
| headquarters, after | 8 | 311 ms |
| all 18 sites, before | 4,228 | 3.07 s in statements |
| all 18 sites, after | 144 | 0.72 s in statements |
Every site’s pull is now 8 statements, whatever its size. The under-load figure (1.24 s, from the lab
bring-up) was not re-measured here. TestNodeWorklistStatementsDoNotGrowWithEndpoints now carries
a secret, a pin and a rejection per component and compares 10 components with 100: it failed before
the change (36 statements against 306) and passes after it. It also asserts that each endpoint
receives its own values and nothing from another endpoint. TestNodeWorklistResolvesEachComponentsOwnSecret
pins every cascade shape against one shared name: a component’s own secret, one inherited down the
component tree, from a building, from a site, a platform secret, a missing reference, a chain that owns
none (a sibling’s secret never reaches it) and a chain that owns two (ambiguous, delivered as absence).
Worklist reply failures and sizes are visible (#1579)
Section titled “Worklist reply failures and sizes are visible (#1579)”The server’s worklist handler dropped every error, so a reply over NATS’s max_payload looked to the node
exactly like a timeout. A failed read, a marshal error and a failed Respond now each log once at WARN,
naming the node, the subject, the error and the reply size; a reply over the limit logs at ERROR with its
size and the limit and says the node will see a timeout. Every sent reply’s size is recorded per node
(Server.WorklistReplyBytes, the server has no metrics endpoint yet) and logged at DEBUG, and a reply past
75% of the limit warns once per node per hour.
max_payload is now set explicitly: bus.DefaultMaxPayload, 1 MB, the same value the server defaulted to,
overridable per bus.Config. The measurement the delivery design in #1577 rests on is
TestWorklistReplySizeMeasure (WORKLIST_MEASURE=100,1000): HQ’s worklist is 929,057 bytes at 100 systems
(89% of the limit) and 3,273,096 bytes at 1,000 systems (4,434 tasks, 312% of it), so at that scale HQ’s node
cannot pull its worklist at all. How worklists are requested and delivered is unchanged; that is #1577.
A disruptive command’s hold set follows power and host dependencies (#1648)
Section titled “A disruptive command’s hold set follows power and host dependencies (#1648)”A component now declares what it depends on apart from where it sits: power (fed from a named
outlet of a PDU), host (hosted by a codec or a chassis) and path (reached through a gateway)
edges in one component_dependency table, recorded over /components/{name}/dependencies, the
generated omniglass component dependency commands and MCP
(ADR-1648).
A disruptive delivery’s hold set is resolved from them by one pure function: a reboot holds the
target’s in-band endpoints and those of what it hosts, transitively, and leaves a BMC marked
out_of_band open; a command type naming a power_outlet_param holds everything its outlet feeds,
out-of-band included, and never the PDU’s own endpoints. Containment holds nothing, and path is
recorded for the upstream gate reason (#1652). The resolver’s cases are unit tests
(TestHoldSetRebootFollowsHostChain, TestHoldSetPowerFollowsOutlet,
TestHoldSetHostCycleTerminatesAndStaysOnNode); against Postgres a codec’s reboot delivery carries
its panel’s endpoints (TestComponentDependencyHostWidensRebootHold) and an outlet command carries
the fed device’s (TestComponentDependencyPowerCommandHoldsFedComponent). The example fleet seeds
the boardroom’s videobar and amp on the rack power conditioner’s outlets 1 and 2 and its touch panel hosted by the
videobar, so omniglass component dependency list videobar-1 shows both directions on a fresh lab.
No shipped command type is a power command until the outlet command lands (#1653).
A lab run reports what omniglass lost on the way in, as one loss ratio per kind (#1641)
Section titled “A lab run reports what omniglass lost on the way in, as one loss ratio per kind (#1641)”omniglass lab measure now ends with a delivery table: each telemetry kind’s loss across the ingest
hop, (in - out) / in, read the same way for every kind, 0 healthy, with the items a redelivery
carried again beside it and the largest outcome behind any loss as its cause
(ADR-1641).
A node’s spool stamps every batch with a delivery ledger (field 16 of TelemetryBatch: boot, a dense
seq, the minted time, how far the spool has resolved, and each kind’s count and running offset). The
consumer gives each item exactly one outcome (stored, coalesced, one of six refusals, orphaned,
unbound, unidentified) and the landing transaction writes the ledger and the committed pass’s outcome
on the batch’s receipt, so the accounting is exactly-once with the data and adds no rows. A batch that
never landed is a hole in the boot’s seq, read from its neighbors’ offsets as missing; a gap belongs
to its lower neighbor’s window, and a boot whose batches could still arrive reads unsettled with no
ratio. The receipt insert became an upsert that counts deliveries and tests xmax = 0 for the first,
since on conflict do update reports one row either way.
Proven over a real stream and database (internal/bus/delivery_test.go): a withheld batch and a
max-delivered one read their items as missing, a held batch that lands after its successors reads
whole once the boot settles, and a redelivery reads as deduplicated with loss 0. Live, a
three-system corporate lab (TestIntegrationScaleDelivery, run against a private image) printed:
delivery hop in out loss dedup causemetric ingest 1275 1275 0 0 -property ingest 166 166 0 0 -event ingest 0 0 - 0 -log ingest 0 0 - 0 -end to end metric 0 property 0 event - log -The accounting has a visible cost. Against the same lab on the pre-ledger build, receipts a day went from 56 to 129 MiB at about 2.3 batches a second (about 290 to 675 bytes a batch), database a day 309 to 371 MiB, WAL a day 725 to 851 MiB and WAL a sample 400 to 474 B. At 1,000 systems that puts the receipt table past the scaling page’s 0.5 GiB a day target; #1699 narrows the receipt or revises the target.
Thin cuts: the induced unregistered-key end-to-end run needs a lab knob that does not exist (#1698;
the refusal is proven by the unit and bus tests), and the end-to-end test ran by hand against a
private image rather than through make test-lab, which rebuilds the shared dev image. Whole-batch
Terms read as missing until #1691, the push lane carries no ledger until #1696, and the node,
schedule and sim hops, the platform metrics and the perf gate are #1692 to #1695 and #1659.
A node’s command pull reads only its own components’ commands (#1631)
Section titled “A node’s command pull reads only its own components’ commands (#1631)”Every node asks for its pending commands once a heartbeat, and the pull used to read the whole
fleet’s deliverable commands, choose an actuating endpoint for each, and only then keep the ones
placed on the asking node: each node paid for every node’s backlog. PendingNodeCommands now starts
from the components that carry an attached endpoint on the asking node and joins their commands, so
the rows it reads are found by the node’s own components. The endpoint choice still ranges over all
of a component’s endpoints, so a component with endpoints on two nodes is still delivered by exactly
one of them.
A new migration adds command_deliverable_idx on command (component_id, ts) where the command is
owned by a component and not yet executed, the access path the scoped pull reaches. The older command
indexes are keyed for settlement, and now() is not immutable, so the delivery window stays a range on
the ts key column rather than an index predicate. The ticket’s example predicate also carried
status = 'issued'; that term is left out until #1630 makes a terminal command leave the deliverable
set by status, and whichever of #1630 and #1626 (which plans its own (ts) where executed_at is null
index) lands next reconciles the command indexes to one.
The dispatched stamp is now one update ... from unnest(...) statement for the whole pull instead of
one update per delivered command, so a pull delivering twenty commands issues as many statements as one
delivering one.
Proof: TestCommandPullReachesTheDeliverableIndex explains the statement the gateway really issued
and holds its command scan to command_deliverable_idx searched by component_id;
TestCommandPullStatementsDoNotGrowWithItsDeliveries counts the statements of a 1 and a 20 command
pull; TestCommandWireDelivery issues commands on two nodes’ components and on a component with
endpoints on both, and proves each node’s pull returns only its own and leaves the other’s undispatched;
TestCommandDeliverableIndexMigrationRoundTrips rolls the migration back and reapplies it.
Thin cut: the ticket’s command retention (a retention.command_days setting, PruneCommands and a
command lane in the retention pass) moved to #1684, so the command table is still never pruned.
A node reports its schedule health on its own platform component (#1625)
Section titled “A node reports its schedule health on its own platform component (#1625)”The first slice of #1094 builds the platform primitive and its first consumer. The boot seed creates
one reserved, unplaced platform system, and registering a node gives it an omniglass-node
component there, named on node.platform_component_id; the Storage Gateway refuses every rename,
retype, move, delete or membership change of either with a typed error the API answers as 409. Each
tick the node sends a node-self block (TelemetryBatch.node_self) with its pass duration, the worst
lateness and gap excess of its due runs, its spool depth, its held sessions by state and its Go
process figures, and once per report window its overrun, skip, drop and publish-failure counts,
zero when quiet; the server lands the block on the node’s platform component under the platform writer class,
refusing any key the node does not own. pollSchedule.due now reports the due time it booked and the
intervals it skipped instead of rebooking silently, so a 45 s poll on a 30 s heartbeat reads a 15 s
gap excess. The server writes every claimed node’s checkin-age every 15 s through a new
RecordPlatformMetrics gateway write, and the age keeps growing while a node is silent. The keys are
rendered on the collection page from the code that declares them; the decisions are
ADR-1625
and an amendment to ADR-0161. The lab run with console captures is #1660, and folding the drop counts
into #1641’s uniform loss keys is #1659.
A node’s command queue reports its health on its platform component (#1626)
Section titled “A node’s command queue reports its health on its platform component (#1626)”A command now keeps its delivery history: the dispatch stamp sets first_dispatched_at on the first
take and counts every take in delivery_count, read back over the API as first_delivered_at and
delivery_count. The console’s command arc notes a redelivered command’s count and its first
delivery beside its last. Every node’s command queue reports itself as command-* platform metrics
on the node’s platform component. The wire writes one dispatch latency sample at a command’s first
take and one execution latency sample at its report, each in the stamp’s transaction. A 15 s server
timer reads the whole fleet’s queues in one statement through the same candidate fragment the pull
uses, and writes each node’s pending count, oldest pending age (zero when idle) and stuck count every read,
plus the window’s redeliveries and expiries, zero for a quiet window, the redeliveries read 5 s behind so a take
still committing is not missed. Expiry keys on the execution stamp rather than the
recorded status, so a fire-and-forget command no node took counts as undelivered
(ADR-1626).
The node counts its own failed command pulls once per report window on its node-self lane. Two
partial indexes serve the read, proven by an EXPLAIN assertion. The keys render on the collection
page from the code that declares them. The scale lab’s command load
(lab measure --command-rate) is #1669, and the live console captures of a redelivered command and
the queue series are #1670.
A reboot holds its device’s endpoints until each reads up again (#1651)
Section titled “A reboot holds its device’s endpoints until each reads up again (#1651)”A disruptive command now closes its endpoints’ gates instead of letting a rebooting device read as
loss (ADR-1651).
A command type gains disruptive, quiet_seconds and hold_seconds, and reboot ships disruptive
with a 15 s quiet and a 300 s hold. The node delivery carries the flag and the hold set (every
endpoint of the component on that node), and the node adds a disrupted reason to each gate before
it sends. During quiet nothing runs against them: due polls are held and counted as
poll-held-count, the probe is skipped, a held session waits to dial, and a command, run now or
preview answers at once naming the command. After quiet each endpoint reopens on its own first up
verdict from a probe begun after quiet, so a reply in flight at the delivery cannot release it; the
hold_seconds backstop reopens one that never answers and counts it as the new
hold-expiry-count. Proven over the real wire (TestARebootHoldsItsDevicesEndpointsUntilEachReadsUpAgain):
a reboot to a simulated sensor holds its http and tcp endpoints while the device is gone, keeps them
held past quiet while it stays gone, reopens each on its own up when it returns on the same
address, and lands no poll failure and no hold expiry across the outage.
Designed: a site’s components spread across its nodes (#1638)
Section titled “Designed: a site’s components spread across its nodes (#1638)”The nodes page gains a “Load distribution across a site’s nodes” design section, and ADR-1638 records the decision. Nothing in it is built yet.
- Unit and pool. The component is the unit (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, later a cascaded property.
- Reach and pushes. Every node in a pool must reach every device in it. Shared-port pushes (syslog, traps) land on any node in the pool, claimed by source address; a VIP is the operator’s.
- Pins and balancing. An endpoint’s
node_namestays the operator’s pin. A server reconcile balances unpinned components on expected cost (runs a second, a listen task at a flagged weight), and it is sticky. - Guards. Each node’s measured schedule loss ratio and pool busy fraction guard the balance. Dependency-edge neighbours are kept together when they can be, so the gate stays node-local.
- Loss, join and moves. A lost node’s components move after the silent window plus a grace. A joining node fills gradually. A live move is two-phase and completes only on the old node’s confirmation, so no device sees two sessions from live nodes.
Scaling’s horizontal-scale fence now names distribution within a site. The build is five slices
under #1624: the busy-fraction signal (#1686), the one-node-per-component invariant (#1687),
assignment (#1688), rebalance on loss and join (#1689), and the two-node lab baseline (#1690). The
lab baseline the issue asked for could not be measured on main. The scale lab runs one node a site,
lab measure has no per-node figure, and the node publishes no lateness or busy fraction yet. #1690
is that thin cut.
An endpoint gate holds a set of reasons and closes when its probe reads down (#1650)
Section titled “An endpoint gate holds a set of reasons and closes when its probe reads down (#1650)”The node’s endpoint gate is now a set of reasons rather than one refusal
(ADR-1650). refused
keeps its rung scope and fingerprint release; unreachable is added when the endpoint’s
reachability probe reads down twice running, dated from the first down, and removed on the next up
verdict; a rung that reads down only because a refusal holds it is no verdict, so a refused
snmp or udp endpoint never also reads unreachable. While it holds, a due poll is held: nothing is sent, no failure or backoff is booked, and
the report window counts it as the new poll-held-count. A command answers unreachable since
without dialing, and a run now or a preview answers 409 naming the reason instead of a 502.
endpoint-rejection carries every reason, the refusal first, so rejection.Parse and every
existing reader are unchanged, and the reachability read serves the rest as gate_reasons. Proven
over the real wire (TestAGoneDeviceHoldsItsPollsUntilItReturns): the simulated sensor goes away,
the held count rises with no failure, and when it returns on the same address its polls land within
seconds. This is the root of the gate chain: disrupted (#1651), upstream (#1652) and cross-node
(#1655) reasons are new kinds in the same table, and the console rendering the set is #1657.
Each endpoint runs its work in its own lane, operator requests first (#1249)
Section titled “Each endpoint runs its work in its own lane, operator requests first (#1249)”Every discrete request a node makes now rides its endpoint’s lane
(ADR-1249):
scheduled polls and probes, commands, run nows, and previews that resolve to an attached endpoint
by transport and target. One request is in flight per endpoint while endpoints run side by side;
an operator’s work goes ahead of the scheduled work queued on the lane without preempting the
request in flight. Each job asks the endpoint’s gate as it is taken, so a command or run now queued
behind a reboot answers disrupted and sends nothing, and where several reasons hold the most
causal answers. A resolved preview is gated by its endpoint, a refusal included; an unmatched one
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: past it a run now or preview answers 429 at
once, and the dispatch window counts operator-offer-count against operator-refused-count.
--lane-workers replaces --poll-workers. Proven over the real wire
(TestFiftyComponentsBesideASlowDeviceRunInTheirOwnLanes): fifty http components, one holding
each request three seconds, every fast one asked its six polls within seconds and no device ever
holding two requests at once; keying the lane on the task instead fails it. Component-wide
exclusion for a fragile device is #1649.
Each poll and probe runs on its own interval, not on the heartbeat (#1634)
Section titled “Each poll and probe runs on its own interval, not on the heartbeat (#1634)”A node’s polls and probes now run from a dispatcher with a timer of its own instead of inside the
heartbeat tick (ADR-1634).
Each task is due on a stable phase of its own interval, hashed from its id so a restart keeps it and
a fleet spreads out; a new task or a moved fingerprint runs at once. Due tasks go to their endpoint’s
lane on a bounded worker pool (--poll-workers, default 16), one job per endpoint at a time,
operator work first, so a dead device holds only its own lane. A due whose run is still in flight is
skipped and counted (poll-due-count and poll-skipped-count per endpoint, skipped over due is
schedule loss), never queued to burst later. The retry backoff starts at one second rather than the
heartbeat, a poll with no schedule runs at the heartbeat interval, and --probe-every defaults to
30s, so no probe runs on every check-in. Proven over the real wire
(TestAPollRunsOnItsOwnIntervalBesideADeadDevice): on a 30s heartbeat a 10s poll lands its samples
10s apart within a second beside a device that never answers, and 60 polls across ten components
run concurrently under the race detector. The dispatcher’s window (pass duration, overruns, skips,
lateness, busy workers, queue depth) is a dispatch window self-log line for now; landing it as the
node’s platform metrics is #1625. Building it surfaced a data race in the https prober, whose dial
could write its result after a timed-out request returned; the dial now writes under a lock.
Lab measure samples a running lab into a time series and times the system page (#1632)
Section titled “Lab measure samples a running lab into a time series and times the system page (#1632)”omniglass lab measure --every 10m --append scale.jsonl now samples a running scale lab on an
interval: the lab is found and warmed up once, then each interval measures one window and appends one
JSON line with the one-shot report’s fields at the same paths --json writes them, plus seq, at
and the server’s uptime, so a series measured across a restart shows it. A sample that fails writes a
line with its error and no figures, and the run goes on. Each line, and each one-shot report, now
carries the database’s absolute levels as well: its size, the metric partitions and the oldest day,
the rollup tables’ bytes and the dead tuples vacuum has not reclaimed, the figures whose trend says
whether retention and vacuum keep up. --page-clients N times the console’s system page the way an
operator waits for it, every read a cold open makes issued at once, under N concurrent clients, and
reports its p50 and p95 with a load error ratio. The read list is generated into a fixture the page’s
own test compares against what the page fetches, so the load cannot drift from the page. The guide’s
hand flag table is gone in favour of the generated CLI reference.
Platform health shows whether Omniglass itself is well (#1644)
Section titled “Platform health shows whether Omniglass itself is well (#1644)”The console has a Platform health page at /platform, behind
node:read, reached from the sidebar under Nodes and from a new Platform tile on Home that replaces
the Collectors placeholder. Its header names the build the server runs, how long it has been up and
the platform system’s verdict, linking to that system’s view; its table has one row per node, with
the Nodes page’s liveness pill judged at the view’s read time and one column per platform key,
grouped as Checkin, Schedule, Delivery and Commands. A row opens the node’s platform component,
where each figure is a series with its history. Every figure is a sample on a platform component the
fleet already had (#1625, #1626, #1627): the page reads them through one composed read,
GET /views/platform, which gathers the whole platform in a fixed number of statements and returns
the column groups with each key’s catalog description, so the page holds no key list and no
threshold. A count reported only when nonzero would show only while its window is the newest, so a
drop from last week never reads as today’s; every windowed count is now written every window, zero
when quiet, so none ages out. A boot now writes server-version and server-started-at on the server’s platform
component, keys only the boot may write. A caller whose component read is short of fleet-wide sees
the rows with their pills and a line saying the figures need a fleet-wide read; the figures are left
out, never zeroed. The page is a page, not a dashboard
(ADR-1644):
the Loss group is #1646 and the dashboard conversion is #523.
Retention and compaction report their status as platform metrics (#1629)
Section titled “Retention and compaction report their status as platform metrics (#1629)”Each retention pass now lands its figures as platform metrics written by the process: per lane, keyed
on the lane’s own name so override and log band lanes report with no change, the rows it removed and
whether it stopped behind; a behind flag per compaction and the metric window; the pass’s duration,
failure count and partitions created and dropped; how far the trend and block marks trail now; and,
from a new RetentionStatus gateway read after the prunes, the partition count, the oldest metric
day’s age, each stored table’s bytes and the database’s. Thirteen keys join the platform writer class
and the seed, so no node, push or operator can write them, and a seeded retention-behind rule opens
a warning alarm naming a lane held behind for 5 minutes and clears it on the first pass that catches
up. The storage page says how to read behind against failed. The integration test drives a capped
pass over rows past the window against real Postgres through the alarm opening and clearing. The
figures land on a component carried in bus.Config, which production leaves empty until the server
has its platform component (#1627); wiring it at boot is #1671
(ADR-1629).
The console’s API client is generated by orval (#1619)
Section titled “The console’s API client is generated by orval (#1619)”npm run gen:api now runs orval over api/openapi.json into web/src/api/api.gen.ts (every
schema as a type, one typed function per operation, all sending through the client’s ogFetch),
and scripts/gen-api-paths.mjs indexes those operations by route into paths.gen.ts. client.ts
types the existing api.GET(route, { params, body }) calls off that index, so every data layer
changed only its type imports; openapi-typescript and openapi-fetch are gone from the lockfile and
TypeScript is on 7 with no peer overrides. client.test.ts pins the request the client builds
(path encoding, query, body, credentials, token, the 204 and error reads) and the compile-time
refusals, and two page tests that relied on the old client’s microtask timing now wait for their
outcome (ADR-1619).
The issue forms emit the dispatcher’s ticket contract (#1602)
Section titled “The issue forms emit the dispatcher’s ticket contract (#1602)”Every non-epic issue form (bug, feature, chore, docs, spike) now renders the five sections the
dispatcher’s lint launches on, ### Goal, ### Spec, ### Acceptance criteria, ### Out of scope and ### Files likely touched, each required, with the old forms’ house questions folded
into the section descriptions. Each form sets its native Issue Type and gains a Tier and a
Risk dropdown; a new ticket-labels.yml runs scripts/ticket-labels.sh on every issue open and
edit to turn those answers into exactly one tier:{jr,mid,sr} and one risk:{low,high} label,
replacing a stale sibling and leaving an issue without the sections alone (unit-tested under
go test ./scripts/). The labels page documents the two new families and the contract table,
/file-bug files in the shape, and the open backlog is being rewritten into it in the same pass
(ADR-1602).
The node’s concurrency model is recorded: per-kind queues on their own timers (#1637)
Section titled “The node’s concurrency model is recorded: per-kind queues on their own timers (#1637)”ADR-1637 records the model the children of #1624 build to, before any of it is built. The node’s one
heartbeat loop gives way to per-kind queues, each on its own timer with a bounded pool: the heartbeat
(liveness only), the worklist pull (already on its own interval, ADR-1577), polls and probes (#1634),
commands woken by a server push with a fallback pull (#1635), held sessions as supervised goroutines
(#1636), and housekeeping. The endpoint is the one exclusion key: discrete requests to an endpoint
serialize in its lane, operator work ahead of scheduled work, and listen tasks are never serialized.
One endpoint gate holds a set of reasons (refused today; unreachable, disrupted and upstream
next, #1650, #1651, #1652) that every lane consults and none holds. A task runs on its own interval
and a run still in flight at its next due is skipped and counted, never burst; lateness is published
(#1625). A telemetry batch is the spool’s flush window, not a tick.
The nodes page’s “Running tasks”, “The component task queue”, “Implicit reachability” and the
scheduling section (renamed from “Tick scheduling, concurrency, and self-observability”) describe the
model inside design fences tracked to those children; the overrun-aware loop is replaced by
skip-not-burst, the post-command wait becomes the gate’s disrupted reason, and node.self and the
node-down sweep stay with #430 and #1094. ADR-0152, ADR-1273, ADR-0136 and ADR-0311 carry one-line
amendments pointing at the new decision. Nothing is built by this change; the page stays Partial.
The scale lab confirms every request reached its simulated endpoint and was answered (#1639)
Section titled “The scale lab confirms every request reached its simulated endpoint and was answered (#1639)”Every simulated endpoint now counts what reached it (connections, requests, streams) and how each
request ended (answered, refused, error, dropped, withheld), with a service-time
histogram and an in-flight high-water per protocol; every node counts the same units where its
bytes leave, and its spool counts the telemetry batches the bus acknowledged or dropped.
GET /nodes/{name}/simulation/observation reads the simulator, the node and the simulator again,
and omniglass lab measure takes that bracket at a window’s start and end and reconciles it with
the node’s telemetry receipts into seven named gaps, each a lower bound printed beside what could
mask it, plus an overlap ratio that flags any face sent two requests at once. A 20-system corporate
scale lab under make test-lab reads 0 lost on every gap and 0 overlap on every protocol. Session
traffic tallies (#1661), per-protocol impairment attribution (#1662), windowed unhit checks (#1663)
and the planted spool-drop run (#1664) are filed; #1640 gates on these gaps.
The scale lab measures WAL a sample, lag p99 and the ingest lane’s busy fraction (#1517)
Section titled “The scale lab measures WAL a sample, lag p99 and the ingest lane’s busy fraction (#1517)”omniglass lab measure now prints three more rows that size the single-Postgres ingest ceiling: WAL
bytes a sample (the window’s WAL delta over the samples it landed), the ingest lag at p99 beside p50
and p95, and the ingest consumer lane’s busy fraction with its service time a batch. The telemetry
stream is a work queue with one durable consumer and one message in flight, so the consumer is one lane
and the handler’s share of the wall clock is the lane’s utilisation. The bus server tallies every
batch’s handler time (Server.LaneTally) and logs the cumulative count and busy milliseconds every 30 s
as msg="ingest lane", only when a batch landed; the harness reads the first and last tally inside the
window and divides busy time by the span between them, so the fraction is exact to the millisecond over that
span. Fewer
than two tallies, or a tally that went backwards across a restart, reads not measured with the reason
under the table, and every other figure still prints. The JSON carries wal_bytes_per_sample, p99
and consumer_lane. This is the measurement that decides whether partitioning the consumer (#1585) can
move the lag at all: a lag at the node’s one-second spool flush with the lane mostly idle says the lane
is not the bottleneck.
The server reports its ingest lag, queue depths and runtime on its own platform component (#1628)
Section titled “The server reports its ingest lag, queue depths and runtime on its own platform component (#1628)”The server now measures its own pipeline and lands it on its omniglass-server platform component
each report window, through the window recorder #1627 built. Ingest lag is read at commit, server
side: the server’s clock once a batch’s transaction has committed minus each sample’s ts, as the
window mean (ingest-lag) and the worst (ingest-lag-max), beside the batches and samples landed. A
node clock out of step with the server’s reads as lag, a negative one kept as read (#419). The
telemetry consumer’s backlog, in-flight and redelivered batches, its lane’s busy fraction, its drops by
reason and its unconfirmed acks land too, with the worklist pulls by outcome, the largest worklist
reply, and the heartbeat, command pull and command report requests and their failures; a heartbeat
write that fails now logs one WARN a node instead of nothing. The calc tick reports its backlog, rows
served and pass time, the outbox its depth and the age of its oldest due row, and the settlement
tick’s two sweeps their time, passes and failures. Every failure count has its attempts beside it, so
each loss reads as a ratio where 0 is healthy. The server reads its Go runtime through the same
sampler a node does, now in internal/platformmetric, which gains process-cpu-seconds and
process-fd-count for both. A second official event rule, ingest-lag-high, warns on the server’s
component when ingest-lag-max holds over 30 s for 2 minutes. Moving the lab’s lag measurement onto
these figures is #1517. The decisions are
ADR-1628.
The server reports its request and query timing on its own platform component (#1627)
Section titled “The server reports its request and query timing on its own platform component (#1627)”Each server boot ensures one omniglass-server component in the platform system for its identity,
OMNIGLASS_SERVER_NAME (the hostname when unset), keyed in a new platform_server table, and the
server lands its own figures there every report window. A middleware records each API request under
its method, route template and status class (GET /api/v1/components/{name} 2xx), with every
unrouted request under one unmatched instance, as http-request-count, http-request-duration and
http-request-duration-max. A pgx query tracer logs a query past the new database.slow_query_ms
setting as a WARN naming its statement’s fingerprint, never its arguments, and counts it into
db-slow-query-count; the pool’s connections, cap and exhausted-acquire waits land as the db-pool-*
keys. The window recorder and reporter in internal/platformmetric are the general primitive the
runtime figures (#1628) build on next. A fleet view that fails now logs its cause. The lab names its
server server; giving each chart replica a stable identity is #1672, and rendering the settings
reference is #1342. The decisions are
ADR-1627.
The server’s retention pass reports on its own platform component (#1671)
Section titled “The server’s retention pass reports on its own platform component (#1671)”The boot now ensures the server’s platform component before the bus starts and hands its id to the
retention pass, so every pass, the boot’s first included, lands its figures on the server’s own
component in production, not only in a test that hands the bus an id. A failed ensure no longer
refuses the boot: it logs a WARN with the identity and the cause, and the server serves and prunes
with no platform figures, its self reporter still closing each window and re-reading the slow-query
setting but writing nothing (ADR-1671). runServer also returns when its context ends, as on SIGINT,
which lets the integration tests boot the real server path against a testcontainers Postgres: one
reads retention-pass-duration on the component platform_server names, the other boots an
identity of only spaces, watches the pass prune a planted log line, and once the pass has logged its
end finds no platform server and no retention figure. The storage page drops its “until the server registers” caveat.
Walkthroughs replay cleanly on the probe’s shared stack (#1404)
Section titled “Walkthroughs replay cleanly on the probe’s shared stack (#1404)”The probe replays every walkthrough in alphabetical order on one lab, while the recorder gives each a
lab of its own, and a setup’s “already exists counts as made” rule hands one walkthrough the state
another left behind. Two such collisions are fixed at the walkthrough. snooze-an-alarm clicked a bare
“Snooze” while preview-a-notification and subscribe-to-alarms had alarms on the same panel, so two
rows carried one and the locator was a strict-mode violation; its alarm now has a message of its own
and its steps name the button for it. The leaf’s Snooze and Unsnooze buttons, which every alarm row
renders, now take an accessible name that ends in the alarm’s message (“Snooze Touch controller
resetting”), so two of them are no longer both plainly “Snooze” to a screen reader either.
set-up-monitoring attached SNMP to bay-2-display, which fix-an-endpoint-in-place had already given an
SNMP endpoint, and was refused with a 409; it now sets up bay-2-confidence-display of its own.
The next collision fails at validation: setupCollisions in walkthroughlib.mjs flags two
walkthroughs whose setups create the same component or raise the same alarm (component and dedup key)
when any of them acts, and make test-web runs it over the shipped set. The setup-isolation rule is
in the demos guide, and the synthetic-user guide says the probe shares one stack.
A kept scale lab survives a stop, for a soak run (#1633)
Section titled “A kept scale lab survives a stop, for a soak run (#1633)”omniglass lab run --scenario corporate --systems N --keep keeps a scale lab’s two volumes when it
stops, the way the learning lab keeps its own, so a service manager can stop it with SIGTERM and
start it again on the same fleet and data. The scale path runs throwaway only without --keep, and
passes --fresh through. The seed step carries a hidden --keep: on a database that holds data it
checks the fleet is the plan’s (one node per site, placed at its site, each site’s simulated
components) and keeps it,
re-minting each node’s enrollment token and the lab user’s password, rather than seeding again; a
kept lab started at another scenario or size is refused, naming --fresh. The stop line and the
ready banner name a kept scale lab’s own restart command, its --project included when not the
default. --keep is refused on a seeded fleet, whose
lab keeps its data already, and beside --ephemeral. The lab guide gains
a soak run: the pinned build, the lab and sampler units, retention inside
the run, reading the series, upgrading mid-soak, and reaching the console through a tunnel. The soak
host and its 72-hour run are not in the repo; worker-run soaks are #1737.
A lab run fails when performance regresses past the committed baseline (#1640)
Section titled “A lab run fails when performance regresses past the committed baseline (#1640)”make perf-check SIZE=ci|laptop (omniglass lab perf check) brings up three throwaway scale labs of
a named size one after another (corporate at 300 systems for ci, 1000 for laptop), warms each for
2 minutes, measures a 5 minute window with lab measure’s own MeasureScale, and compares the runs
with the size’s committed baseline through one pure function, ComparePerf. Exact figures (closed-loop
gaps, ingest lag not measured, redeliveries, delivery loss per hop and kind) must be 0; counts that do
not depend on the machine gate on any host; times and usage gate only on the host the baseline’s
fingerprint names, and read reported elsewhere. A figure fails only past its tolerance and past the
runs’ and the baseline’s combined spread; runs spread past the tolerance read noisy. A run of another
size, window, warm-up or device set, a restarted node or an active impairment is refused as invalid
before any figure is read. make perf-baseline generates a baseline from the same runs and refuses
one that is noisy or nonzero on an exact figure; --append keeps each run as a #1632 series line,
and --samples reads a series’ last runs in place of fresh labs. The class tables render into the lab
guide from make gen, and #1719’s 3000 size extends them by a row. The perf workflow runs the
check on the opt-in run:perf label, never as a required check, and its dispatch regenerates the ci
baseline as an artifact. A lab’s fleet size no longer counts the platform system the boot seed plants
(#1625), so a lab at 20 systems reads 20 and the gate does not refuse its own baseline as another size.
No baseline file is committed yet: this slice ran on a shared build host
whose fingerprint gates neither class, so the ci baseline comes from that dispatch and the laptop
one from the architect’s laptop (#1751). The decision is
ADR-1640.
A path upstream holds what is reached through it (#1652)
Section titled “A path upstream holds what is reached through it (#1652)”A component reached through another now inherits its upstream’s closed gate
(ADR-1652).
The worklist carries each in-band task’s path upstreams (the upstream component and its in-band
endpoints on the same node), and the node derives an upstream gate reason with one pure,
cycle-guarded function each time any reason set moves. While the upstream is closed the dependent’s
polls and probes are held and counted as poll-held-count and a command answers at once naming the
upstream; once it opens, the dependent waits for its own probe before it is released. The reason
names the root of a chain, is published in the rejection row with the upstream’s id, and the
reachability read adds the component’s name. The dev seed reaches touch-a through bar-a. Proven
over the real wire (TestImpairingAnUpstreamHoldsItsPathDependent): two simulated devices on one
node joined by a path edge; unplugging the upstream names it on the dependent’s gate within a probe
pass, the dependent’s held count climbs while its probe result and verdict stay up, and replugging
releases it once its own probe passes.
A batch the server Terms whole reads under its own cause (#1691)
Section titled “A batch the server Terms whole reads under its own cause (#1691)”A batch the telemetry consumer Terms whole now records a Term receipt: the batch’s ledger, with every
item it declared under the cause, so the ingest loss names why it never landed instead of reading
missing. The five Term paths each have an outcome, all loss: refused-owner, refused-task,
refused-batch, refused-metadata and abandoned (the fifth failed delivery). telemetry_receipt
gains a termed column; a landing that finds a Term receipt replaces it, so a node’s retry past the
duplicate window still lands its rows and reads stored, while a Term never overwrites a receipt.
The closed loop’s receipt count (#1639) skips Term receipts. An undecodable batch has no readable
ledger, so it records nothing and stays missing; the issue’s refused-undecodable outcome was not
added. The decisions are
ADR-1691.
An operator switches a PDU outlet, and switching it off holds what it powers (#1653)
Section titled “An operator switches a PDU outlet, and switching it off holds what it powers (#1653)”The boot seed ships the first power commands. outlet-off is disruptive (quiet 15 s, hold 300 s)
and names outlet as its power_outlet_param, so its delivery holds every endpoint of what that
outlet feeds, out-of-band included, through the dependency edges of #1648; outlet-on takes
nothing down. Both are fire-and-forget and refuse params without an outlet from 1 to 4 at the
issue. The simulated Ferrite PDU 4C gains a control face, a POST to its /api/outlets/state behind its basic
auth, which switches one outlet so the next SNMP read and /pdu.json both show it and the outlet’s
current drifts to 0; a bad outlet, a bad state or a wrong password moves nothing. A new shipped
driver, ferrite-pdu-api, carries both commands over that face beside ferrite-pdu-snmp, which
keeps reading the outlets, and the lab attaches it to the boardroom’s power conditioner, whose
outlet 2 feeds the amp.
Tests: the sim switches and refuses (TestFerritePDUSwitchesAnOutlet,
TestFerritePDURefusesABadSwitch, TestFerritePDUDocumentIsReadOnly), the seed ships the pair
(TestSeedCommandTypesShipTheOutletCommands), the driver renders and switches the simulated PDU
(TestTheShippedFerritePDUAPIDriverSwitchesAnOutlet), against Postgres an outlet-off on outlet 2
holds the fed codec’s endpoints and none of the PDU’s or outlet 3’s
(TestOutletOffHoldsWhatTheOutletFeeds, TestOutletOnHoldsNothing), and over the real wire an
outlet-off issued through the API switches the simulated outlet, a run now on the fed sensor is
refused as disrupted, and the PDU’s next status poll reads outlet-2-state off
(TestSwitchingAnOutletOffHoldsWhatItFeeds).
Not yet: settling an outlet command against the outlet’s read-back state waits on a driver naming an instance (#1252); the simulated PDU powers nothing, so a fed device keeps answering and its hold ends on its first up verdict after quiet; outlet cycle and SNMP SET are out of scope.
A fire-and-forget command no node carries out times out instead of reading settled (#1630)
Section titled “A fire-and-forget command no node carries out times out instead of reading settled (#1630)”A command with nothing to settle, such as reboot, used to be inserted settled at its issue, so a
reboot no node ever took, or one the device refused, read as done. It is now issued issued like any
other command and its node’s execution report decides it: settled by reply when the node carried
it out, failed by reply with the masked error when the execution failed, and failed at once when
its binding cannot render. With no report inside its ten minute delivery window the settlement sweep
records timed-out by window, its reason naming where it stopped (queued for a node that did not
take it, delivered with no report, queued on an endpoint placed on no node, or no endpoint whose
driver binds it), and its lifecycle event lands as every other terminal status’s does. The read’s
deadline for such a command is the end of that window and its phase reads queued, then
delivered. The pending query now delivers only a command still issued, so a command the console
already reads as timed out is never actuated afterwards (#1675); one whose settle window passes before its node’s next pull now times out unsent, until faster pickup (#1635). Both sides of the command pull now log a
failure at Warn with facility=command and the node’s name; the node logs only the transition into
failing and an Info line on recovery, so a down server costs two lines, not one a heartbeat
(ADR-1630).
The corporate scale lab carries a signed webhook sender per site (#1747)
Section titled “The corporate scale lab carries a signed webhook sender per site (#1747)”The scale lab’s push lane now carries webhook receipts as well as bookings. The corporate scenario
declares one ucc-platform meeting platform per site in its pushers list, with no systems, so it
speaks for every system of its site. The seed reads the platform’s webhook face (driver: ucc-webhook,
provision: /api/rooms) and the driver spec, and seeds the platform as a component with a
ucc-webhook endpoint, a signing key minted for that seed alone and sealed in the server, and a
ucc-room-id binding per system. The simulator beside the site’s node reads the key and the bound
rooms through the device list, subscribes, adds each room, and the platform’s new rooms_report
behavior posts every room’s state, signed, every 30 seconds. omniglass lab seed reports the senders
it seeded and never the key. A measured corporate lab reads the platform’s posts on the push lane at
loss 0, the five demo rooms the profile ships with arriving unbound as out, not lost, until #1756 retires them. The decision is
ADR-1747.
Every lab pushes: the booking service is an emulator device a scenario declares (#1743)
Section titled “Every lab pushes: the booking service is an emulator device a scenario declares (#1743)”The simulated booking service moved out of the simulator’s run mode into the sim engine as a
booking-service profile with a push face: a cadence and a body template rendered per system,
posted through POST /telemetry:push with the device’s bearer token, its systems read off its own
grant. Scenarios now declare pushers like devices: corporate places one booking service a site over
four of its systems, and the dev fleet’s single booking service is a sim_pushers declaration in the
same form. Both lab kinds provision them one way: the lab mints each pusher’s token per run, the seed
grants its principal telemetry:push on its systems and sets the token, and the simulator beside the
pusher’s node runs it. A corporate lab’s lab measure now reads push-lane ingest rows at loss 0. The
simnode goroutine and OMNIGLASS_SIM_PUSH_TOKEN are gone. The decision is
ADR-1743.
Every hop writes its delivery loss per kind on its platform component (#1659)
Section titled “Every hop writes its delivery loss per kind on its platform component (#1659)”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, with the item kind (metric,
property, event, log) as the instance, every report window and 0 when quiet. A new
internal/delivery Flow counts items as they settle and renders a window’s readings; the node’s
spool counts an acked batch in and out and a dropped, refused or unencodable one in only, and the
server’s consumer counts each landing’s store outcome, each held redelivery as in and out, and each
Termed batch as in only. The keys replace spool-drop-count, publish-failure-count and
bus-telemetry-drop-count, which are gone from the seed, the writer class and the platform view’s
interim delivery group; the API lane’s refused samples now count as lost too. An unbound identity
(one no binding places, which the conduit’s inbox already surfaces) now counts as accounted for, not
loss, on the server hop and in the lab’s ledger read, so the dev seed’s unassigned room reads 0. The decisions are
ADR-1659.
Every measuring lab runs the corporate fleet at a stated size (#1719)
Section titled “Every measuring lab runs the corporate fleet at a stated size (#1719)”A figure from one lab level now compares with the next: every lab level that measures runs the corporate
scenario at a stated size, on a ladder of 20 (the smoke run), 300, 1,000 and 3,000 systems, and the dev
fleet stays the showcase, never a measurement basis. make test-lab’s footprint and scale measure, and
make lab-footprint with no arguments, run corporate at 20 (lab.MeasureScenario, lab.SmokeSystems),
the smallest round size past the last one that drops a product the manifest names; a unit test pins
that 16 and 17 drop one and that 18 to 20 and every rung of the ladder seed them all. The footprint’s
report names the size from the lab’s labels too, not the database’s count. The footprint takes -systems, and since a corporate lab runs a node per site it reads the
lab’s containers by label and sums the nodes into one row, so its table keeps its server, node and
Postgres rows. make scale-lab and make scale-measure default to 300, the ladder’s first level.
lab run stamps the scenario and size on every container it starts (omniglass.lab.scenario,
omniglass.lab.systems), and both measures read them from the lab rather than from their own flags, so
a report always names the fleet it read; measuring a lab without them, or a dev lab, says so and stops.
The scale measure integration at corporate 20 now asserts every figure is read. The perf gate’s refusal
of a run at another scenario or size lands with the gate itself: the spec is recorded on
#1640, since no compare exists yet. The lab
guide gains a table of which fleet each level measures.
Held sessions reconcile on a worklist’s arrival and survive a panic in one session (#1636)
Section titled “Held sessions reconcile on a worklist’s arrival and survive a panic in one session (#1636)”A node’s held sessions now change the moment a worklist lands: the run loop’s worklist case reconciles
them, so a held endpoint added, removed or re-keyed no longer waits for the next heartbeat, and a
reconcile on its own timer stays as the safety net. The loop is now a select over channel clocks on
the one goroutine that owns the session maps, so a unit test drives it with a heartbeat that never
fires and still sees a session start and stop. Every session-layer goroutine runs under
collection.Supervise: a panic on one device’s bytes is logged with its stack, counted, and becomes
that session’s recovering transition with the reason panic: <value>, then the normal backoff; the
node and every other session keep running. First dials and handshakes share node-wide slots
(node run --session-dials, default 16; a redial takes none), so a restart with fifty held endpoints opens them a few at a
time; the integration test restarts a node over fifty simulated panels with four slots, checks no more
than four connect at once, injects a panic into one panel’s reader and watches that one recover while
the other forty-nine keep the connections they held. Unclaimed lines and push counts flush on a
housekeeping timer at the report window, capped at the heartbeat.
Lab measure reads the sim hop of the loss table (#1694)
Section titled “Lab measure reads the sim hop of the loss table (#1694)”The delivery table that lab measure prints now opens with the sim hop: one row per protocol the
nodes tally, the requests the simulated endpoints settled against the replies that reached the node,
read from the closed loop’s marks by closedloop.SimHop. A healthy lab reads 0; a simulator that
withholds, cannot write, or loses its replies reads each as its own cause (withheld, dropped,
not-returned), while a refusal that came back counts as returned. End to end composes the sim
hop’s pooled loss into each kind. The rows are counted in requests because a simulator cannot know
which kinds an answer carried. A real-socket test drives a simulated SNMP agent that withholds
answers to a wrong community and reads them as sim-hop loss, and the scale lab tests require every
sim row at 0. Rendering the closed loop’s batch gaps as ratios is #1738. The decisions are
ADR-1694.
The delivery table reads the node hop (#1692)
Section titled “The delivery table reads the node hop (#1692)”omniglass lab measure now prints a node row per kind above the ingest row: what the node minted
against what its spool shipped, with the node’s own causes (spool-overflow, spool-expired,
bus-refused, self-log-overflow, encode-failed). The spool notes each batch it drops as a run on
its delivery.Ledger, and every batch minted after carries the run until one is acked; the self-log
buffer and the encoder add running totals of items lost before minting. The DeliveryLedger gains
dropped and lost, and the landing transaction keeps them on the receipt’s new node_loss column.
delivery.ReconcileNode reads the node hop from the same receipts as the ingest read, so a hole the
node accounts for is its loss and no longer ingest missing, the node’s out equals the ingest’s in,
and end to end composes the two. A spool overflowed by a bus outage, read against real Postgres and
JetStream, reads as node loss with the ingest row at 0. A boot killed with batches in its spool is
named as unshipped beside the table rather than left unsettled; counting its tail is #1733. The
decisions are
ADR-1692.
Platform health closes the loop with a simulator connected (#1647)
Section titled “Platform health closes the loop with a simulator connected (#1647)”With a simulator connected, Platform health gains
a section that sets what each simulated device saw beside what the node sent and the server collected.
Each node with a simulator gets a card: every hop a request or a batch travels (connect, send, settle,
return, publish, spool, and poll targets the simulator never saw) read as a loss ratio with its lost and
in counts and its masking term, then each protocol’s accepted, received and answered counts, and each
simulated device’s requests, its impaired flag, and whether it was due and never seen. The figures come
from a sliding window the server holds: internal/closedloop, the reconcile #1639 built for the scale
lab moved into a pure package, now also has a ring that brackets each node once a minute (every 10 seconds
on a lab, every second on a test lab) and reads its last ten brackets, so a loss reads while it is
current and clears once the window slides past it
(ADR-1647).
A gap on a node whose simulator carries an impairment reads impaired, not lost; a window holding a
restart, or not yet full, says so and shows no number. The read is GET /views/platform/simulation
(omniglass view platform simulation list), behind simulation:read and a fleet-wide component read.
A new walkthrough drops an snmp device’s packets from its drawer and watches the gap open and clear, and
an end-to-end check holds a whole lab to every gap at 0 and every polled protocol reached. A simulated
device’s drawer now opens from /simulation?c=<component>, and a zero impairment field starts empty, so
a typed value replaces it. received-not-settled now counts only what went unsettled inside the window,
in lab measure as on the page, so a request a simulator left unsettled an hour ago no longer reads in
every window after it.
Platform health shows each server’s request timing, ingest lag, queues and retention (#1645)
Section titled “Platform health shows each server’s request timing, ingest lag, queues and retention (#1645)”Platform health now gives each Omniglass server a panel set: Requests, Ingest, Queues and Retention. The first set is open. A row is one key: its last hour as a sparkline beside its current figure. Click a row, or press Enter on it, to open the full chart. A key’s tooltip carries its catalog description and a link onto its series on the server’s platform component.
The panels are groups the platform view returns per server (storage.PlatformServerGroups), so
the page holds no key list. The slowest and the busiest routes are each cut in SQL to the newest
window’s ten, highest first. A panel turns amber only while an alarm is open whose rule samples one
of its keys, such as Ingest lag high or Retention behind. A key never reported reads not reported,
and a caller without a fleet-wide component read gets no server panels at all. A key the server
writes only for a window that saw something (ingest lag, a drop reason, a slow query, a route’s
timing) reads not reported again two report windows after its last, as the node table’s window
counts do, so a quiet fleet’s last lag is not shown as current.
The page polls, and each poll is a fresh body, so every level (server, panel, key, route, node,
column) renders through a new KeyedFor primitive that keeps a row by its key: an expanded chart,
an open tooltip and a closed panel set survive the poll.
Walkthroughs gained a hover step and an off-camera ready wait. Docs shots gained a wait step.
The divergences from the ticket are
ADR-1645.
The loss view across hops is #1646.
Platform health shows where work is lost, hop by hop (#1646)
Section titled “Platform health shows where work is lost, hop by hop (#1646)”Platform health draws the path a collected item takes from its run to the store as hops, the node’s
spool then the server’s ingest, each read from the three delivery keys #1659 writes on the platform
components that run it. storage.PlatformPipelineHops declares the hops and one read composes them:
each hop’s in, out and loss per kind over the newest window and the last hour, each component’s
share, and the end to end, with nothing in reading no ratio rather than 0. The platform view serves
it as pipeline, with each node’s composed loss and the hops it covers in loss_hops. The console
draws it as PipelineFlow: the hops with a kind filter, a tint above 0, and an explainer per hop
naming its keys and linking each component to its series; the node table gains a Node Loss column.
The walkthrough find-where-work-is-lost breaks a simulated panel and shows its failed polls landing
on the panel while the node hop stays at 0. The walkthrough lab now seeds a 10 s report window so its
figures land inside the recording. The schedule hop (#1693) and the node’s causes (#1692) are not
drawn yet. The decisions are
ADR-1646.
The Platform health walkthrough reads where work is lost and the simulator’s gaps (#1730)
Section titled “The Platform health walkthrough reads where work is lost and the simulator’s gaps (#1730)”The Platform health walkthrough is re-recorded against
the page as it is on main. After the header it waits for both hops under where work is lost to read 0%,
captioned as the share each hop took in and did not hand on, then opens the node hop to read the keys it
is read from and each node’s own share. Past the node table it stops on the simulator’s gap table, each
gap a loss ratio where 0 is healthy. The script test pins both stops, so a later edit that drops the hop
or the simulator section, or their loss-ratio captions, fails make test-web.
The push lane’s batches carry a ledger and read as their own ingest row (#1696)
Section titled “The push lane’s batches carry a ledger and read as their own ingest row (#1696)”What is pushed to omniglass is now accounted like what its nodes collect. The bus server stamps every
batch it publishes on the push subject, from the push route or a webhook, with the delivery ledger
(one boot per server process, a dense seq, and per kind the count and running offset), publishing one
batch at a time so resolved is always the seq below. A publish the stream refuses answers the pusher
503 and takes its items back off the offsets, since the pusher still holds them. A new
internal/delivery Publisher owns the stamp, the turn and the withdrawal. The push lane’s receipts
carry no node, so omniglass lab measure reconciles each lane apart: the delivery table gains a
lane column (and the JSON a lane key), a Termed pushed batch reads under its own cause on the
push lane (its Term receipt under the server’s boot), a hole there reads missing with its own footer,
and the end-to-end line composes the node lane alone. The decisions are
ADR-1696.
The command health read keeps its unexecuted index (#1728)
Section titled “The command health read keeps its unexecuted index (#1728)”ADR-1626 expected #1631’s deliverable index to replace command_unexecuted_idx, so #1728 asked
whether the drop was safe. It is not, and the index stays. The deliverable index is narrowed to
status = 'issued', while the fleet’s queue health read applies no status term (its expired counts
need the terminal commands that never ran, such as one stamped timed out), so the deliverable
predicate is not implied and the read cannot use that index at all.
Measured with EXPLAIN (ANALYZE, BUFFERS) on a seeded fleet of 30 nodes, 3,000 components and
303,331 commands (300,000 executed over 30 days, 3,331 unexecuted): the read touches 2,270 buffers
in 1.9 ms with the index and 4,980 buffers in 11.1 ms without it, its candidate scan falling back to
walking command_component_ts_idx with ts as a non-leading condition, a cost that grows with
history. The pull plans on command_deliverable_idx either way, unchanged by the drop. No migration
ships; ADR-1626 item 4 records the outcome.
Proof: TestCommandHealthReadReachesTheUnexecutedIndex replaces a test that accepted either index
on the planner’s preference. It sets the competing indexes aside in a rolled-back transaction and
asks usability: the read’s candidate scan reaches command_unexecuted_idx, and with that set aside
too, never reaches command_deliverable_idx. A migration dropping the index, and a read narrowed to
issued rows, each turn it red.
Thin cut: the same measurement showed the pull, at that scale, searching the deliverable index by
ts only and discarding other nodes’ rows in a hash join, so it reads the fleet’s live backlog
rather than its own; that is #1731.
The loss table shows the schedule hop, runs due versus runs made (#1693)
Section titled “The loss table shows the schedule hop, runs due versus runs made (#1693)”A node’s dispatcher now counts the schedule hop: every due on a task’s schedule in, every run it
makes out, per kind the run produces (a reachability probe’s metric and property, a driver poll’s the
lanes its emits declare), so a due passed over, behind a run still in flight on its lane or a late
pass, reads as that hop’s loss with the cause skipped. A probe an upstream holds counts made, and a
run off the schedule is no due. The node writes the three delivery keys at the instance
schedule/{kind} on its own component every report window, beside its spool’s. omniglass lab measure reads them over the window and prints a schedule row ahead of each kind’s ingest row, in
the same form as every hop, with no row for a kind no scheduled task produces; end to end composes it,
a hop with nothing in losing nothing, so a kind whose every due was skipped reads 1, not -.
The integration test points a 1 s poll at a device that never answers and reads the schedule loss
above 0 while the ingest hop reads 0: a skipped due made no item to lose. Platform health draws the
hop next (#1739).
The perf gate fails a lossy run and names the kind, the hop and the cause (#1695)
Section titled “The perf gate fails a lossy run and names the kind, the hop and the cause (#1695)”lab perf check already held a delivery_loss/<hop>/<kind> exact row for every row the delivery table
prints, so a run that lost one item in a thousand at any hop already failed. What it did not do was say
why. A failed loss row now carries a note, property lost 3 of 10 at ingest, cause missing, naming the
kind, the hop, the items lost of the items in, and the largest outcome behind the loss: the same cause
the delivery table prints. Over several runs the worst run’s note is the one shown. A failed
delivery_unsettled_boots row names the first three boots no ratio was read from (node and boot) and
counts the rest, with the stream’s backlog note when the stream was the cause; a read that was not
measured fails as delivery_loss with its reason, as before. There is no tolerance.
The cause is derived from a row’s outcomes rather than stored beside them. It had been a field the JSON
dropped, so lab perf check --samples, which reads runs back from their JSON, compared a loss it could
not explain and printed a delivery table with no cause. Reading it from the outcomes makes the table and
the gate say the same thing whether the run was just measured or read back.
The gate reads every hop the delivery table prints: the schedule, node and ingest hops’ per-kind rows
join it with no change to it. The sim hop’s rows are one a protocol with no kind (#1694), so their
figure name and note carry the protocol (delivery_loss/sim/snmp) rather than every protocol reading as
one delivery_loss/sim/ figure, and a push-lane row (#1696) names its lane first
(delivery_loss/push/ingest/metric) rather than folding into the node lane’s row for the same hop and
kind. The lab guide’s delivery
table and baseline sections show a failed row, and the 1640 ADR’s and build log’s 3000 size references
now point at #1719, which owns it.
The scale lab induces a refusal, and its delivery table reads it as loss (#1698)
Section titled “The scale lab induces a refusal, and its delivery table reads it as loss (#1698)”A scale lab brought up with the hidden lab run --induce-unregistered (off unless asked) makes one
simulated device answer a property key no driver registers. The scale seed registers
lab-induced-unregistered, writes a copy of the driver of the first planned device that has a plain property poll, whose extra 10 s poll
emits it from a plain property the device already answers, attaches the copy, and unregisters the
key, so the device’s tasks keep collecting a name the catalog no longer has and ingest refuses each
sample refused-unregistered. The seed’s summary names the device and the driver copy. The
labfootprint integration case TestIntegrationScaleDeliveryInducedUnregistered brings a lab up with
the knob and asserts the delivery table’s property row reads a loss above 0 with that cause while
every metric row reads 0, which proves a refusal is counted as loss rather than out. The lab’s
integration tests now take OMNIGLASS_LAB_IMAGE, so a run against a private tag never rebuilds the
shared omniglass:dev. The other refusals are not induced. The decision is
ADR-1698.
A component that owns endpoints cannot be deleted (#138)
Section titled “A component that owns endpoints cannot be deleted (#138)”Deleting a component refused only while it had child components. A childless component that still
owned endpoints deleted cleanly, and the foreign key set each endpoint’s component to null, which
left the endpoint, and every task derived from it, reachable by an all-scope caller only.
The component’s delete now also counts the endpoints that name it, and a nonzero count is a 409 that
says how many and what to do: “component still owns 2 endpoints: delete or reassign its endpoints
first”. The refusal is its own error (ErrComponentHasEndpoints, carrying the count) rather than a
widening of ErrComponentOccupied, whose text says child components. The child-component refusal and
the referenced-record 409 are unchanged, and the delete route’s description names all three.
The one in-tree caller that deleted a component with endpoints, the rollback of a failed
POST /nodes/{name}/simulation/components, now deletes the endpoints it already made before the
component.
Tests on a real Postgres: the gateway refuses a component with one endpoint, leaves the endpoint’s
component set, and deletes the same component once the endpoint is gone; the API answers 409 naming
the endpoint; and omniglass component delete exits non-zero printing that detail.
A held-session test follows its session, not a count (#1784)
Section titled “A held-session test follows its session, not a count (#1784)”The test that a transient storage error leaves a node’s held session alone read the panel’s session count and wanted exactly one. The endpoint’s reachability probe dials the same panel every 200 ms in that test, and each dial is a session for a moment, so a read that landed on a probe saw two and the test failed under CI load. Sampling the count through the outage reached two in one run of three; with the probe slowed to an hour it stayed at one in five of five.
The simulator’s session registry now names its open sessions (SessionIDs). The test captures the held
session’s ID once the panel holds exactly one, and checks that same session is still open while storage
is down and after it returns. A probe beside it no longer matters, and a node that re-dialed during the
outage would still fail it, since a new connection carries a new ID.
A node’s report windows close on a grid (#1779)
Section titled “A node’s report windows close on a grid (#1779)”A node’s collection report and its account of itself started each window at the moment the last one was taken. The housekeeping pass that takes them runs every two seconds in the lab, so each window ran up to two seconds past its length and the next began there: windows of 60 to 63 seconds, drifting off the minute. A five-minute perf window over a 1,000-system lab held four or five reports per node, which read as a 2.6% spread in metric rows per minute and refused a baseline taken at that size.
Both reports now close on one grid. Each window ends a whole window after the last, at an offset into the window that the node’s name sets, so a late take never lengthens the window that follows, a restart keeps the node’s offset, and a fleet’s nodes land their reports spread across the window rather than together. A take after a stall resumes at the next slot rather than catching up with empty windows. Rows are still stamped when they are taken. The offset comes from the same name hash that already phases the scheduler’s tasks.
Unit tests drive a report through eight windows taken up to 1.999 seconds late and assert each is due at exactly its grid end and not a nanosecond before, for both reports; a take after a stall is due at the next slot; two names close at different offsets and a restart keeps the offset.
A silent node and a nearly full data disk each open an alarm (#1707)
Section titled “A silent node and a nearly full data disk each open an alarm (#1707)”Two official event rules now ship. node-silent reads the checkin-age the server writes for every
claimed node every 15 s: past 90 s, three missed heartbeats, it opens a high alarm on the node’s
platform component with no sustain, and the next heartbeat clears it. It replaces the node-liveness
sweep the nodes page designed, which would have raised a node-down alarm of its own
(ADR-1707).
disk-nearly-full reads a new server figure, data-dir-disk-used-ratio, the used share of the
filesystem holding OMNIGLASS_DATA_DIR, read by statfs on every report window: over 0.9 for 2
minutes it opens a warning on the server’s component, and at 0.85 or under it clears. A failed
read writes no value for that window and logs one WARN until the read recovers; the other figures
still land. The alarm reaches Platform health in the server’s open count; no panel draws the ratio
yet.
A capture’s lab seeds an hour of platform history (#1790)
Section titled “A capture’s lab seeds an hour of platform history (#1790)”The docs screenshots of platform health came from a lab a few minutes old, so each server panel’s
sparkline was a stub at the right edge of an hour-wide chart. lab run --platform-history (hidden,
for scripts) now has the lab’s seed write an hour of the server’s figures on its platform component
on the lab’s first run: a sample a minute, ending the minute before the seed ran, for every key and
instance a server panel reads, source devseed. The values are a healthy small lab’s, fixed per
series so two captures draw the same lines: failures and queues 0, the pool now and then holding a connection, request times and counts jittered around what a console polling the page reads.
The database and table sizes and the oldest partition’s age climb into what the database measures
once the rest of the hour has landed, so the history’s own rows are in the figure and the server’s
next live sample carries the line on rather than drawing a cliff.
The docs screenshots pass it.
It is opt-in, and only a throwaway lab may ask: the plan refuses it without --ephemeral, and a
scale lab refuses it outright, since its platform figures are its measurement. A learner’s lab
writes none. The stream position keys (the consumer’s ack floor and the stream’s head) are left to
the server: the lab’s stream starts over, so a seeded hour would draw a cliff into the live head. So
are the windowed ingest, push and slow query figures: a capture’s lab has no node to write them
live, and a windowed figure whose newest sample is two report windows old reads not reported, so a
seeded hour of them would never draw.
An hour reaching back past midnight UTC lands in a day the server’s boot has not made yet (the seed runs before the server starts), so a platform write now makes a missing metric day and retries, as the ingest’s write already did; a storage test drops yesterday’s partition and records into it.
A unit test fails any server panel key the history neither seeds, measures nor exempts with a reason; another holds every failure at 0, and another ends each size on the figure measured. Integration tests on a real Postgres hold the metric table’s last seeded size above what it measured before the history’s rows landed, and land sixty samples per series with a second run adding none. The lab’s own seed one-off lands the history with the flag; without it the server carries no sample, and the dev fleet’s seed writes none on any platform component.
A chart’s end dot sits on its line (#1789)
Section titled “A chart’s end dot sits on its line (#1789)”A bucketed chart drew its line through each bucket’s average at the bucket’s center, but put its end dot at the newest bucket’s last reading. Wherever the last differed from the average, which for a rising counter is nearly every minute, the dot floated above or below the end of the line, and the newest min/max band ran half a bucket past it. Platform health’s sparklines showed it on most rows.
The line now runs on from the newest average to the dot, placed at the bucket’s end (or now, for the bucket still filling), so the dot sits on the line and every band stops where the line does.
Nodes and Platform health move under Admin (#1767)
Section titled “Nodes and Platform health move under Admin (#1767)”Nodes and Platform health left the top level of the sidebar for the Admin group: enrolling a node
and reading whether Omniglass itself is well are administration, not day-to-day fleet work
(ADR-1767). Platform health’s door is labeled Status, rather than Platform, which reads as
vague, or Performance, which names only the timings. Both keep their routes, /nodes and
/platform, and their node:read gate, so Admin now shows them, beside the ungated Settings, to
a node:read holder without the admin tier. The pages keep their titles, and Home’s Platform tile
is unchanged.
Every sidebar tab is now one word, and a nav test holds the rule over every group, leaf and child, so the next tab that needs two words fails the build rather than slipping in.
Platform health reads the telemetry ack floor against the stream head, and lists every platform key (#1763)
Section titled “Platform health reads the telemetry ack floor against the stream head, and lists every platform key (#1763)”The Queues panel gains the telemetry consumer’s ack floor read against the stream’s head, the pair #1758 added for the lab’s delivery read to settle on, so an operator sees the same settle the lab waits for: the gap is the backlog in sequences, and a floor reaching an earlier head means every batch stored by then is answered.
Both gauges had landed off the page because its panels list their keys by hand. A new test,
TestPlatformPageListsEveryPlatformKey, now walks every platform key the server or a node writes of
itself and fails naming any key no panel reads and the off-page list does not name. That list
gives each kept-off key its reason (a process’s runtime figures, the bus’s request and pull counts,
the retention pass’s bookkeeping, node detail beyond the table’s columns), all of which read on the
component page a panel or a row opens. Before the panel change the test failed naming exactly the
two new gauges.
Platform health shows the server’s failure counts (#1769)
Section titled “Platform health shows the server’s failure counts (#1769)”The server’s failure counts are on its panels: bus request failures against the requests on each path
and sweep failures against each sweep’s passes, both a / b, telemetry ack failures on Queues, and the
retention pass’s failure on Retention.
Each failure count is now written 0 beside a window of attempts that all succeeded, by one bus
primitive the push lane’s refusal count already used. Before, a failure count landed only when it was
above 0, so a healthy path read “not reported” rather than 0 / n, and a missing figure could not tell
a quiet path from a clean one.
A capture’s platform history (lab run --platform-history) seeds an hour of the sweep and retention
pass rows at 0 failures, so their sparklines run the hour. The bus request and telemetry ack rows are
left to the server, like the ingest rows: a capture’s lab has no node to write them. The sweep names
moved to writerclass, beside the keys they are instances of, so the server and the history share one
list.
The 1000 rung has a committed baseline (#1751)
Section titled “The 1000 rung has a committed baseline (#1751)”make perf-check SIZE=1000 now has a baseline to gate against. corporate-1000.json was generated by
omniglass lab perf baseline --size 1000 from main’s build on a throwaway test VM (8 cores, 16 GiB), the
host class the 1000 rung moved to (#1780), and committed unedited.
The laptop attempt had refused: metric rows a minute spread 2.6 percent against a 2 percent tolerance, which was each node’s report window drifting later by its take’s lateness (#1779). With the windows on a grid, the three runs read 60,559, 60,470 and 60,611 rows a minute, a 0.23 percent spread, and every figure settled inside its tolerance.
A check of the 1000 rung on the same host class gates every figure; anywhere else the host-dependent times and usage read reported, as the 300 rung’s do off a GitHub runner.
The console shell is inert while a blade is open (#25)
Section titled “The console shell is inert while a blade is open (#25)”The blade stack trapped Tab and marked its top blade aria-modal, but the page behind it stayed
live: screen readers still walked the sidebar, the top bar and the list rows, and aria-modal
alone does not hide the background in every assistive technology. The shell root in App.tsx
now carries data-app-shell, and the stack sets inert on it while any blade is open and
removes it when the last one closes, in the same effect family as the focus restore. Blades, toasts
and the command palette portal to the body, outside that root, so they stay interactive; the Tab
trap stays as the fallback for a browser without inert. Tests in BladeStack.test.tsx hold the
attribute through push, drill, pop and close, the blade outside the inert root, and focus returning
to the opener.
The delivery read settles on the telemetry consumer’s ack floor, not an empty consumer (#1758)
Section titled “The delivery read settles on the telemetry consumer’s ack floor, not an empty consumer (#1758)”The delivery read waited for the server’s bus-consumer-pending and bus-consumer-ack-pending gauges
to read 0 together before it reconciled the window. Under steady load the consumer always holds the
batch in flight, so that moment never came: the read ran out its bound and named every boot
unsettled, and make perf-check SIZE=laptop failed delivery_unsettled_boots at 19 against a baseline
of 0.
What the read needs is narrower: every batch published by the time the window’s last batches were
known published has been answered. The server now gauges two more figures each report window,
bus-stream-last-seq (the stream’s head, read first) and bus-consumer-ack-floor (the durable’s
ack floor, read after), and the read keeps every report of them since the window closed. The publish
moment is the latest mint of the batches that proved each boot settled, of the next boot’s first batch
for a boot that ended, and the window’s close. A report counts as reading the head after that moment
only when the report before it flushed at or after it, since a report stamps its time after it reads.
The read settles once any report from that one on carries an ack floor at or past that head; batches
arriving behind it no longer hold the read. A Term at the delivery bound advances the floor as an ack
does, so a dropped batch does not stall it.
The rule is a pure function over the report series, tested with a consumer that always holds batches
(it settles and reads every hop), a floor that never passes (it stays unsettled and its note names the
floor and the head), and a report stamped after the publish moment whose read came before it (not
counted). The unsettled note now reads the ack floor reached 41, not yet past the stream's last sequence 45, or names the gauge never read. The both-zero rule is gone with no fallback.
At the platform’s 60 s report window the settle can take four windows (the proving batch, a report
after it, the head read, the floor past it), so --settle-timeout on lab measure and lab perf
now defaults to 5 minutes, up from 3.
The nightly demos record again (#1622)
Section titled “The nightly demos record again (#1622)”Seven demos failed the nightly run on main, each because the product moved under a tape that still
told the old story. The delivery loss demo reads the node’s own hop by its bare kinds. The command
queue health demo shows a command held through a stream outage settling failed when its 15 s
settle window closes, never delivered late, and reads the session’s connected state as up. The set
up monitoring walkthrough waits on the ping’s round trip, since ICMP Reachable became a property
(#1595) and left Vitals. Four tapes that ran lab measure on screen (push lane ledger, lab measure
fleet, lab measure series, scale lab pushes) now run it unseen behind a caption naming the command,
as the other measure demos already do: the ack-floor settle (#1762) lengthened a measurement past
the 180 s budget, past a visible wait, and past what a runner could render into a GIF.
The perf gate reads the working set across the window and the fleet view 100 times (#1751)
Section titled “The perf gate reads the working set across the window and the fleet view 100 times (#1751)”The second ci baseline dispatch refused two host-dependent figures as noisy: the server’s working set
spread 23 percent against a 15 percent tolerance, and the fleet view p95 spread 37 percent against 20.
An earlier dispatch had read both at 14 percent, so the tolerances were not the problem; the
measurements were.
The working set was one read of each container’s cgroup at the window’s end, so a run read the Go heap
wherever its collection cycle had reached: just after a collection, or at the peak before one. A scale
window now reads every container’s usage about 30 times across it (a read every 10 s of the 5 minute
window, besides its two ends) and reports the median, so one read at a peak does not set the figure.
CPU is still the window’s delta. The median is a small pure function (MedianWorkingSetMiB) applied by
MedianWorkingSets, and the reads are taken by a sampler the window stops when it ends; lab scale,
lab perf and a lab measure --every sampling run all measure through the same window, so they read
the working set the same way. The lab footprint’s idle and loaded reads are unchanged.
The fleet view p95 was the nearest-rank p95 of 20 timed reads, which is the second slowest, so a single
slow read moved it. Both sizes now time 100 reads (lab.FleetViewReads), which puts five above the p95,
and lab measure --fleet-reads defaults to the same. A test holds every size to at least five reads
above its p95.
Both change what a run measures, so a baseline taken before this build does not compare with one taken
after: the laptop baseline is generated from a build with this change.
The push lane reports its publish turn, and lab measure reads a refused push as refused (#1746)
Section titled “The push lane reports its publish turn, and lab measure reads a refused push as refused (#1746)”The push lane publishes one batch at a time, and a push that waits past 5 seconds for its turn is
answered 503 with nothing minted, so until now a push lane refusing its pushers read 0 loss. The
publisher now reports every turn to an observer, and the server writes four figures each report
window on its platform component: push-lane-publish-count, push-lane-refusal-count,
push-lane-turn-wait-p99 and push-lane-turn-wait-max (the platform recorder gained a quantile
fold for the p99; a push whose pusher gave up waiting counts its wait there and in neither count). Platform health shows them on the server’s Ingest panel, refusals as a share of
publishes. lab measure sums the two counts over its window into a push-lane publish row ahead of
the ingest rows, counted in pushes, its loss refused-turn, and the perf gate reads it as
delivery_loss/push/publish/pushes. A unit test holds the turn, refuses a push, and proves the
ledger still reconciles with nothing missing, while the scale summary reads the refusal on the
publish row. The decisions are
ADR-1746.
The push lane’s one publish turn holds at corporate 3,000 (#1746)
Section titled “The push lane’s one publish turn holds at corporate 3,000 (#1746)”The corporate scenario ran at 1,000 and 3,000 systems with a booking service and a meeting-platform
webhook account pushing at every site, each measured over a 10 minute window after a 3 minute
warm-up, and the push lane’s turn figures read from the lab database. At 1,000 (18 sites, 36
pushers) the window held 1,800 pushes, 3 a second; the per-minute p99 turn wait ran 0.005 to
0.0125 ms, the worst wait 0.035 ms, and no push was refused. At 3,000 (30 sites, 60 pushers) it held
3,001 pushes, 5 a second; the p99 ran 0.004 to 0.0105 ms, the worst wait 2.18 ms in one minute, and
again no push was refused. Against a 5 second bound the turn is almost always free, so the
server-wide publisher stays
(ADR-1746.2).
Every loss figure read at both sizes was 0, but at 3,000 the delivery read never settled: the
consumer, 74% busy at 50 batches a second, always held one batch, so the node and ingest hops read
unsettled (#1758).
The server’s housekeeping tells its platform component what it did (#1708)
Section titled “The server’s housekeeping tells its platform component what it did (#1708)”The retention pass and the boot’s partition check narrated only to the process’s stdout. They now
also write log_line rows on the server’s platform component, next to the figures #1629 lands there:
source omniglass-server, facility retention, one info line per kind of work a pass did (rows pruned
with the per-lane counts and their total, hours closed into trends, days folded into blocks, partitions
rolled) and a warning carrying the error when a pass fails. The boot writes metric partitions
created when it made any. A pass that did nothing writes nothing, and no pass raises an event.
The slog line and the log line are told from one note, so the two cannot say different things. The
write goes through the Storage Gateway under a deadline of its own; a failed write is one warning in
the process’s log and the pass goes on, and a server shutting down writes nothing. The planned
internal_log table is dropped: the platform component already owns a narration table
(ADR-1708).
Integration tests on a real Postgres read the lines back through ListComponentLogs: a pass that
prunes 7 aged debug lines leaves a line with log_line/debug at 7, a boot that recreates a missing day
partition leaves the creation, and an idle pass writes no line and no event.
A component’s system membership is editable from the component (#767)
Section titled “A component’s system membership is editable from the component (#767)”The component create form offers a System; its edit face did not, so a binding made at create had no
path back for the operator even though the member routes existed. The edit face now carries a
Memberships field: the primary system as a picker over the systems the caller’s system:update
reaches, and the other memberships as removable chips. Save runs the add, :setPrimary and remove
calls in that order (planMembershipChanges in web/src/lib/members.ts), refreshes the component’s
memberships and every system’s member list, and shows a refused write inline. The set of bindable
systems is one function now (bindableSystemNodes), shared with the create form. No API or schema
change; membership stays its own verb rather than a field on the component’s update or move.
A composite write records one health edge per owner (#915)
Section titled “A composite write records one health edge per owner (#915)”Adding a planned or simulated system staffed its role slots one by one, recomputing health for the
whole location chain after each, so the system’s history recorded incomplete and then healthy
milliseconds apart: an edge no reader could have observed, since the transaction is atomic, and N+1
chain passes holding the advisory locks for the whole composite. The create-system and assign-role
bodies now take an optional deferral that collects their owners, and the plan runs one recompute over
the deduplicated components, systems and locations before commit. The system and each location above
it record exactly one health edge, the final verdict, and the recompute cost no longer grows with the
slot count. Single writes pass no deferral and recompute inline, unchanged.
A declared or intended series resolves by insertion, not the wall clock (#712)
Section titled “A declared or intended series resolves by insertion, not the wall clock (#712)”TestDeclaredValuesAppendToSeries and TestLocationPropertiesAPI each failed once in a run of
hundreds, with a tombstone losing to the row before it. The cause was never a tie: the series ordered
by ts desc, id desc, and ts is the database’s wall clock, so a clock stepping backwards between
two writes to one series made the earlier row the current one.
A declared row never carries a caller’s timestamp, and nor does an intended one (the database stamps
it at the command’s open), so for those two lanes the identity id is the authoritative order and ts
only an annotation. Both now resolve by id desc in every place that reads their current row:
LatestValue, the set’s and the clear’s append-only-on-change guard, currentDeclared, the
effective-property read, the told value and the per-command intended reads, the settlement reads and
the metric lane’s intended tier. The new seriesOrderSQL names the rule for the one query that takes
the provenance as an argument. The observed lane keeps ts desc, id desc,
because a node or device supplies its ts, and each ts-ordered read on the audit list (the calc
inputs and window, the observed-per-instance walk, the endpoint rejection and key pin) now carries a comment saying which order it uses and why.
Three tests on a real Postgres fix it in place: a declared series whose second row carries an earlier
ts resolves to the second row through the latest read, the effective read and the write guard; an
intended series with a later ts on the first command resolves to the later command through the latest
read and the told value; and an observed series with a backfilled older sample written last still
resolves to the newer reading.
Creating a node in the console no longer enrolls it (#287)
Section titled “Creating a node in the console no longer enrolls it (#287)”The console’s create form used to chain POST /nodes into POST /nodes/{name}:enroll, so a
principal with node:create alone could not create a node and one with both got a token minted
whether or not the device was ready to claim it. The two are now separate acts, as they are in the
API: the form posts the create, closes, opens the new node’s blade and toasts “Node created. Enroll
it when the device is ready.”, and the create button is gated on node:create alone. The blade
carries Enroll as its primary action while the node has never been enrolled, and Re-enroll stays in
the kebab afterwards; both stay gated by node:enroll. Tests assert a create issues exactly one
request and none to :enroll, that a node:create-only principal can create and sees no Enroll,
and that the unenrolled blade’s primary Enroll reveals the token once.
A number input takes a number (#901)
Section titled “A number input takes a number (#901)”A driver input declared kind: number now takes a JSON number on endpoint create and update:
"port": 10161 attaches snmp-generic where it was a 422 expected string. The body’s inputs are a
map of string-or-number scalars (a oneOf in the generated OpenAPI, so the typed client and the MCP
tool schemas say so too), and a number is stored as its decimal string ("10161"), so
endpoint.inputs and the driver’s number check are unchanged. A string still works. A boolean, object
or array is a 422 naming the input. The collection operator guide’s attach example shows a numeric
port.
A one-off system declares its first role from the console (#321)
Section titled “A one-off system declares its first role from the console (#321)”A system with no standard inherits no roles, and its Roles panel had no way to add one even though the
panel’s own empty copy says a role is declared “directly on the system”. In edit mode (and holding
system:update) the Ad hoc group now carries an add row, including from the empty state, and each ad
hoc role gains edit and withdraw controls. Inherited rows stay read-only: they are edited on the
standard. A name the system’s standard already declares comes back from the server as a 409, which the
add row shows inline in the server’s words, leaving the draft and the panel in edit.
web/src/lib/system_roles.ts gains setSystemRole and deleteSystemRole over the existing
PATCH and DELETE /systems/{name}/roles/{role}; no API changed. RoleEditor’s declare row and
in-place edit form are now owner-generic (RoleDeclareRow, RoleEditForm, keyed by a standard or
system owner, each holding its own draft and error), so the standard’s panel and the system’s share
one set of controls and differ only in which write they call. The standards behaviour and its tests are
unchanged.
A tree picker keeps its indent out of the closed value (#766)
Section titled “A tree picker keeps its indent out of the closed value (#766)”TreeSelect is now a Kobalte Select over flattenTree. The old native <select> indented a deep node
with non-breaking spaces and a └ typed into the option text, and the browser showed that text on the
closed face, so a selected room read as a ragged run of whitespace. The closed trigger now shows the bare
label, with the ancestor path drawn after it by CSS from a data-path attribute, and each item in the open,
portaled list carries a depth-based inline padding-left with the glyph drawn by a pseudo-element. The
selected option is derived from the value and the options together, so a value set before the options load
still selects (the #772 case) without bindSelectValue. SystemTypeSelect and ComponentTypeSelect wrap
TreeSelect instead of repeating the indent. FieldRow now points its label at the trigger through a
data-field-target marker so the control keeps its label as an accessible name. The Select is modal while
open, as a native dropdown is: inside a drawer (a modal Dialog) a non-modal list portaled to the body was
marked aria-hidden by the dialog, so a screen reader could not reach a single option.
Ambiguous name-shaped addresses show a message
Section titled “Ambiguous name-shaped addresses show a message”Fixed #853: a name-shaped component, location, or system address now:
- resolves to the UUID and redirects only when the name matches exactly one entity
- shows “More than one [noun] has this name; open it from Explore” when ambiguous
- shows “No [noun] answers this address…” only when truly missing
Previously, ComponentLeaf would silently redirect to an arbitrary match (first in list order), and LocationZoom would render as if the resource didn’t exist.
This implements the rule from #759: names resolve only when unique.
Blade and workspace edits keep track of the edit (#854)
Section titled “Blade and workspace edits keep track of the edit (#854)”Four gaps in the blade and Configure edit flows closed. Deleting a component from its blade now also
refreshes the system roles and health reads, so a system page no longer shows the deleted component
staffing a role. A failed Save shows its reason in the footer beside Save (a new SaveError, fed by the
edit slot) instead of only at the top of the form, and the blade footer no longer swallows the
rejection. Leaving Configure with unsaved drafts asks first (lib/leave_guard.ts, asked by the tab
rail), a component’s staged membership changes counted among the drafts: confirm discards, cancel
stays. The Configure face is keyed on the route id in the system,
location and component pages, so moving to another entity starts a fresh edit. A component that staffs
a role is still refused by the server with a 409, and the blade says so. Panel drafts (fields,
tags) are not part of the dirty check yet.
Breadcrumb crumbs are links (#875)
Section titled “Breadcrumb crumbs are links (#875)”Each breadcrumb crumb with a destination is a real link now, the router’s A with an href, not a
<button> that called navigate. It can be middle-clicked or opened in a new tab, its address copied, a
screen reader announces a link inside the navigation landmark, and the target is in the DOM. The Crumb
type takes an href where it took an onClick; the component, location, system and component pages and
the subscriptions page pass the address they already computed. The current crumb stays plain text with
aria-current="page", and the truncation rule is unchanged.
Committed images have sanctioned homes (#922)
Section titled “Committed images have sanctioned homes (#922)”The eleven PNGs under .prshots/, PR evidence committed before .github/screenshots/ was the home,
are removed from the tree. A guard test in internal/build now walks git ls-files and refuses a
committed image outside the six sanctioned homes, which
docs with everything lists.
Console dead exports removed (#851)
Section titled “Console dead exports removed (#851)”Removed dead code found during the explorer readiness pass (#834). The following exports had no callers outside their own tests:
getSystem,getLocation,getComponent(lib/systems.ts, lib/locations.ts, lib/components.ts)setComponentProperty,clearComponentProperty(lib/component_properties.ts)systemTypeByName,resolveSystemTypeIcon(lib/system_types.ts)useIsMobile(lib/format.ts)- Icons:
Package,Sun,Star(components/icons.tsx) - The entire module
lib/product_properties.ts; the ProductContractEditor test, its only importer, now seeds the cache throughclassifierPropertiesKeydirectly
Cleaned up ListCtx in TreeList to include only the members actually used by Files.tsx and its tests: full, openEdit, openCreate, parentOf, byId. Removed members: openNode, go, openFull, pushBlade, openBlade, popBlade, closeBlades, setFullPage, pathOf. The full page also drops its ancestor crumbs (Files is flat, so the path was always empty) and its own edit slot with ListCtx.edit, which no detail body read.
Every gated resource registers its scope (#754)
Section titled “Every gated resource registers its scope (#754)”A permission whose resource the scope resolver does not know now fails make test, naming the route
and the permission. The resolver used to answer an unregistered resource with the empty set for every
grant but an all one, so a route fenced on it would have denied every scoped caller while an owner
kept working, which is how command:issue nearly shipped in #749. The new test reads the permission
stamps off every operation in the generated OpenAPI, so it tracks the routes with no list to keep; the
catalog and directory resources that only an all grant confers are now declared fleet-wide rather
than left to the default. Behind it, a resolved scope remembers the resource it was resolved for, and
the gateway’s scoped and placement resolves refuse a set whose resource cannot be checked against the
table in front of them with a logged wiring error (a 500), instead of a denial that reads like an empty
grant.
Console placeholders, API docs, and guides now use the fictional catalog
Section titled “Console placeholders, API docs, and guides now use the fictional catalog”Platform-authored examples now consistently use the fictional catalog (Boreal, Kestrel, Lyra, Newtron) instead of real manufacturer names (Crestron, Cisco, Samsung). Updated console form placeholders, code comments, API documentation tags, docs guides, and devseed fixtures to reflect the official seeded products in the omniglass-lab universe.
Regenerated OpenAPI schemas and CLI reference via make gen; refreshed docs screenshots via make docs-shots and committed files.png.
Fire-and-forget commands refuse settle from response (#908)
Section titled “Fire-and-forget commands refuse settle from response (#908)”A driver spec that binds a fire-and-forget command (one setting no target value, such as reboot) and declares settle: { from: response } is now refused at write with the message “command X is fire-and-forget: it settles at its issue, so it declares no settle”.
Fire-and-forget commands settle when their execution report arrives or times out (at issue), not from the device’s reply. A settle declaration reading the response is moot and signals confusion in the spec’s authoring.
Updated the drivers admin guide settle section to explain the rule: fire-and-forget commands declare no settle, settleable commands declare how they judge the reply or read the next observation.
Profile controls are labelled (#973)
Section titled “Profile controls are labelled (#973)”The Username and Email inputs on the /profile page now have programmatic labels: each input carries an id and its <label for=...> points to it, matching the pattern already used for the Name field. The Email input keeps its not set placeholder as a hint, but no longer depends on it for a name: a placeholder is not a label and disappears once a value is set.
As a result, make probe reports zero label violations on /profile; screen readers announce both fields by name.
The fix is tested by a new vitest that resolves both inputs via getByLabelText("Username") and getByLabelText("Email"), consistent with WCAG accessible name guidance.
Retyping a location in place is placement-checked (#251)
Section titled “Retyping a location in place is placement-checked (#251)”allowed_parent_types was enforced on create and on move, so an operator could sidestep it by editing a
location’s type instead of moving it: the console’s edit form sends location_type on every save, and a
location retyped to a type that excludes its current parent only surfaced on the next move.
UpdateLocation now checks the final type against the parent the row already has whenever the
classification actually changes, and refuses it with the same 422 a move gets (<type> is not allowed under <parent type>, or <type> is not allowed at root for a root location). A patch that restates the type the
row already carries is not a change and is not checked, so a grandfathered placement stays untouched until
an operator edits its type, which keeps ADR-0030’s forward-only contract.
Storage and API tests cover a refused reclassify (by name and by uuid, with nothing written), one that succeeds, a root location retyped to a type that forbids root, and the restated-type no-op.
admin revoke_session now records the target principal (#179)
Section titled “admin revoke_session now records the target principal (#179)”An admin’s session revoke is now audited with both the acting admin (as before) and the target principal, answering “whose sessions did this admin revoke?” through the audit trail. The storage layer adds WriteAuthEventFor(ctx, actorID, verb, resource, resourceID string) for auth events that name a target, while self-service logout keeps resource='auth' with no target. The admin lane calls it with resource='principal' and the target id.
System name check asks the right bucket (#852)
Section titled “System name check asks the right bucket (#852)”The system rename precheck in the web console was passing the system’s current location name instead of its location ID to the check endpoint, and passing undefined for the parent when the system has a parent. Both parent and location parameters are the UUIDs that define the name bucket, not the names. The check also silently failed instead of showing an error when the check call rejected.
Fixed by passing the _id versions of the placement fields (parent_id, location_id) to the check functions, and displaying the error when a check call fails.
The create rail renders through FormActionBar inline (#337)
Section titled “The create rail renders through FormActionBar inline (#337)”Full-page create forms (EntityCreateForm) now render their Cancel and Create buttons through FormActionBar with the inline prop, the same rail the create page’s template face draws. The hand-rolled row is replaced; the labels and the disabled rule are unchanged, and Cancel moves from the left edge to sit beside Create at the right, so both faces of /<kind>s/create align. Because FormActionBar’s buttons are type=button, the form includes a visually hidden type=submit button (Tailwind sr-only, tabIndex=-1) that gives the browser’s implicit submission algorithm a submit target; pressing Enter in a text field fires the form’s onSubmit handler, which guards the disabled rule before calling create. rail-ownership.test.ts gains a fourth guard that bans the pattern everywhere except FormActionBar (PanelFooter draws a differently padded rail, so the pattern does not match it), closing the gap it deliberately left open (#1329, ADR-0054).
The delivery read scans the receipts once (#1841)
Section titled “The delivery read scans the receipts once (#1841)”The 72-hour corporate 3,000 soak stalled its own ingest within hours: lab measure’s delivery read
found each boot’s first receipt in the window and its lower neighbor with correlated subqueries, which
Postgres ran once per receipt, so the read grew with the square of the receipts table and ran for hours.
A measure the timer killed left its query running, the next sample started another, and the stacked
scans starved the consumer the soak was measuring. The read is now window functions over a single scan,
with the same rows out: on the soak’s 492,000 receipts it returns in under three seconds. Every harness
query also carries a statement_timeout taken from its context (capped at ten minutes) and its own
application name, and a cancelled context closes the read and cancels its backend, so an interrupted
measure leaves nothing running in the lab it measured. No index was added: the rewrite costs ingest
nothing.
The dev fleet plants a secret cascade to read (#168)
Section titled “The dev fleet plants a secret cascade to read (#168)”A fresh make dev and the lab now come up with one secret name at three tiers: sim-panel-login
exists at the platform, on Boardroom A, and on the touch panel inside it. The panel’s effective
secrets show its own copy as the winner with the room’s and the platform’s shadowed beneath it, a
sibling in the room resolves the room’s copy, and every other component the platform’s. There is no
system tier, because secrets have no system band.
A fixture secret (sim_secrets in fixtures.yaml) can now name an owner_kind (location or
component) and an owner (a fixture key, resolved to the seeded row’s id like a component’s
location); a secret naming neither stays a platform secret. They are created through the Storage
Gateway like the rest, and a re-run finds each tier’s copy already there and creates none.
Two constraints shaped which name is planted and when. An attach refuses a secret name with more than
one copy to choose from (#820), so the copies below the platform are created after every endpoint. And
a node refuses a name with more than one copy cascading onto a component, so the planted name must be
one no endpoint beneath the planted owner references; sim-panel-login is used only by the huddle
panel’s console, in another room. A fixture test holds that rule for any later planted secret.
An integration test on a real Postgres runs the dev seed and resolves the effective secrets of the panel (component winner, room and platform shadowed), of a video bar in the room (room winner, platform shadowed) and of a huddle display (platform alone), and a second seed run leaves the secret count where it was.
The screenshot freshness gate compares every pixel (#774)
Section titled “The screenshot freshness gate compares every pixel (#774)”The gate’s zero tolerance was a zero count of pixels pixelmatch judges different at threshold 0.1, which
cannot see the console’s dark surface tones apart: a mask box resizing 8,400 pixels (#773) and a mask edge
moving a column (#1081) both scored 0.000%. compareShot now compares the PNG bytes first (a byte-equal pair
is ok without decoding) and on a mismatch counts every pixel that differs in any channel, alpha included;
DOCS_SHOTS_MAX_RATIO still applies, to that exact count. pixelmatch stays in the dev locator
web/e2e/shot-jitter.mjs, where a perceptual diff is the point. DOCS_SHOTS_EXACT is gone: the default is
what it opted into, and a mask is proven to hold by DOCS_SHOTS_TZ=… make docs-shots-check.
Under the exact gate, a baseline captured on a dirty tree no longer slips through: the console shows the build id,
a dirty tree’s -dirty-<time> id wraps the platform cards a line taller than CI’s bare commit, and the shots of
that page shift. The platform health baselines were recaptured on a committed tree, and the contributing guide now
says to capture on one.
It also exposed a residue the threshold had hidden on main: five pixels of the users page’s avatar gradient, one green level apart, because the capturing host had no AVX2 and the pinned browser rasterized that gradient on a different SIMD path from CI. The users shots now come from the freshness job’s own recapture, and the guide names CI as the canonical raster and says to adopt that recapture.
The label scan keeps its for update, with a witness (#731)
Section titled “The label scan keeps its for update, with a witness (#731)”#709 found that FOR UPDATE inside a resolving read serialises writers without refreshing what the
read resolved, and fixed the registry fork. The label recompute’s row scan has the same shape, with
correlated subqueries for the location, product, standard and parent names around each row, so #731
asked whether a label could be composed from names its scan saw before a lock wait.
It cannot, and the code now says why beside the for update. A label reads the locked row’s own
columns, which the re-read after the wait refreshes, and facts resolved by separate statements after
the scan. No label key reads a scan subquery column, and a unit test now pins that. A contention
test forces the interleaving rather than racing for it: a held row lock stops a bulk recompute in its
scan, a location relabel queues its cascade behind the operation lock, and a product rename commits
in the window. A control statement shaped like the scan reads the pre-rename product label every
round, which proves the window is real. The recompute reads the new one. Rendering ProductName
from the scan’s subquery fails the test at round 0.
Tracing the writers turned up a different window, filed as #1805: a component moved into a location while that location’s label is edited keeps the old location label, because the move’s own stamp reads the location unlocked and the cascade’s scan never sees the moved-in row. The forced interleave reproduces it every time.
The perf gate runs on test VMs (#1787)
Section titled “The perf gate runs on test VMs (#1787)”The perf gate no longer runs in CI. The perf workflow and its run:perf label are gone, and
corporate-300.json was regenerated by omniglass lab perf baseline --size 300 from main’s build on a
throwaway test VM (8 cores, 16 GiB), the host class corporate-1000.json came from, and committed
unedited. A check of either rung on that host class now gates every figure, times and usage included
(ADR-1787).
The receipt packs its accounting (#1699)
Section titled “The receipt packs its accounting (#1699)”A telemetry receipt’s ledger and outcome are integer arrays now, not jsonb objects: the ledger a (count, before) pair per kind slot, the outcome sparse (code, n) pairs under codes that never move. The receipt is one row a batch, so the names a jsonb object repeated on every row were a fixed cost on every batch. A migration converts the stored rows in place and back. On a three-system corporate lab, receipts a day fell from 219 to 151 MiB, about 942 to 669 B a batch, with loss 0 on every kind and hop. The scaling page’s receipts-a-day target moves from 0.5 to 1.2 GiB at 1,000 systems (ADR-1699): the old figure predates the per-batch accounting, and no receipt carrying it fits under 0.5.
The server’s label order is the order the console renders (#757)
Section titled “The server’s label order is the order the console renders (#757)”The rule “a row with no label sorts last, otherwise by label, then by name” lived in two languages: SQL
(order by label nulls last, name on every registry list) and byLabel in the console, which re-sorted
every list the server had already ordered. A screenshot caught the one time they disagreed; no test did.
The console now renders a served list in the order it arrives. An audit of every byLabel call site
removed it from the registry pages (tags, secrets, variables, products, vendors, drivers, standards,
location types), the pickers over those registries, the role editor’s catalogs, and the system and
component type trees, which now group without sorting. Three sites keep it, because their endpoints
serve another order (secret types and nodes by name, the template catalog by kind then name); each says
so, and byLabel’s doc comment lists them.
One fixture, web/src/lib/label_order.fixture.json, holds the rows and the sequence the rule must
produce. A storage test creates the rows and reads them back through ListTags; a web test sorts them
with byLabel; both assert the same committed sequence, so changing the rule on one side fails the
other. FlatList is pinned to render rows as received until the operator sorts a column, and the Tags
page to render the server’s order without re-sorting. The design system states the rule: lists render in
server order, and the SQL rule is the ordering primitive.
The simulator catalog drops its fleet and room archetypes (#914)
Section titled “The simulator catalog drops its fleet and room archetypes (#914)”The embedded simulator catalog had two layers above the devices that spoke a vocabulary of their
own: room archetypes (systems/*.yaml, with roles such as codec and touch-controller) and fleet
manifests (fleets/*.yaml, with system types such as “Standard Conference Room”), compiled by an
internal fleet compiler. Since #911 a simulated system is built to a standard, and since #1553 a
scale lab scenario is the standards-plus-counts format, so both layers are gone, with the compiler,
profile.SystemProfile and Store.Systems. What the engine and the scenario resolver still use,
fleet.Enrich and fleet.NameGenerator, stays.
A test over the catalog holds the line: it fails while a systems/ or fleets/ directory is
embedded, or any file names a role or system type the template catalog’s standards and the registered
system types do not. The acceptance test serves one system of each standard the corporate
scenario places, resolved by the scale lab’s own resolver, and the 1,000-device benchmark runs
unchanged. The decision is ADR-0914.
The simulator registry forgets deleted and silent nodes (#907)
Section titled “The simulator registry forgets deleted and silent nodes (#907)”The server’s simulator registry never removed a node: one deleted after its simulator pulled stayed in
GET /simulation until the server restarted. Deleting a node now drops its entry, and a node whose
simulator has neither pulled nor reported for a hundred seconds (ten default pulls) is dropped on the
next read, so a simulator torn down without its node being deleted ages out instead of reading
offline for good. The simulation page records that the hits are per server process: with more than one
replica a simulator’s status is visible only on the replica its node’s bus session landed on, and a
shared store is the path if that ever matters.
The component_type walk is one statement (#803)
Section titled “The component_type walk is one statement (#803)”Resolving a component_type’s facts, and asking whether one type sits under another, now read the whole ancestor chain in a single recursive query instead of a statement per level. The OAVC taxonomy (#802) made the tree one to two levels deeper and the per-level walk made every generated-name create and label render pay for it, so the label cost ceilings had been raised from 12 and 19 to 14 and 21. They are back at 12 and 19. The fork rule is unchanged: each node’s operator shadow comes back with it and is applied per node in Go, so a forked middle node overrides only the facts it restates.
A bare dialed endpoint must name its target (#1187)
Section titled “A bare dialed endpoint must name its target (#1187)”POST /endpoints on a bare dialed transport (every one but udp and the push webhook) now refuses
params that carry no target, or that carry host or port keys, naming target as host[:port].
Before, {"host":"127.0.0.1","port":8080} returned 201 and the node then skipped the task forever
(empty tcp target), leaving the reachability verdict null. The check runs on create (422) and on an
edit (400, with the other bare-params checks), and the params field doc, and so the CLI help and
the OpenAPI, now name the shape: target, count, timeout, tls-mode. The node’s skip log stays as
defence in depth. A target with no port is refused too, except on icmp, which dials none, and snmp,
which defaults to 161: a bare host on tcp dialed nothing and read down forever. An endpoint created
with no params at all is not yet held to the check (#2228).
A node reports how busy its worker pool was (#1686)
Section titled “A node reports how busy its worker pool was (#1686)”A node now sends worker-busy-fraction in its node-self block once per report window: the share of
its lane pool’s worker time spent running polls, probes, commands and runs, from 0 (idle) to 1
(every worker busy all window). The window’s high-water marks could not say this. A peak of 4 busy
workers reads the same whether they were busy for a millisecond or the whole window. The busy
fraction is the headroom figure that spreading a site’s components across its nodes will read
(#1638). The pool keeps the tally with the dispatcher’s clock. A run still in flight at the window’s
end counts the part it has run, and the rest lands in the next window. The node runs one pool for
every kind of discrete work, so the figure carries the instance lane. Building it showed that the
key must be seeded before a node sends it. The server refuses a batch that names an undeclared key,
and that refusal took the batch’s other figures down with it.
A node reports the CPU each poll costs (#1870)
Section titled “A node reports the CPU each poll costs (#1870)”Every driver poll now lands poll-cpu-time beside poll-duration: the mean CPU time the kernel
charged each run, per endpoint per report window, in milliseconds. A lane worker locks its goroutine
to its OS thread for the run and reads the thread’s CPU clock before and after, so the figure is the
run’s own on-CPU time and none of its wait on the device. It is a floor (other goroutines and the GC
are charged to no poll), and the per-driver cost table of #1871 reads it against the process’s
cgroup CPU. The lab’s built-in tier now expects it on every poller (ADR-1870).
A node sizes its lane pool from its CPU and memory (#1869)
Section titled “A node sizes its lane pool from its CPU and memory (#1869)”--lane-workers now defaults to auto instead of 16. A node reads the CPU and memory it may use
from its cgroup (cpu.max and memory.max, the tightest of its own and its parents’), holds each
to the host’s (GOMAXPROCS where it is below the CPU count, MemTotal), and sizes its endpoint lane pool to the tighter of a CPU bound
and a memory bound, clamped to 4 to 256. The CPU bound weighs a run’s wait on its device against its
CPU cost, since a lane mostly waits: at the measured 4.4 ms of CPU and 200 ms of wait, about 23 lanes
a CPU on half the CPUs. A number on the flag or in OMNIGLASS_LANE_WORKERS still sets the pool, and
anything that is neither a count of at least one nor auto is refused at start.
The node logs lane workers at boot, before it claims, with the count and its source (set, or auto: and the limits
it read with where each came from), and reports the count as a new node-self metric,
lane-worker-count under the instance lane, once per report window beside worker-busy-fraction.
Proven by unit tests of the sizing over 2-core, 4-core, 32-core, fractional and memory-bound limits
and both clamps, the cgroup reader over fixture trees (a parent’s limit binding its child, max and
unreadable files as no limit), the /proc/self/cgroup and /proc/meminfo parsers, the host
bound and GOMAXPROCS, the operator’s count winning over auto, the CLI’s refusal of a bad count, and the node
report emitting the count once per window.
A lab integration test runs the node image under docker run --cpus 0.5 --memory 64m and
--cpus 4 --memory 32m, so the kernel writes the limits the node reads, and asserts the boot log’s
11 and 8 lanes and their sources.
The lab now caps every node it starts (#1892): one CPU, so auto gives each the same 23 lanes on any
host and a scale run’s parallelism is one figure, and memory at twice the cost model’s figure for its
site’s components, at least 512 MiB, with GOMEMLIMIT a tenth under it. The 72-hour corporate 3,000
soak set the figures: each node’s resident memory sat on the model’s line (about 0.8 to 1.0 MiB a
component over 25 MiB), and the busiest node used 0.43 of a CPU. The server, Postgres and the seed
stay uncapped, and the lab guide’s topology table gains a Limits column from the plan. Proven by
unit tests that the plan caps every node and only the nodes, the memory figure at the floor and at
a regional and the hq, the GOMEMLIMIT figure, the caps reaching Docker with swap held to the memory
cap, and the compose config hash carrying the caps; and by the lab integration test, whose node logs
23 lanes from cpu.max=1 and memory.max=512MiB.
A node’s worklist travels grouped by endpoint (#1583)
Section titled “A node’s worklist travels grouped by endpoint (#1583)”The worklist reply now carries each endpoint’s fields once, with its tasks under it, and the task specs, session blocks and credentials those tasks share once for the whole reply, in dictionaries a task names by index. The node reads back the same tasks, so nothing past the decode changes. On the corporate plan with every https pin learned, the headquarters reply at 3,000 systems went from 6,875,172 B raw and 1,172,107 B gzipped (over the bus’s 1 MB limit, as the soak found) to 1,508,216 B raw and 463,378 B gzipped; at 1,000 systems, from 575,058 B to 233,385 B gzipped. That is under the 512 KB line ADR-1577 set for paging, so paging is not built. The server also fingerprints each endpoint once rather than once per task. ADR-1583 records the shape.
A node running a stale worklist reads as loss (#1868)
Section titled “A node running a stale worklist reads as loss (#1868)”On the corporate 3,000 soak the headquarters node’s worklist reply grew to 1.17 MB compressed, past the bus’s 1 MiB limit, so the server refused every pull after the first. The node kept its startup worklist, as designed, and every loss ratio read 0: its 8,850 tasks still matched the database, so nothing had diverged yet. Any change for that node would never have reached it, and nothing said so.
The node now reports worklist-pull-loss-ratio on its node-self lane every report window: the pulls
refused or unreadable over the pulls made, with a window that made no pull carrying the last outcome,
so a node refused on every pull reads 1. The seeded worklist-stale rule opens a warning after two
minutes at 1 and clears on the first pull served. Platform health gains a Worklist column in the node
table, the ratio as a percent and red above 0. omniglass lab measure prints a worklist pull loss
row and gates a new exact family, worklist_loss/<node>, failing any node above 0, failing a node
that reported nothing as missing, and failing as not measured when the read found no node.
Fitting the reply under the limit is #1583 and #1586; this makes any failing pull visible, whatever its cause.
A udp component is an address, not an address and port (#1103)
Section titled “A udp component is an address, not an address and port (#1103)”A udp component that answers or pushes from a different source port than the one it listens on now
reads responsive. The datagram reader accepted a reply only from the component’s exact address and
port, so a peer with a separate send socket had every datagram counted as foreign and dropped, and
its request rung read timed out. With one socket per endpoint the port match protected nothing, so
the reader matches the address alone; a datagram from any other address is still counted, self-logged
by source and dropped. ADR-0163
carries the amendment, and the drivers guide and collection page say so.
A udp endpoint follows its DNS name (#1104)
Section titled “A udp endpoint follows its DNS name (#1104)”A udp endpoint whose host is a DNS name resolved it once, when its socket bound, so a name that
moved left the endpoint sending to the old address and dropping the new one’s replies as foreign
until the outpost restarted. The request rung now re-resolves the target once per tick, bound by
half the endpoint’s timeout so a hung resolver cannot stall the tick, and, when the address
changed, moves the socket’s peer in place and self-logs the move; the socket stays bound (it is
unconnected), so the connection key is unchanged. A failed or timed-out resolve keeps the last
address, and a literal IP target never resolves. Per-tick is the cadence; DNS TTLs are not
honoured.
An ambiguous name is a 404 naming the reference on every collection
Section titled “An ambiguous name is a 404 naming the reference on every collection”Fixed #1134: a component, system or location name that more than one visible row answers to now
answers a 404 like every other collection, not a 409. The message lists each candidate as its dotted
address with its uuid beside it, and either resolves on the same route. A candidate the caller cannot
read is neither listed nor counted. The generated CLI’s <name> argument help now says a uuid or dotted
address disambiguates a repeated name. See ADR-1134.
An endpoint with no verdict says why (#981)
Section titled “An endpoint with no verdict says why (#981)”On an empty install omniglass component reachability list showed verdict: null with nothing to
say what was missing, and the path to a first verdict (create and enroll a node, run it, assign the
endpoint to it) was written only for the console. The reachability row now carries pending
(no-node or awaiting-probe), set only while the verdict is null and derived in the read from
whether the endpoint has a node, never stored. The Endpoints panel shows the reason beneath the row
with a link to the Nodes page or the assigned node’s blade, and the operator guide gains the
command-line path. The CLI has no table renderer, so it prints the field in the read’s JSON.
The autopilot skips branches another session owns (#1112)
Section titled “The autopilot skips branches another session owns (#1112)”The scheduled autopilot no longer adopts a branch a live session is still building. A session
building #1037 sat idle behind a rate limit with its branch unpushed; the autopilot copied it,
shipped it as #1105, and the original session then opened #1106 for the same issue.
scripts/branch-owned.sh <branch> now answers owned <reason> or free: a branch is owned when
it is checked out in a locked worktree, has a claim file beside its worktree, or saw a commit or a
file edit inside the last 24 hours (AUTOPILOT_OWNED_WINDOW_HOURS). The autopilot skill runs it
before resuming or adopting any existing branch, skips an owned one and fires the next rung,
comments on the issue before adopting a free branch it did not create, and lists every skipped
branch in the day report.
A calc rule’s property output passes the value check (#1014)
Section titled “A calc rule’s property output passes the value check (#1014)”A calc rule’s property output was written without the check ingest applies, so a result the property
could not hold (a value outside an enum, one that fails a pattern or a JSON schema) was stored as a
calculated sample and judged by event rules. The output now passes key.ValidateValue against the
property’s data type and validation before it is written. A refusal is the rule’s outcome, not a
database fault: nothing is written, the mark is not deferred for a retry that cannot succeed, and
calc_rule_state.error names the output key, the value and the validator’s reason. The authoring check
the issue offered is not needed: property types are string, bool or json now, and a text result
into a bool output is already a type error when the rule is saved.
Code renders without ligatures (#1013)
Section titled “Code renders without ligatures (#1013)”Every code and expression rendering in the console now shows the characters the operator typed
(!=, ==, >=) instead of JetBrains Mono’s ligatures (≠, one long bar, ≥). A rule with the fire
expression value == "down" && instance != "aux" read on /rules as a bar and a not-equals sign,
glyphs no keyboard has. The .font-data rule in app.css now sets font-variant-ligatures: none
once, so every surface that renders code inherits it, and the per-site opt-outs the expression
editor work (#1000) had added (the editor’s CodeMirror theme, its token and caret rows, the
calculation rule’s reduce expression and input aliases) are gone. A Rules page test loads the real
stylesheet and asserts the criteria’s computed style, so a later edit that drops the rule fails.
Glossary: built data-plane terms move to the built table
Section titled “Glossary: built data-plane terms move to the built table”- Glossary: built data-plane terms move to the built table. Twenty-six built terms moved
from the
:::design[Data-plane terms, tracked in #430]fence to the built table at the top of the glossary. Sixteen were built in #816, #817, #1049, #1056, #1035, #1037, #821 and #1078 (session, auth step, connection fingerprint, reachability ladder, endpoint rejection, host key pin, certificate pin, tls mode, community, listen port, retries, pinned key / offered key, login dialog, terminal error, listener, reply shape). Identity binding (#1385, ADR-1282) moved with them. Nine more the fence still held are built too: on-demand node run (ADR-1163), message, server-sent events stream and field match (#1038), correlation and upgrade (#1034), conduit component, unbound identity and fan-out (ADR-1282). The fence now holds only terms that are not built: session_log, internal_log, raw_sample, collection.failed, discovery_rule, source registry, unit registry, fusion and correlation_id / source_event_id, each row naming its open tracker (#430, #137, #1251, #1395). The## Design-only termsintro now says a term is design in whole or in part, since a neighboring column or row of a few of them is live, rather than that nothing is implemented.event_rule(#819, #938) andseverity levelmoved out of the Alarm-chain fence the same way, and the intro now says a fence or row names the open tracking issue or the ADR that decided the design.
Home tiles show real counts (#983)
Section titled “Home tiles show real counts (#983)”Home’s Open alarms and Systems tiles were a permanent dash under “collection pending”, which told an
operator with a running fleet that nothing was being collected. Systems now counts the fleet view’s
systems, Collectors (new, shown to a caller who can read nodes) counts the node list, and each opens its
list page. Open alarms reads a new open_alarms on GET /views/fleet: the alarms open on the components
the caller may read, counted in one statement with the component scope injected, and absent rather than
zero for a caller with no component read. A tile that cannot count reads an error or the permission it
needs. The Open alarms tile is not a link yet, because /alarms is still a stub page. The situation-room
redesign stays with #523.
An inherited grant names its source group by name, id and label (#1135)
Section titled “An inherited grant names its source group by name, id and label (#1135)”A grant inherited from a principal group now carries group (the group’s name), group_id and
group_label, the identity triad, in place of group_name. group_name held the label (falling
back to the name), so a client that fed it back into /principal-groups/{group} broke on any
group with a label; group is the identifier that route takes. group_label is absent when the
group has none, and the console shows group_label ?? group. Both grant scans (the single-principal
and the batch loader) return the same fields. group_id moved from the id-only exemptions into the
paired reference fields of TestReferencesCarryBothForms. No alias for group_name is kept
(pre-deployment stance).
Every nullable column a PATCH writes can now be cleared (#1189)
Section titled “Every nullable column a PATCH writes can now be cleared (#1189)”A standard’s parent clears with parent_standard_id: "", and a metric type’s precision, an event type’s payload_schema, a property type’s validation and a command type’s params_schema clear by naming the field in update_mask, the same convention the location type’s name_rule set under ADR-0106. Omitting any of them still leaves it unchanged. The four catalog routes now take the full AIP-134 mask over every patchable field, and the storage writes use a CASE rather than a coalesce, which could set a column but never clear it. Each route has a failing-first end-to-end test and each Update* has a storage test for the three states.
Product reclassification marks calc rules (#1030)
Section titled “Product reclassification marks calc rules (#1030)”A product’s component type change (UpdateProduct) now marks the calc rules of every component of that
product, as a single component’s product change already did (#1015). One statement marks every enabled
component rule that selects by type on each of the product’s components that holds one of its inputs or
a state row of its own, so a product with thousands of components is one round trip. The serve rechecks
selection: a rule the product moved into computes over the values already stored, without waiting for a
new sample, and a rule it moved out of drops its state there. A patch that leaves the type (a label, a
vendor, or the current component type restated) marks nothing.
Qualified names pass through the chart’s default Traefik ingress (#1138)
Section titled “Qualified names pass through the chart’s default Traefik ingress (#1138)”A qualified name rides the URL path with its slash and $ percent-encoded
(%2F, %24), and the chart’s default ingress class is Traefik, which could have
rejected an encoded slash at the edge. scripts/test-traefik-encoded-slashes.sh
runs pinned Traefik containers in front of a backend that echoes the raw request
path and asserts the ingress status equals the direct status with the path intact.
It passes on Traefik 3.0.4, 3.6.25 and 3.7.19 with no entry point options, so the
chart needs no setting; the finding and versions are recorded in the Helm guide.
Setting allowEncodedSlash: false on the entry point makes the same check fail
with a 400, so the check does detect a rejecting edge.
A scrollable region takes a focus stop (#1101)
Section titled “A scrollable region takes a focus stop (#1101)”The probe’s axe pass (#965) reported scrollable-region-focusable on the
fix-an-expression-with-a-quick-fix walkthrough. The node is the expression field’s diagnostic echo,
the source line with a caret under the fault: it scrolls sideways on a long line, holds only text, and
was aria-hidden, so a keyboard could not reach it. It is now a focusable, named region
(tabindex="0", role="region", aria-label), and the design system records the rule that a
scrollable region needs a focus stop. The echo still scrolls rather than wraps, because the caret
only stays under its column on one unwrapped line. The preview owner list and the Drawer body hold
links and form controls, so they already have a focus stop and are unchanged.
System map labels fit the box and do not collide (#1072)
Section titled “System map labels fit the box and do not collide (#1072)”A system map marker’s label no longer clips at the map’s edge or overprints a neighbour at any width. #1218 anchored edge markers inward by fractions of the box, which fixed desktop widths only: a label is up to 112 px wide, so at phone width a marker at x = 0.2 still spilled, and close markers (the Auditorium’s podium and stage microphones) stacked their labels.
markerAnchor(x, y, box, label) in lib/system_map.ts now decides in pixels from the rendered box
and the label’s estimated size (labelSize, monospace glyph width capped at 112 px and two lines),
keeping an 8 px gutter: the same 0.2 position hangs inward in a 320 px box and stays centred in a
1200 px one, and a label flips above its icon when it would run past the bottom, not at a fixed 0.85.
layoutMarkers is a pure pass over the whole marker list in declaration order: each marker takes its
anchor if its label stays inside the box and clear of the other markers’ icons and the labels already
placed, otherwise its label’s other side, then the other horizontal anchors, and when nothing is clear
the label collapses to the icon alone (the text stays in the tooltip, and an empty ring gains an
aria-label). An earlier marker never moves for a later one. SystemMap measures its box with a
ResizeObserver and feeds the width in, so the geometry lives in one tested function that jsdom and a
browser agree on. Icons that sit on top of each other are the declaration’s to fix; the layout moves
only labels.
Proven by unit tests of the anchor (320 px against 1200 px), the label estimate, and the layout over the degraded Auditorium’s declared positions at 320, 480, 672 and 1280 px (every label inside the box, none over another label or icon, deterministic), and by a component test that renders that marker set at 320 and 1280 px and asserts the same on the rendered label boxes.
The system page acknowledges its causing alarms (#990)
Section titled “The system page acknowledges its causing alarms (#990)”The system health report’s role alarms now carry acknowledged, acknowledged_at and
acknowledged_by, with the names and omitempty rules the component alarm list uses. The system
page’s Why strip shows who acknowledged each causing alarm and when, and offers the existing
Acknowledge control on the rest for a principal holding alarm:acknowledge, so triaging an alarm
storm no longer means opening each affected component. Acknowledging also refreshes the system
health read, so the strip updates in place. Acknowledgement semantics are unchanged (ADR-0109:
orthogonal to cleared, no health recompute).
The expression editor’s chunk warms before its tests (#1068)
Section titled “The expression editor’s chunk warms before its tests (#1068)”The Rules page tests that open the expression editor failed under a loaded full web run and passed
alone, always with Found a label with the text of: Fires when, however the element associated with this label (<div />) is non-labellable. The label is correct: until CodeMirror mounts, the
FieldRow label points at the editor’s host <div>, and findByLabelText keeps retrying until the
mounted editor’s content takes the label’s id. The retry was not the problem. The first test to open
a field paid the cold load of the editor’s lazy chunk (the whole CodeMirror transform) inside its own
one-second wait, and a busy host overran it. A stopgap had already raised that wait to three seconds.
warmExpressionEditor in the field’s test helpers now loads the chunk in a beforeAll, so the
Rules and Calc rules suites pay the cold load in a hook and each test’s wait covers only the mount.
The three-second wait is gone, and the default holds. A new test mocks the chunk to load in 1.5
seconds, longer than the default wait: it fails with the exact error without the warm-up and passes
with it. Five consecutive full web runs passed beside an uncached make test-go, with load near 35
on 12 cores.
The lab measures what each driver costs a node (#1871)
Section titled “The lab measures what each driver costs a node (#1871)”omniglass lab perf drivers measures each shipped driver’s cost per task on a node of its own: a
throwaway lab with no fleet, one node container per driver with the simulator beside it in a
container of its own (sharing the node’s loopback, not its cgroup), and the node read at none, N, 2N
and 3N of the driver’s components. CPU per task is the slope across every step; memory per task is
the slope across the loaded steps, with the jump from the idle node to that line kept apart as a
one-off warm cost (an SNMP driver’s working set went 15.8, 25.9, 27.4 MiB at 0, 400, 800 tasks: a
jump, then a slope, which one line through all three refused). A figure whose steps are not near a
line is listed as not measured with why, and the driver’s other figure still stands. A driver whose
memory does not fit is swept again at four times the step, up to --max-step-tasks: at 400 tasks a
step, 13 of 20 drivers’ memory sat inside the heap’s own swing.
Beside the cgroup’s CPU per run sits the node’s own poll-cpu-time (#1870) and the share of the run
it sees. The sweep writes internal/labfootprint/drivercost/shipped.json; make gen joins it with the
drivers the plan knows and renders the table on the scaling page, where a driver the committed sweep
lacks reads as not yet measured (ADR-1871).
The committed sweep ran at 1,600 tasks a step on an 8-core host. All 20 swept drivers have their CPU and 18 their memory; two SNMP drivers’ memory stayed inside the heap’s swing even at 6,400 tasks. An SNMP or plain HTTP poll costs 5 to 10 KiB and 0.03 to 0.07 millicores a task (1.5 to 4.1 ms a run), a device API 3.5 to 48 KiB and up to 0.24 millicores, and a held NVP session 60 to 168 KiB a task at under 0.07 millicores. The nine drivers it does not sweep are the listener and the eight alternate drivers no product defaults to, which #1943 costs by kind of work.
The page also rolls the drivers up by kind (the transport a driver speaks) and poll interval, the unit a
node is sized in: a run costs what its kind costs, and the interval only sets how often it runs, so
each row’s millicores per task is the kind’s CPU per run over its interval, read as the median and
range across the kind’s measured drivers. Memory per endpoint, a driver’s memory per task times its
polls, is the figure a held session is costed by: 168 to 183 KiB an NVP endpoint over tcp.
The collection probe table renders from the transport registry (#1087)
Section titled “The collection probe table renders from the transport registry (#1087)”The collection page’s per-transport probe table (rung, endpoint.params, and the samples a probe
lands) was hand-written, and it had already drifted: the snmp row was missing, and the ssh probe’s
endpoint-authenticated was never listed. Each dialed transport’s registry entry now declares its
Params and the ProbeKeys its probe can land, the generator carries them into seed.json, and the
page embeds <SeededSet kind="transports" of="probes" /> in place of the table. A test in
internal/node drives every built transport’s probe through the node’s dispatch against a passing
and a refused fake, and fails when a probe lands a key its entry omits or an entry declares one no
run lands; a transport with no rig fails too. No probe’s behaviour or keys changed.
A node’s worklist grows only when the node learns (#1872)
Section titled “A node’s worklist grows only when the node learns (#1872)”On the 3,000-system corporate soak, the headquarters node’s compressed worklist went from 938 KB to 1,171 KB with no operator change. The whole growth was the https key pins the node trusted on first use: 440 endpoints in the first minute after boot. Each pin rides every task of its endpoint (about 11), and the 4,831 https tasks gained 71 bytes each, exactly the 343,001 raw bytes the reply gained. The server’s log shows the climb: the first reply at 938,301 bytes with no pin, the first refusal 11 seconds later at 1,105,311 bytes with 3,289 tasks already pinned, three more steps, then 1,170,922 bytes on every pull for the rest of the soak. So the worklist does not drift with time; once past the 1 MB limit it is refused on every pull, so the node runs its last worklist. The nodes page now names the two learned fields, the key pin and the last rejection. A storage test holds two builds of an unchanged worklist to the same bytes, before and after a pin is learned and a rejection is recorded. The fix for the repeated pin is the endpoint-grouped wire, #1583.
A chart deployment keeps its encryption key and its unlanded telemetry (#1286)
Section titled “A chart deployment keeps its encryption key and its unlanded telemetry (#1286)”The Helm chart passed the server no encryption key and mounted no volume, so every pod restart
generated a new key in the container’s writable layer (every stored secret unreadable after it) and
the embedded JetStream store sat in a temporary directory (a batch the stream had acknowledged but
not yet landed was gone). The server now reads OMNIGLASS_ENCRYPTION_KEY from a Secret: an
operator’s encryptionKey.existingSecret if set, else one the chart generates once, reuses on every
upgrade through lookup, and keeps on uninstall (helm.sh/resource-policy: keep); with neither the
chart refuses to render. The data directory and the JetStream store sit on a kept
PersistentVolumeClaim at /var/lib/omniglass (persistence.enabled, default on), the lab’s layout,
under a Recreate strategy. NOTES.txt prints the key’s backup command. Chart render tests (Helm’s
own engine) pin the defaults, the supplied Secret winning, the refusal and the notes; an integration
test pins a secret sealed under an env-sourced key reading back after a fresh key load; and a kind
cluster read a secret back after a rollout restart, an upgrade, and an uninstall and reinstall.
A device nothing has collected from reads the same everywhere (#1454)
Section titled “A device nothing has collected from reads the same everywhere (#1454)”A device with an ICMP endpoint and no node read unknown in the Explore drawer, healthy on its page,
and carried a node offline chip beside an outlined reachable. The component’s verdict now says
unknown until an alarm was raised on it or an endpoint delivered (the alarms read, the fleet view’s dots
and a system’s members share one expression), collectionState gives a missing node its own no-node
state instead of node-offline, and the Collection row shows the reachability ladder only once a rung has
an observation. An e2e test drives the alarms read through never observed, alarmed, cleared and delivered;
the unit and page tests pin the no-node state and the absent chip. The decision is ADR-1454. The enroll
pointer for the no-node state is #1453’s.
A run:demo of one demo publishes its evidence again (#1885)
Section titled “A run:demo of one demo publishes its evidence again (#1885)”Since actions/download-artifact moved to v8 (#1617), a run:demo that selected exactly one demo recorded it, then called it never run and failed at publish: v8 extracts a pattern’s lone match into the download path itself, with no directory named for the artifact, so the combine job found no demo-leg-<id>/ to read. Each record job now uploads its leg already wrapped in that directory and combine merges the legs into one path, so every leg lands at the same place whether one demo is selected or many. A run where no demo recorded now commits an empty evidence tree and posts its comment, where it used to fail on the missing tree. web/src/demo-workflow.test.ts plays v8’s extract rule against the workflow’s own steps for one leg and for several.
A telemetry batch reads and locks once, and commits once (#1928)
Section titled “A telemetry batch reads and locks once, and commits once (#1928)”A node batch cost 19 statements, and six of them repeated work the batch had already done: the
lanes read the event rules and probed the calc marks again after the batch’s lock pass had taken
them, the property lane took a series lock the batch held, the consumer read the catalogs’
fingerprint on every batch, and the endpoint’s seen stamp was a second transaction of its own. The
batch’s transaction now carries the rules, marks and series locks it took, so no lane repeats them;
the seen stamp is the transaction’s last write; the fingerprint is read at most every five seconds, and at once for a sample name the registry lacks;
and a calc mark already pending writes no new tuple while still holding its row lock. A node batch
now costs 13 statements and a collection report batch 10. Storage tests count LandBatch’s
statements (15 steady, 80 with rules judged), pin the stamp inside the transaction and the repeated
mark’s unmoved tuple; a bus test pins the fingerprint’s interval. The decision is ADR-1928.
A transition never waits on a rule being deleted behind a send (#1335)
Section titled “A transition never waits on a rule being deleted behind a send (#1335)”Deleting an action rule while the notification tick held one of its rows mid-send left the
DELETE waiting on that row for its SET NULL, and a transition the rule matched then queued a
notification whose foreign key check waited behind the delete, for up to a send timeout. The
queue now reads the rule, type and target rows FOR KEY SHARE SKIP LOCKED before it writes, so
a rule mid-delete is skipped for that transition (the outcome it had, minus the wait) and every
other rule still queues. A storage test holds a notification row in a raw transaction, blocks a
rule delete behind it, and raises an alarm the rule matches: the raise returns at once with only
the other rule’s row, and the delete finishes when the send ends. The notifications section of
the alarms and actions page states the rule.
An endpoint whose driver stopped emitting a key no longer holds its last reading live (#1217)
Section titled “An endpoint whose driver stopped emitting a key no longer holds its last reading live (#1217)”An owner-level read reduces over the live observed instances of a key, and an instance named an
existing endpoint was always live, so an endpoint whose driver spec dropped a key (a renamed emit, a
seeded upgrade) kept its last reading in reconciliation’s is and drift, and in an owner-level
command’s settlement, indefinitely. The one liveness predicate now also asks the endpoint’s current
driver spec whether a poll or a listener still emits the key, at every read, so a spec update takes
effect with nothing to re-derive. A native probe key stays live on its own endpoint, and an
endpoint with no driver has no spec to have dropped a key. The emit test is its own fragment
(driverEmitsSQL), so the per-port name[instance] form (#430) extends it by matching the instance
as well. Storage tests cover reconciliation before and after the drop and after the emit returns,
a pushed instance staying live, a native metric staying live, and an owner-level command failing
on the live instance rather than settling on the frozen one.
make gen refuses two operations that derive one CLI command (#1358)
Section titled “make gen refuses two operations that derive one CLI command (#1358)”cligen assigned each operation to its command path without checking whether another already held
it, so two operations deriving one path left a single command in the CLI and its reference and the
other silently gone. It surfaced as POST /auth/me/action-rules/{name}:test and
POST /auth/me/action-rules:test both becoming auth me action-rule test. tree() now returns an
error naming both operations (operationId, method, path) and the shared command path, and make gen
fails on it. A path that is both a command and a group (component property beside
component property list) stays allowed. The one collision in the current API, webhook get
(verify-webhook and receive-webhook, a POST on an item route deriving get), is now
webhook verify and webhook receive. Unit tests cover the duplicate, distinct paths, a command
beside its group, and the committed spec generating cleanly.
The dev fleet’s collection-method table is generated from the fixtures (#1419)
Section titled “The dev fleet’s collection-method table is generated from the fixtures (#1419)”The simulation page and the lab guide named, in prose, which dev-fleet component exercises which
collection method and which methods are gaps, so a moved endpoint or a closed gap left them stale
with nothing failing. devseed.MethodFactsJSON now derives the table from the fixture’s
sim_endpoints (resolving each driver’s transport from the shipped specs and each component’s location)
and from devseed.MethodGaps, which gained a Why beside its issue. make gen writes it through
cmd/labgen, a CollectionMethods component renders it on both pages (the lab guide scoped to the
boardroom), and a drift test fails when it goes stale. Unit tests hold the table to every
sim_endpoints entry and every gap. Closing a gap such as #1414 changes the page through make gen.
Degraded alarms fit the device class (#1208)
Section titled “Degraded alarms fit the device class (#1208)”The degraded dev-seed scenario cycled the fixture’s alarm templates over every n-th component with no
check that the template fit, so “Lamp hours approaching end of life” landed on microphones, speakers,
DSPs, schedulers and processors. A fixture alarm now declares applies_to, a list of component type
ids (a type matches itself and its descendants; empty means any component), and Degrade takes the
shipped product-to-component-type map and the type parents, staying pure. The lamp-hours template is
tagged [projector, display]; a component no cycled template fits takes the first unrestricted
template, so the density (about every third component) and the dedup keys are unchanged. Tests: a unit
test over a mixed-type document (no lamp alarm off a projector or display, projectors and displays
still receive it, density unchanged) and one over the shipped fleet and catalog.
Every audit writer carries its before and after (#1444)
Section titled “Every audit writer carries its before and after (#1444)”#1442 made the alarm audit rows read on their own once the alarm is gone. The rest of the writers now
meet the same rule (ADR-1442). Settings, tags, variables, property values, members, role assignments
(assign, swap and unassign), principals (profile, avatar, archive, restore and purge), role choices and
alternates, and webhook tokens each read the row they are about to change inside the writing
transaction, under its lock, and record it beside what they wrote. A delete, including a principal
purge, carries the whole subject in old.
Secrets are imaged by metadata and a version digest of the sealed value, never the plaintext; a test scans every secret and webhook-token row for it. The password verbs carry no field images on purpose, since the only field they move is a credential hash.
Along the way: a secret’s delete image now names its type, a variable’s images carry its value and label, and rotating a webhook token writes the secret’s before and after where it wrote nothing.
A first-time bind and a label cascade no longer deadlock (#1214)
Section titled “A first-time bind and a label cascade no longer deadlock (#1214)”A first-time bind (PUT /systems/{name}/members/{component}, or a role assignment to a component
that is not yet a member) inserted into system_member, whose foreign key shares the system’s row,
and only then waited for the label/recompute lock. A cascade holding that lock waits for the same
row FOR UPDATE, so Postgres aborted one side with 40P01 and the caller saw a 500. Every membership
write now takes the label lock first, then the component’s membership lock: bind, role assignment,
unbind, re-default and a system’s release, so no two of them take the pair in opposite orders. This
is the first of the two fixes the issue offered; it adds no serialization, since each of those writes
already took the label lock for its restamp, only earlier. Storage tests hold the lock on a raw
transaction, start the bind, and play the cascade’s row locks, 50 rounds per bind path, and assert
neither side deadlocks and the membership exists. The storage page states the lock order.
The Helm guide gains a production section (#1296)
Section titled “The Helm guide gains a production section (#1296)”The Helm guide’s ## Production section frames what each member of epic #1287 documents: profile choice, demo-only Postgres warning, managed Postgres via externalDsn, durable state, upgrades, sizing, hardening, origin TLS, and trusted proxies. This PR ships the frame and the parts already true on main: the advisory lock and schema guard from the boot sequence, externalDsn recommended for production, the single-replica thin cut with a pointer to scaling.md, and the demo-only Postgres warning. Member PRs replace their placeholders; the Helm guide carries no status badge.
The deployment guide now points at the Production section for production-specific guidance.
Ingest lands on a lane per partition of the node’s name (#1896)
Section titled “Ingest lands on a lane per partition of the node’s name (#1896)”On the corporate 3,000 lab the one serial telemetry durable landed 37 to 41 batches a second against
about 50 arriving, so the backlog grew for the whole run and every lag figure read the queue. The
stream now files each node’s batches under a partition of its name with its own partition subject
transform, and each partition has a durable 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. The lane count is
OMNIGLASS_INGEST_PARTITIONS, 4 by default, refused outside 1 to 64 and held under the database pool
less one; the server logs the count it runs and why, drains every partition a larger count filed under, durable or not, then deletes its durable, warns
when the count changes over a held backlog (a cutover that waits is #1934),
and keeps the push subject on og-telemetry-worker. Each lane logs its own tally, ingest-lane-busy
reads the busiest partition lane, the backlog gauges sum the durables, and the ack floor is read off the stream’s
first held batch. The scale lab reports a busy row per lane and waits, at each mark, for every live
node (a heartbeat within three default heartbeats of the mark) to land a sample probed after it, since the newest sample anywhere no longer proves the rest
landed. Bus tests cover the partition hash agreeing with the stream’s transform, a node’s batches
landing in order on one lane, the lanes landing side by side, and a smaller count draining the
partitions a larger one left, with or without their durables; the drain test failed against the old query with two live nodes. The decision is
ADR-1896, amending ADR-0311 point 3.
The lab judges an owner by its pid and start time, so a reused pid reads as gone (#1258, #1400)
Section titled “The lab judges an owner by its pid and start time, so a reused pid reads as gone (#1258, #1400)”The lab decided whether a previous lab’s owner was still running by its pid alone. A lab killed
outright whose pid an unrelated process later held made every omniglass lab run refuse with a false
“A lab is already running here”, and on a shared host the throwaway-lab cleanup could judge another
session’s live lab by the wrong process. Every resource now also carries the owner’s start time
(omniglass.lab.pidstart: /proc/<pid>/stat field 22 on Linux, the kernel process table on macOS,
GetProcessTimes on Windows), and the reaper compares host, PID namespace, pid and start time
together: a pid held by a process that started at another time reads as gone. A resource with no
start label (a lab started by an older binary) is never judged gone and never removed; the refusal
names docker compose -p <project> down as the way out. Unit tests cover the reused pid, the live
owner, the gone owner and the missing label for both the project and the throwaway paths, and the
real-daemon lab test now reaps a lab whose owner’s pid is held by another process.
The scale lab runs Postgres sized for the fleet it simulates (#1930)
Section titled “The scale lab runs Postgres sized for the fleet it simulates (#1930)”The scale lab ran Postgres on its stock settings, and the 3,000-system soak checkpointed on WAL volume
four times as often as on its timer, a commit stalling behind each checkpoint. A scale lab’s database
now starts with shared_buffers at a quarter of the Docker host’s memory (128 MB to 8 GB, 1 GB when
the host is not read), never more than the fleet’s estimate leaves of what the host can spare, with
max_wal_size=8GB, checkpoint_timeout=15min, wal_compression=lz4 and I/O timing on, beside the
track_commit_timestamp that lab measure already needed. synchronous_commit stays on. The
preflight counts buffers above the stock 128 MB on top of the estimate (the stock size is what the
estimate was measured with), so the buffers never refuse a fleet the estimate fits; the spare cap
keeps 3,000 systems fitting on a 12 GB host, and a forced --host-memory sizes the buffers only when it is less than the host has.
The runner plans, reads the host, then plans again with the buffers, so the plan stays pure and a
bad flag is refused before the host is read. A dev lab still runs stock Postgres. The deployment
guide gains a sizing section naming each setting and why, and says when a container’s /dev/shm
needs raising; unit tests pin the command, the bounded quarter, the spare cap, the floor and the host read.
A late banner is never the first answer (#1418)
Section titled “A late banner is never the first answer (#1418)”A held line connection’s first ask used to draw its boundary with a 2ms drain window, so a banner a slow device sent after that landed armed and was taken as the ask’s answer. The first ask now waits out a connect quiet window instead: 250ms from when the connection opened by default, never more than half the ask’s own timeout, any line in it discarded as a banner. Later asks keep the 2ms window and pay nothing. A driver tunes it with session.connect_quiet (up to 10s, 0s for a device that sends no banner); it rides every held line transport. A new real-socket test dials 50 connections to a server whose banner is delayed 20ms and asserts every first exchange is the answer, and a timing assertion pins that a second ask is not slowed.
npm ci prevents lockfile churn (#1278)
Section titled “npm ci prevents lockfile churn (#1278)”make test, make gen, make gen-web, make web, and make dev now use npm ci (clean install) instead of npm install so the lockfile is never rewritten. npm ci respects the pinned versions in web/package-lock.json and fails on mismatch, making version drift explicit instead of silent. The web console’s package.json now declares a minimum npm version (engines.npm and packageManager), so a contributor running an unsupported npm sees a clear error immediately. A gate check ensures the lockfile stays clean after all build targets, green under both npm 10 and npm 11, so no unrelated churn lands on main.
An observed value and a declared one that mean the same thing now agree (#1202)
Section titled “An observed value and a declared one that mean the same thing now agree (#1202)”A bool property declared true and observed true reported drift (want: true, is: "true") and a
command targeting it never settled, because an observed row is stored as the JSON string of its text
and a declared one as typed jsonb, and every comparison was a byte comparison. The observed value is
now read typed by the property’s data_type in one expression, and reconciliation, settlement and
its any-instance-agrees compare through one helper that also forgives spelling (3 and 3.0).
Strings stay compared as text. Storage tests cover bool, number, object and string, a genuinely
different value still drifting, a bool command settling and not settling, and the transition guard
holding a repeat. The decision is ADR-1202.
A spool overflow resends each held session’s state, auth verdict and listener faults (#1213)
Section titled “A spool overflow resends each held session’s state, auth verdict and listener faults (#1213)”When the node’s telemetry spool drops batches at its cap, the run loop forgot the reachability
verdicts and a poll’s faults and occurrences so the next tick would say them again, as ADR-0453 point
4 describes. It did not reset the held sessions’ outputs, which publish only on a change: the
session-state from the session’s transition, the auth verdict, and a listener’s fault. A session
that went down while the bus was unreachable, with the batch saying so dropped, stayed up on the
server until its next transition.
The session manager now records each held session’s last transition and auth verdict and each
listener’s current faults, and has one resync() entry point that publishes them again. The run loop
calls it when the spool reports an overflow, beside the forgetting it already did; the sessions’
transition-only behavior is otherwise unchanged. The resend goes through the spool, so a resend that
is dropped raises the overflow again and the next tick repeats it. The nodes page names what an
overflow resends. ADR-0453’s point 4 already says the node sends current state again, so it needs no
amendment. A unit test cuts the bus, drops a held session’s connection so it reports recovering,
overflows a one-batch spool past that batch, restores the bus and asserts the next tick publishes the
recovering state, the verdict and the fault once each, with the state reaching the bus; another
asserts a tick without an overflow publishes nothing.
Disable testcontainers reaper to avoid transient startup failures (#1411)
Section titled “Disable testcontainers reaper to avoid transient startup failures (#1411)”The testcontainers reaper (ryuk) experiences transient startup failures on shared CI runners where network overhead is high. On a loaded bridge host, the reaper can exceed its startup deadline and fail an entire test binary even though the actual test logic is sound. This is a blast-radius problem: one test binary’s transient infrastructure hiccup now cascades to all remaining tests in that package.
The reaper is disabled (TESTCONTAINERS_RYUK_DISABLED=true) because two load-bearing cleanup paths already exist and are
sufficient: the storage harness itself terminates the container in-process via Main during test exit, and make clean-testcontainers
is the secondary backstop. The harness ensureContainer function now sets the env var programmatically before starting the container,
so the reaper is disabled regardless of how the test is invoked (Makefile, direct go test, or CI). This ensures that a transient
infrastructure flake costs a single test’s retry rather than the entire test suite.
A release binary’s lab pulls its image by digest, not by tag (#1257)
Section titled “A release binary’s lab pulls its image by digest, not by tag (#1257)”A release binary’s omniglass lab run pulled ghcr.io/hyperscaleav/omniglass:v<version> and checked
nothing, so anyone who could re-push a v* tag replaced the image every uncached release binary ran.
The release workflow now builds and pushes the image before the binaries and stamps its digest into
each one (main.imageDigest, through goreleaser’s ldflags); the lab pulls
ghcr.io/hyperscaleav/omniglass@<digest> and never the tag. A release-versioned binary with no digest
refuses before it touches Docker, naming --image. The SelectImage table test covers a release with
a digest, without one, with a malformed one, --image over each, and dev builds unchanged; a CLI test
proves the stamped digest reaches the run config; goreleaser builds with and without IMAGE_DIGEST
were checked to stamp it and to refuse. The release workflow is now the only release path (make release-apply is retired, and a pushed v* tag no longer triggers goreleaser.yml or image.yml),
and it publishes nothing until the repository variable RELEASES_ENABLED is true; #1940 tracks
turning it on. The decision is ADR-1257.
The rule reconcile reads a finished day’s index, not its heap (#1929)
Section titled “The rule reconcile reads a finished day’s index, not its heap (#1929)”Each minute the event rule reconcile read its marks (max(id) past the lower mark) and the series
touched past it, and both walked every day partition of metric: a finished day’s block ranges
were never summarized, so each read as a match and its heap was scanned whole, and the touched
scan probed each watched series’ whole day in its btree. A migration now sets autosummarize on
each existing day’s own block range indexes, and the partition roll makes every new day’s with it
before the attach; each retention pass, after its drop and on a deadline of its own, summarizes every
finished day’s ranges, the last one a day never fills included, naming a day that fails and going on
past it; and the touched scan reads the ids past the mark first, on their own, so each day is reached
through its id index (ADR-1929). An EXPLAIN test over a filled finished day shows both reads
fall from 316 and 536 of its pages to a few index pages, and a slow sample stamped hours into that old
day, written past the mark around the evaluator, still fires its rule once over three passes. The
marks still read the newest committed id and a pass still reads from the mark of the pass before
last, so the guarantee for a batch in flight is unchanged.
setting update carries a merge patch (#1333)
Section titled “setting update carries a merge patch (#1333)”omniglass setting update <namespace> had no way to say what to change: the settings PATCH body is
a free-form object (an RFC 7386 merge patch whose keys belong to the namespace), the CLI generator
only made flags from declared properties, and the command sent a nil body. A platform setting such as
notification.egress_allow was changeable only from the console or a raw HTTP call. The generator now
gives any object body with no declared properties a --body JSON flag and a --body-file (- for
stdin), shows the schema’s worked example in the command’s help, and refuses a malformed or non-object
document before any request. Generator and CLI tests cover the rendered leaf, the exact wire body,
null restoring a key, the file and stdin spellings and each refusal. Per-key flags per namespace
are filed as a follow-up (#1914).
The telemetry spool tells its drops before drain returns (#1285)
Section titled “The telemetry spool tells its drops before drain returns (#1285)”The spool’s overflow notice was logged after the shipper stopped, and stopping is what wakes drain(),
so a node that drains on shutdown and exits could finish before the warning was written, and
TestSpoolDropsABatchTheBusCanNeverTake flaked on the same ordering. The shipper now takes the
count and logs it with the lock released before it stops; a batch queued during the log is shipped by
the next pass. Drain semantics are unchanged. A unit test holds the notice in a slow log sink and
fails if drain() returns first (red on the old ordering), and the integration test no longer
polls for the line.
A terminal demo can stage database state (#1313)
Section titled “A terminal demo can stage database state (#1313)”A tape that declares # demo-needs: database now records against a database of its own: the
recorder creates tape_<id> on the lab’s Postgres, hands the tape OMNIGLASS_DSN pointing at it,
and drops it when the tape ends. The recorder image gains psql, copied from a Postgres stage
pinned by digest at the lab’s major, so a tape can run omniglass migrate and stage a row. The
header is parsed in tapelib.mjs (an unknown demo-needs value is refused naming the line, and the
Docker socket does not combine with a database), and tapes.sh reads it from there instead of
grepping the tape. The first such tape, schema-ahead, shows a server refusing a schema a newer
release migrated (#1289). Unit tests pin the header’s parsing; a tapes.sh selftest case records
a fixture that gets its own database (gone after) and one that gets no DSN.
The chart passes environment through (#1230)
Section titled “The chart passes environment through (#1230)”The Helm chart now exposes server.extraEnv and server.envFrom so operators can set any registry
variable without editing the chart: OMNIGLASS_TRUSTED_PROXIES and any other configuration the
chart does not manage directly. Both values are passed to the server, the migrate init container,
and the bootstrap init container when bootstrap.enabled is true, so the Omniglass containers share one configuration. The
helm guide now documents both values with examples, replacing the
previous vague “extraEnv-style values or a Secret” wording with named chart values. A render test
using the Helm Go library validates the values reach the server, migrate and bootstrap containers, with and without bootstrap.
The lab has one UCC shape: the per-room ucc-service is retired (#1390)
Section titled “The lab has one UCC shape: the per-room ucc-service is retired (#1390)”The simulator’s per-room ucc-service is gone: its device profile and templates, its ucc-service
product, the dev seed’s ucc-service component and its webhook endpoint, and its mention in
coverage.yaml. The account-wide ucc-platform conduit, built for the fan-out in #1282, is the one
UCC face the lab shows. The dev seed binds four of its rooms to their systems and leaves
zr-boardroom-b unbound on purpose, so the inbox row survives. The sim-ucc-signing key stays: the
platform’s webhook endpoint is signed with it. The meetings-cloud examples in the CLI guide, the
driver guide and the generated reference now name ucc-platform, and the webhooks and
collection-telemetry demos drive the platform’s room routes.
The manifests and room archetypes the issue named (standard-conference, the shinra fleet) had
already been retired in #1849, so nothing instantiated the profile but the dev seed. The
ucc-webhook driver keeps its per-room meeting.started and meeting.ended listeners, which no
simulated device posts now; dropping them is a driver change, out of this slice.
The lab runs its own build, by a build-keyed tag and an image ID (#1422)
Section titled “The lab runs its own build, by a build-keyed tag and an image ID (#1422)”Every checkout on a Docker host shared one tag, omniglass:dev, so a second checkout’s make could
re-point it under a running make test-lab (the build-id check refused with “built from another
tree”) or, worse, between the lab’s preflight and its container create (the check passed on one
build while the node container ran another). make now tags the build omniglass:dev-<build id>
as well as omniglass:dev, and SelectImage picks the keyed tag for a binary that carries a build
id, keeping omniglass:dev and its version check for one that does not. Preflight resolves the
chosen reference to an image ID once, through Engine.InspectImage (which returns the ID with the
labels the check read), and the seed, the server and every node, each site’s in a scale lab, are
created from that ID, so nothing re-reads a tag mid-run. make test-lab hands the tests the build
id it just built; a labintegration case tags a differently labelled image as omniglass:dev after
the build and shows a lab still comes up on its own, server and node alike. --image and
OMNIGLASS_LAB_IMAGE still override everything. The ready file’s LAB_IMAGE stays the reference, not
the ID, since scripts build FROM it. The lab guide teaches the
keyed tag.
The role and choice seed lane is retired (#1332)
Section titled “The role and choice seed lane is retired (#1332)”With the standards boot seed gone (#1324), SeedSystemRole and SeedRoleChoice had no production caller. They are
deleted from the Storage Gateway, its interface and UnimplementedGateway, with the repair of a role an interrupted
seed left without its typed slot and the seed’s deferral to a system’s own role of the name. A standard’s roles and
choices are written by CreateStandardFromTemplate, which is unchanged. The tests that used the seed as a fixture
now plant through it (choices, alternates, health verdicts, the alternate round trip over the API), the ADR-0503
collision rule is pinned on the standard’s role write, and the tests that pinned only the seed lane (the seed repair
and the choice reconcile-on-reseed) are dropped. ADR-0508
is marked superseded by ADR-0827.
An unknown CLI verb under a group now exits non-zero (#1311)
Section titled “An unknown CLI verb under a group now exits non-zero (#1311)”omniglass component alarm raise x printed the alarm help and exited 0, so a pipeline step that
guessed a verb passed green while nothing happened. Cobra checks for an unknown subcommand only on the
root, and validates Args only on a runnable command, so a bare Args: cobra.NoArgs on a group does
nothing. One walk over the assembled tree in internal/cli/root.go now gives every pure group (children,
no run of its own, generated or hand-written) Args: cobra.NoArgs and a RunE that prints help, so a bare
group still exits 0 and an unknown word is unknown command "raise" for "omniglass component alarm".
The group is marked by an annotation so the CLI reference generator and the docs-invocation check still
treat it as a group. Tests cover the two repro invocations, a bare group still printing help, and a tree
walk that fails if any group accepts an unknown positional.
Volume follows the ratio canon, in and out (#1429)
Section titled “Volume follows the ratio canon, in and out (#1429)”volume stored 0 to 100 under unit: "%", so a rule written volume > 0.9 (the docs’ ratio canon) fired on every component not muted to zero. It is now a ratio with precision: 3, like battery-charge and storage-utilization, and the kestrel-api and kestrel-ws drivers read the bar’s percentage with transform: { scale: 0.01 }. The settable path follows: a command binding may declare a transform with a scale (validated like an emit’s, refusing a cast or map), applied to ${value} before substitution, so an intended 0.41 goes out as the typed number 41; a response settle reads the reply back through the same scale, so it compares against the intended ratio. A scaled value is held to 15 significant digits, so 41 reads as exactly 0.41 and the observed value equals the intended one. The set-volume command type now takes a fraction of the range.
A walkthrough’s preview opens on a frame chosen from the recording (#1271)
Section titled “A walkthrough’s preview opens on a frame chosen from the recording (#1271)”The walkthrough preview started a fixed half second after the recorder saw the title card painted,
and on a loaded runner the video could lag the page by more than that, so a recording failed the
opening-frame gate at random and a PR needed a re-run. The start is now chosen from the recording:
walkthroughs.sh reads one signalstats YMAX per frame of the mp4, and previewStartFromLumas
picks the first frame at or after the card’s paint time, within the card’s hold, bright enough to
show its text. PREVIEW_SETTLE_MS is gone; a card that never painted fails naming the window
scanned and the brightest luma found. Unit tests cover the choice, the parse and the message, and
the recorder’s selftest adds a black recording whose card never paints.
A node’s worklist is designed to sync endpoint by endpoint (#1586)
Section titled “A node’s worklist is designed to sync endpoint by endpoint (#1586)”The worklist still travels as one reply, so the bus’s 1 MB limit caps how much one node can run. Grouping by endpoint (#1583) took headquarters on a 3,000-system seed from 1.17 MB to 463 KB gzipped, under the limit, but a larger site crosses it again. ADR-1577’s target, a materialized worklist the server writes into a per-node bucket on change, would lift the limit too, but only with a mark in every writer that changes a worklist, a reconcile, and resolved secrets at rest (#1250). ADR-1586 replaces that target with a sync that adds no state. A node pulls a manifest (its 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, applying them as a set once it holds every endpoint listed. On the corporate soak headquarters runs 1,609 endpoints, so its manifest is about 100 KB gzipped, and a manifest reaches the limit at about 16,800 endpoints on one node. Until #1584 a steady-state pull still reads on the server. The nodes and messaging pages carry the target design; nothing is built yet.
A driver rename fails in its own PR (#1999)
Section titled “A driver rename fails in its own PR (#1999)”#1951 committed the measured driver cost table and #1959 renamed two seed drivers for their products,
each green alone. Together they left the table naming http-json and newtron-nvp, drivers that no
longer exist, and main went red until #1996 moved the rows. The table is a measurement nothing
regenerates, so nothing tied its names to the seed. TestTheCommittedTableNamesOnlyShippedDrivers now
fails on any row or not-measured entry naming no shipped driver, so the next rename has to move its row
in the same PR. It failed against the table before #1996 and passes after.
A late batch keeps its slot and a widened window keeps its sample (#1560)
Section titled “A late batch keeps its slot and a widened window keeps its sample (#1560)”Two advisories from the review of #1559. A late batch waiting on the block fold lock sat unacked past
the consumer’s 30 s AckWait, so the stream redelivered it, spending a delivery of its 5 and freeing the
single ack-pending slot, which let another server land the publisher’s next batch first. The consumer
now sends InProgress every telemetryAckWait/3 for as long as the landing runs and stops when it
returns, so the batch is delivered once and the next lands after it. The ADR’s bound was wrong too: a
batch left unacked is given up after 5 x 30 s = 150 s, not about 15 s. TestALateBatchBehindAFoldIsHeldByItsHeartbeat
(real Postgres and JetStream, a shortened AckWait, the lock held past several) saw 8 landings without
the heartbeat and 2 with it, and the unit tests hold the beat inside the AckWait on both lanes.
The second: a late sample with the window cutoff inside a folded day lands raw only, and the trend
recompute, a later transaction, trusted the window as it then was. An operator who widened it in
between made the day intact and the recompute read the hour from a block that lacks the sample. The
merge now sets metric_trend_dirty.raw_only on the hour of each sample it skips from a folded day, and
the recompute reads such an hour from its raw rows. TestAWindowWidenedAfterTheMergeLeavesTheLateSampleInItsTrend
failed before the change on each span and passes after. Ingest stays at 18 statements per on-time
batch and the late batch statement counts are unchanged. See ADR-1529 decisions 7 and 9.
A late reply never overwrites a newer observation (#1606)
Section titled “A late reply never overwrites a newer observation (#1606)”A response-settled command’s reply was written as an observation stamped at the database’s now, so a
retried exchange whose reply reached the server after the device had pushed a newer value put the older
value back on top until the next poll. Settlement now records the reply as an observation only when the
target was not observed after the command’s first delivery; the command still settles or fails on the
reply either way. TestALateReplyDoesNotOverwriteANewerObservation failed before the change (the latest
read was the reply’s hdmi3, not the push’s dp1) and passes after;
TestALateReplyAfterARedeliveryDoesNotOverwriteANewerObservation holds it across a redelivery, which
advances the last take past the push; TestAReplyIsRecordedOverAnObservationOlderThanTheExchange holds the other side, that an observation
from before the exchange does not stop the reply being recorded. The decision is ADR-1606.
A location grant creates and reads the systems and components placed in it (#1498)
Section titled “A location grant creates and reads the systems and components placed in it (#1498)”A field tech holding one deploy grant at a location could build out its rooms but not the systems
and components in them, not even to read one, so building a room out took a location, a system and a
component grant together. Now the one location grant reaches system and component for read and
create: scope.Resolve carries the location as a cross-tier root, and the Storage Gateway admits the
rows placed under it (a component through its own location or, with none, its primary system’s).
A root create at a room in scope is a 201, at a room outside it the placement bind’s non-disclosing
422, and with no location a 403. Edit, rename, move and delete stay on their own tier (#10).
internal/api/location_grant_reach_e2e_test.go failed before the change (4 of its 5 tests) and passes
after; placement_scope_e2e_test.go drops its three-grant workaround for the single location grant,
and the deploy role’s description is rewritten from the reach matrix in
internal/seed/role_reach_test.go. The decision is ADR-1498.
A reserved key held in both tiers reaches no reader (#1447)
Section titled “A reserved key held in both tiers reaches no reader (#1447)”The ingest registry and the SQL readers disagreed on a reserved key (a node-probe, platform or
command-lifecycle key) that an operator held as a local signal type before a release reserved it and
shipped the og row beside theirs. ResolveNameLane refused the name, so the node’s writes landed
nowhere, while every reader going through <table>_in_effect() resolved it to the operator’s row and
served its frozen pre-release values as the node’s: the latest property, the availability strip’s
transitions, and an endpoint’s key pin among them. The three signal catalogs’ _in_effect() functions
now return neither tier’s row of a reserved name both tiers hold, in any of the three catalogs, so the
SQL search path and the registry give one answer. The reserved names live in a new reserved_key
table, which the boot seed reconciles to writerclass.ReservedNames() on every start: the list stays
generated from code, and a name the code stops reserving is deleted, the second table under the
storage page’s reconcile-and-delete carve-out. TestAReservedKeyHeldInBothTiersReachesNoReader
failed before the change (all four readers served the operator’s value) and passes after, with an
unreserved name still reaching the operator’s row; TestTheSeedMirrorsTheReservedKeysIntoSQL holds the
table to the code’s list across a boot and the next.
A stalled rule sweep opens an alarm, and the server can send a heartbeat (#1986)
Section titled “A stalled rule sweep opens an alarm, and the server can send a heartbeat (#1986)”A new platform gauge, rule-sweep-age, reads the seconds since a server’s event rule sweep last
completed, and the seeded rule-sweep-stalled rule opens a high alarm on that server’s component
when it passes 30 s, with no sustain. The report window reads a clock the sweep stamps, so the figure
does not depend on the goroutine it measures. Each server also stamps the shared database, and a 10 s
timer writes every live peer’s age onto its component, so a live server raises the alarm for a stalled one.
A peer is judged only while it marks itself seen, so a crashed server drops out rather than holding an
alarm open that nothing would clear, and a clean stop releases its stamps so a rolling deploy does not
alarm
(ADR-1986).
The alarm catches a stalled sweep, not a dead server. For that, an optional heartbeat, off by default:
set heartbeat.target to a webhook notification target and the server sends it a signed request every
heartbeat.interval_seconds (60 by default), through the egress allow list and into the audit log
(a target with no hmac-key secret bound is refused, never sent unsigned),
carrying the server’s name, build and count of open platform alarms. A receiver that alarms on the
heartbeat’s absence is the dead-man’s switch; hosting one is out of scope.
A wide chart reads the hourly trends (#1566)
Section titled “A wide chart reads the hourly trends (#1566)”A bucketed metric read sorted every sample of its window, so a month’s hourly chart of a series at
one sample every 30 seconds read 86,400 samples for 720 points. A metric read over more than 48
hours, or past its series’ hot window, is now raised to whole hours (ClampBucketResolution), and the
response’s resolution_seconds names the width applied; 30 days at five minutes answers 720 hourly
buckets where it was a 422. At whole hours an observed series takes each hour the trend fold has
closed from metric_trend, and its open hours, any hour from the first dirty one on, and the partial
hours at either edge from the series read, each hour once. A calculated series, an instance with a
calculated series beside its observed one, and a finer resolution read the samples alone. The
decision is ADR-1566; the trend setting that would turn a series’ trends off is #1531.
The fleet measurement (BUCKET_MEASURE=1 go test ./internal/storage/ -run TestFleetBucketReadProbe -v):
50 series at 30 s for 30 days, 4.3 million samples, each read hourly over the 30 days, warm.
| Read | Median a series | All 50 |
|---|---|---|
| From the trends | 3.2 ms | 185 ms |
| Series read, raw rows | 80 ms | 4.1 s |
| Series read, folded blocks | 93 ms | 4.8 s |
| From the trends, days folded | 3.4 ms | 185 ms |
Both ways answered the same buckets. Under BUCKET_EXPLAIN=1 the trend read executes in 2 to 4 ms
against 133 ms for the block read.
TestTrendServedBucketsEqualTheSeriesRead holds the trend-served grid to the samples-only grid at 1,
6 and 24 hours, a one-sample spike and a duplicated instant among the rows, and shows open hours ignore
a poisoned trend row and closed hours survive their raw rows being deleted.
TestALateSampleReadsBackBeforeAndAfterItsHourIsRecomputed reads a late spike through its dirty hour
and again from the recomputed trend. TestBucketsWithoutTrendsReadTheSamples and
TestAnInstanceWithACalculatedSeriesBesideReadsTheSamples cover the fallbacks, and
TestAWideBucketReadIsClampedToWholeHours and the API’s clamp cases cover the rule, with the
standards end-to-end test reading 720 hourly buckets for 30 days asked at five minutes.
A worklist change nudges its node to pull at once (#1945)
Section titled “A worklist change nudges its node to pull at once (#1945)”A node pulled its worklist only on its own interval, 30 s jittered, so an operator’s edit waited up to
about 33 s to run. Now the commit of an endpoint create, edit, retry or delete, and a driver spec change
that re-derives an endpoint’s tasks, issues a Postgres NOTIFY naming each node it touched; the server’s
one listening connection forwards each name as an empty message on og.v1.worklist-changed.<node>, and
the node pulls at once, at most once every 200 ms, with the scheduled pull kept as the backstop for a lost
nudge. TestAWorklistChangeReachesTheNodeAtOnce runs a node whose scheduled pull is an hour: a created
endpoint runs within a second and an address edit moves within a second (with the node’s handler emptied,
the create waits out the second and fails), and 100 edits over 0.8 s cost 3 pulls.
TestWorklistChangesAnnounceTheNodesAWriteTouches checks each write names exactly its nodes (both, on a
move), a refused edit names none, and the listener comes back after its connection is killed. The other
writers that change a worklist (secrets, property pins, dependencies, the report cadence) are #1997.
The decision, a notify on commit rather than the outbox, is ADR-1945.
Every metric reader reads through the series read (#1573)
Section titled “Every metric reader reads through the series read (#1573)”The second slice of #1530: the readers the first slice left on the raw metric table now read a
series’ samples through the series read too. The calc window and current inputs, an event rule’s
priming and stale check, the rule preview and its backtest replay, settlement’s latest observation, the
effective values and the trend recompute answer the same before a day folds, after, and with the folded
week’s raw rows gone, each proven against a recorded scenario on real Postgres. A series’ current value
is its newest raw row unless a block holds a newer sample, so a late sample landing in a folded day no
longer reads as the newest. The trend recompute keeps #1546’s one source an hour through the read’s own
switch, a backtest takes a folded sample as arriving in time order, and a calc write runs at READ
COMMITTED like every other metric write.
TestNoDirectMetricReads now fails on any non-test read of the raw table outside the read, the folds
and an allowlist that says why for each entry. ADR-1530 records the slice. No raw row is dropped yet:
the pending table, the early drop and block retention are #1574.
Every platform health figure has a rule or a reason (#1983)
Section titled “Every platform health figure has a rule or a reason (#1983)”The Platform health page’s figures had no check that a rule watched them, so three shipped bare
(#1977) and a fourth set was about to (#1980, #1984). TestEveryPlatformHealthFigureHasARuleOrAnExemption
now holds each node column, each server panel key (a ratio panel through its numerator) and the pipeline’s
loss ratio to the sample_key of a shipped event rule or to a one-line reason in
storage.PlatformRuleExemptions; an empty reason, an exemption a rule has overtaken, and an exemption
naming no figure each fail it. Today’s uncovered figures are on the list as “no rule yet” with the issue
that adds the rule, so each rule slice deletes its lines. The collection page renders the list beside the
rules from the seed facts. TestPlatformCoverageRefusesABareFigure drives the gate over a synthetic page.
Every worklist writer nudges its node (#1997)
Section titled “Every worklist writer nudges its node (#1997)”The change nudge (#1945) covered the endpoint’s own writes; a rotated secret, a dependency edge, a
renamed upstream, a moved component or location, and the report window still waited for the node’s
scheduled pull. Now each of those writes announces, in its own transaction, exactly the nodes whose
worklist it changed: a secret’s create, field edit or delete names the nodes of the endpoints that
resolve it; a path edge names the nodes holding both ends in band; a rename names the nodes carrying the
component as an upstream; a reparent or relocation names the endpoints below it; a driver edit that
changes its spec names the nodes attached through it, since a task carries the session block and ladder
off the live spec and no task id hashes them; a settings write to the collection namespace that moves
collection.report_seconds names every node. A label-only secret or driver edit, an unchanged setting
and a refused write name none. TestARotatedSecretReachesTheNodeAtOnce runs a real node pulling hourly: the
device sees the rotated api key within a second (against the old secret writer, it never does). The
storage tests in worklist_writers_test.go check each writer names exactly its nodes. Key pins needed
nothing new: the plain property route refuses them, and an endpoint’s :retry, their one writer,
already nudged.
Platform health reads database connections as loss ratios (#1980)
Section titled “Platform health reads database connections as loss ratios (#1980)”The health page showed the server’s pool as connections in use of its size plus a raw count of
acquires that waited, which cannot say whether 40 waits is a starved pool or a blip, and it did not
measure the database’s side at all, so Postgres could run out of connections while every pool showed
headroom. The pool now carries its acquire count: the window’s acquires is a new seeded metric
(db-pool-acquire-count), Pool Waits reads against it as a share, and Pool Wait Time is on the
page beside it. The server also reads pg_stat_activity through the Storage Gateway each window and
writes the connections held against the limit that admits clients (max_connections less
superuser_reserved_connections), those idle in a transaction against those held, and the age of the
oldest open transaction, as db-connection-count, db-connection-limit,
db-connection-idle-in-transaction-count and db-transaction-oldest-age. Held counts client and
walsender backends only, the ones max_connections admits, not the background workers the view also
lists. A read the database cannot answer writes nothing for that window. TestPoolReadingsAreTheWindowsDeltas
and TestPlatformServerGroupsReadConnectionsAsRatios failed before the change, and
TestConnectionStatusReadsTheDatabasesOwnSide proves the read against a real Postgres with a
connection left idle in a transaction. The scaling page’s scale-up-or-out section and the operator and
collection pages teach each reading.
Derived seed facts merge cleanly when main moves (#1492)
Section titled “Derived seed facts merge cleanly when main moves (#1492)”Two PRs that each added a seed row from the same base could force a hand merge of the generated
seed.json, or merge clean and fail gen-drift. The emitter already wrote one entry per line with
map keys sorted, but nothing held it there. cmd/seedgen now has tests that render several times
and require identical bytes, require the canonical one-entry-per-line layout, and walk the template
type beside the output to prove every map’s keys are sorted (and fail if an object appears in a
section the walk does not cover). A merge test in internal/seed adds two property types at
different places in one YAML, renders each branch, and requires git’s line merge of the two
seed.json files to come back clean and equal to a fresh render of the merged YAML. Every other
generator is held deterministic, not merge-friendly: gen-drift’s make gen must reproduce the
author’s committed output byte for byte, and the new make gen-twice runs make gen twice locally
and fails if the second run moves a byte of the tree. .gitattributes marks the generated MCP catalog,
its reference page and the web/src/lib/*.gen.ts files, which it had missed, and records that
plan.go and coverage.yaml are hand-written sources. The recovery after main moves (merge, resolve
the sources, make gen, commit) is in API first.
A window across the sim’s fleet change reads restarted, not loss (#1895)
Section titled “A window across the sim’s fleet change reads restarted, not loss (#1895)”The browser e2e lab read SNMP loss of about 0.12 on a healthy path in some runs: its first window
spanned the simulator’s first sync, and a poll sent to a device not yet bound is never received.
Each simulator observation now carries the fleet generation it served and whether a sync was
starting or stopping devices, and the closed-loop reconcile reads a window that spans a change of
either as restarted, the state a counter reset already reads (ADR-1895). The lab report names
such a node under its sim rows as restarted or changed fleet, and the perf gate refuses such a
window as it refuses a restart. A real loss on a steady fleet still reads as loss.
The soak verdict is the platform’s own alarms and loss ratios (#1988)
Section titled “The soak verdict is the platform’s own alarms and loss ratios (#1988)”omniglass lab soak verdict --since <ts> judges a week-long soak from what the platform says about
itself, read through its API alone: the platform system’s alarm history and every loss ratio on the
Platform health page. It passes when the soak ran 7 days, no alarm is open, none was open past a
stated tolerance (30 minutes), and every loss ratio reads 0; a reading that cannot answer (no build,
no loss ratio, a token that sees part of the page, an alarm history cut at the API’s cap) fails
rather than passes. The judge is a pure function over fixed alarm histories, with the API read behind
a getter, and an import-ban test keeps the database and the harness out of it. The command writes the
release’s record, one file per build, and the release process now holds that no passing record for the
build means no release. Running the soak in CI and scheduling the week stay manual.
A step chart starts on the value in force (#1488)
Section titled “A step chart starts on the value in force (#1488)”A property drawn as steps started blank when it had not changed inside the window, so a value that
turned on two hours ago showed nothing on a one-hour chart. The bucketed property read now carries
carried_in (the newest measured row of the same instance before the grid, within retention) and a
per-bucket held that runs it through the leading empty buckets; the raw read gains carried_in too.
chartLayout’s step mode and TimeseriesChart take carriedIn and draw it from the left edge to the
first change, without making it a crosshair point. Integration tests cover the carry, the retention
floor, a different instance and a declared row, and the unchanged metric read; ADR-1269 records it.
The system create form no longer asks a label draft it knows will be refused (#1548)
Section titled “The system create form no longer asks a label draft it knows will be refused (#1548)”Opening New, System, from scratch or on the way to a template, fired POST /systems:renderLabel with
no system type, and the server answered 422 because an unclassified system has no stem to name it
from. The form handled the refusal, but the browser logged a failed request on every open and the
walkthrough probe read it as a console error. The system draft is now gated like the location and
component ones: it is asked once a type or a typed name is present, and the “type a name” hint for an
unclassified system is stated from that known fact. A real refusal (a type chain with no stem) still
reaches the form through nameRefused. The route is unchanged.
The audit trail reserves space for its first page (#1461)
Section titled “The audit trail reserves space for its first page (#1461)”The probe’s vitals pass measured 0.755 cumulative layout shift on /audit, far over the 0.1 budget: the table
rendered a one-line “Loading…” row (and, before the mount, “No events yet.”), then a hundred rows landed and
moved everything below them.
FlatList gains an opt-in loadingRows: while loading is true that many skeleton rows replace the
“Loading…” line, inside the same table, so the header and filters stay mounted and the loaded rows land in
place. /audit opts in with a screenful of rows, starts in the loading state so even the first paint is
reserved, and gives its “Load older” button a fixed minimum width so the footer does not move when the label
flips to “Loading…”. The audit data, filters and paging are unchanged.
The console paints once, with the lab banner in place (#2003)
Section titled “The console paints once, with the lab banner in place (#2003)”The probe scored /audit at a cumulative layout shift of 0.755 against a 0.1 budget, and #1461 blamed
the audit list. Listing the shift’s sources showed otherwise: AuthGuard let the shell paint once
/auth/me answered, and on a lab the banner arrived with /auth/status a moment later, pushing every
screen 37px down. The probe runs on a lab, so every route paid it. The guard now holds its loader until
both answers have settled (they are fetched together, and a failed status read still lets the console
in), so the shell’s first paint already carries the banner. On the same probe /audit fell to 0.102,
the audit list’s own remainder that #1955 takes, and the shift summed over all 75 surfaces fell from
3.01 to 0.62.
The console’s visualizations are inventoried for the widget canvas (#1827)
Section titled “The console’s visualizations are inventoried for the widget canvas (#1827)”Epic #1826 rebuilds the console’s charts, cards, pills and lists as widgets on a canvas, and
needed to know what it was replacing. The new visualization inventory
lists 49 places the console draws one, each with its component, the routes that show it, the data
primitive, the API read behind it, how live it is, and the widget it maps to, and checks all 51
pages under web/src/pages/. It found that TimeseriesChart is the only chart and appears on two
pages, that propertySeries and propertyBuckets have no caller (so the property distribution and
property timeline widgets have nothing to migrate), that a component’s own view shows latest values
but no history, and that more than a quarter of the surfaces are verdict pills in different frames. It is a
point-in-time survey at e953d9bf, docs only, with no code changed.
The metric prune leaves a droppable day to the drop (#1957)
Section titled “The metric prune leaves a droppable day to the drop (#1957)”The metric lane’s chunked prune deleted every sample as the window’s cutoff crossed it, so by the time
a day was wholly past the window it was already empty and the partition drop only ever removed empty
days. On the 3,000-system corporate soak that was 7 to 9 million deletes an hour, with their WAL and
dead tuples. The lane’s prune now asks of each day the drop’s own question, whether a sample of a type
kept longer than the lane still holds it, and works only in a day that is held; a day nothing holds is
left whole and dropped once it is past the window. A sample with no window of its own is kept at least
retention.metric_days and leaves with its day, at most a day later; a type with a window of its own is
still pruned exactly. A failed drop now brings the next pass a minute later, since the drop is the only
way out of an unheld day. A type kept longer than the lane and sampled every day still holds every day
and keeps the row deletes there; that is #1958. TestPruneMetricSamplesLeaveADroppableDayToTheDrop
failed before the change (the prune deleted 3 rows where 1 was in a held day) and passes after, and the
drop then takes the unheld days whole; TestPruneMetricSamplesAskTheDropsQuestionOfEachDay fails on
either a day’s-end or a cutoff bound alone and passes on the earlier of the two. The decision is
ADR-1957.
Two seed drivers are named for their product (#1483)
Section titled “Two seed drivers are named for their product (#1483)”newtron-nvp served only the Newtron Panel 7 once the Core 3 and Slate 5 moved to drivers of their
own, and http-json only the Tessellate Census, so they are renamed newtron-panel-nvp and
tessellate-census-http, matching lyra-arc-snmp and newtron-core-nvp. The products, the
simulated fleet’s attach maps, the driver tests, the demo tapes and the docs that name them follow.
A driver’s name is the seed’s key and an endpoint holds it by uuid, so a migration
(20261115120000_driver_product_names) renames the existing rows in place: an install seeded before
the rename keeps its endpoints, their tasks and the products on the same driver, and the next boot’s
seed updates it. TestDriverRenameKeepsAttachedEndpointsCollecting stands a pre-rename database,
runs the migration and the seed, and asserts the driver uuids, the attached endpoint and the
products survive. The choice of a migration over a seed alias is ADR-1483.
A component’s Vitals carry each metric’s unit (#1550)
Section titled “A component’s Vitals carry each metric’s unit (#1550)”The effective-metrics read (components, systems and locations alike) now carries the metric type’s unit,
omitted when the type names none, and a component’s Vitals card shows it after the value: Uptime reads
306 s and Poll Duration 0.15 ms, never a bare 0.1527895. A float keeps at most two decimals (a small
one keeps two significant digits rather than rounding to zero), the exact value stays on the row’s title and
in the API, and the rule is one pure helper, vitalValueText. The read is the one unit source for the
card; the rules page keeps its own metric-type lookup because a rule names a metric but has no
effective-metrics read. TestEffectiveMetricsCarryTheirUnit failed before the change (no unit on any
line) and passes after, as do the vitalRows, vitalValueText and Vitals render tests.
A node refused its first worklist heartbeats and reports its pull loss (#1882)
Section titled “A node refused its first worklist heartbeats and reports its pull loss (#1882)”A node whose first worklist pull is refused no longer goes silent. It now builds its node-self report
before that pull, runs the pull on a goroutine of its own, and on every heartbeat tick meanwhile
publishes its heartbeat and its node-self account; each first pull counts toward
worklist-pull-loss-ratio as every later pull does (#1868). A node refused from the start reads up
with a pull loss of 1 rather than down, so the health page and the lab’s worklist_loss gate name
the real cause (ADR-1882).
TestANodeRefusedItsFirstWorklistReportsItsPullLoss failed before the change (the node never
heartbeat) and passes after, with the first pull’s tally and the tick-while-waiting covered by unit
tests.
A node with no worklist does not hold the lab’s drain (#2008)
Section titled “A node with no worklist does not hold the lab’s drain (#2008)”The scale lab’s drain no longer waits on a node whose latest worklist-task-count is 0. Such a node,
refused its first worklist after a restart, heartbeats and reports a count of 0 while it waits
(ADR-1882), but runs no task, so the drain held to its three-minute bound for a collected sample it
could never land, and omniglass lab measure failed as not drained. It now passes the node over and
the measure fails on worklist_loss/<node>, the real cause
(ADR-2008).
TestIntegrationDrainedQueryPassesOverANodeWithNoWorklist failed before the change (not drained
while the waiting node held it) and passes after, including the node being waited for again once it
installs a worklist.
A rule fires on a trend, and the server gauges its database (#1985)
Section titled “A rule fires on a trend, and the server gauges its database (#1985)”An event rule on a metric can now judge where its series is heading. A rule’s sample_window (up to a
week) binds the series’ points over it to its criteria as window, read by the store through the
series’ index and averaged into at most 360 buckets, and the new list functions slope, span and
growth fold it; calc rules’ windowed inputs admit them too. The ingest, the sweep, a rule write’s prime
and the reconcile scan all read the window, the reconcile rejudges a windowed rule’s series since a trend
moves with no sample (after the drifted series, at most 200 a pass), and a preview refuses windowed
criteria. Each bucket is the mean of its newest 4 samples, probed per series, so a window reads at most
1,440 rows a series. Criteria also bind age, how long the series has run: from the process’s start on
a process’s own key (every process now reports process-uptime), else from the oldest kept sample. The server now gauges db-size
(pg_database_size) every report window on its platform component, shown on the platform health page,
replacing the retention pass’s hourly database-bytes. Three official rules ship at average:
process-heap-growing and process-goroutines-growing (a quarter’s fitted rise over 6 hours, held an
hour, after a day of uptime) and db-size-growing (a quarter over a day, held 6 hours, once its series
is a week old), which ships disabled: a fleet onboarded on days 4 to 6 grows the database past the
quarter after day 7, which db-size alone cannot tell from bloat, so an operator authors it when their
fleet has settled. A seeded rule can now say enabled: false. TestTheShippedTrendRulesFireOnASteadyRise
judges each shipped rule on a fixed rising series (fires), a flat noisy one (clears), a warm-up (holds) and
the retention sawtooth (clears), then walks a process’s restart refilling over 4 to 18 hours and a fresh
database’s first three weeks, its fleet there from day one or onboarded on days 4 to 6: a rule ships on
only if no walk fires it, off only if one does; TestWindowedRuleFiresOnATrend proves the same against Postgres through
the prime, the ingest and the reconcile. The decision is ADR-1985. A week of corporate soak opening none
of the three is pending.
A view binding reads history and streams live over one connection (#1830)
Section titled “A view binding reads history and streams live over one connection (#1830)”The sample store has one scoped read now. A view binding names a primitive (metric, property, event
or log), an entity selector (refs, or a kind and a filter), the keys and a range, with an optional bucket
step; POST /views:run answers each binding’s history from one snapshot with the tail cursor it was taken
at, and GET /views:watch follows every binding of a page over one Server-Sent Events stream from those
cursors. Every sample write commits to an in-process tail inside the same write, which is what makes the
cursor a clean seam: 30 concurrent pushes straddling a run each arrive exactly once across the history and
the stream. Both routes are gated by view:read plus the binding’s kind read, and resolve inside its scope:
a viewer scoped to one location reads only its entities, gets a 404 for a ref outside it, and sees none of
its rows on the stream. A dropped stream resumes from Last-Event-ID with nothing repeated, and a cursor
the tail no longer holds is a reset that sends the client back to the history. The generated CLI gained
omniglass view run and omniglass view watch, and run-views is on the MCP catalog (the agent’s query
tool over it is #2050). In the console, createViewBinding reads a binding’s history and folds its live rows in through one shared hub, and
Platform health’s sparklines moved onto it: one binding per panel instead of a poll per row every 30
seconds, so a panel’s line moves as the server records. A watch is bounded so its scope never goes stale:
it ends at a 15 minute lifetime, and on a heartbeat once its caller’s session or grants changed, and the
client reconnects from its cursor; one user holds at most 16. The tail ring holds 4,096 commits or 64 MiB
of rows, whichever is less. The browser specs and the docs screenshots no longer wait for networkidle,
which a page holding a live stream never reaches: a shared settle waits for every request but a stream.
The decision is ADR-1830.
Agent tokens act on a person’s behalf and never reveal (#1179)
Section titled “Agent tokens act on a person’s behalf and never reveal (#1179)”A person can now mint an agent token: POST /auth/me/tokens with an agent name, a required
ttl_days, and optional roles and channels. Its authority is its roles intersected with the
person’s current grants on every request, a role wider than the minter is refused at mint, and a
channel allowlist refuses the other channel. Reveal and use are stripped by construction for an agent
token and for any token used through MCP, so an agent cannot decrypt a credential; it also cannot
mint a token, change the password or impersonate. Nor can it aim one: a write that binds a secret to
a target (an endpoint attach, input edit or node move, a plan, a simulated system or fleet device) resolves its
references under an empty secret scope under the ceiling, so an agent cannot repoint a
credential-bearing endpoint at a host or node it controls, nor enroll a node
(TestAgentTokenCannotSendACredentialToATarget
failed first, the agent’s attach landing with the secret bound). Every write it makes carries audit_log.agent
beside the person as actor, filterable with GET /audit-log?agent= and shown in the session list
(ADR-1179).
TestAgentTokenCannotReveal failed before the ceiling (every reveal route returned plaintext) and
passes after, alongside the intersection, refusal and channel e2e tests and the rbac Within and
Without unit tests. OAuth 2.1 for MCP clients, location narrowing, omnibot’s marking and the console
fields follow.
An agent triages the fleet’s alarms over MCP (#2025)
Section titled “An agent triages the fleet’s alarms over MCP (#2025)”The MCP catalog grows from 66 tools to 98, enough for an agent to triage: find what is alarming, acknowledge or snooze it, read the events and rules behind it, and fix the component, its tags, its place or its system. Finding what is red needed a route that did not exist, so GET /alarms (list-alarms) now lists the active alarms across every component the caller may read, worst severity first, with the Storage Gateway injecting the caller’s component scope. The catalog is also credential-blind now. Fourteen operations that take or return a credential in plaintext carry an x-omniglass-plaintext stamp. The generator refuses a tool on any of them, or on any operation gated on a reveal, and a spec test fails when a credential-shaped operation goes unstamped. create-secret leaves the catalog as a result. Running an endpoint’s poll now masks the endpoint’s own secrets wherever the device echoes them in the answer: a sample’s text, labels and identity, the faults, and a refusal’s text.
An OAuth client refreshes its token (#2073)
Section titled “An OAuth client refreshes its token (#2073)”An MCP client that signed in with OAuth 2.1 now holds an access token good for an hour and a refresh token good for a sliding 30 days, so it stays connected while in use without asking its person again. Each refresh rotates the client’s one credential row in place and spends the refresh token; presenting a spent one again ends the grant, and a refusal for another client, an expired token or a disabled person spends nothing. The authorization server’s metadata and the registration both admit the refresh grant, and the session list keeps a client whose access token has expired while its refresh token is good. ADR-2073 records the rotation.
Binding a secret takes secret:bind, and an agent may bind (#2047)
Section titled “Binding a secret takes secret:bind, and an agent may bind (#2047)”Handing a secret to a target (an endpoint input, a driver preview, a template plan, a simulated
device, a notification target, the mail relay) now takes secret:bind on the secret, not
secret:reveal. A secret the caller cannot read keeps its non-disclosing refusal; one it can read
but not bind is a 403 naming secret:bind. The agent ceiling shrinks to the plaintext-out actions
(reveal, enroll), so an agent token binds what its person may bind, audited as the agent’s,
with approval left to the MCP client (ADR-2047).
operator and deploy gain secret:bind. Before, TestAgentTokenBindsACredentialItNeverReads,
TestAnAgentRunsAPollWithACredentialItNeverReads, TestHandingASecretToANodeTakesSecretBind and TestBindingTheRelaysSecretTakesSecretBind failed (an
agent’s attach was refused, and a role with secret:bind but no reveal could not bind); they pass
now, beside the notification target and preview cases.
Collected values never carry an endpoint’s credentials
Section titled “Collected values never carry an endpoint’s credentials”A node already scrubbed a component’s text of the credential before it became a rejection reason. Now the same holds for everything a task collects. The worklist names each task’s mask, which is the values of the fields its secrets’ types mark secret. The node masks those values, along with the base64 form a basic authorization takes on the wire, out of every string in a collected group before the group is queued. That covers metric labels and identities, property values, event messages and payloads, and log lines with their attributes. JSON payloads are masked one string at a time, so they stay valid JSON. Masking happens at the telemetry spool, which every lane passes through, and each task’s mask is replaced on every worklist. The grouped worklist wire carries the masks in their own dictionary, so tasks that share a credential also share one mask entry.
An MCP client signs in by its client id metadata document (#2074)
Section titled “An MCP client signs in by its client id metadata document (#2074)”An MCP client can now use the https URL of its own metadata document as its client_id and skip
registration: the server fetches the document through the egress contract, checks it names itself,
sends codes only to the redirect URIs it lists, and keeps it ten minutes
(ADR-2074).
The Connect page names the host serving the document. Before, TestMCPClientSignsInByMetadataDocument
(the go-sdk’s own client in its metadata-document mode) failed at authorize; it passes now, with the
refresh by URL client id, the one cached fetch, and TestMetadataDocumentRefusals and
TestMetadataDocumentPrivateAddressNeverFetched proving the refusals.
MCP clients sign in with OAuth 2.1 (#2048)
Section titled “MCP clients sign in with OAuth 2.1 (#2048)”An MCP client added with just the server’s /mcp URL now signs its person in: the /mcp challenge
points at the protected-resource metadata, the client registers itself, the person approves roles on
the console’s new Connect page, and the client exchanges the code (S256 PKCE, exact redirect) for an
agent token named after it, on the mcp channel, linked to the client
(ADR-2048).
Before, TestMCPClientSignsInWithOAuth (the go-sdk’s own OAuth client against the server),
TestOAuthConsentNeverIssuesARoleThePersonLacks and TestOAuthProtocolRefusals failed with no
endpoints to reach; they pass now, with revocation refusing the client’s next call and the audit
naming the client. Refresh tokens are #2073 and client metadata documents #2074.
One vocabulary table writes the glossary and the API descriptions (#2029)
Section titled “One vocabulary table writes the glossary and the API descriptions (#2029)”Every word an operator or an admin reads is now a row in internal/vocab/terms.yaml. make gen renders the new glossary from it, and each mapped OpenAPI entity schema carries its term’s definition as its description. Guards fail any API collection, console nav entry or health verdict that names no term, a nav label that is not its term’s word, and a retired word in console strings or docs prose. Retired words now live in the table beside the word that replaced them. The nav hints and docs prose no longer say workspace or inventory, and the architecture glossary is marked as the frozen internal reference.
Place retires as a noun; location everywhere (#2039)
Section titled “Place retires as a noun; location everywhere (#2039)”ADR-2030 made location the one word for where things sit, and this sweep carries it through every surface. The console now says Parent location, Configure location and Start locations, and the detail view’s place card is the location card (LocationCard). The wire names went with the words, since there is no installed base to keep: the place_template kind is location_template, a template body’s place and places keys are location and locations, the alarm rule and notification fact place is location (a rule reads location == "Boardroom"), and the configure deep link ?edit=place is ?edit=location. The find-and-fix-a-place walkthrough is find-and-fix-a-location, and its docs shot fleet-place-systems is fleet-location-systems. The docs denylist bans the noun with an Allow for the English that keeps the word (in place, in its place, the one place, earns its place, decimal places, and the verb), and placed and placement never match. A new BannedTerm.Matches gives the simulator’s catalog test the same Allow the docs lint applies.
The sim’s observation tests wait for a request to leave in flight (#1732)
Section titled “The sim’s observation tests wait for a request to leave in flight (#1732)”A simulated device settles a request by counting its outcome before it lowers the in-flight count,
the same order the collector’s request tally uses, so a read between the two sees the request in
both. The closed loop’s unsettled residual (received minus settled minus in flight) reads that
overlap as masked, never as lost, so the order stays and is now commented on obsToken.end. The
observation tests waited only for the request to settle and then asserted nothing in flight, which
failed TestObservedHTTPClientHangUpIsDropped on main now and then; they now wait for both.
The audit list scrolls inside its card (#1461)
Section titled “The audit list scrolls inside its card (#1461)”The audit trail held its space with 12 skeleton rows (#1955), but a first page holds 100, so the
loaded list still pushed its footer (the count and Load older) off the bottom of the screen: the
probe scored route:/audit at 0.102 against a 0.1 budget once the lab banner’s shift was gone (#2003).
The page now turns on the list’s fill mode inside a box sized to the viewport, so the rows scroll
under sticky column headers and the footer stays where the first paint put it. Fill mode needs that
box: the console scrolls the document, so a list with no definite height around it grows with its
rows. route:/audit now reads 0.002 to 0.004 over three runs, with no footer among the shift sources.
The MCP server serves skills as prompts (#2026)
Section titled “The MCP server serves skills as prompts (#2026)”An agent connected to omniglass got tools and no idea of the order a job takes. Skills are now one
SKILL.md each, embedded in the binary and served as MCP prompts, starting with triage-alarm and
troubleshoot-component; the stdio relay mirrors them, omniglass mcp skill prints them, and
make gen renders the MCP skills reference from the same files. Before,
TestTheServerServesSkillsAsPrompts and TestRelayServesTheServersPrompts failed (the server listed
no prompts) and TestEverySkillToolIsInTheCatalog did not build; they pass now, with the loader’s
refusal cases and the omniglass mcp skill test beside them. Acknowledging and snoozing an alarm wait
for their tools (#2025), so the triage skill proposes them for the console until then.
The nightly demos record green again (#1858)
Section titled “The nightly demos record green again (#1858)”Two merges left three demos failing in the nightly recording on main. Volume became a ratio in #1429, but the websocket and http-sse tapes still waited for the bar’s raw 37 to arrive as a sample. They now wait for 0.37, while the bar itself is still set in its own 0 to 100 units. The command-status and command-queue-health tapes still recorded, but they issued set-volume --value 42, which the bar received as 4200. They now issue a fraction of the range. Breadcrumb crumbs became links in #1822, so step 14 of the find-and-fix-a-place walkthrough could no longer find an Explore button. That step now clicks the breadcrumb’s Explore link, which is scoped to the breadcrumb so it cannot match the sidebar’s.
A cascade value is a binding, and a declared value is device state (#2079)
Section titled “A cascade value is a binding, and a declared value is device state (#2079)”The values words follow ADR-2037. A value set at one cascade level is a binding, and a deeper
binding shadows a shallower one; override stays only for the catalog’s sparse edit (#1435). One
migration renames the settings table setting_override to setting_binding with its constraints and
indexes, and internal/storage/setting_binding_migration_test.go plants a binding below it, migrates
forward over it, and rolls back. The settings engine, Storage Gateway and API descriptions speak of
bindings, the Admin settings page names the console binding, and the tag combinator reads union on
key, shadow on value. Desired device state is a declared value: the variables page is retitled
“Variables, secrets, and declared values”, the console’s Values group names its stub Declared (one word,
as every sidebar tab is), and the vocabulary table gains the term, retiring declared config, desired state, desired
value, set the config, config drift and the cascade sense of override, so a stray one fails the lint.
A credential handed to omnibot never reaches the model (#2112)
Section titled “A credential handed to omnibot never reaches the model (#2112)”omniglass omnibot with no prompt now opens a chat, its loop keeping the conversation across turns,
and the chat’s /secret <name> <type> [location:<name>|component:<name>] hands omnibot a credential
it can use but never read. It asks for the type’s values with the terminal’s echo off, creates the
secret with the person’s own token (audited as theirs, with no agent), and tells the model only the
secret’s name, type and owner; the model then binds it by name with secret:bind, audited as
omnibot’s. TestOmnibotSecretNeverReachesTheModel replays that chat and checks every message the
model was sent, both output streams and a failed /secret’s error for the value, and the audit rows
for who did what; it failed before (there was no chat to type /secret in) and passes now.
A label renders from a rule, and a standard is a contract (#2065)
Section titled “A label renders from a rule, and a standard is a contract (#2065)”A template is the catalog entry a component is created from (ADR-2033), so the string a label or a
notification renders from is a rule, and every surface now says so with no alias left behind. One
migration renames label_rule.default_template to default_rule and template to rule;
internal/storage/label_rule_rename_migration_test.go plants a system and a location rule below it,
migrates forward, and rolls back. The Go, the seed’s rule: key, the API descriptions of every
label rule and of a notification type’s subject and text (written in the rule language), the
generated client and CLI, the console and the docs follow. A standard is the contract a system is
built to, never a blueprint: the Standards nav hint, the system form and the docs say contract. The
vocabulary denylist retires label template, default_template and blueprint, while Go
text/template, the catalog template and its start-from senses stay allowed.
A system type names what a system is for (#2067)
Section titled “A system type names what a system is for (#2067)”Type has one meaning (ADR-2034): the registry row that says what kind of thing an instance is. The
system type tree now says what a system is for, never the space it sits in. The seeded room node,
a space, becomes collaboration (same id, through a one-time migration so the boot seed updates it
in place), and its children read as uses: Board Meeting, Teaching, Meeting, Training, Conference,
Huddle. The ids (board, class, meeting, huddle, …), stems and abbreviations stay, so no
generated name moves; a label the shipped rule renders from the type now reads, for example, Media
Lab Teaching 2. internal/storage/system_type_use_migration_test.go stands a fleet on the old row,
a system typed by it and an operator child under it, migrates and reseeds, and checks all three land
on collaboration with nothing left behind. Genus, the second word for a type, retires from every
operator surface and joins the docslint denylist; ADR titles and their anchors keep it.
An install sets what an agent may do (#2063)
Section titled “An install sets what an agent may do (#2063)”An admin had no way to rule out a kind of action for every agent at once: an agent could do whatever
its person could, and only the client decided what to ask about. The agent settings namespace now
sets always, ask or never for each class of operation (read, write, destructive, credential
destination), with defaults that refuse nothing. The server refuses a never class to any agent
token or MCP call with a 403 and an agent_refused audit row as the agent’s, every MCP tool lists its
class and the caller’s policy in its _meta, and omniglass auth agent-policy reads the policy back.
Before, TestAgentPolicyNeverRefusesTheClassOnEveryChannel and TestAgentPolicyMarksEveryListedTool
failed (the route and the setting did not exist); they pass now, with
TestEveryToolsClassIsTheServersClass holding the catalog’s class to the server’s. Per-role and
per-tool policy is #2088.
Omnibot in the console, a panel that shows its work (#1167)
Section titled “Omnibot in the console, a panel that shows its work (#1167)”The console opens omnibot in a panel from the top bar’s Ask omnibot button and the command
palette’s last row, which carries the typed query as a draft (ADR-1167). The panel runs each prompt
over the server’s :run stream (ADR-2121) on one conversation, and shows omnibot’s text and a card
per tool call. A per-tool renderer registry shows a component read as a link and reachability as the
endpoint ladder; any other tool, or a result its renderer cannot read, falls back to a generic card,
with the raw result one click away. A call the agent policy asks about pauses on a confirm card whose
answer resumes the run; the step limit, a refused run and a failed one each read as what they are.
Add a credential creates the secret through the secrets route with the person’s token and puts
only its name in the draft. Showing a driver spec and first samples is #2134, reopening an earlier
conversation #2135, and the over-budget state rides #2111.
omnibot keeps a conversation for its owner, and —resume carries it on (#2113)
Section titled “omnibot keeps a conversation for its owner, and —resume carries it on (#2113)”A migration adds assistant_conversation and assistant_message, and the Storage Gateway reads and
writes them with the caller as the owner predicate on every query, so another person, the platform
owner included, finds nothing (internal/storage/assistant_test.go). Five routes under
/assistant/conversations serve them behind assistant:use, which viewer now carries; an append
names the last message it saw or is a 409, and every write is audited without content
(internal/api/assistant_e2e_test.go). The retention pass prunes a conversation
assistant.conversation_days (30) after it last moved. On the CLI, omniglass omnibot --resume <name>
carries a conversation on, and when its last run paused on a write it asks that call first: the stored
pending is only a marker, and the proposal is rebuilt from the transcript’s open call and the live
tools, so a marker naming no open call is refused (internal/cli/omnibot_resume_test.go). ADR-2113.2
records why a kept transcript is not a server-side pending approval.
omnibot’s loop reports each step and can pause at an ask (#2120)
Section titled “omnibot’s loop reports each step and can pause at an ask (#2120)”omnibot’s loop now reports every step through one event hook: the model’s text, each call it proposes
(by the provider’s call id, with its arguments and the tool’s policy), the decision, and the result the
model is told. Before, the hook saw only a decided call, with no id or arguments, and a streaming client
had to wrap the model to see its text. A loop set to pause stops at an ask and returns the
conversation with the call it waits on; Continue resumes from that conversation with the owner’s
decision, finishes the turn’s calls in order, and runs on. The tests drive a recorded model: a read
then an ask emits its events in order, a paused run continued with an approval ends in the same
conversation an inline approval produces, and a declined continue writes nothing. omniglass omnibot
still asks inline and prints the same line per call.
omnibot runs in the CLI, asking before each write (#1166)
Section titled “omnibot runs in the CLI, asking before each write (#1166)”omniglass omnibot <prompt> runs Omniglass’s own agent against the MCP tools. It mints a one-day
agent token held to the new omnibot channel from the person’s token, so it holds what they hold,
and revokes it when the run ends; its rows audit as channel = 'omnibot' and agent = omnibot. A
tool’s agent policy decides on the client: always runs, ask is put to the person on the terminal
(with no terminal, declined), never is not offered. The model is a recorded conversation
(--replay) until a live provider lands. Before, TestOmnibotRunsConfirmedWritesAsItself and
TestOmnibotHoldsOnlyItsPersonsGrants had no client to drive and the omnibot channel could not be
stamped; they pass now, with the token revoked at the end and a viewer’s write refused by the route.
omniglass platform health reads the platform from the CLI (#2055)
Section titled “omniglass platform health reads the platform from the CLI (#2055)”Whether Omniglass was keeping up could be read on the console’s Platform health page, or measured by
lab measure from the lab’s own host; nothing read it from a terminal pointed at a server you did
not start. omniglass platform health reads the platform view through the API with a token and
reduces it to one table, or --json: the verdicts, the open alarms, each hop’s loss and the end to
end, the outposts with loss, and every failure above zero. Its exit status is the verdict, nonzero when
anything it reads is not healthy or a part is not visible to the token, which prints as not visible
rather than as zero. --window, --every with --append, and --page-clients take the lab
sampler’s measurements against any server, sharing its sampling clock and its system page load,
which moved out of the lab harness to be reused. TestPlatformHealthExitsNonzeroOnAnOpenAlarm and
TestPlatformHealthSaysWhatTheCallerCannotSee run the command against a real server and Postgres.
The principal becomes the user, in the console and docs (#2076)
Section titled “The principal becomes the user, in the console and docs (#2076)”The IAM subject is a user, of kind person or machine (ADR-2036), and the console and docs now say so.
Admin’s Groups tab becomes User groups at /user-groups, since IAM gave up the bare word group to
the fleet’s entity groups; kind badges and the Users filter read person and machine (kind:machine)
through one kindLabel, while the wire still spells human and service until #2075 renames the
schema, API, CLI and permissions. The docs follow: principal becomes user, service account becomes
machine user, principal group becomes user group, and human as a kind becomes person; ADR titles and
anchors stay as written, and the glossary’s group rows lose the IAM cross-reference. The vocabulary
denylist retires principal, principal group, service account and human-as-kind, allowing the
identifiers #2075 has yet to rename (--principal-id, omniglass principal-group,
principal_group:*), so a stray one in prose fails the lint.
Role and tool overrides narrow the agent policy (#2088)
Section titled “Role and tool overrides narrow the agent policy (#2088)”The agent policy was one value per class for the whole install, so an admin could not keep
operators’ agents from writing without stopping every agent, or refuse one dangerous operation
without refusing its class. The agent settings now take roles (a class per role name) and
tools (a policy per operation), each only narrowing: the strictest of the class, the person’s
granted roles and the tool wins. omniglass auth agent-policy names the layer behind each value and
lists every overridden tool, and a refusal says whether a tool, a role or the class refused it.
Before, TestAgentRoleOverrideNarrowsOnlyItsHolders and TestAgentToolOverrideRefusesOneTool
failed (the settings were unknown keys); they pass now. The console edits the two maps as JSON.
Role retires from the system sense; system slot everywhere (#2061)
Section titled “Role retires from the system sense; system slot everywhere (#2061)”ADR-2032 gave role back to IAM alone, and this sweep carries the other sense, what a system needs filled,
to system slot on every surface. One migration renames the schema (system_slot, system_slot_assignment,
system_slot_type, system_slot_product, slot_choice, and every role_id column, constraint and index
with them); the IAM role table is untouched. The routes are /standards/{id}/slots/{slot} and
/systems/{name}/slots/{slot} (assignments and :swapPositions included), so the CLI groups are
omniglass standard slot and omniglass system slot, the expression accessor is $slot, and the template,
health and simulation bodies carry slots. The storage methods are ListSystemSlots, SetSystemSlot,
DeleteSystemSlot and AssignSlot beside RBAC’s ListRoles and UpsertRole. The console’s Slots panel,
its “Ad hoc slots” group and the “no slot” member row follow, while the Admin Roles page, the operator and
viewer roles, --role grants and the agent role policy keep the word. The declare-a-first-role
walkthrough is declare-a-first-slot, the role-staffing tape is slot-staffing, and the docs denylist
bans system role, $role, the system and standard role routes, role choices and assignments, and effective
roles, with IAM role left alone. A test that replays the one-time stranded-assignment backfill reads it
against today’s table names, since that migration ran before the rename.
The audit trail shows how an action arrived (#1178)
Section titled “The audit trail shows how an action arrived (#1178)”The trail recorded an MCP call’s channel and client and an agent token’s agent, but only the raw
API returned them, and nothing could filter on the first two. GET /audit-log now takes channel
(direct for a plain API call, mcp, omnibot; anything else is a 422) and client (a
case-insensitive contains), and the generated CLI and MCP tool carry both. The console’s Admin >
Audit page gains a Channel column (an mcp pill over the declared client, nothing on a direct row),
an agent <name> tag beside the person in Who, channel, client and agent facets, and drawer
entries whose info tip teaches what a channel proves and what it does not. Before,
TestAuditLogFiltersByChannelAndClient failed (the parameters were unknown and every row returned)
and the seven console tests found no channel; they pass now.
The component page shot masks its Why card whole (#2117)
Section titled “The component page shot masks its Why card whole (#2117)”The fleet-component docs shot failed the freshness gate on branch after branch with the same
492 changed pixels. Its alarm row was masked whole, but the Acknowledge and Snooze buttons cast a
shadow a pixel or two below the row’s own box, outside the mask, and those buttons follow the
alarm’s age on the same line, so the live sliver moved sideways whenever the age changed width
(”54s” against “1m”). The shot now masks the leaf-alarms section, a box the layout pins whose
padding holds the shadows. The old drift lies inside the new box, and a recapture at a fresh age
holds pixel-exact.
The node becomes the outpost, everywhere (#2059)
Section titled “The node becomes the outpost, everywhere (#2059)”The edge process that collects and controls is an outpost (ADR-2031), and now every surface says so,
with no alias left behind. One migration renames the schema (outpost, outpost_log, every
node_id column, constraint and index, the node owner and principal kinds, role permission nouns,
and the seeded omniglass-outpost and outpost-silent rows, keeping their ids); endpoint.node_name,
which always held the outpost’s principal id, becomes endpoint.outpost_id.
internal/storage/outpost_rename_migration_test.go plants a node and everything it owns below the
migration, migrates forward over it, and rolls it back. The Go, the API (/outposts, the
outpost:* permissions), the generated CLI (omniglass outpost run, OMNIGLASS_OUTPOST_*), the
console, the lab (--no-outpost) and the docs follow; the architecture page moves to
/architecture/outposts/ with a redirect. Home’s tile that counts them, which read Collectors (a
word ADR-2031 rejected), reads Outposts. The vocabulary denylist retires node as the collector
while allowing its tree, DOM and Node.js senses, so a stray one fails the lint.
The principal becomes the user, a person or a machine (#2075)
Section titled “The principal becomes the user, a person or a machine (#2075)”The IAM subject is a user on every surface (ADR-2036). One migration renames principal to users
(plural, since user is reserved in Postgres), human to person, service to machine, the
group, grant and member tables to user_group, user_grant and user_group_member, and every
column, constraint, index and trigger that spelled principal; the kind check narrows to person
and machine, and an outpost’s user is a machine user its outpost row points at.
internal/storage/user_rename_migration_test.go plants rows below the migration,
migrates forward over them, and rolls back. The API follows (/users, /user-groups,
/user-groups/{group}/members/{user}, the user:* and user_group:* permissions, and an
/auth/me that answers user, person and machine), and the generated OpenAPI, CLI
(omniglass user, omniglass user-group, --user-id, --user-group), MCP catalog and console
client regenerate over the new words. Notification targets name user and user_group, and the
audit trail records user and user_group from here on. The vocabulary denylist retires
principal, principal group, service account and human as a kind, so a stray one fails the lint.
The registry becomes the catalog, and three labels name what they list (#2070)
Section titled “The registry becomes the catalog, and three labels name what they list (#2070)”The database rows the fleet is typed by are the catalog (ADR-2035), and now every surface says so.
One migration renames registry_shadow to catalog_shadow (its registry column and constraints
with it); internal/storage/catalog_shadow_rename_migration_test.go plants rows below the migration,
migrates forward over them, and rolls back. The Go follows (typecatalog.go, catalogs.go,
catalog_rename.go, collection.Catalog, the bus’s catalog cache), the API’s descriptions say “the
built-in transports” where they said “the code registry”, and the generated OpenAPI, CLI help, MCP
catalog and console client regenerate over the new words. In the console, Rules becomes Event
rules and moves from /rules to /event-rules, Severity becomes Severity levels, and
Targets becomes Notification targets. The vocabulary denylist retires registry in the
catalog sense, allowing the compiled-in lookups that keep it (the transport registry, the expression
diagnostics, the simulator’s sessions, the env and settings namespace registries, the console’s
blade registry, container and npm registries), so a stray one fails the lint.
The server runs omnibot, streaming AG-UI (#2121)
Section titled “The server runs omnibot, streaming AG-UI (#2121)”POST /assistant/conversations/{name}:run runs omnibot on the server over one of the person’s stored
conversations and streams the run as AG-UI events (ADR-2121). The run mints its own omnibot token for
at most 30 minutes, calls its tools in process through the API router (so grants, the agent policy and the audit
read it as they read a remote agent), and revokes it when the stream ends. A write the policy asks
about ends the run on an interrupt kept with the transcript; the next run’s resume approves or
declines it, and the run claims the conversation first, so two resumes of one call never both
run it. Agents and impersonation sessions are refused, a server with no model answers 503, and
OMNIGLASS_OMNIBOT_REPLAY plays a recording until a live provider lands. The lab’s server plays an embedded one, written by its seed. A web conformance test holds
the narrated events to @ag-ui/core’s schemas. The console panel that drives it is #1167.
A rule fires, an alarm raises, and incident is the ITSM’s (#2082)
Section titled “A rule fires, an alarm raises, and incident is the ITSM’s (#2082)”The trouble chain follows ADR-2038. A rule fires and clears on a component, and each stretch
between the two is a firing: one migration renames event_rule_condition to event_rule_firing
with its constraints and indexes, rewrites the seeded condition-started and condition-ended event
types to rule-fired and rule-cleared along with every rule and event that names them, and renames
the alarm’s one-open-row index to alarm_open_identity_key, since it is keyed on the alarm’s identity
(component and dedup key) rather than a condition. internal/storage/event_rule_firing_migration_test.go
plants rows of every shape under the old names, migrates forward over them, and rolls back. A snooze
belongs to the alarm’s identity, the rule’s blade lists its Firing components, and a system’s
Activity tab calls its unhealthy stretches its health history: an incident is the ITSM’s record,
whose Omniglass handle is a ticket. The vocabulary table gains the firing term and retires the rule’s
sense of condition, incident, and alert for an alarm, so a stray one fails the lint.
The Admin section: overview, access and values
Section titled “The Admin section: overview, access and values”The Admin section’s first half lands under /admin/: an overview that says what makes someone an
admin and where each surface lives, then users, roles and grants, the audit trail, secrets,
variables and files, each badged. Secret types folded into the secrets page, since a type only
matters as the shape of a secret. A new Platform settings page holds what the old overview
carried (how long data is kept, the report window) and names where the other namespaces are
taught; its retention examples use the generated omniglass setting update, now that it takes a
body. Custom roles and the retention of events, alarms and the audit log are fenced as design. The
old URLs redirect. The catalog and automation pages stay under the Admin guide until #2190 and
#2191.
The Admin section: the catalog
Section titled “The Admin section: the catalog”The catalog pages join the Admin section under /admin/: location types, tags, products and
vendors, properties, metrics, events, commands and standards, each badged. Vendors folded into the
products page, since a vendor only matters as the organization behind a product. The overview now
introduces the catalog as the vocabulary the fleet is described in. The events page stopped saying
nothing writes a derived occurrence (event rules have since #949) and fences the log derivation and
the clock (#410, #419). The old URLs redirect. Drivers and the automation pages stay under the
Admin guide until #2200 and #2191.
Compatibility rule replaces the pre-deployment stance (#2186)
Section titled “Compatibility rule replaces the pre-deployment stance (#2186)”CLAUDE.md’s “Pre-deployment stance” section told agents that breaking changes were free
because Omniglass had no external deployment or installed base. The public demo instance
(#2145) and the 0.1.0 release end that period. The section is replaced by a “Compatibility”
rule that tells agents to signal every breaking change in the PR footer and the relevant
docs page, prefer a smooth upgrade path over a hard cut, and keep migrations forward-only.
A docslint check (ScanClaudeMd) now fails if the retired heading reappears in CLAUDE.md,
so the stance cannot be re-introduced without a test failure.
The docs site is laid out by audience
Section titled “The docs site is laid out by audience”The sidebar now has one section per reader: Start here, Operator, Admin, Developer, Deployment,
Architecture and Reference, each with a landing page that says who it is for and what it holds.
Each section’s sidebar is generated from its directory, so a page joins a section by being written
there and orders itself with sidebar.order. The old pages sit in a collapsed Being rebuilt
group and stay the reference until the PR that rebuilds their section deletes them (ADR-2087.2);
the unbadged architecture pages set sidebar.hidden, so the Architecture section lists only the
overview, the status grid, the roadmap, the decision log and the build log.
The docs site runs on Astro 7 and Starlight 0.43 (#2154)
Section titled “The docs site runs on Astro 7 and Starlight 0.43 (#2154)”The docs platform moves to Astro 7, Starlight 0.43, MDX 8, starlight-openapi 0.27 and astro-d2 0.14,
the first step of the docs rebuild (#2153), with no content change. Astro 7 defaults to its Sätteri
Markdown pipeline, so the config names the unified processor explicitly and the site’s remark
plugins (fragments, screenshots, walkthroughs, the design fence) run there unchanged; MDX inherits
it. Two defaults are pinned back to keep the output as it was: compressHTML: true for whitespace,
and scopedStyleStrategy: 'where' so component styles keep the specificity custom.css was written
against. Every post-build check passes and the pages render pixel-identical, apart from code-block
token colors on the generated API reference.
Enforce package import boundaries
Section titled “Enforce package import boundaries”Two guard tests in internal/build hold the Storage Gateway as the only production Postgres
path and keep the outpost binary free of the server DB and API layers.
TestOnlyStorageAndToolingImportPgx asserts that only internal/storage and three named
schema tools (internal/erd, internal/compressbench, cmd/erdgen) import
github.com/jackc/pgx or database/sql in non-test files. Any other direct import would
bypass the scope injector and writer-class invariants the gateway holds on every query.
TestOutpostDoesNotImportStorageOrAPI asserts that non-test files in internal/outpost import
neither internal/storage nor internal/api. The outpost is the edge binary; linking the
server DB or API layer into it would pull pgx and the full server stack into that build.
Both rules carry a stale-entry check: an allowlist entry that no longer holds a qualifying import fails the test, so the list cannot silently outlive the code it covers.
To satisfy the outpost rule, MetricTime moved from internal/storage/samples.go to the new
internal/metrictime package. Neither the storage package nor the outpost package owns it.
internal/outpost/spool.go now imports internal/metrictime directly instead of
internal/storage.
Hand omnibot the console: the tray, alt-click and one-click triage (#2122)
Section titled “Hand omnibot the console: the tray, alt-click and one-click triage (#2122)”A person now hands omnibot what they are looking at (ADR-2122). Alt-click on a row of any list, tree,
blade or alarm adds its subject to a tray above omnibot’s composer, shift-alt-click a range, and ⌘J
hands over the page as its route and arguments. The next prompt carries the tray as AG-UI context,
references only (never a uuid or what the screen showed), which the server frames as quoted data
ahead of the message. An alarm in the tray triages in one click, from its chip or the command
palette: the run names the embedded triage-alarm skill in forwardedProps.skill and the server
renders its prompt. The stamp rides the shared primitives rather than the ViewResult renderer, which
is still Design (#523).
The old pages drop their badges and leave as their section lands (#2087)
Section titled “The old pages drop their badges and leave as their section lands (#2087)”The docs site is rebuilt by audience under #2153 (ADR-2087.2), so the old pages lose their status
badges now rather than carry ones nobody will maintain. The status grid reads the badge of any page,
wherever it lives, and starts empty: it fills as the rebuilt sections land. The badge-fence lint drops
its architecture/ filter for the same reason, and a test pins that a badged page in any section is
checked. The old pages stay in place, kept true when a slice falsifies them, until the PR for their
section deletes them; the decision log, the build log, the generated reference and the screenshot and
demo tooling carry over into the new layout.
Omnibot reads the page you are on
Section titled “Omnibot reads the page you are on”Every omnibot prompt now carries the page the person is on, shown as a Looking at chip above the composer and read at send time, so it follows navigation; dismissing the chip leaves the page out of one prompt. A detail page is named by its entity, never its uuid. The alt-click gathering, its tray and the hand-over key are gone, along with the subject stamps on the shared primitives (ADR-2162).
omnibot runs on a live model
Section titled “omnibot runs on a live model”omnibot answers on a real model. An OpenAI-compatible adapter (chat completions with tool calls)
sits behind the loop’s provider seam, OpenRouter by default, and the assistant settings name it:
provider, model, base_url, and key_secret, a $platform api-key secret by name. The server
picks the model at the start of each run (the configured provider, else the recording, else a 503),
so a settings change is the next run’s with no restart; it unseals the key in process and sends it
only as the model call’s bearer, and a test holds every event, read and log line of a run, a refused
key that the provider echoes included, free of it. A provider failure ends the run on an error that
names it. omniglass omnibot now runs its conversation on the server and renders the stream on the
terminal, confirming an ask inline and answering it with a resume run, so the CLI never needs the
key either; --replay keeps the local loop for tests and tapes. omniglass lab run --omnibot-key-env OPENROUTER_API_KEY runs a lab live with one flag.
The Operator section is written (#2157)
Section titled “The Operator section is written (#2157)”The operator guide becomes the Operator section, written for the people who watch and run the fleet.
A fresh overview names the two ways in (the console and the CLI), every page, how to get around and
what scope means for what you see. The entity page was doing three jobs, so alarms and health, and
commands, move onto pages of their own. Every capability page carries one status badge at its true
floor, and what is not built yet (dashboards, moving a component from its edit face, alarm flows and
storm rollup, the schedule hop, the closed loop’s open refinements) sits in a design fence naming its
issue instead of an inline hedge. The old /guides/operator/ addresses redirect to the new pages.
Platform alarms reach the admin role by default (#1987)
Section titled “Platform alarms reach the admin role by default (#1987)”A platform alarm used to open on the console and tell nobody until an operator wrote an action rule for
it. A notification target can now name a role: everyone holding it, directly or through a user group’s
grant, read from the grant table at each transition and filtered by each person’s own scope, told once
however many ways they hold it. Binding one takes the role and user directory reads. The boot seed ships
two inbox-only role targets, platform-admins and platform-owners (owner does not inherit admin, and the
bootstrap user is an owner), and platform-alarms-to-admins (when: platform, a new action-site binding
read before any rule, so a fleet transition skips the rule without reading its facts). All three are
official: the seed puts back what it ships and the API refuses an edit of it or a delete, while each row’s
enabled switch, a target’s label and targets an operator adds stay the operator’s across a restart.
The shipped targets live in og, which makes notification_target a namespaced catalog: an operator’s
target of a shipped name shadows it, and the shipped rule keeps the shipped one. The
console hides a shipped target’s delete, shows its channels read-only, and offers the shipped rule’s
Disable with its Edit greyed. Integration tests grant and revoke admin around two platform alarms, reach
a person holding the role through a group and through both roles once, check a scope-limited holder hears
nothing outside their scope, boot the seed twice around a disable, and tell the bootstrap owner about a
server alarm over HTTP. Email on the shipped targets and the health page’s relay line are #2016; the
console create form’s role picker is #2017 (ADR-1987).
PRs merge through a merge queue (#2181)
Section titled “PRs merge through a merge queue (#2181)”Every workflow that reports a required check on main (test, e2e, gen-drift, smoke-lab and
lint) now also runs on merge_group, so GitHub’s merge queue can test each PR on top of the
current main and squash-merge it when the checks pass there. The pr-title and demo-tag lints
pass in the queue without reading a PR, having checked it before it was queued, and image.yml runs
only smoke-lab there and publishes nothing. A guard test in internal/build fails when a required
check’s workflow lacks the trigger. Turning the queue on, and retiring the strict up-to-date rule
and the always-on admin bypass it replaces, are ruleset settings that follow the merge (epic #2180).
Release notes are grouped by type, and a release marks what it shipped (#2142)
Section titled “Release notes are grouped by type, and a release marks what it shipped (#2142)”A release’s notes now come from cmd/releasenotes, not GitHub’s generated notes: every PR title
since the previous final release, grouped into Breaking changes, Features, Fixes, Performance and
Other changes by its conventional-commit type, with a compare link at the end. A dry_run
dispatch shows them in the run’s summary. A final release then comments “Released in” on each PR
it ships and each issue that PR closed, once per release; candidates comment nothing, and a
release of more than 100 PRs, like the first, skips the comments. These were the two parts of
semantic-release worth keeping once the version moved to the release branch (#2139). Nothing is
committed back.
Releases come from a release branch (#2139)
Section titled “Releases come from a release branch (#2139)”The release workflow runs only on a release/<major>.<minor> branch (ADR-2139). A dispatch tags the
branch tip as the next candidate, v0.1.0-rc.1, and publishes it as a prerelease with its image and
binaries; a fix reaches the branch by cherry-pick from main and the next dispatch is rc.2; a
dispatch with final tags the newest candidate’s commit v0.1.0 once it has passed the soak gate.
cmd/releaseversion works the tag out from the branch name and the tags already cut, so
semantic-release and .releaserc.json leave the release path, and the notes are GitHub’s generated
notes since the previous final release. Pushes to a release branch run the same CI as main. The
tag is pushed with a release GitHub App’s token when one is configured, the one bypass the v*
creation ruleset will allow (#1940).
Start here is written (#2156)
Section titled “Start here is written (#2156)”The Start here section replaces its placeholder with three pages read in order: what Omniglass is (the problem and what Omniglass does about it), the model in one pass (the fleet, collecting, judging, acting and seeing it, with the unbuilt parts fenced to their issues), and your first ten minutes (the lab’s first session, moved out of the lab guide). Why Omniglass is retired into the first page, the architecture overview’s journey is retired into the second and the overview becomes the section’s landing, and the lab’s own page keeps what a lab runs, its flags, the scale lab and troubleshooting until its section lands.
The inbox badge no longer fails the screenshot gate (#2196)
Section titled “The inbox badge no longer fails the screenshot gate (#2196)”freshness went red on main and stayed red, on pushes that touched no UI. One shot drifted,
platform-health-hop, and only in a 16 pixel square at the top right: the inbox bell’s unread
badge, a “1” in the fresh capture and nothing in the committed baseline. The lab raises a
notification partway through a capture, so the count belongs to the run, not the page. A shot
taken well after it (templates) always has the badge, and one taken close to that moment
flips between runs.
The bell is now a standing mask, painted on every shot that renders the top bar. The badge is
pinned past the bell’s own corner, so neither a mask on the bell (its edge stays live) nor a mask
on the badge (nothing is painted when there is no badge) holds. The mask primitive gains a padded
box, { selector, pad: N }, the element’s bounding box grown on every side, and the bell takes
8px. The clean shots the docs embed still show the badge live; the tolerance stays zero.
The lab’s omnibot triages an alarm
Section titled “The lab’s omnibot triages an alarm”A recording for the server’s omnibot can now hold conversations beside its default turns, each chosen when the run’s message contains its match, and a run counts its turns from that message, so a second prompt in one conversation starts its own script rather than running off the end of the first. The lab’s recording gains a triage conversation, matched by the triage-alarm skill’s heading: it reads the meeting 405 video bar, its alarms and its reachability, and ends on an assessment with no write. Every other prompt still plays the tag script. This is what lets a one-click troubleshoot button (#2164) show omnibot answering in the lab.
Troubleshoot an alarm with omnibot from its row
Section titled “Troubleshoot an alarm with omnibot from its row”Each active alarm row, in a component’s alarms panel and in the Why strip of a component’s or a system’s page, gains a bot button for a person who may ask omnibot. It opens the panel and runs the triage-alarm skill on that alarm, handed by reference (its component and rule, or its component and when it was raised for a hand-raised alarm), never by what the row shows. A cleared alarm offers no button. The lab’s recorded model answers the run (#2163), so the walkthrough plays the same way every time.
Agent PRs run the required checks before they push
Section titled “Agent PRs run the required checks before they push”A new make preflight runs what a PR’s required checks run (make gen with a drift check, make
test, the docs build and the migration check) and both agents run it before every push. agent-fix
now merges main into the PR’s branch before the agent starts and hands it any conflicts first, so
a stale branch no longer stays stale. An agent’s PR no longer carries main’s copies of the agents’
own config: preflight fails a run that commits them, and agent-fix puts main’s copies back if any
slip through.
Agent runs keep what the agent did
Section titled “Agent runs keep what the agent did”Each agent-build and agent-fix run keeps an artifact for 14 days with the agent’s transcript and a list of every shell command it ran with its exit code, then whether make preflight and make test ran and how each last ended. The repo’s artifacts are public, so the kept transcript drops every tool’s output and masks the run’s own tokens by value and other secrets by shape. The daily lessons sweep (#2235) reads it to tell an agent that skipped the gate from a flaky check.
Bare endpoint params: timeout and count validated at write (#980)
Section titled “Bare endpoint params: timeout and count validated at write (#980)”checkBareParams now validates two additional fields that were documented but not checked at write
time: timeout must be a positive Go duration string (e.g. "30s", "1m30s") when present on any
dialed transport or on udp, and count must be a non-negative integer when present on an icmp endpoint.
Both are refused with a 422 on create (a 400 on an edit) naming the field. Before, an invalid
value like {"target":"10.0.0.1","timeout":"five minutes"} stored 201 and the outpost then
failed to parse the duration at probe time, skipping the task forever. The outpost’s own parse
(probe.go: time.ParseDuration for timeout, int unmarshal for count) is the reference for
what parses; the write check is stricter on timeout and also refuses zero or negative
durations, which would otherwise store an endpoint with no usable timeout.
Compact review output and incremental re-review (#2224)
Section titled “Compact review output and incremental re-review (#2224)”agent-review’s output was too long to scan, and every push re-reviewed the whole PR. Both are fixed.
The review body now opens with one verdict line (✅ Ship · nothing found,
❌ Changes requested · N blocking · M advisory, or ⚠️ N advisory), then a strip with each
lens’s mark, then one line per finding that has no diff line. The lens notes, failures and fixes
sit in a collapsed <details> block. Inline comments open with the finding’s title in bold, from
a new required title in the lens schema, and keep their reasoning collapsed.
A re-review starts from what changed. agent-review.sh incremental-base finds the head the
reviewer last reviewed, and delta diffs the PR’s own commits since, with changes merged in from
main laid onto that head first so they drop out. Fred’s review of the first cut: that diff should
be where a lens starts, not a fence. So the lenses read any code, pull up the whole PR, and may run
go build, go vet and go test (setup-go in the lens job), and raise a finding wherever the new
changes cause or expose a problem. A force push, an unreadable earlier review, or
one that left a blocking finding in its body falls back to a full review. The diff picks the
lenses (with no code touched, lenses runs only neighbor, plus recheck when findings are
open) and the turn limit (turns, 40 to 120 by size).
Open findings carry forward, and this is where the first cut had a hole: it dropped a new finding
that matched an open thread, so a re-run that found an unfixed blocker again posted a clean review
and unblocked the PR. Now every unresolved reviewer thread counts in the verdict, read back by
agent-review.sh threads from a marker each inline comment carries, and a matching new finding is
only not posted twice. Each re-review with open threads also runs a recheck lens that judges every
one, outdated ones included, as fixed or open. A thread stops counting only when that lens says
fixed and no other lens raised it again, or a person resolves it; a thread it gave no word on still
counts. agent-review.sh followups turns its word into a reply on each thread, and the workflow
resolves the fixed ones as the reviewer.
Code here means Go, web, shell, SQL and the workflows, wider than the ticket’s “Go or web”: the invariants lens found this PR’s one real problem in a bash script.
agent-fix answers each point on one line (✅ <point> · Fixed in <sha> or
↩️ <point> · Not changed) with the reasons collapsed, from a points file the agent writes, and
replies ✅ Fixed in <sha> on each thread it fixed. agent-status.sh counts a point as fixed only
when its commit is one the run pushed. agent-trust.sh verdict reads the blocking count in both
the old and the new body.
IAM vocabulary guard in tsx source and operator strings (#2105)
Section titled “IAM vocabulary guard in tsx source and operator strings (#2105)”The vocabulary denylist already blocked retired IAM words in docs prose and in the seed
files the console upserts at boot. This slice extends the guard to operator-visible
.tsx source and to the identity admin pages the Go operator-strings lint was not yet
scanning.
A new describe("IAM vocabulary (ADR-2036)") block in
web/src/identity-vocabulary-guard.test.ts applies the four retired terms (principal,
principal group, service account, human as a kind) to every non-test tsx and ts
source file in one Vitest run. The patterns and the English-adjective allow arm mirror
internal/vocab/terms.yaml: the adjective (“the principal reason”) keeps the word; the
noun in a label string does not. The yaml’s backtick code-span allow arms are left out,
because a backtick in tsx starts a template literal, not a code span, so a retired word
inside a template literal fails this test even where the Go lint would pass it. A pinned test proves the scanner fires before
the corpus sweep runs.
internal/docslint/docslint.go adds the identity admin surfaces (users, user groups,
roles, profile, and the IdentitiesPanel component) to operatorStrings. These pages were
absent from the list while the rename (#2075) was in flight; now that no identifier says
principal the scan carries no carve-out.
Retire leftover template senses in calc, notifications and nav
Section titled “Retire leftover template senses in calc, notifications and nav”Four places still used “template” loosely after ADR-2033 established the
canonical split: “template” means only a clonable catalog entry; the Go
text/template string a notification renders from is a “rule”; the calc
editor’s list-function shortcuts are “starters”.
The renames: CalcTemplate/calcTemplates/templates prop to
CalcStarter/calcStarters/starters in the calc editor; Go identifiers
ParseNotificationTemplate, TemplateRefusal and notificationTemplateDoc
to ParseNotificationRule, RuleRefusal and notificationRuleDoc;
install.md’s “alarm template” phrase to “event rule”; and
architecture/expressions.mdx’s “start-from templates” to “starters”.
The nav change removes the two hint fields from the Values and Admin
group items (pathless, so their hints could never reach navByPath or
SectionStub), makes NavItem.hint optional, and adds a nav test
asserting the contract: pathless items carry no hint; every item with a
path carries one.
settings read an env layer
Section titled “settings read an env layer”A single setting now reads from the server’s environment. OMNIGLASS_SETTING__<NAMESPACE>__<KEY>
feeds one key through a new env level between the settings file and the console binding: the
console still wins, so an operator’s edit is never shadowed by a container’s variable. Values are
coerced to the key’s Go kind from the same reflected Settings struct the file layer validates
against, so a []string takes a comma-separated list, a bool takes true/false, and a value
that does not coerce fails the boot naming the kind without quoting the value (it may be a bare
secret). The profile domain (ui, keybindings) is refused at boot, naming the variable: a
theme has no process-wide meaning. cmd/configgen renders one row per settable key in the
generated env-var reference so the table stays complete by construction, and the registry’s drift
gate still fails when the facts move.
omniglass lab run forwards every OMNIGLASS_SETTING__ variable in its shell to the lab’s server,
judging them first so a typo stops the run before a container starts, and the console’s Admin
settings page badges an env-fed key From environment. With --omnibot-key-env, exporting the
assistant’s base URL and model runs a lab’s omnibot on Bedrock with no setting update after boot.
Env-backed platform secrets, the ticket’s other half, follow.
The Go code says health and reachability, not verdict (#2243)
Section titled “The Go code says health and reachability, not verdict (#2243)”ADR-2086 (#2086) retired verdict as the word for health’s result. The Go identifiers follow (the
first half of #2102): health.Verdict is now health.Value, and the helpers it names
(SystemVerdict, SystemVerdictWith, ComponentVerdict, ImpactVerdict, ParseVerdict)
follow. The storage reads that returned a verdict (SystemVerdicts, ComponentVerdict,
locationVerdict, recordedVerdict) take health; the reach helpers an endpoint publishes
(EndpointVerdict, ladderVerdict, probeVerdict, AuthVerdict) take reachability, and
internal/collection/verdict.go is internal/collection/endpoint_reachability.go to match.
SettlementVerdict is now Settlement. The API is unchanged: the body types in
internal/api (SystemVerdictBody, ReachVerdictBody, their fields and JSON tags) stay as
they are, because they generate api/openapi.yaml, and make gen holds the line. The soak,
perf and footprint gates, a subscription’s test and a target’s test send keep verdict: those
are judgements about a run, not about health. The API half of #2102 follows in #2244.
The Architecture section starts: tags, groups, events, audit and files (#2161)
Section titled “The Architecture section starts: tags, groups, events, audit and files (#2161)”Five Architecture pages are rewritten fresh and badged Partial, so the status grid’s Live table has
its first rows: Tags, Groups, Events, Audit and Files and blobs. Each says how the subsystem is
built, links the admin page that operates it, and fences every unbuilt part with the issue that
tracks it. Their old versions are replaced in place, so inbound links keep their URLs, and their
entries leave the Being rebuilt sidebar group.
The rest of the old Architecture pages (core entities, collection, properties, commands, variables, cascade, health, alarms and actions, UI, API, messaging, outposts, simulation, storage, data model, workers, scaling, settings, identity and access, the glossary, and the design sketches) are still to rebuild under #2161.
The Developer section is written
Section titled “The Developer section is written”The Developer section now holds the API, the CLI, agents and MCP, the lab, PR previews and a
contributing overview, each badged at its floor. The CLI page drops the per-resource command
catalogs the generated CLI reference already carries. The old CLI, agent, lab and preview guides
left guides/ and their URLs redirect. The contributing pages stay where they are until their
links from the repo’s skills move with them.
Every location field picks from the location tree (#2301)
Section titled “Every location field picks from the location tree (#2301)”TreeSelect already drew the location tree, but four location fields had drifted to a flat native
<select> (the outpost blade and create form, and both simulation add forms), the location edit
face’s parent was a flat list filtered by the type’s allowed parents, and the forms that did use the
tree each built its location items by hand, so they disagreed on sibling order.
LocationSelect is now the one location field. It reads the locations and their types itself and
builds the options through locationTreeNodes, so every field nests by parent and orders siblings by
type rank then label. Each caller keeps the address it already committed (uuid, name, or dotted
path), so no request changes. TreeSelect gained disabled options: the parent picker shows a location
its type may not sit under, muted and unpickable, instead of dropping it and orphaning its children
to the top of the list. The outpost blade drops bindSelectValue, since the tree selects from value
and options together, and the outpost create form moves onto FieldRow, which labels the tree’s
trigger.
A static guard fails on any location field built another way, and it found two the issue’s sweep
missed: the Secrets and Variables owner pickers when the owner kind is a location. Type-to-filter
inside the tree is #2302 and lands in TreeSelect, so every tree field gains it at once.
Omnibot keeps a model’s reasoning apart from its answer (#2259)
Section titled “Omnibot keeps a model’s reasoning apart from its answer (#2259)”Bedrock’s gpt-oss inlines its chain of thought in content as <reasoning>...</reasoning>, which
reached the panel as part of the answer and went back to the model on every later turn. The
OpenAI adapter now splits leading <reasoning> blocks off the content, and reads the
reasoning_content and reasoning fields other servers use, into Turn.Reasoning. The loop
keeps it on the stored message and reports it as an EventReasoning; the run narrates it as
REASONING_MESSAGE_START/CONTENT/END; the request builder never sends it back. The panel shows
it under a collapsed “Thinking” disclosure, apart from the answer.
Omnibot splits reasoning wherever it appears in a reply (#2303)
Section titled “Omnibot splits reasoning wherever it appears in a reply (#2303)”After a tool call, Bedrock’s gpt-oss could put its <reasoning> block after the answer text, so
the reasoning showed inline. The OpenAI adapter now takes every <reasoning> block out of the
content, wherever it sits, and keeps the rest as the answer. The raw post-tool Bedrock reply was
not captured here (no Bedrock access in this run), and TestOpenAILive was not run against it, so
that check is still open.
platform secrets from the environment
Section titled “platform secrets from the environment”A platform secret can now be declared by the server’s environment. OMNIGLASS_SECRET__<NAME> holds
one JSON object, {"type": "api-key", "fields": {"key": "..."}}, checked against its type at boot
and held in memory only: nothing is sealed or written. omnibot’s key, the mail relay’s login and an
endpoint’s secret input take it as they take a stored platform secret, behind the same
secret:bind; the directory lists it with source: env and no fields, the console reads it as
From environment, and an update, delete or reveal is a 409 naming the variable. A stored secret of
the same name fails the boot.
With the env settings layer, pointing omnibot at Bedrock’s OpenAI-compatible endpoint is five
variables. omniglass lab run forwards the secret variables beside the settings ones, the binary
loads .env and then .env.local under the shell, so those five in .env.local are the whole setup,
and --omnibot-key-env is now an alias for an env secret rather than a key the seed seals.
scale labs run omnibot
Section titled “scale labs run omnibot”omniglass lab run --scenario corporate --systems N now runs omnibot, as a seeded lab does. With
--omnibot-key-env VAR the scale lab’s server gets the key as the env-backed platform secret
lab-omnibot-key and the assistant’s provider and key settings, the same as a seeded lab; both
refusals (the plan’s and the CLI’s) are gone. Without a key, a scale lab now plays a recording too.
The lab’s recordings are a small library, embedded and picked by name with --omnibot-replay:
default (the dev fleet’s meeting 405, unchanged) and corporate-outage, which triages the corporate
fleet’s hq-mr86-1 room after its main display is unplugged. A recording scripts omnibot’s words while
its tool calls run for real against the lab, so a demo clip shows real data without live inference.
The marketing captures (#2299) use it.
The Admin automation pages (#2191)
Section titled “The Admin automation pages (#2191)”Rules and severity, calc rules and notifications moved from the Admin guide under Being rebuilt
into the Admin section, at /admin/rules/, /admin/calc-rules/ and /admin/notifications/. Each
carries a status badge at its floor (notifications Built, the two rule pages Partial), and the
two parts the console does not edit yet sit in design fences: a trend rule’s sample window (#2315)
and a calc rule’s input window (#1143). The old URLs redirect, the sidebar entries are gone, and
every link to them was repointed.
The API and CLI say health and reachability, not verdict (#2244)
Section titled “The API and CLI say health and reachability, not verdict (#2244)”ADR-2086 (#2086) retired verdict as the word for health’s result; #2243 renamed the Go code, and
this is the API half of #2102. A client now reads health: degraded, never verdict. The fleet
view’s locations, systems and dots, the system and location health reports and their
transitions, a component’s alarm list, the platform view’s system, servers and outposts, and the
bulk read all carry health; a system member’s component_verdict is component_health. The
bulk read GET /systems:health is list-system-health, its body SystemHealthListOutputBody
with a systems list of SystemHealthEntryBody entries. An endpoint’s up/down result in
GET /components/{name}/reachability is reachability, its shape ReachReadingBody. Route
paths do not change, and there are no aliases.
omniglass platform health follows: its --json reading names each part’s health, and the
table’s server column is HEALTH. The console’s call sites read the renamed fields; its own
wording and the Verdict type in web/src/lib are #2103. The soak, perf and footprint gates, a
subscription’s test and a target’s test send keep verdict: those judge a run, not health.
The console says health and reachability, not verdict (#2103)
Section titled “The console says health and reachability, not verdict (#2103)”Following the API rename (ADR-2086), the console no longer says verdict. The outline filter key
verdict is health (a saved verdict chip no longer matches), the reachability panel’s row label
reads “reachability”, and the health history strip, the system and platform hints and the webhook
row’s tip say health. In web/src/lib the Verdict type is HealthState and the verdict* helpers
are health* (healthOf, healthRank, worstHealth, healthHue, HEALTH_HUE); the reachability
helpers are reachWord and ReachState. HealthBadge, HealthHistory and HealthGlyph take a
health prop. The kept senses (soak, subscription test, target test, expression check) still say
verdict. A new Explore test covers the health: filter.
The Deployment section is written (#2160)
Section titled “The Deployment section is written (#2160)”The Deployment guides became the Deployment section: install, the container image, Helm, running in production and running a simulator. The old overview split in two (the overview itself, and sizing PostgreSQL inside the new production page, which carries the unbuilt parts in design fences naming their issues); the simulator, seed-scenario and demo-recording material that lived in the install guide moved to a simulator page and to demos. The old URLs redirect.
The docs shots wait for the layout to hold still (#2168)
Section titled “The docs shots wait for the layout to hold still (#2168)”The freshness gate failed on branches that touched no console code, each time on a different shot
(users by 5 px, platform-health-connections by 0.079%, platform-health-outpost-worklist by 4.4%)
and passed on a rerun. The platform-health shots hover a control that scrolls a table and opens a
tooltip, and the capture fired a fixed 1.2s after the last step, so a slow runner could photograph the
scroll or the tooltip’s placement part way.
The capture now calls settleLayout before it shoots: every scroll offset, the document’s size, any
open tooltip’s box and the count of running animations must be identical for 30 consecutive frames,
and the fonts loaded, else the capture fails naming what kept moving. The tolerance stays zero. The
inbox badge (#2196) was a third cause and is fixed separately. The users 5 px region was not
isolated without a lab run; if it recurs, the capture output now rules out a layout still moving.
One more shot alternated between two exact renders for a reason the layout never showed: the lab’s
outpost-silent alarm raises partway through a capture. platform-health-outposts read a healthy
liveness pill before it and an outage pill after, so it now waits (60 s, failing with a message
naming the alarm) for the outage pill. The inbox does not reliably receive the alarm’s entry, so
notifications-inbox does not wait for it: its masked twin covers the whole content region, the same
with or without the entry, and the shot keeps its empty-inbox alt text.
A heartbeat cut short by shutdown is not audited (#2274)
Section titled “A heartbeat cut short by shutdown is not audited (#2274)”TestRunAuditsAChangeOfOutcomeNotEveryBeat flaked: a beat in flight when the run’s context was
canceled failed with context canceled, which counted as a change of outcome and wrote a third
audit row. A send that fails because the run’s own context ended is not an outcome of the receiver,
so Beat now returns the context error without auditing it. A regression test pins it.
A troubleshoot starts its own conversation (#2286)
Section titled “A troubleshoot starts its own conversation (#2286)”An alarm’s Troubleshoot button appended the triage to the conversation omnibot already had open, so the triage ran on top of unrelated history and its tool results. A triage asked for from outside the panel now starts a new conversation, as New conversation does, and shows only the triage. It waits while a run is in flight, as before. Prompts typed in the composer still append to the current conversation.
An alarm’s actions sit in one group (#2288)
Section titled “An alarm’s actions sit in one group (#2288)”In the component page’s alarms sidebar the Acknowledge and Clear buttons aligned by baseline while the
Snooze trigger carried its own self-center, so they sat at different heights, and in the narrow sidebar
the Omnibot and timeline buttons wrapped individually among the message and metadata text.
Each alarm row, active and recently cleared, is now a text line (severity, message, metadata, snoozed
badge) and a separate data-alarm-actions group (flex shrink-0 items-center gap-1) that wraps as a
unit. The group owns the vertical centering, so the per-control self-center on the snooze trigger is
gone. A regression test pins that the controls render inside one group apart from the text.
The docs and the vocabulary say health, not verdict (#2104)
Section titled “The docs and the vocabulary say health, not verdict (#2104)”The last of the three renames under ADR-2086. The docs prose says health for a system’s,
location’s or component’s result, reachability for an endpoint’s up or down, and
settlement for a command’s. The vocabulary table’s verdict: key is health: (its accessor
is Healths(), the guard TestEveryHealthIsATerm), and a new health term carries verdict
as a retired word, so the denylist bans it in docs prose, seeded operator strings and generated
API descriptions. The kept senses (the soak, perf and footprint gates, a subscription’s test, a
target’s test send, the ship-review’s Verdict: line and a soak record’s verdict: field) are in
its Allow pattern. Generated descriptions (OpenAPI, CLI and MCP references) were rewritten at their
Go doc: tags and regenerated. Decision entries and the build log stay as written.
The Drivers page joins the Admin section (#2200)
Section titled “The Drivers page joins the Admin section (#2200)”The Drivers guide was 579 lines, about 460 of them the declarative spec reference. It is now two
pages: admin/drivers.md covers the catalog (official rows read-only, admin-gated custom ones),
attaching a driver to an endpoint, built-in and collected data, records and identity, and checking,
previewing and running a poll now; developer/driver-spec.md carries the spec reference for driver
authors. guides/admin/drivers.md is deleted and redirects to the Admin page, and every link to it
(including the #built-in-and-collected-data anchor) now points at /admin/drivers/. The empty
Admin guide group left the sidebar.
The lab banner sits above every screen (#2275)
Section titled “The lab banner sits above every screen (#2275)”The lab banner was top level on the login screen but sat under the top bar, inside the main window,
on every signed-in screen. It now renders once, from the router’s root layout (AppRoot), above
whatever a route draws, and the per-page placements in App and Login are gone, so it cannot drift
between screens. A test pins it as the first element above a login-shaped and a signed-in-shaped
screen. Docs screenshots that show the banner (lab captures) are re-captured by the freshness gate
when the layout changes.
The storage tests run outside UTC (#2313)
Section titled “The storage tests run outside UTC (#2313)”make test failed on a host outside UTC while CI, which runs in UTC, stayed green. Two causes were
found. The metric partition roll’s refusal named the first uncovered instant in the host’s zone
(2026-11-22T05:00:00-07:00); it now names it, and the range it wanted, in UTC, as the database
and the rest of the roll do. The log-line test read the year of a scanned timestamp in the host’s
zone, so a line stamped at the start of 2000 UTC read as 1999; it now reads the UTC year. The two
snooze-end tests named in the ticket did not fail under America/Denver, Asia/Tokyo or
Pacific/Kiritimati on this run, so no change was made to them.
The class is now guarded in the gate: the storage shard (make test-go-storage) runs under
TZ=America/Denver, so code that reads the host’s zone, or a test that assumes UTC, fails in CI
and not only on a contributor’s machine.
A PR that closes a bug must change a test (#2380)
Section titled “A PR that closes a bug must change a test (#2380)”The bug-fix-ships-a-regression-test rule had no enforcement. web/e2e/regression-test.mjs now
reads a PR’s closing keywords, looks up each issue’s labels and native type, and fails when one is a bug or flaky-test issue (bug or flaky-test label, or Bug type) and the diff changes no test file, unless the body has regression-test: none (<reason>)
with a reason. The parser and test-file matcher (regressiontest.mjs) are unit-tested. The workflow
that runs it (regression-test.yml, modeled on demo-tag.yml) ships in this PR; a maintainer only needs to
make the regression-test check required afterwards.
A component or system moves from its edit face, and Also serves stops moving it (#1804)
Section titled “A component or system moves from its edit face, and Also serves stops moving it (#1804)”The edit face of a component and of a system carries Move to… under Placement, wired to the
:move routes (component:move / system:move): another place, under another component or system,
and for a component another system (and optionally a slot in it). A move runs on its own button, not
on Save, shows the server’s refusal in place (a cycle, a destination out of scope, a full slot),
and leaves the page on the entity, with the fleet view, the entity lists, the memberships and the
slot lists refreshed.
The Memberships field used to be a single select: choosing another system added a second membership
and silently made it primary, so it read as a move and was not. It is now three explicit controls:
Also serves… adds a system and leaves the primary alone, Primary system chooses among the
systems the component is in, and each chip removes one. Moving a component between systems is the
planned sequence in lib/members.ts (planSystemMove): join (staffing the chosen slot), make
primary, free the slots it held, leave.
A component’s health history is readable over a time range (#2305)
Section titled “A component’s health history is readable over a time range (#2305)”The component’s health was recorded (recordHealth("component", ...)) but only the roll-ups
could be read, and the system read was fixed at the last 30 days. GET /components/{name}/health
now returns the component’s own health and its recorded transitions in the same envelope
GET /systems/{name}/health serves (slots and systems empty), gated by component:read with the
Gateway injecting scope and an out-of-scope name a non-disclosing 404.
The component, system and location health reads all take since and until (RFC 3339), so the
range picker (#2304) can drive them. With neither, the window is the last 30 days measured on the
database’s clock as before; since after until is a 400. The Gateway’s window argument became
a HealthRange, and the generated CLI verb (omniglass component health list), the typed client
and the MCP catalog came from make gen.
A range with no edge inside it would leave a timeline blank, so the reads also answer carried_in,
the health in force when since opened the range, and first_recorded_at, when the owner’s health
was first recorded.
A component’s page shows and edits its dependencies (#2428)
Section titled “A component’s page shows and edits its dependencies (#2428)”The dependency API (list-component-dependency, create-component-dependency,
delete-component-dependency) had no page behind it. A component’s Overview now carries a
Dependencies card, DependenciesPanel in its own file: Upstream (what the component needs, with
each upstream’s health, its kind and outlet, and a “holding this” mark when that upstream’s gate is
closed on the component’s endpoints) and Downstream (what needs it, one row per dependent with
every kind it depends by). Rows link to the other component.
Adding goes through a filter box over a native select of the fleet (the component itself is never
offered) plus the kind, and the outlet on a power edge. The server’s refusal of a cycle, a repeat
or a missing outlet shows in the form, in its own words. Removing an upstream asks first, through
the console’s ConfirmDialog. A viewer (no update on the component) sees both lists read-only.
No API change: the list route already answers both directions in one read. The dev seed gains a second downstream of Boardroom A’s video bar (the room display, reached through it), so the bar has one upstream and two downstreams. The “holding this” mark reads the upstream reason on the component’s own endpoint gates, so it names the root of a chain; naming the holder in the Why strip is deferred to #2452 (recorded on #2428) because that row is being reworked by #2423.
A fleet blade shows everything its page shows (#2423)
Section titled “A fleet blade shows everything its page shows (#2423)”A component, system or location opened in a side panel used to be a separate, reduced
implementation (EntityBlade’s three bodies), so an operator had to Expand to the page to read
vitals, collection, members, history or configuration. Each kind now has one body,
ComponentDetail, SystemDetail and LocationDetail ({ id, host }), mounted by its page and by
its blade alike; EntityBlade.tsx keeps only the blade definitions (ADR-2423, reversing ADR-0139’s
glance rule).
The host holds three things. The tab lives in the page’s ?tab= or in a blade’s own signal
(lib/tabstate, which also folds the three pages’ duplicated legacy-tab and edit-intent
resolvers), so switching a blade’s tab never rewrites the page beneath it, and a rooted outline in
a blade filters the same way. Edit answers ?edit= only on a page. Delete, now in the Configure
footer in both hosts, closes a blade’s stack or sends a page to Explore. Sections lay out by
container query, and fleet blades take a wide (about 720 px) variant, so the same body reads as one
column in the blade and two on the page. Each host gained what the other had: the page’s Why rows
carry the rule and Troubleshoot, the system’s Why controls sit in one right-aligned group, and the
location’s card shows its health and since-when and what it holds. The alarm rows use #2115’s
AlarmActions. fleetBlades.guard.test.ts fails if a kind registers a blade body of its own
again.
A held snmp or udp rung reads responsive up, not down (#2294)
Section titled “A held snmp or udp rung reads responsive up, not down (#2294)”An snmp endpoint refused with authorizationError read responsive up on the first poll and then
responsive down (rejected: auth) on every held poll, though the refusal was a reply that proved the
agent there; udp did the same, including on the terminal reply itself. A held rung now reads responsive
up with the reason held: <class> since <ts>, and a udp terminal reply reads up, responded. The gate’s
probeReachability treats a held reading as no verdict, so the #1650 property holds: a held rung
neither adds to nor resets the unreachable streak. A timeout is unchanged. Regression tests:
TestAUDPTerminalReplyGatesTheEndpoint, the held assertions in the snmp rung test, and
TestProbeVerdictDropsOnlyARefusalsEcho.
A lab measure window survives a retention partition drop (#1956)
Section titled “A lab measure window survives a retention partition drop (#1956)”A lab measure sample spanning a retention partition drop failed with “the database’s counters went
backwards (Postgres restarted?)” though Postgres never restarted: DBCountersQuery summed
n_tup_ins over the partitions present at read time, and dropping a partition removes its stats
row, so the sum fell. A long soak lost a sample at every daily roll.
The query now also returns the insert counter per partition, and WindowOf differences each
partition present at both ends: a dropped one contributes nothing, a new one counts from zero, and
a decrease within one partition still fails as a restart. Regression tests:
TestWindowOfAcrossDroppedPartition and TestIntegrationWindowAcrossDroppedPartition in
internal/labfootprint.
A list’s sort and row open work from the keyboard (#1932)
Section titled “A list’s sort and row open work from the keyboard (#1932)”On every FlatList page the sort header was a clickable <th> and the row a clickable <tr>,
so nothing in the table could take focus: no keyboard sort, no keyboard open, and axe’s
scrollable-region-focusable fired on an overflowing table. A sortable header now renders its
label in a <button> and the <th> reports aria-sort; an openable row ends in a button named
Open <name> (new optional rowLabel, defaulting to the entity noun and the row’s address, so rows differ). Both come from the
primitive, so all 27 consumers inherit it. Tests: FlatList keyboard operation in
FlatList.test.tsx.
A location health read names each system uniquely (#1775)
Section titled “A location health read names each system uniquely (#1775)”The systems drill-down in GET /locations/{name}/health carried only a short name and a verdict,
so a building with many rooms each holding a system called meeting read as indistinguishable
entries, and GET /systems/meeting did not open any of them. Each entry now also carries id,
path (the unique dotted address GET /systems/{name} resolves), label and location (the
dotted path of the room it is placed at). Regression test:
TestLocationHealthSystemsAreAddressable in internal/storage. The console reads only the
headline verdict of this read, so no surface needed a link change.
A location-scoped reader is paged for components placed in its location (#2554)
Section titled “A location-scoped reader is paged for components placed in its location (#2554)”A principal whose only component read reach is a location grant could list a component placed in
its location but was never chosen as a notification recipient for it: the queue-time recipient
filter judged read by Set.AdmitsChain, which ignores the cross-tier LocationIDs and fails
closed (ADR-1498, point 4).
readersOf now also reads the component’s effective placement in one statement
(componentPlaceChain, mirroring placedCTEs: its own location, else its primary system’s, plus
that of any placed ancestor) and admits a reader when the new pure Set.AdmitsPlacement finds one
of the set’s location roots in it. A person is paged for exactly the components they can read.
Regression tests: TestALocationScopedReaderIsPagedForAComponentPlacedInItsLocation and
TestAdmitsPlacementJudgesTheLocationChain.
A move into a location being relabelled reads the committed label (#2552)
Section titled “A move into a location being relabelled reads the committed label (#2552)”A component moved into a location while that location’s label was being edited kept a label naming
the old location label: the move’s stamp read the uncommitted-edit ladder without a lock, and the
cascade’s scan snapshot predated the mover. MoveComponent and MoveSystem now take the
label/recompute lock before writing when they set a location. Regression test:
TestAComponentMovedIntoALocationDuringItsRelabelReadsTheCommittedLabel, a forced interleave.
A path argument shadowed by a subcommand word is documented (#1667)
Section titled “A path argument shadowed by a subcommand word is documented (#1667)”A generated command that takes a path argument and also has children shares one position
between the argument and the children’s words, and cobra matches a subcommand name first. So
outpost simulation observation ran the observation group instead of reading an outpost
named observation. The argument is reachable with cobra’s -- separator
(outpost simulation -- observation); cmd/cligen now says so in the command’s long help, and
so does the generated CLI reference. Test: TestArgCommandWithChildNamesTheDoubleDashEscape.
A page you may not read says so (#2442)
Section titled “A page you may not read says so (#2442)”As the seeded viewer, Settings showed in the sidebar, opened to “Loading settings.” forever (the
API answered 403 and the query client retried it through its whole backoff), and /secrets or
/users by address silently redirected to Home.
A new DeniedPage primitive names the section, the <resource>:<action> permission it takes, and
links to Home and Profile, disclosing nothing behind the page. The route guard renders it instead of
redirecting; PageGate renders it for a page whose first read is a 403 (Settings uses it); and the
query client no longer retries a 403. Settings now carries the settings:read nav gate, and a nav
test fails any entry that declares no permission and is not marked public. The server’s checks and
the wording of its 403 bodies (#1499) are unchanged. Tests: RouteGuard.test.tsx,
PageGate.test.tsx, DeniedPage.test.tsx, nav.test.ts, and the e2e/denied.spec.ts viewer walk.
A person signs in with OIDC (#2362)
Section titled “A person signs in with OIDC (#2362)”The first single sign-on slice of ADR-2361. With the sso settings naming an issuer and an
oauth2-client platform secret, the sign-in page offers Sign in with SSO:
/auth/oidc/start/{provider} sends the browser to the provider with PKCE (S256), a nonce and a state
bound to the browser by a short-lived cookie, and /auth/oidc/callback spends the state once,
exchanges the code, verifies the id_token’s signature, issuer, audience, expiry and nonce, and signs
the linked person in with the ordinary session, auditing the login with method oidc. A refusal
sends the browser back with one code of a closed set (?sso_error=unlinked), which the console maps to
a fixed message (an unknown code to a generic one), so a crafted link puts no words on the page; the
detail, the identity an unlinked sign-in vouched for included, is in the server’s log line. The migration adds oidc to credential.kind, an
identifier unique per kind, a nullable secret_hash under a per-kind check, the link’s sealed
refresh token and grace, via_link on the credentials minted through a link, and oidc_state.
Admins link a person under the new user:link-identity behind the takeover guard; a person links
their own with their password through a flow bound to their session; an owner grant deletes the links
someone else made. The re-check sweep redeems each live link’s refresh token every
recheck_minutes: a refusal revokes every session and API token through the link in one audited
transaction, an outage is retried and refused at authentication only past recheck_grace_minutes, and
a provider that issues no refresh token gives a one-hour session that cannot mint API tokens.
New primitives: egress.Client.HTTPClient (a library’s calls under the egress contract),
auth.JWTVerifier (the JWKS-backed verifier #81 reuses) and internal/auth/oidctest, a fake
provider for tests. Proven end to end against the fake and against a real Dex in a testcontainer.
The verifier and nonce are derived from the browser binding rather than stored (ADR-2362).
A script’s lab runs that Dex too (lab run --sso): its seed configures single sign-on against it
and links a demo person, and the sign-in-with-sso walkthrough, which declares lab: [sso], signs
in through Dex’s own login form.
A redelivered command’s arc reads in time order (#1676)
Section titled “A redelivered command’s arc reads in time order (#1676)”The Delivered step of a command’s arc stamped the last delivery, which a redelivery pushes past the settlement, so the arc read as if the command failed before it was delivered. The step now anchors on the first delivery and its note names the last (“delivered 2 times, last +47s”).
A refused delete names what is in the way (#2463)
Section titled “A refused delete names what is in the way (#2463)”Cleaning up a demo needed the API: every delete asked through the browser’s confirm(), and a
refusal was a sentence with no way forward (“still owns 2 endpoints”, none listed). Three changes:
- The 409 is typed. A refused component, system or location delete now carries
blockers(kind, id, name, label) andblockers_hidden, an additive field on the problem detail (DeleteRefusal). The gateway’sDeleteBlockersOfreads each relation the delete refuses on (children, owned endpoints, staffed slots, what is placed in a location) and narrows each to the caller’s read scope on the blocker’s own kind in one statement (inScopeIDs); what the caller cannot read is counted, never named. Integration tests:TestRefusedDeleteNamesItsBlockersandTestRefusedDeleteCountsWhatTheCallerCannotSeeininternal/api. - One confirm.
confirmDelete/confirmAction(web/src/lib/confirm.ts) open the oneConfirmDialog, drawn by aConfirmHostunder the router: title names the thing, body says what goes with it, the button carries the verb. All 38 native sites moved, andnative-confirm-guard.test.tsbarswindow.confirmunderweb/src. A leave-with-drafts prompt went the same way. - The dialog clears the way. Handed the delete as
run, the dialog lists a refusal’s blockers as links, each with its own two-step Delete, and retries in place. No cascade was added. A rule’s Delete moved from More actions to the blade’s destructive slot, where every other Delete sits.
Walkthroughs: delete-what-you-made (the component) and delete-a-location-that-holds-a-system (the location), split in #2813 so each fits the 60 second budget.
A refused simulator route leaves state untouched (#1487)
Section titled “A refused simulator route leaves state untouched (#1487)”applyMutations kept applying a route’s remaining mutations after one was refused, so a request
answered 400 still wrote state (a refused vga route on the Meridian switcher wrote <no value>
into status.switcher.signal; a refused vroom dial left status.call.active set).
Request routes now apply through applyRouteMutations: if any required mutation fails (render,
validation or write), state is restored to exactly what it was and no diffs are published. An
optional mutation that fails is still skipped and logged while the rest apply. Behavior ticks,
overrides and command mutations keep the per-mutation semantics of applyMutations. Regression
tests: TestApplyRouteMutations_* and TestServeHTTP_VroomDialRefusedLeavesStateUntouched in
sim.
A resumed omnibot conversation asks an open call that has no marker (#2129)
Section titled “A resumed omnibot conversation asks an open call that has no marker (#2129)”omniglass omnibot --resume only asked about a waiting call when the conversation carried a
pending marker. A client of the append route that stored a turn ending in a proposed write without
its marker left that call silently dropped on resume. The resume now reads the transcript’s own
open call with loop.Waiting whether or not a marker is kept, and asks it as it asks a kept
marker; a marker that names no open call is still refused. ADR-2113’s Limits line records the
choice. Regression test: TestOmnibotResumeAsksAnOpenCallWithNoMarker in internal/cli.
A retention lane that stops reporting clears its warning (#1673)
Section titled “A retention lane that stops reporting clears its warning (#1673)”A lane that read retention-behind = 1 and then dropped out of the pass’s report (a type override
removed, a window out of range) kept a pending fire streak, so the sweep opened a
retention-behind alarm with no sample to ever clear it. The retention loop now remembers the lanes
the last pass flagged behind and writes 0 for any the next pass does not report. Tests:
TestRetentionSamplesClearALaneThatStoppedReporting (including the compactions when the metric
window goes out of range) and TestARetentionLaneThatStopsReportingOpensNoAlarm.
A settings reset can no longer race an update’s before-image (#2221)
Section titled “A settings reset can no longer race an update’s before-image (#2221)”A setting update read its audit before-image with a plain SELECT under the (scope, namespace)
advisory lock, but a factory reset (DeleteAllSettingBindings) deletes by scope and takes no
advisory lock. A reset committing between the read and the upsert left an audit row claiming the
value moved from the deleted state. The before-image read is now for update, so the reset waits
on the row. Regression test: TestSettingsUpdateImageSurvivesAConcurrentReset.
The audit page now names both reasons an advisory lock stands in for a row lock: an append-only series, and a create-or-update path whose row may not exist yet.
A silent udp or snmp rung reads no answer, not down (#2296)
Section titled “A silent udp or snmp rung reads no answer, not down (#2296)”Over a datagram transport silence proves nothing, yet a timed-out udp or snmp rung read “down”. The ladder hint, the component leaf’s collection badge and the endpoint pill now read “no answer” and name the causes (host off, agent stopped, wrong v2c community, filtered). Copy only: the reason value, the reachability reading and the gate’s unreachable streak are unchanged, and a tcp timeout still reads down.
A steady sim fleet no longer reads loss while the outpost and the sim disagree on it (#1962)
Section titled “A steady sim fleet no longer reads loss while the outpost and the sim disagree on it (#1962)”the outpost rebuilds its worklist on its own clock and the simulator re-pulls its device list on
another, so a window with no change to the sim’s served fleet could still count polls sent to a
device the sim had not bound yet (or had stopped serving) as SNMP loss. The sim’s observation now
names the devices it serves (served_ids, capped at 2000, served_truncated past that), and
Reconcile moves the sends and connects a window could have drawn from unserved poll targets out of
the loss count into the masked term. A real loss on a served target still reads loss.
Also: a device that fails to start the same way on every pull no longer marks the fleet as changing
during each sync, so it does not make every bracket read restarted. The platform health guide now
says how long restarted lasts after a real fleet change. Tests: TestReconcileSendsToUnservedTargetsAreNotLoss,
TestEngineFleetStaysSteadyDuringARetryOfADeviceThatKeepsFailing.
A storage step re-judges a component’s event rules when its selection changes (#2475)
Section titled “A storage step re-judges a component’s event rules when its selection changes (#2475)”An event rule settles when the rule changes (a narrowed selector ends its conditions, a material
edit primes it), but nothing settled when the component changed type under a rule that stayed the
same. reselectComponentRules in internal/storage/rule_selection.go is the primitive for that
move, the event rules’ analogue of markComponentCalcRules. It takes a component’s selection (its
id and its type’s lineage, read before and after the write) and reads only the enabled rules naming
a type in either lineage, FOR UPDATE as a rule write locks them, so it serializes with an ingest
batch judging by one (TestReselectWaitsForAnIngestHoldingTheRule). It primes a rule the component came into from that component’s newest
samples (primeSeries, now shared with primeRule). It ends the conditions and drops the streaks
of a rule the component left (endFiringsOn, endRuleFirings on one component). A rule that held
the component on both sides is left alone.
Nothing calls the step yet: #941 wires it into a component’s product edit, #1920 into a product’s
type, #1921 into a type’s parent move. Tests: TestReselectComponentRules,
TestReselectComponentRulesBack and TestReselectCandidatesBounded (testcontainers), and
TestComponentSelectionSelectedBy (unit).
A subtree viewer reads the systems its location health names (#1774)
Section titled “A subtree viewer reads the systems its location health names (#1774)”The synthetic user found viewer-hq (the viewer role on the hq subtree) shown a room’s system in
the location health roll-up while /systems and /components listed nothing and the system itself
404ed. The cause: location health resolves on the location tier and names every system beneath the
location, while systems and components were scoped by their own tier alone (#714), so a location
grant reached none of them. The read half of #1498 (PR #1990) closed that by admitting a row by its
placement under a subtree location grant, but it was only driven with the deploy shape.
This slice adds no fix: TestASubtreeViewerReadsTheSystemsAndComponentsItsHealthNames in
internal/api drives the viewer shape over the wire, asserting the list and get (by name and
dotted address) are exactly the hq rows, nothing in another campus reads, and the location health,
the system list and the bulk system health name the same systems. It fails on the commit before
#1990 with the ticket’s symptoms. A self location grant still sees system names in its health
drill-down it cannot open; that is #2487.
A system and a component show one timeline of health, alarms, data and commands (#2425)
Section titled “A system and a component show one timeline of health, alarms, data and commands (#2425)”A component’s view and a system’s view gain a Timeline tab: health over the page’s range, every alarm raised in it as a span from raise to clear that says how long it was raised, the properties and metrics the alarming rules watch (or the ones the operator picks), and events, log lines and commands as markers, all on one time axis. The cursor is the page’s shared one (#2424), so it crosses every lane and the metrics grid under the timeline; hovering a mark says what it is and clicking opens it (an alarm’s history, the rows behind a marker, a command’s arc). Dense markers cluster into a count. It is the first cut of #1832’s timeline widget, on plain range reads rather than the live binding.
The derivation is pure (web/src/lib/timeline_lanes.ts: health spans, alarm spans clipped to the
range with their whole duration kept, value bands, clustered markers, a metric’s line), and the
component takes { kind, id, range } with no page logic. Every read honors the range on the
server: the component and system alarm lists gain since/until (an alarm is kept when it was
raised by until and still raised at since), the health lane draws from the health reads’
carried_in (#2305: the health in force when since opened the range, so a quiet range is one span
of the health that held, not an empty lane), events, logs and property changes read through POST /views:run with from/to, and
commands through their since/until. A nested cursor provider now shares the outer cursor. The Timeline tab lives in the shared detail bodies (#2423), so a fleet blade carries it too; a blade’s
time range is its own (it opens on the default), never rewriting the page’s address.
A system shows the alarms of members outside its slots (#2459)
Section titled “A system shows the alarms of members outside its slots (#2459)”A component of a hand-built system could be in outage while its system’s page listed no alarm and
read healthy. Under ADR-2459
the system now shows it: the system health read carries every member with its open alarms and
whether it fills a slot, plus a reason line naming the slots behind the verdict, and the shared
system detail body (page and drawer) lists every member’s alarm through AlarmActions with
“impairs X”, “in X” or “not in a slot”, states the reason beside the health, and names the members not
in a slot with the way to place them. Health itself is unchanged: it rolls up through slots alone, so
such an alarm moves nothing above its component. A rule that degraded the system on any such alarm was
built in review and withdrawn.
A system with no components stays visible in Explore (#2464)
Section titled “A system with no components stays visible in Explore (#2464)”Delete a system’s last component and its row read “Empty” in Explore, as if the system were gone, while the system still answered at its address. The server was never the cause: the fleet view lists every in-scope system with an empty dots list (pinned now by an integration test against Postgres). The outline counted only components, so a row wearing a component-less system had nothing to say. It now reads “no components yet” (and a system among several heads its own group with the same words); “Empty” is kept for a location with no system at all.
A blank system’s page and drawer (one shared body) replace the bare empty table with an empty state that
says what a system and a slot are, with Add component (the create form, ?system= prefilling the new
component’s system) and Start from a standard (the Configure tab). The guided flow is #2460.
A taken host port no longer fails the Go gate (#2358)
Section titled “A taken host port no longer fails the Go gate (#2358)”On a busy shared host, rootless Docker could hand a Postgres testcontainer a host port another
process bound first, and the start failed with address already in use, so the gate went red on
code that never touched Go. The shared start path now retries a start that fails that way, up to
four attempts, terminating the failed attempt’s container each time. Any other start error still
fails at once. The retry is storagetest.RunWithPortRetry, used by the harness and by the
labfootprint psql test, with the decision (isPortCollision) unit-tested.
Adding a component is one flow, from its product to a tested endpoint (#2460)
Section titled “Adding a component is one flow, from its product to a tested endpoint (#2460)”Adding a device took about twelve clicks over three pages and a drawer, an unfiltered list of every
driver, a secret typed by name, and an address read off the Simulation page, with no test at the
end. Add a component (/components/add) is now one page of six steps: the product (a filterable
picker naming each product’s type and vendor) and its name; the system, the slot and the location (taken
from the system, since the server does not inherit it yet, #878); the endpoint, with the product’s
own driver chosen and its type’s other drivers listed next; the credentials, picked from the secrets
of the kind each input takes, with the secret form inline to create a missing one; the poll test of
#2427, which runs at once and sends a failure back to the step that fixes it; and the component’s
Overview with the values the test read.
Nothing is created until Create and test, and Cancel, Back from the test, or leaving the page
take the component and its endpoint back out. In a lab the endpoint step fills itself from a new
read-only route, GET /outposts/{name}/simulation/components:plan, which previews the address and
the driver attach a new simulated device of the product would get, shared with the add route’s own
planning. Explore’s New menu, a system’s Components and the Simulation page open the flow; the
plain create form stays behind its “advanced” link. The driver inputs render through one
DriverInputFields shared with the new-endpoint form, and SecretPicker is the first of the
reference pickers #2289 asks for.
An alarm’s controls are one button group at every site (#2115, #2150, #2441)
Section titled “An alarm’s controls are one button group at every site (#2115, #2150, #2441)”Acknowledge, Snooze and the timeline clock sat at three different heights on the component page’s
Why strip: a text button aligns on its baseline, an icon-only square falls to its bottom edge, and
a Snooze error span sat in the row’s flow. A new AlarmActions primitive now renders every alarm
control (Acknowledge, Clear, Snooze, omnibot Troubleshoot, the timeline toggle) as one
inline-flex flex-nowrap items-center group of xs buttons that wraps under the message as a
unit, each member gated on its own permission. The component Why strip, system Why strip, entity
blade, alarms panel (active and cleared rows) and the Alarms page row all render it, and the Alarms
page drawer now offers the same actions as its row. The panel’s hand-rolled icon-only eye is gone:
Acknowledge reads as the eye plus its word everywhere. The Snooze error now floats under the group
instead of pushing a sibling. alarm-actions-guard.test.ts fails if any file but the primitive
imports AcknowledgeButton or SnoozeControl. This also stops the alarm message overlapping its rule
on a narrow blade.
The primitive takes componentId, the component’s uuid, so a name cannot be passed: the Alarms page
had addressed acknowledge, snooze and the history read by the bare component name, which 404s for
any name shared by two components (36 components are named panel-1 in the dev fleet). A failed
action now reads as one short line with Retry floated under the group, the raw detail in its
tooltip, and a failed history read shows an error with Retry rather than reading forever.
An ambiguous name is a 409 listing the matches (#2334)
Section titled “An ambiguous name is a 409 listing the matches (#2334)”Acknowledging an alarm with a component name shared by 30 components returned a bare 404, which
read as “the alarm or the name is wrong”. A name that more than one visible row answers to is now a
409 on every collection, listing each match with its id and carrying a machine-readable path.name
detail; a name nothing answers to stays a 404. The CLI prints the 409 as “the name matches N rows
you can see; address one by its id or dotted address” followed by the matches. Tests:
TestAmbiguousNameIs409WithIDsAndUnknownIs404 (API) and
TestAcknowledgeByAmbiguousNameSaysToUseTheID (CLI). See ADR-2334.
An endpoint’s drawer shows what its row shows, and more (#2436)
Section titled “An endpoint’s drawer shows what its row shows, and more (#2436)”The endpoint drawer showed less than the component page’s own endpoint row: no availability
strip, no uptime, no parameters, inputs or out-of-band flag. An endpoint has no page, so the
drawer is the one place to read it whole. The expanded row and the drawer now render one
EndpointDetail body, with a parity test that mounts both hosts and compares their field ids
and a guard that fails if either host grows markup of its own.
The body adds the driver (linked through the drawer address) and version, each reach rung’s last result and age, held gate reasons beside the session, parameters and inputs with their provenance, the bound secrets by name only, and each poll with its interval, last read and mean duration beside the poll test. Long sections fold under a one-line summary.
Divergence: the server keeps no per-poll run record, so a poll’s last read and run time come
from the component’s effective metrics for this endpoint and its poll-duration series (a
report-window mean), not from a recorded run; the poll test shows the exact read. Hovering an
endpoint row now lights the whole row, not its left half.
An open drawer has an address on every list page (#2429)
Section titled “An open drawer has an address on every list page (#2429)”Opening a row’s drawer on a list page left the URL unchanged, so a rule, driver, product or user could not be linked, a reload lost the place, and Back left the list instead of closing the drawer.
The list primitive now holds the open row in ?open=<row address> (the address its API route takes,
ADR-0062), through one hook, useDrawerAddress in lib/drawer_address.ts, mounted by FlatList and
TreeList. Opening pushes history (Back closes), closing clears the param in place, and loading an
address opens the drawer. An address naming no visible row shows the list with a not-found notice in
ListShell, the same words for a missing and an out-of-scope row. A nested blade keeps its own stack
and stays out of the URL; the param composes with a page’s filter, sort and ?edit=1. The older
?u=, ?g= and ?n= ids still open, and the Users, Groups and Outposts pages now write ?open=.
drawerHref(kind, address) is the one way to link into a drawer from another surface; the command
palette’s Command.entity seam resolves through it. The palette does not yet produce entity results: its search is rebuilt in #2444, which fills the seam, so a rule or driver typed there opens at its address once that lands. The route manifest’s smoke tier visits one
?open= address. Tests: DrawerAddress.test.tsx (flat drawer, flat blade, tree) and
drawer_address.test.ts.
An operator tests an endpoint’s poll from the console (#2427)
Section titled “An operator tests an endpoint’s poll from the console (#2427)”run-endpoint-poll had no console caller: adding a device ended with waiting for the next
collection cycle and hunting for samples. A PollTest component now offers a Test button per poll
(and Test all) on the endpoint’s blade and under each endpoint in the component’s Collection
section, gated on endpoint:run, and draws the run in place: the samples read with value and
unit, the round trip and the outpost, or the refusal with its real cause (a gate’s own reason, no
outpost, a failure, a timeout). The walkthrough test-an-endpoints-poll records it, and the
operator page teaches it.
Block compaction counts the days it skips; 3 days is the shortest lane that folds (#2144)
Section titled “Block compaction counts the days it skips; 3 days is the shortest lane that folds (#2144)”At metric_days 2 the fold wrote no block yet moved its mark on: a day becomes foldable 48 hours
after it starts (the day’s close plus the trend’s 24-hour late-data horizon), and the day stops being
intact at the same instant. BlockCompaction.Skipped now counts each series-day with at least
BlockDayMin samples that the fold passes after it left its window, and the housekeeping log warns
with it. The storage page names 3 days as the shortest window that folds. Widening the window so a
2-day lane folds would move the merge’s and the series read’s intact test (ADR-1529, ADR-1530), so it
is left to a decision of its own. Regression test: TestTheShortestLaneThatFoldsIsThreeDays.
A window under 3 days is refused at config load: retention.metric_days below 3 fails the settings file, the environment and a console write with an error naming the metric lane, its window and the 3-day minimum.
Catalog drawers link what they reference and list what uses them (#2430)
Section titled “Catalog drawers link what they reference and list what uses them (#2430)”The catalog could not be followed: a product’s vendor, driver and type were plain text, no drawer said what used it, and a product that “declares no metrics” gave no hint that its driver polls several.
Every reference a catalog drawer renders is now a link through drawerHref (EntityLink, and
CatalogRef for a stored handle that reads as the catalog row’s label). One shared UsedBy section
carries the reverse lists (a product’s components, a driver’s products, the rules that read a metric),
and a product’s drawer adds Collected by its driver, what a component will actually report, apart
from the contract it declares. The metrics and properties Written by column names the writer class
when no calc rule writes the key. The dev seed carries one calc rule so the Calc rules page is populated
in a lab.
The fleet counts come from the list routes, not the browser: GET /components takes product, driver,
component_type and limit and returns total; GET /systems takes standard and limit;
GET /products takes declares_metric and declares_property. Scope is applied before the count.
The filters run after the scoped read, so the database does the same work as the unfiltered list; what
they save is the wire and the browser. A reverse index is the next step if the fleet makes that matter.
Creating a location or a system ends on its Overview, with no failed request (#2465)
Section titled “Creating a location or a system ends on its Overview, with no failed request (#2465)”Every location create asked POST /locations:renderLabel with no name as soon as a type was chosen. Every
shipped location type carries no name rule, so the route answered its documented 422 and the browser logged
it as a console error. The form now reads the type’s name_rule from the list it already holds and asks
no nameless draft for a type that cannot mint a name; once a name is typed it asks with the name. The route
keeps its refusal.
Creating a location, system or component now lands on the new row’s Overview with a “created” notice
instead of its editor (?edit=1 stays the deep link for editing). The create page’s back link names the
location it was opened from. The label field’s hint says the label is rendered and keeps the raw template behind
the field’s (i). The start-from-template form gained Cancel, and a system template list says how many of
the standards ship a system template. A system’s map crops to the positions it holds, so a system with a
few members is a small map.
Explore’s need-attention chip counts what it filters (#2438)
Section titled “Explore’s need-attention chip counts what it filters (#2438)”The chip said “2 need attention” and pressing it listed five rows, while Home said three open alarms.
One pure function (lib/attention) now counts the systems and components whose verdicts need
attention over the rows the attention filter leaves, and the chip’s number, its words (“2 systems,
3 components need attention”) and Home’s new Need attention card all read it. It takes verdicts as
data, so a health rule that changes server-side moves every figure at once.
To make the rows countable, the filter list gives a place holding several systems no health of its own and a row per system, and lists a shared component once. The pressed chip keeps its dot; every outline name goes through one renderer (no data font); the Health column packs counts left; a place’s “2 systems” moved from Standard to Detail, which wraps with a tooltip; and the filter narrows as you type, with Enter pinning the chip. Matches keep their path, which carries each match’s ancestors; the tree-shaped version of that belongs to #2302.
Explore’s expanders name their parent (#1773)
Section titled “Explore’s expanders name their parent (#1773)”On a fleet with several places of the same name (the large scenario holds six Service Depots), every Explore expander read Expand Service Depot, so a screen reader or a script could not tell them apart. A nested expander’s accessible name now ends with its parent path (Expand Service Depot in North Campus); top-level rows and the visible text are unchanged. The two walkthroughs that open the top-level Service Depot match its name exactly.
explorer.mjs file reads a large issue list (#1777)
Section titled “explorer.mjs file reads a large issue list (#1777)”explorer.mjs file died with spawnSync gh ENOBUFS once the open-issue listing (bodies, limit
1000) passed Node’s 1 MiB default maxBuffer for execFileSync, so the nightly synthetic user
could not file or plan anything. The run helper now lives in web/e2e/explorerrun.mjs with a
256 MiB buffer. Regression test: “returns child output larger than Node’s 1 MiB default” in
web/src/explorer.test.ts.
Hovering one metric chart shows the same instant on every chart (#2424)
Section titled “Hovering one metric chart shows the same instant on every chart (#2424)”A component’s view and a system’s view now chart every effective metric in one grid over the page’s time range, a card each (name, unit, latest value, chart), and every chart in the grid shares one cursor: hovering one draws the crosshair and each chart’s own reading at the same instant on all of them, the way a Grafana or CloudWatch dashboard does. The keyboard drives it too (Tab to a chart, arrows step its buckets). A metric with no sample in the range keeps its card, marked.
The cursor is a primitive (web/src/lib/cursor.tsx: an instant or none, shared by a provider), and
the lookup it needs is pure (nearestByTime, timeAtX, xAtTime in lib/chart.ts), so the
overlay timeline (#2425) builds on the same instant. The grid takes { kind, id, range } and holds no
page logic; on the system view it replaces the Data table and its expand-a-row chart, on the
component view it sits below Vitals. Charts stay hand-drawn SVG; a fluid chart lays out at its
measured width so its axis text keeps reading size in a drawer-width card.
The range comes from #2304’s useTimeRange, picked on the tab rail of either view. A preset reads
hours back from now on the series route and polls; an absolute range reads its own from and to
through the views binding (metricBucketsBetween, /views:run) and holds still.
Identity provider groups map to Omniglass groups (#2363)
Section titled “Identity provider groups map to Omniglass groups (#2363)”The second single sign-on slice of ADR-2361. An admin maps a value of the provider’s groups claim,
keyed by issuer, to a user group (/user-groups/{group}/idp-mappings, the generated omniglass user-group mapping subcommands, and an Identity provider groups editor on the group blade). A new
migration adds user_group_idp_mapping and gives user_group_member a source (local or idp)
and, on an idp row, its issuer.
Each SSO sign-in sets the person’s idp memberships from that issuer to exactly the mapped set inside
the sign-in transaction, each add and remove audited; a token with no groups claim is the empty set.
The re-check sweep now verifies the id_token a refresh returns and, when it is the link’s own subject
and carries the claim, runs the same sync in the transaction that accepts the refresh, so a group
removed at the provider lands at the next re-check that reflects it. Local rows are never touched and
stand in for an idp one. The owner guard runs both ways: no mapping to a group with an owner grant
at any scope, no owner grant on a mapped group.
The roster shows each member’s source (from SSO with the provider’s host). An admin’s add makes an
idp row local, and removing a group’s last mapping from an issuer removes that issuer’s idp
members at once (ADR-2363). Proven end to end against the fake provider: a mapped claim gives a
location-scoped read in scope and none outside, a sign-in without the claim and a refresh whose token
drops the group both take it away, and local memberships stand.
Interactive primitives are in-house wrappers over Kobalte (#2485)
Section titled “Interactive primitives are in-house wrappers over Kobalte (#2485)”The console’s interactive primitives now live in web/src/components/ui/, and a guard test
(web/src/kobalte-guard.test.ts) fails any @kobalte/core import outside it
(ADR-2485). The 13 files that imported Kobalte directly go through
ModalDialog, ConfirmDialog, Popover, Tooltip and Select with no visual change. Six new
wrappers ship, each with a keyboard-contract test and one consumer: Picker (a filterable single
and multi select with a create row, on the simulated component’s Product, inside its drawer),
Tabs (a role’s All / Held / Missing permissions), Toast (the toast primitive, now Kobalte’s
region: Alt+T, Esc, pause on hover; on a setting’s save), Collapsible (Profile’s permission
list, closed by default), Switch (a tag’s binding) and SegmentedControl (From scratch / From a
template on the create pages).
Fixed on the way: every Drawer was announced as an alertdialog, because Kobalte 0.13 assigns
Dialog’s and AlertDialog’s parts onto one shared root and the alert content won once
ConfirmDialog was in the bundle. ModalDialog takes the named exports.
The lab’s ingest lag refuses when the lane is behind (#1897)
Section titled “The lab’s ingest lag refuses when the lane is behind (#1897)”The lab’s ingest lag p95 timed only the samples that had landed, so on the 3,000 soak it fell from
237.6 s to 0.25 s while the backlog grew. The lag is now refused as not measured when the closed
loop’s published-not-landed share for the window is above 0, with the share as the reason. When the
closed-loop read is missing, a cadence estimate (rows landed against the probes the poll targets
should have drawn) stands in, refuses past 5 %, and is labelled a floor estimate. The closed loop’s
denominator is read from the outposts’ tallies, not from ingest. Regression tests:
TestRefuseBehindLag* in internal/labfootprint.
Lifecycle properties record install, warranty, support, end of life and cost (#2366)
Section titled “Lifecycle properties record install, warranty, support, end of life and cost (#2366)”Six official lifecycle fields are seeded: install-date, warranty-end, end-of-support and
end-of-life (string types with an ISO-8601 date pattern) and the replacement-cost and
expected-life-years metric types. A product default is a component’s effective value and a component
value overrides it. Operator-declared property values are now held to their type’s data type and
validation (a malformed date is a 422), which they were not before. The component and product pages
show a formatted Lifecycle group.
A location create’s parent no longer discloses a location outside read (#1343)
Section titled “A location create’s parent no longer discloses a location outside read (#1343)”POST /locations resolved its parent under the caller’s location:create scope alone, so an
existing parent outside it answered 403 and a missing one 422: any create holder could probe
location names it could not read. The create, its batch and the template plan now resolve the
parent through resolveCreateParent, which asks the read question only to choose the refusal: a
parent outside location:read, or nowhere, is the same 404 parent location not found, and a
readable parent outside the create scope stays 403
(ADR-1343).
Tests: the three cases in TestLocationScopeCRUD (internal/storage) and the byte-identical
bodies in TestALocationCreateParentOutsideReadIsNotDisclosed (internal/api).
Locations, systems and components each take a batch create, with a dry run (#2368)
Section titled “Locations, systems and components each take a batch create, with a dry run (#2368)”POST /locations:batchCreate, /systems:batchCreate and /components:batchCreate (omniglass location batchCreate and its siblings, each an MCP tool) take a list of the single create’s own
bodies and run them in order in one transaction, each row the ordinary create in the caller’s scope
with its own audit row. A floor names the building an earlier request of the same batch creates as
its parent, by name. validate_only runs the same transaction and rolls it back, answering 200 with
the rows and the names a write would mint. A write answers 201 and stamps one batch id into every
audit row as from_batch (the new storage.WithBatch, beside WithTemplate). A refused row
refuses the batch, mapped as its single create maps it and named requests[3], and a batch over
1000 rows is a 413 naming the limit. The decision is
ADR-2368.
make marketing-shots records the landing page’s captures
Section titled “make marketing-shots records the landing page’s captures”make marketing-shots MARKETING_DEST=<dir> records the captures the hyperscaleav.com Omniglass page
plays, from a corporate lab at 1,000 systems with the corporate-outage omnibot recording: seven shots
(two stills, five loops) and a shots.json manifest the landing page reads. The shot list is data
(web/e2e/marketing/shots.yaml): steps in the walkthrough grammar without captions, and off-camera
setup that stages the faults through the API. Loops are H.264 MP4s of 5 to 9 seconds and at most
1.5 MB with a WebP poster; stills are 2x WebP. A step’s focus and zoom point a camera that pans and
zooms over the loop’s frames (screenshots at 2x, since a Playwright video is CSS-pixel sized), rendered offline by a Revideo (MIT) pass, centred on what each beat is about; a wait may play as a time-lapse in a fixed number of seconds (lapse), sped up as much as that run’s wait needs. A loop’s own spend (holds, pace, lapses) is held to its maximum at parse time, and the recording may run 15% past it for the lab’s speed, naming the steps the lab stretched when it does. A step’s expect names the text its beat’s frame must show, checked against the text on screen inside the frame, and each loop gets a storyboard of one still per beat. A capture-only stylesheet hides the lab banner and nothing
else. Preconditions fail before the lab
starts, and a setup that names a component the lab does not have fails before the first shot.
Nothing in the console says soon (#2445)
Section titled “Nothing in the console says soon (#2445)”The console no longer shows an unfinished marker. The sidebar’s Dashboards, Learn and Declared
entries (stub pages behind a soon tag) and the orphan /log-types stub are gone, with
SectionStub, the Soon component, the catalog table’s soon slot flag and CATALOG_STUB_PATHS.
Dashboards and Learn return as live entries when #2449 and #2450 ship; Declared waits for the
declared projection. The outpost drawer’s “driver fn soon” chip is gone: the Tasks column names what
the task runs today.
An address with no page now lands on its own Not found face (not a placeholder with a badge): the address that was asked for, links to Home and Explore, and the command-palette hint.
A guard (web/src/no-soon.test.ts) fails any rendered “soon” word, or “not built yet” / “not wired
yet”, under web/src, comments aside. Its allowlist is empty: Platform health’s unreported figures (#2446)
now read “outpost does not report”. The route smoke (web/e2e/routes.spec.ts) now asserts no route, the not-found
address included, and no outpost drawer renders the word.
Omnibot says when it plays a recording and answers only what was recorded (#2443)
Section titled “Omnibot says when it plays a recording and answers only what was recorded (#2443)”A lab with no live model plays an omnibot recording, and it played its default turns for any question: asked “Which alarm is worst?”, the panel read the meeting 405 video bar and proposed writing a tag, with no text answer. A demo audience saw a wrong answer rather than a replay.
A recording can now name its prompts, and the lab’s two do. The server refuses any other message
with a typed 422 (“This lab plays a recording; connect a model to ask your own question”) before it
touches the conversation, and GET /assistant/conversations reports live, replay or none
with the recorded prompts and nothing of a model’s configuration. The console shows a Recorded demo
note, the prompts as chips that play to their answer, the server’s refusal with the chips again for a
question of its own, and marks the recording’s write on its confirm card. The empty panel is one line
on what omnibot does, the chips and the page it will read. With a live model none of this appears.
Decision: ADR-2443. Regression tests: TestOmnibotReplayRefusesAMessageItDoesNotAnswer,
TestReplayAnswersOnlyItsRecordedPrompts and the panel’s replay cases in OmnibotPanel.test.tsx.
Omnibot’s tool calls fold into a collapsed thought block (#2422)
Section titled “Omnibot’s tool calls fold into a collapsed thought block (#2422)”The panel used to show each tool call as a full card, so a short answer sat under a wall of detail. The reasoning and tool calls of a turn now fold into one collapsed block, in order, with the answer below it. Collapsed it is one line: what is happening while the run is live (“Running list-components…”, “Waiting for you on …”), then “Thought · 3 tool calls” once settled, with an error icon and ”· 1 failed” if a call failed. Expanded, each call is a slim row (tool, a short argument summary, state) that opens to its full input and result; nothing is open by default.
Grouping, the summary line and the failure test are pure functions in web/src/lib/assistant.ts
(groupThoughts, thoughtSummary, stepFailed), so a run resumed after an ask groups the way a
live one does. The AG-UI result event carries no error flag, so a call counts as failed when it was
declined, its result is plain text rather than JSON, or the JSON has an error key. The block shows
no elapsed time yet (“Thought for 6s”); that needs timestamps on the events.
One time range, held in the address, governs the system page’s charts (#2304)
Section titled “One time range, held in the address, governs the system page’s charts (#2304)”A page’s time range is now one primitive, web/src/lib/time_range.ts: a pure parse, serialize and
resolve over the URL (?range=1h|6h|24h|7d|30d, or ?from=&to= in RFC 3339 for an absolute
range; absent is 24 hours, and anything unparseable falls back to it without throwing), plus a
useTimeRange() hook over the router’s search params. TimeRangePicker is its Kobalte control,
and TabRail gained an end slot that carries it outside the tablist.
The system page is the first consumer: the Data section’s sparklines and charts read the picked
range instead of a hard-coded day. A preset reads the series route’s hours at a step that keeps
each chart a few hundred buckets wide (a day stays at five minutes, so the default load is the
read it always was); an absolute range reads through /views:run with from, to and
step_seconds, since the series route only counts back from now. Activity’s reads (health history,
events, logs) still have fixed windows, so the control is offered on Overview only until they can
honor a range.
Platform health folds to a screen and has one name (#2446)
Section titled “Platform health folds to a screen and has one name (#2446)”Platform health was 13,215 px tall, ended in an unbounded simulator device table, and wore three names: Status in the sidebar, STATUS in the top bar and Platform health on the page. It now reads Platform health in all three, from one constant the nav test holds (ADR-2446).
Every section folds to one line, its reading and the one number that matters (the end to end loss
and its worst hop, a server’s open alarms and the panels they flag, how many outposts are up, the
worst gap the simulator sees), and opens on demand. The open sections are the open query
parameter, so a reload keeps them, and a closed section mounts nothing, so a folded page binds no
series stream. The summaries are pure functions of the view the page already holds; the page adds
no figure and no threshold.
The device table is a filtered page of 25 rows, with each device’s system and location beside its
name, so two amp-1 read apart (#1724; GET /views/platform/simulation carries system and
location_path per device), a State column that is never blank, and cells that line up with the Device
column. The second Lab instance badge is gone (the shell’s banner says it), and Queue depth and
Busy workers, which only ever read “not wired yet”, are removed: the outpost’s command queue
depth is already a column of the outposts table.
Retyping a location checks its children’s placement too (#1854)
Section titled “Retyping a location checks its children’s placement too (#1854)”Retyping a location in place was checked against its parent (#251) but not against its children, so
a building holding a floor could become a room and strand the floor under a parent its type refuses.
UpdateLocation now also checks every direct child when location_type actually changes: each
child type’s allowed_parent_types must admit the new type, or the request is the same 422 as a
move (<child type> is not allowed under <new type>) and nothing is written. A restated type stays
a no-op, and grandchildren are not checked. ADR-0030 records the rule.
Single sign-on is decided before it is built (#2361)
Section titled “Single sign-on is decided before it is built (#2361)”ADR-2361 settles how a person signs in through an identity provider, reversing ADR-0004’s oidc
deferral: an oidc credential keyed iss|sub (then saml) that is a link, not a session; linking
by an admin under the takeover guard or by the person, never by email; OIDC with PKCE first, through
internal/egress under the install’s allow list; IdP group claims syncing only IdP-sourced
memberships and never reaching an owner grant; removal at the provider ending every SSO-origin session and API token at the first 15-minute re-check the provider refuses, not instantly, with no SCIM; one provider per install, shaped so a second is additive; owners keeping password sign-in as break-glass; one
sso settings namespace with the client credentials in an oauth2-client platform secret; and one
JWT verifier shared with the Cloudflare Access trust of #81. ADR-0019 notes that a link carries no
expiry. The identity and access page points at the decision; #2362 to #2365 build it. No code.
The Alarms page is the fleet’s alarm queue (#2333)
Section titled “The Alarms page is the fleet’s alarm queue (#2333)”/alarms stopped being a stub. It lists every active alarm the caller can read, worst severity first, one
row each with its component, systems, location, raised-at and acknowledged and snooze state, filterable by
severity, location subtree, ack state and snooze state, with the filter kept in the address. Acknowledge,
Snooze or Unsnooze and Troubleshoot with omnibot work from the row, gated as on the component’s panel, and
the queue polls at the leaf cadence and refreshes on any acknowledge or snooze.
GET /alarms gained the row fields location, location_path and systems (read in the one scoped query
and one batched path walk, not per row), the filters severity (repeatable), location, acknowledged and
snoozed, and a keyset cursor (page_token, next_page_token) on the same worst-then-newest order, so a
queue of a thousand pages rather than truncating. omniglass alarm list and the MCP tool take the same.
The CLI generator learned repeatable (array) query parameters to carry --severity.
No index was added: the existing open-alarm index serves the scoped read, and over the new storm devseed
scenario (the large fleet with an alarm on one in three components) the first page returns in about 18 ms,
a severity filter in about 20 ms and the unacknowledged-and-not-snoozed filter in about 290 ms, against a
2 s budget the test enforces (TestAlarmQueueAtStormScale).
Live is a poll: there is no alarm stream and the ingest tail does not carry rule-derived transitions. Bulk acknowledge is deferred, and the drill to the triggering sample is #2360.
The Alarms page reads cleared alarms and how long each lasted (#2426)
Section titled “The Alarms page reads cleared alarms and how long each lasted (#2426)”GET /alarms takes state (active, the default, cleared or all) and since / until (RFC 3339),
bounding the overlap of an alarm’s raised-to-cleared interval with the range: raised at or before until and
still active or cleared at or after since, so one raised before the range and open in it is kept; since
after until is a 400. Permission and scope are unchanged, and the keyset cursor pages a history the same way
it pages the queue. The names and semantics follow the timeline work’s component and system alarm reads (a012ff40f), which land separately. Rows gained
system_ids, parallel to systems, so the console links the one system rather than a name two locations
share, and a component placed only through its system is now named at that system’s location instead of a
blank (attachSystemLocations: one query and one batched path walk for the page).
The page gained an Open / Cleared / All control held in the address (?state=), Cleared and Duration columns
(Duration counts up for an open alarm and is sortable), a cleared row opening the same drawer with Lasted,
and a cleared row of a component’s Recently cleared list and a system’s Other alarms reading lasted 12m from
the one durationText. The lifecycle walk’s cell fixes ride along: System and Location cells link, the acked
badge says who acknowledged, and the snooze pill keeps its words on one line.
The three-way control is the SegmentedControl wrapper from claude/feat-primitive-wrappers (#2485), taken
as the one file (and its test) so the PR does not carry that branch’s migration; it merges cleanly when that
branch lands. No migration, no index: the history reads the same alarm table the queue reads.
The boot audit names dialed endpoints stored before the target check (#2249)
Section titled “The boot audit names dialed endpoints stored before the target check (#2249)”Bare dialed endpoints stored before the write-time target check (#1187) can hold host and port
keys, no target, or a target with no port on a transport that has no default. The outpost skips
such a task forever, so the endpoint’s reachability never reads and nothing said why.
Following ADR-1100’s pattern for an invariant that only gates new writes, the boot audit now runs
checkTarget over every stored bare dialed endpoint that has params and logs each one that fails,
naming the endpoint, its transport and the fix. Rows that pass are untouched, and so are failing
ones: the audit only names them (a rewrite could not know the intended address). Regression test:
TestStoredEndpointTargetViolations in internal/storage. An endpoint created with no params at
all stays #2228.
The catalog’s pages share one header, form order and footer shape (#2431)
Section titled “The catalog’s pages share one header, form order and footer shape (#2431)”A live audit of the twenty catalog pages found small drifts that together made the catalog look unfinished. Each is fixed in the shared primitive, once.
- The overview’s cards size to their content: daisyUI grows a card-body paragraph, which handed the tallest card’s surplus to the copy and pushed Telemetry’s counts 400 px down. The copy no longer grows and the grid aligns cards to their start.
- A list with no New button holds the same bar height as one with it (the filter row reserves a button’s height), so Templates and Secret types sit level with their siblings.
- While chips filter, the filter bar reads
n of m. A Templates slot opened from the sub-rail therefore shows its kind chip and5 of 22, not a bare list that disagrees with the rail. - An empty list shows its empty state alone, with no column headers above it (calc rules, empty).
- Every catalog create form opens on Label, then the derived Name, then its kind-specific fields,
through one
IdentityFieldscomponent with one set of hints. Five forms that led with Name, and two that wedged a data type between the pair, now match. - A locked official row draws one note, “Official, read-only”, in place of greyed Edit and Delete. Secret types, whose API has no write route, say so in the same note. A forkable official row keeps its live Edit and shows the note in place of the dead Delete.
- Below 1100 px the catalog sub-rail folds behind one button naming the current section.
Guards: catalog_create_order.test.tsx (the field order on every catalog page),
catalog_readonly.test.tsx (no disabled button on a kind whose generated route table has no write
route), and the footer-shape and note cases in BladeStack.test.tsx. The event rule form keeps its
own order for now (its own issue). The /log-types stub, item 3 of the issue, is removed by #2505.
The command form offers a command’s values and says why none can reach (#2466)
Section titled “The command form offers a command’s values and says why none can reach (#2466)”Issuing a command no longer needs outside knowledge. The form’s value control is generated by a
pure function (lib/command_form.ts, schema in, control description out) from the type the command
targets and from its own params_schema: an enum is a select (set-power offers on, off and
standby, which its property type already declared and the form ignored), a true/false enum or a
boolean is a switch, a number carries its range and unit and is refused outside it in TypeScript
(never a native min/max), and free text is left for a free string. A metric type declares no
range, so a ratio reads 0 to 1 and a percent 0 to 100 from its unit. A command with params (a
PDU’s outlet) now sends them; before, the form had no field for them.
The empty Commands panel names its cause: the drivers its endpoints use that bind nothing, the
drivers that bind commands (its product’s first), and an Add an endpoint action. “Send command” joins
AlarmActions as a member of the one group (show.command), gated on command:issue and on a
reachable command through the same createBoundCommands the panel’s Issue button asks. The
send-a-command-from-an-alarm walkthrough trips a display off through the Simulation API surface and
sends set-power from the alarm’s row until it clears.
Deferred: linking a command to the alarm it cleared, in both directions. The alarm and the command share only a component and a time, so the join is a server-side correlation, which the timeline work (#2425) owns.
The command palette finds locations, systems, components and catalog entries (#2444)
Section titled “The command palette finds locations, systems, components and catalog entries (#2444)”Ctrl-K used to search only the navigation. Typing a name now also lists the locations, systems and
components that hold it, and the products, drivers, rules and metrics, in groups, each fleet hit
with the locations it sits under so the many same-named components are told apart. Enter opens the
highlighted row (a fleet entity at its page, a catalog entry at its drawer address through
drawerHref); Ask omnibot stays the last row and is never the default when anything matched.
One route, GET /search, answers it. The three fleet kinds are matched in the database inside the
caller’s own read scope for each kind (the same scoped list walk every list uses, with the match and
the per-kind limit applied in SQL), so nothing outside the scope can appear and no collection is
fetched to the browser. The catalog kinds are small platform-wide lists, gated by their own read
permission, matched on the server. Typing is debounced and each keystroke cancels the request
before it.
The palette stops being a hand-rolled combobox: a new Search wrapper over Kobalte Search (list
rendered inside the dialog, first row the default, Enter takes it) is its field and list, which
removes one entry from the purge epic (#2488). Kobalte keys every collection section "", so only
one section heading survives a render; the wrapper draws each group’s name on the group’s first row
instead and reads it to a screen reader.
Recent items are kept in sessionStorage under the person’s id, because the settings engine has no
per-user rung yet (the user tier is a fast-follow in the settings architecture); they last for the
tab’s session.
The impaired-device walkthrough fits its budget (#1726)
Section titled “The impaired-device walkthrough fits its budget (#1726)”watch-an-impaired-device ran 54.6 to 61.1 s against the 60 s demo budget, so about one run in
three failed make demo. The device row’s impaired badge, a separate step that usually passed at
once, is folded into the gap step: that step now waits for the snmp gap read as impaired and for
projector-1’s badge together, and its caption names both. The walkthrough keeps the whole story
(the gap opens as impaired, then clears after Repair) in ten steps. Six recordings of the new
script ran 49.5 to 54.0 s. The bracket floor (1 s) and the page’s 5 s poll stay as they were, so
the real-time waits still set the spread. The docs copy under docs/public/walkthroughs/ is
re-recorded.
The lab banner is a thin strip and the console fits the window (#2433)
Section titled “The lab banner is a thin strip and the console fits the window (#2433)”The lab notice was 37 px of padded text above a sidebar that was still a full viewport high, so the
page was 37 px taller than the window: the sidebar’s user chip was clipped, the document scrolled and
the notice scrolled away. AppRoot is now exactly one viewport high (h-dvh): the lab and
impersonation strips take their own 24 px line and the routed screen takes the rest (min-h-0), with
<main> as its scroll region, so the document never scrolls and a strip never leaves the screen. The
lab strip is one line (badge plus “Disposable data, well-known login.”) with the long explanation in an
InfoTip. The impersonation strip moved into AppRoot beside it, the same height, so it also shows on
the sign-in page. The sidebar is as tall as the shell instead of h-screen.
Rule for overlays: a drawer, the command palette and omnibot are fixed against the viewport and cover
the whole window, strips included, dimmed with the shell; the strips are never raised above them.
Proven by web/e2e/shell-fit.spec.ts at 1320x860 and 1024x800, with and without the impersonation strip.
The lab check holds platform components to the platform tier (#2553)
Section titled “The lab check holds platform components to the platform tier (#2553)”make test-lab failed on main because labcheck.Evaluate held the platform’s own components
(server, edge-hq) to the endpoint-driven built-in and collected tiers, yet they have no
endpoint by design and report platform metrics themselves. A platform component (product
omniglass-server, omniglass-node or omniglass-outpost) with no endpoint is now held to the
platform tier it carries: it must report at least one platform-class value. A fleet component with
no endpoint still fails. Regression test:
TestAPlatformComponentWithNoEndpointIsNotAFindingButAFleetOneIs in internal/labcheck. Not run
here: make test-lab on a real daemon (no lab in this run).
The lab measure’s delivery settle reads its window, not the table (#1947)
Section titled “The lab measure’s delivery settle reads its window, not the table (#1947)”While ingest was behind, lab measure re-ran ReceiptsQuery every 5 s for the whole
--settle-timeout, and the query window-sorted every ledgered row of telemetry_receipt (about 3
million on the 3,000-system soak), spilling to disk with parallel workers. The settle loaded the
database it was measuring for most of every run.
Two changes. The query now picks the boots that minted in the window from a partial minted index,
then reads each boot’s receipts at or above its first in-window seq, its lower neighbor and the
restart probe from a partial (boot, seq) index (migration telemetry_receipt_window_indexes), so
it costs what its window holds. And the settle polls the cheap backlog first and re-reads receipts
only when the consumer’s ack floor has moved past what the last read saw, since a batch lands only
as it is acked. Tests: the bounded query returns the old query’s rows on the fixture (the old query
kept as the oracle), its plan uses the new indexes and no sequential scan, and a settle whose floor
holds reads receipts once per floor advance.
The lab’s alarms are true: its faults are causes the rules judge (#2434)
Section titled “The lab’s alarms are true: its faults are causes the rules judge (#2434)”The dev fleet hand-inserted two alarms with no rule behind them (DSP 1, “No route to host on the
control interface”, and Display 1, “Lamp hours approaching end of life”) while the simulator served
both devices healthy, so the first alarm a demo opened was contradicted by the page it sat on. The
seed now raises no alarm. It seeds each fault’s cause, under a new faults fixture section, and the
rule that judges it, under event_rules: beside the simulator, DSP 1 is unplugged (the official
reachability-lost rule opens a High alarm) and Display 1 answers 400 ms late (the fleet’s own
response-slow rule, over 250 ms held 15 s, opens a Warning). Each impairment is set once, as the
device is wired, so a fault a presenter repairs on the Simulation page clears its alarm through the
rule and stays repaired across a restart. With no simulator (the docs’ screenshots) the cause is the
reading the fault began with, landed once through the ingest. The lamp-hours story became a slow
link: no simulated display reports its lamp, and pinning a value is #909.
The lab’s readiness, the lab-wide data check and the DSP floor treat an impaired device as broken on
purpose, and make test-lab gains a subtest that every open alarm has a rule, its event, a rule still
firing and (for reachability) a component reading down, and one that lifting a fault clears its
alarm. The degraded and storm scenarios keep their hand-raised alarm storm, now from
alarm_templates. A lab’s people (its owner dev, and operator) are seeded one subscription,
Fleet alarms, raised and cleared, to the console inbox alone, so the seeded faults light the bell; a
fleet seeded without the simulator (the docs’ screenshots) subscribes no one. The docs capture waits for every rule streak to settle before shooting. A second fleet rule, display-powered-off (a display’s
power-state reading off, warning, displays only), opens nothing on a fresh lab and makes powering a
display off raise an alarm that a set-power on command clears.
The list-components step card is bounded and says where each row is (#2261)
Section titled “The list-components step card is bounded and says where each row is (#2261)”The omnibot step card for list-components drew every row it was given, by label alone, so a fleet
with 37 “Touch Panel 1” rows showed 37 identical links. The card now draws the first 10 rows behind
a “Show all N” toggle, and each row carries its place (location and primary system) from the
result, which already includes both fields, so no API or generated-client change. Regression tests:
caps a long list behind a Show all control and tells same-labelled components apart by where they are in web/src/components/OmnibotStep.test.tsx.
The operations and admin lists share one header, date format and drawer rule (#2447)
Section titled “The operations and admin lists share one header, date format and drawer rule (#2447)”Alarms, outposts, variables, secrets, users, roles, user groups, audit and files now open with the
Page header (title and one-line hint from the nav metadata). One formatter module owns every date:
a list shows the relative age with the absolute time and exact instant on hover (the Time
component), and a guard test forbids the toLocale* calls anywhere else. The audit change table
humanizes field names (“LastOrphanedAt” reads “Last orphaned at”, the recorded key on hover) and
shows instants as dates. Filter placeholders share one casing. The drawer width rule (wide when the
body carries a table or a timeline) and the date rule are stated in the design system. Roles says in
its hint that the roles are built in and keeps the filter bar’s height; an empty user group list
teaches and offers New user group; secrets show the type by label with the name beneath it in the
list, the drawer and the form, and the drawer shows the secret’s own name; the profile lists role
grants and groups as rows and spells the > wildcard as “Every permission”; file rows carry the
open chevron. The simulation drawer (item 9) was rebuilt by #2510 and is not part of this change.
The outpost worklist shot waits for the outpost-silent alarm (#2291)
Section titled “The outpost worklist shot waits for the outpost-silent alarm (#2291)”platform-health-outpost-worklist renders the same outpost table as platform-health-outposts but
had no wait for the lab’s outpost-silent alarm, so a capture landing before the alarm read a healthy
row tone and pill where one landing after read outage (the 4.4% failures of #2168). It now waits,
after its click and before its hover, for the outage pill, failing with a message naming the alarm.
The tolerance stays zero. The committed baseline PNGs already show the outage state: a CI capture
taken after this change matched them pixel for pixel, so none needed regenerating.
The rule form finds the metric, says what is missing and previews in plain words (#2432)
Section titled “The rule form finds the metric, says what is missing and previews in plain words (#2432)”Writing an alarm rule is a step of the demo lifecycle, and the form tripped a first-time operator at each turn. Reads was a native select of 176 metrics and properties with no search; Watches components a select of labels that repeat (“Display 1” forty times); Create rule greyed with no reason; and the preview ended “Sustains are ignored” right after the operator typed a sustain.
Both pickers are now the Picker wrapper. Reads filters as you type, groups metrics and properties
under headings (a group on the wrapper’s options, new here) and shows label, name and unit; when the
rule watches one component its own metrics and properties lead. Watches components shows each
component’s location and system. A submit with gaps names every missing field in one sentence, focuses
the first, and each name goes to its field (lib/form_problems.ts and FormProblems, written over any
form’s errors record so FormActionBar (#2440) can lift them). The preview is a pure function from the
server’s answer to words (lib/rule_preview.ts): the series by owner and metric, what the rule would
have done in the operator’s own condition, and, when a sustain was typed, plainly that the preview
judges each sample alone and cannot hold it. That is a server limit (/event-rules:preview ignores
sustains by design, sustains_ignored), so the UI says so and the server side is filed. The rule’s
drawer states Fires and Clears in prose with the expressions behind Show expression, links to the
alarms page filtered to the rule (a client-side rule filter on the loaded rows, no server parameter
yet), and an alarm links back to its rule. Alarm on this on a component’s vitals opens the form
with Reads and the component filled in through /event-rules?new=1&reads=&component=.
Decision: the label follows the name on the create form (catalog-cpu-hot suggests Catalog cpu hot) until the operator writes one, rather than humanizing at render. The identity cell’s rule that a
name is never re-cased into a label at read time stands; the suggestion is stored, visible and
editable.
The Simulation page trips and clears a fault in one click (#2462)
Section titled “The Simulation page trips and clears a fault in one click (#2462)”Breaking a simulated device from the console took a raw HTTP request builder: pick
POST /api/display/power, hand-edit the body to {"power":"off"}, Fire. Each simulated component now has
a Break menu on its row and a Faults section in its drawer, generated from its profile: power
off, on and standby, unplug and replug, a quick set for each state path an HTTP route sets from a body
field to a fixed list (Input: hdmi2, Mute), and Restore. The drawer’s shared fire box is gone: each
operation of the API surface is a row that opens in place to its request and its answer.
What is broken shows as a chip with its words, its age and a clear, on the row, in the drawer, and on the
component’s page beside its health. It reads the simulator’s own account: a route’s mutation enum is
now a sets entry on the surface, and the simulator reports each device’s settable paths held off their
profile defaults in every batch (faults on the fleet and component reads, with impairment_since), so a
reload shows them. The age of a held path counts from when the server first heard it, so a server restart
starts it again. A command’s mutations are not quick sets yet.
The list filters as you type (bare words search name, location, product and address), pages at fifty rows,
and keeps its filter in ?chips= beside ?c=, so a deep link reproduces the view. ListShell gained
opt-in live and pageSize, and FilterBar an onDraft seam; no other list changes.
The drawer is rebuilt on the shape of the archived lab console’s: Faults on top, then Info (with a state
form generated from the profile’s quick sets), Impairments, Operations, Behaviors (behaviors on the
component read) and Events. Events (#2524) and terminal sessions (#2525) need new simulator capability and
are filed; their tabs say so.
Stacked on #2499 (the component detail body) and the primitive wrappers (claude/feat-primitive-wrappers).
The view seam no longer double-delivers a row (#2357)
Section titled “The view seam no longer double-delivers a row (#2357)”TestReadViewsSeamHasNoGapOrDuplicate failed once under load with a sample seen in both a
snapshot’s history and the tail after its cursor. The cause was a real seam duplicate, not a test
race: Hub.Commit makes the rows durable in the database and only then publishes them to the ring,
and Mark compared only the sequence number. A snapshot opened after the database commit but
before the publish held the row in its history, yet Mark returned a cursor before it, so the
row arrived again on the tail.
The hub now counts commits begun and in flight. Mark accepts an attempt only when no commit was
in flight as it began and none began during the snapshot; otherwise it retries (and returns the
retryable busy error after the existing retry budget). Regression test:
TestMarkWaitsOutACommitDurableButNotPublished in internal/tail.
TreeList rows no longer nest controls (#974)
Section titled “TreeList rows no longer nest controls (#974)”The route probe reported axe nested-interactive (serious) on /files and every other TreeList
consumer: each row was a <tr role="button" tabindex="0"> holding the expand toggle and the
Open / Edit / Delete buttons. A role="button" element must not contain focusable descendants.
The fix is in the primitive. The row is no longer a button; the name cell is a real <button>
that opens the node, so a keyboard user tabs to one primary control and then the row’s actions.
Pointer users keep click-anywhere through the row’s onClick. TreeList.test.tsx asserts no
role="button" element holds a focusable descendant and that the name control opens the node.
A new system’s uptime divides by the time it has existed (#2435)
Section titled “A new system’s uptime divides by the time it has existed (#2435)”The Activity tab’s uptime card now measures the healthy share of the entity’s recorded life
inside the range (max(range start, first_recorded_at) to now), through the pure uptimeOver
in web/src/lib/uptime.ts, and its label names the window when it is shorter than the range.
With no health recorded it says “no health recorded yet” rather than a percentage. A health
stretch that held under half a second no longer lists as its own row (the 0 s “Commissioning”
entry). The history strip gains start and end labels and a per-segment hover (verdict, from, to,
duration), and the alarm-raise triangles now sit on the strip’s own axis with a legend.
Log tail ids pair by construction; view limits derive from constants (#2258)
Section titled “Log tail ids pair by construction; view limits derive from constants (#2258)”writeLogLines no longer trusts the sequence to draw ids in the insert’s row order: like InsertEvents,
it draws each id beside its ordinal and inserts it, so a log line reaches the tail under its own
component. The /views:run and /views:watch descriptions are built from the constants they restate,
a test holds the struct-tag maxima to those constants, and the views and roadmap pages and ADR-1830 now
say a reset names one or more bindings, the hub opens one watch per 32 bindings, and the view binding
has shipped.
Watching a rule raise an alarm holds the page still (#2006)
Section titled “Watching a rule raise an alarm holds the page still (#2006)”The watch-a-rule-raise-an-alarm walkthrough scored over the 0.1 layout-shift budget from two
shifts the operator did not cause. The component page keyed its reads on the route param, so the
name-to-uuid redirect changed every key, sent the sections back to loading and collapsed two of them;
they now key on the resolved component id, so the redirect refetches nothing. The system page
mounted the “Why” strip only when an alarm opened, pushing the body (and the map) down; the slot is
now held while quiet, with a “No active alarms” line the same height as a one-alarm strip.
Regression tests: does not refetch its reads when a name address resolves to the uuid
(ComponentLeaf.test.tsx) and the quiet-slot assertions in SystemZoom.test.tsx. The probe
score over three runs was not measured here (no lab in this run).
A form that cannot be submitted says which field is missing (#2440)
Section titled “A form that cannot be submitted says which field is missing (#2440)”The system, location and component create faces greyed Create and said nothing. FormActionBar now
owns one rule: the primary action stays enabled, and a binding’s problems turn an attempt (the
button, or Enter in a field) into a sentence beside the actions naming each missing field, a mark on
each, and the focus on the first. createFormActions carries the attempt (trigger, attempted)
so both entry points share it. The event rule form moved from its own sentence above the form onto
the bar. The create faces drop the greyed “Tags: available once created” block, so the action row
is last. rail-ownership.test.ts gains a guard that fails a form drawing its own submit button,
with a short allowlist (Login, ForceChangePassword, TimeRangePicker, Omnibot, Profile). Forms that
still bind disabled for a missing field keep it until they move to problems. Tests:
EntityForm.test.tsx, Rules.test.tsx, the Systems/Locations/Components create tests.
A severity level declares its health effect (#2558)
Section titled “A severity level declares its health effect (#2558)”severity_level gains health_effect (none, degraded, outage), a forward-only migration
that backfills existing rows to today’s behavior and a boot seed that declares the official five
(info none). health.ComponentValue takes each open alarm’s declared effect and OutageRank is
gone. The seed recomputes the components behind a level whose effect it changed. /severity-levels
returns and accepts health_effect; outage stays as a deprecated alias. The severity catalog page
shows each level’s health effect and the form picks one (preselecting what the rank would derive);
an alarm whose level declares none says on the component that it does not affect health.
Aiming an endpoint at a simulated device adds no phantom simulation (#2461)
Section titled “Aiming an endpoint at a simulated device adds no phantom simulation (#2461)”Every component with an endpoint on a simulator’s outpost read as a simulated device, so a hand-built
component aimed at a simulated device’s address was handed to the simulator as a second device at the
same address: a Simulation row with 0 hits, status failed and the wrong profile, and a “Simulation:
failed” card beside a green collection. OutpostSimDevices now keeps one device per address (the
earliest component owns it) and records later ones as Aliases, so the simulator is never handed
them. The component’s simulation read resolves an alias to the owner’s device and carries served_by;
its card says so and its drawer opens the owner’s. Remove now deletes the component’s endpoints first
(the server refuses to delete a component that owns one), after one confirmation that lists them.
Not done here: the Add simulated component form’s product label and system field. Tests:
TestOutpostSimDevices, TestComponentAimedAtASimulatedDeviceIsServedByIt, Simulation.test.tsx.
The Architecture section gains collection and the edge (#2320)
Section titled “The Architecture section gains collection and the edge (#2320)”Seven Architecture pages leave Being rebuilt, rewritten fresh against the code and badged Partial:
Data collection, Transports, Outposts, Self-monitoring, Messaging, Workers and Simulation. Data
collection is split three ways: the per-transport wire behavior moves to a new Transports page, and the
platform’s account of itself (the outposts’ and the server’s own figures) joins the outpost
self-report on a new Self-monitoring page. Every link into a moved section is repointed. Each unbuilt
part sits in a design fence naming the open issue that tracks it, and drifted claims (a transport
registry that listed mqtt and syslog, a live console fenced as unbuilt, missing bus subjects) are
corrected to what ships.
The Architecture section gains the fleet model: core entities, data model, cascade, variables, properties and commands (#2320)
Section titled “The Architecture section gains the fleet model: core entities, data model, cascade, variables, properties and commands (#2320)”Six more Architecture pages are rewritten fresh from the vocabulary and checked against the schema and
routes: Core entities, Data model, Cascade, Variables, secrets and declared values, Metrics and
properties, and Commands. The data model is the generated ERD and is badged Built; the other five
are Partial, each unbuilt part fenced with the issue that tracks it. Three gaps had no issue and now
do: a unit catalog (#2613), fusing several sources of one key (#2614), and a secret’s rotation,
expiry and validity health (#2615). Fences that named the closed telemetry epic #430 now name these.
The rewrite corrects drift the old pages carried: a location’s type is required, not optional; the
disagree operator is unbuilt (#2609), not a working criteria function; and the $var: and $sec:
tokens are parsed but spliced by no consumer yet. The pages keep their URLs and every heading another
page links to, and leave the Being rebuilt sidebar group.
The Architecture section gains health and automation: health, alarms, calculations, expressions, templates and time (#2320)
Section titled “The Architecture section gains health and automation: health, alarms, calculations, expressions, templates and time (#2320)”Six Architecture pages are rewritten fresh from the vocabulary and checked against the code, each
badged Partial and listed in the live section: Health, Alarms and actions, Calculations, Expressions,
Templates and Time. Four of them were design sketches whose capability has largely shipped, so they
leave the sketch list with the floor the code has reached. Every unbuilt part sits in a fence naming the
open issue that tracks it; four had none, and are now #2607 (service levels and KPIs), #2608 (unknown
and staleness in the health rollup), #2609 (unit conversion and divergence functions) and #2610 (trust
for templates from outside the binary).
The rewrite corrects drift the old pages carried: a calc rule’s unchanged metric output is written again once it is 12 hours old, so a steady value stays inside retention, and Time now describes the server’s built loops (the sweep, the reconcile, the calc and notification ticks, the ages that make silence an alarm) rather than only the clock still to come. Design that a decision record already diverged from (a change-data-capture publisher feeding JetStream consumers for calc rules and notifications) is dropped rather than fenced. Calculations becomes an MDX page so its storage tables render from the generated schema. Every page keeps its URL and the anchors other pages link to.
The Architecture section’s last loose ends
Section titled “The Architecture section’s last loose ends”The Architecture pages already live in the badged section and the sidebar’s Being rebuilt group holds only Contributing. This closes the loose ends: the one fence that named closed #430 now names #2611, and ADR-0049 links Standards instead of the retired capabilities guide.
The Architecture section’s platform pages: storage, identity and access, settings, scaling (#2320)
Section titled “The Architecture section’s platform pages: storage, identity and access, settings, scaling (#2320)”Four Architecture pages are rewritten fresh from the code and badged Partial: Storage, Identity and
access, Settings, and Scaling and deployment. Identity and access now opens with the two
authorization invariants (a permission on every route, ABAC scope injected by the Storage Gateway on
every query) and the tests that hold them. Each page fences its unbuilt parts with an open issue: the
old fences that named the closed #430 now name #2611, and two new issues track an outpost’s own bus
credential (#2616) and running more than one server (#2617). The pages keep their URLs and the
anchors other pages link to, and leave the Being rebuilt sidebar group.
The Architecture surfaces are rebuilt: API, UI, views and AI (#2320)
Section titled “The Architecture surfaces are rebuilt: API, UI, views and AI (#2320)”Four Architecture pages are rewritten fresh from the code and badged Partial: API, UI, Views and AI.
The API page is the conventions every route follows and links the generated reference rather than
restating routes; the per-resource detail it used to carry lives on the subsystem pages and in the
reference. Views and AI leave the Design sketches list, since the view binding and omnibot are built;
named views, the agent’s fleet query tool, the dashboard canvas and the assistive-to-operational AI
spectrum stay fenced with their issues. The UI page drops the three design blocks that still tracked
the closed #523.
The frozen architecture glossary is deleted: the generated glossary is the
one list of terms, /architecture/glossary/ redirects to it, and its inbound links are repointed.
The fleet label says fleet
Section titled “The fleet label says fleet”The area:estate label is renamed area:fleet, the word the vocabulary uses, and the labels page
lists it. GitHub carried the rename to all 76 issues that wore the old label.
A component’s Configure tab leads with Edit (#2439)
Section titled “A component’s Configure tab leads with Edit (#2439)”The Configure face drew its action row (Edit, Delete, Cancel, Save changes) as a footer, so on a
component with every panel open Edit sat about 2,800 px down. The row is now the face’s rail, the
first element on the tab in a page and in a blade. The Properties panel said “Nothing resolves for
this component yet” under a Reconciliation table listing properties, because it filtered out keys
that are only observed or told; the line now shows only when the owner has no rows at all. Effective
values hides platform-band secrets (the sixteen sim-* secrets every component inherits) behind a
“Show platform values” toggle, closed by default, and the Alarms panel states its explainer once.
Not done here: collapsing every section behind a one-line summary, and a “since” line for a healthy
component (it has no transitions read to draw one from). Tests: ComponentDetail.test.tsx
(Edit precedes the form on page and blade), PropertiesPanel.test.tsx (empty line),
ResolutionPanel.test.tsx (platform toggle).
The actions then moved onto the tab rail itself (#2439 review): a small Edit and a ⋯ menu holding
Delete at the rail’s right end, Cancel and Save in the same place while editing, so the tab has no
separate action row. Tests: ComponentDetail.test.tsx (Edit and menu inside the rail, Delete
confirms, edit swaps to Cancel and Save).
The docs-shots recapture survives a queued PR and skips noise (#2602)
Section titled “The docs-shots recapture survives a queued PR and skips noise (#2602)”The recapture job no longer fails main when its open PR is in the merge queue: it pushes to a fresh
claude/docs-shots-recapture-<short sha> branch and opens a new PR (or exits green when the queued PR
already carries the shots). It commits only the shots whose masked baseline changed, plus their clean
twins, and changes nothing when no baseline moved. The decisions live in scripts/docs-shots-plan.sh,
unit-tested in scripts/docs_shots_plan_test.go.
Events and logs render through one occurrence row (#2437)
Section titled “Events and logs render through one occurrence row (#2437)”A system’s Activity tab and a component’s now list events and logs through one OccurrenceList
(section head, one filter bar) and one OccurrenceRow, a one-line grid whose fields line up down the
list: relative time (the absolute on hover), severity or event key (info muted, warning and above
colored), the source on a system’s list only, a log’s facility, and the message truncated with the full
text on hover. The row is a button (aria-expanded); a click opens source, facility and attributes in place. EventsPanel, LogsPanel, LogFilters and the system page’s monospace log table are gone;
the outpost’s self-logs use the same list unfiltered. A 64-hex task id in a message renders as a short
labelled reference. The filters narrow the server read: the events reads gain key, source and q,
the logs reads gain q. Not built: the page range (#2304) on these lists, which still read a fixed 24
hours, and live append (#1830).
go.mod is the only place the Go version is written (#2596)
Section titled “go.mod is the only place the Go version is written (#2596)”The Dockerfile pinned golang:1.26.0-bookworm while go.mod carried its own copy, and the golang image
defaults to GOTOOLCHAIN=local, so a go.mod bump failed the image build. The Dockerfile now declares
ARG GO_VERSION with no default and builds FROM golang:${GO_VERSION}-bookworm; the Makefile derives it
with scripts/go-version.sh (the toolchain directive, else go) and passes it to make and
make image. scripts/check-go-pin.sh is the drift check (a hard-coded golang image, or a docker build
without GO_VERSION); make preflight runs it. Tests: scripts/check_go_pin_test.go.
CI does the same: the arm64 smoke and multi-arch steps in image.yml and the release image step in
release.yml pass GO_VERSION from scripts/go-version.sh in build-args, and the arm64 smoke job runs
scripts/check-go-pin.sh --workflows. The ARG sits above the first FROM, since a FROM line only
sees global build args; the check fails on one declared after it.
Hover explanations reach the keyboard (#2486)
Section titled “Hover explanations reach the keyboard (#2486)”About 150 hover explanations used the native title attribute, which never shows on keyboard focus.
They are now the Tooltip wrapper: Button and Popover render one for their title prop (a disabled
button’s tip rides a focusable wrapper so it can say why), explaining spans and links wear it directly,
and a truncated value is the one Truncate helper. Elements that only repeated visible text lost the
attribute. A guard test (tooltip-guard.test.ts) bars a bare title= on an element, and
e2e/tooltip-keyboard.spec.ts tabs the alarms page, a component page and the catalog to a tip. Tests
read a tip through tipOf (test-tip.ts), which focuses the element as a keyboard user does.
Main recaptures the docs screenshots after a merge (#2561)
Section titled “Main recaptures the docs screenshots after a merge (#2561)”The docs-shots workflow’s recapture job runs on push to main and release branches: it recaptures
both shot sets and, if any changed, pushes them to claude/docs-shots-recapture and opens or updates
one “docs: recapture the docs screenshots” PR as the agents’ App, for the architect to approve.
scripts/docs-shots-guard.sh fails a PR that modifies, deletes or renames an existing shot; the
verify job runs it on every PR. docs-with-everything.md states the permanent rule, replacing the
interim note, and /ship-slice and /assess-ui no longer tell a PR to re-render shots.
CI builds once and runs only what a push needs (#2597)
Section titled “CI builds once and runs only what a push needs (#2597)”make SKIP_BUILD=1 (and make test-e2e, make lab, which depend on all) skips both docker builds
and only checks that omniglass:dev is loaded and bin/omniglass exists. On top of it, test.yml
gets a changes job (scripts/ci-changes.sh, tested) and a build job that makes the image and host
binary once with the gha BuildKit cache; e2e and smoke-lab load that build. A docs-only PR skips the
Go and web jobs, a web-only PR skips the Go ones, a draft runs the unit jobs only, and main, the merge
queue and a PR marked ready run everything. Required checks still report: e2e, smoke-lab and gen-drift
always run and pass when nothing needs them. image.yml publishes only (arm64 smoke on push and queue,
multi-arch push on main and release, an amd64 image for run:preview). agent-review waits for the test
checks on the same head and holds if they never finish; agent-fix merges main only for a conflict or a
red required check. Tests: TestMakeAllSkipBuild, TestCIChanges*, TestAgentReviewGate,
TestAgentSyncNeeded*. Divergence from the ticket: the multi-arch push does not run on merge queue entries
(a queue entry’s commit may never land); the arm64 smoke does.
Event and log rows share one grid and clip a long badge (#2642)
Section titled “Event and log rows share one grid and clip a long badge (#2642)”An event key such as collection-failed overflowed the 5.5rem badge slot, because truncate on a flex
badge does not clip its text, and an events list put its message at a different x than the logs list
beneath it, because only a log reserved a facility column. OccurrenceRow now lays both kinds on one
grid (time, an 8rem badge, the source where shown, then the message), so no row carries an empty slot and
the message starts at the same x in an events list and a logs list stacked on one page. A log’s facility
rides inline before its message instead of in a column of its own. The badge label clips in an inner span
with the full key on hover, and RuleLink caps a long rule name so it cannot squeeze the message. Tests:
OccurrenceList.test.tsx (the shared grid, no empty cell, the facility inline, the clipped badge; red
before the change).
make preflight runs the areas CI runs
Section titled “make preflight runs the areas CI runs”make preflight now sends the changed files through scripts/ci-changes.sh and runs only the
steps for the areas that come back (gen, web, go, docs), so a docs-only agent push no longer
waits on the Go suite. The agent-config guard still runs every time, and an unclaimed path still
runs everything. scripts/preflight_test.go holds each step to its area.
Not done here: stopping a preflight timeout after a landed push from leaving agent-fix red so that
agent-review holds. That change is in .github/workflows, which an agent run cannot edit; it is
left on #2629.
The reviewer answers thread replies and supersedes its old reviews (#2253)
Section titled “The reviewer answers thread replies and supersedes its old reviews (#2253)”agent-review.sh gains reply-gate, reply-prompt, reply-result, thread-of, supersede, rounds and
round-marker; each review opens with its head on the first line and ends with a round marker that agent-fix
counts, so dismissing old reviews does not reset the five-round park. A thread verified fixed resolves whether
advisory or blocking. Divergence from the ticket: the head SHA rides the verdict’s first line (not a line of
its own) so the body still opens with the blocking count that agent-trust.sh verdict and the tests read.
The workflow half (the pull_request_review_comment trigger and reply job, the supersede step, agent-fix’s
round count) ships as a patch in the PR body, since the build token cannot change .github/workflows.
Tests: scripts/agent_review_test.go (red before the subcommands).
A system’s alarm rows offer Snooze like a component’s (#2448)
Section titled “A system’s alarm rows offer Snooze like a component’s (#2448)”AlarmActions draws Snooze only for an alarm that carries snoozed_until, so the system page’s Why
strip, whose alarm rows come from the health read, could not offer it without also offering it on an
already snoozed alarm. healthAlarmBody now carries snoozed_until and snoozed_by (same names and
docs as the component alarm list; make gen), AlarmRow threads them, and the strip in SystemDetail
(the page and the blade render the same body, and acknowledge was already on) turns on Snooze, shows
the snoozed chip, and offers Unsnooze once snoozed. Tests: TestHealthAPI (the wire fields, red before
the struct change), system_zoom.test.ts, SystemDetail.test.tsx.
Advisory findings no longer block the merge (#2222)
Section titled “Advisory findings no longer block the merge (#2222)”agent-review resolves its own advisory threads right after posting a review (agent-review.sh advisory-threads
lists them, the post step resolves them). Advisories stay inline and readable; blocking findings still open
unresolved threads and request changes. Chosen over advisories in the review body (loses the line context) and
over auto-filed issues (one more ticket per review).
agent-build PRs open with a demo tag (#2345)
Section titled “agent-build PRs open with a demo tag (#2345)”The agent-build prompt has the agent build body.md from the PR template, fill Demo, run the demo tag
lint and open with --body-file. The expired-token path lints the body it opens from, using main’s copy
of the lint staged before the agent runs; a failing body keeps what the agent wrote and has only its demo tag
lines rewritten to demo: none (<reason>) (walkthrough-pr.mjs retag), since main’s copy does not know a
demo the PR adds. The rescue body’s tag is pinned by a test.
agent-fix replies on and resolves the threads it fixes (#2217)
Section titled “agent-fix replies on and resolves the threads it fixes (#2217)”agent-status.sh replies now answers every review thread the agent read, once per thread: Fixed in <sha>
and resolve for a fixed one, the reason and the thread left open for an unchanged one, and resolve for an
advisory finding the agent marks no_change_needed. The workflow fetches the PR’s threads, posts the replies
and resolves with the agent App’s token. The reviewer resolving its own threads that a later review no longer
raises landed with #2253.
agent-review skips a head it already reviewed (#2277)
Section titled “agent-review skips a head it already reviewed (#2277)”plan asks agent-review.sh seen before any wait or model call. A head with a completed review by an App bot
(not pending, not dismissed, with the round marker) is not reviewed again: a PR run re-reads the ruling so the
required check keeps reporting, a manual run stops. synchronize, review:deep and a dispatch with force: true
always review. The default branch’s scripts are now checked out before the decision.
The area labels match the labels page
Section titled “The area labels match the labels page”The live area:* labels and the labels page now list the same sixteen. area:node is renamed
area:outpost, the word the vocabulary uses (171 issues followed the rename). area:web folded into
area:ui, and area:ai into area:assistant; both old labels are deleted. area:ingest,
area:assistant and area:ci join the page’s list.
Builders self-review before every push (#2600)
Section titled “Builders self-review before every push (#2600)”The agent-build prompt names the self-review in order: /adversarial-review on the full diff, the neighbor
check, make preflight, then gh pr ready. agent-fix runs /adversarial-review on the commits of its own run
plus the neighbor check before its one push. /ship-slice step 5 and both prompts extend the neighbor check to
every UI label, term, flag, route or identifier the diff added, renamed or removed, old and new spellings,
across the whole docs tree.
Drafts skip the heavy path-filtered checks, and run:test opts one in (#2309, #2597)
Section titled “Drafts skip the heavy path-filtered checks, and run:test opts one in (#2309, #2597)”docs-build, docs-shots verify, migrations and the goreleaser snapshot guard their job on the draft flag
(reporting skipped), run on ready_for_review, and take run:test as a draft’s opt-in. run:test returns from
retirement with that one task. The rest of #2597 (build once, the changes job, unit-only drafts, arm64 and
publish off PRs, review gated on tests, agent-sync merging main only when needed) was already on main.
make release picks the next release branch from the commits (#2711)
Section titled “make release picks the next release branch from the commits (#2711)”make release reads the conventional commits on main since the newest release line branched, previews the
version, the commits that drove it and the release notes, and asks before creating release/<major>.<minor>.
Before 1.0 a breaking change bumps the minor. A patch creates nothing and lists the fixes to cherry-pick.
Every Node toolchain runs Node 26 from one pin, .nvmrc (#2170)
Section titled “Every Node toolchain runs Node 26 from one pin, .nvmrc (#2170)”.nvmrc holds the Node major (26) and is the only place it is written. Every setup-node step reads it through
node-version-file, the Dockerfile’s web stage is node:26-bookworm-slim, the session hook reads it, and
engines.node in web/ and docs/ asks for 26 or newer. scripts/check-node-pin.sh fails when any of them names
another major; make preflight and the image workflow run it beside the Go pin check. Node 26 no longer ships
corepack, so the docs scripts and pages call pnpm directly and the contributor prerequisites install pnpm 10.
The console installs with pnpm, one package manager for the repo (#2705)
Section titled “The console installs with pnpm, one package manager for the repo (#2705)”web/ moved from npm to pnpm 10, as docs/ already was. pnpm import carried web/package-lock.json’s resolved
versions into web/pnpm-lock.yaml unchanged, and package.json’s packageManager pins the exact pnpm version.
A dependency’s install script runs only when web/pnpm-workspace.yaml allows it under allowBuilds (esbuild, today),
and strictDepBuilds fails the install on any script the file does not decide, which replaces npm 11’s warning about
scripts it was about to run anyway. The workflows, the Dockerfile’s web stage,
the Makefile and the e2e scripts install with pnpm install --frozen-lockfile, and scripts/web_pnpm_test.go fails
on any npm install or script left for web/. Bun was weighed and set aside: vitest with jsdom, Solid’s Vite
transform, Astro and Playwright all target Node, and pnpm brings the install-script hardening on its own.
The docs-shots capture pins the raster path (#1860)
Section titled “The docs-shots capture pins the raster path (#1860)”The capture browser runs with --disable-skia-runtime-opts, so Skia no longer picks a SIMD path from the host CPU.
capture.sh logs the CPU model and the AVX2 and AVX-512 flags. The baselines committed before the pin are rewritten by
the next recapture.
Measured on an AVX2 host and a no-AVX host, the same tree with and without the flag
(#1860): users.png was
byte-identical across both CPUs with and without the flag, so the five-pixel avatar difference that opened the issue did
not reproduce on the current image. notification-target-new (8 pixels) did differ across the CPUs without the flag and is
byte-identical with it, which is the raster difference the pin removes. 36 of the 37 baselines match across the two CPUs
with the flag; fleet-history does not, by the position of its alarm marker, a lab timing difference the pin does not
reach.
The docs-shots recapture runs when the seed or migrations change (#860)
Section titled “The docs-shots recapture runs when the seed or migrations change (#860)”The recapture job’s push trigger now includes the dev seed, the boot seed, the migrations, the Makefile, the
Dockerfile and the workflow, the inputs a capture renders from. A seed-only change that moves a shot is
recaptured on main after it merges. The pull request filter carries the same inputs, so a seed-only PR runs the
structural verify job (since #2561 a PR compares no pixels, so that job is cheap); the recapture waits for main.
scripts/docs_shots_paths_test.go holds the two filters equal.
The ERD’s committed render is checked against its source (#2625)
Section titled “The ERD’s committed render is checked against its source (#2625)”The data-model page inlines a pre-rendered SVG of the ERD, and TestERDMatchesSchema only checked the
D2 source, so a schema change left the picture stale: #2075 left node and node_log drawn after
the rename, and user_group_idp_mapping (#2363) was never drawn. pnpm diagrams now ends each SVG with a
comment holding the SHA-256 of the D2 block it rendered, and erd.RenderStale compares that hash with the
page’s source in make test, with no Postgres and no d2 binary. A first version compared the identifiers
each side names, which cannot see an edit that reuses existing names (a column moved to another table or
retyped); the hash sees every edit, and erd.RenderDrift remains to name what differs in the failure
message. The check failed on main for the missing mapping table, whose render is refreshed here, and the
page and the docs-diagram skill say to re-render after a schema change.
The lens review is narrowed: invariants split by area, a scoped neighbor grep, a one-commit checkout (#2216)
Section titled “The lens review is narrowed: invariants split by area, a scoped neighbor grep, a one-commit checkout (#2216)”The lens review (the review:deep label, or AGENT_REVIEW_MODE set to lens) deals invariants for code outside
web/src and invariants-web for web/src, each only when the diff touches its area. The neighbor lens greps the
docs pages and the decision files (not the build log or the generated pages). The lens jobs check out one commit and read diffs plan computes once (pr.diff, review.diff).
The default one-shot reviewer is unchanged.
The users.png 5 px region is the avatar gradient, not a live value (#2293)
Section titled “The users.png 5 px region is the avatar gradient, not a live value (#2293)”#2280 left the intermittent users.png failure unexplained (“the 5 px region was not isolated without a lab
run”), and #2168 asked for the region to be found and masked as a live value. It is not a live value. The
5 pixels are the diagonal gradient of the “Fleet Viewer” avatar, each one green level apart
(70,174,213 committed against 70,173,213 recaptured), and the cause is the capturing host’s CPU: Skia
chooses its raster path (SSE2, AVX2, AVX-512) at runtime, and the paths round a gradient pixel one level
apart (#1860). The users page has no timestamp, count or age on it; masking an element there would have hidden
real UI to hide a raster difference. The fix is the pin in #1860 (--disable-skia-runtime-opts in the capture
browser, with the host CPU logged by capture.sh), not a mask.
What ran locally, on one host (a QEMU CPU with AVX2): users.png compared at 0.000% against the committed
baseline in five zero-tolerance captures across three commits, and the gate is the whole image, not a region:
renaming the page’s New user button to Add user fails it, users.png: 0.098% changed (4444px > 0.00%).
The criterion of five consecutive passing freshness runs on one commit in CI is not met by this entry:
CI is where the other raster path lives, and the recapture job on main (which now logs each runner’s CPU) is
where it will be seen.
A held session’s first connection is not a collection failure (#2755)
Section titled “A held session’s first connection is not a collection failure (#2755)”A poll on a held session (a websocket, an NVP line) that was still making its first connection used to wait out
its timeout and then land a collection-failed naming the session as establishing, so a healthy device’s Activity
opened with a row of red flags before its first sample. A session that has never been up now answers such an exchange
with a typed error, and the outpost holds the poll instead: no collection-failed, no backoff, counted in
poll-held-count, and run the moment the session is up, so its first data lands as the session connects. A run now in that window answers that the session is still making
its first connection. A poll on a session that reads recovering, down or rejected still lands its failure.
A system’s Activity tab follows the page’s time range (#2741)
Section titled “A system’s Activity tab follows the page’s time range (#2741)”The time range picker now sits on a system’s Activity tab too, and the health history bar, the
stretch list, the alarm rows and their markers all read over it, while Uptime stays the availability KPI
over a fixed 30 days, read from the current report (ADR-2741).
Activity reads the system’s report a second time, over the range: the read carries the range’s since (and
until for a custom range, whose alarms are read over it as well), runs only while Activity is open, and is
keyed per range under the system’s health key so every existing invalidation still reaches it. The current
report stays the one unranged, polled read, so the header’s since-when, Why, the slots and the panels that
share its key read the same as before on every tab, and a new range draws nothing until its own read lands.
With no range given Activity opens on the last 30 days and Overview and the Timeline on 24 hours, so
lib/time_range.ts gained parseGivenRange, a given accessor on useTimeRange and useHostTimeRange,
an explicit write that keeps a pick of 24 hours in the address, rangePhrase for a range inside a
sentence and rangeQuery for a read’s since and until. uptimeOver can take a range (the page uses it
only to tell an empty window from a healthy one, never as Uptime); withCarriedIn (in lib/timeline.ts) opens
a window’s edges at its start, which the bar and the stretch list share, so the bar starts at the range’s
start in the carried-in health. A custom range that ended before now is drawn from its own record alone,
so one from before the system existed draws an empty bar and says nothing was recorded in it.
Your first ten minutes is ten steps
Section titled “Your first ten minutes is ten steps”The first-ten-minutes page had grown into the lab’s reference: readiness checks, the fleet’s
collection methods, planted faults, the volumes and a list of every walkthrough. It is now the three
commands that bring a lab up and one ten-step example in the console (unplug a simulated panel,
watch the reachability alarm open, follow it to the system, clear the fault). What moved is on the
lab page (when it is ready, what the dev fleet holds, planted faults, stopping it) and the walkthrough
list is its own page, /start/walkthroughs/, which the lab’s ready banner now points to.
The console follows state over its one live stream (#2731)
Section titled “The console follows state over its one live stream (#2731)”The tab’s one /views:watch stream now carries changed notices beside the view bindings’ rows. A
health recompute (every alarm, slot and member write makes one) notes the system and component it moved,
and a pgx query tracer publishes the note on the tail’s change lane when the transaction commits; a
watch’s topics resolve in the caller’s scope at connect and are coalesced to one notice each 250 ms.
The console’s liveQuery (web/src/lib/live.ts) refetches on a notice, and the hub that owns the
stream reconnects with jittered backoff, closes in a hidden tab, and falls back to a slow refresh only
while no stream opens. The system page’s health, slots, members and alarm history are the first reads off
their 5 s poll (ADR-2731).
Every SSE route now sends X-Accel-Buffering: no and a write deadline per send, and the watch ends with
a final mark on shutdown. web/src/polling-guard.test.ts bars polling from web/src; the 26 files
still polling are listed in web/src/polling-allowlist.json, which only shrinks as their pages move.
Collection topics, for the list pages, are #2732.
The inbox shots mask only what moves, and the empty state is gated (#2292)
Section titled “The inbox shots mask only what moves, and the empty state is gated (#2292)”The notifications-inbox shot used to mask the whole content region, so a broken inbox page passed the freshness gate.
The capture now waits for the dev user’s inbox to hold exactly the outpost-silent entry (matched by its alarm’s subject,
with a count of one, so another platform alarm cannot end the wait early), the entry’s message text and meta line are the
only masked boxes (they carry the raise time and the relative age), and the page’s title, counts, buttons and subject are
in the baseline. A second shot, notifications-inbox-empty, is the fleet viewer’s inbox, which no action rule fills: the
capture signs the viewer in before any shot and the shot carries that session (as: viewer), so the empty state’s text and
its Subscribe to alarms button are gated too.
The lab’s video bar calls, drifts, logs and sends its own events over two protocols (#2754)
Section titled “The lab’s video bar calls, drifts, logs and sends its own events over two protocols (#2754)”A simulator behavior can now report named events, as a route could (#1145): each renders against the
state its tick left, one whose data renders empty is not reported that tick, and a tick streams only
what it changed, so a timer rewriting a watched path with the value it holds adds nothing to the feed
(ADR-2754). A behavior also reads its device’s wall clock (now, nextSlot) and draws integers and
chances from its device’s source (randInt, chance), so a test drives a simulated day on a pinned
clock (ADR-2754.2). The Kestrel VRoom uses both to talk on its own: every video bar in a lab keeps a
meeting schedule, a tick a minute, booking about half its 15, 30 and 60 minute slots on the half hour
(a 15-minute one on the quarter), starting up to 2 minutes early or 5 late. Its calls report
call-started, participant-joined, participant-left and call-ended, each also an event: log
line in the codec’s idiom, beside a status line every 15 minutes and the uplink’s degraded and
recovered lines; it drifts its call stats in a call and its own load every 30 seconds, and no tick is
faster than 15 seconds. A bar runs about 0.6 calls, 3 events and 9 log lines an hour, where the first
cut’s call every 90 seconds would have been about 40 events and 50 log lines a second across a
1,000-system lab. A dial on the bar’s own API still starts a call at once, the schedule skipping a
meeting that falls due under it, and it ends at hang-up or after 30 minutes. The catalog gained the metrics a codec’s call reports
(packet-loss-ratio, a loss ratio where 0 is healthy, jitter, bitrate, frame-rate,
speaker-level; the microphones’ level reuses audio-level) and a component’s own load (cpu-utilization, memory-utilization,
active-channel-count), the properties a bar reports of itself (app-mode, ucc-signin,
touch-pair, camera-state, video-resolution) and the identity beside its serial
(hardware-revision, hostname, ip-address), and the events participant-joined and
participant-left, all in the boot seed. kestrel-api gained a status poll, its identity facts on its
system poll, the participant listeners and a log listener on its feed; polaris-dsp-snmp reads the
DSP engine’s load, temperature, fan and active channels and its identity over SNMP. In the corporate
lab the divisible conference rooms’ video bars get their websocket control socket (kestrel-ws) as a
second endpoint, through the standard’s control list, and a new make test-lab gate holds the
headquarters conference bar to 20 metrics, 8 properties, a caught event and a log line after the
warm-up, dialing a call on it first. The lab’s identity check counts the new identity keys as identity, not a class signal.
The simulator derives a lab calendar of meetings per room (#2764)
Section titled “The simulator derives a lab calendar of meetings per room (#2764)”A scenario can now declare a calendar: block, and a simulated room’s meetings follow from it
(ADR-2757). calendar.meetings holds knobs per standard (booking rate, a slot mix of 15, 30 and 60
minutes, no-show, ended-early and ended-late rates, an attendance range, a walk-in rate and the hours
of the day), refused at load naming the field when one is out of range; the corporate scenario ships
knobs for every standard with a room. The new sim/calendar package derives each room’s meetings
from those knobs, a seed and a window as a pure function: slots on wall-clock boundaries, starts and
ends jittered (a late end pushes the next start, so a room’s meetings never overlap), no-shows,
walk-ins in the gaps, and a room’s day identical across runs, engines and windows. The engine holds
the calendar (Engine.SetCalendar) and a template reads it through the device’s clock:
meetingNow and meetingNext for its own room, roomMeetingNow and roomMeetingNext by room key
for a service that speaks for many. Nothing yet reads it: the device profiles, the problem source
and GET /lab/calendar are the slices that follow, and the knobs and each device’s room do not yet
reach a running simulator (the server’s device list names neither).
The simulator lives in one top-level sim/ tree (#2758)
Section titled “The simulator lives in one top-level sim/ tree (#2758)”The simulator was five sibling packages under internal/ (sim, simfleet, simhub,
simoutpost, mailsim). They now sit in one top-level sim/ tree in the same Go module, with the
engine at sim/, its profiles at sim/profiles/, and the rest as sim/simfleet, sim/simhub,
sim/simoutpost, sim/mailsim, sim/fleet, sim/impair, sim/profile and sim/simtest. Every
one has an importer outside the simulator (server, outpost, lab, devseed or tests), so none moved
under sim/internal/. A move-only change: import paths, the Makefile and the docs’ links changed,
no behavior did. sim/README.md says what the simulator is, how it runs and how a profile is written.
A cloud service reads the lab calendar from its first request (#2757)
Section titled “A cloud service reads the lab calendar from its first request (#2757)”The meeting platform, scheduling service and recording service derive each covered room’s state from
the lab calendar in a timed behavior, and a behavior’s first tick came a phase offset plus a whole
interval after the device started (up to 30 s, 60 s and 120 s). A collector that polled at start read
every room as idle while the room’s own devices were already in the meeting; a corporate lab started
in meeting hours fanned idle to a room that was mid-meeting. The cause was the cold start, not the
world: a branch room in the headquarters’ world and in its own site’s world read the same calendar,
which a new scenario test now holds.
A behavior may now declare schedule.on_start: true and ticks once as the device starts serving,
before it answers anything. The three services set it on the behavior that reads the calendar, and so do the room devices whose
state follows the meeting (the bar, the panels, the display, the DSP, the scheduling panel and the
building-day readers), which had the same cold start. The
meeting platform lab test no longer depends on the hour: it offsets the simulator’s clock into a held
meeting of a judged room, so the in-meeting fan-out is always exercised.
A driver walks a paged list API and fans every page’s records out (#2789)
Section titled “A driver walks a paged list API and fans every page’s records out (#2789)”A driver’s poll request may declare paginate, and one poll walks every page of the list
(ADR-2789):
a cursor read from the body or a header and sent back as a query parameter or header, or a page number
with an optional declared total. The records of every page are gathered, then identified and fanned
out once, so a 3,000-room account is one collection. The engine names no field: the driver does. Bounds
(max_pages, max_records) and a failed page fault the poll naming the endpoint and land nothing.
ucc-rooms declares next_page_token as its cursor, and the simulated UCC platform pages
GET /api/rooms by page_size and next_page_token (the record shape is unchanged).
A lab calendar entry is a sum type callers switch on (#2798)
Section titled “A lab calendar entry is a sum type callers switch on (#2798)”calendar.Entry is now one typed value: a kind and exactly one payload, built by NewEntry (which refuses
a kind and payload that disagree), MeetingEntry or ProblemEntry, and read through AsMeeting and
AsProblem, which report false for another kind. The meetings-only Entries, Now, Next and Prev
and the Problems, ProblemsNow and All trio are one query that takes the kinds a caller reads
(MeetingKinds, ProblemKinds, AllKinds), so a new entry kind cannot nil-deref a reader. Entry.Map()
and GET /lab/calendar are byte-identical on the wire, held by a golden of a pinned day recorded before the
change, and a guard test keeps payload pointers and entry literals out of code outside sim/calendar.
A lab test can set the simulator’s clock to prove a meeting live (#2800)
Section titled “A lab test can set the simulator’s clock to prove a meeting live (#2800)”The simulator has a clock of its own now: real time plus an offset, held by the engine and read by every
device, the scripted-problem executor and the pushers’ engine. omniglass lab run --sim-clock-offset 36h
(a hidden flag, a scale lab’s) sets OMNIGLASS_SIM_CLOCK_OFFSET on each site outpost, so a lab test places
“now” inside a chosen meeting of the plan’s own calendar with no wait for the corporate hours. It moves
what the simulated world reads and stamps (the calendar funcs, now, uptime, a route’s now) and
never the outpost’s collection cadence or a timestamp Omniglass stamps. A route’s now follows the device’s
clock too, so a reboot’s boot_epoch and the uptime that reads it agree under an offset. One lab test
picks a held, attended, sharing meeting of a corporate conference room, offsets the lab into it and reads
the bar in a call, the people counter at the attendees, the display awake, the switcher on the
conferencing input and the meeting platform’s room in a meeting, live. It is the first, fixed-speed
step of the accelerated clock (#1362), which adds a speed to the same Clock. ADR-2800 records it.
A room’s audio chain shows its meeting: microphones, the DSP and the amplifier (#2774)
Section titled “A room’s audio chain shows its meeting: microphones, the DSP and the amplifier (#2774)”The Lyra Arc A2 and HX-1 microphones, the Polaris DSP 16 and the Amp 4-100 now read their room’s meeting off
the lab calendar, through the device clock, instead of drifting on their own. The sim is; Omniglass learns:
nothing is asked of the server. The array is active (level up, mute moving now and then) while someone is
in the room and idle otherwise, a no-show included. The HX-1 transmits in the same hours, and its battery is
computed from the calendar alone over the 48 hours before now, draining in use (0.4 percent a minute) and
recharging between meetings (0.8 percent a minute), so a pack reads the same charge at any instant on any
run and a scheduled problem can pin the path. The DSP opens a gate per two attendees actually in the room
(to four strips) and raises their peak with the count; the amplifier carries signal and warms toward a
loaded temperature in use. One generic template func, meetingsBetween, reads a room’s meetings over a
window. A device with no calendar now reads an empty room: the mics at their floor, the DSP’s gates shut,
the amplifier silent.
A scenario scripts recurring problems on the lab calendar, applied by one executor (#2769)
Section titled “A scenario scripts recurring problems on the lab calendar, applied by one executor (#2769)”A scenario’s calendar.problems scripts what goes wrong on a schedule: a cadence (daily, weekly on a
weekday, monthly on a date or the nth weekday), a UTC time and duration, a scope (a standard, a site or
its kind, or named rooms) with the slot it lands on, and one impairment (unplugged, packet loss, or a
pinned state path). The calendar derives them like the meetings, so every node computes the same month;
only an optional per-room spread is drawn, from the seed. problem is the calendar’s second entry
kind, read through Problems, ProblemsNow and All and the problemsNow template function; Entries
is still the meetings alone.
The simulator’s one problem executor opens each window and closes it: pins through the behavior-override
seam (the path is put back as it was), unplugged and loss through the netns impairer with the server’s own
impairments merged in, refused with a log line without NET_ADMIN. The meeting platform lists a device
offline and a room with a dark codec or bar offline while a problem has it unplugged, read off the
calendar. The corporate scenario scripts three: boardroom displays dark on Tuesday afternoons, a weekly
dead wireless-mic battery and a nightly codec firmware window.
A squash commit is exactly its PR title (#2792)
Section titled “A squash commit is exactly its PR title (#2792)”The repository squash-merges with the PR title as the commit’s title and a blank body. The old
setting took a single-commit PR’s subject from its commit, and listed every branch commit in the
body, where release-please counted each * feat: or * fix: line as a release-worthy change of
its own; now it reads one entry per PR, the title pr-title.yml lints.
The PTZ camera and the recording service follow the lab calendar (#2775)
Section titled “The PTZ camera and the recording service follow the lab calendar (#2775)”The conference standard now staffs a camera and a recorder slot (Kestrel Gaze P2 and the recording service). The
camera reports the people actually in its room, nobody in a no-show, frames the group when a meeting starts and
returns to its home preset when it ends; an empty room’s camera holds still. The recording service records a
seeded share of the meetings that took place, set by the new recording_rate meeting knob (a no-show is never
recorded): a recording is in progress while a recorded meeting runs in a room it covers, and queued for ten minutes
after. The recording is a draw of its own from the seed, the room and the slot, so no other part of the day moves.
A new meetingPrev template function reads the last meeting that has ended. A device in a room with no calendar
keeps its old drift. Scheduled recording failures are #2769.
Conferencing acts out the lab calendar: the video bar, the codec and the meeting platform (#2767)
Section titled “Conferencing acts out the lab calendar: the video bar, the codec and the meeting platform (#2767)”A held meeting is now a call on the room’s conferencing gear and on the meeting platform, all of it
read off the lab calendar and the world the simulator holds. The Kestrel VRoom’s call_cycle and the
new Relay C1 call_cycle read meetingNow: one call per held meeting (none for a no-show, one for a
walk-in), started and ended at the first tick on or after the meeting does, participants joining and
leaving inside who came, content shared now and then, and a meeting that starts as the last ends
moving the call on in one tick. The #2773 room_calendar probe with GET /api/room retires, and the bar’s own
plan and slot bookkeeping (#2754) stays as the fallback for a bar whose room has no calendar; a dial or a hang-up on the device holds against
the calendar. The UCC platform’s rooms_calendar writes each room the world places from
ownerMeetingNow and posts signed room.meeting.started and room.meeting.ended webhooks at the
boundaries. The lab test for the world now holds a corporate lab’s bars and platform to the plan’s
own calendar through their real surfaces. No sim func was added.
Displays, projectors and signage follow the lab calendar (#2768)
Section titled “Displays, projectors and signage follow the lab calendar (#2768)”The Boreal Edge display and Beam projector now keep their room’s meetings: they wake onto the conferencing input
two minutes before a booked meeting someone will attend (at the start of a walk-in), and go to standby five
minutes after it ends; a no-show changes nothing. The projector’s light source ages only while it is on, so its
hours grow only around held meetings. The Cast signage player follows the building’s day: a new generic template
function, buildingHours, reads the hours the building’s rooms declare for their meetings (the widest span in the world’s knobs, so a signage room that holds no meetings still has its building’s day), and the
player plays inside them and stops outside. Every reading derives from the calendar through the device’s clock;
nothing comes from Omniglass.
Every device in a room reads one derived room phase (#2797)
Section titled “Every device in a room reads one derived room phase (#2797)”The timing rules of a room (how long before a booked meeting it wakes, how long after one it stays in use,
which stretch of a long meeting shares content) were worked out again in each device profile, so retuning
one split the room. They are now one Go primitive, calendar.StateAt, which gives a room at an instant one
phase (idle, waking, in a meeting, sharing, cooling down, impaired) and the facts its devices read.
The wake lead, cooldown tail, recording tail and sharing stretch are declared once per standard in the
calendar.meetings knobs, defaulting to the values the profiles carried, so every reading is unchanged.
Templates read it with roomPhase, roomPhaseOf and ownerPhase; the engine computes a room once per
second however many devices read it. The displays, projector, control processor, panel, switcher, extender,
PDU, video bars, codec, camera, microphones, DSP, amplifier, people counter and recording service all moved
onto it, roomInUse and meetingSharing retired, and a guard test fails the build if a profile writes
timing arithmetic again. A scripted problem shows as the impaired phase.
GET /lab/calendar shows what the simulator intends (#2770)
Section titled “GET /lab/calendar shows what the simulator intends (#2770)”A lab server now serves the lab calendar: GET /lab/calendar with a bounded start and end (at most 31
days) and optional site, building, room and system filters, and the generated omniglass lab calendar list. It is lab-only (404 elsewhere), gated by simulation:read, and limited to rooms whose system is in the
caller’s system read scope. The server computes the calendar itself, from the world file the lab’s seed wrote
into the shared data volume and the same functions the simulator runs, so it never asks a simulator or reads
collected data, and it needed no new setting and no migration. A lab test holds the route’s entries equal to
what a camera in the room frames over a simulated day. The generated lab command group now merges into the
hand-written one instead of being shadowed by it.
One impairment arbiter decides what a simulated device suffers (#2799)
Section titled “One impairment arbiter decides what a simulated device suffers (#2799)”The operator’s impairment route and the scripted problems of the lab calendar no longer share a device by luck. Each registers its wants with one arbiter per simulator engine under its own name, the arbiter resolves them the same way every time (unplugged if any asks; the highest loss, latency and jitter; the newest pin on a path, the older kept and restored in order) and is the only writer to the behavior-override set and the impairer, which a guard test enforces. Clearing a scripted problem leaves an operator’s unplug, and the operator’s repair leaves a problem’s window. The meeting platform’s offline listing reads the arbiter, so an operator’s unplug reads offline there as a scripted one does. Scenes (#2314) will be one more source.
Rack power follows the lab calendar (#2777)
Section titled “Rack power follows the lab calendar (#2777)”The Ferrite PDU’s outlets now draw what the room’s day says: video, processing and amplifier gear idle in
standby, wake by the displays’ rule (two minutes before a booked meeting someone attends, at the start of a
walk-in, five minutes after the end, nothing for a no-show) and draw more again during a call. The map from
outlet to gear is fixed in the profile, so no function was added and no device reads another. A new
energy_mwh counter (SNMP .1.3.0, EnergyMwh in the JSON document) accrues the total draw each tick. The
conference standard gains a power slot and the corporate manifest a PDU in it, so a corporate lab covers the
reader; plan counts follow. A PDU in a room with no calendar keeps its earlier random walk.
release-please cuts every release from main, and make release is retired (#2652)
Section titled “release-please cuts every release from main, and make release is retired (#2652)”release-please.yml 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 it tags the merge commit, creates the GitHub Release
and calls release.yml on the tag, which now only builds the image and the binaries and comments “Released
in”. Before 1.0 a feat or a breaking change bumps the minor and a fix or perf the patch. make release,
make release-plan, cmd/release, cmd/releaseversion, internal/releasecut and internal/releaseversion
are removed. Nothing runs until RELEASES_ENABLED is true.
Room control and switching follow the lab calendar (#2776)
Section titled “Room control and switching follow the lab calendar (#2776)”The conference standard now staffs a control system, a video switcher and a display endpoint (Newtron Core CP-3,
Meridian MX 84 and XL-1), beside the touch panel it already had. The processor holds the room’s system power and
the last macro it ran (start-meeting as the room goes on, end-meeting as it goes to standby), the touch panel
wakes and changes page (idle, in-call, sharing), the switcher routes the conferencing input or the laptop while
content is shared and parks on the empty input between meetings, and the extender carries a signal while a meeting
is held. Two new template functions, roomInUse and meetingSharing, are the readings these share. A device in a
room with no calendar keeps its previous state. The video bar’s and the codec’s content sharing now read meetingSharing in a room with a
calendar (a dialed call and a room with none keep the random draw), so the switcher’s laptop input and the bar’s
sharing agree.
The room devices’ behaviors are shared, typed Go primitives (#2830)
Section titled “The room devices’ behaviors are shared, typed Go primitives (#2830)”sim/behave holds the room-device behaviors as pure Go functions of the room phase, the device’s previous typed
state, typed parameters and the instant: power and input follow the room, the call cycle and content sharing, people
count, climate, the 48-hour battery, recordings, building hours, bookings, and the mic, mixer, amplifier and PDU
readings. Randomness comes only through a seeded per-device source that draws the stream the engine’s behaviors do,
and each primitive carries its no-calendar fallback and its defaults as typed parameters. A parity test per
primitive drives the current profile through the engine and compares the paths the primitive owns, a tick at a time
over a pinned room day. No profile changed and no device moved; the families compose the primitives in the sibling
slices of #2826.
Rooms are named the way companies name them (#2757)
Section titled “Rooms are named the way companies name them (#2757)”A lab’s systems were labelled by a generator (“Boring Edison”) and its locations carried the address (“Hq Tower 12 01”), so the console read one room as an unrelated name on one surface and an address on the next. The scenario now names each room the way a company does: one naming theme per site (the headquarters after scientists, the regional and branch offices after peaks, rivers, parks, lakes and bridges), a function for the rooms known by what they are (Huddle 3, Auditorium), deterministic per room and unique within a site. The system’s label is the name and the location stays the address. The meeting and scheduling platform simulators list each room by its name with the address beside it, and the console shows both everywhere a system is named (the system page, a device’s systems, a conduit’s bindings, search, Explore and the system blade). The adjective-surname generator is gone.
Shared protocol surfaces are Go helper packages (#2831)
Section titled “Shared protocol surfaces are Go helper packages (#2831)”The protocol pieces several simulated devices answer alike now have Go declarations under sim/surface,
the first step of moving the catalog from YAML profiles to Go families. surface/nvp is the Newtron room
command set and its subjects, surface/snmp the MIB-II system group and the vendor identity arc nine
profiles repeat, and surface/httpapi the GET /api/status document whose identity block ten profiles
repeat. Each takes typed accessors and returns typed replies, OIDs and responses, with no template string.
A parity test per helper serves the catalog’s own YAML and a minimal Go declaration through the same protocol server and compares the bytes: a raw TCP transcript (commands, refusals, subscriptions and their pushes), a GETNEXT walk and GET of every OID on a pinned clock for every profile with an SNMP face, and the status document against six real templates. No device is converted and the YAML surfaces keep working until their last user moves.
The Boreal displays, projector and player are Go families (#2832)
Section titled “The Boreal displays, projector and player are Go families (#2832)”The Boreal Edge display, the Beam projector and the Cast player are now Go packages under sim/device/
(borealedge, borealbeam, borealcast), the first families of the Go-families epic (#2826), and their
three YAML profiles and templates are deleted. The Edge’s five sizes are five rows of one typed table, each
reporting its own model: a 98-inch no longer calls itself an Edge 86 on its dashboard. JSON is typed structs,
control routes are one httpapi.Control declaration that also lists the route’s quick sets and registers
the paths for the console’s fault chip, SNMP is typed scalars that name the state path they read, the
dashboard is html/template over a typed view struct, and behavior is sim/behave primitives joined to the
family’s state by sim/device/internal/bind (the new Drift, Wear and PlaylistAdvance beside the room
primitives). The engine gained what a family needed to be listed and driven as a profile is: a handler
writes several paths as one change and reads its defaults and clock, a tick reads the building’s hours and
is fired and listed by name, a family’s OIDs answer the console’s fire, and the console’s behaviors list
includes a family’s ticks.
Readings are identical because they were recorded: a script ran against each profile before it was deleted
and its transcript (statuses, headers, bytes, state, SNMP types and values, seeded drift, a pinned room day
with and without a calendar, and the console’s listing) is the testdata every family test replays
(ADR-2832, which lists the two accidents of the old templates the families correct). That recording, the
spectest.Conform suite and the worked example in the simulation architecture page are the pattern the next
families follow.
The dev fleet’s components number within their slot (#2757)
Section titled “The dev fleet’s components number within their slot (#2757)”The example fleet’s components are named by the platform, whose counter runs across a whole stem in a room, so Boardroom A’s only wireless microphone read “Wireless Microphone 3” after two ceiling ones. The seed now labels a component that staffs a slot the way the scale lab does: its type’s label, and its place among the slot’s components when the slot holds several, a lone one unnumbered. A component in no slot (a spare racked in a bay) still reads from the shipped label rule, which keeps that rule’s demonstration.
The fleet-history shot holds still as the lab ages (#2707, #2802)
Section titled “The fleet-history shot holds still as the lab ages (#2707, #2802)”Two captures of the same tree differed in fleet-history.png because the shot read the lab’s timing: the room’s first
second of commissioning is a row in the Activity tab’s health history on a slow host and none on a fast one (a stretch
under half a second is dropped), which moved the events and logs below it, and the alarm marker sits at the raise’s
share of a window that runs from the lab’s first record to now. The capture now takes the non-ongoing rows out of both
renders (a new hide step) behind an expect-count guard that refuses a list that still shows other than one row,
and masks the marker row whole. No console change. web/e2e/shotsteps.spec.ts pins both.
The Go device-family pattern repeats no workaround (#2845)
Section titled “The Go device-family pattern repeats no workaround (#2845)”A slice of the Go-families epic (#2826), run before the four remaining family conversions so they copy
none of the pilot’s workarounds. Uptime is a typed spec.Elapsed a family declares, not the YAML
Computed seam, and the Boreal transcripts replay unchanged. The golden wire recorder and replay are one
generic harness: a family supplies a wireFamily (products, script, SNMP reads, drifting behaviors, room
day), records it with one command and replays it with one call, and a test-only family proves the harness
with no Boreal code involved. Tests build their engine over the shipped catalog through
sim/simtest/shipped, so converting a profile to a family touches no test, and a guard in
internal/build refuses a new engine built from the YAML store. httpapi.Control refuses a body that is
not a JSON object with a 400 and writes nothing. The policies (quirk steps last, the unreadable body, the
catalog-guard pin for tests that name shipped products, how to record a family) are written once in
sim/README.md.
The live pass of the lab calendar: four fixes on a corporate lab (#2757)
Section titled “The live pass of the lab calendar: four fixes on a corporate lab (#2757)”A live pass over a corporate lab found four things the tests had not. The meeting platform’s rooms
list no longer holds its devices: the simulator was handed every value bound on the platform’s
endpoint as a room, device ids included, so dev-<hash> ids waited in the unbound inbox as room ids;
only values bound to a system are room ids now. A slot of several components reads with its ordinal
(“Display 1”, “Display 2”) because the world’s names carry none the platform owns, and the
account-wide services read as the manifest labels them (“Meeting Platform”) rather than as their
component type. A conference room’s occupancy-count now follows its people counter: the counter’s
raw-TCP band (tessellate-census-feed) reports people-count on the component, the one thing the
http API never carried, and the room-occupancy calc rule seeded with the plan writes the most any
counter reports as the room’s own. The control band’s line ending is now CRLF so the driver’s line
session can read it. A room’s temperature still has no device in the lab to read it from.
The meeting platform serves paged rooms and devices that fan out to systems and components (#2790)
Section titled “The meeting platform serves paged rooms and devices that fan out to systems and components (#2790)”The simulated meeting platform now reads like a real cloud room-and-device platform, and a lab is a fleet
of AV systems Omniglass learns the way a customer’s Omniglass would. It is one account for the whole
fleet: the scenario manifest places it once, at the headquarters, through the services: block, covering
every room of every site (it leaves the per-site pushers: list, and a profile with a webhook face is a
signed-webhook sender as well as a polled service).
GET /api/rooms is token-paged and carries each room’s id (its system’s name), status (available,
in-meeting, offline), the meeting it holds (topic, start, participants), the booking that holds it now
and the next booked one, all off the lab calendar; a booked no-show reads available with its booking. A new
GET /api/devices lists every device in those rooms that a meeting platform manages (codec, bar,
controller, scheduling panel, camera, microphone) with the world’s stable device id, its room, type, status,
firmware and last-seen time. The world now owns device ids as it owns names (scenario.DeviceID, a pure
function of the name) and carries each device’s platform type and the firmware its profile reports.
Webhooks add participant joined and left and device status changed to the meeting boundaries, each naming
its room id and, where it applies, the device id.
The ucc-rooms driver declares request.paginate for both lists and gains a second poll for the devices
(an endpoint is named for its transport, so one component holds one https endpoint and the two lists are
one driver’s polls); ucc-webhook routes the new posts by room id or device id. The lab seed binds each
room id to its system and each device id to its component as an installer would, and a room or a device
nobody bound lands in the conduit’s unbound inbox. The scheduling platform’s driver declares its paging
rule too, which retires its single-page walk. Two new property types carry it: ucc-device-id (the match
key) and platform-state (online, offline).
A device reads offline while a scripted problem has it unplugged (#2769), derived from the calendar.
The people counter’s occupancy follows the lab calendar (#2766)
Section titled “The people counter’s occupancy follows the lab calendar (#2766)”The Tessellate Census C1 no longer walks its head-count at random: its occupancy behavior reads its own
room’s meeting off the lab calendar (meetingNow, through the device’s clock), so the count is a
meeting’s actual attendees (a walk-in’s too, over the room’s capacity when the payload says so), zero in
a no-show and in an empty room, and one fewer on about one tick in seven in a meeting of two or more.
The increased, decreased and steady signal and the vacant flag derive from the count as before. With no
calendar (the dev fleet holds no world) the counter keeps its old walk. The corporate lab’s divisible conference rooms gained a people-counter
slot, filled with a Census C1, and a projection slot, filled with a Beam 340 projector (the seeded boardrooms staff both), and a make test-lab test holds a real counter’s raw-TCP count to its
room’s calendar.
The recording service is one account-wide cloud component (#2757)
Section titled “The recording service is one account-wide cloud component (#2757)”The recording service stopped being a slot in every conference room. Like the scheduling and meeting
platforms it is one cloud component for the whole fleet: the corporate manifest’s services: block
places it once, at the headquarters, covering every system, and divisible-conference lost its
recorder slot (and the dev fleet its two staffed ones). Its simulated API gained a token-paged
GET /api/recordings, one record per covered room named by the system, each with that room’s
recordings in progress and queue depth off the room phase; the account’s own counters stay the sum of
its rooms, and a service with no calendar lists no room and drifts as before. The
recording-service-api driver walks the list with request.paginate (ten rooms a page) and fans each
record’s active-recording-count and queue-depth out to the system the lab’s seed bound the room id
to (recording-room-id). The lab seed binds the ids with the same code that binds the scheduling
platform’s. At 1,000 systems the plan is 3,124 components (3,136 before); at 3,000, 9,166 (9,190).
Two dev-fleet fixes rode along. Boardroom A seeded two power conditioners, one filling the power slot and one a member filling none, so its page read “1 component is not in a slot” beside a staffed power slot; it has one now, in the slot, and the membership-without-a-slot case is held by the recording service and the panels and spare mic that really do fill no slot. A component shared by several systems could render with no name on a system page: the also-in chip held its full width while the name truncated, so a long list of systems squeezed the name to nothing. The chip now shrinks first and the name keeps a floor, as the outline’s does.
The room’s control processor reports the room’s temperature (#2757)
Section titled “The room’s control processor reports the room’s temperature (#2757)”A corporate room’s room-temperature, a metric its standard declares, read “No data in range”: no
simulated device reported it, and the dev fleet’s chart is samples the seed writes. The Newtron control
processor now reads the room’s temperature, as a real control processor polls a room sensor. In the
simulator it follows the room phase: the room warms with the people in a held meeting toward the setpoint
plus a load per attendee and settles back between meetings and overnight, deterministic for a calendar and
a clock, with small noise; with no calendar it reads the setpoint with the same noise. The processor answers
GET ROOMTEMP, its shipped driver collects it as a new room-sensor-temperature metric on the component,
and the plan seeds a second calc rule, room-temperature, which carries it up to the system the same way
room-occupancy carries the people counter’s count (a rule cannot read the key it writes, hence the two
types). The dev fleet keeps its synthetic day: it is a shaped history the chart can be judged on, written
at once with no simulator running, which a steady live setpoint cannot give.
The booking service, scheduling service and room panel read the lab calendar (#2765)
Section titled “The booking service, scheduling service and room panel read the lab calendar (#2765)”Bookings, as every scheduling surface reports them, now come from the lab calendar’s booked
entries, not from fixed lists. A new pure reading, RoomBookingsAt, and three template funcs over it
(bookings, roomBookings, ownerBookings) say what a room’s booked meetings are on the device’s
clock: a no-show holds its slot and reads booked, a walk-in is nobody’s booking and reads free. The
booking service pushes booking-count and booking-state from it for the room the world puts each
system in (by the names the world gives it), and a system with no calendar keeps the fixed meeting day it always had.
The scheduling service counts today’s, remaining and in-progress bookings across the rooms it covers,
and the Slate 5 panel shows its room’s booked or free state with GET CURRENT and GET NEXT.
The scheduling service is one account for the whole fleet, a conduit: a new services: block in the
scenario manifest places it once, at the headquarters, covering every system, and a new
scheduling-service-api driver polls its token-paged GET /api/rooms (one record per room, named by
the system) and fans each room’s booking-state and booking-count out to the system the lab’s seed
bound that room id to (sched-room-id). A room nobody bound lands in the conduit’s unbound inbox. A
pusher pushes for the system names the world gives it, since a grant carries only the server’s ids.
The driver declares its paging rule, so one poll walks every page (#2789, #2790).
The simulator holds the world it simulates, from a world file the lab writes (#2773)
Section titled “The simulator holds the world it simulates, from a world file the lab writes (#2773)”A scale lab’s simulators now know their rooms. The lab resolves the scenario plan to one world file
per site outpost (scenario.SiteWorlds, a pure function): the site’s rooms with their standard and
capacity, each room’s planned devices by a name of its own (<system>-<slot>-<n>), the services with the systems
they speak for, the meeting knobs per standard and a calendar seed taken from the scenario. The seed
one-off writes the files into the data volume, each outpost mounts it read-only and sim run loads
its own from OMNIGLASS_SIM_WORLD, builds the lab calendar and installs it on the engine. The
simulator joins each pulled device to the world by name and address, which fills its site, building
and room (so meetingNow reads its room’s meeting and {room} expands), and a service resolves a
push’s .Owner system to a room through the world (ownerRoom, ownerMeetingNow, coveredRooms).
A scale lab’s component names change with it (hq-mr86-1-main-display-1, no longer display-1 in every room); the health storyline, the omnibot recording and the marketing shots follow. The server, the bus and the schema are unchanged: the simulator is, and Omniglass learns it by
collecting. ADR-2757 records the transport and the join.
The simulator registers Go device families beside YAML profiles (#2829)
Section titled “The simulator registers Go device families beside YAML profiles (#2829)”The first slice of the Go-families epic (#2826). A device is now defined as a spec.Definition, and a
YAML profile and a Go family both satisfy it. A family is a package under sim/device/ exporting
func Spec() spec.Spec: one wire API, its models a typed table (spec.Table), its protocol handlers Go
funcs the engine’s HTTP and line-protocol servers call, its responses typed Go values. A spec.Catalog
resolves a product to a family when one claims it, else to its YAML profile, and every consumer of the
profile store (the engine, the outpost, the fleet planner, the dev seed, the lab scenario’s catalog, the
footprint sweep and the simulation routes) reads through it. The list of families is generated by
make gen (cmd/familygen, scanning sim/device/*). No profile is converted yet; a test-only family
(sim/spec/spectest) is served end to end beside the YAML ones, and a table test holds each consumer to
resolving it exactly as it resolves a YAML twin.
The video bar counts the people in its room (#2757)
Section titled “The video bar counts the people in its room (#2757)”A huddle room has a video bar and no separate people counter, so its occupancy-count read “No data in
range” while the conference rooms, which have a counter, filled. The Kestrel VRoom’s camera now counts the
room, as a real bar does: in the simulator it follows the room phase (the calendar’s attendees in a held
meeting or a walk-in, one fewer now and then, and 0 in a no-show and outside any meeting), and a bar with
no calendar counts only the call it is in. The shipped driver collects it as the existing people-count
metric, so the one room-occupancy rule the plan already seeds fills occupancy in every room with a bar.
A huddle room’s temperature stays empty: nothing in it is the source of one yet.
v0.1.0 is cut, by hand, as the first public release (#2652)
Section titled “v0.1.0 is cut, by hand, as the first public release (#2652)”The first release ships the whole history (about 975 PRs; v0.0.0 is a placeholder tag, never a
release), more than a GitHub Release body can list, so v0.1.0 was cut by hand: a release commit set the manifest and version.txt
to 0.1.0, the Release was created on it with a written summary and a compare link, and
release.yml built its image and binaries. release-please counts every later release from v0.1.0.
A shot or walkthrough names only component labels its fleet shows (#2847)
Section titled “A shot or walkthrough names only component labels its fleet shows (#2847)”#2808 stopped numbering a component that is alone in its slot (“Video Bar”, not “Video Bar 1”), and a dozen
selectors and expectations in the docs shots, walkthroughs and marketing shots still waited for the old labels,
so a capture failed minutes into a lab. They now read the labels the console shows. A unit test in
internal/devseed fails the same mistake up front: it reads the labels each fleet shows (the dev fleet from a
seeded database, the corporate scenario from its resolved plan) and checks every component label a script
names against the rooms and systems that script runs in. Captions, comments and page prose are not checked.
Occupancy, power and the cloud services are Go families (#2836)
Section titled “Occupancy, power and the cloud services are Go families (#2836)”The Tessellate people counter, the Ferrite PDU, the generic SNMP device and the account-wide UCC platform,
scheduling, booking and recording services are Go packages under sim/device/ (tessellatecensus,
ferritepdu, genericdevice, uccplatform, schedulingservice, bookingservice, recordingservice), one
per wire API, and their seven YAML profiles and templates are deleted. Each is a family of one, named for its
product.
What the engine and the shared helpers gained for it: a family reads the rooms it speaks for (spec.RoomsOf:
the world’s covers, a room’s phase, meeting and bookings, the devices a platform lists), sends signed webhooks
(spec.Send) and names an event on its stream (spec.Report); a family declares a push face (Spec.Push) and
a webhook face (Spec.Webhook); a list pages by the names its API declares (httpapi.Paging, Cut,
PagedDocument); the engine’s refusals are exported (httpapi.Refuse, MutationFailed); a family may be named
for its only product; and the wire harness records a line-protocol conversation, an event stream and the
webhook posts a device makes. Parity with each profile is the transcript recorded before it was deleted
(ADR-2836 lists what differs).
The Lyra microphones and the Polaris DSP and amplifier are Go families (#2835)
Section titled “The Lyra microphones and the Polaris DSP and amplifier are Go families (#2835)”The room’s audio chain left YAML: the Lyra Arc A2 ceiling microphone and HX-1 wireless system, the
Polaris DSP 16 and the Amp 4-100 are four Go families under sim/device/ (lyraarc, lyrahx,
polarisdsp, polarisamp), and their four profiles and every template behind them are deleted.
The grouping follows the wire API, and where the seed collects two products differently they are two
families, as the catalog test requires: the Arc and the HX-1 speak the same small API (a status and a
mute behind the Lyra key, mute and level on the Lyra SNMP arc), but they are different kinds of device
with their own driver, so each is its own family over one shared body (sim/device/internal/lyra),
each a one-row table with room for the next model. The DSP and the amplifier are one family each.
Proof came first. Before anything was deleted a recorder played one script per product against the
YAML profile (every route valid and refused, the SNMP reads and walks, the DSP’s SSH, Telnet and
raw-TCP shell sessions with their pushes and its UDP echo, the drift each seeded source draws, and a
pinned room day with and without a calendar) and the transcripts were committed
(sim/testdata/wire). The families replay them: the same bytes, headers, state, SNMP types and
values, shell output and sequences, and the same console listing of every face, with only the
accidents of the templates refused instead
(ADR-2835).
The generic wire harness grew to hold a family with line faces: it records a family’s faces, plays a
script over each persistent face through the shell loop all three transports run, and sets state a
scenario would. New shared pieces, each its own commit: httpapi.Switch and httpapi.Element
(a true/false enum, and a control on one element of a list named by the body), httpapi.Sections,
TickContext.Spans (the room’s meetings over a window, for the pack’s battery), and a Go subject’s
PushLine (a push line that names the subject and token it was subscribed with).
Room control and switching are Go families (#2833)
Section titled “Room control and switching are Go families (#2833)”The Newtron control processor, touch panel and scheduling panel and the Meridian switcher and extender are
Go packages under sim/device/ (newtroncore, newtronpanel, newtronslate, meridianswitcher,
meridianextender), one per wire API, and their five YAML profiles, templates and the shared nvp-room
surface are deleted. The panel’s NVP room is the shared sim/surface/nvp on all five of its line faces, its
dashboard is html/template over a typed view, and the room-following behaviors are sim/behave
primitives: the processor’s RoomPower and Climate, the scheduling panel’s RoomBooking, and the new
PanelFollowsRoom, RouteFollowsRoom, SignalOnInput and ExtenderSignal.
What the engine and the shared helpers gained for it: a tick reads its room’s booked meetings
(TickContext.ReadBookings); a control route takes free text, optionally held to a pattern
(httpapi.Text), and writes a value it derives from the request in the same change (Control.Also); the
console lists a family’s line commands under the face that serves them (Command.Face,
Surface.ListedOn), each with its subscription verb; and the wire harness records line protocols, the
lines a device answers and pushes, and an operator’s hand on the device. Parity with each profile is the
transcript recorded before it was deleted (ADR-2833 lists the two refusals the families make plainly).
The Kestrel video bar, codec and camera are Go families (#2834)
Section titled “The Kestrel video bar, codec and camera are Go families (#2834)”The Kestrel VRoom video bar, Relay C1 codec and Gaze P2 PTZ camera are now Go packages under sim/device/
(kestrelvroom, kestrelrelay, kestrelgaze), and their three YAML profiles and templates are
deleted. Each is one wire API with its model as a row of a typed table: the three APIs differ (the bar’s
status, app and private log routes, its web admin, its live feed and control socket; the codec’s call,
content and peripherals; the camera’s pan, tilt, presets and tracking), so they are three families, each
over the same basic-auth https face. JSON is typed structs, the documents that carry a template’s comment
lines keep them through httpapi.Annotated, controls are httpapi.Control (which now also writes the
changes a field implies, as a preset recall moves the lens), the dashboard is html/template over a typed
view, and the call, sharing, people count and call stats are sim/behave primitives and typed ticks. A
family reaches the live feed from Go: a route publishes a named event after its writes and a tick names the
events it reports from the state it left. Readings are identical because they were recorded: a script ran
against each profile first, its transcript (bytes, headers, state, the named events, seeded drift and the
pinned room day with and without a calendar, and the console’s listing) is what every family test replays,
and ADR-2834 lists the three places the family corrects the profile.
The marketing loops render at twice the viewport, and the teaser walks back to the room (#2868)
Section titled “The marketing loops render at twice the viewport, and the teaser walks back to the room (#2868)”The marketing loops were 1440x900 at 0.4 to 0.9 Mbps, so on a desktop the console’s text blurred into
blocks: the recorder took its frames at 2x, but the camera pass rendered at the viewport’s size and the
encoder raised the crf until the clip fit 1.5 MB per 15 seconds. The camera pass now renders at twice the
viewport (renderSize, the scene in viewport pixels under a 2x root), and the budget is 4 MB per 15
seconds, about 2 Mbps at that size. H.264 only, so the landing page needs no player change.
The teaser’s return from the fixed display to its room was a press: Escape, which moved no pointer and
no camera, so the drawer swapped under the zoom with nothing on screen to show why. It now clicks the
drawer’s Back, which the camera follows, and the shot list refuses press: Escape at parse time.
The simulator says component, not device (#2860)
Section titled “The simulator says component, not device (#2860)”The simulator’s own vocabulary is now the glossary’s: the families live under sim/component/, the
engine’s type is sim.Component (with ComponentSnapshot, spec.Component, LoadComponents and the
rest), and the docs say “simulated component” where they said “simulated device”. The glossary gains
family and simulated component, and the docs lint refuses “simulated device”.
A simulated product’s own wire did not move. A fake vendor’s GET /api/devices, a devices array, a
device_id key or a device.status.changed event is the product’s protocol and stays a string literal,
held by the driver contract test and by new tests on the UCC platform’s list, the Newtron panel’s status
document, the world file’s rooms and the outpost’s lists, which fail if a key says component. The
outpost and server lists keep their devices JSON keys, so no released surface changed.
A guard in internal/build walks the simulator’s Go source (sim/, cmd/familygen, cmd/simgen) and
fails on a package name, import path, identifier or comment that says device, naming the file, line and
the word to use. A product’s wire vocabulary passes through string literals, or through a quoted token in a
comment; an explicit allowlist with a reason per entry holds any other exception.
The wire goldens and parity scaffolding are trimmed to a replay seam (#2837)
Section titled “The wire goldens and parity scaffolding are trimmed to a replay seam (#2837)”The golden wire transcripts existed to prove each Go family matched the YAML profile it replaced, byte for
byte. With no YAML left that proof is moot, so it is trimmed. The 27 recorded transcripts under
sim/testdata/wire, the recorder (TestRecordWire and what only it used), the Frozen, Quirk and
Diverges hooks, the per-family parity and wire-script tests and the line, shell and event helpers that
served them are deleted. ADR-2832 to ADR-2836 still record what diverged from the profiles.
What stays is the replay half: the transcript format and replayWire in sim/wire_replay_test.go, the seam a
capture from a real device plugs into, with one small test (sim/wire_replay_seam_test.go) that replays a
transcript against borealedge and fails on an altered expectation. A family’s own behavior is now held by
its own tests and by the driver contract test (TestEveryShippedDriverPollResolvesAgainstItsSimulatedFamily,
internal/collection): for every seeded product a family serves, the device starts on loopback, its shipped
driver’s polls run through the real collection path, and every metric and property the driver declares must
resolve in every record, generated from the seed and the catalog (25 products, 23 drivers, 60 polls and 188
signals today). The tests of the families against sim/behave stay (sim/behave_family_test.go), and so do
the line-session tests that lived beside the recorder helpers (sim/line_session_test.go).
The YAML device store retires, and the simulator’s family and coverage tables generate from Go (#2837)
Section titled “The YAML device store retires, and the simulator’s family and coverage tables generate from Go (#2837)”With every simulated product a Go family, what only YAML profiles used is deleted. The profile store and its
loader, schema.json, the surface fragments, the response and behavior templates, the sim/profiles embed,
the spec.FromProfile adapter and Kind, Spec.Behaviors, the engine’s template routes, commands and
behaviors, the push-body template, the subject push-format template and the Native* workaround fields
(the console’s listing of a family is built from its own typed declarations: wire.Route.Sets,
wire.Interface.OIDs) are gone. spec.NewCatalog takes the families alone. A guard test in
internal/build fails the build if a YAML file, a template or a YAML decoder returns under sim/.
What stayed is what operators and families still use. A scenario’s override expression is a template an
operator writes, so the expression engine (now, get, the numeric, scheduling and seeded-random helpers)
stays, cut to what an override can read. The types a family composes (interfaces, auth, subjects, session
limits, the route and command listing) left a profile package that was no longer a profile: they are
sim/wire.
The simulation page’s family and model tables and its coverage tables were hand-written. cmd/simgen now
renders them, with each model’s driver and component type from the seed, into
docs/src/generated/simulation.json, and SimFamilies and SimCoverage render that. coverage.yaml
became typed Go (sim/device/coverage.go), so the alignment and fleet-coverage tests, and the page, read one
accounting. A new family changes the page through make gen; a stale committed file fails
internal/simfacts.
The tests whose only subject was a YAML path went with it (the template loader and its checks, the mutation and route-validation tables, the behavior, emit and computed template tests, the profile-to-family parity check, the template helpers). The ones whose subject was a face (HTTP auth, the SSH, Telnet and raw-TCP sessions, the event stream, observation, faults, operate) now stand on a Go route or command in place of a template. ADR-2829 is amended: the strangler is over.
Breaking: a simulated behavior no longer carries emits. SimBehaviorBody, in the simulation routes’
behaviors list, lost its emits flag. It said a YAML behavior posted a webhook on its timer; a family posts
from its own handlers, so with no YAML left the flag was always false, and the console’s “posts a webhook”
badge went with it. A client reading emits reads nothing now, which is what the field held. The webhooks
themselves are unchanged.