M12.4: retain and settle owned population intervals
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m28s
Foundation / checks (tsan) (push) Failing after 18m22s
Foundation / checks (network) (push) Successful in 20m38s
Foundation / checks (client) (push) Failing after 21m6s
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 46m54s
Foundation / checks (checks) (push) Canceled after 47m3s

This commit is contained in:
dingo
2026-10-17 17:31:05 -04:00
parent 627411983f
commit 0a8962b57e
34 changed files with 1032 additions and 75 deletions
+34
View File
@@ -0,0 +1,34 @@
# Owned population interval journal 1
Authority: ADR-0143, PostgreSQL schema 45. Operational admission is separate from
the biological checkpoint. Each interval names one exact profile-5 source commit
and SHA-256, its begin/end ticks, controller version 1, and admitting holder/epoch.
It spans 1..64 unchanged fixed 50 ms steps. No timestamp grants biological time.
The immutable admissions table keys by source commit. Repeating the same source
and end returns its record; changing its digest, region or end conflicts. New
admission requires the current region lease and exact head. The pending pointer
has one `(world,region)` primary key and one unique source; looking up pending
work never scans a growing history. Runtime receives no direct table privileges.
Settlement appends the source-to-target commit record and removes the pending
pointer in the same transaction that publishes its exact checkpoint/trace.
Settlement's target foreign key is deferred until commit. Rollback restores the
pointer and leaves the interval pending. Retrying a committed publication or
settled admission never reopens its work. Manual conversion/profile exit cannot
skip a pending interval; private old publishers are revoked and a commit trigger
also refuses insertion while the pointer is unsettled.
A new holder loads and verifies the source pointer against the restored head,
retaining the original admission identity and controller version. It may finish
this interval with zero newly due wall time. Fresh pacing excludes that recovered
prefix; only fresh elapsed time funds new local debt. Unknown admission replies
retain the identical source/end request and pause readiness until reconciled.
Unknown checkpoint replies retain the complete prepared manifest/trace as before.
Current preparation requires all controlled lives fully suspended. Older recorded
population traces remain readable; no lineage, genome, funding, age, quantity,
archive or biological rule version changes. The worker reports durable pending
ticks separately from local tick debt and checkpoint age. Unadmitted wall time
remains paused across outages. Biological migration escrow is a separate journal
and is not supplied by this interval record.