From 7772d9eb3617874ac38e467a99bab591a869dcbe Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 16:53:25 +0100 Subject: [PATCH] Model station sensors through hardpoint scale --- Aetheria.State.Daemon.Smoke/Program.cs | 63 ++++++++--- .../AetheriaDaemonLoadoutGenerator.cs | 25 +++-- Aetheria.State.Import/Program.cs | 104 +++++++++++++++++- Aetheria.State.Verify/Program.cs | 15 ++- .../Scripts/ServerShared/LoadoutGenerator.cs | 1 - docs/aetheria-perfect-machine-map.md | 7 +- docs/original-game-migration-matrix.md | 4 +- 7 files changed, 189 insertions(+), 30 deletions(-) diff --git a/Aetheria.State.Daemon.Smoke/Program.cs b/Aetheria.State.Daemon.Smoke/Program.cs index bd4d772de..0b9a5c2c3 100644 --- a/Aetheria.State.Daemon.Smoke/Program.cs +++ b/Aetheria.State.Daemon.Smoke/Program.cs @@ -3,11 +3,21 @@ using GameCult.Aetheria.State.Verse; using System.Globalization; var checks = new AetheriaDaemonYmirSmokeChecks(); -checks.Run(); -Console.WriteLine("Daemon Ymir physical payload smoke passed."); +if (args.Contains("--loadout", StringComparer.Ordinal)) +{ + checks.RunLoadout(); + Console.WriteLine("Daemon loadout hardpoint smoke passed."); +} +else +{ + checks.Run(); + Console.WriteLine("Daemon Ymir physical payload smoke passed."); +} internal sealed class AetheriaDaemonYmirSmokeChecks { + public void RunLoadout() => DaemonLoadoutsRespectFactionAvailabilityAndHullRoles(); + public void Run() { YmirMovesProjectileAndReportsStableContact(); @@ -902,6 +912,8 @@ internal sealed class AetheriaDaemonYmirSmokeChecks var cells4 = Enumerable.Range(0, 4).SelectMany(y => Enumerable.Range(0, 4) .Select(x => new AetheriaRuntimeShapeCell(x, y))).ToArray(); var one = new[] { new AetheriaRuntimeShapeCell(0, 0) }; + var cells2 = Enumerable.Range(0, 2).SelectMany(y => Enumerable.Range(0, 2) + .Select(x => new AetheriaRuntimeShapeCell(x, y))).ToArray(); AetheriaRuntimeCatalogItem Item(string key, string category, string manufacturer, int price, string hardpointType = "", params string[] behaviors) @@ -921,7 +933,8 @@ internal sealed class AetheriaDaemonYmirSmokeChecks availableHull.Hardpoints = [ new AetheriaRuntimeHardpoint("ControlModule", 0, 0, 1, 1, 1, one, "", "None", 0), - new AetheriaRuntimeHardpoint("Weapon", 1, 0, 1, 1, 1, one, "", "None", 0) + new AetheriaRuntimeHardpoint("Weapon", 1, 0, 1, 1, 1, one, "", "None", 0), + new AetheriaRuntimeHardpoint("Sensors", 2, 0, 1, 1, 1, one, "", "None", 0) ]; var unavailableHull = Item("cheap-foreign-hull", AetheriaRuntimeItemCategories.Hull, "foreign", 1); unavailableHull.HardpointType = "Hull"; @@ -933,20 +946,22 @@ internal sealed class AetheriaDaemonYmirSmokeChecks stationHull.ShapeCells = cells4; stationHull.Hardpoints = [ - new AetheriaRuntimeHardpoint("ControlModule", 0, 0, 1, 1, 1, one, "", "None", 0) + new AetheriaRuntimeHardpoint("ControlModule", 0, 0, 1, 1, 1, one, "", "None", 0), + new AetheriaRuntimeHardpoint("Sensors", 1, 1, 2, 2, 4, cells2, "", "None", 0) ]; var cockpit = Item("cockpit", AetheriaRuntimeItemCategories.Gear, "forge", 20, "ControlModule", "Cockpit"); var wrongController = Item("cheap-turret-controller", AetheriaRuntimeItemCategories.Gear, "forge", 1, "ControlModule", "TurretController"); var weapon = Item("cannon", AetheriaRuntimeItemCategories.Weapon, "forge", 40, "Weapon", "LockWeapon"); + var shipSensor = Item("ship-sensor", AetheriaRuntimeItemCategories.Gear, "forge", 15, "Sensors", "Sensor"); + var stationSensor = Item("station-sensor", AetheriaRuntimeItemCategories.Gear, "forge", 80, "Sensors", "Sensor"); + stationSensor.ShapeWidth = 2; stationSensor.ShapeHeight = 2; + stationSensor.OccupiedCells = 4; stationSensor.ShapeCells = cells2; var cargo = Item("cargo-bay", AetheriaRuntimeItemCategories.CargoBay, "forge", 30); cargo.HardpointType = "Internal"; - cargo.InteriorShapeWidth = 2; cargo.InteriorShapeHeight = 2; cargo.InteriorOccupiedCells = 4; - cargo.InteriorShapeCells = - [ - new AetheriaRuntimeShapeCell(0, 0), new AetheriaRuntimeShapeCell(1, 0), - new AetheriaRuntimeShapeCell(0, 1), new AetheriaRuntimeShapeCell(1, 1) - ]; + cargo.InteriorShapeWidth = 3; cargo.InteriorShapeHeight = 3; cargo.InteriorOccupiedCells = 9; + cargo.InteriorShapeCells = Enumerable.Range(0, 3).SelectMany(y => Enumerable.Range(0, 3) + .Select(x => new AetheriaRuntimeShapeCell(x, y))).ToArray(); var docking = Item("docking-bay", AetheriaRuntimeItemCategories.DockingBay, "forge", 35); docking.HardpointType = "Internal"; var capacitor = Item("capacitor", AetheriaRuntimeItemCategories.Gear, "forge", 25, "", "Capacitor"); @@ -955,8 +970,13 @@ internal sealed class AetheriaDaemonYmirSmokeChecks [new AetheriaRuntimeCorporationAllegiance("forge", 1)]); var foreign = new AetheriaRuntimeCorporation("foreign", "Foreign", "X", "", "", "", 1, 2, [new AetheriaRuntimeCorporationAllegiance("foreign", 1), new AetheriaRuntimeCorporationAllegiance("forge", 0.5)]); + var reactor = Item("reactor", AetheriaRuntimeItemCategories.Gear, "forge", 25, "", "Reactor"); + reactor.HardpointType = "Internal"; var catalog = new AetheriaRuntimeCatalogSnapshot( - [availableHull, unavailableHull, stationHull, cockpit, wrongController, weapon, cargo, docking, capacitor], + [availableHull, unavailableHull, stationHull, cockpit, wrongController, weapon, shipSensor, stationSensor, cargo, docking, capacitor, reactor], + [faction, foreign], Array.Empty()); + var fallbackCatalog = new AetheriaRuntimeCatalogSnapshot( + [availableHull, unavailableHull, stationHull, cockpit, wrongController, weapon, shipSensor, cargo, docking, capacitor, reactor], [faction, foreign], Array.Empty()); var homes = new Dictionary { ["forge"] = 0, ["foreign"] = 1 }; var adjacency = new Dictionary> { [0] = [1], [1] = [0] }; @@ -964,6 +984,8 @@ internal sealed class AetheriaDaemonYmirSmokeChecks var first = new AetheriaDaemonLoadoutGenerator(catalog, 42, 0, homes, adjacency).Build("ship", "forge", []); var second = new AetheriaDaemonLoadoutGenerator(catalog, 42, 0, homes, adjacency).Build("ship", "forge", []); var station = new AetheriaDaemonLoadoutGenerator(catalog, 84, 0, homes, adjacency).Build("station", "forge", []); + var fallbackStation = new AetheriaDaemonLoadoutGenerator(fallbackCatalog, 84, 0, homes, adjacency) + .Build("station", "forge", []); var uninterruptedForge = new AetheriaDaemonLoadoutGenerator(catalog, 101, 0, homes, adjacency); var interleavedForge = new AetheriaDaemonLoadoutGenerator(catalog, 101, 0, homes, adjacency); var foreignStream = new AetheriaDaemonLoadoutGenerator(catalog, 202, 1, homes, adjacency); @@ -983,8 +1005,10 @@ internal sealed class AetheriaDaemonYmirSmokeChecks "ship control hardpoints must require the cockpit role even when the wrong controller is cheaper"); Require(first.Equipment.Any(value => value.ItemKey == "cannon") && first.Equipment.Any(value => value.ItemKey == "cargo-bay") && - first.Equipment.Any(value => value.ItemKey == "capacitor"), - "generated ships must fit hardpoint equipment, a cargo bay, and a capacitor"); + first.Equipment.Any(value => value.ItemKey == "capacitor") && + first.Equipment.Any(value => value.ItemKey == "ship-sensor") && + first.Equipment.All(value => value.ItemKey != "station-sensor"), + "generated ships must fit hardpoint equipment and reject station-sized sensor gear"); Require(first.HullItemKey == second.HullItemKey && first.Equipment.Select(value => value.ItemKey).SequenceEqual(second.Equipment.Select(value => value.ItemKey)), "same seed, map, faction and catalog must produce the same loadout"); @@ -996,10 +1020,15 @@ internal sealed class AetheriaDaemonYmirSmokeChecks Require(station.Equipment.Any(value => value.ItemKey == "docking-bay") && station.Equipment.Any(value => value.ItemKey == "cargo-bay") && station.Equipment.Any(value => value.ItemKey == "capacitor") && - station.Equipment.Any(value => value.ItemKey == "cheap-turret-controller"), - "stations must fit docking, cargo, capacitor, and turret-controller roles before inventory generation"); - Require(station.Cargo.Length == 4 && station.Cargo.All(value => value.Item.ItemKey != "cheap-foreign-hull"), - "station inventory draws must be packed to cargo capacity and exclude unavailable manufacturers"); + station.Equipment.Any(value => value.ItemKey == "cheap-turret-controller") && + station.Equipment.Any(value => value.ItemKey == "station-sensor") && + station.Equipment.All(value => value.ItemKey != "ship-sensor"), + "station generation must fill a large sensor hardpoint with the largest available compatible array"); + Require(fallbackStation.Equipment.Any(value => value.ItemKey == "ship-sensor"), + "a smaller sensor must remain a valid fallback when it fits inside a larger same-type hardpoint"); + Require(station.Cargo.Length > 0 && station.Cargo.Length <= cargo.InteriorOccupiedCells && + station.Cargo.All(value => value.Item.ItemKey != "cheap-foreign-hull"), + "station inventory draws must respect cargo capacity and exclude unavailable manufacturers"); Require(LoadoutKeys(uninterruptedSequence[0]).SequenceEqual(LoadoutKeys(interleavedFirst)) && LoadoutKeys(uninterruptedSequence[1]).SequenceEqual(LoadoutKeys(interleavedSecond)), "generation in another faction stream must not perturb this faction's continuing loadout sequence"); diff --git a/Aetheria.State.Daemon/AetheriaDaemonLoadoutGenerator.cs b/Aetheria.State.Daemon/AetheriaDaemonLoadoutGenerator.cs index c5483c618..a9a971a55 100644 --- a/Aetheria.State.Daemon/AetheriaDaemonLoadoutGenerator.cs +++ b/Aetheria.State.Daemon/AetheriaDaemonLoadoutGenerator.cs @@ -57,7 +57,7 @@ public sealed class AetheriaDaemonLoadoutGenerator ? string.Equals(entityKind, "ship", StringComparison.OrdinalIgnoreCase) ? "Cockpit" : "TurretController" : ""; var item = previous.FirstOrDefault(candidate => FitsHardpoint(candidate, hardpoint)); - item ??= Pick(availabilityFactionKey, 2, candidate => + item ??= PickHardpoint(availabilityFactionKey, hardpoint, candidate => IsGear(candidate) && FitsHardpoint(candidate, hardpoint) && (controllerKind.Length == 0 || HasBehavior(candidate, controllerKind))); if (item == null) @@ -82,10 +82,6 @@ public sealed class AetheriaDaemonLoadoutGenerator var cargo = PackCargo(cargoBay, availabilityFactionKey, scenarioCargo, string.Equals(entityKind, "station", StringComparison.OrdinalIgnoreCase)); - var sensorArrayCount = string.Equals(entityKind, "station", StringComparison.OrdinalIgnoreCase) ? 2 : 1; - for (var sensorIndex = 0; sensorIndex < sensorArrayCount; sensorIndex++) - TryAddFreeSpaceItem(hull, availabilityFactionKey, occupied, slots, 2, item => - IsGear(item) && HasBehavior(item, "Sensor")); var selectedKeys = new[] { (Role: "hull", Key: hull.ItemKey) } .Concat(slots.Select(value => (Role: "equipment", Key: value.ItemKey))) .Concat(cargo.Select(value => (Role: "cargo", Key: value.Item.ItemKey))); @@ -225,6 +221,22 @@ public sealed class AetheriaDaemonLoadoutGenerator return PickWeighted(Available(factionKey).Where(filter).ToArray(), sizeExponent, factionKey, item => item); } + private AetheriaRuntimeCatalogItem? PickHardpoint( + string factionKey, + AetheriaRuntimeHardpoint hardpoint, + Func filter) + { + var candidates = Available(factionKey).Where(filter).ToArray(); + if (candidates.Length == 0) + return null; + var largestFootprint = candidates.Max(item => item.OccupiedCells); + return PickWeighted( + candidates.Where(item => item.OccupiedCells == largestFootprint).ToArray(), + 2, + factionKey, + item => item); + } + private T PickWeighted( IReadOnlyList values, double sizeExponent, @@ -292,8 +304,7 @@ public sealed class AetheriaDaemonLoadoutGenerator private static bool FitsHardpoint(AetheriaRuntimeCatalogItem item, AetheriaRuntimeHardpoint hardpoint) { - if (!string.Equals(item.HardpointType, hardpoint.Type, StringComparison.Ordinal) || - item.OccupiedCells != hardpoint.OccupiedCells) + if (!string.Equals(item.HardpointType, hardpoint.Type, StringComparison.Ordinal)) return false; var target = Cells(hardpoint.ShapeCells); return RotatedCells(item, ParseRotation(hardpoint.Rotation)).All(target.Contains); diff --git a/Aetheria.State.Import/Program.cs b/Aetheria.State.Import/Program.cs index 24f2ccdd1..d2b5e5b19 100644 --- a/Aetheria.State.Import/Program.cs +++ b/Aetheria.State.Import/Program.cs @@ -41,7 +41,7 @@ var nameFileEntries = Directory.Exists(nameFilesRoot) : []; var itemDefinitions = entries .Where(entry => entry.ItemDefinition != null) - .Select(entry => ProjectDeployableWeapon(entry.ItemDefinition!)) + .Select(entry => ProjectStationSensorMount(ProjectDeployableWeapon(entry.ItemDefinition!))) .ToArray(); var corporations = entries .Where(entry => entry.Corporation != null) @@ -94,6 +94,48 @@ static AetheriaItemDefinition ProjectDeployableWeapon(AetheriaItemDefinition ite return item; } +static AetheriaItemDefinition ProjectStationSensorMount(AetheriaItemDefinition item) +{ + const string stationHullLegacyId = "82efc0a5-1ba5-4ff3-a281-b2e6e247521d"; + if (!string.Equals(item.LegacyId, stationHullLegacyId, StringComparison.OrdinalIgnoreCase) || + (item.Hardpoints ?? []).Any(hardpoint => string.Equals(hardpoint.Type, "Sensors", StringComparison.Ordinal))) + { + return item; + } + + const int positionX = 5; + const int positionY = 1; + var mountCells = new[] + { + new AetheriaShapeCell { X = 0, Y = 0 }, + new AetheriaShapeCell { X = 1, Y = 0 }, + new AetheriaShapeCell { X = 0, Y = 1 }, + new AetheriaShapeCell { X = 1, Y = 1 } + }; + var hullCells = (item.ShapeCells ?? []) + .Select(cell => (cell.X, cell.Y)) + .ToHashSet(); + if (mountCells.Any(cell => !hullCells.Contains((positionX + cell.X, positionY + cell.Y)))) + { + throw new InvalidDataException("Recovered station sensor mount does not fit the decoded station hull shape."); + } + + item.Hardpoints = (item.Hardpoints ?? []) + .Append(new AetheriaItemHardpoint + { + Type = "Sensors", + PositionX = positionX, + PositionY = positionY, + ShapeWidth = 2, + ShapeHeight = 2, + OccupiedCells = 4, + ShapeCells = mountCells, + Rotation = "None" + }) + .ToArray(); + return item; +} + static bool IsMineItem(AetheriaItemDefinition item) { var hasMineEffect = (item.BehaviorPayloads ?? []).Any(behavior => @@ -144,6 +186,28 @@ if (args.Any(argument => string.Equals(argument, "--merge-mine", StringCompariso return; } +if (args.Any(argument => string.Equals(argument, "--merge-station-sensor", StringComparison.Ordinal))) +{ + const string stationHullLegacyId = "82efc0a5-1ba5-4ff3-a281-b2e6e247521d"; + var stationHull = itemDefinitions.Single(item => + string.Equals(item.LegacyId, stationHullLegacyId, StringComparison.OrdinalIgnoreCase)); + await using var mergeNode = await AetheriaStateNode.OpenAsync(statePath, "aetheria-station-sensor-catalog-merge"); + await mergeNode.MutableDocument(AetheriaCatalogKeys.ItemDefinitionFromLegacyId(stationHull.LegacyId)) + .ReplaceAsync(stationHull); + await mergeNode.FlushAsync(); + var merged = await mergeNode.RuntimeCatalog().LatestAsync().ConfigureAwait(false); + var mergedHull = merged.FindItem(stationHull.ItemKey); + if (mergedHull == null || !(mergedHull.Hardpoints ?? []).Any(hardpoint => + string.Equals(hardpoint.Type, "Sensors", StringComparison.Ordinal) && + hardpoint.OccupiedCells == 4)) + { + throw new InvalidDataException("Station sensor hardpoint merge did not become visible through the runtime catalog."); + } + Console.WriteLine($"Merged station sensor hardpoint into typed state: {statePath}"); + Console.WriteLine($"Hull: {stationHull.ItemKey}"); + return; +} + ResetMaterializedStateOutput(statePath); await using var node = await AetheriaStateNode.OpenAsync(statePath, "aetheria-legacy-catalog-import"); @@ -1193,6 +1257,11 @@ internal static class LegacyCatalogReader return ShapeFacts.Empty; } + if (TryReadRectangularShape(columns, out var rectangularShape)) + { + return rectangularShape; + } + var width = columns.Length; var height = 0; var cellsByRow = new List(); @@ -1232,6 +1301,39 @@ internal static class LegacyCatalogReader .ToArray()); } + private static bool TryReadRectangularShape(object?[] envelope, out ShapeFacts shape) + { + shape = ShapeFacts.Empty; + if (envelope.Length != 3 || + envelope[2] is not Array flattened) + { + return false; + } + + var width = ReadIntValue(envelope[0]); + var height = ReadIntValue(envelope[1]); + if (width <= 0 || height <= 0 || flattened.Length != width * height) + { + return false; + } + + var cells = new List(); + for (var x = 0; x < width; x++) + for (var y = 0; y < height; y++) + { + if (flattened.GetValue(x * height + y) is true) + { + cells.Add(new AetheriaShapeCell { X = x, Y = y }); + } + } + + shape = new ShapeFacts(width, height, cells + .OrderBy(cell => cell.Y) + .ThenBy(cell => cell.X) + .ToArray()); + return true; + } + private static object? UnwrapShapeMatrix(object? value) { return value is object?[] shapeObject && shapeObject.Length == 1 ? shapeObject[0] : value; diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 13894de89..2f281cb57 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -1246,6 +1246,8 @@ static void RequireDaemonPlayableRunGenerationAuthority(string root) "Math.Pow(item.Price, _priceExponent)", "Distance(_zoneIndex, _homeZones[item.ManufacturerKey])", "FitsHardpoint(candidate, hardpoint)", + "PickHardpoint(availabilityFactionKey, hardpoint", + "var largestFootprint = candidates.Max(item => item.OccupiedCells)", "HasBehavior(candidate, controllerKind)", "for (var draw = 0; draw < 16 && pool.Count > 0; draw++)", "FindFit(interiorCells, width, height, item, occupied)", @@ -1271,7 +1273,9 @@ static void RequireDaemonPlayableRunGenerationAuthority(string root) "Assets.Scripts.ServerShared", "ServerShared.LoadoutGenerator", "ManufacturerScore(", - "FallbackHull(" + "FallbackHull(", + "sensorArrayCount", + "item.OccupiedCells != hardpoint.OccupiedCells" }; var survivingDaemonSymbols = forbiddenDaemonSymbols .Where(symbol => daemonText.Contains(symbol, StringComparison.Ordinal)) @@ -1289,6 +1293,12 @@ static void RequireDaemonPlayableRunGenerationAuthority(string root) throw new InvalidOperationException( "Legacy Unity LoadoutGenerator must not carry commented constructor scars; Git history owns removed APIs."); } + + if (sharedLoadoutGenerator.Contains("item.OccupiedCells == hardpoint.OccupiedCells", StringComparison.Ordinal)) + { + throw new InvalidOperationException( + "Hardpoint fit is same-type geometric containment; smaller equipment remains legal in larger mounts."); + } } static void RequireTypedBehaviorBodyKeys(string root) @@ -12845,6 +12855,9 @@ static void RequireCatalogSurfaceUsesManagedRuntimeCatalog(string root) "node.MutableDocument(AetheriaCatalogKeys.NameFileFromLegacyId(nameFile.LegacyId))", "node.MutableDocument(AetheriaStateNode.TradeValuePolicyKey)", "AetheriaRuntimeStateMapper.ToTradeValuePolicy(", + "TryReadRectangularShape(columns, out var rectangularShape)", + "ProjectStationSensorMount(ProjectDeployableWeapon(entry.ItemDefinition!))", + "--merge-station-sensor", "await node.CatalogSurface().LatestAsync().ConfigureAwait(false);" }; var missingImportSymbols = requiredImportSymbols diff --git a/Assets/Scripts/ServerShared/LoadoutGenerator.cs b/Assets/Scripts/ServerShared/LoadoutGenerator.cs index c4862d667..21d948c05 100644 --- a/Assets/Scripts/ServerShared/LoadoutGenerator.cs +++ b/Assets/Scripts/ServerShared/LoadoutGenerator.cs @@ -219,7 +219,6 @@ public class LoadoutGenerator return item != null && hardpoint != null && string.Equals(item.HardpointType, hardpoint.Type, StringComparison.Ordinal) && - item.OccupiedCells == hardpoint.OccupiedCells && FitsWithin(item, ToShape(hardpoint), GetRotation(hardpoint)); } diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 46e09d78e..9a8091a90 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -287,7 +287,12 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. `Sensor` behavior sensitivity. Arrays combine by root-sum-square, so larger hulls can buy reach by devoting real equipment volume, mass, power, cooling, and computation to sensing. Entity kind is not an input. Cargo is not - installed equipment. Contact refresh consumes this derived reach but does + installed equipment. Hull-authored `Sensors` hardpoints own the physical + installation envelope: a smaller same-type array may occupy a larger mount, + while generated loadouts choose the largest compatible footprint before + applying faction, distance, and price weighting. Station-scale reach emerges + from station-scale hardpoints and gear rather than a station multiplier or + sensor-count branch. Contact refresh consumes this derived reach but does not write `Visibility`; emitted signature remains owned by thermal, propulsion, weapons, reflectors, explicit visibility sources, and pings. - The daemon observation query owns docked sensor sharing. A docked controlled diff --git a/docs/original-game-migration-matrix.md b/docs/original-game-migration-matrix.md index 4ada89dce..ebd927e24 100644 --- a/docs/original-game-migration-matrix.md +++ b/docs/original-game-migration-matrix.md @@ -17,7 +17,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity. |---|---|---|---|---|---|---| | Run/session state | `ServerShared`, `ActionGameManager` | Aetheria daemon/CultCache | provider/session advertisement | all clients | owner-exists; wired; projected; not proven | restart and multi-client convergence | | Entity identity/loadout | `ServerShared/Entity*` | daemon | typed entity and inventory surfaces | EveUnity/Electron | owner-exists; wired; projected; not proven | loadout round trip and reconnect | -| Loadout generation | map/faction availability, item cost, hull hardpoints and role constraints | daemon using canonical galaxy, faction knowledge/economy and typed catalog | generated loadout plus provenance/availability facts | Eve inspection and refit surfaces | daemon now uses the fossil candidate filter and seeded weighted selection: manufacturer must be present and allied, ally weight decays by home-zone graph distance, price uses the authored exponent, hardpoints require exact type/cell/rotation fit and controller role, and cargo/capacitor plus station docking equipment must fit remaining hull space; stations draw up to sixteen faction-available equipment rows and pack largest-first into the selected cargo bay's actual interior shape; zone generation derives one continuing deterministic RNG stream per availability corporation, so cross-faction calls cannot perturb another faction; every generated entity persists an immutable source/selection receipt that reaches Eve as `loadout.item` semantics; Terminus explicitly maps combat-role factions to catalog availability corporations | multi-zone generated-world parity and exact root-to-zone stream sequencing against the fossil | +| Loadout generation | map/faction availability, item cost, hull hardpoints and role constraints | daemon using canonical galaxy, faction knowledge/economy and typed catalog | generated loadout plus provenance/availability facts | Eve inspection and refit surfaces | daemon now uses the fossil candidate filter and seeded weighted selection: manufacturer must be present and allied, ally weight decays by home-zone graph distance, price uses the authored exponent, and hardpoints require matching semantic type, rotated footprint containment, and controller role; generation fills the largest compatible footprint before applying economic weighting, so small gear remains a valid large-mount fallback without displacing available station-scale gear; cargo/capacitor plus station docking equipment must fit remaining hull space; stations draw up to sixteen faction-available equipment rows and pack largest-first into the selected cargo bay's actual interior shape; zone generation derives one continuing deterministic RNG stream per availability corporation, so cross-faction calls cannot perturb another faction; every generated entity persists an immutable source/selection receipt that reaches Eve as `loadout.item` semantics; Terminus explicitly maps combat-role factions to catalog availability corporations | multi-zone generated-world parity and exact root-to-zone stream sequencing against the fossil | | Flight intent | `Ship`, `Thruster`, `AetherDrive`, input paths | daemon intent + Ymir physics | analog movement/look/tractor | EveUnity input driver | movement intents feed Ymir-owned body integration; authored thrust allocation, torque, energy and heat remain simplified | prove original drive/equipment behavior ordering and runtime interpolation | | Collision | Unity physics and entity handlers | Ymir | collision/result facts | visual interpolation only | Ymir.Core world stepping wired for entity bodies, radial fields and contacts; missing-owner negative proof passes | publish authoritative collision events and prove Unity cannot write transforms back | | Targeting/contacts | sensors + `ActionGameManager` | daemon | contact/target semantics | target HUD and indicators | simplified owner wired/projected; daemon weapon lock now acquires and decays from facing, elapsed time, and observer-local contact confidence instead of granting an immediate perfect lock | target-switch reset, angular decay, visibility/nearest/explicit cases, and runtime lock feedback | @@ -42,7 +42,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity. | Terminus loop | original game composition | daemon/Ymir/Eve | pilot surface | Aetheria.Unity | live minimum-loop proof: generic Unity discovers the provider, lowers the pilot world/assets, single-steps dock and undock while paused, buys daemon-priced station stock, single-steps Ymir salvage collection, resumes, moves, targets, fires, and presents authoritative receipts/shot outcome | destruction-created loot pickup, richer trade content, docking transitions, and sustained combat encounters | | Starbridge | original/shared architecture intent | one daemon session | pilot + commander surfaces | Unity + Electron | commander task board and autonomous explore execution wired; Electron Eve lowering and split-target proof missing | commander orders plus four pilots and autonomous workers | | Behavior engine | `ServerShared/Behaviors` composition | daemon | executable action/status projection | action bar and feedback | tick reconciles equipped catalog payloads into persistent behavior state; shared evaluated-stat query proven; execution families remain partial | every behavior family, ordering, resource transaction and modifier lifecycle | -| Sensors/visibility | installed sensor sensitivity, decaying signature sources, and observer information thresholds | daemon | contacts and ping events | indicators/maps | passive reach derives from enabled installed Sensor behaviors with diminishing-return array composition regardless of entity kind; contact refresh no longer overwrites emitted visibility; docked craft consume one daemon-derived union of craft and dock-parent contacts through both Eve rows and SoA bodies, with sensor-source provenance; the old station range survives only as obsolete snapshot compatibility | replace station/ship sensor-count shortcuts with mass/volume/power/cooling/cost allocation, then prove shutdown, threshold decay, ping, and classification timelines | +| Sensors/visibility | installed sensor sensitivity, decaying signature sources, and observer information thresholds | daemon | contacts and ping events | indicators/maps | passive reach derives from enabled installed Sensor behaviors with diminishing-return array composition regardless of entity kind; station-scale arrays are ordinary gear installed into larger hull-authored sensor hardpoints, with smaller same-type arrays remaining valid fallbacks; generation prefers the largest fitting footprint and contains no station/ship sensor-count branch; contact refresh no longer overwrites emitted visibility; docked craft consume one daemon-derived union of craft and dock-parent contacts through both Eve rows and SoA bodies, with sensor-source provenance; the old station range survives only as obsolete snapshot compatibility | prove shutdown, threshold decay, ping, classification timelines, and canonical catalog station-array data | | AI/tasks | corporation task scheduler plus agent state machines | daemon | commander task board, corporation survey ledger, and shared semantic controls | Eve commander/pilot clients | point exploration, attack with optimum-range control, same-zone haul, mining/offload, resource surveying, physical station towing, persistent orbit patrol, route-aware assignment, and autonomous return home wired through shared commands; attack admission rejects missing/friendly targets and unavailable weapon groups before durable queueing; capability/priority assignment and rejection behavior proven; generic Electron commander lowering proves the worker roster | cross-zone logistics execution, cancellation, reconnect, and multi-client command transfer | | Consumables | cargo-backed timed behavior containers | daemon | dynamic actions, active effects, and lifecycle facts | action bar/schematic | daemon atomically resolves typed metadata and concrete cargo, preserves consumed-instance quality, enforces authored stacking, evaluates effectiveness/quality, and executes ordered `EnergyDraw`, fossil-compatible no-op `Heat`, `ItemUsage`, and stateful `Cooldown` payloads after energy tick initialization; every effect and payload state has stable authored identity; cooldowns update before the ordered chain, require state strictly below zero, reset to one on success, and continue aging behind earlier failures; false and unsupported payloads stop later execution with a typed fact; timers retain the fossil's exact-zero final tick; Unity reconciles presentation by effect identity and cannot restore active behavior state by list index | catalog revision pinning, stat modifiers, remaining behavior families, and reconnect presentation proof |