Formation design to compile.
OptionalmodelsModel groups keyed by the id the formation and its tiers name, hashed into each tier's digest; empty when none are supplied.
OptionalprojectionSupplied root-centered radius estimate in metres keyed by model group id; an id without one borrows the base group's radius and then half a metre.
OptionalsurfacesWorld terrain in declared order; empty when the world has none.
Compile one formation design into its compact, regenerable runtime record.
The record stores what regenerates the members rather than the members: the layout, anchor, heading and seed, one bounds and centroid per chunk of AUTOMOVIE_FORMATION_CHUNK_SIZE slots with that chunk's anonymous count once heroes are excluded, each hero's promoted base transform, the anonymous representation tiers the design declares, a measured or fallback member radius, a domain-separated motion phase seed, and a digest of every other field.
The terrain it snapshots is the part of the world that can be under a member: the surfaces whose ground-plan extent reaches the footprint measured on level ground, in declared order. Relief moves members up and down, never sideways, so that footprint holds on any terrain, and a unit with nothing under it reuses the level pass as its finished summary.
Supplied member radius estimates come from the host as a table. The host owns model geometry and any enclosure proof; this kernel does not verify estimates against geometry. Missing tier estimates borrow the base estimate, then 0.5m. The digest is SHA-256 over canonical JSON v2 computed without a Node built-in, equal to the Node builder's digest of the same canonical bytes.