Commit graph

4,681 commits

Author SHA1 Message Date
soul
6004fbc8d8 Facility: on screen an ore rig works the rocks, off screen its recipes run by span
A rig whose run list is all raw ore works the zone's first whole rock (belt Site, then index) through Zone.Wear and FireControl.Extract, the
player's own mining, at Production.OreRate (Facility.Work); the unit's FacilityRun is left alone and a cycle begun off screen resumes
when the zone is. RegionClock calls Facility.Span, always Production.Advance, so off screen the same rig starts its recipes by the
deposit pick. Any other list, a skimmer's included, runs Advance in both. Dice for the ore a rig's wear pays: SimulationDice.RigStream.
ExtractionTests pins the pick, the per-unit weight, the gate, Barren, Cycles in a pack, the zone's deposits, the on-screen wear, the
agreement of both rates, the full-bay stop, the skimmer's spans against steps, OreRate against what Advance averages, and the batch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:17 +01:00
soul
b4e25c5821 Atmospheres batch and Aetheria.cc: atmosphere:gas-giant, the ground a skimmer skims
economy author Atmospheres apply wrote one record, Methane 3, Water 2, Ammonia 1 (first-draft knobs, ruling
economy-numbers-are-sim-tuned-knobs); the reprice that follows touched nothing. The batch writes only where the record differs by fields.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:08 +01:00
soul
dc75e9a801 Production: a raw recipe runs where the ground holds its good
Deletes the !Recipes.IsRaw clause of Production.Runs, the obsolete owner that decided extraction never runs (cut facility-extraction;
rulings auto-mining-is-off-screen-only, skimmers-run-their-recipe-on-screen-for-now).

- Deposits.Of is the one owner of what a zone's ground holds (belts by rock yield through FieldKinds.Yield, gas giants through the new
  AtmosphereData); IProductionHold.Deposit reads it, EntityHold keeps it per zone.
- Production.Advance starts a list of raw recipes at a pick weighted by deposit per unit made (FieldKinds.Pick on FacilityRun.Cycles, new
  Key 2), skips a raw candidate the ground lacks, and reads Stall.Barren, writing nothing, where the ground holds none.
- Production.OreRate is the rate that pick averages to, the one rate on screen and off.
- FieldKinds.Yield gains the list overload Deposits calls; OreGeographyTests names the default FieldKindData ref the overload made ambiguous.
- RunListIsTheRule drops the raw exclusion; a recipe made raw is no longer dropped from a running cycle, so its test case goes with the rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:07 +01:00
soul
0c5a46f776 Tests: the cramped and tiny stations carry the Facility row the quarters now need before their dock and heater faults
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 06:10:50 +01:00
soul
90253307a6 Re-pin TwoAiDigestIsPinned on both hosts on the merged tree
linux-x64 1d1f9901 -> 012efbf8 (Yggdrasil), windows-x64 5afdd8f9 -> 7ccb5487 (Starfire).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:49:48 +01:00
soul
8a8b854a4e Catalog: the Crew Quarters design and its product (economy author CrewQuarters apply) and Zenith's second Facility row (station-kinds facilities), on master's catalog
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:44:25 +01:00
soul
67afbdc65f The quarters seat with the facilities through InstalledDesigns, one call site; the drain asks by Habitants.Size and pins the short-span count
EquipCrewQuarters and its filters are deleted (seating last protected nothing: the digest re-measure covers the stream).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:43:48 +01:00
soul
bf8f6c679c Tests: restate the drain crew test's comment
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:39 +01:00
soul
4d1b63a5ab Tests: the drain's crew line reads what the quarters asked of the hold, by the shipped off-screen step
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:38 +01:00
soul
bc6116d2ac Tests: the census counts the quarters' row, and the reach exemption is pinned to station plant
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:37 +01:00
soul
c5178d9b0c Tests follow the quarters' row: the census counts it, the reach exemption is station plant only, the drawn gate and an unset row are pinned, fixtures carry a row
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:36 +01:00
soul
5a4698b2cd The drain reads the crew: the station block prints what the quarters asked of the hold per sim hour and the spans their step went short in
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:35 +01:00
soul
b8079a9f1b Every station hull gets one more 2x2 Facility row for the Crew Quarters: the Arsenal Depot and the Seized Refinery through their manifests and the packager
Packages regenerated with package_hull.py (PACKAGE_OK, hull.scad byte-equal); the new rows sit on hull cells no interior gear draws from. Zenith's row and the quarters design follow in the catalog commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:34 +01:00
soul
c81549139d Crew Quarters is station plant: Facility gear on a Facility row of every hull, seated last; an unset table row owes nothing
StationKinds.InstalledDesigns is the one list of what a station installs, read by FacilityRoomFaults and the generator. The quarters are seated after every other draw so the lot they make moves none. The conjure is named in the code and the batch (follow-up conjuring-site-deletions).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:25 +01:00
soul
48af7c7e17 Re-pin AvailabilityGatesTheDraw: the item stream moves two draws for the station's Crew Quarters lot
Old items-stream reading 0.55950844, 0.87309176, 0.7170387, 0.8490041; new 0.7170387, 0.8490041, 0.68440413, 0.59800005. The generator's own four values are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:24 +01:00
soul
a98a517a8a ConsumableSupply rigs carry a Crew Quarters design, and the Outpost is a cell wider to seat it (cut habitation-gear)
The Tight Outpost's four interior cells were exactly its dock, heater, crate and capacitor; the quarters take a fifth.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:23 +01:00
soul
65a74084cd Tests follow the Crew Quarters: installed plant is outside the reach rule, Zenith also buys its crew's goods, and the wants test unequips on a copy (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:22 +01:00
soul
02651fa67b Every station carries Crew Quarters and buys what its crew eats (cut habitation-gear)
LoadoutGenerator seats the design after the heater, through the one choice of product for installed gear; StationWants.Drawn adds the table of every running habitation unit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:21 +01:00
soul
cf91042828 CrewQuarters batch: the Crew Quarters design (HabitationData, twenty occupants, Water, Oxygen and Algae) and its not-offered product (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:13 +01:00
soul
40c335a200 SourceSink: a habitation module's table is a sink, and a consumer good is judged as every good is (cut habitation-gear)
The consumer-good skip of the sink half is deleted; the test that pinned the skip becomes ModuleTableIsASink.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:12 +01:00
soul
b4d4e94333 HabitationData: a population is installed gear; Upkeep.Advance consumes by the module's table, Habitants lives on the unit (cut habitation-gear)
Union arm 54, EquippableItem key 15. AdvanceInstalled runs Facility and Habitation behaviours.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:11 +01:00
soul
ce2fb80e7c Rename RegionClock.AdvanceFacilities to AdvanceInstalled: what the span runs is installed plant, not only facilities (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:11 +01:00
soul
725d8235c3 Delete IPopulationAssignment, Entity.PopulationAssignments and AssignedPopulation: no implementer, no reader (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:10 +01:00
soul
9e3f16ecb9 TrojanSwarmTests: the re-pin comment names both causes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 04:30:41 +01:00
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