Commit graph

4,657 commits

Author SHA1 Message Date
soul
c27eeff3b8 StationDeckTests: a fixture that deals the entrance cards beside its orders
The demo entrance is dealt no card, so the entrance rules were vacuous. The holder of the entrance gets its home there and an influence of 3: every kind a faction fields still stands outside the entrance (dies under the first deck dealt to entrance slots first, seed 19), and an ordered entrance holds exactly its orders (dies under dealt extras seated after the orders).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 04:30:40 +01:00
soul
74bd92251a ZoneGenerator: the overflow seat's root spacing stays inside the zone's boundary circle; tests pin containment, isolation and the seat order
The boundary circle (Radius x ZoneBoundaryRadius) is a fixed function of the zone's radius, drawn before any content, so spacing must fit inside it: a root takes the station only while moving every root outward by its spacing keeps the outermost root within the boundary; where no root fits beyond its ring group the station orbits a root at its family extent, the least spacing that fits. Unbounded, spacing put a root outside the boundary in 47 of 6400 zones (up to 3.2x the pack radius; 0 at base). OverflowSeatTests sweep nine seeds that exercised the bound: no root beyond the boundary, isolation holds for every spaced root, and an overflow station orbits a root with no massive child wherever the zone has one (reverting to the old first-root-with-children rule fails it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 04:30:39 +01:00
soul
ddf0b4ec5a StationPlacementTests: root-seated overflow stations are checked by their own turrets
Ruling root-stations-tested-by-own-turrets. The orphan-source test skips a station on a root's ring with no source orbit; the two flank tests give each turret to the station nearest it round the ring, so every station's turrets are still checked to flank it and clear each other. No bodyless orbit is added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:39:31 +01:00
soul
9bca18b07c TrojanSwarmTests: re-pin seeds 2, 3 and 4 after the overflow seat moves the roots apart
linux-x64 (Yggdrasil), old -> new: 2 bd7c5a3e -> 79808bd6, 3 a4fc1f09 -> 515554c9, 4 a8028205 -> 814b146c.
windows-x64 (Starfire), old -> new: 2 c18990e5 -> 2072e67a, 3 8da34a1f -> 4beb6475, 4 2469eacc -> ff37d9ec.
Seeds 1, 5 and 6 are unchanged on both. Cause: a zone with two or more massive roots and an overflow station scales its roots outward, which moves every body of those zones.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:19 +01:00
soul
b57ad1d4db ZoneGenerator: a lone childless root keeps its refusal; the shortfall seat needs something to orbit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:18 +01:00
soul
c0229d4154 ZoneGenerator: an overflow station seats on the root that asks the least of the zone, and the roots move apart to give its floor room
Ruling overflow-station-clears-root-first. The seat is a root with no massive child, else a bodyless node, else a root with children (most massive first, least spacing within a kind); outside the entrance a root with massive children takes the station beyond its massive children's ring group. The station's own orbit raises the root's support to Beta x its distance and its reach floor to Beta squared x it, so in a zone of two or more massive roots all roots move outward from the zone centre by the factor that keeps that floor within Reach x the nearest massive root's distance (root-window-floor).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:18 +01:00
soul
493bd1053d TrojanSwarmTests: re-pin the swarmless zone digests of seeds 1-6 on both host classes
linux-x64 (Yggdrasil), old -> new:
1 1873400d -> dcebeb47, 2 5872680e -> bd7c5a3e, 3 e92cc320 -> a4fc1f09, 4 61db9bda -> a8028205, 5 69ca46eb -> 373cc2c5, 6 307dc4b3 -> 332b3a84.
windows-x64 (Starfire), old -> new:
1 8ab09122 -> 74ffae15, 2 c7471235 -> c18990e5, 3 1b9b7dcf -> 8da34a1f, 4 72aea7f0 -> 2469eacc, 5 679b83ac -> e7ff9fd5, 6 5da9181e -> 42298028.
Cause: the deal removed the zone-stream count draw and seats every dealt station, so each zone's stations and every later draw moved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:17 +01:00
soul
2838bc54fe DeterminismLedgerTests: re-pin the two-AI digest, the zone's station draws moved
linux-x64 57303576 -> 1d1f9901 (measured on Yggdrasil), windows-x64 344fec28 -> 5afdd8f9 (Starfire). Cause: the deal replaced the zone-stream count draw, so every later draw in the zone Zenith stands in moved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:16 +01:00
soul
f19082264c HaulRunTests: TheLegIsTheHold stages the demo entrance of seed 2
Old reading at seed 1: loaded hauler dot toward the refinery 0.9879 (emptied 0.9810). New reading at seed 1: 0.0042, since the Lagrange sides moved when the count draw left the stream and the stations now sit 415 from a 139217-mass body whose pull beats 3 s of steering. Seed 2 reads 0.9999 loaded and 0.9952 emptied against the unchanged bound of 0.5.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:15 +01:00
soul
3d76ae42a8 DemoLoopTests: re-pin the buy anchor, V/buy 0.11286 -> 0.035269
Old reading: cheapest authored price at Zenith 2500, so V/buy 282.149/2500 = 0.11286. New reading: 8000, V/buy 0.035269. The deal removed the zone's count draw, which moved Zenith's stock draw. The band stays 1/sqrt(10) to sqrt(10) around the new anchor; repair reads 45703 on both sides, unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:14 +01:00
soul
f159acf1bb RestoredHullsTests: a non-entrance no-Lagrange zone seats every dealt station at its root
Old reading 0 stations (the zone's roll was dropped where no rail could seat it); new reading 8, the deal's count for the boosted-presence fixture. The shortfall path is every zone's now, so the test asserts the count equals the deal's and that the deal is not empty.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:13 +01:00
soul
60f24107b5 Catalog resave: the station kinds carry the schema id with Ring
Adding Ring (key 4) changed the stationkinddata schema id; catalog resave apply restamps all 11 records so the shipped catalog is current (CatalogResaveTests, ElementIdUpgradeTests).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:12 +01:00
soul
93fb5c7030 StationDeckTests: the deal's kinds outside the entrance, every card seated, the gradient, purity across a save, an ordered entrance
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:11 +01:00
soul
baec7f5f7c StationDeck deals every station of a region; Choose and the zone-stream count draw are deleted
StationKinds.Choose (the per-station site hash) becomes PoolOf, the fieldable kinds with Choose's logged fallback and no hash. StationDeck.Deal owns which stations every zone holds: a zone's slots come from the run seed and its presence, a thin territory gets slots until a faction can stand every kind it fields outside the entrance, hands are dealt per region and faction by decks of one card per kind, and Ring places a hand frontier first. ZoneGenerator seats every dealt card (the rail shortfall path is every zone's; an ordered entrance seats its orders alone) and reads nearest faction, presence and structure faction from StationDeck. StationKindTests re-pointed from Choose to PoolOf and the deal.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:10 +01:00
soul
82dc3e878d GalaxyProvince.Region: the region index BuildProvinces derives, never persisted
StationDeck deals a faction's stations per region; BuildProvinces sets it on generation and on save.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:09 +01:00
soul
85a38ddd0f StationRings batch: first-draft rings for the nine kinds a faction fields (economy author StationRings apply)
mining 0, volatiles 0, agriculture 1, processing 1, fabrication 2, munitions-works 2, depot 3, trade-hub 3, shipyard 3; seven records change, a rerun writes nothing. Aetheria.cc committed with it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:08 +01:00
soul
36e186d160 StationKindData.Ring: which ring of a faction's territory a kind sits in
Key 4, int, default 0; a placement knob for StationDeck, authored by the StationRings batch. Records before key 4 read 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:07 +01:00
soul
67b5a53638 Idle recipes name their own missing inputs and trace each one hop upstream; each cause branch and the lower-bound note are pinned on their own fixtures
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:08:09 +01:00
soul
5046749080 Region view names each idle recipe's cause and says when no extraction runs; made is labelled a lower bound; the horizon test asserts plain values
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:40:37 +01:00
soul
26b451e1b9 economy balance --region: the demo region advanced on the shipped off-screen path
EconomyRegion.Run boots the region, parks the hauler and advances every zone with Zone.AdvanceTo at each RegionClock.Span. Per seed: stations by faction and kind with their depth, facility Stall shares, held units of outputs, units made per recipe, H-region-idle and H-region-missing-link (the link set is StationKinds.FieldableKindsOf).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:38:52 +01:00
soul
33bdf92a2f EconomyLoop.Boot builds the arena through RunStart and can materialize the region; DemoArena gains Galaxy and ParkHaulers
Galaxy.Entrance.Contents is now the arena (it was a Zone built beside the galaxy). region: true calls RunStart.Materialize after staging. Sortie and drain readings are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:38:51 +01:00
soul
dd3cc1b75d Drain spans run RegionClock.AdvanceFacilities; EconomyDrain.Span and its Production.Advance loop are deleted
The drain's off-screen step is the game's: Spans advances the copy by RegionClock.Span through RegionClock.AdvanceFacilities and reads each Facility behaviour's Stall, and Copy goes through EntitySerializer.Copy. Follow-up drain-spans-on-region-clock.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:38:50 +01:00
soul
e221776ed5 Map: habitats and populations (Bloom classes on rocky bodies, habitat hulls, populations as installed gear, cut order)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:08:31 +01:00
soul
5224d38383 Map: body facts of the station deck (one deal per region, Ring placement, what stays conjured)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:38:37 +01:00
soul
62919ee99b RegionClock tests: boundary advance, steps against spans, settle on entry, sightings, byte identity, orbit kick
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:55:31 +01:00
soul
fb1f1df869 RegionClock: the player's zone steps, every other zone's facilities advance by 60 s spans, entering settles the zone and records what the player saw leaving
RegionClock.Step is a run's one driver (ActionGameManager no longer calls Zone.Update); Zone.AdvanceTo runs the off-screen facilities by the span a zone missed and places its orbits at the new time. RegionClock.Enter is the one writer of VisitedZones and GalaxyZone.LastSeen (SavedZone Key 7). PackedContents is a Zone's construction input, cleared by RunStart.Live. The sector map reads RegionClock.Seen. Galaxy's save constructor copies the pack it builds a Zone from, so a Continue in the same process reads the save as written.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:55:30 +01:00
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