Serialization is length-prefixed and sorted by code unit, never by locale and
never in authoring order, so the same authored lineage digests identically on
Windows and POSIX and after any reshuffle of its arrays. Every separator is
written here rather than taken from the platform, which is why no newline
convention can reach the bytes.
Every field of the lineage, its subjects, revisions, phases, lifecycles, variants with their changes, decisions and derived artifacts is serialized, except a derived artifact's asset citations: on a valid lineage a citation exists for exactly the inputs that carry imported bytes, at exactly the digests those subjects declare, so both facts are already in the subject and derived lines. Citation facts are derivable; citation ordering is ignored even though a valid record can reorder that array.
Digest the whole lineage record.
Serialization is length-prefixed and sorted by code unit, never by locale and never in authoring order, so the same authored lineage digests identically on Windows and POSIX and after any reshuffle of its arrays. Every separator is written here rather than taken from the platform, which is why no newline convention can reach the bytes.
Every field of the lineage, its subjects, revisions, phases, lifecycles, variants with their changes, decisions and derived artifacts is serialized, except a derived artifact's asset citations: on a valid lineage a citation exists for exactly the inputs that carry imported bytes, at exactly the digests those subjects declare, so both facts are already in the subject and derived lines. Citation facts are derivable; citation ordering is ignored even though a valid record can reorder that array.