Own run failure in the daemon

This commit is contained in:
Meta Vens 2026-07-16 23:42:27 +01:00
commit 8abdf3ac62
13 changed files with 205 additions and 16 deletions

View file

@ -2829,6 +2829,33 @@ technology keys has been deleted. A future Starbridge mode must enter through
the active daemon game-mode owner and typed catalogs; a dormant document seeder
is not a game mode.
Run-lifecycle ownership is deliberately narrower than a quest system:
- Owner: the daemon run checkpoint owns whether the run is `active` or
terminal. The fossil supplied a failure transition on destruction of the
controlled entity; it did not supply a victory transition.
- Inputs: the controlled entity key and the daemon's committed destruction
transaction, including its cause and frame.
- Outputs: lifecycle phase, terminal reason, terminal frame, one durable
`run.failed` fact, command rejection, and a frozen world after the lethal
frame.
- Derived state: docked, travelling, fighting, mining, looting, and refitting
remain projections of authoritative world facts. They are not durable run
phases and cannot advance the lifecycle.
- Forbidden writers: Unity death callbacks, Eve surfaces, command payloads,
health documents, and menu navigation cannot end, revive, or complete a run.
- Shared paths: every lethal hull, cockpit, heatstroke, and hypothermia path
must pass through the same daemon destruction commit. New Game replaces the
run through the existing daemon session bootstrap; Continue reads the latest
checkpoint.
- Cut line: clearing `CurrentEntityKey` is no longer the implicit lifecycle
decision. It remains the controlled-entity consequence of the explicit
failure commit.
- Verification layer: daemon smoke kills the controlled entity, serializes the
terminal checkpoint, restarts it, proves later commands are rejected and
simulation is frozen, and inspects the Eve surface state bindings. Completion
remains unimplemented until a source-backed game-mode rule owns it.
Ymir restart ownership is deliberately private and asymmetric:
- Owner: `AetheriaYmirPersistenceCoordinator` owns reconstruction durability;

View file

@ -15,7 +15,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
| Organ | Original authority/evidence | Target owner | Eve contract | Runtime lowering | Current status | Required proof |
|---|---|---|---|---|---|---|
| Run/session state | `ServerShared`, `ActionGameManager` | Aetheria daemon/CultCache | provider/session advertisement | all clients | owner-exists; wired; projected; not proven | restart and multi-client convergence |
| Run/session state | `ServerShared`, `ActionGameManager` | Aetheria daemon/CultCache | provider/session advertisement plus run lifecycle bindings | all clients | active/failed lifecycle is daemon-owned and restart-stable: controlled-entity destruction commits the fossil cause, terminal frame, one `run.failed` fact, releases control, rejects later gameplay commands, and freezes the world; Eve receives terminal presentation/input levers without becoming an owner. Docked, travelling, fighting, mining, looting, and refitting remain derived world conditions rather than counterfeit durable phases | full-daemon death/restart witness, multi-client convergence, and a source-backed game-mode completion rule; the fossil supplied no victory transition |
| 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 April 2021 catalog fossil restores the distinct common `Longinus`, rare AetherDrive-compatible `LonginusX`, and `Djinni` rows with their original IDs, shapes, hardpoints, prices, drag, and prefabs, plus missing Thruster rows required to fill their authored mounts; typed `rarity:rare` tags apply a 0.05 generation multiplier to `LonginusX` and AetherDrive equipment; the generator owns one mutable CultMath stream, fixing the readonly-struct defensive-copy bug that restarted every weighted draw; placement rotation survives durable state and reconnect; generation fills the largest compatible footprint before economic weighting; cargo/capacitor plus station docking equipment must fit remaining hull space; stations pack faction-available inventory largest-first; ordinary ships begin without invented scenario cargo; every generated entity persists a source/selection receipt that reaches Eve as `loadout.item` semantics | multi-zone generated-world parity and exact root-to-zone stream sequencing against the fossil |
| 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: common `Longinus` and `Djinni` hulls use ordinary thrusters; the rare `LonginusX` replaces those mounts with the single rare `Traction` AetherDrive path | hardpoint-transform direction parity, exact behavior execution ordering, CultMath/float32 parity harness, live production-frequency evidence, generic thrust/turn feedback lowering, and live handling screenshots |
@ -113,10 +113,12 @@ These are source-confirmed ownership failures, not feature backlog:
layers without leaking Unity masks into portable state. Entity presentation
graphs, attachment sockets, map products, and richer effect composition are
not yet first-class contracts.
5. **The game loop has no single daemon owner.** Exploration, discovery,
encounter, loot, docking, trade, refit, narrative, boss progression,
completion, failure, and continue exist as pieces rather than one explicit
run-state machine.
5. **Run completion and boss/narrative progression have no source-backed
owner.** Active play, failure, and Continue now share the daemon checkpoint;
exploration, encounter, loot, docking, trade, and refit remain correctly
derived from world facts. The fossil contains boss placement and an exit
zone, but no victory transition, so completion must be owned by an explicit
game mode rather than inferred from reaching a zone.
6. **Unity spatial feedback remains insufficiently fenced.** The daemon now
requires Ymir for world advancement, but the Unity bridge/query path still
needs a negative proof that presentation transforms cannot write spatial