M12.7: reconcile pending migration evidence in census snapshots
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m26s
Foundation / checks (network) (push) Successful in 21m1s
Foundation / checks (client) (push) Successful in 22m9s
Foundation / checks (tsan) (push) Successful in 24m36s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 33m38s
Foundation / checks (checks) (push) Canceled after 33m49s

This commit is contained in:
dingo
2026-10-18 21:14:53 -04:00
parent 709dfb9557
commit 27ec5729bf
23 changed files with 592 additions and 23 deletions
@@ -0,0 +1,33 @@
# Pending migration evidence in registered census snapshots v1
Semantic adapter contract, schema 52;
[ADR-0156](../../docs/adr/0156-census-pending-migration-evidence.md).
No biological codec/rule change or client endpoint.
- Capture source/destination pending pointer union, history domain, complete
region registry and exact current heads in one read-only repeatable-read view.
- Inventory order is ascending request UUID. Maximum 64 requests; a 65th response
fails the whole query. Missing or inconsistent metadata never becomes empty.
- Every request must have its expected source pointer, a destination pointer iff
staged, neither abort nor commit, and consistent retained trace/manifests.
- Endpoints must belong to the captured registry/frame. Source manifest must
equal the captured source head's manifest; a staged destination must also match.
Prepared destination cuts remain optimistic and may differ from its latest head.
Both predecessor builds must be in the caller's retained build allowlist.
- After capture, replay source-side predecessor/capsule bytes exactly. For a stage,
independently replay destination-side predecessor/capsule bytes and compare the
complete derived ghost with its verified retained object. Metadata hashes or
matching aggregate inventory alone are insufficient.
- Return the verified canonical trace (members/material included) and staged flag.
External request references use the returned history domain/world/request tuple;
a copied request UUID alone does not identify a branch.
Capsules/ghosts own no additional stock; census totals remain the regional heads'
totals. Error returns no partial census/inventory. SQL/capture failure preserves
transaction cleanup; missing/corrupt/false objects remain uncertainty.
- Concurrent prepare/stage/abort/commit belongs to a later view. Already captured
immutable evidence remains verifiable after settlement. A later read sees its
new pointer state and heads atomically. No timeout/lease-expiry settlement.
- This inventories the existing active pointers, not every historical preparation
or every possible viable store. No live authority, accepted global freshness or
terminal-extinction record is created. Caller-declared snapshots remain scoped
observations without this registered-inventory guarantee.
@@ -41,6 +41,8 @@ authority, including when a registered holder is released or expired.
The caller-declared API remains available with its previous scoped semantics.
Schema 51 additionally binds registered results to a
[database history domain](database-history-domain-v1.md) captured in the same view.
Schema 52 also binds [pending migration evidence](census-pending-migrations-v1.md)
to that view and fully verifies retained capsules/ghosts without adding ghost stock.
Registered coverage alone adds no viable-reserve or
outside-store reconciliation, durable accepted extinction record, client endpoint
or permission. A consistent registered-region cut alone cannot accept terminal