M12.4: preserve exact biology across ownership candidates
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m18s
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 5m33s
Foundation / checks (postgres) (push) Canceled after 5m29s
Foundation / checks (tsan) (push) Canceled after 5m28s
Foundation / checks (client) (push) Canceled after 5m37s
Foundation / checks (network) (push) Canceled after 5m39s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m18s
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 5m33s
Foundation / checks (postgres) (push) Canceled after 5m29s
Foundation / checks (tsan) (push) Canceled after 5m28s
Foundation / checks (client) (push) Canceled after 5m37s
Foundation / checks (network) (push) Canceled after 5m39s
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
# Cellular owner format 7: exact boundary accounting
|
||||
|
||||
Authority: ADR-0144. Portable opt-in representation only; no PostgreSQL manifest
|
||||
bundle or live worker admission is introduced by this segment. Rules stay 8.
|
||||
Formats 1–6 and their canonical bytes remain unchanged. Explicit no-tick upgrade
|
||||
from rules-8 format 6 preserves biology and opening stock and adds zero flows
|
||||
and no nonresident references. No downgrade may discard a nonzero ledger.
|
||||
|
||||
Little-endian, no native padding. Magic `AEVCLV07`, format 7, rules 8. The first
|
||||
220 bytes have the format-6 layout except magic/format. The additional fields are:
|
||||
|
||||
| Offset | Bytes | Field |
|
||||
|---:|---:|---|
|
||||
| 220 | 40 | Cumulative incoming inventory: energy, C, N, P, other; five u64s |
|
||||
| 260 | 40 | Cumulative outgoing inventory in the same order |
|
||||
| 300 | 4 | Nonresident organism count, at most 65,536 |
|
||||
| 304 | 4 | Reserved zero |
|
||||
| 308 | 8 each | Existing sorted spawn-site records |
|
||||
| after sites | 504 each | Existing format-6 living records |
|
||||
| after lives | 124 each | Existing format-5/6 corpse records |
|
||||
| after corpses | declared lengths | Complete canonical habitat and lineage archive |
|
||||
| after archive | 8 each | Sorted unique nonresident organism IDs |
|
||||
| final | 8 | FNV-1a64 of all preceding bytes |
|
||||
|
||||
The exact length is `308 + 8*sites + 504*lives + 124*corpses + habitat_bytes +
|
||||
archive_bytes + 8*nonresidents + 8`, bounded by the existing 16 MiB limit. Require
|
||||
all existing nested closure, trusted identity/tick and canonical re-encoding.
|
||||
The checksum is corruption detection, not provenance or authority.
|
||||
|
||||
Per channel, `opening + incoming = current + outgoing`. Validate the net flow
|
||||
using checked addition/subtraction, without overflowing an intermediate sum of
|
||||
large equal flows. Each cumulative counter itself may never wrap. `current`
|
||||
counts nursery, habitat, bodies, reserves, corpses and heat exactly once. Flow
|
||||
metadata and nonresident history own no material and provide no funding.
|
||||
|
||||
Every archived organism must be exactly one local life, local corpse or
|
||||
nonresident reference. Nonresidents retain immutable birth/revision/death facts;
|
||||
an alive fact is only the last known cut, not a current owned census. Known facts
|
||||
cannot be in the future. Duplicate residency and terminal resurrection are refused.
|
||||
|
||||
Foreign bud IDs retain `2^63 + origin_region*2^32 + sequence`, with nonzero bounded
|
||||
origin/sequence; local-origin IDs must still lie below the local next-bud counter.
|
||||
Imported cells have zero accounts and preserve organism/event IDs, parent-life,
|
||||
source, age, genome, growth, damage, position, body and reserve. New buds consume
|
||||
the destination namespace and are inserted in identity order even when their IDs
|
||||
are smaller than imported parents. The existing twin roll remains keyed by world,
|
||||
current owner region, parent life and tick; a transfer promises an exact cut,
|
||||
not identical future ecology in a different regional environment.
|
||||
|
||||
Portable paired preparation moves a complete wildlife genome group between
|
||||
distinct compatible owners at one tick, preserving numeric local coordinates.
|
||||
Both owners' controlled cells must be fully suspended. Bounds, destination
|
||||
body conflicts, capacity, ancestry merge and both budgets must pass. Rejection
|
||||
leaves both originals unchanged. Clamped arena geometry remains ADR-0102;
|
||||
automatic spatial crossings and linked environmental fields are unimplemented.
|
||||
|
||||
Durability must bind both candidates to one fenced atomic pair publication. This
|
||||
format alone supplies no freeze, escrow, receipt, activation or retry guarantee.
|
||||
Reference in New Issue
Block a user