fix(device-deploy): prove r46 rollback and version empty DNS fingerprints
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
# Device Core r46: empty DNS representation
|
||||
|
||||
The r46 release (`e30a6dd2a1eae306d811977188f5d118aefed4ab`) failed
|
||||
acceptance on 2026-11-05. Its rollback restored the accepted r38 source,
|
||||
but failed the v2 configuration fingerprint. The recorded field evidence
|
||||
identifies exactly `HostConfig.Dns`, `DnsOptions`, and `DnsSearch`: saved
|
||||
`[]`, observed `null`. The failed artifact and original backups stay immutable.
|
||||
An accessible UI and 79 matching source files alone do not prove runtime rollback.
|
||||
|
||||
## Registered transition
|
||||
|
||||
`device-core-release-reconciliation` gains one exact marker:
|
||||
`deployment/device-core-release-r46-reconciliation-v1.json`, identity
|
||||
`device-core-release-r46-reconciliation-v1-20261105-001`.
|
||||
|
||||
The live root remains `/volume1/docker/nodedc-device-plane`. The marker selects
|
||||
no service, build, Compose operation, runtime mutation, database or secret.
|
||||
The existing marker-only rollback removes only the newly installed marker.
|
||||
The builder accepts no authority from command-line or payload metadata.
|
||||
|
||||
`r46-evidence.json` pins the exact failed receipt, archive, six backup files and
|
||||
the successful CMS r47/r49/r50 receipts plus their immutable runtime backups.
|
||||
`r46_runtime.py` is embedded in the standalone root-owned installer by
|
||||
`embed_r46.py`; no code is loaded from SMB at runtime.
|
||||
|
||||
## Runtime proof
|
||||
|
||||
The recovery reads three stable observations of all five Device services.
|
||||
It enumerates at most eight combinations of the three **empty** DNS fields
|
||||
and must reproduce each saved whole v2 SHA exactly. No field hash substitutes
|
||||
for this whole-configuration proof. Nonempty DNS settings, environment, mounts,
|
||||
bind order, ports, security flags and networks cannot be changed by the proof.
|
||||
Every image must equal the saved image ID. Preserved Postgres, gateway and
|
||||
backhaul also retain their complete identity and state. Source, Compose,
|
||||
B2 foundation, runtime boundaries and health are checked by existing acceptance.
|
||||
|
||||
Fingerprint v3 keeps the existing v2 mount normalization and converts only
|
||||
explicit `null` values in the three DNS fields to `[]`. Missing fields and
|
||||
malformed values fail closed. Nonempty lists retain every value and their
|
||||
order. Historic v1/v2 fingerprints and their exact acceptance remain intact.
|
||||
New normal Device releases record v3 and version-matched diagnostic hashes.
|
||||
|
||||
## Concurrent CMS releases
|
||||
|
||||
CMS legitimately replaced its container after the Device incident. Recovery
|
||||
does not ignore CMS or arbitrary unrelated drift. It validates only the pinned
|
||||
r47 → r49 → r50 chain, every canonical receipt/archive/backup, the current r50
|
||||
source, running application bytes, configuration and health. The original CMS
|
||||
container ID comes from the pinned r47 backup. Only that one old/new CMS entry
|
||||
is substituted in the derived in-memory baseline. The other 61 Compose entries
|
||||
must be unchanged. CMS's own preserved-service snapshot must also match.
|
||||
A newer CMS successor or unexplained container change requires new review.
|
||||
CMS source, sites, configuration, credentials and runtime are never written.
|
||||
|
||||
## Queue and operator gates
|
||||
|
||||
A marker alone, including an in-progress apply, grants nothing. Only a separate
|
||||
successful canonical recovery receipt with the matching archived marker permits
|
||||
the exact run46/run-number39/digest/source tuple to move from `blocked` to
|
||||
terminal `failed`. It is never made `ready` and never retried. The next qualified
|
||||
commit follows the ordinary outbound Git deployment route.
|
||||
|
||||
1. Review source/tests and promote the SHA-pinned root-owned installer, checking
|
||||
the exact previous installer SHA and an idle deploy lock.
|
||||
2. Run `verify-install` immediately from the installed path.
|
||||
3. Stage the deterministic marker artifact, inspect its lifecycle, then obtain a
|
||||
fresh canonical `plan`. The plan itself performs the read-only runtime proof.
|
||||
4. Review the plan and apply once. `apply` repeats all proof before and after
|
||||
marker installation; no application runtime changes are selected.
|
||||
5. Observe the ordinary next release receipt, then check the resulting Device UI.
|
||||
|
||||
Tests cover integrity failures, real configuration drift, image and dependency
|
||||
changes, unstable observations, unsupported versions, exact artifact scope,
|
||||
CMS generation drift, historical v1/v2 compatibility, queue identity and
|
||||
idempotency, marker-only runtime dispatch and Python 3.8 syntax.
|
||||
Reference in New Issue
Block a user