From e221776ed530c6d648073e0b52dcb8a38ccf775c Mon Sep 17 00:00:00 2001 From: soul Date: Sat, 28 Nov 2026 23:08:31 +0100 Subject: [PATCH] Map: habitats and populations (Bloom classes on rocky bodies, habitat hulls, populations as installed gear, cut order) Co-Authored-By: Claude Opus 5.5 --- docs/aetheria-living-world-map.md | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/docs/aetheria-living-world-map.md b/docs/aetheria-living-world-map.md index 008957393..1d61e1b73 100644 --- a/docs/aetheria-living-world-map.md +++ b/docs/aetheria-living-world-map.md @@ -148,6 +148,83 @@ Probes: throwaway `ZzDeckProbe` and `ZzDeckCost` (partial `RunStartTests`, `Regi - Rails: 3-10 zones a seed have no rail candidate at all; `Take(stationCount)` (346) silently drops a station there unless it is an entrance order. No zone on the five seeds has a single childless root, so the order shortfall path (348-371) seats any card count on every zone probed. - Cost: `StationKinds.FieldableKindsOf` for the four demo factions, 1.84-1.95 ms per call (five rounds of 20, seed 1), so a deal recomputed per generated zone costs about 0.12 s a demo run against 3.7-6.1 s of `Materialize`. +## Habitats and populations: target shape (nibu-imagination, 2026-11-28, at 5224d3838) + +Rulings: `blooms-come-in-standard-size-classes` (supersedes the one-size half of `bloom-is-a-converted-asteroid`, which refined `habitats-are-hulls-with-largest-facility-rows` for Blooms), `habitats-are-hulls-with-largest-facility-rows` (planetary habitats), `mass-populations-live-in-blooms`, `planetary-habitats-are-populations-too`, `installed-gear-decides-what-a-station-buys`, `hardpoint-size-is-size-class`, `economy-is-never-faked`, `demo-hulls-staged`, `demo-chain-spans-the-region`. In flight beside it: `cut-region-chain-deck.r2` (the deal) and `cut-region-drain-harness.r2` (`balance --region`). + +**Shape.** A Bloom is a body: an asteroid converted in place, kept as the body it was (its orbit, rail, `Site` and mass), with a Bloom class. Its economy is an installation seated on that body: an `OrbitalEntity` whose hull is its class's standard layout. A class's layout is one `HullData` (`HullType.Station`, `Kind` `bloom`) shared by every Bloom of that class, and its Facility rows grow in count and size class with the class (ruling `hardpoint-size-is-size-class`). The body and the installation are two facets of one Bloom with one owner each: the body owns orbit, mass, radius and render; the installation owns gear, stock, faction and docking. They are joined by the body's orbit record, which is the key stations and haul orders already use. What differs between two Blooms of one class is the seed fit and the spire and docking design, each made for its class (question `bloom-spire-variant-home`). + +A planetary habitat stays a hull of its own with several largest-class Facility rows (ruling `habitats-are-hulls-with-largest-facility-rows`). The vault says only that Lucent holds Venus cloud cities and contested surface-processing sites (`Territories`, `Lucent Media`), nothing against a hull. It is seated on a direct low orbit of a planet or gas giant. + +Fit stays loose (`HardpointData.Takes`): a large row takes station plant too, and plant of a large class fits nowhere smaller. Heavy manufacturing lives on Blooms and planetary habitats because a recipe names one facility design (`RecipeData.Facility`, L-recipe): a recipe whose facility is large-class runs only where such rows exist. No size-class field is added; a row's class is its footprint. + +**A population is installed gear.** One behaviour, `HabitationData` (a capacity and a consumption table of commodity, rate per occupant and basic or lifestyle), goes on any design. A station's Crew Quarters (interior gear, one per station, as the heater is) and a Bloom's Housing District (a large Facility-row design) are designs of it. The occupants' state lives on the installed unit (`EquippableItem`, key 15) and is written only by the behaviour's step. + +### Which bodies can become a Bloom (probe `ZzBloomSizeProbe`) + +No belt rock is large enough. Belt rocks are mineable chunks of 3 to 6 world units (`PlanetSettings.AsteroidSize`, 3 + 3 s^2), against a station hull's reach of 13.4 to 14.4. They span 2x, not an order of magnitude. The bodies that span one are the rocky `PlanetData` bodies: radius 0.4 to 16.8 (`BodyRadius` = 3 m^0.25; mass 0.0003 to 992), median 10 to 11, p10 about 6.5, on every seed. Gas giants are 16.9 to 25.2. So the Bloom sources the region generates are its small rocky bodies, and which of them count as asteroids is question `bloom-source-bodies`. + +Bloom classes (first draft; the bands, row counts and footprints are knobs, ruling `economy-numbers-are-sim-tuned-knobs`), by the source body's radius: + +| Class | Source body radius | Rocky bodies per region, seeds 1, 2, 3, 69, 97 (zones holding one) | Facility rows | Spire row | +|---|---|---|---|---| +| Bloom I | 2 to 5 | 7-16, 2-4% (6-10 zones) | 3 x 4x4 | 4x4 | +| Bloom II | 5 to 8 | 42-106, 17-24% (26-39 zones) | 4 x 6x6 | 6x6 | +| Bloom III | 8 to 10 | 47-90, 18-21% (29-39 zones) | 6 x 6x6, 2 x 8x8 | 8x8 | + +Bodies of radius 10 or more (129-289 a region, 48-58 zones) stay planets under this draft: the hosts of planetary habitats. + +An 8x8 row would be the first footprint above the 6x6 Large Cargo Bay. Radius alone spans 5x over these bands; the cylinder, its rows and its populations span far more (row area 48 to 344 cells, and capacity grows faster than area by the size-class rule). + +World scale is stylized: a median planet (radius 11) is drawn smaller than Zenith (reach 14.4). A Bloom drawn at its body's radius would be smaller than a station. How a Bloom reads on screen is shown through follow-up `bloom-habitat-models`, not settled here. + +### Model table + +| Kind | What names it | Lifecycle | Who decides | +|---|---|---|---| +| Bloom body | The source `PlanetData` with its minted key and persisted `Site`, gaining a Bloom class (follow-up `bloom-sites`) | Marked once by generation; destroyed only with its zone | Generation writes it. The body keeps orbit, mass, well, radius and render | +| Bloom class layout | One `HullData` per class, `HullType.Station`, `Kind` `bloom`, with the class's Facility rows and its spire row | Authored by the hull packager; every Bloom of the class names it | The package. Forbidden: Facility rows varied within a class | +| Bloom installation | The `OrbitalEntity` seated on the Bloom body's orbit, at the body (no Lagrange offset) | Seated with its body by generation and seeded once; gear changes later only by install orders (target r3) | The economy. Its identity is its orbit, as every station's is | +| Spire and docking design | Recommended: a docking design (`DockingBayData` gear) made for one class's spire row, in shapes, sizes and luxury levels (question `bloom-spire-variant-home`) | Chosen by generation's fit, later by install orders | The installed gear | +| Planetary habitat | Its own `HullData`, `HullType.Station`, `Kind` `planetary-habitat`, with several 6x6 Facility rows. The installation is the `OrbitalEntity` the deal seats on a direct low orbit of its rail body | As a station | As a station | +| Habitat kind | `station-kind:bloom`, `station-kind:planetary-habitat`. `Facilities` is the seed fit, filled into the rows the class has; `Ring` (the deck's) is placement | Authored by an economy batch | The catalog. What a habitat is for is its installed gear, not its kind | +| Facility row size class | The row's `Shape` footprint: 2x2 station plant, 4x4, 6x6, 8x8 | Authored per hull | The hull. Forbidden: a stored size-class field | +| Habitation module design | A `GearData` with `HabitationData` { Capacity, Table }: Crew Quarters (interior, Tool), Housing Districts (one per row class) | Authored by an economy batch | The catalog. The module design carries the table (target r3); there is no needs-table or population-kind record | +| Population | The installed unit, holding `Habitants` { Size, Owed[] } | Null before its first step, which reads as full capacity with nothing owed. Each step accrues Size x rate x dt per row, takes the whole units held, and drops unmet whole units as a shortfall. Size stays at capacity until follow-up population-dynamics | `Habitation.Execute` alone. Forbidden: any other writer of Size or Owed | +| Shortfall | Derived per step: the rows that went unmet | Never stored. Reported as records once the seam runs | Derived | +| Workforce | A population's occupants of a kind (human first) | Gates facility throughput in follow-up workforce-gates-facilities; zone-local (L-zone-crew) | Derived from populations. Forbidden: a staffing number seeded on a facility (idea `facility-production-map.rejected-interim-crew-gate`) | + +The player docks at the installation's docking bay, approached at the spire on the cylinder's axis (lore `Bloom Habitat Anatomy`: docking at the axis hubs). + +### Authority map (cut habitation-gear) + +- Owner: `Habitation.Execute` owns what occupants consume and the state they keep; `Upkeep.Advance` is its pure step. +- Inputs: the module design (`HabitationData`), the unit's `Habitants`, elapsed sim time, and the host's hold (`IProductionHold`). +- Outputs: the new `Habitants`, the step's shortfall, and the units taken from the hold. +- Derived: what a station buys gains the goods its installed habitation tables name (`StationWants`); a module table is a sink (L-source-sink). +- Forbidden writers: `IPopulationAssignment`, `Entity.PopulationAssignments` and `Entity.AssignedPopulation` (dead, deleted first); any station-level consumption rate; a needs-table or population-kind record. +- Shared paths: on screen `EquippedItem.Update` calls `Execute`. Off screen `RegionClock.AdvanceInstalled` (renamed from `AdvanceFacilities`) calls it with the missed span. `balance --drain` and `balance --region` reach it through `Zone.AdvanceTo`. +- Deletion line: the dead population interface and its two Entity members go before `HabitationData` is added. + +### Who gets what in the demo region (follow-ups bloom-sites, habitat-hulls) + +Each territory-holding faction gets one habitat, dealt by the deck at the top of its ring gradient (a knob). Aeronautics Unlimited gets a Bloom II or III (its ramp; lore `Bloom`: AU's ramp offices control the berths) with Housing Districts and the region's first Slipway. Zhestokost gets a state Bloom near its home with Housing and a Slipway. Lucent Media gets a planetary habitat on a gas giant (lore `Territories`: Venus cloud cities) with Housing and an urban district. Pirates get a seized Bloom I (lore `Megas`: inhabited cavities in manufactured habitats) with Housing and a plain spire. Stations keep 2x2 plant. + +Lore drift: the vault's `Bloom` note says no universal Bloom plan emerged, which ruling `blooms-come-in-standard-size-classes` replaces with standard classes (follow-up `bloom-lore-standard-classes`, for the lore owner). + +### Body facts (probes `ZzHabitatProbe`, `ZzBigGearProbe`, `ZzBloomSizeProbe`, throwaway, in `F:\aeth-wt\planets-blooms-map`, CultLib 7225835d, CultMath f1edfa45, Debug, Starfire, shipped catalog; never committed) + +- Station hulls: Zenith 12x12 (128 cells, trade-hub, reach 14.4) has one 2x2 Facility row; Arsenal Depot 14x12 (116, depot, 14.1) and the Seized Refinery 12x12 (103, processing, 13.4) have two. Each has one 4x4 Reactor row. The largest ship hull is 19x30 (376 cells). +- Facility gear: the six recipe facilities and the Silo are all 2x2. Gear footprints of 3x3 or more: six 4x4 station reactors, the Medium Docking Bay and the Industrial Thermostatic Heater (4x4 Tool), the Large Cargo Bay (6x6 Tool), two 3x3 reactors, a 3x3 beam and a 3x3 bay. +- Station kinds with no facilities: administrative, black-market, depot, habitat-support, power, research, residential, salvage, shipyard, urban, waystation. The description of `residential` already reads "A bloom". +- Population code: `IPopulationAssignment` (Behaviors.cs 127-130) has no implementer; `Entity.PopulationAssignments` and `AssignedPopulation` have no reader outside Entity.cs. +- `EquippableItem` keys 7, 8, 12 and 14 are taken (14 is `Run`; 13 is `CompoundCommodity`'s), so `Habitants` takes 15. +- Rocks: 5218-10581 per region in 66-133 belts (19-598 a belt, median 52-60); every belt's largest rock is 4.4-6.0 units. +- Bodies over seeds 1, 2, 3, 69 and 97: 227-490 rocky planets and 115-194 gas giants per region; 1-5 zones have no rocky body and 2-18 no gas giant. Each faction's nearest-zone territory holds rocky bodies and gas giants on every seed (Lucent 42-110 and 24-39). +- `Water`, `Oxygen` and `Algae` are catalog commodities with recipes (volatiles, processing, agriculture; `MunitionsFeed`), so a basic table closes inside the region. + +Prior art (research `planets-blooms-map.prior-art`): X4 habitat modules on any station; Victoria 3 pops in buildings; Starsector ship production as a colony's heavy industry (Orbital Works upgrades Heavy Industry, and its demand scales with colony size). + ## Stale and missing - `docs/aetheria-living-world-target.md` (the target r2 DocRef, commit d61948f6) lives only on `origin/eureka/aetheria-living-world-target`; master has no copy. The target r2 statement of L-recipe ("inputs are commodities except in gear, hull and consumer-good recipes, which take roles") and L-roles are already contradicted by live code: intermediate commodities take roles through `RecipeData.RoleInputs` (ruling `ores-fill-metal-roles`). The next target revision should restate them.