M12.4: atomically publish and recover biological migration pairs
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (network) (push) Successful in 20m51s
Foundation / checks (client) (push) Successful in 22m2s
Foundation / checks (tsan) (push) Successful in 22m59s
Foundation / checks (postgres) (push) Successful in 53m40s
Foundation / checks (checks) (push) Successful in 1h7m19s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 38s
Foundation / image (push) Successful in 4m31s

This commit is contained in:
dingo
2026-10-18 10:02:55 -04:00
parent 0515702964
commit 0f071f3f8b
21 changed files with 1116 additions and 31 deletions
@@ -163,3 +163,30 @@ Atomic paired publication/common receipt, commit/abort races, recovery/activatio
and linked ecology remain subsequent work. The ghost cannot run biology or
contribute owned census/extinction stock. No biological format, rule, route,
automatic movement, live region or deployment changes.
## M12.4j atomic paired ownership publication
ADR-0149/schema 49 publishes both same-profile bundle-10 no-tick candidates and
their immutable common receipt in one transaction under both current fences,
captured heads and the staged destination binding. Both complete objects are
uploaded/read back first. Deferred receipt references permit evidence guards
without disabling triggers. Second-insert failure rolls back both heads, receipt
and pointer settlement. Generic publishers cannot admit a half.
Before commit the source owns outgoing stock; afterwards only the destination
owns it. Abort and commit have one exclusive outcome. Exact retries retain both
original manifests under newer current leases. Unknown replies retain the exact
prepared pair, without inferring rollback or rebasing.
Recovery verifies both predecessor/result manifests, trace and staged ghost,
replays both candidates from local capsules, checks both result digests and
compares complete local biology. Missing or false evidence fails closed. A paused
host verifies a changed head before readiness, including after replacement;
pointer absence never authorizes stale source stock or an orphan ghost. Both
representations and return transfers use real player-origin wildlife. Existing
durable biological continuation runs afterwards.
See [the paired commit contract](../../schemas/ecology/cellular-migration-commit-v1.md).
Independent network partitions, linked geometry/environment, maturation, world
census/cuts, actual elapsed-day ecology and target-host capacity remain open.
No automatic route, biological rule/format, golden or deployment changes.
+9 -4
View File
@@ -25,7 +25,7 @@ or authorize production enablement.
|---|---|---|
| 12.2 | Exact cellular model and paired matrix; local samples through 256 lives | Deployment-host tail costs including publication; larger wildlife cohorts, predation/twins and contention coverage; useful compression remains unimplemented. |
| 12.3 | Dedicated population profile/trace/store/owning host; exact recovery and private PostgreSQL fault tests | Population-specific executable/network fault drills and target-host publication/capacity qualification. |
| 12.4 | Current-worker demand/debt, owned bounded intervals/restart recovery, and portable exact biological transfer candidates with boundary accounting | Durable biological source/destination escrow, partition/duplicate settlement, linked-boundary contracts and stock-in-transit audits. |
| 12.4 | Owned bounded intervals; exact transfer/accounting; durable preparation/staging, atomic paired publication and replayed host recovery | Independent network-partition drills, linked-boundary contracts and integrated ownership/stock audits at scale. |
| 12.5 | Finite cellular contact feeding/decay and separate M6 producer/consumer resource owner | One jointly owned cellular/environment budget, explicit effective depth and source entitlements, versioned water/atmosphere species mapping and producer coefficients, plus closed/open and nutrient-exhaustion comparisons. |
| 12.6 | Retained genome/organism archive with ancestry and common-ancestor queries | Append-only population census/history events in the same durable commit, bounded world history queries/indexing and client presentation; no account power or invented precise statistical ancestry. |
| 12.7 | ADR-0133's viability/unknown semantics | Durable region-set/watermark reconciliation covering every owned representation, suspended/viable stock and migration escrow. Missing/stale regions must prevent terminal extinction. |
@@ -67,9 +67,14 @@ its exact head through worker replacement; no timeout or drain releases it.
ADR-0148/schema 48 now supplies destination-authorized staging at its exact
captured head, verified read-only ghost/capsule retention and full destination
recovery. Both endpoints stay paused; explicit source abort atomically releases
both pointers and races safely with staging. Atomic paired commit, its common
receipt, commit/abort races and activation remain open. Preparation remains an
optimistic destination observation; first staging rechecks both captured heads.
both pointers and races safely with staging. ADR-0149/schema 49 now commits both
exact results and an immutable common receipt under both current fences. Failed
second inserts roll back both heads; commit/abort races have one exclusive
outcome. Exact retries preserve both manifests under fresh authority. Hosts
replay and verify changed heads before readiness. Preparation remains an
optimistic destination observation; staging/publication recheck captured heads.
Independent network-partition drills and linked ecological boundaries remain
open; shared-database fault tests do not supply those proofs.
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
+13
View File
@@ -45,6 +45,19 @@ resumes only its original biology after confirmed source abort. Full schema,
permission, backup/DR and historical regression remain required. These tests do
not qualify paired commit, destination activation or linked ecological movement.
M12.4j's private paired-publication matrix uses real wildlife, both representations
and return transfers. It requires complete source/destination equality with the
portable pair, one shared receipt and unchanged completed ticks. An injected
second-insert failure must roll back both heads, receipt and pointer settlement.
Wrong publishers, unstaged/aborted requests, stale fences and conflicting exact
retries fail. Tests cover genuine lock-timeout ambiguity, SIGKILL before/after
commit, fresh-epoch exact retry, independent-connection commit/abort races and
receipt recovery that rejects missing counterpart capsules and valid but false
biological objects. Owning hosts must reload both actual heads before readiness,
retain complete recovery after replacement and continue biology afterwards.
Independent network partitions, linked ecology and actual elapsed-day stability
remain separate evidence; full schema/permission/backup/DR regression is 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
+55
View File
@@ -1,5 +1,60 @@
# Validation report
## 2026-10-18 - M12.4j atomic paired biological publication and recovery
ADR-0149/schema 49 commits both exact bundle-10 no-tick results and one immutable
shared receipt under both current endpoint fences and heads. Both objects are
uploaded/read back first, and the destination binds its retained staged ghost.
The transaction settles both pointers atomically. Abort is exclusive with commit;
fresh-epoch retries preserve both original manifests. Recovery replays both
candidates from retained local capsules and verifies both result digests plus the
complete local payload. A paused host reloads/verifies its actual changed head
before readiness; pointer absence cannot resume stale source stock.
Executed locally:
- Native MSVC Release **78/78 passed**, 12.63 s.
- Actual GCC 14 optional server/persistence targets rebuilt; final private
PostgreSQL population/paired suite passed, **16 s** (13 s test phase).
- Linux Clang 19 ASan/UBSan private population/paired suite passed, **38 s**
(35 s test phase), with no sanitizer reports.
- Explicit clang-tidy 19 on the migration adapter, no-tick recovery adapter,
owning host and PostgreSQL population tests passed with no owned warnings.
Repository clang-format 19 and changed shell scripts' syntax checks passed.
- Complete frozen-binary private PostgreSQL qualification passed with **exit 0**,
**507 s**: C++ integration/process/load/history (431 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.
Both representations use actual player-origin wildlife and return transfers.
Complete results equal the portable pair; committed tick identity is unchanged.
An owner-only test trigger fails the second result insert, proving both heads,
receipt and pointer settlement roll back. Unstaged requests, wrong publishers,
conflicting bytes and stale authority are refused. Real lock-timeout ambiguity
retains both manifests. SIGKILL before the transaction preserves both heads;
SIGKILL after commit is recovered through the exact pair. Fresh host epochs return
the original receipt. Abort-before-commit is refused by publication; committed
requests refuse abort; independent connections race the two operations to one
outcome without stranded pointers. A valid old object declared as the result
fails complete recovery in a rolled-back metadata-only adversarial fixture.
Missing counterpart capsules and false local bytes fail replay. Both owning hosts
adopt only verified heads, survive replacement and the existing durable biological
continuation matrix runs after the transfers.
The first static-analysis pass found an intentionally discarded expected result
in a kill-test child; the child now checks it before its unexpected-return exit.
The final analysis pass is clean. No assertion or warning suppression was added.
Limits: this is the shared-database ownership boundary. Independent network
partitions, linked ecological geometry/resources, maturation, global census/cuts,
actual elapsed-day soak and target-host capacity remain open. Backup/DR regression
uses its existing supported fixtures; it does not qualify cellular history cloning
or a new cellular restore procedure. No live database, World0, dependency,
biological rule/format, golden or deployment changed. The earlier captured
`Build_Errors.txt` and unrelated local work remain untracked; remote CI confirmation
of the prior runner repair remains separate.
## 2026-10-18 - M12.4i durable read-only destination staging
ADR-0148/schema 48 retains a destination-authorized staging record and bounded