docs(arnavi): consolidate server and tracker handoff with qualification evidence
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
# Clean Ubuntu installation and recovery — VPS Host 0.1.33
|
||||
|
||||
> Subsequent release 0.1.35 adds [qualified portable state transfer](PORTABLE_STATE_20260927.md).
|
||||
> The results and remaining gates below describe the earlier 0.1.33 acceptance.
|
||||
|
||||
Owner objective: a downloadable installer must provision the declared bare OS,
|
||||
generate a pairing key, run the receiver and retain durable state through
|
||||
recovery. Updating the previously prepared production VPS is a separate check.
|
||||
|
||||
## Artifact and environment
|
||||
|
||||
- Installer version: **0.1.33**.
|
||||
- Installer SHA-256: `994a6b011bb51feaff8daa97d1854f0f2e1928f8472883d3b910f3cc8b43bb5e`.
|
||||
- Payload manifest SHA-256: `798375cdbee0de2ab78b23bc2380e8139039e7b7c2deb50f43d7d725ed620a40`.
|
||||
- Two source builds produced identical `.tar` and `.pyz` artifacts.
|
||||
- Official [Ubuntu Noble release image](https://cloud-images.ubuntu.com/releases/noble/release/):
|
||||
`ubuntu-24.04-server-cloudimg-amd64-root.tar.xz`, checked against the published
|
||||
SHA256SUMS. Image SHA-256:
|
||||
`820311e238ea34d76a8ca2643d6c01065212e9417109e7397d70472a236df261`.
|
||||
- Guest reports Ubuntu 24.04.5 LTS, amd64, Python 3.12. The accepted product
|
||||
environment remains Ubuntu Server 24.04 amd64, not arbitrary Linux.
|
||||
|
||||
The clean image ran on the owned VPS in separate mount, PID, network, UTS, IPC
|
||||
and cgroup namespaces, using the host kernel. It had only loopback networking,
|
||||
256 MiB memory and a 35% CPU limit. The production service, network and state
|
||||
were not mounted into the guest. No package installation, copied dependency,
|
||||
pre-existing product account, product state or prepared application environment
|
||||
was supplied. This is clean-userspace dependency closure, not a second VM,
|
||||
different-kernel or cloud-provider firewall test.
|
||||
|
||||
`scripts/qualify_vps_clean_host.py` owns the temporary substrate and cleanup.
|
||||
`scripts/qualify_vps_clean_client.py` pairs a synthetic Core through the actual
|
||||
TLS API and submits one operation for one synthetic offline tracker. These
|
||||
engineering scripts are not included in the shipped product payload.
|
||||
|
||||
## Failure found and correction
|
||||
|
||||
The old installer relied on the caller's umask when creating its public code
|
||||
directories. With root's umask 0077, the service account could not traverse
|
||||
`/opt/nodedc-mission-vps` and `releases`; first installation failed while
|
||||
generating the invitation. Version 0.1.33 explicitly sets those two owned code
|
||||
directories to 0755. Credentials, state and private evidence remain restricted.
|
||||
A regression checks service-code traversal and secret permissions under 0077.
|
||||
|
||||
Earlier failed test-substrate starts are retained: the namespace guest needed
|
||||
`pivot_root`, a traversable guest root, and time to finish its stock first-boot
|
||||
network wait before measuring product installation. No product OS repair was
|
||||
performed manually. The final run used a freshly extracted image and the
|
||||
unchanged accepted 0.1.33 installer.
|
||||
|
||||
## Passed acceptance
|
||||
|
||||
| Check | Result |
|
||||
| --- | --- |
|
||||
| First installation on clean image | Service active and enabled; key generated |
|
||||
| Listeners | TCP 19443 and 9922 listening |
|
||||
| Key admission | Synthetic Core paired through TLS API; device registered |
|
||||
| Repeated installer | `already_current`; four identity/key files unchanged |
|
||||
| Service restart | Same owner authenticates; original queued operation retained |
|
||||
| `--fresh` | Private backup created; replacement obtains a new TLS identity |
|
||||
| `--restore` | Original four identity/key files restored byte for byte |
|
||||
| Restored API/runtime | Same owner token, device registration and pending job usable |
|
||||
| Production upgrade 0.1.32 → 0.1.33 | SQLite backup; four identity files preserved; active service |
|
||||
| Installed payload | All 27 files match accepted manifest |
|
||||
| Mission Core download | Exact accepted 0.1.33 checksum; Node remains 0.8.45-1 |
|
||||
| Actual B2 after upgrade | Position command token-confirmed, code 0, one attempt, 0.637 s |
|
||||
|
||||
The first Core command admission after the host upgrade was rejected before
|
||||
creating a job because of a stale release allowlist. The Core and frontend
|
||||
admission lists were updated together; runtime acceptance now runs against both
|
||||
0.1.32 and the actual current source release. The canonical Core was restarted
|
||||
through its managed installer after SQLite backups and passed health acceptance.
|
||||
|
||||
Temporary systemd units were verified inactive; all test root filesystems and
|
||||
image copies were removed. Approximately 4.3 GB of disk remained free. Private
|
||||
evidence was downloaded, hashed and retained under session
|
||||
`acceptance-e7e12e66a51b4510a2fd5b1a7cc3a93d`. Archive SHA-256:
|
||||
`8e324d80dcbb275e40f855158e20a37d7834eebe9329079429a97ce1ec8ad7e0`.
|
||||
|
||||
## Limits and next gates
|
||||
|
||||
- The tested clean Ubuntu has no blocking local firewall policy. The installer
|
||||
also handles the existing named NODE.DC nftables policy. It does not rewrite
|
||||
arbitrary foreign firewall rules or a provider's external security group.
|
||||
Public reachability of both ports still needs verification on a new provider.
|
||||
- Recovery here is from `--fresh`'s backup in the same OS environment. A portable
|
||||
export/import onto another bare VPS, with a missing service account or changed
|
||||
endpoint, is **not yet qualified**. A fresh installation creates a new server
|
||||
identity; it does not automatically recreate an old paired server.
|
||||
- Keep a stable DNS endpoint for migration where available. Endpoint migration
|
||||
remains explicitly rejected by the current installer rather than silently
|
||||
leaving trackers or the paired Core pointing at the old server.
|
||||
- This is not a thousand-device capacity result. The available Worker 006 was
|
||||
unreachable; no load test ran on the Mac or the production VPS.
|
||||
- [Physical SIM and settings results](../arnavi_b2/SIM_INTENT_AND_CONFIGURATION_CYCLE_20260927.md)
|
||||
separately record the failed SIM-2 return and successful owner-approved USB
|
||||
recovery. They do not establish automatic SIM fallback or full vendor parity.
|
||||
@@ -0,0 +1,208 @@
|
||||
# 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.
|
||||
|
||||
[Подтверждения 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).
|
||||
@@ -0,0 +1,139 @@
|
||||
# Portable VPS state — installer 0.1.35
|
||||
|
||||
The transfer unit is one VPS identity and its entire private journal. It includes
|
||||
TLS identity, Core ownership, registered devices, telemetry/receipt sequencing,
|
||||
maintenance intents, attempt history and stop markers. It excludes executable
|
||||
code, system accounts, unit files, firewall configuration and live TCP sessions.
|
||||
|
||||
## Operator procedure
|
||||
|
||||
Use the exact same qualified `.pyz` on the source and target. First upgrade the
|
||||
source through that installer. On the source:
|
||||
|
||||
```sh
|
||||
sudo python3 mission-core-vps-install.pyz --export-state /root/mission-vps-state.tar.gz
|
||||
```
|
||||
|
||||
Export stops this service and writes a persistent migration fence before taking
|
||||
a consistent SQLite snapshot. It prints the archive's SHA-256. The archive is
|
||||
private mode 0600 and contains keys/tokens; transfer it through the owner's SSH
|
||||
channel, together with the installer. A failure after fencing does not silently
|
||||
restart the source. Its original state remains available.
|
||||
|
||||
On an empty Ubuntu Server 24.04 amd64 installation:
|
||||
|
||||
```sh
|
||||
sudo python3 mission-core-vps-install.pyz --import-state /root/mission-vps-state.tar.gz --sha256 ARCHIVE_SHA256
|
||||
```
|
||||
|
||||
Import checks the complete fixed file set, exact archive and installer digests,
|
||||
TLS key/certificate identity and SQLite integrity before publishing state. It
|
||||
rejects links, path traversal, extra/duplicate/missing members and foreign product
|
||||
paths. A same-filesystem rename exposes the complete state atomically, avoiding
|
||||
a second full-size journal copy. The installer creates code, the system account
|
||||
and the service itself, then checks health. No operator-written service file,
|
||||
chmod, copied runtime or package installation is required on the qualified image.
|
||||
|
||||
Keep the original endpoint and ports. For a DNS endpoint, arrange the DNS move
|
||||
and test public reachability of both ports. Import preserves the TLS identity,
|
||||
so the existing Core credentials continue to work. A literal-IP endpoint needs
|
||||
that IP reassigned or a separate, verified Core/tracker endpoint change; state
|
||||
transfer does not rewrite remote trackers. The current physical test contour
|
||||
uses a literal IP, so an actual address migration has not been performed.
|
||||
|
||||
To cancel migration, stop the target first, then run on the source:
|
||||
|
||||
```sh
|
||||
sudo python3 mission-core-vps-install.pyz --resume-source
|
||||
```
|
||||
|
||||
The source cannot independently prove that a disconnected target is stopped.
|
||||
Do not run both copies simultaneously. A previously exported archive also cannot
|
||||
contain operations accepted after its snapshot. Retain the archive and its exact
|
||||
installer as a pair, along with the corresponding Mission Core fleet state.
|
||||
|
||||
## Recovery semantics
|
||||
|
||||
- The queued operation keeps its ID, desired parameters, ordering and history.
|
||||
- A dispatched attempt without a confirmed result is reconciled by the existing
|
||||
runtime. It is not relabelled as successful because an archive was restored.
|
||||
- A retry uses the original intent and a new attempt; terminal results and stop
|
||||
markers remain in the journal. Original deadlines are not extended by copying.
|
||||
- Live TCP sessions and their liveness are never restored; new tracker input is
|
||||
required by the existing dispatch policy.
|
||||
- Only the source snapshot is authoritative during transfer. This is planned
|
||||
migration/recovery, not automatic multi-host failover or synchronous replication.
|
||||
|
||||
## Reproducible artifact
|
||||
|
||||
- Final installer: `vps-host-0.1.35.pyz`.
|
||||
- SHA-256: `3ed73ffe6b015cc1c39fa5dbcaeb869b8df832ceed2f764fafd06d11de9426ea`.
|
||||
- Payload manifest: `7ff98f60b943b81703873d09ef79cda65be2b4f94872dfbf6b7ac44570ffb78e`.
|
||||
- Tar SHA-256: `e6bc8c19d005355edae6469bb24717a98d921254ea19b25040c6ee064b700c76`.
|
||||
- Two independent source builds produced identical archives.
|
||||
- Candidate 0.1.34 is retained separately; it was never published or installed
|
||||
on the working VPS. Version 0.1.35 additionally makes state publication atomic.
|
||||
|
||||
## Acceptance
|
||||
|
||||
Final 0.1.35 passed both clean-image runs and the working-host upgrade.
|
||||
Private evidence session:
|
||||
`vps-portable-b9714da04a334ceea0f335cb8b31caf1`.
|
||||
|
||||
Unit checks exercise preservation of a dispatched attempt, a queued successor,
|
||||
a stopped-before-submit marker and full database contents. Restoring the runtime
|
||||
retains one interrupted attempt, leaves its parent intent queued, preserves the
|
||||
stopped marker and has no copied live sessions. Failure before state publication
|
||||
leaves no target identity; failure during service installation leaves a complete
|
||||
verified state that the same installer can resume without generating new keys.
|
||||
|
||||
The clean-image substrate uses the official Ubuntu 24.04.5 amd64 root image,
|
||||
SHA-256 `820311e238ea34d76a8ca2643d6c01065212e9417109e7397d70472a236df261`.
|
||||
Each guest has separate mount, PID, network, UTS, IPC and cgroup namespaces,
|
||||
loopback only, 256 MiB memory and 35% CPU. Guests run sequentially. This qualifies
|
||||
clean userspace and service-account creation with the actual installer. It does
|
||||
not qualify another kernel/hypervisor, provider security groups or public DNS.
|
||||
|
||||
Portable state is limited to 2 GiB; import requires 2.25 GiB free staging space.
|
||||
Unknown firewall policies and provider rules remain external. Physical SIM
|
||||
fallback, a blank B2 enrollment using a sound USB cable, and Worker 006 scale
|
||||
tests remain separate gates.
|
||||
|
||||
### Observed results
|
||||
|
||||
| Check | Result |
|
||||
| --- | --- |
|
||||
| Clean source installation | Active/enabled service, generated key, ports 19443/9922 |
|
||||
| Synthetic Core admission | Prior token authenticates; device registered; one offline intent queued |
|
||||
| Repeated install, restart, fresh/restore | Identity and pending job retained where expected |
|
||||
| Export fencing | Service start and ordinary installer cannot bypass the fence |
|
||||
| Explicit abort | Source resumes with same credentials; a new export can be produced |
|
||||
| Empty second Ubuntu import | Service user created by installer; prior four key/identity files exact |
|
||||
| Restored API and restart | Same owner, registered device and queued operation, attempt count zero |
|
||||
| Working VPS 0.1.33 → 0.1.35 | Backup before upgrade; four identity files unchanged; service healthy |
|
||||
| Installed manifest | All 28 files match accepted release |
|
||||
| Real-state export/resume | 658,955-byte private archive; source resumed; total 0.990 s |
|
||||
| Real B2 after resume | Request-position confirmed, code 0, one attempt, 0.831750 s |
|
||||
| Core journal | Same confirmation visible; zero pending operations |
|
||||
| Download from Core | Exact accepted installer hash; UI shows 0.1.35 |
|
||||
| Local validation | 108 distinct focused Python tests, 24 frontend tests, production build passed |
|
||||
|
||||
The reference to 108 Python cases includes the additional archive-size guard
|
||||
test and the two publication-failure cases; repeat runs are not counted twice.
|
||||
The frontend retains its existing large-chunk warning; no map/renderer work is
|
||||
included. The onboard installer remains 0.8.45-1 and no board update ran.
|
||||
|
||||
The actual private recovery files are retained on the owner's VPS under `/root`:
|
||||
`ndc-mission-vps-recovery-0.1.35.pyz` and the session-named `*-state.tar.gz`.
|
||||
The archive is also saved in the private local evidence session as
|
||||
`production-state.private.tar.gz`, SHA-256
|
||||
`1c0b4e2a6abe95d8b26c691b1a788dd08e38e5866ac361d3d8349766b762e162`.
|
||||
This is a snapshot; the source has been explicitly resumed. Stop the source
|
||||
before restoring it elsewhere, and prefer a fresh export for a planned move.
|
||||
|
||||
All four temporary guest units (candidate 0.1.34 and final 0.1.35, source/target)
|
||||
were verified stopped. Their root filesystems and Ubuntu image copies were
|
||||
removed after archiving evidence; approximately 4.32 GB remained free. Private
|
||||
qualification archive SHA-256:
|
||||
`cbf876da07cb987115d88ef93d19232232445ac32d1b1cc1160e2b01d9325571`.
|
||||
The actual production service and canonical Core on 127.0.0.1:8000 remain active.
|
||||
Reference in New Issue
Block a user