M12.4: retain migration source freezes and explicit aborts
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (network) (push) Successful in 20m44s
Foundation / checks (client) (push) Successful in 22m3s
Foundation / checks (tsan) (push) Successful in 23m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 24m7s
Foundation / checks (postgres) (push) Canceled after 24m3s

This commit is contained in:
dingo
2026-10-18 09:08:50 -04:00
parent 1b5c0cdf7c
commit c625a4cb68
25 changed files with 1342 additions and 18 deletions
@@ -120,3 +120,23 @@ This admits the accounting format and its ordinary continuation. Paired migratio
trace 1 still has no SQL publisher, source freeze, staged ghost or activation
rights. Durable two-head escrow, abort/partition/duplicate settlement, linked
geometry and ecology remain open. No deployment, live upgrade or golden changed.
## M12.4h durable source preparation and abort
ADR-0147/schema 47 retains canonical paired preparation under the source's current
lease and exact head. A verified destination predecessor capsule in the source
namespace supports complete recovery replay. The source keeps all stock at its
unchanged head; the destination is neither staged nor activated. New source
checkpoints/profile changes and interval/player reservations are refused while
pending. A replacement owner recovers the same freeze, without a timeout-based
release. Explicit current-source abort appends its immutable outcome and removes
the pending pointer with both biological heads unchanged. Retrying an aborted
preparation never reopens it.
The owning host withholds readiness and advancement while frozen or uncertain,
retains exact requests, renews authority and polls paused work once per second.
A fixed migration-freeze gauge identifies known pauses. Missing/corrupt capsules
and canonically encoded false member/material declarations fail complete replay.
See [the contract](../../schemas/ecology/cellular-migration-freeze-v1.md).
Destination staging, atomic paired head publication, commit/abort races and
activation remain the next segment; no route or automatic migration is enabled.
+6
View File
@@ -61,6 +61,12 @@ version-upgrade evidence and complete replayed recovery. Both profile upgrades,
population batch 2 and bundle-preserving profile changes are explicit; no worker
upgrades automatically. This format admission does not publish a migration pair
or close source-freeze/destination-activation and escrow qualification.
ADR-0147/schema 47 now adds durable source preparation/freeze, retained replay
capsules, explicit abort and host pause/recovery. Source stock remains owned at
its exact head through worker replacement; no timeout or drain releases it.
Destination staging, atomic paired commit, commit/abort races and activation
remain open. The destination head is only checked optimistically at preparation
and must be rechecked before any future stage/commit.
The transfer tests also expose the current rules-8 maturation gap: buds retain
their subadult realization while reproduction requires a fully realized parent.
Finite extra food alone does not close repeated wildlife generations. A versioned
+12
View File
@@ -20,6 +20,18 @@ Batch-1/2 cross-binding is refused in both directions. The process-loss and
host-recreation/materialization matrix also runs with batch 2. Full historical
migration/backup/DR/permission regression remains required for schema admission.
M12.4h's private freeze matrix uses funded player-derived wildlife and both
bundle-10 representations. It requires unchanged source/destination heads and
stock, exact request retries, conflicting/new-work refusal, pending-choice/
interval guards, new-epoch recovery, explicit abort without reopening, and real
SIGKILL before/after preparation. Unknown preparation/abort replies pause the
owning host through exact reconciliation; drain/recreation retains the freeze.
Missing and same-length corrupt capsules fail, and canonical false material
fails full biological replay. SQL checksum rejection is checked independently of
the C++ decoder. The metric has one fixed unlabelled series and remains bounded.
These are preparation/abort checks, not proof of destination activation or atomic
paired publication; full historical persistence regression is also required.
Tests defend contracts, not directory coverage. All checks remain active in
Release builds. Current proof has no actual network, biology or distributed
recovery, so those categories below are milestone gates rather than passing
+54
View File
@@ -1,5 +1,59 @@
# Validation report
## 2026-10-18 - M12.4h durable migration source freeze and explicit abort
ADR-0147/schema 47 retains exact source-authorized preparation, both predecessor
manifests and a verified destination payload capsule in the source namespace.
Source stock remains at its unchanged head. Immutable explicit abort removes the
pending pointer without transferring ownership or advancing either head. The
owning host pauses readiness/advancement across uncertainty and replacement,
renews authority and verifies the complete retained biological pair. Destination
staging and paired result publication are subsequent work.
Executed locally:
- Native MSVC Release **78/78 passed**, 14.66 s.
- Actual GCC 14 optional persistence/server targets rebuilt; final private
PostgreSQL population/freeze suite passed, 9 s total (6 s test phase).
- Linux Clang 19 ASan/UBSan final private population/freeze suite passed,
**30 s** total (28 s test phase), with no sanitizer reports.
- Explicit clang-tidy 19 on the new persistence adapter, owning host and
PostgreSQL population tests passed with no owned warnings. Repository
clang-format 19 and both changed shell scripts' syntax checks passed.
- Complete frozen-binary private PostgreSQL qualification passed with **exit 0**,
**502 s**: C++ integration/process/load/history (424 s), life reservations,
backup/restore, host-loss DR, upgrade, migration history/rollback, runtime
permission audit and checksum/future-version rejection. The detached runner
recorded its completion code; no interrupted run is counted as a pass.
Both raw and population representations exercise actual player-origin wildlife,
complete capsule replay, unchanged heads/material, duplicate/conflicting
requests, pending-work refusal and publication/admission bypass guards. Replacement
epochs retain freezes; stale aborts fail, explicit abort is idempotent and aborted
preparation retries never reopen a pointer. Real lock-timeout ambiguity retains
exact requests. Process kills before preparation and after commit distinguish
absence from a retained freeze. Missing and same-length corrupt capsules fail
closed even while the original destination object exists; canonical false
inventory declarations fail full biological replay. The owning-host matrix
covers restart/drain, ambiguous prepare/abort and resumption of identical biology.
The fixed unlabelled freeze metric is included in existing cardinality bounds.
Initial compile/analysis issues (qualified lease-clock type, optional handling)
were corrected. The first new reservation fixture used an obsolete account
control generation and reached the existing epoch fence first. The successful
fixture claims current control inside a rolled-back transaction and reaches the
new freeze guard without weakening either fence.
Limits: source preparation checks the destination head optimistically; it is not
a simultaneous world cut. There is no destination ghost, paired commit,
activation, linked geometry, elapsed-day or multigeneration qualification. Backup
inspection confirms all immutable namespace objects, including capsules, are
copied; existing backup/DR fixtures do not qualify cellular history cloning or a
new cellular restore procedure. No live database, World0, deployment, dependency,
biological rule or golden changed. The supplied `Build_Errors.txt` still contains
the earlier captured CI failures; remote confirmation of their committed runner
repair remains separate. That file and unrelated local work remain untracked.
## 2026-10-18 - M12.4g durable boundary-accounting upgrade
ADR-0146/schema 46 admits the explicit same-profile bundle-9 to 10 upgrade through