Files
aevolution/schemas/cellular-environment-batch-v1.md
dingoandClaude Opus 5.5 fc6d26d7d6 feat(ecology): record and replay joint environment intervals
ADR-0173 adds joint batch AEVOEBT1: the unchanged population batch plus
each tick's recorded infall import and radiated heat. Unattended recording
applies each tick's exchange before the shared wildlife controller chooses,
so a recorded interval equals the same live joint ticks; replay applies the
same exchange and the recorded intentions and must re-derive every flow.
Forged flows or boundaries, missing ticks, wrong cuts, truncated input and
future formats are refused. Whole-group conversion replays exactly and
cohort intervals record identical biology and flows. A full habitat counts
infall bubbles skipped and imports nothing for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:22:05 -04:00

23 lines
1.0 KiB
Markdown

# Cellular environment joint batch 1
Authority: ADR-0173. Little-endian integers, no padding. Size is bounded by
`max_environment_batch_bytes`. Existing population and cellular batch formats are
unchanged.
| Offset | Bytes | Field |
|---:|---:|---|
| 0 | 8 | Magic `AEVOEBT1` |
| 8 | 4 | Format 1 |
| 12 | 4 | Kind: 0 biological interval, 1 whole-group conversion |
| 16 | 8 | Nested population batch bytes |
| 24 | 4 | Flow count: ticks for kind 0, zero for kind 1 |
| 28 | 4 | Reserved, zero |
| 32 | declared length | Canonical population batch 2 or 3 |
| after nested | 48 each | Per tick: imported energy, C, N, P, other (u64 each), then radiated heat pJ |
Decoding requires exact length, a canonical nested batch whose kind matches, and
byte-identical re-encoding. Replay additionally requires the predecessor joint
envelope at the batch's begin tick with a matching population format, fully
suspended controlled cells for an interval, and exact equality of every re-derived
flow and cohort boundary. The nested batch alone never establishes a joint result.