14 KiB
Stable primary network for recurring Device Core releases
Status: root runner015 and metadata002 were accepted on 2026-09-30. Two subsequent normal releases, r13 and r14, passed CI, automatic canonical installation and separate UI/health acceptance. Both used the accepted override with strict runtime fingerprint v2 and no manual NAS plan/apply. DCPLATFORM-21 owns this exact registry addition; DCPLATFORM-37 tracks acceptance.
Reproduced defect and evidence limits
Docker Compose 2.20.3 chooses HostConfig.NetworkMode from the first result of
NetworksByPriority. Its compose-go 1.18.1 dependency builds that result from a
Go map and sorts only by priority. Equal priorities have no deterministic tie
breaker. Reordering YAML keys is therefore insufficient.
Primary sources:
The official Darwin ARM64 Compose 2.20.3 binary was independently checksum
verified as 51cd66bf94923ec8668f1a78c8740abb6cfbe1189da5720a8051a97be527372b.
Tests used local Docker Desktop Engine29.1.3 through API1.44, an existing pinned
Node image and isolated synthetic services. They used no NAS access, ports,
host mounts, credentials or production data. All test containers/networks were
removed by their exact project after each test; cleanup inventories are empty.
| Check | Result |
|---|---|
| Equal priorities, 32 fresh creates | Private primary28; secondary primary4 |
| Explicit private100 / secondary0, 32 fresh creates | Private primary32 |
| Exact candidate override, 16 Core+Manager recreations | All32 containers kept private primary and both attached networks |
| Original private-primary baseline to exact override, 8 Core+Manager recreations | All16 containers retained every canonical v2 configuration field digest |
Local reports and executable reproductions are retained under
outputs/device-core-stability-20260930/compose-reproducer/ in the NODEDC
workspace: result.json, rollout-result.json, fingerprint-result.json and
their corresponding Python scripts. These are test evidence, never NAS payload.
The accepted NAS plan002 identified Compose 2.20.1-6047-g6817716. The local Engine is newer
than NAS Docker24.0.2, so these checks do not replace NAS acceptance.
The old r9 receipt retained only an aggregate Manager configuration hash, and rollback removed the rejected container. This reproduces a real defect capable of causing that class of rejection; it does not prove which field differed in r9. The existing r9 failure record remains unresolved historical evidence, not a reason to replay r9 or waive configuration acceptance.
Exact registered transition
Component: device-core-network-priority, type app-overlay, fixed identity
device-core-network-priority-v1-20260930-002. Both live and Compose roots are
/volume1/docker/nodedc-device-plane. The package permits exactly:
docker-compose.device-release-network-priority.ymldeployment/device-core-network-priority-v1.json
The existing base Compose files are unchanged. The new override specifies
private-network priority100 and secondary-network priority0 for Core and Manager.
It does not add/remove a network, change network properties, control the default
gateway or change endpoint settings. In particular, priority is not a
gw_priority substitute. The first installed primary must already be
nodedc-device-plane-private for both services.
This initial installation writes metadata only: no build, pull, restart, recreation, database change, network creation or secret repair; services are empty. No new ports, listeners or runtime dependencies are introduced.
Required predecessor is the exact accepted r12 source
b2660df9e26afe977bfa62efd35a8397eac4898b, release identity
device-core-release-v1-r12-b2660df9e26afe977bfa62efd35a8397eac4898b, archive SHA
44c62036967c3ed26bd6c82f94e6f4103ccad06f45c383498210b43ad80c9d7c.
Preflight proves journal/archive identity and every installed release file,
rejects unresolved rollback failures, requires both new paths absent, checks
health and existing secret/mount/network boundaries, then captures all five
Device Plane services and other persistent Compose services.
Canonical docker compose config --format json is read before and with the
candidate override. An in-memory comparison proves that ONLY the two primary
priority values change. Environment values and complete config never enter
logs or receipts. Only config hashes, version, file hashes and runtime evidence
are saved in device-network-priority-before.json with mode0600.
Runner014/plan001 uncovered a missing parser case: the real Compose2.20.3
config --format json output represents bare network attachments as null,
and explicit zero-priority attachments as {}. Earlier fixture-based config
proof tests used {} in both places; actual container tests exercised network
selection/fingerprints but did not call the new effective-config validator.
This was a test coverage gap, not a production topology change.
The corrected proof accepts null as an empty object only at the four known
service/network endpoints in its private comparison copies. Raw before/after
config hashes remain exact. Scalars, arrays, boolean/float/null priority values,
missing primary priority, added networks and changed endpoint properties are
still rejected. Other services and configuration sections are not normalized.
The complete generated config fixture and reproduction commands are committed
under infra/deploy-runner/fixtures/device-core-network-priority-compose220.
The fixture test fails on014 with the same message and passes on015.
001 remained staged with no applied/failed receipt or backup. It is superseded and must not be applied;002 has a new immutable identity and archive digest. 015 rejects001 rather than silently giving that old identity new semantics.
Apply verifies the copied files, effective configuration, original Compose/source,
health and exactly unchanged container identities/images/configuration for all
five services and other Compose projects. It emits deploy-ok only after those
checks. Failure removes/restores only the two new metadata paths, verifies the
original config and runtime again, and records the rollback result. An uncertain
rollback blocks further application releases even when marker files are absent.
Future normal releases and rollback
Only the recurring device-core-release domain appends this override to its
effective Compose files. Activation requires both exact files plus a unique
successful canonical receipt and its checked immutable archive; copying a marker
does not activate it. Generic/Engine executors and historical Device Plane
transitions are unchanged.
Normal release acceptance now hashes the complete effective Compose set,
including the accepted override. Build policy, service selection and
--no-deps --no-build --pull never remain unchanged. Normal activation and
automatic rollback call the same domain executor, so both receive the override.
Rollback still restores exact prior image IDs without rebuilding.
The runtime fingerprint stays v2: only complete uniquely addressed mount objects
are order-normalized. HostConfig.NetworkMode, all its other fields, environment,
mount options and attached network names remain strict. There is no retry-until-
accepted loop and no acceptance of a switched primary network.
Reproducible qualification and operator sequence
Source checks:
python3 -m unittest discover -s infra/deploy-runner -p 'test_device_core_*.py'
python3 -m unittest discover -s infra/device-core-deploy -p 'test_*.py'
Also run the Platform/Device Plane registry suites and the Device Core repository's artifact/real HTTP-health tests against this candidate runner. Twenty focused network-priority tests cover exact payload, deterministic packaging, configuration-diff boundaries, initial predecessor, secret redaction, receipt/archive activation, actual release command construction, no-runtime metadata application and rollback failure. Python3.8 syntax is required.
Promote the reviewed root runner through the separate atomic SHA-pinned gate,
then require its verify-install. Build with the committed canonical builder:
python3 infra/device-core-deploy/build_network_priority.py --output-dir /tmp/device-network-priority
Audit and stage the resulting immutable TGZ through SMB, inspect lifecycle,
then review a fresh NAS plan. Only the matching new plan authorizes the
already-requested apply. No raw Docker/diagnostic shell acceptance follows
deploy-ok: the runner owns that gate.
The completed acceptance sequence was: metadata002 → Device Core Platform pin
update in 33cd08c7ab4b1ee87e8c943fca4a30f38c782aae → automatic r13 →
documentation commit 6ca6738bab22d0fdef714b90c68959363106ee5b → automatic r14.
For each release, verify CI, canonical receipt/archive/backup, runtime evidence
and separate authenticated UI/public health. On another installation, never
advance main before its exact metadata predecessor transition is accepted.
Production acceptance register
Installed root runner015 SHA:
7a213b7d086225ac9677f52e1bde99dd4b57d77da7c548aadb11793336911cf2,
Python3.8.15, exact operator verify-install-ok. Published source:
50dc3b1a2cb1191484f5b90de2d2702b14127425 on
fix/device-core-network-priority-20260930; Device Core pins the full commit.
Metadata002 was accepted at2026-09-30T09:12:12Z, applied journal390,
archive SHA 5ee23f440ef4a5ef7593c5c35b27b17d93d556453df69e152caee1ddd41e8c7b.
Backup:
device-core-network-priority-device-core-network-priority-v1-20260930-002-20260930-121204.
Independent SMB lifecycle inspection found one applied receipt, matching archive,
existing backup, no failed receipt/warnings and expected absence from inbox.
This proves the registered metadata acceptance; it is not an application release.
Do not restage/replay002 or the superseded001.
Live application acceptance below must follow CI → controller → canonical
archive/ledger/backup → authenticated Device Core UI/public GET health.
No manual NAS commands or shell acceptance are needed after deploy-ok.
First release after002: r13/source 33cd08c7ab4b1ee87e8c943fca4a30f38c782aae.
CI passed265application/25CI/170artifact cases (17historical skips). Canonical
acceptance at09:25:33Z, ledger391, archive SHA
5fa322be2619ddfe2ad91f9e7d2c9d2cd1b3f8d91d34b7a2e5650eb9b617fc98, backup
device-core-release-device-core-release-v1-r13-33cd08c7ab4b1ee87e8c943fca4a30f38c782aae-20260930-122207.
The before snapshot identifies r12, both private primary networks and accepted
override SHA 01cd551b23ac56eee2577e60f9e1e4ecdcc252cd09c122d73583e3c39c9f2644.
All77 regular artifact files were compared with r12: only manifest and release
descriptor differ. This qualifies delivery/recreation, not a schema migration.
Independent CI receipt, archive digest, unique canonical record and backup agree;
lifecycle terminal_success without warnings/failed record. Public GET health200,
all three health flags true; authenticated reload retained DC SUDO, DCTOUCH and
Robot2B — Moscow Trike Delivery, with no user/device-data mutation.
Second source 6ca6738bab22d0fdef714b90c68959363106ee5b records r13 acceptance
and triggers r14 through the ordinary main push path. It changes only the
Device Core deployment documentation. No second root command is involved.
A Mac observation issue occurred after r13: the existing SMB read initially returned465 zero bytes for the appended row although the controller reported deployed. Read-only macOS F_NOCACHE/F_RDAHEAD returned the complete391st JSON record, after which the canonical lifecycle inspector passed. The NAS journal was not edited and the release was not replayed. The local observer now reads journals without the client data cache and still rejects malformed rows. A controller status alone must never substitute for journal/archive/backup proof.
Second release r14 was accepted at2026-09-30T09:38:00Z, ledger392, archive SHA
385c2fec8fce300cb80a93edfbcb0d537e34755b0ccc35294c0102b3c4a7f724, backup
device-core-release-device-core-release-v1-r14-6ca6738bab22d0fdef714b90c68959363106ee5b-20260930-123508.
CI passed the same265application/25CI/170artifact cases (17historical skips).
The independently downloaded CI receipt/archive agree with the unique canonical
record and existing backup. Lifecycle is terminal_success, with no failed
record/warnings. Its before snapshot identifies r13; effective Compose file
hashes and all diagnostic field hashes equal the r13 before snapshot, including
both private primary networks. Canonical acceptance also checks the recreated
services against those strict before fingerprints before reporting success.
Artifact payload comparison r13/r14 again differs only in manifest and release
descriptor. Public GET health200 and authenticated Devices UI retained DC SUDO,
DCTOUCH and Robot2B — Moscow Trike Delivery after reload.
The two-release gate is complete. No manual source staging, plan/apply, SSH session or Mac-side deploy authority was used. Mac tools only observed Gitea/SMB and product health/UI; the independent NAS controller performed installation. This is measured acceptance of the Device Core delivery path and the reproduced network-selection correction, not proof of the lost historical r9 field, fleet load capacity, universal multi-repo onboarding or every possible outage.
Local evidence: outputs/device-core-stability-20260930/automatic-acceptance/
contains per-source CI receipts/packages, journal/archive lifecycle checks,
redacted runtime evidence, product checks and cross-release payload/field-digest
comparisons. Platform documentation is published separately from Device Core
main, so recording r14 does not cause an endless chain of documentation releases.