Keep B2 client fixes and move VPS implementation to its standalone repository
This commit is contained in:
@@ -1,208 +1,6 @@
|
||||
# VPS Host admission and tracker map
|
||||
# Серверная документация перенесена
|
||||
|
||||
> Historical implementation ledger. For the current 0.1.41 architecture,
|
||||
> installation, runtime/recovery and accepted limits, start with
|
||||
> [the VPS handoff](../handoff/ARNAVI_VPS_SERVER_20260928.md) and
|
||||
> [the B2 handoff](../handoff/ARNAVI_B2_TRACKER_20260928.md).
|
||||
> Release statements below retain their original qualification date.
|
||||
История приёмки сохранена в отдельном репозитории:
|
||||
[IMPLEMENTATION](https://git.dcserve.ru/SILVER/NODEDC_MISSION_CORE_ARNAVI-VPS/src/branch/main/docs/history/IMPLEMENTATION.md).
|
||||
|
||||
[Подтверждения B2 и граница рантайма, Host 0.1.31](../arnavi_b2/TRACKER_CONFIRMATIONS_20260927.md)
|
||||
|
||||
Historical incremental release: **0.1.38**, adding card-bound configuration guards
|
||||
and verified per-card access in Core. See
|
||||
[physical acceptance and remaining limits](../arnavi_b2/CARD_ACCESS_APPLICATION_20260928.md).
|
||||
|
||||
Release **0.1.37** added explicit permission for both SIMs
|
||||
with full readback and fresh GPRS after restart. Atomic packet/receipt persistence
|
||||
from 0.1.36 is retained. See [both-SIM policy](../arnavi_b2/BOTH_SIM_POLICY_20260927.md).
|
||||
The exact published installer SHA-256 is
|
||||
`140a54c608a6e9c71663cc9435c7ffab12bba6c5277fc78c6d9daa59da19e002`.
|
||||
See [packet and command-result durability](../arnavi_b2/PACKET_COMMIT_20260927.md),
|
||||
[portable transfer acceptance and limits](PORTABLE_STATE_20260927.md),
|
||||
[prior clean installation](CLEAN_INSTALLATION_20260927.md),
|
||||
[durable maintenance](../arnavi_b2/DURABLE_MAINTENANCE_20260927.md), and
|
||||
[physical settings/SIM results](../arnavi_b2/SIM_INTENT_AND_CONFIGURATION_CYCLE_20260927.md).
|
||||
Historical release acceptance below retains its original scope. Complete vendor
|
||||
parity, remote SIM fallback, provider/DNS changes and a real literal-IP endpoint
|
||||
migration are not claimed.
|
||||
|
||||
Owner surface decision: extend the existing apparatus Equipment top-level plus.
|
||||
Options are onboard computer, ARNavi B2 and VPS Host. A VPS is shared across
|
||||
apparatuses and is not a child of an onboard PC. The existing Node enrollment
|
||||
remains private-LAN only. A dedicated VPS workspace/new navigation root is not
|
||||
needed: host admission/settings fit the existing equipment form and settings
|
||||
window. No new shared visual primitive was introduced.
|
||||
|
||||
The root plus now renders the selected type's fields in one dialog. Both Node
|
||||
and VPS sections provide the locally published installer, accepted version and
|
||||
exact OS profile before the pairing field. Shared Window footer actions align
|
||||
to the trailing edge. The role is labelled VPS Host ARNavi; macOS interface names
|
||||
are exposed as hardware labels only inside optional VPN connection settings.
|
||||
|
||||
## Owned modules
|
||||
|
||||
- `apps/vps-host/`: headless standard-library runtime and exact-plan installer.
|
||||
- `scripts/build_vps_host.py`: deterministic payload; exact vendor decoder is
|
||||
bundled from `src/k1link/device_plugins/arnavi_b2/internal.py`.
|
||||
- `fleet/vps_transport.py`: public endpoint validation, TLS pin and local network
|
||||
interface selection. macOS IP_BOUND_IF scopes a physical-interface choice to
|
||||
the single VPS socket; it changes no OS routes or VPN configuration. Other OS
|
||||
profiles use their system routing.
|
||||
- `fleet/vps_hosts.py`: shared identity/assignments, private token, durable cursor
|
||||
and tracker positions. Tracker ownership remains in EquipmentStore.
|
||||
- `web/vps_host_api.py`: loopback operator admission, host settings and telemetry.
|
||||
- `core/fleet/vps.ts`: browser contract and bounded polling lifecycle.
|
||||
- `workspaces/fleet/equipment/VPSHostSettings.tsx`: key/host selector, name,
|
||||
current connection, shared vehicle assignments, real sync status.
|
||||
- `workspaces/fleet/observation/ObservationMap.tsx`: real source projections in
|
||||
the existing Cesium renderer, no simulated movement or fabricated location.
|
||||
|
||||
## State and authority
|
||||
|
||||
New key → pending durable Core credentials → pinned TLS pairing → paired.
|
||||
A network failure after remote consumption can retry with the same persisted
|
||||
credentials. Another Core/token cannot reuse the invitation. Each VPS accepts
|
||||
one Core owner. TLS identity and private journal survive code update/rollback.
|
||||
|
||||
Core periodically synchronizes registered B2 identities whose selected server
|
||||
matches that VPS and whose vehicle is assigned to it. The receiver rejects
|
||||
unknown identities. A policy save is not a device apply. USB apply uses existing
|
||||
qualified transaction/readback. First packet proves uplink; GNSS data proves a
|
||||
position; each has an independent age. Old replay never replaces a newer fix.
|
||||
The source's last known position is retained with its time when offline.
|
||||
|
||||
A VPS can serve multiple vehicles; a vehicle can own multiple independent
|
||||
trackers. Reassignment modifies registry ownership, not tracker identity, SIM
|
||||
or firmware. Host settings are one shared record with optimistic revision.
|
||||
|
||||
## Reproduction and limits
|
||||
|
||||
Installation, key path, backups, rollback, queue limits and the supported OS
|
||||
profile are documented in [`apps/vps-host/README.md`](../../apps/vps-host/README.md).
|
||||
The source tree contains no deployed address, real IMEI, SIM phone number, key,
|
||||
GPS coordinates or private capture. Those live in operator state/evidence.
|
||||
|
||||
The available Ubuntu VPS qualified first installation, upgrade, real rollback,
|
||||
reapplication, no-op reapplication, systemd health and independent TLS connection.
|
||||
The actual USB B2 with an MTS SIM qualified writing a second INTERNAL server,
|
||||
independent readback, receiving real telemetry and showing GNSS on the rover
|
||||
observation map while the onboard PC is offline. UI qualification includes the
|
||||
root chooser, host key form, host settings, normal/expanded map and Escape.
|
||||
Private deployment ledger records exact artifacts, times and device receipts.
|
||||
|
||||
Version 0.1.3 additionally qualified the actual Core download checksum, clean
|
||||
product replacement with backup, automatic restoration after installation
|
||||
failure, explicit old-record replacement using the new key through the UI,
|
||||
fresh B2 telemetry and no-op reapplication. The existing Node 0.8.45-1 installer
|
||||
was copied from its accepted build host and published without updating the board.
|
||||
|
||||
Not claimed: clean-image/other-distribution qualification, thousand-device load,
|
||||
cryptographic device authentication, arbitrary remote B2 configuration, or
|
||||
removal of the existing vendor configuration channel. Existing Gelios server
|
||||
was retained in slot 1 during acceptance; own VPS was added in slot 2.
|
||||
|
||||
## Network endpoint control — Host 0.1.6
|
||||
|
||||
The subsequent qualification replaced the primary Gelios endpoint with the
|
||||
owner's VPS from Core's settings window. The old secondary owner channel remains
|
||||
configured. Saving the endpoint starts a durable bounded operation; fresh GETP,
|
||||
one SETP #1 and an independent readback distinguish intent from confirmation.
|
||||
Core also exposes read-only endpoint inspection through VPS. Reconnection and
|
||||
missing write acknowledgement do not cause a second write. The real reversal
|
||||
experiment restored the entire initial configuration byte for byte.
|
||||
|
||||
Admission now includes observed/confirmed prior endpoints, so saving a desired
|
||||
address cannot remove the old uplink prematurely. Remote scope is only primary
|
||||
host/port on the qualified B2 firmware. Full-profile support, vendor-channel
|
||||
removal and fleet-scale qualification remain open. See
|
||||
[network configuration](../arnavi_b2/NETWORK_CONFIGURATION.md).
|
||||
|
||||
|
||||
## Accepted network settings and restart increment — Host 0.1.23
|
||||
|
||||
The 0.1.6 limitations above describe that release's acceptance, not the current
|
||||
runtime. Both monitoring destinations and the B2 configuration endpoint now use
|
||||
the owned VPS. Host 0.1.23 supports full configuration reads, reviewed profile
|
||||
writes with independent readback, position/output commands and bounded remote
|
||||
restart observation, with no runtime vendor API calls. Core synchronizes the
|
||||
numeric device ID already read during enrollment; conflicting identity changes
|
||||
are rejected and there is no vendor registration dependency.
|
||||
|
||||
The initial bootstrap clears only the documented startup-check bit. On the bench
|
||||
this allowed a full 207-record read after a remote restart, byte-identical to the
|
||||
new target. Existing periodic polling is preserved; background no-update behavior
|
||||
is not yet qualified. See [autonomy acceptance](../arnavi_b2/AUTONOMY_AND_COMMANDS.md)
|
||||
for the exact physical results and remaining scope. Do not interpret complete
|
||||
image transport as proof of all CAN/peripheral/firmware operations.
|
||||
|
||||
The operator download is the exact qualified immutable 0.1.23 `.pyz`, SHA-256
|
||||
`97abb7a869f86debe885e5130dd14791ac7ed0dfea99f9ee75c64bfb229559d0`.
|
||||
Repeated source build matched the installed artifact and manifest; existing host
|
||||
identity, credentials and journal were retained. The onboard Node installer was
|
||||
not changed and no onboard update was performed in this increment.
|
||||
|
||||
### 0.1.24: exclusive B2 SIM selection
|
||||
|
||||
The same downloadable headless installer now carries durable `select-sim`:
|
||||
configuration preflight/write/readback, one restart and measured DS2 return on
|
||||
the requested SIM. No new port, vendor dependency, system package, identity or
|
||||
permission is introduced. The existing Ubuntu Server 24.04 amd64 installation
|
||||
is upgraded in place; paired identity/state and rollback release are preserved.
|
||||
The mode disables data on the other SIM, and the operator is told this before
|
||||
saving. A failed/uncertain operation is never silently retried.
|
||||
|
||||
### 0.1.25: bound Linux TCP delivery, preserve uncertain outcomes
|
||||
|
||||
`ndc_vps/delivery.py` tracks byte frontiers for every guarded stream write and
|
||||
releases a command's deadline only when the kernel and asyncio queues establish
|
||||
TCP acknowledgement. Monotonic timers abort queued delivery at the earlier of
|
||||
operation expiry and 30 seconds after dispatch (12 seconds for HTTP replies).
|
||||
Per-socket zero linger prevents queued data surviving handler close; user timeout
|
||||
provides an additional Linux bound. No global sysctl/firewall changes. The service
|
||||
keeps separate application confirmation and never replays a dispatched action.
|
||||
|
||||
The shipped `qualify_delivery.py` uses two bounded loopback connections and no
|
||||
tracker or service changes. On Linux 6.8.0-137-generic its blocked receiver reset
|
||||
at 0.751091 seconds for a 0.750-second deadline; healthy acknowledged data did not
|
||||
close the stream. Physical B2 qualification demonstrated the real 30-second
|
||||
failure cutoff without USB; no successful execution is claimed for that sample.
|
||||
See `docs/arnavi_b2/COMMUNICATION_LIMITS.md` for evidence and limitations.
|
||||
|
||||
Session: `delivery-a8d26be666ec4dd182f46a4db8d0c566`. Repeated builds matched:
|
||||
installer SHA-256 `c4af2b646cd4463490a329b10abcb09828a97aea2c688cd76dee2fe105d45ee1`,
|
||||
manifest SHA-256 `68365a1ea42b09dafe353c030a79fb7669fb7631c728ff45e5dc23b15307aad8`.
|
||||
Applied through the existing `.pyz` installer, preserving all four identity/key
|
||||
files and the durable journal. The same artifact is published for download in
|
||||
Core. 154 targeted backend cases, 1004 frontend cases, architecture, typecheck and
|
||||
production build passed. This is an update on the existing supported VPS, not a
|
||||
new clean-OS acceptance or proof of deterministic actuator latency.
|
||||
|
||||
### 0.1.26: durable Core delivery and idle runtime
|
||||
|
||||
Core now persists a private transactional outbox before submitting to this host
|
||||
version. Ambiguous HTTP completion first resolves the original ID; unresolved
|
||||
submission retries the identical body/ID/absolute deadline with bounded backoff.
|
||||
VPS deduplicates the ID and admits expired requests as terminal records without
|
||||
dispatch. A never-dispatched position request may survive VPS restart and await
|
||||
reconnection within its original 30-second lifetime. Dispatched actions still
|
||||
never replay, and effectful operations retain live-session admission.
|
||||
|
||||
The host indexes unfinished commands rather than reading complete history in
|
||||
packet/sender hot paths. Idle senders wait for events; active staged operations
|
||||
retain bounded timers. This is not fleet-scale qualification: the existing
|
||||
256-connection limit and finite receiver storage remain unchanged.
|
||||
|
||||
The shipped `qualify_runtime.py` passed on the existing Ubuntu VPS in 1.144 s
|
||||
using synthetic state only. 204 focused backend and 1004 frontend cases passed,
|
||||
as did lint, architecture, typecheck and build. Three indoor real B2 requests
|
||||
were confirmed in 0.887–2.224 s. Each repeated Core submission retained the same
|
||||
operation; capture proves one application frame per operation, including one
|
||||
TCP retransmission. No tracker settings, outputs, restart or USB serial use.
|
||||
|
||||
Session `runtime-b54eb15f6b1e48d09c687801f7347617`; identical repeated builds and
|
||||
downloaded installer SHA-256:
|
||||
`2433f50ea14b7459f59a8fe1191ff0cb7a197e201b4e7230b651915b43661a50`.
|
||||
Installed with the product installer, all four identity/key files preserved,
|
||||
service active and Core UI accepts 0.1.26. Node installer remains 0.8.45-1.
|
||||
See [runtime contract](../arnavi_b2/WEAK_LINK_RUNTIME.md) and
|
||||
[indoor/outdoor evidence](../arnavi_b2/INDOOR_OUTDOOR_COMPARISON_20260927.md).
|
||||
Текущее разделение ответственности: [VPS repository split](../arnavi_b2/VPS_REPOSITORY_SPLIT_20260929.md).
|
||||
|
||||
Reference in New Issue
Block a user