M12.4: record and replay exact biological transfer pairs
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m30s
Foundation / checks (client) (push) Failing after 18m38s
Foundation / checks (network) (push) Successful in 22m21s
Foundation / checks (tsan) (push) Failing after 22m17s
Foundation / checks (postgres) (push) Successful in 51m32s
Foundation / checks (checks) (push) Failing after 59m20s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-17 18:23:33 -04:00
parent decd4f8043
commit 1e207b5ee4
13 changed files with 637 additions and 2 deletions
+59
View File
@@ -0,0 +1,59 @@
# Exact paired biological transfer trace 1
Authority: ADR-0144. Portable replay evidence only; no durable manifest admission,
ownership receipt or activation authority. This is separate from the M10 probe,
normal cellular tick traces and population batch 1. It is not a migration route.
All integers are little-endian without padding. Maximum size is 2,312 bytes.
| Offset | Bytes | Field |
|---:|---:|---|
| 0 | 8 | ASCII magic `AEVMIG01` |
| 8 | 4 | Version, exactly 1 |
| 12 | 4 | Representation: 1 individual owners, 2 population owners; reject all other u32 values before narrowing |
| 16 | 8 | World |
| 24 | 8 | Common frame |
| 32 | 8 | Common completed biological tick, positive; no tick advances |
| 40 | 8 | Whole wildlife genome group |
| 48 | 16 | Stable workflow request UUID, nonzero |
| 64 | 72 | Source endpoint |
| 136 | 72 | Destination endpoint |
| 208 | 40 | Exact transferred inventory: energy, C, N, P, other; five u64s |
| 248 | 4 | Member count, 1..256 |
| 252 | 4 | Reserved zero |
| 256 | 8 each | Sorted unique wildlife life IDs |
| final | 8 | FNV-1a64 over all preceding bytes |
Each endpoint is region u64, predecessor UUID (16), predecessor manifest SHA-256
(32), resulting commit UUID (16). Regions are distinct positive bud-capable IDs.
Both predecessor digests are nonzero; the four commit/predecessor UUIDs are
nonzero and pairwise distinct. Member IDs have valid positive birth-origin region
and sequence within the bud namespace. Transferred inventory is nonzero.
Require exact total length `256 + 8*count + 8`, all header/member bounds before
allocation and complete canonical re-encoding. The two representation variants
are distinct even when materialized biology is equal. Individual inputs must be
owner 7/rules 8; population inputs must contain those owners in envelope 2.
Preparation derives members and material from the actual paired migration
candidate. Replay takes an independently trusted request plus both complete
predecessor states. It checks request/endpoint/result-commit bindings, world,
frame, tick and representation, recomputes exact transfer candidates and requires
the recorded member set and every inventory channel to match. Replaying again
from the same immutable inputs gives the same results; applying it to the output
pair is refused. No controller, random sampler, biological tick, movement,
conversion or identity allocator runs as part of this trace.
The I/O adapter must establish that trusted request against both retained
predecessor manifests and digest-checked payloads before invoking replay. Taking
the trace's own request as a live ownership grant is invalid. FNV only detects
accidental corruption; a future durable publisher must bind this trace's SHA-256,
both result payloads and both fenced heads in one transaction, retaining the
source/destination histories and transfer journal. These UUIDs and SHA fields
alone do not establish current authority or transaction outcome.
The separate-process test records raw and cohort inputs/expected output pairs,
terminates, restores in a fresh process, replays and compares all four complete
output snapshots. This qualifies portable continuation, not database atomicity,
source freeze, ghost staging, abort, duplicate-delivery settlement or crash-safe
activation. No schema 45 publisher admits this trace or the new owner tuple.