feat(observatory): show present equipment and compact router and telemetry panes

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:25 +03:00
parent 3ff43dd2af
commit a50d638ced
22 changed files with 369 additions and 35 deletions
+74
View File
@@ -0,0 +1,74 @@
# Live equipment presence in Core and Node
Core's vehicle equipment tree and Node's local equipment section present current
device instances. Saved enrollment, credentials and configuration do not prove
that a device is attached. An absent instance is hidden, not deleted. Its next
valid observation restores the same identity and settings.
## Shared presentation contract
- Sensors use `packages/sensor-ui/src/presence.ts`: the inventory must be fresh
and the individual instance must be online. A plugin cannot opt into permanent
offline rows. Reading saved configuration is independent of visibility.
- Routers use `packages/router-ui/src/contracts.ts`: the snapshot must be
available and fresh, the instance must not be detached or unreachable, and its
observation must be younger than 40 seconds. The existing 30-second future
clock tolerance is preserved. A stalled browser request expires the snapshot
after 20 seconds without a successful response.
- Independent trackers appear only with live online telemetry; a failed or
stalled telemetry read cannot retain their rows indefinitely. The receiving
view expires a response after 20 seconds.
- A VPS in the vehicle equipment tree must be paired and have a synchronization
less than 30 seconds old. Its durable record remains in System/VPS for
administration. Presence is not inferred from enrollment.
- Node places routers inside the same **Устройства аппарата** section as its
sensors, using the existing shared `BoardSections` composition.
Presence is sampled: removal follows discovery or freshness expiry, not the
instant a physical connector moves. An existing settings window can remain open
for inspection; disappearing from the equipment list does not erase settings.
## Router observation
The Node collector also expires stale attachments. Cached ARP entries and saved
credentials cannot revive an unreachable router. Rejected credentials may leave
a router visible for access repair only when its public family endpoint still
answers. Decoration of an unreachable observation cannot set `attached=true`.
Router presence is distinct from cellular registration and Internet access.
A Banana Pi answering over Ethernet remains visible even if every SIM is
disabled or the aggregation server is unavailable. This change does not switch
the board's uplink, restart a router or repair cellular service.
Instance identity remains provider-owned: serial identity for supported USB
devices, MAC/device-CA identity for routers, and enrolled instance identity for
trackers. Labels and model names do not collapse separate devices. The existing
router discovery supports distinct local addresses; concurrent routers with
overlapping identical LAN addresses require separate qualification and are not
claimed here.
## Qualification — 2026-11-13
Core and Node UI type checks/builds, 1,575 Core unit tests, Node UI tests and all
Node Go tests with the race detector passed. Focused lifecycle fixtures cover
ten same-model sensor identities, two routers on distinct synthetic LANs,
unplug/replug identity retention, stale observations, cached ARP and access
failure. These are simulations, not qualification of ten physical cameras.
Node `0.8.53-135` was installed with the versioned owner installer on the existing
prepared Ubuntu board. Installation completed, services recovered, its local
API reported the new version and a fresh Banana Pi observation. The installed
binary matches the qualified payload. The board-to-Core route remained Wi-Fi.
Core's live equipment list was visually checked: unavailable RealSense, tracker
and VPS rows were absent; available equipment remained.
The runtime update preserves the exact OS/network/device helper payloads and
maintainer scripts from qualified Node 134. The only package changes are the
version, executable (including UI) and provenance. The prepared-board package
checks passed; this is not a new clean-Ubuntu or physical hotplug acceptance.
The same Node 135 installer is published through Core's installer catalog.
Private receipts, artifact hashes, package comparison, test logs and served
installer verification are under `.runtime/device-presence-135`. Qualified
releases and the previous rollback release remain under the normal package
owners; disposable transport copies have a separate cleanup receipt.