From 80c3555c7605cb31dda085c20277bfc4b9392608 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 27 Nov 2026 18:27:52 +0100 Subject: [PATCH] Fix batch s1: the two-AI re-pin names its true cause, linux pinned, the census has a positive control The digest moves because the Zenith (11,6) rotation changes the generated station's fit, not because shields are on sale (a Bare Djinni and hand-fitted Longinus fight). linux-x64 pinned to Soul's Yggdrasil measurement. TheCensusNamesAMountNoSoldDesignTakes fails the Where(h => false) mutant. Co-Authored-By: Claude Sonnet 5.5 --- .../Aetheria.Shared.Tests/DeterminismLedgerTests.cs | 9 +++++---- tests/Aetheria.Shared.Tests/HardpointFitTests.cs | 13 +++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/DeterminismLedgerTests.cs b/tests/Aetheria.Shared.Tests/DeterminismLedgerTests.cs index 1fcb8f8e6..e00673860 100644 --- a/tests/Aetheria.Shared.Tests/DeterminismLedgerTests.cs +++ b/tests/Aetheria.Shared.Tests/DeterminismLedgerTests.cs @@ -57,12 +57,13 @@ public sealed partial class RunStartTests // spread (station-reactor-spread), and that blob alone moved the digest (the same tree with the old catalog measured 52fbb10d; // traced: only Notorious Station moves it, because the zone's station Zenith carries a Notorious Station reactor lot whose // minted quality changes with the role spread, and Snapshot hashes every zone entity's heat and shield). - // Repinned a tenth time (hardpoint-fit-1): shields are on sale, so the generated Djinnis carry a shield and Snapshot hashes - // every zone entity's shield. windows-x64 133e5d76 -> e4a3d6e5, measured on windows-x64. The linux-x64 pin below is NOT moved: no - // linux host measured this cut, so it still holds the pre-shield digest and needs a measurement on one. + // Repinned a tenth time (hardpoint-fit-1): the Zenith's (11,6) radiator mount was rotation None and is now Clockwise, so the + // zone's generated station Zenith can fit a radiator there and Snapshot hashes its heat. windows-x64 133e5d76 -> e4a3d6e5, + // linux-x64 9c70a3ee -> 6b8b31ad (measured on Yggdrasil). The fight itself stages hand-fitted Longinus ships and a Bare Djinni, + // so the shields now on sale do not move it: the same catalog with only the Zenith rotation put back to None measures the old digest. private static readonly System.Collections.Generic.Dictionary TwoAiPinnedDigests = new() { - ["linux-x64"] = "9c70a3ee234fb3b879f721a4a4abf13dd83bf56fd8733690d356b89b8a392258", + ["linux-x64"] = "6b8b31ade2ee042a51dfabd53fe104a7567274224c79dc2fe4bffb98bb800ed1", // Measured on windows-x64 at the commit that added this pin (the fight is one history there: TwoAiFightIsOneHistory). ["windows-x64"] = "e4a3d6e5a411b01e73828821260d57d3f52ffdba50f7954f17058792833bb58a", }; diff --git a/tests/Aetheria.Shared.Tests/HardpointFitTests.cs b/tests/Aetheria.Shared.Tests/HardpointFitTests.cs index 89d6af350..5877671c1 100644 --- a/tests/Aetheria.Shared.Tests/HardpointFitTests.cs +++ b/tests/Aetheria.Shared.Tests/HardpointFitTests.cs @@ -14,6 +14,19 @@ public sealed class HardpointFitTests Assert.Empty(Program.UnfillableHardpoints(cache)); } + // Positive control: the census is not a tautology. The Zenith's (11,6) mount put back to rotation None (its authoring slip, in + // memory on a read-only catalog) is the one mount no sold design takes, and the census names it. + [Fact] + public void TheCensusNamesAMountNoSoldDesignTakes() + { + using var cache = RestoredHullsTests.OpenCatalog(); + var mount = Assert.Single(Assert.Single(cache.GetAll(), h => h.Name == "Zenith").Hardpoints, + h => h.Position.x == 11 && h.Position.y == 6); + Assert.Equal(ItemRotation.Clockwise, mount.Rotation); + mount.Rotation = ItemRotation.None; + Assert.Equal(new[] { "Zenith (Station) Radiator 1x4 at (11,6)" }, Program.UnfillableHardpoints(cache)); + } + // The census is over the catalog the game boots, packages included: a package hull's mount is as fillable as a shipped one. [Fact] public void TheCensusReadsThePackagesTheGameBoots()