diff --git a/Aetheria.State.Daemon.Smoke/Program.cs b/Aetheria.State.Daemon.Smoke/Program.cs index 793674a9b..b05263970 100644 --- a/Aetheria.State.Daemon.Smoke/Program.cs +++ b/Aetheria.State.Daemon.Smoke/Program.cs @@ -5192,57 +5192,130 @@ internal sealed class AetheriaDaemonYmirSmokeChecks private static void AgentTraversesGalaxyRouteBeforeExecutingTask() { - var agent = Entity(0, 0, "workers"); - agent.EntityId = "worker.cross-zone.stable"; - agent.AgentTaskCapabilities = [AetheriaRuntimeAgentTaskTypes.Explore]; - var catalog = EquipThrusterBank([agent]); - var task = AgentTask("cross-zone", 10); - task.ZoneIndex = 2; - task.TargetPositionX = 0; - var run = new AetheriaRuntimeRunCheckpointCommit + var root = Path.Combine(Path.GetTempPath(), "aetheria-agent-route-restart-" + Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(root); + var statePath = Path.Combine(root, "world.cc"); + try { - RunId = "agent-route-travel-smoke", - Zones = - [ - new AetheriaRuntimeZoneSnapshotCommit { ZoneIndex = 0, PositionX = 0, GravityTerrainRadius = 100, AdjacentZoneIndices = [1], Entities = [agent] }, - new AetheriaRuntimeZoneSnapshotCommit { ZoneIndex = 1, PositionX = 100, GravityTerrainRadius = 100, AdjacentZoneIndices = [0, 2], Entities = Array.Empty() }, - new AetheriaRuntimeZoneSnapshotCommit { ZoneIndex = 2, PositionX = 200, GravityTerrainRadius = 100, AdjacentZoneIndices = [1], Entities = Array.Empty() } - ], - AgentTasks = [task] - }; - var appliedTravelCommands = 0; - var appliedApproachCommands = 0; - var physics = NewPhysics(); - for (var frame = 0; frame < 400; frame++) - { - var tick = AetheriaRuntimeDaemonTickRunner.Tick( - Path.Combine(Path.GetTempPath(), "aetheria-agent-route-travel-smoke.cc"), - run, - new AetheriaRuntimeDaemonTickOptions - { - WorldPhysics = physics, - Catalog = catalog, - FrameId = frame, - FixedDeltaSeconds = 0.25, - SimulationTimeSeconds = frame * 0.25, - BuildPublications = false - }); - appliedTravelCommands += tick.OperationResult.AppliedCommandIds.Count(id => id.EndsWith(":travel", StringComparison.Ordinal)); - appliedApproachCommands += tick.OperationResult.AppliedCommandIds.Count(id => id.EndsWith(":travel-approach", StringComparison.Ordinal)); - if (string.Equals(task.Status, AetheriaRuntimeAgentTaskStatuses.Completed, StringComparison.Ordinal)) - break; - } + var agent = Entity(0, 0, "workers"); + agent.EntityId = "worker.cross-zone.stable"; + agent.AgentTaskCapabilities = [AetheriaRuntimeAgentTaskTypes.Explore]; + var catalog = EquipThrusterBank([agent]); + var task = AgentTask("cross-zone", 10); + task.ZoneIndex = 2; + task.TargetPositionX = 0; + var run = new AetheriaRuntimeRunCheckpointCommit + { + RunId = "agent-route-travel-smoke", + Zones = + [ + new AetheriaRuntimeZoneSnapshotCommit { ZoneIndex = 0, PositionX = 0, GravityTerrainRadius = 100, AdjacentZoneIndices = [1], Entities = [agent] }, + new AetheriaRuntimeZoneSnapshotCommit { ZoneIndex = 1, PositionX = 100, GravityTerrainRadius = 100, AdjacentZoneIndices = [0, 2], Entities = Array.Empty() }, + new AetheriaRuntimeZoneSnapshotCommit { ZoneIndex = 2, PositionX = 200, GravityTerrainRadius = 100, AdjacentZoneIndices = [1], Entities = Array.Empty() } + ], + AgentTasks = [task] + }; + var appliedTravelCommands = 0; + var appliedApproachCommands = 0; + var restarted = false; + var physics = NewPhysics(); + for (var frameId = 0; frameId < 400; frameId++) + { + var tick = AetheriaRuntimeDaemonTickRunner.Tick( + statePath, + run, + new AetheriaRuntimeDaemonTickOptions + { + WorldPhysics = physics, + Catalog = catalog, + FrameId = frameId, + FixedDeltaSeconds = 0.25, + SimulationTimeSeconds = frameId * 0.25, + BuildPublications = false + }); + appliedTravelCommands += tick.OperationResult.AppliedCommandIds.Count(id => id.EndsWith(":travel", StringComparison.Ordinal)); + appliedApproachCommands += tick.OperationResult.AppliedCommandIds.Count(id => id.EndsWith(":travel-approach", StringComparison.Ordinal)); + agent = run.Zones.SelectMany(zone => zone.Entities) + .Single(entity => entity.EntityId == "worker.cross-zone.stable"); - Require(appliedApproachCommands > 0, - "agent must approach wormholes through shared movement commands and Ymir before transition"); - RequireEqual(2, appliedTravelCommands, - "agent must traverse each galaxy edge through the shared wormhole command boundary"); - Require(run.Zones.Single(zone => zone.ZoneIndex == 2).Entities.Count == 1, - "assigned agent must arrive in the task zone without a parallel teleport owner"); - RequireEqual("worker.cross-zone.stable", run.Zones.Single(zone => zone.ZoneIndex == 2).Entities.Single().EntityId, - "zone transfer must preserve stable entity identity while projection indices change"); - RequireEqual(AetheriaRuntimeAgentTaskStatuses.Completed, task.Status, - "agent must execute the task only after arriving in its destination zone"); + if (!restarted && string.Equals(agent.WormholeTransition?.Phase, "entering", StringComparison.Ordinal)) + { + var eventCountsBefore = ( + Started: run.GameEvents.Count(value => value.Kind == "wormhole.enter.started"), + Transferred: run.GameEvents.Count(value => value.Kind == "wormhole.transferred"), + Completed: run.GameEvents.Count(value => value.Kind == "wormhole.exit.completed")); + var durableFrame = new AetheriaRuntimeDaemonFrameDocument + { + FrameId = frameId, + FixedDeltaSeconds = 0.25, + SimulationTimeSeconds = frameId * 0.25, + Run = run + }; + using (var node = AetheriaStateNode.OpenAsync(statePath).GetAwaiter().GetResult()) + { + node.MutableDocument( + AetheriaRuntimeVerseRecordKeys.DaemonFrameLatest) + .ReplaceAsync(durableFrame).GetAwaiter().GetResult(); + node.FlushAsync(soft: false).GetAwaiter().GetResult(); + } + using (var node = AetheriaStateNode.OpenAsync(statePath).GetAwaiter().GetResult()) + { + durableFrame = node.MutableDocument( + AetheriaRuntimeVerseRecordKeys.DaemonFrameLatest) + .ReadAsync().GetAwaiter().GetResult() + ?? throw new InvalidOperationException("Durable cross-zone agent frame is missing."); + } + + run = durableFrame.Run; + task = run.AgentTasks.Single(); + agent = run.Zones.SelectMany(zone => zone.Entities) + .Single(entity => entity.EntityId == "worker.cross-zone.stable"); + physics.Dispose(); + physics = NewPhysics(); + RequireEqual(AetheriaRuntimeAgentTaskStatuses.Assigned, task.Status, + "cross-zone restart must preserve the assigned task during wormhole entry"); + RequireEqual(task.TaskId, agent.AssignedAgentTaskId, + "cross-zone restart must preserve the task carrier edge"); + RequireEqual("entering", agent.WormholeTransition?.Phase ?? "", + "cross-zone restart must preserve the exact wormhole phase"); + Require(eventCountsBefore == ( + run.GameEvents.Count(value => value.Kind == "wormhole.enter.started"), + run.GameEvents.Count(value => value.Kind == "wormhole.transferred"), + run.GameEvents.Count(value => value.Kind == "wormhole.exit.completed")), + "CultCache reopen must not replay wormhole chronology before the next daemon tick"); + restarted = true; + } + + if (string.Equals(task.Status, AetheriaRuntimeAgentTaskStatuses.Completed, StringComparison.Ordinal)) + break; + } + + Require(restarted, + "cross-zone task proof must hard-restart while the worker is inside the wormhole timeline"); + Require(appliedApproachCommands > 0, + "agent must approach wormholes through shared movement commands and Ymir before transition"); + RequireEqual(2, appliedTravelCommands, + "agent must traverse each galaxy edge through the shared wormhole command boundary"); + RequireEqual(2, run.GameEvents.Count(value => value.Kind == "wormhole.enter.started"), + "two route edges must publish exactly two retained entry events across restart"); + RequireEqual(2, run.GameEvents.Count(value => value.Kind == "wormhole.transferred"), + "two route edges must publish exactly two retained transfer events across restart"); + RequireEqual(2, run.GameEvents.Count(value => value.Kind == "wormhole.exit.completed"), + "two route edges must publish exactly two retained completion events across restart"); + RequireEqual(1, run.Zones.Sum(zone => zone.Entities.Count), + "cross-zone restart must not clone the durable worker into another zone"); + Require(run.Zones.Single(zone => zone.ZoneIndex == 2).Entities.Count == 1, + "assigned agent must arrive in the task zone without a parallel teleport owner"); + RequireEqual("worker.cross-zone.stable", run.Zones.Single(zone => zone.ZoneIndex == 2).Entities.Single().EntityId, + "zone transfer must preserve stable entity identity while projection indices change"); + RequireEqual(AetheriaRuntimeAgentTaskStatuses.Completed, task.Status, + "agent must execute the task only after arriving in its destination zone"); + } + finally + { + if (Directory.Exists(root)) + Directory.Delete(root, recursive: true); + } } private static void WormholeTraversalUsesPersistedEnterTransferExitPhases() diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 712e06e23..eab8836b0 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1180,7 +1180,10 @@ neither component reissues the task or invents a second carrier. Daemon smoke stops an explore task during travel, hard-flushes CultCache, closes and reopens the store, proves the ownership edge and pose, then completes through the same movement-command reducer, releases controls exactly once, and projects the -completed row through the generic Eve commander surface. +completed row through the generic Eve commander surface. A second proof stops +a three-zone assignment during its first persisted `entering` phase, replaces +the run/task object graph and Ymir owner from CultCache, and finishes both route +edges with one worker and exactly two start/transfer/completion event triplets. ### Authoritative Flight Actuator Contract @@ -1323,9 +1326,11 @@ completed row through the generic Eve commander surface. - Cut line: command application no longer splices zone arrays. Flight and the world-physics port exclude transitioning bodies, and Ymir resumes only on the tick after completion. -- Proof: daemon smoke serializes and rehydrates mid-entry, rejects a second - transition owner, verifies exact enter/transfer/exit timing and discovery, - and runs multi-edge task and home routes through the same boundary. +- Proof: daemon smoke rejects a second transition owner and verifies exact + enter/transfer/exit timing and discovery. The multi-edge agent route performs + a real CultCache hard flush, close, and reopen during entry, reconstructs a + fresh embedded Ymir owner, preserves task/carrier/phase state, and proves + exactly-once chronology plus single-entity arrival before completing work. ### Flight Post-Processing Contract diff --git a/docs/original-game-migration-matrix.md b/docs/original-game-migration-matrix.md index 131b7b73f..48f57b699 100644 --- a/docs/original-game-migration-matrix.md +++ b/docs/original-game-migration-matrix.md @@ -28,7 +28,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity. | Destruction/drops | hull death, 25% equipment rolls, unconditional cargo drops, 25-unit launch, 30-second pickups | daemon | destruction identity, death/drop events, typed pickups | provider-advertised destruction effect and pickups | owner-exists; wired; exclusive; projected: direct and deployable lethal damage commit one deterministic destruction transaction, clear live references, retain only a non-rendered identity tombstone, and emit exact pickups/events; residual cell damage destroys installed equipment before hull, disables its behaviors immediately, and cockpit destruction kills with its fossil cause before scalar hull depletion; the reserved client `DestroyEntity` command is rejected; Aetheria advertises its original big explosion as `effect.feedback.entity.destroyed`, lowered generically by EveUnity | multiplayer reconnect chronology | | Tractor/scoop | analog tractor and physical timed pickups | daemon + Ymir | tractor power, pickup body and receipt | pickup world entity plus beam/interaction feedback | fossil 2/s power ramp and authored forward radius/traction/distance feed pickup bodies into the shared Ymir world; ship contact collects exactly once when capacity permits or applies the fossil 25-unit rejection kick; Aetheria maps pickup collision only against ship bodies, so stations and other world bodies cannot become cargo writers; 30s daemon lifetime; instant cargo teleport deleted; current-zone pickups occupy ordinary rows in the shared Eve entity SoA body with stable logical identity and provider-owned assets; `pilot.scoop` advertises a generic `button-hold.v1` scalar contract, the released client sends `1` on press and `0` on release through `SetTractorPower`, both receipts reconcile, and daemon power returns exactly to zero; the provider build removes the fossil's embedded tractor object from ship prefabs, and `beam.presentation` attaches the sole standalone effect to the SoA ship; released warm witnesses prove successful exactly-once Ymir collection and controlled-player `cargo-capacity` rejection with unchanged cargo | polish provider beam shape/attachment | | Dock/undock | wormhole-first interact; first eligible bay; component prerequisites | daemon + Ymir placement | dock commands/context | camera/UI transition | daemon docking now preserves the fossil transaction: stable zone order selects the first entity with a real empty bay inside the fixed 25-unit XZ center radius; undock checks installed Cockpit, Thruster-or-AetherDrive, Reactor, then empty bay cargo in source order; rejection reasons survive committed command facts into generic Eve receipts; success removes parentage without moving, stopping, or rotating the ship. Accepted transitions additionally publish retained `ship.docked` / `ship.undocked` feedback with exact actor, parent, bay, frame and position; rejected operations publish no false transition. Docking clears held-group and transient weapon state, docked actors reject later fire commands, and combat subtracts docked child identities from both attacker iteration and target lookup, so stale input, forged pulses, and turret controllers cannot fire through a bay. Ymir world entities retain gravity/query bodies but do not invent ship/station rigidbody collision response that would make the 25-unit rule unreachable; ship/pickup Begin contacts remain enabled. The live generic Unity witness also proves advertised actions, bay assignment, dock-parent SoA inclusion and sensor sharing, camera retargeting, controlled-subject hiding, movement suppression, and restoration on undock | reconnect, docked inventory/trade surfaces, and authored dock-camera blend/effect lowering | -| Wormhole travel | `ActionGameManager.EnterWormhole` plus `Ship` enter/exit state | daemon fixed-step transition plus Ymir exclusion | current-entity transition state and feedback chronology | provider-selected generic transition lowering | command acceptance no longer moves an entity immediately; player interact, explicit travel, and agent routing derive the same canonical adjacent-zone wormhole and proximity gate, then persist four-second `entering`, authoritative transfer, four-second `exiting`, and one-frame `completed` phases. The daemon owns smootherstep XZ motion, the fossil 1000-unit visual-depth lever, deterministic 20-unit exit direction, 50-unit exit radius, target-adjacency discovery, and exactly-once start/transfer/completion events. Flight and every world-physics implementation receive no transitioning body; Ymir resumes on the tick after completion. Smoke serializes and rehydrates mid-entry and proves agents traverse multi-edge routes through the same command boundary | generic provider transition effect/camera lowering and live multi-zone pilot witness | +| Wormhole travel | `ActionGameManager.EnterWormhole` plus `Ship` enter/exit state | daemon fixed-step transition plus Ymir exclusion | current-entity transition state and feedback chronology | provider-selected generic transition lowering | command acceptance no longer moves an entity immediately; player interact, explicit travel, and agent routing derive the same canonical adjacent-zone wormhole and proximity gate, then persist four-second `entering`, authoritative transfer, four-second `exiting`, and one-frame `completed` phases. The daemon owns smootherstep XZ motion, the fossil 1000-unit visual-depth lever, deterministic 20-unit exit direction, 50-unit exit radius, target-adjacency discovery, and exactly-once start/transfer/completion events. Flight and every world-physics implementation receive no transitioning body; Ymir resumes on the tick after completion. An autonomous three-zone route now hard-flushes and closes CultCache during the first `entering` phase, reopens into a fresh run graph and Ymir owner, preserves the assigned task/carrier/phase, crosses both edges, emits exactly two start/transfer/completion triplets, and never clones the worker | generic provider transition effect/camera lowering and live multi-zone pilot witness | | Inventory/equipment | `Entity.ItemFits`, `TryEquip`, `TryUnequip`, `EquippedCargoBay.ItemFits`/`TryStore`, inventory panels + ServerShared | daemon atomic inventory transactions | typed inventory/equipment state, commands, exact receipts | generic UI | generated cargo and docking bays now occupy their typed collections instead of masquerading as ordinary equipment; docked equip/reposition/store validates the complete destination on cloned state before committing either side, uses authored hull interior and hardpoint geometry, forces hardpoint rotation, rejects occupied cells and deployed ships, preserves exact item instance fields, surviving equipment behavior/weapon state, and weapon-group membership, routes bay categories with aligned content/assignment arrays, and refuses to unequip nonempty/occupied bays. Cargo transfer now uses the same plan-first rule with typed bay interiors, rotated item footprints, deterministic free-cell search, exact stack maxima, and no partial source/destination mutation on rejection; exact reasons reach generic Eve receipts. The generic Eve equip request-to-transaction-to-CultCache-restart path is covered, including source non-resurrection | live generic refit control lowering, reconnect after rejected moves, commodity multi-stack chronology, and full fossil inventory feedback parity | | Trade | trade UI/economy | daemon | stock, quote, purchase/sale commands | generic UI | daemon derives station, stock row, catalog item, current price, quantity, credits, target capacity, and hull-vs-cargo result; purchases ignore client opinions about price and destination kind. Docked sales identify only the source stack and quantity: the daemon derives station, instance-sensitive value, payout, deterministic typed stock placement, and commits cargo/credits atomically; generic Eve advertises available buy and sell actions. The generic Unity live witness receives an authoritative purchase receipt while paused | live sale receipt witness, quote expiry, contested stock, and full trade surface parity | | Action bar/input | input shell and rebinding UI | daemon advertises actions; client owns bindings | input capability and action descriptors | universal binding UI | contracts wired; consumable rows are catalog-filtered, expose daemon-owned cargo quantity, active-effect count, exact duration/remaining duration, and the fossil `remaining / duration` fill as `remaining-ratio.v1`. A depleted or non-stackable active consumable remains visible with unavailable command state until its effect ends, so a lowerer never queries Unity gameplay objects. Weapon groups advertise the fossil press/release lifecycle as generic `button-hold.v1` values routed to `SetWeaponGroupActive`; daemon entity state persists the active-group latch, press edges pulse instant/charged weapons once, constant weapons remain selected without client keepalives, release clears the latch, and the one-shot compatibility command is not the public input contract. Equipment actions derive from exact installed catalog payload/state pairs instead of blindly activating behavior zero: Switch and Trigger expose generic hold values, adjustable Thermotoggle exposes a canonical `scalar.v1` Kelvin target/current value, fixed/non-interactive rows are omitted, and offline rows retain identity as unavailable. Target nearest/previous/next/reticle/clear actions expose daemon-owned current selection, visible-hostile count, and availability; the default profile preserves fossil `R/T/Y/U`, restores the shared wormhole-first/then-dock interaction to `F`, and routes `view-direction.v1` world XYZ through the released generic runtime while target ranking remains daemon policy. Released EveUnity lowers provider action-bar suggestions with provider-owned icon asset keys, availability, one-shot, held, view-direction, and explicit scalar controls without importing Aetheria. Every value form translates through generic Eve requests into typed daemon commands under provider identity `aetheria` | generic slot editing/persistence, consumable quantity/progress chrome, provider styling, and live action-bar witness | @@ -40,12 +40,12 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity. | HUD/schematic | ARPG HUD and `SchematicDisplay` | Eve composition from daemon facts | semantic status/components | EveUnity UI | provider-authored transparent cockpit is wired, projected, and lowered through generic UI Toolkit panes, metrics, and progress components for hull, shield, capacitor, temperature, cargo, weapon cooldown/groups, selected target, target lock, target shield, and target hull. The daemon now publishes the original spatial schematic semantics as a generic `ship.schematic` subtree for both self and selected target: explicit occupied hull cells with current/maximum armor, catalog-backed rotated equipment footprints, durability, thermal range/performance, online state, wear, and nested weapon ammo/cooldown/charge/reload facts. Refit, damage, and presentation share the same rotation geometry; Unity objects do not derive schematic truth | generic spatial schematic lowering, warning timelines, dynamic action state, and composited live capture | | Hit/lock/warnings | `ActionGameManager` feedback | daemon event facts | transient feedback stream | VFX/UI/audio | bounded deduplicated game-event ledger and Eve `feedback.stream` wired for pickup outcomes, projectile launch/impact, entity damage, alive-to-dead destruction, thermal-risk crossings, accepted dock/undock transitions, authoritative weapon reload chronology, lock start/acquired/lost chronology, and episode-deduplicated `weapon.fire.refused` facts for insufficient energy or missing ammunition; docking facts retain exact actor/parent/bay identity and rejected operations emit none; every lock transition carries authored weapon identity, target, reason, and prior/current progress, while reconnect priming prevents retained events from replaying as new feedback | broader negative transaction fixtures, provider lock/docking audio and effect roles, and broader runtime effect consumption | | Assets | `Assets/Resources` | Aetheria provider | asset catalog + CultMesh CDN | runtime cache/load | provider manifests name deterministic bundle-internal paths and now project each typed hull prefab through the same asset key in Eve scene and SoA identity state; the authoring build derives presentation-only prefabs, strips non-Eve gameplay scripts, externalizes embedded effects, preserves source material semantics, and verifies the loaded bundle ABI; released EveUnity `0.3.57` resolves Unity's lowercase bundle names against authored-case advertised keys. The released cold witness begins with an empty cache, transfers the 56,168,017-byte body through `cultmesh.content.v1`, atomically promotes its exact SHA-256 with no partial, selects `SharedFileMapping`, and lowers the shield-free hull while preserving pilot/map isolation | provider-to-client network zero-copy, shared-memory delivery, and GPU zero-copy remain open; the managed network session still copies and fragments payload bytes before verified promotion | -| Save/resume | original persistence paths | daemon/CultCache | published current state | clients rehydrate | durable latest-frame checkpoints survive real CultCache directory-store close/reopen with complete loadout/behavior state, pending combat lock/trigger state, consumed Ymir contact chronology, and active autonomous task ownership. Fresh Ymir sessions reconstruct ordinary motion from committed world truth; daemon-private contact journals prevent replay where reconstruction alone is insufficient. A mid-travel explore task resumes through the same scheduler movement commands, completes exactly once, releases helm ownership, and reaches the generic Eve commander surface | live process-kill/relaunch witness, multi-zone restart, and version/catalog migration policy | +| Save/resume | original persistence paths | daemon/CultCache | published current state | clients rehydrate | durable latest-frame checkpoints survive real CultCache directory-store close/reopen with complete loadout/behavior state, pending combat lock/trigger state, consumed Ymir contact chronology, active autonomous task ownership, and a mid-wormhole multi-zone route. Fresh Ymir sessions reconstruct ordinary motion from committed world truth; daemon-private contact journals prevent replay where reconstruction alone is insufficient. Explore tasks resume through the same scheduler movement commands, complete exactly once, release helm ownership, and reach the generic Eve commander surface; cross-zone restart preserves the transition phase and exactly-once event chronology without cloning the worker | live process-kill/relaunch witness and version/catalog migration policy | | 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; `Switch`, one-shot `Trigger`, normalized `Cooldown`, adjustable high/low-pass `Thermotoggle`, `EnergyDraw`, equipment `Heat`, atomic `ItemUsage`, and thermal `Wear` execute in authored group order and stop downstream effects on refusal; each row records whether the chain reached it. `Thruster`, rare `AetherDrive`, and `Radiator` now pause their groups at the specialized owner, report the exact fossil success result, and resume common tails at most once, so idle or unfunded actuators cannot consume wear; radiator emission remains its independent always-update path. Cooldown projects generic progress and thermostat target is daemon-commanded state seeded from authored data. Equipped and timed-consumable `StatModifier` sources persist daemon-owned lifecycle state and every runtime stat reader applies the fossil `base × multiplier product + constant sum` rule through one query; legacy `Data` kind references and required-behavior filters are honored | remaining specialized return-value composition and canonical consumable-content proof | | 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 and installed orbital `TurretController` | daemon | commander task board, corporation survey ledger, controller aim/state, 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. Ship 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. Chain-admitted orbital controllers independently acquire the first visible hostile ship, publish predictive look direction, and trigger only exact aligned in-range weapon behaviors through the shared combat lifecycle; the canonical preceding `EnergyDraw` now blocks acquisition, aim, and fire when power is unavailable, and non-player identity grants no implicit group-zero fire. Cross-zone task and home routes survive the full daemon-owned wormhole timeline; attack admission rejects missing/friendly targets and unavailable weapon groups before durable queueing. Cancel, complete, fail, stale-assignment repair, and duplicate-carrier repair share one scheduler-owned release primitive that zeros persisted helm input, clears the scheduler target, releases towing parentage, and prevents a terminal task from emitting another command. A real CultCache close/reopen now proves assigned task, agent edge, and mid-travel pose survive; a fresh Ymir owner reconstructs from that frame, the task completes without duplication, and Eve commander observes the terminal status | multi-client command transfer, multi-zone process restart, and model-local barrel-direction metadata | +| AI/tasks | corporation task scheduler plus agent state machines and installed orbital `TurretController` | daemon | commander task board, corporation survey ledger, controller aim/state, 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. Ship 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. Chain-admitted orbital controllers independently acquire the first visible hostile ship, publish predictive look direction, and trigger only exact aligned in-range weapon behaviors through the shared combat lifecycle; the canonical preceding `EnergyDraw` now blocks acquisition, aim, and fire when power is unavailable, and non-player identity grants no implicit group-zero fire. Cross-zone task and home routes survive the full daemon-owned wormhole timeline; attack admission rejects missing/friendly targets and unavailable weapon groups before durable queueing. Cancel, complete, fail, stale-assignment repair, and duplicate-carrier repair share one scheduler-owned release primitive that zeros persisted helm input, clears the scheduler target, releases towing parentage, and prevents a terminal task from emitting another command. Real CultCache close/reopen proofs now cover both ordinary mid-travel and the first `entering` phase of a two-edge route; fresh Ymir owners resume without duplicate tasks, entities, or transition events, and Eve commander observes terminal status | 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 | ## Ownership Invariants