Commit graph Aetheria/tests/Aetheria.Shared.Tests/OreGeographyTests.cs
Author SHA1 Message Date
soul
0582c5eb25 The demo entrance declares its stations as (faction, kind) orders: Zenith's trade hub and the Pirates' refinery on every seed
Scenario.EntranceStation (bool) and ZoneGenerator's bool parameter and count floor are replaced by Scenario.EntranceStations, a list of EntranceStationOrder placed after the story stations; an order the rails cannot seat gets a direct orbit round the root node. The default order reproduces the old entrance. Demo loop sells to the refinery and buys at Zenith, each found by Kind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 10:37:12 +01:00
soul
17b28ac4f6 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>
2026-11-27 07:31:52 +01:00
soul
a39ef352ac Tests that pinned the shipped catalog before the ore batch and the rescale now read what the batch ships (18 failures at the previous head, all passing at d1ff2f78e)
Gear price pins move to the rescaled values (PdGearStatsAreAuthored, LaunchSuppressorCatalogTests, ConsumablesFirstSetTests); the two one-shot command tests compare a landed design to the shipped record through GearPrices.Rescaled, since the commands keep their gear-scale literals. A test that takes factions out of a catalog copy takes their stand-ins too (the batch stands every faction in on mining), and the station-kind worlds start with none. Shipped provinces are stripped where a test deals its own. Recipes with Inputs read an empty RoleInputs (the first smelting step takes roles); the simple commodity count is 50.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 18:06:33 +01:00
soul
40a5457c9e Retire the prelude and the tutorial: the cast, the scenario and the save own what they bundled
Galaxy.IsPrelude, SavedGame.IsTutorial (key 11 retired), TutorialGalaxy, TutorialGenerationSettings, its Settings.asset block and the
dead GalaxyStage/Galaxy constructor parameters (PlayerSettings, narrative directory) are gone. The rules they bundled move to their
owners: GalaxyCast.InfluenceScale (demo and test cast .5, main 1) carried by Galaxy and saved as SavedGame key 17, so a pre-cut run is
refused at Continue with a message; Scenario.EntranceStation (MainGalaxy false) decides the forced entrance station instead of the
galaxy; GalaxyStage.Cast(cast) replaces Prelude. The six arenas that read the authored cast generate DemoTerminus.Cast; Development
lists only Main Galaxy. TutorialBackgroundSettings is renamed CastBackgroundSettings in the asset YAML. Tests build their galaxy from
TestCasts.Wide and Background, the retired block's values, so every test galaxy is unchanged.

Suite at 8b2d1f544: 4 red (font credits, chunk info, trojan swarm, two-ai digest, Windows). After: the same 4, digest unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:14:26 +01:00
soul
2822a583ea Pin CrossingLinks far-zone ordering and a boss zone at the start of the exit path in hand-built graphs (cut one-exit, finding pure-helper-survivors)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 20:24:02 +01:00
soul
97aa371872 Provinces.ExtraExits throws when a boss zone has no exit-path link to keep instead of silently keeping every link (cut one-exit, finding silent-keep-all-fallback)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 20:23:47 +01:00
soul
9fd0fe96e7 One-exit tests require every sector seed to build; a generator exception fails instead of skipping the seed (cut one-exit, finding trybuild-masks-generator-crash)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 20:23:32 +01:00
soul
0182570200 DistancesAreOfTheFinalGraph builds its own galaxies so the pruning's distance recompute is under its coverage (cut one-exit)
Stryker's per-test coverage credited the shared galaxy cache's first builder
alone with Galaxy.OneExitPerRegion's CalculateDistanceMatrix call, so deleting
the call survived. Fixture fix, no rule change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:50:45 +01:00
soul
84acc9e563 Galaxy.OneExitPerRegion: sector generation prunes each boss zone's extra exits, then recomputes distances (cut one-exit)
Ruling one-exit-per-region: one exit to defend per region. Called once in
PlaceFactionsMain after the boss loop and before home placement; BuildProvinces
and the pruning share ZoneGraph. Saves and the prelude never prune. Tests pin the
rule on sector seeds 1-60, the pure helpers on hand-built graphs, and save/load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 17:28:09 +01:00
soul
6ba77aafe7 OreGeographyTests: restore the file the previous commit replaced with a stale copy; the three sector-galaxy tests and their helpers on top of the guard test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:00:42 +01:00
soul
154b71160d OreGeographyTests: a multi-region sector galaxy's provinces survive save and continue and re-derive from an older save
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:59:24 +01:00
soul
4b7e5476c0 FieldKinds.Assign: a kind needs a positive kind weight and a positive province factor; two negatives no longer draw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:59:15 +01:00
soul
1db250fb10 OreGeographyTests: the duplicate-listing fixture's yield-only kind is never drawn
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:55:07 +01:00
soul
8774bd8a97 OreGeographyTests: pin seed order, tie-breaks, duplicate listings, deal key order, kept and saved first-load kind
Kills the survivors of the first Stryker run on FieldKinds and Provinces that were not equivalent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:50:01 +01:00
soul
c81a83ef2c OreGeographyTests: regions, partition, deal, yields, belts, save
Not yet run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:43:00 +01:00