feat(persistence): admit durable cellular environment profile
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (deploy) (push) Successful in 4m51s
Foundation / checks (network) (push) Successful in 20m42s
Foundation / checks (client) (push) Successful in 21m53s
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 40m19s
Foundation / checks (postgres) (push) Canceled after 40m9s
Foundation / checks (tsan) (push) Canceled after 37m53s
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (deploy) (push) Successful in 4m51s
Foundation / checks (network) (push) Successful in 20m42s
Foundation / checks (client) (push) Successful in 21m53s
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 40m19s
Foundation / checks (postgres) (push) Canceled after 40m9s
Foundation / checks (tsan) (push) Canceled after 37m53s
ADR-0174 and schema 56 add checkpoint profile 6, which stores the joint cell/environment envelope nesting population envelope 2 (bundles 10 and 11). Entry from a committed population head is explicit, one-way and no-tick, with the source commit, manifest and payload digests bound in immutable evidence. Joint intervals use schema 45's owned admission and settlement; conversions cannot overtake a pending interval. The fenced publisher validates the joint trace structurally, including the complete nested population batch, and records per-commit imported and radiated totals. Recovery replays the head's link and requires the payload exactly, refusing a forged but structurally valid trace. A trigger refuses profile-6 commits from every other publisher; profile 4/5 bytes, parsers and rules are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+16
-3
@@ -131,6 +131,7 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
|
||||
SELECT :'history_v52' || ',53:' || :'migration_sha_53' AS history_v53 \gset
|
||||
SELECT :'history_v53' || ',54:' || :'migration_sha_54' AS history_v54 \gset
|
||||
SELECT :'history_v54' || ',55:' || :'migration_sha_55' AS history_v55 \gset
|
||||
SELECT :'history_v55' || ',56:' || :'migration_sha_56' AS history_v56 \gset
|
||||
SELECT :'history' = :'history_v22' AS at_v22,
|
||||
:'history' = :'history_v23' AS at_v23,
|
||||
:'history' = :'history_v24' AS at_v24,
|
||||
@@ -164,8 +165,10 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
|
||||
:'history' = :'history_v52' AS at_v52,
|
||||
:'history' = :'history_v53' AS at_v53,
|
||||
:'history' = :'history_v54' AS at_v54,
|
||||
:'history' = :'history_v55' AS at_v55 \gset
|
||||
\if :at_v55
|
||||
:'history' = :'history_v55' AS at_v55,
|
||||
:'history' = :'history_v56' AS at_v56 \gset
|
||||
\if :at_v56
|
||||
\elif :at_v55
|
||||
\elif :at_v54
|
||||
\elif :at_v53
|
||||
\elif :at_v52
|
||||
@@ -569,7 +572,8 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
coalesce(max(version), 0) = 52 AS at_v52,
|
||||
coalesce(max(version), 0) = 53 AS at_v53,
|
||||
coalesce(max(version), 0) = 54 AS at_v54,
|
||||
coalesce(max(version), 0) = 55 AS at_v55
|
||||
coalesce(max(version), 0) = 55 AS at_v55,
|
||||
coalesce(max(version), 0) = 56 AS at_v56
|
||||
FROM evolution.schema_migrations \gset
|
||||
\if :at_v24
|
||||
\ir 0025_cellular_v2_bundle.sql
|
||||
@@ -793,6 +797,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\elif :at_v53
|
||||
\elif :at_v54
|
||||
\elif :at_v55
|
||||
\elif :at_v56
|
||||
\else
|
||||
\echo 'Unknown or changed migration history after v43'
|
||||
DO $$ BEGIN RAISE EXCEPTION 'unknown or changed migration history'; END $$;
|
||||
@@ -845,6 +850,10 @@ SELECT coalesce(max(version), 0) = 54 AS needs_v55 FROM evolution.schema_migrati
|
||||
\if :needs_v55
|
||||
\ir 0055_retained_cellular_plans.sql
|
||||
\endif
|
||||
SELECT coalesce(max(version), 0) = 55 AS needs_v56 FROM evolution.schema_migrations \gset
|
||||
\if :needs_v56
|
||||
\ir 0056_cellular_environment_publication.sql
|
||||
\endif
|
||||
-- Effective-privilege audit on every run, including no-ops (ADR-0060). Attributes
|
||||
-- alone are insufficient: predefined roles such as pg_write_all_data, PUBLIC
|
||||
-- grants or SET-able memberships would bypass the fenced functions. Checks the
|
||||
@@ -880,6 +889,10 @@ BEGIN
|
||||
('evolution.publish_population_profile_transition(bytea)'::regprocedure::oid),
|
||||
('evolution.resolve_population_commit(evolution.u64,evolution.u64,uuid,bytea,bytea)'::regprocedure::oid),
|
||||
('evolution.load_population_evidence(evolution.u64,evolution.u64,uuid,evolution.u64,uuid)'::regprocedure::oid),
|
||||
('evolution.publish_environment_checkpoint(bytea,bytea)'::regprocedure::oid),
|
||||
('evolution.publish_environment_profile_transition(bytea)'::regprocedure::oid),
|
||||
('evolution.resolve_environment_commit(evolution.u64,evolution.u64,uuid,bytea,bytea)'::regprocedure::oid),
|
||||
('evolution.load_environment_evidence(evolution.u64,evolution.u64,uuid,evolution.u64,uuid)'::regprocedure::oid),
|
||||
('evolution.publish_primitive_checkpoint(bytea,bytea)'::regprocedure::oid),
|
||||
('evolution.load_primitive_lives(evolution.u64,evolution.u64)'::regprocedure::oid),
|
||||
('evolution.query_primitive_life(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,evolution.u64,evolution.u64)'::regprocedure::oid),
|
||||
|
||||
Reference in New Issue
Block a user