Commit graph

4,631 commits

Author SHA1 Message Date
soul
3e9a862a7a A save is a copy of the run: Capture stores Zone.Snapshot(), a MessagePack round trip, never the live stack and run objects
Closes follow-up save-shares-live-objects. EntitySerializer.Copy is the one copy; every zone of a run is live, so Capture requires Contents and the PackedContents fallback is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:55:29 +01:00
soul
74ebf52274 Re-pin the two-AI digest with the Facility-row reservation and hull conduction both in
linux-x64 42729ca4 -> 57303576 measured on Yggdrasil, windows-x64 e0f230c3 -> 344fec28 measured on Starfire, at the rebased head.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:02:26 +01:00
soul
24e6895913 Tests: a partial cycle of room does not make a product wanted; the Facility-row reservation is pinned at equip time
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:19 +01:00
soul
41b268f693 One room: StationWants.Room decides for a product and an ordered good; ordered goods hold their own share of the silo
Allocation divides the silo among the distinct outputs of the recipe facilities and the goods of the station's haul orders. StationWants.Landing
names where a good lands and how much (non-silo bays unbounded for a drawn good, silo bays up to Room for an ordered one); a sale stops at it and
a hauler docks only when a delivery has room. CanStart and EntityHold.Room call Room: the second copy of the rule is gone.

Tests kill the surviving mutants: a start needs a whole cycle of room, two facilities of one kind share their products, general gear never takes
a Facility row, an ordered good holds its own share and a good both drawn and ordered lands in both bay kinds.

The drain harness names saturation: with --supply the wanted ores are brought again every 600 s and a station whose products fill with no outflow
ends Room-stalled and is reported as H-drain-saturated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:18 +01:00
soul
088b2edec9 Production.Advance's comment names the room gate
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:16 +01:00
soul
71e2743783 Facilities batch test: a kind lists its recipe facility first, and the processing kind the silo after it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:10 +01:00
soul
1a3cb61ecb Tests: the drain horizon covers the first fill emptying; the no-row case asks for three rows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:09 +01:00
soul
483176723d A Facility row stays for facilities: general gear never takes an empty one; drain and fit tests follow the silo
A hull with two Facility rows serving a kind with one facility left the second to the docking bay (Entity.UnoccupiedSpace and ItemFits counted
empty hardpoint cells as free for general gear); the rows are the hull's stated facility capacity (ruling station-facilities-on-typed-mounts),
and StationFacilityFitTests.NoInteriorGearSitsOnAFacilityRow pins it. The drain tests change with the cut: the shipped refinery drains into its
silo, and the Room stall fault is pinned by a silo jammed full. Zenith's refinery intake pin names the non-silo bays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:07 +01:00
soul
8b656fd15a Arsenal Depot serves the processing kind too, so it takes the silo: Fa.2 on its manifest, package regenerated
StationFacilityRoomTests names the Arsenal Depot as having no free Facility row for the silo now that the processing kind lists it.
Regenerated through package_hull.py (PACKAGE_OK, hull.scad byte-equal); only the rows differ from the committed package (compare.py).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:06 +01:00
soul
2f0dcd265f Tests: outputs land in the silo, products hold their share, a full product stops its ores, Room stall only when nothing fits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:03 +01:00
soul
a73c3fb665 Refinery carries the silo: Facilities batch lists it after the recipe facility, Fa.2 on the Seized Refinery, package regenerated
The two one-facility rewrites in the Facilities batch are gone: a kind's Facilities is its recipe facility plus the silo when the silo lists
the kind (trade-hub, processing), written only where it differs. The silo's name and description are general. The Seized Refinery manifest
gains Fa.2 (2x2 at 6,9) and aetheria.seized-refinery is regenerated through package_hull.py (PACKAGE_OK, hull.scad byte-equal, reach 6.69).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:02 +01:00
soul
92d38aa7e4 Output room: facility outputs land in the silo, each product holds an even share, a recipe starts only with room
StationWants owns where every good lands and how much of a product a station may hold. Bays no longer lands a drawn good in a silo
(deleted: drawn -> every bay) and EntityHold.TryPut no longer stores into any bay (deleted: the any-bay loop); both go through
OutputBays/Bays. Allocation (floor(silo cells / products) x MaxStack) and CanStart are derived on every call; IProductionHold.Room
lets Production.Advance skip a recipe whose product is full and report Stall.Room only when every input-ready recipe lacks room.
A station without a silo is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:00 +01:00
soul
d3edd71e4f Ammo-run test: a shooter is stocked exactly to its hold when its draw exceeds it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:55 +01:00
soul
d38171123d LaunchSuppressor: stop insulating the rig; read mild against strong on the conducting hull every ship has
Heat per steady launch (strong over mild, bound 1.51 from shipped 2.284 and a 1.0 mutant) on both hulls, and launches hidden in a 600-launch fight on the
Djinni, which runs out (456 against 297, bound 1.24); the Longinus never runs out on a conducting hull.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:54 +01:00
soul
8c9c6f0f99 EconomyDrain: re-pin the seed-1 sortie at the authored starter (131/73/58, 1295, 131 mined -> 120/72/48, 970, 120)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:53 +01:00
soul
fa6e63f8d7 Pursuit and Arcs: restock each shooter to its measured 600 s draw plus half again, capped at its hold
A conducting hull never dies of heat, so a hold-down fires the whole window (draws 4-5x the heat-death stocks). Neither Pursuit hold nor the Arcs
holds carry the draw, so they are stocked full; the test now asks stocked to the draw, or the hold takes no more of that ammunition.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:52 +01:00
soul
c622e192ae The demo starter is an authored Longinus fit: Light Lasers on its Energy mounts, the same on every seed
demo-start-hull-longinus's default fit is the authored fit (economy-is-never-faked: a random loadout draw is interim). The generated
draw rolled Cell Blasters, ammunition-fed on an Energy mount, on seeds 2 3 69 97 and they ended AmmoOut in 12 s; Light Laser is the mining gun.
DemoTerminus.Starter stages it at StarterQuality; DemoPressureTests.EnterZone stages the same. The generator-replay test becomes the
authored-starter test; the AmmoOut sortie test flies a test-local Cell Blaster scenario through EconomyLoop.Sortie's new scenario parameter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:51 +01:00
soul
17110d8fb3 LaunchSuppressor rig: insulate the rig's hull, the condition its fights were probed in
On a conducting hull the cell bleeds and mild and strong both hide all 60 launches (mild 60 did not outlast strong 60 at 300).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:50 +01:00
soul
4b117e0fda Crossing: the Lightning Projector's settled Range is 1001.17 with a conducting hull (996.99 insulated)
ProjectorRange 997 -> 1001; the test's +-1 band and the waiting place at 80% of it are unchanged in shape.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:49 +01:00
soul
cbe4b54674 Re-pin the two-AI digest: the fight's ships and the zone's stations conduct heat from construction
linux-x64 d80cc78c -> 42729ca4 (Yggdrasil), windows-x64 77e8a2f3 -> e0f230c3 (Starfire). Snapshot hashes every entity's heat.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:48 +01:00
soul
ec505fc059 Every hull conducts heat from construction: Entity.MapEntity owns a fresh hull's conductivity
Loadouts.Materialize (scenario fits, presets, boss loadouts) never set HullConductivity, so an authored hull was insulated on every edge;
only LoadoutGenerator.EquipHardpoints set it. MapEntity now sets every hull cell conducting and the generator's loop is deleted. A saved
ship's edges (EntitySerializer.Unpack) and the inventory toggles overwrite it as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:48 +01:00
soul
d697a77160 Materialize reports each zone through the run's progress sink; "Done!" is RunStart.Begin's last word, after every zone exists
Galaxy keeps the progressCallback generation reports to (Galaxy.Progress) and no longer says Done! itself.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 18:50:42 +01:00
soul
6c92f46471 Visits are the run's fact, not contents; one start path for game and tests; name the conjuring Materialize spreads
Galaxy.VisitedZones (saved as SavedGame.VisitedZones, key 19; a save without it reads its packs as visits) is written when PopulateLevel enters a zone and read by SectorRenderer, so unvisited zones show 'Has not been visited' as before. RunStart.Begin owns the new-run order (arena, enter, stage, materialize only if staged) and ActionGameManager calls it; AFailedStartMaterializesNothing runs it. Materialize's comment names the generated stock and loadouts as scaffolding deleted by follow-up conjuring-site-deletions; RegionStep and RequireDesigns comments corrected.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 18:11:30 +01:00
soul
5a5d7543df ActionGameManager: a new run and Continue materialize the region; PopulateLevel only enters
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 17:36:32 +01:00
soul
7ab0196453 RunStart.Materialize: every zone of a run is a live Zone, each drawing its items from the run seed and its index
RegionStep joins the item steps; BuildArena gives staging its Zone before the rest exist. Tests: every zone live, generation order moves no zone, idempotence, Continue builds every zone, a failed start materializes nothing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 17:36:31 +01:00
soul
286bb0f67f Drain: park the demo hauler in both paths (no haul moves in the window or the spans), state the Room blind spot; Zenith intake pinned to the silo only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:15:53 +01:00
soul
296caffa16 Drain: fill with the ore the sorties mined, faulted sorties reported and left out; window long enough for Room and compares run time; copy isolation pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:55 +01:00
soul
c874d60a66 Drain: the sortie hold is the median of what a seed's sorties mined, not of the full-hold ones
Seeds 2, 3, 69 and 97 stop on a starting stock long before a hold fills, so only seed 1 had a measured sortie.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:54 +01:00
soul
ac9b02cdd8 economy balance --drain: station intake, sorties to fill, drain and stall shares per demo seed
Measurement only. Faults H-drain-stall and H-drain-sim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:54 +01:00
soul
28583bfb63 EconomyLoop.Boot: the demo arena boot lifted out of Sortie into a disposable DemoArena
Sortie's output is byte-identical (economy balance --loop 1 2 --cap 150 against 65f8eb8ae).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:53 +01:00
soul
0ed2159a92 Map: body facts of the demo region (64 zones, four factions, what simulates, what the region can build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:51:55 +01:00
soul
016219f531 ModesMatchOldNewGame: the demo places Zenith's hauler besides the player
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:50:24 +01:00
soul
2f21ce0bcf Tests: Zenith buys only into its silo, a hauler carries silo ore to the refinery, the leg is the hold, docking only to move something, delivery pays nobody, a lost hauler loses its cargo, the order survives the pack, a hauler fights and resumes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:29:43 +01:00
soul
e4332d3a49 DemoTerminus stages Zenith's hauler: ZoneStage.Hauler places a piloted ship of Zenith's faction carrying the standing order
Deletes the 'nothing hauls it yet' comment.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:23:47 +01:00
soul
e7f2203b53 The haul state: a hauler flies HaulRun.Leg's orbit and commands the call within docking distance, and the haul task survives a fight like patrol
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:10:47 +01:00
soul
579a96cb9e The dock call: HaulRun (order, leg, CanCall, Call), PilotCommand.Call, and an undocked hauler re-admitted piloted with its haul task derived in CreateAgent
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:09:40 +01:00
soul
5bc57ae4fc HaulingTask is the order key alone; Entity.Haul carries a ship's order through the pack (Key 24: Key 23 is the element id)
Deletes the stub's stored Origin, Target, ItemType and Quantity.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:07:38 +01:00
soul
c104ca834a A good lands only in the bays that may hold it: StationWants.Bays, TryStorePart (the sale's gate and move without the price), Load (silo to ship); Zenith buys only into its silo
Deletes TrySellPart's any-bay move (zenith-keeps-buying-past-its-silo).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:05:48 +01:00
soul
65f8eb8aec Tests that stage or generate without the demo entrance: ring arenas stage the player without the entrance's haul order; the cramped-hull heater test uses a kind with no facilities
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:23:19 +01:00
soul
768e07d278 A station buys only goods its installed gear wants, only as far as its bays hold: StationWants, Zenith's ore silo and standing haul order
StationWants.Of derives the wants per call: the draws of each installed recipe facility's run list (Production.Draws, beside Take) and, for a silo-carrying station, the goods of the haul orders that start at its orbit. TrySellPart is gated by it and says NotWanted or NoRoom; OreValue and TrySellOre sell only wanted ore. SiloData is a bay on a Facility row that holds commodity stacks only; HaulOrderData is a run document staged by DemoTerminus (ScenarioStage.Station, HaulOrder). Generated station gear stock stops at half the stock bay (StationStockShare) and skips silos. Facilities authors facility:ore-silo, its NotOffered product and trade-hub's Facilities (economy author Facilities apply; a rerun writes nothing); L-facility accepts a silo. EconomyLoop sells the sortie's hold to the processing station and reports sold, refused and offered value. TradeMenu (outside the dotnet build) reports NotWanted and NoRoom. Tests: fixtures seat a Smelter; new StationWantsTests; DemoLoop re-anchors BaseBuyRatio (cheapest piece Zenith stocks reads 2500, not 15500, once stock stops at half the bay).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:23:18 +01:00
soul
9d6de15358 Delete TrySell's absorb branch: a commodity stack sells only through TrySellPart, which pays for the units the bays took and says how many sold
TrySell takes a crafted item only and throws for any ICommodityStack. TrySellPart takes any commodity stack and returns SaleResult (Sold, Offered, Refusal); TrySellOre sums them. The paid-in-full test is deleted with the branch. The wants gate follows in the next commit; callers in tests and tools are repointed there.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:23:17 +01:00
soul
7c247de18c AetherDb: every booted read tool disposes its scratch; the shipped-only open is OpenShipped; save throws on an excluded package
Soul s1 findings booted-scratch-leak, shipped-named-overclaimed, save-excluded-package-not-pinned. The name OpenShipped says why, so
the per-site comments on the apply paths are not needed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:35:42 +01:00
soul
509a168c3f AetherDb station-kinds: name why it opens the shipped file alone
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:13:39 +01:00
soul
b6eda84d5d AetherDb: one owner of the catalog the game boots (AetherDb.ComposeBooted); every read tool opens it and throws on an excluded package
The AetherDb constructor, LoadoutCommitCommand and EconomyLoop each composed the packages in their own way; census, station-fit,
loadout, factions, weapon-ammo, save and the economy report/balance opened the shipped file alone and answered for a catalog the game
does not boot. Apply paths, dry runs, catalog resave, economy prices and the ship-authoring shipped lookups keep the shipped file alone,
each named at its open site. Pinned by BootedCatalogReadToolsTests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 11:55:28 +01:00
soul
ffb5d73f81 EconomyLoop boots the catalog the game boots (first-party packages composed): the Pirates' station hulls are a package's. The declaration test launches the demo in its own galaxy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 11:12:01 +01:00
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
ba8018d339 Advance never spins on a stale run list: starts are validated against the catalog, a dropped run rebuilds the facility's list; the not-runnable drops are pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:23:14 +01:00
soul
7fee3081d9 Facility: a run of a vanished recipe is dropped, the hold revision is one monotonic entity counter, the idle skip and unit store are pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:49 +01:00
soul
3254580a6d Idle facilities cost near nothing: the catalog owns a filler index, the bay counts its changes, a failed take waits for the hold to change; the overshoot carry is the stated rule
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:48 +01:00
soul
a6a9480697 Facilities batch authors the facility thermal band (economy author Facilities apply): -1 to 1000, plateau 0 to 560 around 280
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:47 +01:00