Run sensor visibility mechanics in daemon

This commit is contained in:
Meta Vens 2026-07-17 02:28:38 +01:00
commit 0724ee3cf8
14 changed files with 561 additions and 105 deletions

View file

@ -292,18 +292,24 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
equipped-item and active-consumable behavior instances through narrow
behavior-owned restore methods; construction/loadout blueprints do not own
behavior replay.
- Passive contact reach is daemon-owned and derived from enabled installed
`Sensor` behavior sensitivity. Arrays combine by root-sum-square, so larger
hulls can buy reach by devoting real equipment volume, mass, power, cooling,
and computation to sensing. Entity kind is not an input. Cargo is not
installed equipment. Hull-authored `Sensors` hardpoints own the physical
installation envelope: a smaller same-type array may occupy a larger mount,
while generated loadouts choose the largest compatible footprint before
applying faction, distance, and price weighting. Station-scale reach emerges
from station-scale hardpoints and gear rather than a station multiplier or
sensor-count branch. Contact refresh consumes this derived reach but does
not write `Visibility`; emitted signature remains owned by thermal,
propulsion, weapons, reflectors, explicit visibility sources, and pings.
- Sensor contact information is daemon-owned. Each operational installed
`Sensor` behavior executes the fossil information equation against target
visibility, distance, observer-relative angle, its authored sensitivity
curve, and fixed simulation time, then applies the authored information
decay. Contacts become visible only when accumulated information crosses the
provider-owned detection threshold. Entity kind is not an input. Cargo is
not installed equipment. Hull-authored `Sensors` hardpoints own only the
installation envelope; generated loadouts still choose compatible equipment
through the ordinary footprint, faction, distance, and price rules.
- Active ping is the same behavior's actor-scoped daemon command path. The last
operational installed sensor owns the request, energy gate, cooldown,
expanding radius, and persistent set of already-crossed target indices.
A target receives the fossil ping boost and named transient signature once
per expansion crossing, including after reconnect; clients cannot replay the
boost by resending or rehydrating a request. Manual and future autonomous
pings must enter this same typed intent. The removed actorless ping flag and
range-based perfect-information refresh are forbidden writers and no longer
decide contacts.
- The daemon observation query owns docked sensor sharing. A docked controlled
craft's effective contact picture merges its own contacts with the dock
parent's contacts, retains the primary sensor source on every projected row,
@ -1069,17 +1075,22 @@ projectile lead, hardpoint gating, progressive lock, and target destruction.
thrust/turn feedback still
require proof.
### Authoritative Reflected Visibility Contract
### Authoritative Visibility Contract
- Owner: the Aetheria daemon owns each entity's equipment and reflected stellar
signature. It evaluates operational `Visibility` and `Reflector` behaviors
after energy and thermal state settle and before contact refresh. Eve and
Unity only present the resulting visibility and named sources.
- Inputs: entity position, equipped reflector performance and thermal state,
daemon-owned sun mass, sun light-radius multiplier, the provider render
settings light-radius curve, and resolved orbit positions.
- Outputs: aggregate entity visibility plus inspectable, reconnectable
`equipment-visibility` and `reflector-visibility` source grids.
- Owner: the Aetheria daemon owns each entity's emitted, weapon, ping, and
reflected stellar signature. It decays named transient sources, evaluates
operational `Visibility` and `Reflector` behaviors after energy and thermal
state settle, applies authored weapon visibility when a shot commits, and
executes sensor pings before contact projection. Eve and Unity only present
the resulting visibility and named sources.
- Inputs: fixed simulation time, authored visibility-decay setting, entity
position, equipped visibility and reflector performance, thermal state,
committed weapon visibility (including the charged-weapon multiplier), ping
visibility, daemon-owned sun mass, sun light-radius multiplier, the provider
render settings light-radius curve, and resolved orbit positions.
- Outputs: aggregate entity visibility plus inspectable, reconnectable constant
equipment, reflector, weapon, and ping source grids. Transient source values
follow the fossil exponential decay and disappear below its cutoff.
- Shared-field invariant: daemon visibility and environment rendering resolve
body positions through `AetheriaRuntimeOrbitQueries`; gravity-center overrides
and nested authored orbits cannot silently put the visible sun and its
@ -1090,11 +1101,13 @@ projectile lead, hardpoint gating, progressive lock, and target destruction.
parameters are levers; they do not decide whether another entity detects the
reflector.
- Forbidden writers: contact refresh cannot overwrite emitted signature, and
clients cannot submit visibility, stellar light, or reflector results.
clients cannot submit visibility, transient decay, stellar light, ping
crossings, weapon flashes, or reflector results.
- Verification: daemon smoke proves evaluated constant equipment visibility, a
displaced authored sun orbit, the fossil pulse equation, evaluated reflector
cross-section, named source publication, and a second tick with no visibility
accumulation.
cross-section, named source publication without accumulation, actor-scoped
energy-gated ping with reconnect-stable crossed-target state, committed weapon
visibility, and exact exponential transient decay.
- Open parity: active consumable reflector effects and complete visibility-
source cardinality remain to be migrated.

View file

@ -44,7 +44,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
| Terminus loop | original game composition | daemon/Ymir/Eve | pilot surface | Aetheria.Unity | live minimum-loop proof: generic Unity discovers the provider, lowers the pilot world/assets, single-steps dock and undock while paused, buys daemon-priced station stock, single-steps Ymir salvage collection, resumes, moves, targets, fires, and presents authoritative receipts/shot outcome; the released full-session profile starts with no pickup, destroys a deterministic target, observes its canonical cargo drop, tractors it into a Ymir Begin contact, and proves exactly one `ymir-fact:` collection receipt plus cargo `0` to `1` | richer trade content, docking transitions, and sustained combat encounters |
| Starbridge | original/shared architecture intent | one daemon session | pilot + commander surfaces | Unity + Electron | commander task board and autonomous explore execution wired; Electron Eve lowering and split-target proof missing | commander orders plus four pilots and autonomous workers |
| Behavior engine | `ServerShared/Behaviors` composition | daemon | executable action/status projection | action bar and feedback | tick reconciles equipped catalog payloads into persistent behavior state; shared evaluated-stat query proven; execution families remain partial | every behavior family, ordering, resource transaction and modifier lifecycle |
| Sensors/visibility | installed sensor sensitivity, `Visibility`, `Reflector`, decaying signature sources, stellar light, and observer information thresholds | daemon | contacts, named visibility sources, and ping events | indicators/maps and provider environment lowering | passive reach derives from enabled installed Sensor behaviors with diminishing-return array composition regardless of entity kind; station-scale arrays are ordinary gear installed into larger hull-authored sensor hardpoints, with smaller same-type arrays remaining valid fallbacks; generation prefers the largest fitting footprint and contains no station/ship sensor-count branch. Operational `Visibility` equipment publishes evaluated constant signature; reflectors multiply evaluated cross-section by the fossil exponent-8 stellar `PowerPulse` after thermal settlement. Both named sources are reconnectable and do not accumulate. Gameplay light and environment projection share resolved authored orbit/body centers and provider-owned sun radius inputs. Contact refresh no longer overwrites emitted visibility; docked craft consume one daemon-derived union of craft and dock-parent contacts through both Eve rows and SoA bodies, with sensor-source provenance; the old station range survives only as obsolete snapshot compatibility | active consumable visibility/reflector effects, source cardinality, transient decay, ping, classification timelines, and canonical catalog station-array data |
| Sensors/visibility | installed sensor sensitivity and angular curve, `Visibility`, `Reflector`, decaying signature sources, stellar light, ping state, and observer information thresholds | daemon | accumulated contacts, named visibility sources, and ping events | indicators/maps and provider environment lowering | every operational installed Sensor executes the fossil visibility/sensitivity/angle/distance information equation and decay; visibility is thresholded by the provider setting. Actor-scoped ping owns energy, cooldown, expansion radius, reconnect-stable crossed-target state, one-time information boost, and transient signature. Operational `Visibility` equipment publishes evaluated constant signature; committed weapons publish authored signature including charged-shot multiplication; transient weapon and ping sources decay by the fossil exponential rule. Reflectors multiply evaluated cross-section by the exponent-8 stellar `PowerPulse` after thermal settlement. Gameplay light and environment projection share resolved authored orbit/body centers and provider-owned sun radius inputs. Contact refresh no longer invents perfect information or overwrites emitted visibility; docked craft consume one daemon-derived union of craft and dock-parent contacts through both Eve rows and SoA bodies, with sensor-source provenance | active consumable visibility/reflector effects, complete source cardinality, classification timelines, and canonical catalog station-array data |
| AI/tasks | corporation task scheduler plus agent state machines | daemon | commander task board, corporation survey ledger, and shared semantic controls | Eve commander/pilot clients | point exploration, loadout-driven attack, haul, mining/offload, resource surveying, physical station towing, persistent orbit patrol, route-aware assignment, and autonomous return home are wired through shared commands. Combat samples the fossil DPS/range policy, selects live weapon groups, leads projectiles, strafes relative to target attitude, and gates fire on catalog placement rotation. Cross-zone task and home routes now survive the full daemon-owned wormhole timeline instead of instant transfer; attack admission rejects missing/friendly targets and unavailable weapon groups before durable queueing | cancellation, reconnect, multi-client command transfer, and model-local barrel-direction metadata |
| Consumables | cargo-backed timed behavior containers | daemon | dynamic actions, active effects, and lifecycle facts | action bar/schematic | daemon atomically resolves typed metadata and concrete cargo, preserves consumed-instance quality, enforces authored stacking, evaluates effectiveness/quality, and executes ordered `EnergyDraw`, fossil-compatible no-op `Heat`, `ItemUsage`, and stateful `Cooldown` payloads after energy tick initialization; every effect and payload state has stable authored identity; cooldowns update before the ordered chain, require state strictly below zero, reset to one on success, and continue aging behind earlier failures; false and unsupported payloads stop later execution with a typed fact; timers retain the fossil's exact-zero final tick; Unity reconciles presentation by effect identity and cannot restore active behavior state by list index | catalog revision pinning, stat modifiers, remaining behavior families, and reconnect presentation proof |