Reader invariants
A reader of a SEAM data file must verify the following.
- Every frame and the footer authenticate under the AAD of their position.
- Footer: magic, version range, flag table, file id, section bounds and order.
- Index offsets and lengths lie inside
[0, bloom_off), and the stats count equals the index count. raw_lenis at most 64 MiB, and the decompressed size equalsraw_len.- Every block decoder consumes its input exactly and checks every count against its limit.
- Within a file, entries are strictly increasing in
(user asc, ts desc). A writer rejects otherwise withCorrupt("keys out of order"). - Columnar decoders reject unknown codec ids, out-of-range widths, reference indices greater than or equal to
c, and expansion mismatches.