feat(fleet): add shared WireGuard profiles and bounded rover transport

Add portable shared WireGuard profiles while retaining Tailscale and Worker boundaries. Bound rover command/telemetry delivery, recovery and diagnostic capture across Core and Node.
This commit is contained in:
DCCONSTRUCTIONS
2026-10-29 09:10:01 +03:00
parent bec20d63e2
commit e06ff9a214
180 changed files with 20140 additions and 400 deletions
@@ -0,0 +1,99 @@
# Network runtime and configurable DEV capture — 2026-10-26
## Product surface brief
The operator starts one diagnostic capture from the existing DEV action in the
board observation workspace. Before starting, they choose local event sources,
whether to show live rows, whether to transfer Core/browser evidence to the
board, and independent event-payload rate limits. A capture owns immutable
options, its identifier, on-board JSONL writer and explicit stop/export lifecycle.
It never owns motor authority. Opening the modal removes driving input focus.
Chosen composition: the owner-requested modal using the existing Design Guideline
Window, WindowFooterActions, SettingsCard, Switch, Select, Description and Button.
An always-visible settings panel was considered: it would consume observation
space and imply that choices can mutate a running capture. The modal fits the
one-time pre-start decision. No new workspace, navigation or shared visual entity
is introduced. Local-only event recording is the default; short lifecycle status
still crosses the network. Normal telemetry/video are separate choices.
Start is disabled until Node advertises option support. Cancel/Escape do not
start capture. Pending, error, closing, completed-file and interrupted-file states
reuse existing controls. The log panel remains available after stop for export.
A file's dropped records and errors remain visible. Capture configuration is not
a claim of recording acceptance until board storage status arrives.
## Implemented network contracts
- Packet admission uses cancellable asynchronous Unix IPC. A single absolute
500 ms frame/datagram lifetime covers queue age, permit wait and actual send.
Expired SCTP entries never wait for another permit; transient IPC/allocation
loss retires payload and preserves the peer. Invalid policy framing is terminal.
- Protocol-only DTLS/RTCP has a bounded 2 KiB/s allowance with an 8 KiB burst per
admitted transport, outside disposable payload backlog. Ordinary payload has
no essential flag. Existing peer counts and aggregate payload gates remain.
- Producer leases carry an explicit operator-primary role. Most recent selection
wins, expires after 3 s, and is released with its peer. Primary video receives
its requested share first; other video shares the residual. Finite metadata
gets at most 32 kbit/s before video, cloud/export receive residual capacity.
- At command pressure (existing 150 ms threshold), only an explicitly selected
video may use at most 384 kbit/s. At 250 ms gap/age/silence all optional payload
yields. This is a new policy requiring field qualification; motor deadlines
(400 ms Core lease, 350 ms stream guard, native watchdog) are unchanged.
- H.264 payloads are bounded to 1100 bytes by a per-sender packetizer. NAL content
and order are preserved; no codec globals are changed. Encoder/frame sizes,
reinitializations, expiry, protocol and permit-wait counters are exposed.
- Full budget summaries run at 1 Hz only after capability negotiation. Actual
motor telemetry cadence/sample clocks remain unchanged. Core retains the budget
summary for at most 2 s, with explicit age, independently of motor freshness.
- X4 view canvases retain the last rendered pixels; the UI shows last-presented
frame age during interruption. Decode progress does not advance presentation
time. This does not measure capture-to-screen latency.
## Recording contracts
A strict six-field option schema is negotiated. Core/browser and live event
payloads have independent 8/16/32/64 kbit/s limits; metadata/protocol overhead is
separate. Local-only capture sends no event rows. Local Node events still enter
the on-board file. Recorder lifecycle polls use bounded metadata capacity;
record rows and exports use bulk capacity. Closing a local-only file ends local
polling without waiting for a deliberately disabled live cursor.
Writer rows are immutable serialized bytes, at most 8192 bytes per record,
4096 entries and 4 MiB queued. Stop is out of band, so saturation cannot discard
it. Accepted rows drain before the footer. Oversized Core rows get an explicit
omission marker so stop cursors can complete; missing rows are never silently
reported as complete evidence. Session manifest includes the selected options.
## Qualification and rollout
Node72/X4-22 are qualified and installed through their versioned owner
installers. Core/UI is rebuilt and running; 1344 frontend tests, subsequent
focused checks, typecheck and passive Chrome modal QA passed. X4 passed 126
Ubuntu package tests. Node72 passed full Go race tests, Node UI, environment,
USB-CAN ABI and 427 VESC tests. Its interrupted dependency-fetch stage was
completed by a pinned packaging continuation with source and ELF hash guards;
the original timeout evidence is retained. No unversioned runtime patch was used.
Local DEV recorded 1472 events with zero drops; all 12 export chunks were verified.
The minimum-rate live check found metadata consuming event capacity in Node71.
Node72 separates metadata/export from the event allowance and shares remaining
event capacity between row sources. Two regressions include a real-sized 985-byte
motor row. Physical 8-kbit/s acceptance received 13 motor rows in 16 observations;
the full file retained 824 events, zero drops, seven verified export chunks.
Minimal local configuration selected through Chrome retained only capture start
and stop, with all four optional switches off; its manifest and file agree.
The default modal values return on reopening, and camera preview is live.
Node CAN maintenance restored observation with motor_commands=false. The first
live check during a concurrent large engineering SSH transfer had only 6/16
fresh received snapshots; after pausing that transfer the repeat had 16/16.
Device age is separate: the repeat's first pre-capture sample was 4600 ms old,
then at most 602 ms in the remaining observations. This is scoped evidence,
not a claim of universal low latency. The application regulator does not own SSH.
Exact hashes and acceptance limits are in
`../../outputs/network-dev-20261026/REPORT.txt`.
Scope excludes a transport migration to QUIC, speculative vendor codec tuning,
autonomous movement and physical motor tests without an awake operator. The
provided audit's later transport/LiDAR stages remain separate measured decisions.
@@ -239,3 +239,22 @@ Node также не применяет результаты запросов,
миграция LAN→другой LAN этим расширением не заявляется. Установка и аппаратная
приёмка NET02 фиксируются отдельно в installation ledger; наличие кода и
синтетических тестов само по себе не означает восстановления Rover006.
## Актуализация heartbeat, Node 0.8.49-59 / 24.10.2026
Текущий общий mTLS endpoint допускает bounded JSON до 8 MiB, DEV endpoint —
до 112 KiB; ранний предел 64 KiB выше относится к исходному этапу pairing.
Полный heartbeat single-flight и использует долю inventory единого бюджета.
Короткая /v1/node/liveness (до 2 KiB, 5 с во время большого upload) имеет то же
доверие, возвращает только подтверждение присутствия и хранится в bounded RAM.
last_seen остаётся временем полного inventory; link_last_seen и inventory_fresh
разделяют присутствие Node и свежесть сведений. Ни один из этих heartbeat не
продлевает управление. Дедлайны paced uploads рассчитываются по размеру и
минимальной выделенной полосе; подробный текущий контракт и приёмка —
[общий бюджет канала](38_SHARED_LINK_BUDGET.md).
## Выбор сети Core ↔ Node
Профили Tailscale/WireGuard, установка VPS, применение через настройки БК и границы приёмки описаны в [WireGuard fleet network](40_WIREGUARD_FLEET_NETWORK.md). Смена маршрута сохраняет существующее доверие Core ↔ Node; Worker остаётся в отдельном контуре.
@@ -1,5 +1,53 @@
# Observation and remote control — implementation record
## Remote throttle — 2026-10-16
VESC integration 0.7.5 / Node packaging 0.8.49-4 adds an explicit `duty`
capability alongside the compatible bounded `rpm` mode. The operator's task is
to select throttle independently of available torque. A 48 V, 120 Ah battery
was reported by the owner; this does not establish BMS current ratings. The
owner retained the existing 30 A per-motor operator ceiling. No manufacturer
maximum is inferred from the `75_300_R2` firmware name or the controller's
configured protection thresholds.
Fresh read-only configuration receipts from both controllers show PPM type 4
(Duty Cycle), motor current limits approximately 34.2/34.4 A, maximum duty 0.95
and a speed-PID minimum of 900 ERPM. Previously the keyboard always used RPM
control, capped at 3000 ERPM, plus the raised-rig telemetry envelope of 6000
ERPM / 25% duty. These are software restrictions, not motor ratings. Their
presence is verified; attribution of ground behavior still requires an attended
test.
The new input is 1–100% of the configured PPM full-throttle output, not km/h or
a measured speed setpoint. The native adapter calls upstream Tool's
`Commands::setDutyCycle`; FW 5.02 PPM uses the same duty endpoint. All configured
motor/battery/ERPM limits remain unchanged. The existing temporary-current
workflow only reduces current scales and restores the original configuration.
The native duty entry point requires a live output lease, read configurations,
PPM Duty Cycle and an effective current ceiling no greater than 30 A in both
directions. The duty request cannot exceed the freshly read controller maximum.
The paired drive uses the slower of the configured PPM ramps for consistent
left/right normalization. Throttle telemetry uses controller ERPM/duty bounds;
the separate bench tests retain their previous envelope. Fault, temperature,
current, stall, input-lease, receiver takeover and reversal checks remain.
Zero input releases current immediately; it does not command braking or a
zero-RPM hold.
The admitted settings Window removes the separate standstill switch. Pressing
“Включить управление” is the explicit operator admission on a stopped rover;
the adjacent instruction states this requirement. The driver still performs
its existing current/duty/receiver-neutral checks, including the documented
sensorless standstill limitation. No automatic motion or automatic arm is
introduced. Saved ERPM is never converted into a throttle value: v1 settings
migrate to 10%, retaining model and input layout. Old Nodes remain on the
compatible RPM UI; Core rejects percent commands without the new capability.
Firmware reference: upstream `vedderb/bldc` commit
`3f670137e27e6e383fa79c50cc6b1fa85aab1554`, `datatypes.h` PPM enum and
`applications/app_ppm.c` Duty Cycle branch and ramp. Private read receipts and
build/validation evidence live under `outputs/rover-006-control-20261016`.
No agent-issued arm, drive, calibration or firmware write is part of this work.
Owner request: 2026-09-25. Extend the existing per-vehicle observation center.
The operator sees cameras, map, a vehicle model and per-controller telemetry,
then explicitly takes keyboard/pointer control. Return goes to the vehicle list.
@@ -543,3 +591,372 @@ was sent. Explicit UI Stop completed at 13:21:09 UTC, release confirmed.
A subsequent page reload and settings reopen also passed. These are bounded
UI/lifecycle checks, not new acceptance of driving or RC takeover. Private
entry-startup-result.json contains UTC/monotonic evidence and SHA-256 hashes.
Installed 2026-10-16 11:29:05 UTC through owner release
`7e1d42890af25db8f9c81914`; all installer stages succeeded in 19.64 s. APT
upgraded only mission-core-node 0.8.49-3 -> 0.8.49-4 (zero additions/removals).
Read-only verification confirms Node/VESC active, preparation 0.7.5 complete,
and installed native binary hash matches the qualified payload. Core receives
fresh `rpm,duty` capability and both assigned controllers at zero current/ERPM,
fault=0, no control session. Fresh post-install backups have identical motor
and application configuration hashes for both VESCs.
Browser verification: Gas 10%, current 30 A; 50% accepted without arming, 101%
disables the primary action, 10% restored and retained after Escape/reopen.
Standstill switch absent, primary action present. Canonical Core remains on
8000. No agent-issued arm or movement. Loaded driving, precise ground speed
and physical stopping with the new duty output remain owner-attended tests.
2026-10-16 UI follow-up: current-limit settings v3 repairs the legacy empty-input
0 -> 0.5 A clamp to the owner-approved 30 A. Empty/invalid drafts no longer
overwrite valid saved settings; explicitly saved v3 0.5 A remains valid.
The last fresh advertised control capability is retained through stale reads;
missing telemetry no longer makes a duty-capable rover display ERPM. A failed
preparation/session now leaves an operator-visible reason.
Read-only journal evidence from the owner attempts showed command lease gaps
17–30 ms beyond the then-advertised TTL during preparation. The UI sender
previously serialized fresh intent behind HTTP acknowledgement. It now permits
at most four in-flight requests, with no command queue and sequence-aware
handling of delayed replies. All input-freshness checks, 350 ms HTTP deadline,
Core/Node/native watchdogs and no-resume rules remain unchanged. The gap
evidence alone does not isolate browser scheduling from transport latency.
No Node installation, firmware/configuration change, arm or motion was issued
by the agent for this follow-up.
Validation: 1103 frontend unit tests, architecture check, TypeScript and build
passed sequentially. Browser QA on canonical 8000 verified Gas 10%, current
30 A, blank current disables Enable, reload restores the preceding valid
30 A, Escape and the expanded view. The bounded delayed-ACK regression proves
latest intent is not serialized behind old replies; hardware preparation and
loaded driving with this correction remain owner-attended verification.
Private logs/screenshots: outputs/rover-006-control-20261016-followup.
Owner retry at 12:21:31–12:22:08 UTC reached ready and driving, with observed
peaks near 12400 ERPM and 30 A per motor, fault=0. The session subsequently
expired again: the local command sequence jumped across a 389 ms interval,
longer than its preceding 357 ms TTL. Final stopped telemetry confirmed
release and zero current/ERPM. This trial proves preparation and actual output,
not stable remote operation. Core logs also contain registry lock waits up to
160 ms; their contribution to this particular expiration is not isolated.
Owner explicitly revised interruption behavior: automatically restore control
readiness after temporary connection loss, without restoring remembered motion.
The frontend now retains the operator's request only in RAM, retires the expired
lease, shows canonical LoadingRegion/status «Восстанавливаем связь», and
reacquires a new zero-demand lease after >=500 ms of consecutive fresh stopped
observations of the same motors/driver/profile, with increasing bounded retry
delay. Retry requires a visible focused document. New readiness creates a fresh
input binding: held/repeated pre-outage keys cannot resume movement. Stop,
pagehide/unmount, RC takeover, changed driver/profile or hardware fault cancel
recovery. Delayed arm acknowledgements after cancellation are explicitly stopped.
Native preparation, neutral admission, lease deadlines, current limit, firmware
and OS configuration remain unchanged.
Acceptance: 40 focused recovery/input tests and 1111 full frontend unit tests,
architecture, typecheck and production build pass. Browser confirms the new
copy and gas/current persistence even while the real board is unavailable.
Automatic physical recovery has not yet been verified: after the build the
board is stale and SSH does not connect. No agent-issued arm/motion or network
change was performed. The unchanged Node/VESC versions are 0.8.49-4/0.7.5.
## 2026-10-16: control admission independent of inventory storage
Read-only review of the owner's 12:21–12:22 UTC trial confirmed a 389 ms gap
between new command sequences against the preceding 357 ms remaining lifetime.
Local driver calls and telemetry continued through that interval. Current Core
logs also showed the real-time Node channel waiting on the registry writer lock
for up to 179 ms. This is an evidenced latency source; the existing logs do not
prove it accounts for the entire historical command gap.
The Core now publishes a minimal committed binding projection for the rover
channel. Browser view/arm/command and every authenticated Node telemetry/stream
frame use that short independent lock; inventory validation, configuration
archival and SQLite fsync retain the registry writer lock. Authentication and
endpoint-revision rules share the same functions with ordinary heartbeat.
Failed database commits never publish authority. Explicit computer replacement
holds the channel lock across admission/publication so it cannot race a new arm.
Revocation/replacement discards old transient control state. Restart loads
bindings only, never a previous session, motion or telemetry snapshot.
The regression gates archive storage in a synthetic heartbeat and verifies
both directions of the production control path complete before releasing that
writer. Additional checks cover revoke, replacement/arm race, certificate
rotation and expiry, endpoint supersession, failed commit and restart. All 134
fleet tests pass. Node/VESC code, 400 ms command lifetime, current limits,
neutral admission and OS/network configuration are unchanged.
The observed ~10 s preparation is a separate phase: the VESC owner reads and
checks current controller configuration, archives recovery data, queries CAN
peers and confirms neutral/standstill before granting readiness. Repeated lease
loss restarts that preparation; this change does not skip those checks. Physical
control/recovery acceptance still requires an owner-attended trial.
Private bounded evidence and before/after measurements:
`outputs/rover-control-channel-20261016`.
Applied to the canonical local service at 14:16 UTC after confirming observing
state and no active control session; restart recovered health on port 8000.
Two bounded read-only runs, 120 observations each at 4 Hz, both had 120/120 fresh
snapshots. Local API response milliseconds before/after: median 6.8/4.3,
p95 66.2/53.8, maximum 113.5/141.6. These measurements do not demonstrate the
absence of scheduling/network spikes or establish stable driving. The isolated
writer-blocking regression proves removal of that specific contention only.
Owner-attended retry at 14:21 UTC: preparing 14:21:01, ready 14:21:11,
followed by owner motion input. The observed session identity stayed unchanged,
with no VESC fault reported. Last new telemetry arrived around 14:21:39 and
became stale at 14:21:40. SSH, general heartbeat and tailnet reachability were
also lost. The board returned with a NEW boot at 14:24:12; Node and VESC services
started at 14:24:38. Previous journal ends abruptly (last persisted record
14:21:27) and wtmp marks the session as crash. These establish an interrupted
board boot. The owner subsequently confirmed a loose power lead and manual
power reconnection. Do not attribute this outage to software or count the trial
as continuous control/recovery acceptance.
The agent issued no board reboot, OS change, arm or movement. Canonical Core
remained healthy; Wi-Fi stayed configured and returned after the board boot.
The next owner-driven session prepared at 14:27:08 UTC, became ready at
14:27:18 and entered fault at 14:27:54. Node/Core delivery remained fresh, with
new command sequences and about 306 ms lifetime remaining at the fault. The
driver reported `Native query timed out or disconnected`; left-controller
telemetry stopped updating while the right continued reporting zero current.
Release confirmation was false, so automatic control recovery was blocked.
No kernel USB disconnect was recorded in that initial interval. This localizes
the failure to the native/controller exchange, but does not distinguish a
controller, physical transport, scheduling or native-engine cause. Stale left
current/ERPM values are not evidence of continuing physical motion.
At 14:30 UTC, separately, the kernel recorded removal from both direct USB
ports and enumeration attempts on hub ports, with descriptor errors -32/-71.
The owner confirmed manual USB reconnection and subsequent VESC battery-power
cycling, after which the missing controller returned. These later events must not
be retroactively treated as the established cause of the 14:27:54 failure.
Diagnostic follow-up: remote control bypassed the ordinary operation receipt
that preserves native RPC failure diagnostics. The VESC service now journals
the initiating exception's command, transport events and preceding calls after
cleanup, rather than its subsequently overwritten `last_rpc`. Connection and
observation failures are also logged, limited to once per 30 seconds per device
or observer. Records are bounded to 16 KiB; logging failure cannot bypass fault,
release or ownership cleanup. No telemetry history or motor commands are added.
Installed with Node 0.8.49-5 / VESC 0.7.6 at 15:15 UTC; see acceptance below.
### Explicit retry after a recovered VESC — 2026-10-16
At 14:44 UTC the owner reported both controllers back in telemetry, but manual
arming immediately stopped on a previous failure. A fresh API read confirmed
zero ERPM/current and fault code zero on both devices, while the terminal
session still carried `release_confirmed=false`. Two software causes were
reproduced: a poll during/after a new Core arm could apply the old terminal
snapshot to the new lease, and VESC preparation inherited the previous release
flag until it reached the output loop.
The UI now accepts the exact preceding terminal snapshot only during an
explicitly requested new lease, until the board acknowledges that lease.
Boot/profile/mode changes still block. Transport recovery cannot suppress a
hardware fault; an error from the newly acknowledged session remains terminal.
The driver sets the new session's release state to unknown, never true, at
preparation admission. Hardware ownership, pending-limit restoration,
identity, neutral/standstill checks and the output watchdog remain unchanged.
No old demand is replayed. Focused regressions include old fault replies before
and after arm acknowledgement, new-session faults and interrupted preparation.
Installed at 15:15:27 UTC through the normal Node 0.8.49-5 / VESC 0.7.6
owner release `d24e43f334419d8a3d085161`, together with bounded native failure
diagnostics. APT upgraded one existing package, with zero additions/removals.
The Node and VESC services are active; installed source hashes match the
qualified payload. Five post-install samples were fresh, observing, with no
session, no error, and zero current/ERPM/fault on both controllers. Wi-Fi remains
connected to DCEXPRESS_DIR_5. Existing X4 0.1.3-15 was preserved by the installer.
The qualified installer is published in Core's normal Node installer catalog.
Validation: architecture checks, TypeScript, 1124 frontend tests, production
build and 158 VESC tests pass; Ubuntu node qualification (including Go race
checks) completed in 285.615 seconds. Two rejected preliminary source inputs
were corrected and retained with their failure logs; neither was installed.
The final package SHA-256 is
`3fb41add4d191324a9ca9df179b0cde11f339465dd0175c68fa8b1dec3a9d7f7`.
No agent-issued arm, motion, controller reboot, firmware flash or network
reconfiguration was performed. Owner trial at 15:18:42 UTC prepared successfully by 15:18:52. The same
session remained active through 15:19:47, including three brief owner-issued
input samples. All 710 observation samples were fresh, with no read errors
or VESC fault codes. This verifies short-session startup/continuity; it does
not prove field reliability or recovery from a newly induced physical failure.
This update does not establish the physical USB root cause. The upstream
[VESC forum dual-controller case](https://vesc-project.com/node/3050) reports
similar USB enumeration errors on different hardware and discusses ground
loops and isolation. This is a diagnostic lead, not a diagnosis of Rover 006.
Upstream [firmware 5.02 commands.c](https://github.com/vedderb/bldc/blob/5.02/commands.c)
implements COMM_REBOOT and COMM_FORWARD_CAN, but a remote reset still requires
an operational command path. An isolated board-to-CAN interface is a candidate
for reducing reliance on each controller's USB port; a complete processor hang
requires an independent reset/power recovery path. Neither change is installed.
### Local browser connection contention — 2026-10-16
The owner stopped driving and authorized bounded throughput tests. On the
existing Mini Wi-Fi connection, two 25 MB HTTPS downloads measured 49.39 and
49.22 Mbit/s; two 10 MB uploads measured 41.37 and 44.97 Mbit/s. The complete
probe transferred 77 MB of synthetic data. Each concurrent gateway, operator
tailnet and Internet ping received 30/30 replies. Operator RTT under transfer
averaged 50.07 ms and peaked at 118.81 ms. These are short link measurements,
not a field-radio qualification or a capture-to-display latency measurement.
No network configuration, power-saving setting or OS package was changed.
Independent measurements reproduced a separate operator-side failure while
opening the observation center: a browser GET spent 706 ms waiting before
request transmission, followed by only 4 ms waiting for the Core response.
Other browser GETs reached the 1000 ms deadline while its 100 ms input timer
continued normally. An independent 60-second local API observer obtained
120/120 fresh samples with a 4.36 ms median and 137.8 ms maximum request time.
This establishes browser HTTP connection contention during this reproduction;
it must not be attributed to onboard Wi-Fi or a VESC disconnect.
The browser now uses a dedicated same-origin WebSocket for rover state and
command acknowledgements, separate from HTTP assets, camera negotiation and
inventory/SSE traffic. The existing authenticated Node channel, driver,
exclusive ownership and motor/output watchdog are unchanged. The socket:
- requires a loopback client, approved local Host and exactly matching Origin;
- only controls the session it explicitly armed; closing an observer cannot
retire another operator's session;
- bounds pending requests and transport buffering, never replays on reconnect;
- carries a conservative absolute deadline from server monotonic samples;
arrival cannot refresh a delayed command beyond that deadline or 400 ms;
- publishes a post-operation state with each acknowledgement so an old cached
`controlling=false` snapshot cannot cancel a newly acknowledged arm;
- revokes its owned session on disconnect; reconnect restores observation only.
Engineering timing is bounded and volatile: one latest video interval and at
most 16 operator timing events in DOM data attributes, cleared with their view.
It contains no SDP, endpoints, credentials, motion values or durable telemetry.
WebRTC interval measurements at the time showed 9–12 ms RTT, 32–62 ms receiver
jitter buffering, approximately 2 ms decode time and no reported packet loss.
These exclude camera capture/SDK and pre-encode delay, so the owner's perceived
1–1.5 second visual feedback delay remains unqualified end to end.
A distinct 15:25 UTC Core outage was traced to another task restarting the
shared canonical service. It is not evidence against the link and does not
explain earlier failures. Private raw evidence, exact timestamps and checksums
are under `outputs/rover-link-latency-20261016`. The file named
`core-during-speed.jsonl` actually starts after the speed probe completed and
must not be used as simultaneous throughput/control evidence.
### Socket acceptance — 2026-10-16
The canonical local service was restarted with control inactive; health returned
in 17.83 seconds. The final built client was reloaded in the in-app browser.
At 16:01:01 UTC the view had collected 298 state samples over approximately
one minute, with zero stale samples after the first fresh state and no slow
or failed state requests. One 200 ms browser timer interval occurred while
control was inactive; no telemetry dropout accompanied it. Both VESCs showed
live voltage/temperature and no fault, and the preparation dialog's enable
button was available with the existing 30 A limit. The agent did not arm or
move the rover. This qualifies observation/startup only, not driving latency
or long-duration wireless/USB reliability.
The full frontend suite passed 1132 tests. After the final post-arm cache and
small-buffer correction, 26 focused transport/startup/focus tests passed;
53 Python control/channel/socket tests, TypeScript and the production build
also passed. The final update is Core/client-only; the qualified Node 0.8.49-5
and VESC 0.7.6 installation was not changed again. Network and OS settings
were preserved. Owner-attended physical input-to-motion and scene-to-display
latency measurements remain outstanding.
### Hidden desktop control pause — 2026-10-16
Historical implementation, superseded below by the owner-requested native
neutral hold. Hidden-page release/reprepare was rejected by the owner.
After the owner accepted the corrected PWM preparation and stationary hold,
they reported control recovery when returning from another macOS desktop.
A read-only DOM observation in the in-app browser showed hidden-page heartbeat
intervals of approximately 996–1005 ms, versus 100 ms while visible. This is
longer than the unchanged 400 ms control lease. That observer had no active
control and no stale samples among 4053 views. It proves the scheduling
mechanism on this host, not the exact event in the owner's separate Chrome
control window. A subsequent bounded Core trace had 30/30 fresh states and
zero VESC faults.
The client now explicitly relinquishes the session when its document becomes
hidden, discards held input and retains only the existing in-memory request to
resume. Hidden timers never rearm. Returning to a visible, focused document
requests an immediate state refresh; recovery still requires fresh stopped
telemetry, unchanged identities/profile, confirmed release, no receiver
takeover/fault, and the existing new neutral preparation. A fresh physical
press is required for movement. Ordinary blur still sends neutral without
needlessly ending a visible session. Explicit Stop, page navigation, or reload
cancels resumption; late arm acknowledgement while hidden is retired.
The existing StatusBadge/LoadingRegion now distinguish “Управление на паузе”
and “Возобновляем управление” from real connection recovery. An observed
telemetry/transport failure clears the background-pause classification. No
watchdog deadline, motor current limit, Node firmware, network setting or
browser energy-saving setting was changed.
Validation: 42 focused control/recovery/input tests, all 1143 frontend tests,
4 architecture checks, TypeScript and production build passed. The final
client was loaded from the canonical 8000 service without restarting Core.
Browser observation collected 152 fresh samples without a stale transition;
normal and expanded view plus Escape were checked without arming. Physical
hidden-desktop resume and input-to-motion latency remain unqualified. Private
evidence is under `outputs/rover-background-pause-20261016`.
### Preserve prepared control across desktops — 2026-10-16
Owner correction: switching a window or macOS desktop must clear movement
without ending the already prepared session. Returning must accept a new
physical press without another preparation or connection-recovery spinner.
The browser explicitly hands its existing socket-owned session to Core in
neutral on blur/hidden. Core's native socket loop generates fresh zero-input
frames every 100 ms while that same owner socket and fresh board telemetry
remain available. It cannot repeat or extend nonzero input. Browser intent
sequence and outbound frame sequence are separate, so the first new physical
input after return is accepted within the same session after any number of
native neutral frames. Internal hold metadata is excluded from the Node wire
contract. Observation, Node reads and a second operator cannot claim a hold.
All commands still have the existing absolute deadline, at most 400 ms.
Maintenance checks expiry before renewal and cannot revive an expired lease.
Socket disconnect, stale telemetry, driver/relay restart, binding revocation,
receiver takeover and the current session's terminal fault/stop retire the
hold. Explicit Stop and page navigation/reload also retire it. Existing
transient-failure recovery remains separate. No motor-current limit, native
output watchdog, controller firmware, Node package or network/OS setting was
changed. No agent-issued physical arm or motion was performed.
A synthetic socket test withheld every browser command for six seconds while
providing board feedback: the session ID stayed unchanged, all maintained
frames were zero, and a subsequent fresh operator command was accepted without
arming again. Once motion resumed, missing input still expired the lease.
Hook tests cover a five-second desktop absence, lost focus events, late arm
acknowledgement, explicit Stop/navigation and real telemetry loss. Existing
input tests require a new physical press and reject remembered held input.
Validation: 48 focused frontend control/input/recovery/transport tests and the
focused Python control/channel/socket/stream suite passed. Architecture checks
(4), final TypeScript and production build passed. The full frontend run had
1145 passes and one unrelated map-markup assertion failure: it expects the
exact single class `mission-map__map-actions`, whereas the concurrently edited
map now adds the canonical `nodedc-viewport-controls` class. Those unrelated
files were preserved. Initial typecheck encountered an in-progress simulation
module; the final check passed once that module was available.
Canonical Core was restarted only after fresh telemetry confirmed stopped,
inactive control and zero current/ERPM on both controllers. The new client
bundle is `app-B4Gm-AzL.js`. Normal and expanded rover views and Escape were
checked in the in-app browser without arming. The owner subsequently confirmed
that, after reloading and enabling control on the stationary rover, leaving for
another macOS desktop for the requested 5–10 seconds and returning kept control
enabled without another preparation. This accepts the stationary desktop-switch
scenario by owner report; it does not establish moving focus-loss latency or
long-duration field reliability. Private evidence is under
`outputs/rover-neutral-hold-20261016`.
+515
View File
@@ -0,0 +1,515 @@
# Shared Node link budget
Release status, 2026-10-26: Node75 / VESC 0.20.9 / X4-23 are installed on Rover006.
Node75 corrects selected-video credit starvation under repeated moderate command
age. Full Ubuntu/race/package checks and scoped passive observation passed;
driving/WAN impairment acceptance remains open. Earlier Node72 DEV start/stop,
minimum-rate live view and verified export results retain their original scope.
Detailed release evidence is in the installation ledger and 39_NETWORK_RUNTIME_AB.md.
The shared regulator was introduced in Node 0.8.49-54, X4 0.1.3-17 and K1
0.1.15. Node 0.8.49-56 / VESC 0.20.2 add bounded, resumable DEV export in the
same Node/Core stack. Node 0.8.49-58, X4 0.1.3-19, RealSense 0.6.7 and K1
0.1.16 add producer sizing through that same regulator; qualification and
installation evidence is recorded in the installation ledger.
## Ownership and routing
One Go Node regulator owns the board's optional application egress. Critical
rover telemetry and commands never wait for its permits. It does not modify
motor limits, leases, watchdogs, OS routes, VPNs or Tailscale.
The owner requirement of 2026-10-24 is network-independent operation through
Tailscale. A particular Wi-Fi SSID, physical interface, LAN address, gateway,
operator/board subnet or LTE carrier must not be a product prerequisite or a
persisted workaround. An IP is a current transport locator, never the Node,
Core, vehicle or device identity. Transport reconnection retains the authenticated
binding; it cannot replay expired motion or automatically rearm a stopped session.
The same optional-traffic regulator remains in use after network handover.
Current scope: mTLS identity is independent of underlay addresses. Pairing
recovery uses previously authenticated tailnet IPv4 observations and can migrate
the Core endpoint without replacing keys. A synthetic heartbeat regression covers
Wi-Fi/Ethernet/cellular interface and private-subnet changes with one unchanged
tailnet identity. This is not physical LTE or roaming acceptance. Discovery of a
new Node tailnet address when every previously reported locator is unavailable
is still outside the implemented recovery scope; see
`04_NODE_CORE_PAIRING_PROTOCOL.md`. Do not describe current recovery as having
passed arbitrary simultaneous tailnet address changes.
| Sender | Class | Existing carrier |
| --- | --- | --- |
| X4 and RealSense video | video | WebRTC SRTP |
| K1 and RealSense spatial streams | cloud | WebRTC SCTP/DTLS |
| DEV live view/full export | bulk | Existing authenticated mTLS HTTP |
| Large inventory/archive/receipt envelopes | inventory | Same authenticated Node HTTP |
DEV is capability-negotiated through rover-link. New peers use
`/v1/node/rover-diagnostics` on the same server and certificate/binding checks.
This handler cannot publish telemetry, renew a lease or return motor intent.
Older peers retain their existing transport. Full onboard session recording
is independent of the network view and has no added duration cap.
## Policy and API
Installed on Rover 006: Node 0.8.49-67 / X4 0.1.3-20, 2026-10-25:
`{"schema":"missioncore.link-budget/v1","ceiling_kbps":0,"reserve_kbps":512}`.
Zero means automatic useful-demand growth, initially 4000 kbps, with a 100000 kbps
protocol bound. An explicit persisted 1024..100000 kbps ceiling remains authoritative;
existing operator policy files are not silently overwritten. GET/PUT
`/api/network/budget` remains the authenticated configuration owner.
The same aggregate egress gate now uses weighted water filling with declared
producer demand caps (video/cloud/bulk/inventory weights 7:2:1:1). Unused capped
allocations return to the pool. Idle packet credits may be borrowed within this
optional pool, preserving one packet of donor credit. Producer advice does not
mint permits. Serialized HTTP bodies declare finite demand from their size,
so a small metadata message does not compete as an unlimited continuous stream.
Class bursts remain 4 KiB, aggregate burst 16 KiB; each permit
admits at most 2048 bytes plus a conservative 256-byte overhead allowance.
During control the reserve is at least the configured 512 kbps and at least
1.5 times observed offered critical traffic. During confirmed observation it is
at least 64 kbps and the same measured critical requirement. Unknown/stale mode
(older than two seconds) restores full protection. Before the first local intent
optional accumulated credits are cleared; command leases/expiry/watchdogs are
unchanged. Serialized telemetry bytes and overhead are counted without pacing
critical requests. These counts are offered bytes, not physical wire measurements.
The optional send budget reacts to sustained bad exchanges in a two-second
window or three consecutive transport failures, rather than every outlier.
The baseline is the rolling minimum of up to 320 samples / 30 seconds. A
negotiated Core dispatch duration is subtracted; application/clock errors do not
become congestion evidence. The residual still includes local scheduling and
unmeasured server/transport work: it is not a one-way network-delay measurement.
Healthy windows allow bounded useful-traffic growth every two seconds (20% or
128 kbps), up to declared demand / explicit policy. Individual outliers do not
reset recovery. No dummy probe traffic is generated. The result is an adaptive
SEND BUDGET, not a certified capacity estimate or replacement for WebRTC feedback.
The control runtime continues to use its existing independent delivery deadlines.
No OS qdisc, route, VPN, Tailscale or radio configuration is changed. All ordinary
policy/decision observations remain bounded in RAM; the local budget socket's
GET `/events` returns at most 32 rate decisions. No telemetry history database.
The local `/run/mission-core-node/budget.sock` provides POST `/permit`
and GET `/status`, plus POST `/producer` for expiring video/cloud sizing leases. It is 0660 in a 0750 directory for the existing
mission-core-node service group. It grants no administrative/device authority;
admin.sock remains 0600 and the Node state directory 0700.
Core includes `link_budget` in a fresh rover view when supported. It reports
configured/effective/optional rates, baseline RTT and per-class granted bytes
and deferrals/active producer counts. Stale observations do not masquerade as current budget state.
## Sender behavior and bounds
The shared Python SDK adapter is pinned to aiortc 1.14.0. It gates encrypted
application datagrams and retransmissions at the existing ICE send boundary.
Small handshake/RTCP feedback is exempt to avoid deadlock. RTP awaits permits
inside its existing sender; SCTP uses one bounded FIFO per transport (64
packets/64 KiB, max queued age 0.5 s). A missing budget service, overflow or
expired admission closes that media peer; it never silently sends unbudgeted
data. Local capture and recording retain their independent lifecycle.
A direct await in SCTP's sender was rejected by real RRD loopback qualification
because it allowed reentrant DCEP flushing. The bounded queue preserves its
immediate-enqueue contract. The new RTP pacing-age bound is described below; it
is not a capture-to-screen latency guarantee.
Node HTTP pacing uses cancellable reads of at most 2 KiB, without control locks.
Node 0.8.49-59 isolates inventory from small DEV polls inside this same regulator.
Paced request deadlines are 8 seconds plus 1.25 times the packetized upload cost
at the minimum per-class rate (128 kbps optional / sum of all weights). Both
inventory and DEV use this size-dependent bound; there is no session duration cap.
General HTTP response headers retain their separate 8-second network timeout.
During a full snapshot upload, a <=2 KiB `/v1/node/liveness` request runs every
5 seconds on the same mTLS server and binding, through a second connection of
the existing HTTP client. Full snapshots remain single-flight and cancellable;
no second transport stack or command queue is introduced. Cancellation joins the
upload; endpoint/binding changes cancel it. Older Core may return 404; the original
full heartbeat still works. Deploy Core before the new Node for presence support.
Core stores liveness only in bounded RAM (256 entries, 20-second admission expiry).
It neither saves inventory nor acknowledges operations or renews motor leases.
`link_last_seen` identifies connection presence; `last_seen` remains the full
inventory timestamp and `inventory_fresh` is separate, including agent restarts.
A slow snapshot must not be described as fresh just because liveness arrived.
DEV live rows have a 12 KiB allowance; one negotiated 64 KiB export block has
its own bounded allowance. The diagnostics endpoint accepts at most 112 KiB;
the critical telemetry/control endpoint is unchanged. Newest fitting event
rows are selected for the live view, gaps remain explicit, and full rows stay
on the board. Legacy peers retain 4 KiB export blocks. Node sends a block once
after a successful HTTP response and retries failed exchanges. Status polls
continue while the next offset is being prepared.
The board fixes a byte length and file-generation snapshot for each export,
with capture/token/offset/total validation and SHA-256 per block. Core verifies
blocks and prefetches at most one next block; current plus prefetched raw data
is at most 128 KiB. No complete log cache is created on Core. Disconnecting
the HTTP consumer cancels a blocked wait without cancelling a newer transfer.
A Core restart can rediscover the paired board's closed file without enabling
recording.
The existing save dialog streams verified data to the selected JSONL file.
The browser confirms an offset only after a successful write, then resumes
that exact capture/snapshot after a failed connection (four attempts with
1/2/3-second backoff). A 130-second no-progress timeout applies per attempt,
not to session duration. A changed capture, truncation or corrupt chunk cannot
silently complete. Browsers without File System Access use their native raw
streaming download; they do not get application-managed automatic resume.
Core still verifies raw download blocks and supplies Content-Length.
The first 4 KiB implementation required about 210 seconds for 996,124 bytes.
The initial 64 KiB implementation took 126 seconds; its repeated, already
acknowledged blocks prompted the Node 56 suppression fix. Node 56 completed the same file in 61.14 seconds, and a second transfer
with an intentional client disconnect/resume in 61.75 seconds, with live X4
video. Both matched the onboard SHA-256; 238/238 observation checks were
fresh with no poll errors. These timings are one Wi-Fi acceptance sample,
not a minimum throughput guarantee.
## Adaptive producers
Private `/producer` admits at most 32 process-owned identifiers with three-second
leases. New SDK producers declare their maximum useful demand (`demand_bps`);
legacy producers receive bounded defaults. Weighted, capped allocation redistributes
unused declared demand. Within a video class with insufficient useful shares,
the oldest live viewer retains admission; additional viewers receive zero and
wait without closing capture/recording. This is a deterministic fallback, not an
operator-selectable primary-camera policy. Expired viewers release admission.
The SDK follows Node's bitrate allocation without the former second five-second
hold. Encoding uses 65% of the wire allowance. Spatial profile increases require
two stable seconds; reductions apply immediately. In observation, the profiles
trade FPS before detail: 1280/15, 1280/8, 960/6, 640/4, 480/2, 320/1.
During control the existing latency/FPS profiles remain: 1280/15, 960/12,
640/10, 480/6, 320/4, 160/2. The source preview still has a qualified 1280-pixel
maximum; raw camera acquisition and recording are unchanged. Zero allocation
pauses a disposable preview without restarting its device. The existing viewer
waiting state accepts this hint for three seconds, then expires it. Resumption
has one bounded first-frame grace period; repeated hints cannot conceal a true
source stall or disconnected peer.
New Core replies announce pending DEV work with one boolean on the existing
telemetry exchange. A capable idle Node sleeps its optional diagnostics lane;
capture, closing-tail and export wake it. Reconnection retains a discovery poll
and older Core peers retain their original polling contract. This hint acquires
no optional recorder/export lock and carries no diagnostic rows or motor authority.
RTP pacing now bounds each whole frame from its first paced packet. Fragments
older than 500 ms are discarded, including subsequent late fragments and older
timestamp retransmissions; an in-flight permit RPC can add up to its existing
500 ms socket timeout. The next frame may proceed, and a keyframe is requested
without closing capture/recording. Current sender metrics include actual encoder
time/target, receiver bitrate feedback, expired-frame count and permit waiting.
These are bounded per-peer observations independent of DEV.
The pinned aiortc 1.14.0 adapter caps each actual H.264/VP8 encoder, including
below aiortc's stock minimums, while retaining the codec's normal receiver REMB
min/max/start policy. REMB does not set resolution/FPS: quiet scenes can have
low observed throughput even on a healthy channel, and feeding that observation
into size/FPS produced a feedback loop in the rejected Node57/X4-18 candidate. It does
not alter codec globals or other peers. Changing aiortc requires requalification.
RTP pacing remains authoritative during bitrate transients.
K1 coalesces decoded latest frames before encoding its disposable view and
samples point/color/intensity channels together, retaining provenance. Point
count and publication interval follow the current allocation. Existing encoded
RRD batches remain ordered and resumable; raw records are not decimated.
RealSense similarly bounds point count and sends at most a 16 KiB JSON message.
SCTP application producers check both the channel buffer and the budget FIFO
before adding more messages. K1's already encoded native camera fragments still
use bounded pacing; this increment does not transcode that camera. An absent
K1 camera leaves its channel idle rather than resetting SCTP during admission,
so the RRD channel remains independent.
## Verification and limits
Go tests cover aggregate limits, class non-starvation, policy persistence,
cancellation and adaptation. Core tests cover authentication and separation
from telemetry/control authority. SDK/media tests exercise RTP and actual RRD
loopback and bounded failure behavior. Ubuntu packaging and service closure
are qualified separately from physical acceptance.
Live acceptance with X4 video and DEV on Rover006 had 619 telemetry exchanges
without transport error and 220/220 fresh observation checks across three
intervals. 47 checks occurred during the full-file export. The export matched
the onboard SHA-256 and its footer reported zero dropped records. No motor
commands were sent. See the installation ledger for identities and scope.
This limits integrated Mission Core senders, not all OS traffic or the
operator's LTE network. It does not control SSH, guarantee packet delivery,
or regulate the native K1 camera encoder. Worker 006 synthetic qualification exercises the production budget, bounded
HTTP pacing and command admission together, including one forced bulk
connection loss, virtual command delays up to 700 ms and old-session replay.
The final run admitted 2,800 fresh commands, rejected 1,400 expired commands
and 4,200 old-session replays, and completed three 64 KiB bulk transfers after
one injected disconnect. Command-state access p99 was 3 microseconds; this
is function-call timing, not end-to-end command latency. The temporary
container was removed. This is not a real WAN/WebRTC benchmark. Live K1 and RealSense traffic, actual
network loss/jitter, hour-long sessions and powered driving remain separate
acceptance gates. Future cameras/plugins must opt into the
same SDK budget; they must not create a competing regulator or transport stack.
Adaptive-media acceptance on Node 58/X4 19: the same physical X4 peer retained
1280×640 through 96 seconds of a quiet scene (11–12 fps measured), changed to
640×320 at 9.5 fps while three additional admission-only video leases shared
its budget, and recovered to 1280×640 at 12.5 fps after their release. Six
receiver interval samples reported zero lost packets, dropped frames and
freezes; these are sampled two-second intervals, not an all-session guarantee.
The probe produced no packets and is not a multi-camera load qualification.
One browser video continued to supply all three X4 lenses. The policy remained
4,000 kbps with a 512 kbps reserve.
All 209 Core observation polls succeeded. The first poll retained an older
CAN sample when observation resumed; it is excluded from per-device freshness
acceptance. All subsequent 208 polls contained both VESCs with age at most
432 ms, no VESC fault, zero ERPM/duty/battery current and control disabled.
The temporary peer and all three probe leases were released. This adds short
passive Wi-Fi acceptance only; the physical-cloud, real WAN, long-session and
powered-driving gates above remain open.
## Heartbeat/DEV floor regression, 2026-10-24
An isolated Worker test reproduced the old 8-second failure: a 40 KiB heartbeat
sent only 12 KiB alongside video, and zero bytes with frequent 400-byte DEV polls
sharing its class. Additional deterministic coverage proved floor-congestion
reports cannot reset progress indefinitely. With the Node 59 changes, real
loopback HTTP delivered 41,226 bytes in 31.94 seconds under concurrent video,
cloud and DEV permits at the floor. Seven liveness exchanges continued with a
maximum 5.002-second interval, and DEV progressed. The existing Worker control
state test still rejected expired/replayed synthetic commands. This is a software
qualification without devices, not acceptance of an LTE carrier or an explanation
of every prior motor jerk. Evidence: `outputs/heartbeat-dev-20261024/`.
## Local command delivery — Node 0.8.49-61
The existing 20 Hz Node delivery tick always checks the current intent deadline,
clock bound and stop revision first. A session/sequence successfully accepted by
the local VESC service is sent once; the following unchanged ticks do not repeat
that private RPC. A newer sequence still goes immediately through the same socket.
Skipping a duplicate does not extend its lease, update a telemetry timestamp or
produce a new device sample. Stop/expiry still sends null intent. Failure to send
a new intent or a stop remains terminal; there is no command replay queue.
This removes a reproduced failure where a redundant local send exceeded its
25 ms deadline and retired an already delivered, still-valid command. It does
not relax that deadline, the 400 ms input lease or the native output watchdog.
DEV adds the private RPC phase/timing and delivery_mode to the existing trace;
expanded trace remains opt-in. The physical cause of intermittent measured duty
during steady operator demand remains unconfirmed. Qualification and deployment
are recorded in the installation ledgers.
## Core diagnostic dispatch isolation — 2026-10-24
The dedicated DEV endpoint now releases the binding/channel lock before ingesting
optional records or preparing an export response. Previously the outer channel
lock still serialized this work with telemetry, observation, command delivery and
revocation, despite the separate HTTP connection and inner control-lock release.
Two gated regressions reproduced that dependency without hardware or load.
Admission captures the current binding's diagnostics object under the existing
authentication lock. Optional work uses that object outside the channel/control
locks. Before returning a reply, Core rechecks certificate, binding, endpoint and
object identity. A concurrent revocation cannot be blocked by DEV, publish a stale
reply, recreate a forgotten board or revive motion. The legacy inline transport
is retained; this isolation applies to the negotiated dedicated endpoint.
DEV additionally records `node_telemetry_handled`: exchange count, maximum Core
dispatch duration and reply monotonic timestamp, aggregated at most once/second.
The measurement excludes request-body transfer and response transmission; compare
it with Node's HTTP trace. It never refreshes telemetry or a control lease, and
does not record endpoints, credentials or request bodies. No diagnostic rows are
added when DEV is off.
The final Core change passed 225 fleet tests and was loaded by restarting only
the canonical Core service. A 75-second stationary observation with actual X4
egress and DEV on/off returned 75/75 fresh views; 348 sampled Node HTTP exchanges
had median 15 ms and maximum 193 ms, while 34 Core timing reports reached at most
0.616 ms. All observed ERPM and native output counters were zero. The onboard DEV
file closed with 1,376 written records and zero dropped. This is bounded passive
acceptance, not proof of stable WAN driving or a cause for every earlier jerk.
Later the board became unreachable on both its overlay and physical endpoint;
SSH also timed out. The operator subsequently confirmed a board restart for
that outage; it is not evidence of a Core process failure.
Private evidence and unresolved questions: `outputs/rover-link-delay-20261024/`.
### 2026-10-25 runtime acceptance
Node 67 and X4 20 were installed by owner release `0ef1173f23ce64ab48255f00`.
All 24 Ubuntu Node jobs and 125 X4 package tests passed; local Core/SDK checks
passed 63 tests, and frontend typecheck/1344 tests/production build passed.
Both installed SDK copies match the qualified source hashes. CAN admission
barriers were safe, `motor_commands=false`, and observation was restored.
A bounded 241.76-second passive observation had 120 API samples, no HTTP errors,
and 118 fresh telemetry observations. Automatic send budget remained 5660–5673
kbps, above the former 4000 default ceiling. Idle DEV bulk bytes did not grow.
The browser received one shared 1280×640 stream for all three X4 views, with
11–11.5 decoded FPS in sampled receiver intervals and zero interval packet-loss,
dropped-frame or freeze deltas. These are stationary observation samples, not
movement or saturated-link acceptance. Normal and expanded views were inspected.
Two nonconsecutive telemetry checks at 14:17:17/21 UTC were stale, with fresh
checks between and after them. The Node journal records `cancelled` and
`network_timeout` stream reconnections; this evidence does not establish the
underlying cause. Do not claim the network interruption problem resolved by this
quality/runtime change. No physical handover or control-on exercise was performed.
Detailed private evidence: `outputs/network-runtime-20261025/REPORT.md`.
### Command-stream pressure feedback (introduced Node68, corrected Node70)
The optional Node-egress gate also observes the authenticated command stream,
independently of telemetry RTT. During control, a 150 ms receive silence,
inter-frame gap or conservative Core-clock age upper bound closes optional byte
admission and clears burst credit. The existing local tick detects silence even
while the stream reader waits. Continuous fresh frames for 200 ms reopen
optional traffic at the current estimate; an instantaneous buffered burst cannot
reopen it. Continuing pressure for 200 ms is required before a capacity reduction,
still at most once per second. A fresh receipt resets that backoff evidence.
An isolated jitter sample yields bytes immediately but neither cuts the estimate
nor erases the independent exchange estimator's recovery progress. The ordinary
bounded demand probe then recovers quality. Telemetry success alone cannot
reopen this gate. Idle
observation does not invoke this command-pressure policy.
This changes optional admission only. Command expiry, the 350 ms stream read
watchdog, local driver timeout and native output watchdog remain authoritative.
No expired session is replayed or automatically rearmed. The frame-age value is
a conservative clock bound, not a measured one-way network latency. Bytes
already transmitted/queued and Core egress are outside this gate's control.
DEV receipt and delivery-stop records distinguish Core writes, Node receipt,
retired input and driver delivery. Normal live health exposes bounded command
pressure state without retaining per-frame history when DEV is disabled.
Qualification evidence: `outputs/network-runtime-drive-20261025/`.
Node68 passive acceptance confirmed the new receipt evidence and clean DEV
closure, not uninterrupted command delivery: two stationary captures still
recorded stream timeouts while telemetry mostly remained fresh. A board-side
packet capture showed 424/496 ms receive gaps and, separately, newer TCP segments
waiting for a missing earlier segment. Optional traffic backoff cannot promise
to repair an underlay interruption or remove TCP ordering. The active-control
policy has regression coverage; its physical-drive effect remains unaccepted.
### Terminal faults and closed observation (Node69)
Network priority follows actual remote-control ownership, not a status label.
The VESC snapshot reports `control_active` while its input lease or control
worker (including cleanup) is live. Node combines this with current Core/Node
intent. Legacy terminal `fault`, `stopped`, `observing` and `receiver` states
are inactive; an unknown legacy projection remains conservative. A confirmed
inactive update clears old command-pressure state. Closing observation
intentionally closes the stream and must not starve equipment heartbeats.
Active-control silence still suspends optional egress under the same deadlines;
there is no inventory bypass around the shared budget.
A missing-device preflight that never reached motor ownership has a separate
read-only availability reconciliation. It requires the same profile and bound
physical UUIDs, newly verified attachment generations and a continuous neutral
sample window, with no live control/firmware/motor owner or unresolved limits.
It returns the current state to stopped, preserving last_stop history and
retired input IDs. It does not fabricate a previous release ACK or rearm motion.
The observer runs during this pending check even with DEV and the observatory
closed. This covers empty/partial device discovery, which previously could
leave a fault with no reconciliation candidate.
Qualification and installation status: private engineering evidence in
`outputs/vesc-inventory-recovery-20261025/`. This change does not establish the
cause or resolution of earlier physical CAN read timeouts or network outages.
## 2026-10-25 — valid optional-media denial is not transport failure
The media payload deadline (500 ms) was shorter than Node68/69's command-pressure
recovery window (1 second); sustained pressure can still exceed it. A valid denied permit must expire the
payload, not close its WebRTC peer. X4 package21 consumes the shared SDK contract:
expired RTP frames request a clean keyframe and late fragments stay expired;
expired SCTP datagrams are discarded in the existing bounded queue. There is no
unbudgeted media fallback and no buffering of imagery across a policy pause.
Broken/malformed budget-service responses, queue overflow and real ICE failure
retain peer retirement. Local capture and recording are independent.
The focused regression previously failed with Media egress budget unavailable.
The X4 Ubuntu qualification now exercises real loopback ICE/DTLS/SCTP and resumed
frame decoding after 1.3 seconds of denied permits on the same peer. Deployment
and observed scope are recorded in the installation ledger and private evidence
`outputs/rover-camera-link-20261025-2010/REPORT.md`. The underlying cause of the
owner's earlier TCP interruptions is not established by this correction.
## 2026-10-25 — isolated command jitter must not collapse video capacity
The owner's next drive exposed the excessive Node69 reaction: receipt-only
replay of 1,386 active-session frames kept optional admission paused for 74.4%
of 58.1 seconds. Single-sample reductions alone reached the estimate floor.
Node70 separates immediate yielding, fresh-flow recovery and sustained-pressure
backoff as described above. The same receipt replay gives 26.6% paused and no
estimate loss from this branch. This is a policy reconstruction, not measured
historical bandwidth; the exchange estimator and local silence ticks are
qualified separately. Physical-drive quality and the underlying delivery stall
remain acceptance items. No command expiry, motor settings, reserve or rearming
rule is relaxed.
DEV adds one budget snapshot per second in the optional local recorder loop;
normal operation adds no per-frame history. A rebased receipt-only regression
fixture contains no UTC, device identity, command values or location. Go tests
exercise the production gate with independent virtual watchdog ticks, sustained
silence, old bursts and recovery without estimator collapse. Private evidence
and deployment status: `outputs/rover-drive-20261025-2134/REPORT.md`.
## 2026-10-26 — prepared Node71 / X4-22 contract
- DEV starts through a Core modal with local event recording by default. Strict
capture options independently enable live rows and Core/browser trace, with
8/16/32/64 kbit/s event limits. Short lifecycle metadata still crosses the
network; full files remain on board and use the existing verified export.
Metadata-only diagnostics use bounded inventory capacity; event rows/export
use bulk. The optional diagnostics poll is one second. Queue bytes/records,
drops and out-of-band close are explicit.
- A single 500-ms absolute deadline covers lock, async Unix IPC, permit wait and
send. Expired SCTP datagrams are removed before waiting; RTP fragments share
their frame deadline. Transient IPC/refresh failure and queue pressure discard
disposable payload without retiring the peer. Malformed policy remains terminal.
The last allocation is valid only until its original TTL. This bounds admission
age, not capture-to-screen latency or the age of reliable SCTP application data.
- Protocol-only DTLS/RTCP bypasses payload backlog with a 2-KiB/s allowance and
8-KiB burst per transport. There is no caller-controlled payload exemption.
- Explicit primary video leases are operator-selected, latest selection wins,
expire after three seconds and do not mint packet credit. Finite metadata gets
at most 32 kbit/s; selected video precedes residual cloud/export capacity.
Without an explicit primary, the prior weighted/oldest-view policy remains.
- The existing 150-ms command-pressure response permits only the explicit primary
video at <=384 kbit/s. At 250-ms command gap/age/silence all optional payload
yields. Motor deadlines and authority are unchanged. This new low-video policy
has virtual/race regression coverage, not new physical-drive acceptance.
- Capability-negotiated full budget summaries run at 1 Hz; Core retains them for
<=2 seconds with age separate from actual motor sample freshness. H.264 RTP
payloads are <=1100 bytes using per-sender NAL/FU-A packetization; actual codec
and depayload roundtrip tests cover pinned aiortc 1.14.0. No overlay MTU or
packet-loss field acceptance is implied.
- X4 retains the last rendered image and shows last-presented-frame age on an
interruption. Decode progress cannot update presentation time. Preview roles
are sent only to devices advertising their support.
Detailed implementation and limits: `../audits/2026-10-26-network-runtime-and-dev.md`.
Package/installation evidence: `07_INSTA360_X4_INSTALLATION_LEDGER.md` and private
`outputs/network-dev-20261026/REPORT.txt`. No second transport stack is introduced.
### Installed correction, Node75 · 2026-10-26
Repeated moderate command-age samples now preserve credit for the selected
low-rate video profile. Credit is discarded on the transition into pressure,
with the refill anchor advanced to prevent pre-pressure time restoring it.
Previously clearing every 50 ms could starve an 1100-byte datagram indefinitely
at 128 kbit/s optional allowance. The deterministic two-second regression changes
from zero to 25300 admitted payload bytes within the unchanged aggregate budget.
Emergency yield at 250 ms, background admission, motion leases and stop rules are
unchanged. Full Node units and isolated kernel-shaped/60-second contention tests
passed. Node75 subsequently passed all 24 Ubuntu stages including race, 431 VESC
tests and a two-minute passive hardware/browser check. Command-pressure behavior
on a physical drive remains unqualified. Detailed scope and telemetry tails:
`39_NETWORK_RUNTIME_AB.md`, private `outputs/network-contention-20261026/` and
`outputs/network-release-75-20261026/`.
File diff suppressed because it is too large Load Diff
+64
View File
@@ -0,0 +1,64 @@
# WireGuard: Mission Core ↔ бортовой компьютер
Поставка 28.10.2026: VPS 0.1.1, Node 0.8.49-92, канонический Core на порту 8000. Настройка находится в «Аппараты → оборудование → Бортовой компьютер → Связь Core». Используется стандартное окно настроек NDC. Worker/inference и его Tailscale/MQTT-конфигурация в этот профиль не входят.
## Первый сервер и подключение парка
1. Выбрать «WireGuard · VPS» и скачать пакет VPS. Поддерживается Ubuntu Server 24.04 LTS amd64 с systemd; зависимости берутся из подписанного репозитория Ubuntu. Перенести пакет на VPS и выполнить `sudo python3 mission-core-wireguard-vps.pyz`. Единственный публичный IPv4 определяется автоматически; при неоднозначности установщик спрашивает адрес. Явный вариант: `sudo python3 mission-core-wireguard-vps.pyz install --host PUBLIC_IP_OR_DNS`.
2. Забрать созданный `/var/lib/ndc-wireguard-vps/mission-core-wireguard.json` и загрузить его кнопкой «Загрузить файл подключения». Core проверяет TLS-идентичность из файла, регистрирует собственный ключ и проверяет реальный WireGuard-туннель. На Mac установка/обновление сетевой службы использует штатный административный диалог. Окончание HTTPS-запроса само по себе не считается готовым VPN.
3. В настройках каждого уже привязанного БК выбрать этот общий профиль и сохранить. Новый файл для каждого борта не нужен. На сервере допускаются один Core и парк бортов; каждый борт получает отдельный ключ и адрес. Продуктовой квоты по количеству бортов нет. Доступность новых подключений зависит от адресного пула и ресурсов сервера.
Повторная установка сохраняет идентичность сервера и участников. Если сервер уже установлен, файл можно получить командой `sudo python3 mission-core-wireguard-vps.pyz connection`. Файл подключения содержит секрет первичного подключения: хранить приватно, не добавлять в Git, карточки или публичные отчёты. Закрытые ключи клиентов остаются в локальной root-службе и не входят в общий файл.
## Применение и возврат
Сохранение запускает операцию с ожидаемой ревизией конфигурации. Борт подготавливает туннель; Core принимает подтверждение через новый аутентифицированный канал и только затем фиксирует смену. При неуспехе возвращается предыдущий профиль; незавершённая стадия сетевой службы ограничена 120 секундами. Смена пути отзывает прежнюю управляющую сессию, старые команды не повторяются. Во время операции включение управления блокируется.
Для возврата выбрать Tailscale и сохранить. Борт хранит прежний Tailscale endpoint; его локальный интерфейс также предоставляет возврат к Tailscale. Это предполагает работоспособное существующее подключение Tailscale. Переключение не заменяет первоначальную привязку Node к Core и не меняет Worker.
Видео использует выбранный путь. При WireGuard сигнализация ограничивает адреса Core/Node адресами данного профиля. Браузерные mDNS host candidates не разрешаются в произвольные адреса: ответ содержит адрес WireGuard борта, а входящая ICE-проверка позволяет обнаружить адрес клиента. При смене транспортного поколения прежний video peer закрывается.
## Изоляция
VPS принимает WireGuard UDP 51830 и отдельный HTTPS API TCP 19444. Расшифрованные пакеты находятся в namespace `ndc-fleet-wg`, содержащем только loopback и WireGuard-интерфейс. В namespace нет внешнего интерфейса или default route. Правила разрешают Core ↔ зарегистрированный борт: TCP 8781/8782, UDP для текущих медиапотоков и ICMP. Борт ↔ борт не разрешён. На хостах IP forwarding не включается.
Установка сохраняет существующие сервисы и firewall ARNavi; добавляет только собственные маркированные правила в распознанный firewall. Неизвестные ограничивающие правила не переписываются автоматически. Namespace не имеет маршрута в LAN Synology или Tailscale. Существующий Device Core edge channel и ARNavi authority не перенастраиваются.
## Перенос VPS
Для нового независимого сервера достаточно того же пакета и нового файла подключения. Для сохранения идентичности существующего сервера предусмотрены `migration-export --file /root/wg-transfer.zip`, `migration-import --file /root/wg-transfer.zip --host NEW_PUBLIC_IP` и защищённое возобновление источника `migration-resume --destination-fenced`. Экспорт останавливает исходный сервис и устанавливает запрет его старта; импорт требует пустой сервер и root-owned файл с правами 600. Архив содержит закрытые ключи и хранится приватно.
Перед плановым переносом доступных бортов сохранить рабочий резервный путь Tailscale. После переноса импортировать обновлённый файл подключения в тот же Core и повторно применить общий профиль к бортам через настройки БК. Обновление адреса VPS не считается мгновенным автоматическим переключением всех недоступных бортов. Полный перенос между двумя живыми VPS в этой поставке не квалифицирован.
## Первоначальная приёмка 0.1.0 · 28.10.2026
- Штатная установка VPS 0.1.0 на действующую Ubuntu 24.04, повторная установка и перезапуск сервиса; сохранены службы ARNavi/authority/Device Core edge channel.
- Node 0.8.49-92 установлен версионированным owner installer на N006. Его сетевой helper прошёл проверку сокета; после установки новых аварийных рестартов нет. Счётчик systemd сохраняет 55 рестартов от промежуточного выпуска 91; он не сбрасывался для улучшения отчёта.
- Через реальный UI: скачивание пакета, импорт, повторный импорт, отказ ошибочному JSON, общий профиль 1/50; Tailscale → WireGuard → Tailscale → WireGuard. На борту подтверждена ревизия 3 и endpoint Core в WireGuard.
- Живое X4-видео 1280×640, выборочный интервал 12 fps, около 0,65 Мбит/с, RTT 207 мс; после проверки просмотр остановлен. Это не сравнительный тест производительности сети.
- Frontend: architecture, typecheck, 1412 unit tests, production build; проверены узкое окно и Escape. Ubuntu-квалификация базового Node — 24 этапа; упаковочная коррекция 92 — отдельный этап с точной проверкой изменённого payload. Финальные 18 тестов профилей, установщиков и helper прошли; серверные 5 тестов включают выдачу 50 индивидуальных адресов и отказ 51-му борту.
- На VPS нет маршрутов из namespace к LAN/Tailscale; forwarding хоста 0. На борту только маршруты /32 к Core и шлюзу.
Физически проверен один ровер. 50 реальных бортов одновременно, проезд/управление моторами, длительная WAN/LTE-нагрузка и перенос между двумя VPS не проверялись. Прежняя полевая приёмка сетевых задержек остаётся открытой.
## Идентичность и код
VPS 0.1.0 installer SHA-256: `374624ed88448ecc8483b10f49fc2459a0f5c19de7a39ba2b2f0c39f1b668225`.
Node92 .deb SHA-256: `c84d7019be956e2420cdd21d690069d7e16db9486d8834f2e056993f97c12e9c`.
Owner release: `9cccd46c8af74dac8df5765f`; локальный возвращённый .pyz SHA-256: `9846af7a4c8e74555d816a0fb805c25c3f04bccee068bb79d465d590379825f5`. Полная Ubuntu-квалификация и квалифицированный compiled base сохранены рядом с Node92.
Core: `src/k1link/fleet/network_profiles.py`, `network_client.py`, `network_media.py`, `src/k1link/web/fleet_network_api.py`. Привилегированная служба: `apps/wireguard-client/`. Node: `apps/node-agent/internal/node/network_profile.go`, `packaging/mission-core-node-wireguard.service`, `repack_wireguard_helper.py`. UI: `BoardNetworkSettings`, `useBoardNetwork`, `BoardComputerFeatureSettingsWindow`, `NodeCoreConnectionView`; медиапереход — `packages/sensor-ui/src/useSensorPreview.ts`. Самостоятельный сервер: репозиторий `NODEDC_MISSION_CORE_ARNAVI-VPS`, каталог `wireguard_vps/`, сборщик `scripts/build_wireguard_vps.py`.
## Уточнение владельца 28.10.2026: пример 50 не является квотой
В VPS 0.1.1 удалены LIMIT=50, поле capacity из нового файла подключения и статуса; Core продолжает принимать ранее выданные файлы, игнорируя старое информационное поле. UI показывает только число подключённых бортов. Core/helper и migration больше не отвергают список участников после 50. Регрессия проверяет 80 отдельных бортов и сохранение изоляции.
Это не обещание неограниченной физической ёмкости: существующая IPv4-адресация /24 сохранена без изменения адресов и ключей; текущий allocator имеет 251 доступный адрес борта. При исчерпании адресов выдаётся отдельная ошибка без частичной регистрации. Масштаб больше одного адресного пула требует расширения адресного контракта, а не замены числа в интерфейсе.
Квалификация 0.1.1: 20 адресных Core/installer/helper-тестов, 6 серверных, 1412 UI-тестов, architecture/typecheck/build пройдены. Пакет установлен штатно, новый файл импортирован через UI, helper Mac обновлён, Node92 остаётся на WireGuard. SHA-256 пакета 0.1.1: `79e3604efd56005de788b37610404a31e12c61f15b0edd45c822bbda9b870acd`.
Сравнение 22:36–22:39 МСК: по три одиночных TCP-передачи каждого направления; порядок WG/TS/TS/WG/WG/TS. Медианы борт→Mac: 11,96/6,04 Мбит/с (+98,1%); Mac→борт: 18,30/6,03 (+203,5%). Request/echo RTT: 57,08/60,68 мс, p95 138,75/142,35 мс. Tailscale через DERP(waw); фон Core/Node сохранялся. Один начальный WG-запрос завершился таймаутом, все 12 передач данных завершены. Сохранены исходный измеритель, его SHA и компактные результаты в `.runtime/wireguard-ab-20261028`. Это измерение сети, не вычислительной производительности или управления в движении.