Zone bodies carry a seed Site; ore, chunk tie-break, rock meshes and names read it, never the minted key

A generated body's key stays cache-minted (a scenario of a saved run's seed generates beside the saved run), so the generation coordinate is its own field: BodyData.Site, written once by ZoneGenerator ({seed}:belt|body:{index}, {seed}:swarm:{k}, {seed}:lane:{k}). FireControl.Extract, the equal-index chunk order, DrawAhead and Name read SiteOr(key); a body from before this cut has no Site and keeps its key, so old saves keep their ore, order and meshes. Deletes the key-prefix naming and its keyless double Upsert, and the process-randomized GetHashCode tie-break.

Site takes MessagePack key 23: 6, 7 and 8 are retired on BodyData (ABodyRecordNeverReusesRetiredKeys) and an old save may still carry data there.

Ruling aetheria-living-world:ruling:zone-body-site-identity; cut aetheria-living-world:cut_spec:cut-zone-body-sites.r1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-27 07:13:06 +01:00
commit 17b28ac4f6
11 changed files with 152 additions and 22 deletions

View file

@ -201,7 +201,7 @@ public class Zone
case AsteroidBeltData belt:
// Mining Cut 3 (Q16 B): a belt from before field kinds existed gets its kind here, once, by
// the rule generation uses, and keeps it.
FieldKinds.Ensure(body.Key.Value, belt, cache, GalaxyZone?.Province?.Type ?? default);
FieldKinds.Ensure(belt.SiteOr(body.Key), belt, cache, GalaxyZone?.Province?.Type ?? default);
AsteroidBelts[body.Key] = new AsteroidBelt(belt);
break;
case SunData sun: