diff --git a/docs/aetheria-fauna-map.md b/docs/aetheria-fauna-map.md index 5276db97e..30afcb66c 100644 --- a/docs/aetheria-fauna-map.md +++ b/docs/aetheria-fauna-map.md @@ -494,3 +494,118 @@ TN1-TN6). What this map's r4 decisions name and where it went: 6. `fauna-trophic-presenter`: the Skein and glim drawn in the nebula from the same composition. Waits on 3 and 5. 7. `fauna-minnow-schools`, then predators by stencil and ambushers on slack (r3 lines 6-8), re-mapped as species of the DAG per `fauna-bestiary-open` and `OW`. + +## r5: the leviathan's ecosystem, harvested visibly + +Ruling `leviathan-ecosystem-harvested-visibly` (operator, 2026-12-01). Imagination pass `leviathan-eco-map`, base +`7c228fb2c`. Creature and commodity names below are placeholders for the lore pass (`fauna-lore-pass`); nothing here is +lore. + +### Body facts (r5) + +| # | Question | Result | +|---|---|---| +| B43 | What fauna exists in the sim at base? | Only the flow: `FlowField.cs` (78 lines), `Zone.Flow`. No `Habitat`, no fauna field, no anchor law. The leviathan is presentation only (`Fauna Display/SpringRig.cs`, `SpringSolver.cs`), driven by its verify until whales are sim (follow-up `whale-rig-from-fauna-presenter`). The CultMath pin is `cultmath-unity-v0.5.1` (`Packages/manifest.json:57`): the trophic tape is not consumed yet. | +| B44 | Is a field member generic over field kinds? | No. `Zone.ChunkExists`, `ChunkRadius`, `Wear` and `ChunkPose` (`Zone.cs:702-781`) cast `Planets[field]` to `AsteroidBeltData` and read `Settings.AsteroidHitpoints` and `AsteroidRespawnTime` by rock size. `ChunkId` (`Zone.cs:1017`) is `(Field key, Index)` and carries no kind. Fauna fields must generalize these; that is r4 line 4 (`fauna-krill-swarms`), and every niche below rides on it. | +| B45 | What is the one yield path? | `FireControl.Extract` (`FireControl.cs:1836`): absorbed damage over hitpoints times yield units, one Bernoulli, units drawn by the field kind's `FieldKinds.Yield` in the zone's province, into the shooter's bays or a `landing` (a rig's output bays); overflow floats. It reads `zone.AsteroidBelts[chunk.Field]` and `AsteroidYield` by size: belt-only. The ore rig (`Facility.Work`, `Behaviors/Facility.cs:90-151`) wears a hashed whole rock on screen through `Zone.Wear` and pays through `Extract`; off screen `Deposits.Of` (`Deposits.cs`) is a non-depleting stock the deposit pick reads (ruling `auto-mining-is-off-screen-only`). | +| B46 | Does anything misread a fauna kind's yields? | `FieldKinds.IsOre` (`ZoneData.cs`, end of `FieldKinds`) calls any good some `FieldKindData` yields "ore". Consumers: `Facility.cs:69`, `StationServices.cs:201`, `Scenarios/DemoTerminus.cs:88`. A fauna kind authored as a `FieldKindData` with yields would make its goods ore. | +| B47 | How does a haul leg work? | `HaulOrderData` (`StationWants.cs:133`): `From` and `To` are `OrbitData` refs, `Goods` a list. `RegionLegs` writes orders once at generation, one conjured hauler per order (`RegionLegs.cs:8-17`). `HaulRun` derives the waypoint from the hold every update, `Call` docks, loads and delivers, `Fly` moves a hauler off screen per `RegionClock.Span` (60 s); `HaulSeen` is the hauler's dated knowledge (`hauler-remembers-what-it-saw`). Nothing loads except at a station door. | +| B48 | Who mines on screen besides the player? | No ship. Station rigs wear rocks remotely (research `extraction-map.on-screen-miners`). | +| B49 | Who would buy fauna goods? | `StationWants.Of`: what installed recipe facilities draw, what habitation tables name (crews eat Water, Oxygen, Algae: `tools/AetherDb/Economy/CrewQuarters.cs:11`), silo goods of orders from the station. One facility design per station kind (`Economy/Facilities.cs:8-13`). The agriculture kind's old description named Animal Products, which no recipe makes (`Economy/StationKindDescriptions.cs:1-20`): an empty slot fauna goods fill. | + +### Host-relative trophic nodes: the authority map + +- **Owner of the host's pose: `Zone`, through the host field's class law** (the anchor law of r3 line 7, + `fauna-motion-model-ruled`). `Zone.HostFrame(member, t)` returns a host member's position, heading and speed at t, + a pure function of the zone seed, the host kind's settings, the parent body's rail (`OrbitPositionAt`) and t, plus + sparse reaction records once `fauna-disturbance` lands. It is the law `ChunkPose` evaluates for a whale member; a host + frame is that pose with its derivative, never a second law. +- **Inputs:** zone seed, the host kind's settings, the parent rail at t, reaction records. +- **Outputs:** the host frame at any t: the sim reads it at zone time, presenters at the drawn time. +- **Derived state:** an entourage member's pose (the host frame at t composed with its class law in host + coordinates); its hosting (the species tape at the candidate's host-local point, with host facts: speed, heading, + the host's presence); the provider's region (the host's bound plus the species' reach); the whale fall's site (the + host frame at the death time). None is stored. +- **Forbidden writers:** `SpringRig`, `SpringSolver` and every presenter (`tendrils-presentation-only`); any `Entity` + physics or stepped integrator; `RegionClock` (it advances time, never a pose); any saved or cross-tick cached frame. +- **Shared paths:** sim queries, the targeting provider, sensing (`ChunkInfo`), harvest wear, off-screen work legs and + presenters all read the frame through `ChunkPose`; a reload recomputes it from t. +- **Deletion line:** the verify-driven pose that drives `SpringRig` today stops deciding the drawn whale when the + fauna presenter calls `SpringRig.Present` with `ChunkPose` (follow-up `whale-rig-from-fauna-presenter`). + +The tape gains one input class, host-local coordinates: a species graph is evaluated at `inverse(hostFrame) * p` with +the host's facts as uniforms, so a host-relative species is an ordinary tape document, pointwise and acyclic (the host +layer sits below its entourage). Candidates are a lattice in host coordinates, one block per host member, and member +identity is `ChunkId(field, host * cells + cell)`, so a cleaner keeps its id while the whale swims. A world-frame +lattice under a moving kernel would host members ahead of the whale and drop them behind it, so no member would stay +with its host (idea `leviathan-eco-map.rejected-world-frame-kernel`). Presence multiplies by the host's presence, so an +entourage fades with its host and never pops (`fauna-placement-no-pop`). + +### The entourage, by niche + +| Niche (placeholder) | Sim or presentation | Law | Harvest | Cost shape | +|---|---|---|---|---| +| Epibionts ("hull-lichen") | Presentation: on the skin, inside the whale's return, never separately detectable | Rig-attached decals and particles from the host frame | Their materiel is part of the fall's carcass yield (scrapings), never a separate member | Presenter only | +| Pilot swarm ("bow-riders") | Presentation (ambient, `fauna-in-sim-ruled`): inside the whale's return, decides nothing | Bow-wave flock in host coordinates at the drawn time | None | Presenter only | +| Feeding wake, trailing scavengers ("wake-gleaners") | Sim: a krill-class field in the host's wake cone, perceivable in aggregate (`fauna-distance-ruled`) | Each member advects for one cycle from a seed point behind the host: the krill law in host coordinates | Trawl: bulk, low value | Per query: the wake block of the asked host | +| Docking cleaners ("cleaner-wrasse") | Sim: ship-scale members on the flanks, perceivable, harvestable | Mill on the flanks in host coordinates; later they latch on a ship that comes close, their own attack mode (`fauna-interaction-ruled`) | Nets: food bulk | Per query: one host block | +| Shadowing predators ("shadow-sharks") | Sim: perceivable, bite (`fauna-interaction-ruled`) | Shark law in host coordinates on a ring behind and below; density reads cleaners and wake (donor control) | Dangerous: hide and teeth | Per query: one host block, at most one stencil level | +| Whale fall ("fall") | Sim: a long-lived site with a carcass field and a succession of host-relative species | Site pose is the host frame at death, riding the parent's rail; carcass chunks are rock-like; scavenger species weighted by fall age (mobile scavengers, enrichment opportunists, then a bone-reef stage: Smith and Baco 2003, Oceanogr. Mar. Biol. Annu. Rev. 41) | The richest ground: bone, tallow, ambergris-analog, scrapings | Per query: the fall's carcass and stage blocks | + +`Zone.Update` touches none of these (`fauna-cost-per-swarm`). Each cut measures its per-query cost against a probe +replica with paired interleaved medians; no cost is estimated here. + +### Harvest materiel (placeholders for the lore pass) + +Every good is a simple commodity (`simple-commodities-fungible`, `no-grade-on-simple-goods`), yielded through the +fauna kind's yields and `FireControl.Extract`, never a fauna loot rule (design truth 12). Each fills an existing role +where one fits, so a fauna good is a second source of a chain input (`salvage-by-input-role`); one luxury good gets its +own consumer good to sink into, as cut diamond does. Buyers are stations whose installed facilities draw the goods +(`installed-gear-decides-what-a-station-buys`); the agriculture kind's empty Animal Products slot (B49) is the first +home. Nothing strange is grown in whale bone (`strange-matter-not-biogenic`). + +| Good (placeholder) | From | Toward | +|---|---|---| +| Wake meal | Wake-gleaners | Agriculture feedstock (algae vats, fertilizer role) | +| Cleaner flesh | Cleaners | Agriculture: animal products, then population food | +| Predator hide, predator teeth | Shadow-sharks | Armour composite role; tooling abrasive role | +| Leviathan bone | Fall carcass | Structural biomineral role (ceramics) | +| Leviathan tallow | Fall carcass | Chemistry feedstock role (lubricant, fuel) | +| Ambergris-analog | Fall carcass, rare | Luxury consumer good | +| Lichen scrapings | Fall carcass (epibionts) | Pharmaceutical precursor | + +Depletion and respawn: a member breaks through `Zone.Wear` and respawns after its kind's respawn time; hitpoints, +yield and respawn are curves on the fauna kind's record, not `PlanetSettings.Asteroid*`. A herd thins visibly and +refills member by member; nothing steps a population (target, "Not in scope"). Whether off-screen harvest wears the +same members is question `fauna-harvest-shared-depletion`. + +### Visible harvest operations: work legs + +One leg machinery, not a parallel system. A haul order's `From` becomes a **ground**: a station orbit (today's legs) +or a field ground `(zone, fauna kind)`. A **work leg** is an order whose From is a field: its ship loads by working the +field with its own harvest gear instead of docking. `RegionLegs` stays the one writer of legs: for each good a +station's gear draws that no station of its faction makes but a field in a zone of its faction's territory yields, it +writes a work order and admits one harvester (hull conjured as haulers' are, flagged for `conjuring-site-deletions`). +`HaulRun.Leg` steers a harvester with room to the nearest hosted member of its ground; on screen its pilot's Work verb +fires harvest gear, which wears members through `Zone.Wear` and pays through `Extract` into its bays; off screen +`Fly`'s load step works the field for the span, by a stable hash over the members hosted at the zone's time, through +the same two calls. Delivery, transit depots and `HaulSeen` are unchanged: the catch moves by haul. The player +harvests with the same gear on screen; player-owned harvester fleets wait on offices. + +### Cut sequence (r5, one line each; each is mapped when it is about to run; after r4 line 4 and r3 line 7) + +1. `leviathan-host-frame`: the whale field and its anchor law on the parent rail, `HostFrame` through `ChunkPose`; the + fauna presenter drives `SpringRig` (closes `whale-rig-from-fauna-presenter`). Deletes first: the verify-driven pose. +2. `tape-host-local-input` (CultLib, `cultmath-tapes`): host-local coordinates and host uniforms as a tape input, C# + and HLSL, parity pinned. +3. `host-relative-species`: `Habitat` evaluates a host-relative species per host block; ids, presence times host + presence, provider bounds; docking cleaners first. Waits on 1 and 2. +4. `entourage-wake-and-predators`: wake-gleaners and shadow-sharks; the bite through `fauna-attacks-strike`. +5. `entourage-presentation`: epibionts and the bow swarm from the host frame at the drawn time. Runs beside 3. +6. `fauna-goods-batch` (AetherDb, an operator-reviewed batch): fauna kinds' yields and wear curves, goods, role + recipes, the luxury consumer good. Deletes first: `IsOre` reading fauna kinds (B46). +7. `fauna-harvest-gear`: nets and trawls as gear with makers; `Extract` and `Wear` read the member's field kind + (deletes the belt-only casts, B44, B45). Replaces r3 line 13. +8. `whale-fall-site`: the fall from the host's death; carcass field; succession species. Waits on 3 and two questions. +9. `work-legs`: the ground on haul orders, `RegionLegs` work orders, the Work verb, `Fly`'s work step. Waits on 7 and + question `fauna-harvest-shared-depletion`.