Make installed actuators own daemon flight

This commit is contained in:
Meta Vens 2026-07-16 15:47:38 +01:00
commit 5a7e52c9eb
19 changed files with 1079 additions and 84 deletions

View file

@ -930,6 +930,58 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
- Cut line: the unconditional `planar.top-down-follow.v1` projection no longer
collapses the fossil dock and flight cameras into one false top-down view.
### Authoritative Flight Actuator Contract
- Owner: Aetheria daemon owns persistent local helm axes, desired look
direction, installed-actuator evaluation, energy/heat/visibility consequences,
hull drag, and the velocity/direction submitted to physics. Ymir owns body
integration and contacts. Eve clients own input sampling and interpolation,
never accepted motion.
- Inputs: accepted semantic movement/look commands; current hull direction and
velocity; catalog hull/item shapes and masses; equipment placement and
rotation; online/durability/thermal state; behavior payload performance stats;
capacitor/reactor availability; fixed delta.
- Outputs: actual entity direction and velocity, persistent helm/look state,
typed Thruster/AetherDrive behavior state, equipment heat, plume visibility,
and the Ymir-integrated body pose.
- Ordinary-flight invariant: standard ships fly through directional thrusters.
The daemon clears and reallocates their axes each tick using the fossil
forward/reverse/left/right rotation groups, symmetric lateral-torque
compensation, placement-derived torque, and desired-look turn demand. A
thruster that cannot fund its authored energy demand produces no force, heat,
or plume visibility.
- Variant invariant: AetherDrive is not baseline propulsion. The canonical
catalog contains the single 250,000-credit `Traction` drive with hardpoint
type `AetherDrive`, and only the 7,500,000-credit modified `LonginusX` hull
exposes that hardpoint. Its rotor RPM, coupling, torque curve, energy, heat,
and thrust run only when that rare equipment is actually installed. Ordinary
flight fixtures explicitly prove that no AetherDrive state is manufactured.
- Derived state: Eve actuator rows, RPM gauges, plume/effect intensity, sound
parameters, and interpolated transforms are presentation projections. They
cannot write velocity, direction, heat, energy, or equipment state back.
- Forbidden writers: faction speed constants, command reducers, task planners,
Eve lowerers, and Unity transforms cannot assign accepted ship velocity or
heading. `SetLookDirection` now writes desired look only; physical actuators
turn the hull. World-space autonomous travel must be translated into the same
local strafe/forward helm axes used by a pilot.
- Shared paths: manual movement, autonomous exploration/haul/patrol/attack,
cross-zone approach, and home docking all enter the same command reducer,
actuator step, and Ymir world step. AetherDrive and Thruster share mass,
thermal, energy, drag, and physics owners without pretending to be the same
equipment class.
- Cut line: `ApplyMovementIntent` and faction `PawnSpeed`/`RaiderSpeed` motion
are gone. No compatibility fallback may restore direct velocity assignment.
- Verification: daemon smoke proves local-axis dominance through ordinary
thrusters, placement-derived torque/thrust state, funded heat and plume,
unfunded no-motion/no-plume behavior, progressive hardware turning before
weapon lock, autonomous navigation and cross-zone travel through Ymir, and
isolated rare AetherDrive spool/force on a modified-hull fixture. Canonical
catalog assertions lock the `Traction`/`LonginusX` rarity boundary.
- Open parity: hardpoint transform directions, exact per-equipment behavior
execution ordering, float32/CultMath parity against the fossil, production
generation-frequency evidence, and generic native thrust/turn feedback still
require proof.
### Flight Post-Processing Contract
- Owner: Aetheria selects the logical flight profile and owns its native asset

View file

@ -18,7 +18,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
| Run/session state | `ServerShared`, `ActionGameManager` | Aetheria daemon/CultCache | provider/session advertisement | all clients | owner-exists; wired; projected; not proven | restart and multi-client convergence |
| Entity identity/loadout | `ServerShared/Entity*` | daemon | typed entity and inventory surfaces | EveUnity/Electron | owner-exists; wired; projected; not proven | loadout round trip and reconnect |
| Loadout generation | map/faction availability, item cost, hull hardpoints and role constraints | daemon using canonical galaxy, faction knowledge/economy and typed catalog | generated loadout plus provenance/availability facts | Eve inspection and refit surfaces | daemon now uses the fossil candidate filter and seeded weighted selection: manufacturer must be present and allied, ally weight decays by home-zone graph distance, price uses the authored exponent, and hardpoints require matching semantic type, rotated footprint containment, and controller role; the exact placement rotation used by hardpoint/free-space/cargo fitting now survives generated state, durable loadouts, runtime commits, viewport snapshots, cloning, and reconnect instead of disappearing after occupancy reservation; generation fills the largest compatible footprint before applying economic weighting, so small gear remains a valid large-mount fallback without displacing available station-scale gear; cargo/capacitor plus station docking equipment must fit remaining hull space; stations draw up to sixteen faction-available equipment rows and pack largest-first into the selected cargo bay's actual interior shape; ordinary ships begin without generated cargo, and the deleted scenario-string path can no longer silently invent non-catalog item identities; station cargo slots and receipts preserve the same canonical keys; zone generation derives one continuing deterministic RNG stream per availability corporation, so cross-faction calls cannot perturb another faction; every generated entity persists an immutable source/selection receipt that reaches Eve as `loadout.item` semantics; Terminus explicitly maps combat-role factions to catalog availability corporations | multi-zone generated-world parity and exact root-to-zone stream sequencing against the fossil |
| Flight intent | `Ship`, `Thruster`, `AetherDrive`, input paths | daemon intent + Ymir physics | analog movement/look/tractor | EveUnity input driver | movement intents feed Ymir-owned body integration; authored thrust allocation, torque, energy and heat remain simplified | prove original drive/equipment behavior ordering and runtime interpolation |
| Flight intent | `Ship`, `Thruster`, `AetherDrive`, input paths | daemon actuator simulation + Ymir integration | analog local helm/look/tractor plus actuator state | generic Eve input and scene lowerers | direct faction-speed velocity ownership is deleted; daemon persists local strafe/forward helm and desired look, allocates ordinary directional thruster banks by authored rotation, derives torque from hull/item placement, compensates lateral torque, gates execution through the shared energy ledger, deposits equipment-cell heat, publishes plume visibility and actuator state, applies hull drag, and gives resulting velocity/direction to Ymir. Autonomous tasks translate world travel into the same local helm axes and issue look commands instead of mutating heading. AetherDrive rotor/coupling simulation is additive and explicitly non-default: the canonical catalog has one expensive `Traction` drive and one compatible rare `LonginusX` modified hull, while ordinary smoke flight contains no drive behavior | hardpoint-transform direction parity, exact behavior execution ordering, CultMath/float32 parity harness, production loadout-frequency witness, generic thrust/turn feedback lowering, and live handling screenshots |
| Collision | Unity physics and entity handlers | Ymir | collision/result facts | visual interpolation only | Ymir.Core world stepping wired for entity bodies, radial fields and contacts; missing-owner negative proof passes | publish authoritative collision events and prove Unity cannot write transforms back |
| Targeting/contacts | sensors + `ActionGameManager` | daemon | contact/target semantics | target HUD and indicators | simplified owner wired/projected; every authored instant lock behavior now evaluates on every daemon step independently of trigger/burst selection, so an idle weapon cannot retain a stale completed lock; acquisition and decay derive from facing, elapsed time, and observer-local contact confidence instead of granting an immediate perfect lock; target changes and invalid targets clear the daemon state; `weapon.lock.started`, `weapon.lock.acquired`, and `weapon.lock.lost` publish stable one-time chronology with target, weapon identity, reason, and prior/current progress through the generic feedback stream; the provider cockpit and generic combat reticle consume the same continuous selected-target lock without client smoothing or reconstruction | angular loss fixture, visibility/nearest/explicit targeting cases, provider audio/effect roles, and authored reticle parity |
| Projectile flight | weapon/projectile classes | Eve presentation for ordinary tracers; Ymir for persistent physical payloads | receipt trajectory/effect facts or persistent payload state | native projectile visual | ordinary instant, charged, and constant execution creates no projectile body; each weapon state owns a stable shot sequence and receipts carry origin, endpoint, nominal duration, and effect identity for Eve presentation; `SpawnProjectile` and its alternate writer are deleted; Ymir projectile contacts are feedback-only for explicitly persisted payload rows and cannot write damage; Ymir.Core remains embedded for world integration, radial fields, circle contacts, pickups, and genuinely persistent/interceptable payloads | split/rename the remaining physical-payload interface and remove ordinary projectile terminology from runtime contracts |