feat(network): measure Core and onboard links against registered LibreSpeed servers

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:24 +03:00
parent 22f262ca59
commit 1635299252
17 changed files with 1027 additions and 10 deletions
+60
View File
@@ -1,5 +1,33 @@
# LibreSpeed service and router measurements
## Mission Core network settings — owner-approved extension, 2026-11-12
Job: on demand, measure the current operator computer's connection to a selected
registered LibreSpeed VPS. Placement: avatar → Settings → Network, through the
existing EnvironmentSettingsWindow additionalSections contract. System → VPS
remains service administration; placing the test there would conflate the remote
executor with the connection being measured. No new workspace or shared control.
Reuse SettingsCard, Select, Button, Description and the existing speed instrument.
Discover services from the existing VPS catalog and health observations, select a
sole service automatically, preserve explicit selection and the result's server
identity. Absent/loading/unavailable services, queued/running/stopping, complete,
cancelled, stale and error states are explicit. Installation reuses the existing
LibreSpeed service wizard on already registered VPS hosts.
The local authenticated Core API owns the measurement, not the browser. It uses
the system-selected route without interface binding or any route/VPN/Wi-Fi edits.
VPS identity pinning precedes credentials; short-lived leases and the existing VPS
single-test limit apply. Three bounded streams, seven HTTP pings, ten seconds per
transfer phase, cancellation and a total deadline share no board execution state.
Latest receipts remain bounded in RAM, expire after ten minutes and reset daily.
Results identify the selected VPS and time; no durable speed history or invented
samples. Closing settings does not silently restart or cancel a measurement.
Acceptance must cover dynamic service selection, real UI-started operator test,
cancel/restart, same-server contention, TLS rejection before secrets, expiry,
compact typography and canonical settings navigation/Escape.
Approved job: measure download, upload, HTTP latency and jitter from a paired board through its attached Ethernet router to a registered VPS. The operator's Wi-Fi and default route remain unchanged.
Two existing compositions, one setup wizard: System → VPS → Add service selects LibreSpeed; Park → router → Speed measurement selects an existing VPS with LibreSpeed fixed. Creating VPS metadata remains in System. A new global workspace is unnecessary. This is an extension of existing domain content, not a new composition.
@@ -79,3 +107,35 @@ Python router/LibreSpeed tests, scoped Ruff/mypy, and diff whitespace checks.
Evidence: operator workspace `outputs/librespeed-gauge-acceptance-20261111.json`,
`librespeed-gauge-receipts.json`, `librespeed-gauge-live.jpg` and
`librespeed-gauge-final.jpg`.
## Operator network acceptance — 2026-11-12
Avatar → Settings → Network is available in the canonical Core at port 8000.
The picker discovers connected LibreSpeed services from the existing VPS catalog;
McHost was selected automatically after its health response. The same installation
wizard opens from this section and accepts only registered VPS hosts. No new VPS,
service installation, credentials, board deployment or network changes were needed.
Two UI-started operator tests completed: 135.5/133.5 Mbps at 00:58:25 MSK and,
after an explicitly cancelled test, 134.0/132.1 Mbps at 01:01:05 MSK. The latter
reported 13.0 ms median HTTP latency and 5.3 ms jitter. Cancellation interrupted
upload and removed partial values from the instrument. Current OS routing to
McHost used en0 via the existing gateway before and after; no socket interface
binding is used for operator tests. These results describe the operator's path,
not the router/board path qualified above.
Verified dynamic selection, live intermediate values, service wizard, stop/restart,
normal/free settings window, Escape/reopen and retained RAM receipt. The 760 px
layout keeps the instrument within content width; operational numbers are 13 px.
Validation: 1563 frontend tests, four architecture checks, typecheck/production
build, 12 focused Python tests, scoped Ruff/mypy. Tests cover local-only API,
service admission, lost lease reply, duplicate/concurrent requests, cancellation,
lease deadline, RAM expiry, three streams and TLS pin rejection before credentials.
Implementation: `network/{speedtest,speed_measure,speed_transport}.py`,
`web/network_speedtest_api.py`, existing LibreSpeed identity owner, settings
extension, `core/system/{networkSpeedtest,speedtestServers}.ts`, `NetworkSettings`
and the reused speed instrument. Receipt retention is limited to sixteen entries,
ten minutes and the current day; no history database is added.
Evidence: operator workspace `outputs/core-network-acceptance-20261112.json`,
`core-network-cancelled-20261112.json` and `core-network-final-20261112.jpg`.