M12.3: persist exact population state and automatic conversion policy
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 3m16s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 13m8s
Foundation / checks (checks) (push) Canceled after 13m12s
Foundation / checks (postgres) (push) Canceled after 13m2s
Foundation / checks (network) (push) Canceled after 13m4s
Foundation / checks (tsan) (push) Canceled after 13m9s

This commit is contained in:
dingo
2026-10-17 12:11:10 -04:00
parent 2b074b9ae1
commit 5decaa0326
14 changed files with 624 additions and 15 deletions
@@ -0,0 +1,47 @@
# ADR-0140: Exact population checkpoint and automatic local policy
## Status
Accepted for the portable M12.3 implementation, 2026-10-17. Production publication
and enabling remain separate gates. No live region changes or deployment.
## Decision
Persist exact biology and exclusive cohort membership together in population
envelope 1, never in a sidecar that can get ahead of its biological checkpoint.
Retain the existing nested rules-8 owner bytes without reinterpretation. Store
policy configuration and a monotonic conversion sequence. Recovery restores
the exact committed membership sample; it does not repeat a random allocation.
Exact members have no fractional demographic residual or sampling stream.
Provide detached conversion candidates: the predecessor remains untouched until
the caller publishes the entire candidate under the current durable ownership
fence. Pre-publication loss recovers the predecessor; confirmed publication must
recover the complete successor. In-memory success is not a durable receipt.
Sequence exhaustion refuses conversion before mutation. Unknown versions,
malformed bounds, noncanonical member IDs, wrong identity/tick, ineligible
members and corrupt checksums are refused.
An opt-in automatic policy runs only after a successful biological tick. Whole
wildlife genome groups materialize if any member is within 1200 micrometres of
an active/lingering controlled observer. They collapse if all members are beyond
1800 micrometres of every such observer, including when none exist. The band
retains current membership. Distances use lower-left positions in the existing
local coordinate frame. Suspended controlled lives are not observers and never
become cohort members. Unsupported wildlife presence keeps the group individual.
Radii are configurable, bounded, persisted trial policy rather than locked
biological constants. No state, phenotype, resource or ancestry changes at a
conversion. Defaults keep automation disabled.
## Boundary
The portable owner, codec and separate-process continuation checks implement
state closure. They do not supply a new PostgreSQL publication profile, durable
conversion trace, database fencing, lost-reply reconciliation or host integration.
Do not place this envelope under existing profile 4: that profile contains raw
CellularLives bytes. The new payload needs a dedicated profile/schema migration
and recovery/publication adapter before production use. Existing M7/M11 stores
and live sessions remain on their existing accepted formats.
This explicit boundary permits engineering work on the exact representation
without mistaking a local file test for production crash-consistent durability.
+2
View File
@@ -157,3 +157,5 @@ design. No unadopted candidate is a link dependency of the proof.
- [ADR-0085: Rebindable engineering controls](0085-rebindable-engineering-controls.md) - SDL-free action/HID-key bindings, conflict validation, versioned all-or-nothing controls file, binding capture before toolkit/world.
- [ADR-0139: Exact cellular local cohorts](0139-exact-cellular-local-cohorts.md)
- [ADR-0140: Exact population checkpoint and policy](0140-exact-population-checkpoint-and-policy.md)