Wait for B2 Core readiness and reconcile exact failed foundation002

This commit is contained in:
Codex
2026-09-30 17:00:03 +03:00
parent 1e191868be
commit 39a2239563
5 changed files with 534 additions and 5 deletions
@@ -65,6 +65,55 @@ reproduction. Qualification with that fixture and with all five NAS files proves
the old failure and corrected exact comparison. This is local parser evidence,
not proof of NAS apply or runtime acceptance.
## Foundation002 failure and exact reconciliation
Runner017 was installed and plan002 passed. Apply002 created the schema and
recreated Core, then failed `Device Core predecessor service is not healthy`.
Automatic rollback recreated Core again; its acceptance also failed. Canonical
failed ledger80 records `started_apply=true`, `rollback_status=failed:DeployError`
at `2026-09-30T13:45:49+00:00`. Incident archive SHA is
`da1c97fb0fd2ed9f50acf198c0492b27a5d7273009c0a85b9231fd8c60a70222`;
backup is `device-b2-foundation-device-b2-foundation-v1-20260930-002-20260930-164433`.
The archive, journal and seven backup-file digests are pinned in the runner.
The acceptance order was wrong: the strict healthy snapshot ran before the
existing bounded readiness/HTTP checks. The tests now exercise the actual
readiness loop through `starting` to `healthy` for both apply and rollback.
Both cases fail on017 and pass on018. Persistently unhealthy containers still
fail after the existing grace window; image/config/dependency guards are intact.
Historical failed-generation health states were not saved, so `starting` is a
reproduced defect, not a retroactively observed Docker status for this incident.
Read-only SMB observation found all three foundation files and its vault absent.
Public Manager health returned200/ok. These facts do not prove restored database
and runtime. No second application attempt is allowed until exact reconciliation.
`device-b2-foundation-reconciliation` is a separate metadata-only component.
Identity: `device-b2-foundation-reconciliation-v1-20260930-001`.
Its sole payload is `deployment/device-b2-foundation-reconciliation-v1.json`;
builder: `infra/deploy-runner/build_device_b2_reconciliation.py`.
Root is `/volume1/docker/nodedc-device-plane`, with no build or selected services.
Plan and apply independently prove:
- exact failed row/archive and immutable before/schema/backup partition evidence;
- accepted r14 baseline and no different unresolved foundation transition;
- no foundation files, private directory, or any of the three new schema objects;
- readiness, original Core image/config, unchanged other containers, Compose
files and application source.
Apply writes only the descriptor and canonical backup/journal/archive, then
repeats the proof before success. Its rollback removes only that new descriptor;
neither path issues runtime mutations or DDL. Only a complete matching receipt
and applied archive can acknowledge this one failed002 record. The original
failed journal/archive/backup remain immutable. A marker alone, altered history,
another failure, remaining schema/data/keys or runtime drift blocks acceptance.
Ordinary app releases also check this barrier even if no foundation overlay is
present. No generic health/fingerprint or unrelated registry rules are weakened.
After reconciliation, a fresh foundation003 plan/apply may add the original
unchanged YAML and SQL.003 is a new immutable identity;001/002 cannot be replayed.
Preparation of018 or a local test is not production reconciliation acceptance.
Local validation: foundation boundary/negative tests, deterministic artifact,
real archive through runner loader, existing release/network-priority/autodeploy
and Device Plane registry regression. SQL was also executed after all17 existing