Retain redacted runtime drift evidence before Device Core rollback

This commit is contained in:
Codex
2026-09-29 22:14:48 +03:00
parent f7416bc59a
commit d1c5401f52
6 changed files with 335 additions and 12 deletions
+35 -8
View File
@@ -2,8 +2,11 @@
Status: 2026-09-29. The build runner is installed and push-to-main qualification
works. Release r7 (`edf69068ec64e3d105d5324d39b8eaeface21215`) is accepted
in canonical ledger 385. Production polling is **not activated**. DCPLATFORM-21 owns the deployment
contract; DCPLATFORM-37 tracks activation.
in canonical ledger 385. The outbound production controller was activated by
`device-core-autodeploy-v1-20260929-001` in ledger 386 at18:35:52Z on2026-09-29.
Run8 deployed automatically; run9 failed Manager runtime configuration acceptance
and rolled back successfully. Full ordered-release acceptance remains open.
DCPLATFORM-21 owns the deployment contract; DCPLATFORM-37 tracks acceptance.
## Release domain
@@ -102,22 +105,46 @@ The frozen generic `run_compose` function is byte-identical to the previous Engi
canon. Device Core uses its own exact Core+Manager Compose entry with unchanged
`--pull never --no-build --no-deps`, including rollback.
## Remaining activation work
## Activation and acceptance
- Promote the reviewed root runner through the separate SHA-pinned admin gate.
- Build/stage the bootstrap via `build_autodeploy.py`, then fresh plan and apply.
- Accept a new main commit through CI → automatic canonical deployment, including
ordered commits, failed checks and recovery. Source tests are not NAS acceptance.
- Remove the temporary Mac token copy after private NAS import is verified.
- Runner012 was promoted and verified as
`c1301d1072f3d5d39ba422a09847a05a5aad8a753c816d7fb6916d1f1cadd9c6`.
- The data-only bootstrap built by `build_autodeploy.py` passed fresh plan/apply;
artifact SHA is `fe9298baa5f41a35c2705ee9946b730ff2de7d5b5c9b2b8eb1b4cca0bc8ed12b`.
- NAS imported its root-private credential and removed enrollment staging. The
temporary Mac credential was removed after acceptance. Neither a Mac nor SMB
needs to remain connected for recurring delivery.
- Ordered automatic releases are being verified against their CI receipts,
archive digests, unique canonical journal rows and backups. Failed-check and
crash/reconciliation tests are source qualification, not a claim that the NAS
was deliberately crashed during production acceptance.
No helper from this directory is executed on NAS or installed by an application
release. User-facing NAS deployment commands remain canonical plan/apply.
## Validation
Run9 was rejected for a Manager runtime configuration difference and rolled back
successfully to run8. Its failed archive must not be replayed. The initial
snapshots retained only an aggregate configuration hash, so the specific field
was not available after rollback removed the failed container.
The next runner candidate adds diagnostic field hashes to new before snapshots.
It binds each observation to the checked container/image/configuration identity.
On a mismatch, the canonical failed receipt retains changed field names and
their hashes before the failed generation is removed. Raw environment values,
inspect payloads and external exception text are not included. The v2 comparison,
network/mount semantics, selected services and rollback checks are unchanged.
Old snapshots still use their original aggregate hash. This instrumentation is
not a fix for an as-yet-unidentified configuration difference and is not installed
until the separate root promotion succeeds.
See [live acceptance and the run9 incident](ACCEPTANCE_20260929.md).
```sh
python3 -m unittest discover -s infra/device-core-deploy -p 'test_*.py'
python3 -m unittest discover -s infra/deploy-runner -p test_device_core_release.py
python3 -m unittest discover -s infra/deploy-runner -p test_device_core_runtime_evidence.py
python3 -m unittest discover -s infra/gitea-ci -p 'test_*.py'
```