Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m23s
Foundation / checks (network) (push) Successful in 21m4s
Foundation / checks (client) (push) Successful in 22m15s
Foundation / checks (tsan) (push) Successful in 23m3s
Foundation / checks (postgres) (push) Successful in 51m33s
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 55m18s
57 lines
3.1 KiB
Markdown
57 lines
3.1 KiB
Markdown
# ADR-0146: Durable boundary-accounting upgrade admission
|
|
|
|
## Status
|
|
|
|
Accepted for scoped M12.4g implementation, 2026-10-17; locally qualified
|
|
2026-10-18, including the full private persistence suite. See
|
|
[validation](../engineering/VALIDATION.md). No deployment, automatic upgrade or
|
|
World0 change. Paired biological escrow remains open.
|
|
|
|
## Decision
|
|
|
|
Admit ADR-0145's bundle 10 through SQL schema 46. Extend the existing immutable
|
|
`cellular_profile_migrations` journal: it already retains both sequences, commits,
|
|
manifest/payload digests and exact version tuples. A new table or independent
|
|
publication service would duplicate that authority. Old upgrade meanings remain.
|
|
|
|
Only an explicit bundle-9 to 10, same-profile (4 or 5), same-tick upgrade may
|
|
change the tuple. The existing fenced version-migration publisher verifies the
|
|
exact current head, lease/frame and retained build, inserts the complete upgrade
|
|
evidence and result, and advances the head in one transaction. An unsettled
|
|
population interval blocks a new upgrade. Exact retries return their original
|
|
receipt under current authority; changed bytes conflict. Unknown outcomes retain
|
|
the exact prepared request. An explicit adapter verifies source SHA-256, derives
|
|
the complete upgrade, uploads and reads back its object before publication.
|
|
|
|
Recovery under a fresh current lease verifies the immutable journal, both complete
|
|
manifests and objects, rederives the exact upgrade, and requires byte equality.
|
|
No fallback genesis, older head, opening-stock reset or version reinterpretation
|
|
is allowed. Version upgrades and profile changes retain distinct journals. A
|
|
no-tick recovery selects the recorded operation, never assumes its kind solely
|
|
from the target bundle.
|
|
|
|
For bundle 10, population profile 5 requires envelope 2/batch 2. Retained bundle
|
|
9 continues to require envelope 1/batch 1. Profile 4's unchanged trace 3 carries
|
|
the same rules-8 inputs. Representation transitions preserve the tuple. Interval
|
|
admission/settlement, pending player-choice guards and materialization before
|
|
player operations retain their existing requirements. Generic publication cannot
|
|
change versions or bypass dedicated evidence. No worker automatically upgrades.
|
|
|
|
This admits the accounting format only. It does not admit paired migration trace
|
|
1, publish two heads, freeze a source, activate a destination ghost, choose an atlas
|
|
or resolve multigeneration growth/environment/census gates.
|
|
|
|
## Alternatives and qualification
|
|
|
|
Reusing representation-transition evidence for a same-profile version change
|
|
would erase the distinction needed by recovery. Fresh provisioning would lose
|
|
the retained opening history. Keep the existing version-upgrade journal and
|
|
extend its exact supported pair instead.
|
|
|
|
Require both profiles, full-state replay/continuation, retained-format refusal,
|
|
pending interval refusal, stale/current leases, duplicate/conflicting requests,
|
|
ambiguous outcomes, publisher process loss, missing/corrupt objects, migration
|
|
rollback/history checks and least-privilege audits on private PostgreSQL. Portable
|
|
success alone is insufficient. Actual paired escrow and production costs remain
|
|
separate gates.
|