Restore the stable legacy Unity project
This commit is contained in:
parent
56a156ee87
commit
7006a6b0dd
2070 changed files with 180490 additions and 169303 deletions
|
|
@ -1,655 +0,0 @@
|
|||
# Aetheria Current Codebase Model
|
||||
|
||||
Date: 2026-07-20
|
||||
|
||||
This is a modeling pass over the live codebase as it exists now. It is not the
|
||||
ideal architecture; it is the current control-flow map, with migration pressure
|
||||
points called out where Unity still acts like more than a thin renderer/input
|
||||
lowerer.
|
||||
|
||||
## Topology
|
||||
|
||||
- `Aetheria.State` owns the CultCache/CultNet typed state node, document
|
||||
registry, Eve surface state, provider advertisement projection, command
|
||||
acceptance, and durable Aetheria state documents.
|
||||
- `Aetheria.State.Daemon` is the local Verse member. It opens an
|
||||
`AetheriaStateNode`, starts the CultMesh server, publishes discovery, accepts
|
||||
typed Eve commands, reads typed daemon commands, ticks the authoritative run
|
||||
document, and republishes daemon witnesses.
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime` is the embedded Unity-facing
|
||||
runtime package. It contains the shared daemon frame documents, typed command
|
||||
clients, render query helpers, stat recipe surfaces, replica/discovery code,
|
||||
and the SoA publication schema that Unity can map.
|
||||
- `Assets/Scripts` is the Unity client. It still contains the gameplay facade
|
||||
graph, behavior simulation classes, zone renderer, UI shells, and Ymir query
|
||||
bridge. During the migration it is partly renderer/input client and partly
|
||||
legacy simulation host.
|
||||
- `Aetheria.State.Verify` is the migration fence. It asserts that deleted
|
||||
authority paths stay dead: stringly public command APIs, queues as public API,
|
||||
Unity physics authority, direct Unity-side zone rendering ownership, old
|
||||
serializer/database paths, and several daemon publication invariants.
|
||||
|
||||
## Boot And Daemon Tick
|
||||
|
||||
The daemon entry point is `Aetheria.State.Daemon/Program.cs`.
|
||||
|
||||
Current daemon control flow:
|
||||
|
||||
1. Parse daemon options: state path, daemon id, session id, Verse id, CultMesh
|
||||
address, tick interval, fixed delta.
|
||||
2. Open `AetheriaStateNode` with `startServer: true` and the daemon boot
|
||||
hydration profile. The indexed CultCache manifest selects the control-plane
|
||||
schemas and exact singleton records required to start; authored name files,
|
||||
the compiled name corpus, asset bodies, and unrelated history remain cold.
|
||||
3. Start `AetheriaVerseDiscoveryHost`.
|
||||
4. Ensure world, Verse host settings, runtime session, compatibility surfaces,
|
||||
and first daemon tick.
|
||||
5. On each interval:
|
||||
- accept observed Eve commands through `AetheriaEveCommandBridge`;
|
||||
- read the current daemon frame from the state path;
|
||||
- collect typed loadout templates from the node cache;
|
||||
- collect observed daemon command documents from the state graph;
|
||||
- call `AetheriaRuntimeDaemonTickRunner.Tick`;
|
||||
- publish the resulting frame, provider advertisement, health, command
|
||||
boundary, assets, input capability, pilot/map control surfaces, SoA body
|
||||
and entity view, then the remaining topology surfaces back into the typed
|
||||
state node;
|
||||
- flush the public state only after the private Ymir restart material and
|
||||
the prepared public documents have both been written.
|
||||
|
||||
`AetheriaRuntimeDaemonTickRunner.Tick` is the authoritative simulation tick
|
||||
boundary. It filters already-accounted commands, executes new daemon commands
|
||||
through `AetheriaRuntimeDaemonOperations.Execute`, stamps zone simulation time,
|
||||
and prepares the frame and publication facts. `Aetheria.State.Daemon/Program.cs`
|
||||
owns persistence and ordered publication of those prepared facts; the tick
|
||||
runner does not independently commit client-visible state.
|
||||
|
||||
Important nuance: the current tick applies command effects to a typed run
|
||||
checkpoint. It is authoritative for many menu, inventory, targeting, movement
|
||||
intent, docking, loot, trade, loadout, and action-bar operations, but it is not
|
||||
yet a complete standalone simulation engine for every behavior that still lives
|
||||
under Unity `Assets/Scripts/ServerShared/Behaviors`.
|
||||
|
||||
### Daemon boot working set
|
||||
|
||||
- **Owner:** `AetheriaStateNode` owns the daemon boot record selection;
|
||||
`DirectoryMessagePackBackingStore` owns key-to-page discovery and durable
|
||||
retention. A service registry contains only Aetheria's explicitly declared
|
||||
document types.
|
||||
- **Inputs:** the indexed manifest, exact singleton boot keys, and the schema
|
||||
identities for live commands, receipts, and loadout definitions. The latest
|
||||
committed daemon frame supplies restored gameplay truth; source run, zone,
|
||||
and entity records remain cold.
|
||||
- **Outputs:** a compact live CultCache working set. The runtime catalog core
|
||||
contains items, corporations, trade settings, and name-file summaries; the
|
||||
full name corpus is a separate typed cold record loaded explicitly only when
|
||||
generation needs it.
|
||||
- **Derived state:** the catalog Eve surface and ordinary daemon ticks use the
|
||||
compact core. Authored name files and source run/zone/entity documents remain
|
||||
migration, generation, and missing-frame recovery inputs, not ordinary boot
|
||||
dependencies.
|
||||
- **Forbidden writers:** daemon boot must not rescan record pages, reread legacy
|
||||
name files, or let global assembly discovery expand its registry. A filtered
|
||||
flush must not erase cold records.
|
||||
- **Shared paths:** first import writes the indexed representation; daemon boot
|
||||
selects its working set from that index; new-run generation and missing-frame
|
||||
recovery use CultCache's selective pull primitive to hydrate exact bootstrap
|
||||
records through the same open store.
|
||||
- **Cut line:** the monolithic runtime catalog no longer embeds twelve megabytes
|
||||
of names, and menu bootstrap no longer rescans loadout pages from disk.
|
||||
- **Verification layer:** backing-store tests hold an unrelated cold page under
|
||||
an exclusive lock while selectively hydrating another record. Startup phase
|
||||
traces report state open, catalog, Ymir restore, and client publication costs.
|
||||
|
||||
The compact runtime catalog is the daemon's catalog read model. Individual item
|
||||
definition pages remain import/editor state and are not a second simulation
|
||||
catalog. Daemon boot hydrates only the four item records required to validate or
|
||||
regenerate the native dockyard hull and berth. On the current artifact this cut
|
||||
reduced the selected state pages from 174 to 52 and cache-open wall time from
|
||||
about 471 ms to 358 ms. The remaining page cost is being attributed by schema;
|
||||
the lower count alone did not earn an order-of-magnitude claim.
|
||||
|
||||
The .NET state assembly directly consumes CultCache's document metadata source
|
||||
generator. Project-reference analyzers are not transitive, so relying on the
|
||||
MessagePack library's analyzer dependency left Aetheria on runtime typed
|
||||
formatter dispatch. Generated payload codecs are used only for dense-slot,
|
||||
constructible document shapes; immutable or sparse-slot contracts retain the
|
||||
canonical MessagePack fallback. This reduced the profiled 52-page hydration
|
||||
from about 295 ms to 223 ms and cache open from about 353 ms to 296 ms. The
|
||||
1.12 MB daemon frame and 574 KB runtime catalog remain the largest hot records.
|
||||
|
||||
The daemon frame is also the sole restored-run owner. `AetheriaRunState`,
|
||||
`AetheriaZoneState`, and `AetheriaEntitySnapshot` are bootstrap/import records;
|
||||
they are not tick-time mirrors and cannot override a playable committed frame.
|
||||
Removing their schema-wide boot hydration reduced the profiled working set from
|
||||
52 to 38 pages and one measured state-node open from 485 ms to 385 ms. If no
|
||||
playable frame exists, checkpoint reconstruction explicitly pulls the active
|
||||
run, then its referenced zones and entities by exact key. The state smoke proves
|
||||
both that these records remain cold on an ordinary daemon boot and that the
|
||||
durable fallback graph can still be recovered.
|
||||
|
||||
Ymir reconstruction remains full replay within a session generation, but it is
|
||||
now bounded by an explicit quiescent generation rollover. When a private world
|
||||
or payload journal reaches 64 commands, `AetheriaYmirWorldPhysics` asks Ymir to
|
||||
create a replacement baseline before private capture. Ymir refuses while a
|
||||
contact episode is active or a mutation has not reached Step; Aetheria keeps
|
||||
the old replay path in that case and never infers contact safety itself. A
|
||||
successful replacement is captured before the matching public frame commits,
|
||||
and the prior session is disposed only after the in-memory owner swaps.
|
||||
|
||||
The migration witness paid 733 ms once to restore the historical generation;
|
||||
the following restart restored the compact generation in 74 ms, including
|
||||
private-cache open, selected journal hydration, and native world creation.
|
||||
Historical journal pages remain durable and cold. Retention/garbage collection
|
||||
of obsolete generations is separate from restart authority and must not be
|
||||
smuggled into filtered hydration.
|
||||
|
||||
### Clean restart persistence
|
||||
|
||||
- **Owner:** the durable world document owns its creation and last world-state
|
||||
mutation timestamps. Daemon process liveness belongs to runtime/session
|
||||
documents, not the world record.
|
||||
- **Inputs:** the selectively hydrated working set plus the backing store's
|
||||
durable key index, including records deliberately left cold.
|
||||
- **Outputs:** schema defaults are created only for genuinely absent global
|
||||
records. An existing world is read without being rewritten merely because a
|
||||
daemon process started.
|
||||
- **Derived state:** an unhydrated durable global is cold, not missing. The
|
||||
backing store exposes that fact without loading its payload.
|
||||
- **Forbidden writers:** constructor defaults cannot preempt durable globals,
|
||||
and daemon startup cannot mutate `AetheriaWorldState.UpdatedAtUtc` as a
|
||||
heartbeat.
|
||||
- **Cut line:** CultCache hydrates before materializing missing global defaults;
|
||||
clean indexed directory flushes perform no manifest transaction.
|
||||
- **Verification layer:** CultCache tests exclude a persisted global from the
|
||||
initial hydration set, prove the cache remains clean, then hydrate it on
|
||||
demand and recover the durable value. On the Aetheria restart artifact the
|
||||
initial flush fell from 115–140 ms to 3.0–3.2 ms.
|
||||
|
||||
The direct client QUIC listener uses a stable daemon-service certificate stored
|
||||
beside the state file by default; `--client-cultmesh-certificate-path` selects a
|
||||
provisioned location. The advertised-host hash is part of the default filename,
|
||||
and the daemon replaces certificates that are unreadable, lack a private key,
|
||||
target another host, or are within one day of expiry. This transport identity
|
||||
does not own Eve provider or body-producer identity. On the restart witness,
|
||||
certificate setup fell from 153 ms of RSA generation to 27 ms of PFX loading,
|
||||
and total client-host startup fell from about 319 ms to 183 ms. The first boot
|
||||
still pays certificate creation once.
|
||||
|
||||
### Provider-owned CDN bodies
|
||||
|
||||
- **Owner:** the Aetheria bundle artifact set owns the immutable packed chunks
|
||||
and manifests for the lifetime of the daemon. The TCP content server owns
|
||||
framing and byte delivery, not storage.
|
||||
- **Inputs:** provider-authored bundle files are packed once into content-addressed
|
||||
manifests and chunks. The control plane indexes manifests by exact record key;
|
||||
the content plane resolves chunks by normalized SHA-256 hash.
|
||||
- **Outputs:** requested manifests remain typed CultNet snapshot records, while
|
||||
chunk payloads travel on the dedicated TCP byte stream outside snapshot
|
||||
messages.
|
||||
- **Derived state:** raw manifest snapshot records are serialized only when a
|
||||
client requests that manifest. No second CultCache mirrors the packed chunk
|
||||
set.
|
||||
- **Forbidden writers:** client-host startup must not republish provider-owned
|
||||
chunks into an in-memory cache merely to satisfy a transport constructor, and
|
||||
asset bodies must not fall back into batched state snapshots.
|
||||
- **Cut line:** `CultMeshTcpContentServer` accepts a provider-owned chunk resolver;
|
||||
its CultCache constructor is now only a convenience adapter for providers that
|
||||
genuinely keep content in CultCache.
|
||||
- **Verification layer:** CultMesh content-session and transport-modularity tests
|
||||
stream a 700 KB provider-owned body directly and retain warm-cache reuse. On
|
||||
the Aetheria artifact, eager CDN setup fell from about 132 ms to 1.9 ms. The
|
||||
13 MB cold released-client transfer still requires a fresh live witness before
|
||||
it can be claimed healthy.
|
||||
|
||||
### Restored-frame client readiness
|
||||
|
||||
- **Owner:** the latest hard-flushed daemon frame owns restart world truth. Its
|
||||
frame-versioned Eve input, pilot topology, reactive fragment, and map surface
|
||||
are durable projections of that same boundary.
|
||||
- **Inputs:** exact persisted Eve bootstrap record keys plus the latest frame;
|
||||
the daemon boot filter hydrates those records without loading unrelated menu
|
||||
surfaces or history.
|
||||
- **Outputs:** on an ordinary restored daemon run, CultMesh can advertise the
|
||||
committed Eve surfaces and publish a fresh hot SoA body before frame N+1 is
|
||||
simulated. New stores and explicit `--once` runs retain the initialization
|
||||
tick path.
|
||||
- **Derived state:** provider advertisement and asset catalog are stable
|
||||
bootstrap projections. Input and Eve surfaces qualify for the fast path only
|
||||
when every record version exactly equals the durable frame id; missing or
|
||||
stale records force a normal rebuild.
|
||||
- **Forbidden writers:** startup must not advance simulation merely to make an
|
||||
already committed frame presentable. It also must not pair a current frame
|
||||
with stale client projections or let existence alone prove consistency.
|
||||
- **Cut line:** restored readiness no longer calls the simulation tick,
|
||||
`BuildPublications`, or the surface lowerers. Ordinary ticking resumes after
|
||||
readiness and owns frame N+1.
|
||||
- **Verification layer:** the restored artifact reached client bootstrap in
|
||||
under one millisecond and playable readiness in 1.41–1.55 seconds, down from
|
||||
2.19 seconds after Ymir compaction alone. The explicit `--once` witness still
|
||||
executed and committed one new frame.
|
||||
|
||||
## Materialized Import And Publication Ownership
|
||||
|
||||
### Catalog import
|
||||
|
||||
- **Owner:** the full `Aetheria.State.Import` materialization pass owns creation
|
||||
of the daemon-readable catalog store. `AetheriaStateNode` owns the actual
|
||||
directory-backed CultCache writes.
|
||||
- **Inputs:** quarantined legacy catalog/name files and the bounded supplemental
|
||||
rows selected by the importer.
|
||||
- **Outputs:** typed catalog, quarantine, migration-ledger, and trade-policy
|
||||
records under `<state-path>.records`, plus catalog projections read from that
|
||||
same store.
|
||||
- **Derived state:** `RuntimeCatalog` and `CatalogSurface` are projections of
|
||||
the typed records. Legacy MessagePack files are provenance and migration
|
||||
inputs only; they are not runtime catalog owners.
|
||||
- **Forbidden writers:** a temporary single-file CultCache import must not
|
||||
create catalog truth which is expected to migrate implicitly when the daemon
|
||||
opens the directory store. The full importer opens with
|
||||
`useDirectoryStore: true` from its first write.
|
||||
- **Shared path:** importer writes, in-process catalog validation, reopen
|
||||
validation, and daemon boot all read the directory-backed state representation.
|
||||
- **Cut line:** `ResetMaterializedStateOutput` deletes the prior state file,
|
||||
`.records` directory, and CultMesh materialization before a full import. The
|
||||
old single-file-first import path is dead rather than retained as a migration
|
||||
authority.
|
||||
- **Verification layer:** after flushing, the importer checks the projected
|
||||
corporation count in-process, reopens a new directory-backed node, and checks
|
||||
that the same corporation count remains visible. Daemon boot then rejects a
|
||||
catalog whose required corporation keys are absent.
|
||||
|
||||
### Client publication ordering
|
||||
|
||||
- **Owner:** `PublishDaemonApiDocumentsAsync` owns client-visible ordering for a
|
||||
prepared daemon result. The simulation tick owns values, not stream priority.
|
||||
- **Inputs:** the prepared frame, topology facts, command boundary, health,
|
||||
asset manifest, session state, runtime catalog, and optional SoA frame/view.
|
||||
- **Outputs:** frame/render facts first; then provider/health/command/assets and
|
||||
pilot input capability; then the pilot and sector-map Eve surfaces; then the
|
||||
daemon SoA view, CultMesh body publication, and Eve entity view; finally the
|
||||
remaining topology surfaces when topology publication is requested.
|
||||
- **Reactive combat state:** the retained pilot topology advertises an embedded
|
||||
reactive-surface slot. `combat.presentation` exists only in that
|
||||
frame-versioned fragment alongside feedback and shot receipts; the topology
|
||||
cannot retain an older selection, visibility, lock, or target-meter value.
|
||||
Current combat variables are republished at the fragment version; feedback
|
||||
events and shot receipts include only facts newer than the previously
|
||||
published fragment. Their retained daemon arrays remain persistence/history,
|
||||
not a growing payload retransmitted to every client.
|
||||
- **Derived state:** pilot/map surfaces and input capability are projections of
|
||||
the prepared authoritative frame and catalog. SoA documents are bulk render
|
||||
projections; they do not own command acceptance, beam feedback, or gameplay
|
||||
state.
|
||||
- **Forbidden writers:** `AetheriaRuntimeDaemonSoaFramePublisher` may produce
|
||||
body/view documents but may not choose their position relative to control
|
||||
facts. No client or renderer may repair delayed control state from a newer
|
||||
entity slab.
|
||||
- **Shared path:** initial publication and ordinary prepared-frame publication
|
||||
both call `PublishDaemonApiDocumentsAsync`. The live loop publishes hot SoA
|
||||
bodies every simulation tick and periodic control/reactive documents on the
|
||||
prepared-publication cadence, so those planes are not one atomic generation.
|
||||
Consumers must use each document's version; a static topology value may not
|
||||
impersonate newer reactive state.
|
||||
- **Cut line:** bulk SoA publication no longer precedes the pilot/map control
|
||||
surfaces on the ordered state stream.
|
||||
- **Verification layer:** daemon tests should assert record order at the
|
||||
publication boundary; the released generic EveUnity warm witness verifies
|
||||
the visible consequence by receiving responsive command/beam feedback while
|
||||
the entity body continues to stream. Transport subscriptions may separate
|
||||
control and entity traffic, but that does not move publication authority out
|
||||
of the daemon.
|
||||
|
||||
## Command Flow
|
||||
|
||||
Unity public gameplay calls mostly route through typed operation wrappers now:
|
||||
|
||||
- `AetheriaDaemonObserver` polls observed daemon state and owns
|
||||
`AetheriaDaemonOperations`.
|
||||
- `AetheriaDaemonOperations` exposes typed methods such as `SetTarget`,
|
||||
`SetMoveVector`, `TransferCargoItem`, `TradePurchase`, `RestoreLoadout`,
|
||||
`ToggleHullConductivity`, and `SetBehaviorActive`.
|
||||
- `AetheriaRuntimeDaemonOperationClient` builds
|
||||
`AetheriaRuntimeDaemonCommandDocument` values and submits them through
|
||||
`AetheriaRuntimeCommandSubmitter.TrySubmitDaemonCommand`.
|
||||
- The daemon reads those typed command documents and applies them in
|
||||
`AetheriaRuntimeDaemonOperations`.
|
||||
|
||||
This is much healthier than the earlier `Apply(command, payload)` shape. The
|
||||
remaining compromise is that the command document is one broad record with many
|
||||
optional fields, selected by `AetheriaRuntimeDaemonCommandKinds`. That is typed
|
||||
at the document boundary, but not as strong as distinct command body types per
|
||||
operation. The verifier now prevents public Unity-facing queue/string APIs from
|
||||
returning, but the command shape is still a union-ish document rather than
|
||||
fully discriminated typed bodies.
|
||||
|
||||
Eve commands are a parallel typed edge for operator/runtime UI surfaces. The
|
||||
daemon accepts observed Eve commands, applies known surface commands, and
|
||||
publishes acceptance status. Daemon-published game/editor surfaces should keep
|
||||
moving toward command templates that point at typed daemon command documents or
|
||||
typed state refs, not generic payload maps.
|
||||
|
||||
## Observation And Render Flow
|
||||
|
||||
Unity observes daemon state through `AetheriaDaemonObserver`:
|
||||
|
||||
1. Poll `AetheriaRuntimeStateReader.TryReadObservedDaemonState`.
|
||||
2. Feed the result through `AetheriaRuntimeDaemonObservationCursor`.
|
||||
3. If the SoA view changed, map daemon memory through
|
||||
`AetheriaDaemonSoaMemoryMap`.
|
||||
4. Lower the mapped columns to `AetheriaDaemonRenderNativeView`, which exposes
|
||||
`NativeArray<T>` columns for Burst/Jobs-friendly rendering.
|
||||
|
||||
The daemon SoA hot slab is written by
|
||||
`AetheriaRuntimeDaemonSoaFramePublisher.PublishCurrentZoneEntities`. It
|
||||
currently publishes entity index, position, rotation, velocity, physics body
|
||||
radius/mass/inverse mass, render scale, visibility, LOD, and render group. This
|
||||
is the right direction for a thin Unity client: daemon state appears as a native
|
||||
view instead of a serialized object graph.
|
||||
|
||||
The publisher's `LayoutVersion` owns byte interpretation. Column offsets,
|
||||
strides, and the mapped body extent are therefore derived from the fixed SoA
|
||||
capacity, not the current active row count. Active element counts, identities,
|
||||
and render groups remain reactive metadata. A mapped generation may advance
|
||||
before that metadata notification without changing what any existing offset
|
||||
means: removed rows are cleared, and newly added rows remain outside the old
|
||||
element count until the matching metadata arrives. Neither EveUnity nor the
|
||||
transport may repair or reinterpret a mismatched generation.
|
||||
|
||||
Current limitation: physics body radius, mass, inverse mass, render scale, LOD,
|
||||
and render group are still generic defaults in the publisher. Entity identity
|
||||
and position are real; body semantics are not yet rich enough to replace all
|
||||
renderer/gameplay guesses.
|
||||
|
||||
`ActionGameManager.ApplyLatestAuthoritativeDaemonFrame` is the main Unity frame
|
||||
consumer. It reads the newest authoritative daemon frame, restores or updates
|
||||
the Unity observed facade graph, calls `ZoneRenderer.ApplyDaemonFrame`, and
|
||||
loads the daemon zone view when the zone changes.
|
||||
|
||||
`ZoneRenderer` is currently a projection cache. It lowers daemon zone snapshots
|
||||
into Unity GameObjects for bodies, belts, wormholes, entities, compass markers,
|
||||
loot visuals, and gravity presentation. Per frame, it asks
|
||||
`AetheriaRuntimeDaemonRenderQueries` for body poses, asteroid poses, visible
|
||||
entity indices, compass markers, wormhole exits, gravity terrain height, and
|
||||
gravity terrain bands.
|
||||
|
||||
This means `ZoneRenderer` is no longer the canonical level hierarchy owner, but
|
||||
it still exists as a persistent Unity hierarchy cache. The migration target is
|
||||
smaller: a per-frame query/lowering layer that feeds native render buffers and
|
||||
presentation objects only where GameObject views are still unavoidable.
|
||||
|
||||
## Physics And Ymir
|
||||
|
||||
Unity physics is already fenced as forbidden gameplay authority by
|
||||
`Aetheria.State.Verify`.
|
||||
|
||||
`Assets/Resources/Prefabs/Lightning.prefab` is published under the
|
||||
`effect.shot.bolt` presentation role. Its `LightningCompute` component and
|
||||
shader/material bundle are owned by EveUnity with their original Unity GUIDs;
|
||||
Aetheria owns only the configured prefab and its asset-manifest advertisement.
|
||||
|
||||
Texture production currently uses checked-in, pre-generated provider assets.
|
||||
Substance is not part of the toolchain. A later asset-pipeline pass may move
|
||||
texture generation into Blender baking, but that pipeline remains provider-side
|
||||
and cannot become an EveUnity runtime dependency.
|
||||
|
||||
Current Ymir control flow:
|
||||
|
||||
- Ymir is deliberately a Box3D wrapper and physics-daemon boundary; its name
|
||||
means **Not Invented Here**. Box3D owns integration and contact lifecycle.
|
||||
Ymir owns stable game-facing body identity, session revisions, command
|
||||
receipts, and typed contact-fact identity.
|
||||
- `AetheriaYmirWorldPhysics` owns the retained physics transaction for each
|
||||
`(RunId, ZoneIndex)`: a world session for ships and pickups, and an isolated
|
||||
payload session for ordnance. Aetheria owns the active run/zone set and
|
||||
disposes both sessions when a run or zone leaves it. Each fixed simulation
|
||||
substep has its own physics-step identity even when several substeps share
|
||||
one publication frame. Entity bodies use stable `EntityId`, never mutable
|
||||
zone-list indices; current indices are projection data and may change during
|
||||
cross-zone moves.
|
||||
- Session creation is the only full body bootstrap. Ordinary ticks lower
|
||||
membership changes, movement/orientation changes, tractor forces, gravity
|
||||
fields, and pickup-rejection velocity into explicit retained-session
|
||||
commands. Post-step body values in the run checkpoint are projections from
|
||||
Ymir, not an independent physics solver.
|
||||
- Restart material lives in a second daemon-private CultCache at
|
||||
`<public-state>.ymir.cc`; it is absent from the public Aetheria document
|
||||
registry and client subscription database. Ymir emits immutable incremental
|
||||
journal chunks plus bounded per-frame resume descriptors. The daemon flushes
|
||||
chunks, then resumes, then the public frame. That public frame is the commit
|
||||
marker. Startup restores the exact `(RunId, FrameId, ZoneIndex)` records
|
||||
before the client CultMesh host starts, and fails closed on incomplete active
|
||||
persistence.
|
||||
- Cargo collection runs after Ymir motion and accepts only live pickups within
|
||||
the fixed XZ distance of an active, undocked ship. The daemon removes the
|
||||
durable pickup row in the same transaction that inserts cargo, so restart or
|
||||
repeated proximity evaluation cannot add it twice. Ymir contact facts and
|
||||
client loot commands do not collect cargo.
|
||||
- Ordinary direct, constant, and charged weapon fire resolves through
|
||||
deterministic shot receipts. It does not create a Ymir body or derive damage
|
||||
from collision.
|
||||
- The payload phase follows the world phase in the same retained zone owner.
|
||||
Ymir advances payload bodies without world fields or payload-to-payload
|
||||
response, then revision-checked Box3D circle casts or overlaps query the
|
||||
current world session against explicit stable entity-body candidates.
|
||||
Aetheria interprets those query facts; Ymir does not own damage policy.
|
||||
- Authored `DeployableWeapon` behavior now creates retained mine payloads.
|
||||
Aetheria owns deployment admission, arming time, trigger transition,
|
||||
detonation delay, blast selection, damage, and lifecycle events. Ymir moves
|
||||
the unarmed payload and reports overlap/contact facts after it becomes a
|
||||
stationary trigger body. Eve projects the payload kind, age, armed,
|
||||
triggered, stationary, radius, delay, and magnitude state.
|
||||
- The fossil `Projectile`, `GuidedProjectile`, their managers, Unity-side Ymir
|
||||
stepping adapter, and dedicated proof tests are deleted. EveUnity lowers
|
||||
ordinary weapon travel from daemon `shot.receipt` facts.
|
||||
- Fossil laser, lightning, hitscan, and constant weapon effect managers are
|
||||
also deleted. They no longer cast against Ymir from Unity to choose endpoints
|
||||
or shield responses; EveUnity consumes the receipt trajectory, impact kind,
|
||||
intensity, and provider presentation-role assets.
|
||||
- The remaining Unity `AetheriaYmirPhysicsBridge` lowers clickable presentation
|
||||
bounds into `YmirPhysicsQueries.CastSphere`; it knows nothing about daemon
|
||||
entities, hulls, shields, targets, zones, or combat.
|
||||
|
||||
This is the right authority direction: daemon physics enters Ymir from daemon
|
||||
state, while Unity only asks Ymir a local presentation-picking question.
|
||||
Remaining debt:
|
||||
|
||||
- World and payload sessions are still in-process organs of the Aetheria
|
||||
daemon. A future remote Ymir lowering must preserve the same ordered zone
|
||||
transaction, stable body identities, revisions, and query facts rather than
|
||||
restoring a second Aetheria physics authority.
|
||||
- The in-process session registry is the live daemon implementation. Private
|
||||
replay reconstruction is wired and restart-proven for a consumed pickup
|
||||
contact, including no duplicate receipt, event, or rejection kick. Ymir's
|
||||
complete in-memory journal is not compacted yet; disk writes are incremental,
|
||||
memory retention is not.
|
||||
- Clickable raycasts still construct query bodies from Unity click bounds. That
|
||||
is presentation picking, not simulation authority, but it should stay clearly
|
||||
labeled as renderer/UI picking.
|
||||
- The original `Mine Launcher` item was recovered from the quarantined
|
||||
2021-03-05 catalog by stable legacy ID, normalized from its historical effect
|
||||
reference to `DeployableWeapon`, and merged into canonical typed provider
|
||||
state. The supplemental MessagePack file is migration provenance only.
|
||||
- `Mine`, `MineManager`, `InstantWeaponEffectManager`, and their serialized
|
||||
launcher prefab are deleted. A script-free provider prefab supplies the
|
||||
original mesh/materials. Eve publishes lifecycle and pulse properties;
|
||||
EveUnity generically lowers those semantic properties to material emission.
|
||||
|
||||
## Gravity Terrain
|
||||
|
||||
Daemon zone/body state owns gravity as positive depth magnitudes. The Ymir
|
||||
adapter passes `GravityWellDepth` directly into positive-strength radial fields,
|
||||
which attract. Shared render queries subtract those magnitudes into negative
|
||||
terrain wells, and `AetheriaRuntimeGameDocuments.RenderSplatsViewport` performs
|
||||
the same derived sign conversion for `gravity.height` splats.
|
||||
|
||||
`AetheriaRuntimeDaemonRenderQueries` owns gravity influence brushes, terrain
|
||||
sampling, and terrain bands. `ZoneRenderer` consumes those queries. The main
|
||||
menu embeds the typed gravity, render-splat, and object viewport documents; its
|
||||
old fallback body/object world has been deleted.
|
||||
|
||||
The old `Assets/Scripts/Gravity.cs` remains a legacy Unity-local visual
|
||||
evaluator. It does not own gameplay gravity or canonical terrain facts. Unity
|
||||
receives provider projections for the active camera/minimap/render pass, while
|
||||
`AetheriaYmirWorldPhysics` receives physics fields from the same daemon state.
|
||||
|
||||
## Stats And Behaviors
|
||||
|
||||
Stats are mid-migration.
|
||||
|
||||
Designer-facing recipe state exists in
|
||||
`AetheriaRuntimeStatRecipes` and `AetheriaRuntimeStatRecipeSurfaceBuilder`.
|
||||
Runtime item stat inspection exists in
|
||||
`AetheriaRuntimeDaemonItemStatQueries`. Recipes are explicit: base value plus
|
||||
enabled condition modifiers for quality, durability, heat, charge, ammo, range,
|
||||
integrity, pilot skill, and environment. The recipe evaluator caches enabled
|
||||
modifiers and dependency masks on the Unity-side `StatRecipe`.
|
||||
|
||||
The live behavior system still uses `PerformanceStat` heavily. Every behavior
|
||||
constructs stat objects, registers them, and calls `Evaluate(...)` during
|
||||
runtime. If a recipe exists, it uses the recipe evaluator. If not, it falls back
|
||||
to the legacy exponent model:
|
||||
|
||||
- quality exponent;
|
||||
- durability exponent multiplier;
|
||||
- heat exponent multiplier;
|
||||
- curve sampling for behavior-specific effects.
|
||||
|
||||
`StatModifier` still mutates target `PerformanceStat` modifier dictionaries at
|
||||
runtime by behavior and entity. This is a partial modifier system, but it is
|
||||
attached to the old `PerformanceStat` object graph rather than a compact
|
||||
blueprint/instance stat set.
|
||||
|
||||
The daemon translation does not retain those object-owned dictionaries.
|
||||
`AetheriaRuntimeBehaviorSimulation` persists switch, trigger, and modifier
|
||||
lifecycle state in the authoritative snapshot. Runtime stat reads derive the
|
||||
fossil multiplier-product and constant-sum result from those sources, including
|
||||
required-behavior and descendant-kind targeting. This makes reconnect replay
|
||||
idempotent and keeps the Unity fossil out of the gameplay authority path.
|
||||
Behavior-state projection is a reconciliation write only: when equipment and
|
||||
catalog behavior shape already match, reads preserve the existing state array
|
||||
and every mutable daemon-owned value. An actual shape change rebuilds the
|
||||
projection while retaining states whose owner, equipment index, behavior index,
|
||||
and kind still match.
|
||||
|
||||
Each equipped-behavior query also derives one ephemeral set of operational
|
||||
`StatModifier` behaviors and binds that set to every wrapper returned by the
|
||||
query. All stat evaluations through those wrappers reuse the same set instead
|
||||
of recursively rebuilding the equipment graph for every field. The set is not
|
||||
persisted, cannot outlive the query result, and cannot write authority; modifier
|
||||
lifecycle remains in the entity snapshot.
|
||||
The same daemon organ executes common resource gates in group order. Energy,
|
||||
thermal cells, cargo, and durability remain owned by their narrow transaction
|
||||
subsystems; behavior composition decides only whether and when to call them.
|
||||
Thermotoggle target temperature is also daemon-owned behavior state. Authored
|
||||
data seeds it, adjustable commands mutate it, and its high/low-pass predicate
|
||||
gates the same ordered chain.
|
||||
|
||||
Within one combat step, authoritative equipment, online state, durability, and
|
||||
catalog payloads are read once into a tick-local operational behavior set.
|
||||
Deployable, charged, constant, and instant weapon projections derive from that
|
||||
same set. It is not persisted and cannot outlive the step; mutations still land
|
||||
on the referenced authoritative item and behavior state. This prevents each
|
||||
weapon family from independently rebuilding the same equipment graph without
|
||||
introducing a cache owner beside the entity snapshot.
|
||||
Entities without an operational descendant of `Weapon` do not enter the weapon
|
||||
actor loop. They remain valid targets and physical-payload participants.
|
||||
|
||||
Migration target:
|
||||
|
||||
- blueprint/catalog rows define base stat ids and default values;
|
||||
- designer recipes define explicit condition dependencies per stat;
|
||||
- item/entity instances carry only condition values and sparse modifier state;
|
||||
- each stat has a dependency mask so hot paths sample only required conditions;
|
||||
- current stat queries are daemon-owned and can answer "what is this stat now?"
|
||||
without Unity spelunking behavior objects;
|
||||
- Unity behavior code consumes resolved current stat values or cached stat
|
||||
handles, not raw `PerformanceStat` exponent objects.
|
||||
|
||||
## UI Surfaces
|
||||
|
||||
The current UI direction is Eve/CultUI:
|
||||
|
||||
- daemon publishes game/editor GUI and TUI surfaces;
|
||||
- compatibility state surfaces exist for operations, player settings, catalog,
|
||||
loadout templates, zone details, trade item details, and stat recipes;
|
||||
- the daemon's pilot surface publishes docked spatial equipment and cargo grids
|
||||
with generic Eve drop commands; Unity and browser lowerers own transient drag
|
||||
state but not fit, access, mutation, or receipts;
|
||||
- the generic EveUnity playable-world host mounts the same provider-owned pilot
|
||||
surface as a themed UI Toolkit overlay. Aetheria owns cockpit values, menu
|
||||
visibility, commands, and receipts; EveUnity owns only lowering and native
|
||||
control wiring;
|
||||
- Unity still lowers local surfaces through UI Toolkit for several remaining
|
||||
menu/trade panels;
|
||||
- Brokkr should be considered just another daemon publishing Unity editor Eve
|
||||
surfaces, not a special Codex socket.
|
||||
|
||||
The architectural note in `Aetheria.State/docs/verse-daemon-shape.md` still
|
||||
describes optional ecosystem indexing, but it is not the Aetheria session path.
|
||||
Aetheria clients connect directly to the daemon's advertised CultMesh endpoint.
|
||||
Current configured daemon peers also exchange typed committed facts there; this
|
||||
is obsolete migration behavior, not target Starbridge authority. Pilot output
|
||||
must instead enter as candidate evidence before Commander finality, and peer
|
||||
committed facts must not mutate gameplay state.
|
||||
Odin may index the provider only when explicitly enabled. Eve/CultUI defines
|
||||
presentation, and the daemon owns side effects.
|
||||
|
||||
Remaining UI debt is not mostly visual. It is resolution semantics: if an Eve
|
||||
surface contains a typed pointer to daemon state, the runtime should resolve it
|
||||
automatically. Current surfaces still often duplicate display values into
|
||||
component props. That works for rendering, but it is weaker than state-ref
|
||||
driven UI where agents and clients can inspect or invoke the same typed daemon
|
||||
state.
|
||||
|
||||
## Remaining Unity Responsibility
|
||||
|
||||
Unity is already less authoritative than it was, but not detached.
|
||||
|
||||
Still in Unity:
|
||||
|
||||
- observed `Galaxy`, `Zone`, `Entity`, `Ship`, `EquippedItem`, and behavior
|
||||
facade graph projection;
|
||||
- live behavior classes and much stat evaluation;
|
||||
- `ActionGameManager` as a large input/UI/projection coordinator;
|
||||
- `ZoneRenderer` persistent GameObject projection cache;
|
||||
- prefab/hull visual instantiation and effect attachment;
|
||||
- some presentation picking and clickable queries;
|
||||
- old gravity material evaluator in `Gravity`;
|
||||
- Unity-specific rendering settings and asset palette lowering.
|
||||
|
||||
Moved or moving out:
|
||||
|
||||
- durable world/catalog/player/run/zone/entity state;
|
||||
- typed daemon command acceptance and operation application;
|
||||
- provider advertisements, health, command boundaries, and surfaces;
|
||||
- current-zone entity hot slab for native rendering and Ymir body construction;
|
||||
- shared render queries for body poses, gravity terrain, wormholes, markers,
|
||||
visible entities, and asteroid poses;
|
||||
- Unity physics authority.
|
||||
|
||||
## High-Value Next Cuts
|
||||
|
||||
1. Enrich daemon SoA physics columns. Publish body radius/mass/inverse mass
|
||||
from typed entity/hull state instead of `1.0` placeholders.
|
||||
2. Add daemon current-stat query documents/surfaces. Designers and clients
|
||||
should query current resolved stats through daemon-owned state refs, not
|
||||
inspect Unity behavior objects.
|
||||
3. Convert hot behavior reads from `PerformanceStat` to stat handles with
|
||||
dependency masks and cached condition sampling. Leave legacy exponent
|
||||
evaluation only as migration import/readback.
|
||||
4. Shrink `ZoneRenderer` toward stateless per-frame render lowering. Persistent
|
||||
GameObjects can remain for prefabs, but zone/body/entity discovery should be
|
||||
query-driven from daemon state.
|
||||
5. Promote Ymir's typed local query surface to CultNet/CultMesh query handles
|
||||
when the Ymir daemon interface is ready.
|
||||
6. Make Eve state refs first-class in the UI runtime so surfaces can point to
|
||||
daemon state and clients resolve it automatically.
|
||||
|
||||
## Mental Model
|
||||
|
||||
The current machine is no longer "Unity owns the game and exports some state."
|
||||
It is now "the Aetheria daemon owns typed state and publications, while Unity is
|
||||
a powerful but still-too-large observer/projection runtime." The main migration
|
||||
task is to keep deleting places where Unity turns observed daemon facts back
|
||||
into local authority.
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,147 +0,0 @@
|
|||
# Aetheria Verse Client Contract
|
||||
|
||||
Aetheria clients should enter the runtime through CultMesh typed Verse records, not through
|
||||
daemon internals. The daemon owns simulation authority over canonical shared
|
||||
documents; it does not own a separate private truth that is then copied into
|
||||
client state. Unity, tools, test harnesses, and later non-Unity clients open the
|
||||
same state store with the same runtime document registry and read/write the same
|
||||
typed documents through CultMesh/CultNet according to authority policy.
|
||||
|
||||
The ergonomic contract is stricter than "typed records are available
|
||||
somewhere." A client must be able to ask CultMesh for the domain state it wants
|
||||
in one semantic call and receive a typed reactive document, collection, query
|
||||
result, operation handle, or native view. The caller should not manually walk
|
||||
through daemon frames, projected rows, record keys, schema slots, state refs,
|
||||
renderer-local facade indexes, or transport route decisions to reconstruct one
|
||||
gameplay value.
|
||||
|
||||
The default implementation contract is one canonical document type per gameplay
|
||||
state concept. If `AetheriaRuntimeFooDocument` is the gameplay state, that is
|
||||
the document the daemon mutates/publishes and the document clients receive from
|
||||
the shared assembly. A separate projected document exists only when the shape is
|
||||
intentionally different: hidden-info filtering, expensive aggregation, viewport
|
||||
windowing, SoA/native layout, lossy UI summaries, surface documents, or a named
|
||||
compatibility bridge. "The client needs to see it" is not a projection reason.
|
||||
|
||||
The shared entrypoint is `AetheriaRuntimeVerseClient` in the runtime state
|
||||
package. It opens a local `CultMeshNode` with the runtime-only Aetheria contract
|
||||
registry and exposes:
|
||||
|
||||
- current typed reads for provider advertisement, health, command boundary,
|
||||
latest daemon frame, latest SoA view, and daemon game/editor Eve surfaces;
|
||||
- reactive watches via `WatchRecord<T>(CultRecordKey)`, with record identity
|
||||
passed as data instead of one watch helper per document lane;
|
||||
- `MutableDocument<T>(CultRecordKey)` handles for transparent reactive POCO
|
||||
presentation, including read, watch, and replace through shared CultMesh
|
||||
Verse context semantics, with record identity passed as data;
|
||||
- typed daemon and Eve command submission through the same command record keys
|
||||
used by the daemon.
|
||||
|
||||
This is the baseline local-record shape:
|
||||
|
||||
```csharp
|
||||
using var client = await AetheriaRuntimeVerseClient.OpenAsync(
|
||||
statePath,
|
||||
runtimeId: "unity-render-client");
|
||||
|
||||
using var frames = client
|
||||
.WatchRecord<AetheriaRuntimeDaemonFrameDocument>(
|
||||
AetheriaRuntimeVerseRecordKeys.DaemonFrameLatest)
|
||||
.Subscribe(change =>
|
||||
{
|
||||
var frame = change.Document;
|
||||
if (frame == null)
|
||||
return;
|
||||
|
||||
// Feed presentation jobs from the authoritative daemon frame.
|
||||
});
|
||||
|
||||
var soa = await client
|
||||
.Document<AetheriaRuntimeDaemonSoaViewDocument>(
|
||||
AetheriaRuntimeVerseRecordKeys.DaemonSoaViewLatest)
|
||||
.LatestAsync();
|
||||
```
|
||||
|
||||
That baseline is not the desired presentation API for gameplay state. Unity
|
||||
menus, HUDs, renderers, RTS panels, and tools should move toward semantic
|
||||
handles:
|
||||
|
||||
```csharp
|
||||
using var verse = await AetheriaRuntimeVerseClient.OpenAsync(statePath, "tool-client");
|
||||
var aetheria = verse.Aetheria();
|
||||
|
||||
using var inventory = aetheria.State.Reactive<AetheriaRuntimeInventoryDocument>(entityIndex);
|
||||
using var docking = aetheria.State.Reactive<AetheriaRuntimeCurrentDockingDocument>();
|
||||
using var support = aetheria.State.Reactive<AetheriaRuntimeStationSupportDocument>();
|
||||
|
||||
var stationRefit = await aetheria.State.LatestAsync<AetheriaRuntimeStationRefitDocument>();
|
||||
var visibleObjects = await aetheria.Zone(currentZoneId)
|
||||
.Objects
|
||||
.VisibleToCurrentPlayer()
|
||||
.Within(cameraRect)
|
||||
.LatestAsync();
|
||||
```
|
||||
|
||||
The implementation behind those handles may read a local CultCache record,
|
||||
execute a derived query against the latest daemon frame, subscribe to a remote
|
||||
Verse, bind an Eve state pointer, or expose a native slab view. That decision is
|
||||
CultMesh infrastructure. The caller gets a typed domain value and diagnostics
|
||||
when it asks for them.
|
||||
|
||||
Client input follows the same rule. Ordinary and Arena clients submit typed
|
||||
operations and reconcile to authoritative state. In Starbridge Pilot
|
||||
jurisdiction the prediction policy is reversed: the Commander daemon publishes
|
||||
the default provisional result, a Pilot daemon submits a candidate derived from
|
||||
the same tick envelope, and a valid mismatch corrects/replays Commander state
|
||||
to the Pilot result before finality. Mutating a managed typed document may be
|
||||
the ergonomic prediction surface, but it never appends canonical state
|
||||
directly. Outside Pilot jurisdiction, the Commander result stands.
|
||||
|
||||
Unity should treat the client as its Aetheria-facing runtime surface. It can
|
||||
still use Burst, DOTS rendering, and native views for presentation, but the state
|
||||
authority boundary is the typed CultMesh contract. No Unity-facing code should
|
||||
reach for string command names, mutable payload dictionaries, local simulation
|
||||
ticks, or daemon implementation classes.
|
||||
|
||||
No Unity-facing code should reconstruct state by joining `Current*Async()`,
|
||||
`StationRefitAsync()`, raw frame projections, typed rows, record keys, and
|
||||
`AetheriaUnityObservedFacadeIndex`. Renderer-local facades are temporary
|
||||
presentation caches, not gameplay-state accessors. If the caller wants current
|
||||
docking bay, target details, station stock, current inventory, or zone contacts,
|
||||
the public API should expose that as a typed CultMesh handle directly.
|
||||
|
||||
## Embedded Host Option
|
||||
|
||||
Running an embeddable daemon core in Unity remains a deployment option, but it
|
||||
does not change the client contract. Even in-process hosting should publish and
|
||||
consume the same typed records so that the Unity renderer, a standalone daemon,
|
||||
and another client all agree on schema and semantics.
|
||||
|
||||
The alternative idea of "Unity runs CultMesh using the same state assembly, but
|
||||
not the daemon assembly" is exactly what this contract supports. The Unity side
|
||||
references the runtime state package, opens `AetheriaRuntimeVerseClient`, and
|
||||
uses CultMesh reactive wrappers to observe daemon state as if it were native
|
||||
state. `AetheriaRuntimeVerseClient.Aetheria()` now exposes the first shared C#
|
||||
domain facade for projected current/station/zone documents, and `AetheriaClient`
|
||||
delegates to that same facade instead of owning a private projection wrapper.
|
||||
|
||||
## Eve Surface Boundary
|
||||
|
||||
The daemon already publishes game and editor Eve surface records at these keys:
|
||||
|
||||
- `eve:surface:aetheria.daemon.game`
|
||||
- `eve:surface:aetheria.daemon.game.tui`
|
||||
- `eve:surface:aetheria.daemon.editor`
|
||||
- `eve:surface:aetheria.daemon.editor.tui`
|
||||
|
||||
`AetheriaRuntimeVerseRecordKeys` exposes those keys and
|
||||
`AetheriaRuntimeVerseClient` exposes typed reads, mutable state pointers, and
|
||||
`WatchRecord<GameCult.Eve.Surface.EveSurfaceDocument>(CultRecordKey)`
|
||||
subscriptions for all four. Eve owns the surface document and composition DSL;
|
||||
CultMesh owns the transport, typed handles, state refs, operation bindings, and
|
||||
route hints that let clients observe and invoke that surface. A Unity client,
|
||||
terminal client, daemon inspector, or later non-C# runtime binding lowers the
|
||||
same published `GameCult.Eve.Surface.EveSurfaceDocument`. The existing Eve Unity
|
||||
runtime host can keep resolving Aetheria state refs automatically; it consumes
|
||||
those refs as part of lowering the shared surface, not as a separate authority
|
||||
path.
|
||||
|
|
@ -1,343 +0,0 @@
|
|||
# Blender Entity Authoring v1
|
||||
|
||||
This contract makes one Blender collection the authoring authority for an
|
||||
Aetheria ship, station, turret, drone, or other hull-shaped entity. Unity
|
||||
prefabs are import products. They do not own hull semantics.
|
||||
|
||||
The source `.blend` is consumed by the Brokkr asset pipeline. Brokkr captures
|
||||
the collection, validates it, packages geometry, textures, materials, skins,
|
||||
and animation through the CultMesh CDN, then publishes a
|
||||
`gamecult.mesh.entity_prefab_package.v1` document. Generic clients lower that
|
||||
portable package. Clients do not need the `.blend` file or Aetheria provider
|
||||
code.
|
||||
|
||||
## Authority map
|
||||
|
||||
- **Owner:** one root Blender collection owns the authored entity.
|
||||
- **Inputs:** Blender collections, objects, meshes, armatures, actions,
|
||||
materials, images, transforms, and namespaced custom properties.
|
||||
- **Outputs:** a Brokkr prefab snapshot, CDN artifact manifests and bodies, and
|
||||
one `CultMeshEntityPrefabPackage` graph.
|
||||
- **Derived state:** Unity prefabs, runtime scene objects, Ymir body fixtures,
|
||||
particle systems, fracture instances, and equipped prefab instances.
|
||||
- **Forbidden writers:** Unity prefabs, Eve lowerers, and client-side scripts
|
||||
must not redefine collision, sockets, ports, fracture membership, or joints.
|
||||
- **Shared path:** editor preview, daemon import, CDN packaging, and every
|
||||
runtime lowerer consume the same package graph.
|
||||
- **Deletion line:** semantics that exist only in Djinni or Longinus Unity
|
||||
prefabs must be migrated into Blender before those prefabs can be retired.
|
||||
|
||||
## Coordinates and identity
|
||||
|
||||
The root collection MUST carry:
|
||||
|
||||
| Property | Value |
|
||||
| --- | --- |
|
||||
| `aetheria.schema` | `gamecult.aetheria.blender_entity.v1` |
|
||||
| `aetheria.asset_id` | Stable provider-owned asset ID |
|
||||
| `aetheria.asset_kind` | `ship`, `station`, `turret`, `drone`, or `fixture` |
|
||||
| `aetheria.version` | Author-selected immutable version |
|
||||
| `aetheria.units` | `metres` |
|
||||
| `aetheria.handedness` | `right` |
|
||||
| `aetheria.up_axis` | `+Z` |
|
||||
| `aetheria.forward_axis` | `-Y` |
|
||||
|
||||
CultMesh stores source transforms in Blender coordinates. Each runtime lowerer
|
||||
owns one tested coordinate conversion. Authors must not pre-rotate objects for
|
||||
Unity.
|
||||
|
||||
Every exported collection, object, bone, material, image, and action MUST have
|
||||
a stable `aetheria.id`. Names are labels and may change. IDs use lower-case
|
||||
ASCII letters, digits, `.`, `_`, `/`, and `-`; they are unique within the root
|
||||
entity collection.
|
||||
|
||||
Custom properties are typed scalars or fixed numeric vectors. Do not hide the
|
||||
contract in a JSON string. New semantics require a versioned property or
|
||||
component contract.
|
||||
|
||||
## Collection roles
|
||||
|
||||
Names below are the recommended readable layout. The authoritative selector is
|
||||
the collection's `aetheria.role` property.
|
||||
|
||||
| Role | Purpose |
|
||||
| --- | --- |
|
||||
| `entity-root` | Exactly one root authoring collection. |
|
||||
| `visual` | Render geometry. Child collections may declare `aetheria.lod`. |
|
||||
| `collision` | Non-rendering collision proxy meshes. |
|
||||
| `destruction` | Parent for one or more destruction-set collections. |
|
||||
| `destruction-set` | A complete named set of explosion pieces. |
|
||||
| `sockets` | Attachment points and launch/emission ports. |
|
||||
| `variant-library` | Parent for hull-family variant declarations. |
|
||||
| `variant` | One compile-time selection of mount candidates and geometry modules. |
|
||||
| `rig` | Armatures and rig helpers. |
|
||||
| `animation` | Optional organizational collection for animation helpers. |
|
||||
| `preview` | Cameras, lights, labels, and scale references; never exported. |
|
||||
|
||||
Objects may belong to only one primary semantic role collection. They may also
|
||||
be linked into one or more `variant` collections to declare variant inclusion.
|
||||
Blender parenting is the runtime transform hierarchy; collection nesting is
|
||||
classification.
|
||||
|
||||
## Hull families, variants, and loadouts
|
||||
|
||||
The mature MechWarrior/BattleTech split is worth preserving: a reusable chassis
|
||||
owns the complete modeled hardpoint vocabulary; a variant selects which of
|
||||
those hardpoints exist; a loadout selects installed equipment. Those are three
|
||||
different authorities.
|
||||
|
||||
An Aetheria `.blend` therefore authors one **hull family** and may contain a
|
||||
`variant-library`. Each child `variant` collection carries:
|
||||
|
||||
- `aetheria.variant.variant_id`
|
||||
- `aetheria.variant.hull_id`, matching the root `aetheria.asset_id`
|
||||
- `aetheria.variant.display_name`
|
||||
|
||||
Objects linked only to their primary role collection are common to every
|
||||
variant. An object additionally linked to one or more `variant` collections is
|
||||
included only in those variants. This supports variant-specific hardpoint
|
||||
placement, cowlings, apertures, collision proxies, and destruction pieces
|
||||
without copying the base mesh.
|
||||
|
||||
The deployer emits one portable prefab package per variant while reusing the
|
||||
same content-addressed mesh and texture artifacts. Aetheria's typed hull or
|
||||
item definition references the variant package. Installed equipment remains
|
||||
daemon-owned entity state and is never saved into the `.blend`.
|
||||
|
||||
The distinction is structural:
|
||||
|
||||
- The hull family says, "these mounts and geometry modules can physically
|
||||
exist."
|
||||
- The variant says, "this subset exists on this manufactured hull."
|
||||
- The loadout says, "these item instances are installed now."
|
||||
|
||||
No layer may repair an impossible request from the layer above. If a variant
|
||||
selects a hardpoint with no presentable geometry or envelope, the import fails.
|
||||
|
||||
## Object roles
|
||||
|
||||
All exported objects carry `aetheria.id` and `aetheria.role`.
|
||||
|
||||
### Visual meshes
|
||||
|
||||
`aetheria.role = visual` identifies render geometry. The containing visual
|
||||
collection supplies `aetheria.lod`; `0` is mandatory. Materials and all image
|
||||
nodes reachable from them are CDN dependencies. Packed images are legal source
|
||||
assets but are unpacked into independent CDN artifacts by the deployer.
|
||||
|
||||
Skinned visual meshes use an ordinary Blender Armature modifier. Shape keys,
|
||||
vertex groups, armature bindings, and actions are exported through the skin and
|
||||
animation payload. Generic clients receive a standard render/skin graph, not a
|
||||
Unity Animator controller.
|
||||
|
||||
### Collision proxies
|
||||
|
||||
Collision meshes use `aetheria.role = collision` and:
|
||||
|
||||
| Property | Meaning |
|
||||
| --- | --- |
|
||||
| `aetheria.collider.shape` | `box`, `sphere`, `capsule`, `convex`, or `mesh` |
|
||||
| `aetheria.collider.body_id` | Stable body or articulated-body ID |
|
||||
| `aetheria.collider.trigger` | Boolean trigger intent |
|
||||
| `aetheria.collider.material` | Provider physics-material ID |
|
||||
|
||||
Proxy geometry is authoritative. `box`, `sphere`, and `capsule` meshes define
|
||||
their fitted dimensions; `convex` defines a convex hull; `mesh` is reserved for
|
||||
static bodies such as stations. The Aetheria importer lowers these facts into
|
||||
Ymir/Box3D fixtures appropriate to the simulation plane. Render meshes are
|
||||
never silently substituted as collision meshes.
|
||||
|
||||
### Destruction sets
|
||||
|
||||
Each `destruction-set` collection carries a stable `aetheria.destruction.set_id`.
|
||||
Every piece inside it is a visual mesh with:
|
||||
|
||||
- `aetheria.role = destruction-piece`
|
||||
- `aetheria.destruction.piece_id`
|
||||
- `aetheria.destruction.body_id`
|
||||
- `aetheria.destruction.mass_fraction`
|
||||
|
||||
Mass fractions in a set sum to one within importer tolerance. A set is selected
|
||||
as a whole; collection membership is not inferred from names or proximity.
|
||||
Explosion impulse, lifetime, and loot are simulation state owned by the daemon,
|
||||
not mesh metadata.
|
||||
|
||||
### Hardpoints
|
||||
|
||||
A hardpoint is an Empty with `aetheria.role = socket` and:
|
||||
|
||||
- `aetheria.socket.kind = hardpoint`
|
||||
- `aetheria.socket.accepts = weapon`, `utility`, `radiator`, or another typed
|
||||
equipment category
|
||||
- `aetheria.socket.size` as the provider's slot-size token
|
||||
- `aetheria.socket.mount_standard` as the transform/envelope contract implemented
|
||||
by compatible equipment prefabs
|
||||
- `aetheria.socket.presentation_group` for selecting the hull's modeled mount
|
||||
family when a cowl or aperture differs by weapon category
|
||||
- `aetheria.region_id` for the structural region containing the mount
|
||||
|
||||
The equipped prefab root is instantiated at the Empty's local transform. Its
|
||||
local `-Y` axis is forward and local `+Z` is up. Weapon muzzle points belong to
|
||||
the equipped weapon prefab, not the hull hardpoint.
|
||||
|
||||
### Thruster, missile, and drone ports
|
||||
|
||||
Ports use `aetheria.role = port`, a stable `aetheria.port.group_id`, and an
|
||||
`aetheria.port.kind` of `thruster`, `missile`, or `drone`.
|
||||
|
||||
Thruster ports MUST be meshes. Their triangles are the particle emission
|
||||
surface and their local `-Y` axis is exhaust flow. They also carry
|
||||
`aetheria.port.flow_axis = local:-Y`. They are semantic meshes, not visible hull
|
||||
geometry.
|
||||
|
||||
Missile ports are ordered Empty transforms or aperture meshes. Drone ports are
|
||||
Empty spawn transforms or aperture meshes. Ordered banks add
|
||||
`aetheria.port.sequence`, starting at zero. The daemon decides whether and when
|
||||
something launches; the port only describes where and how it is presented.
|
||||
|
||||
### Armatures and joints
|
||||
|
||||
Armatures use normal Blender bones, weights, constraints, and actions. Every
|
||||
exported bone has `aetheria.id`. A bone that declares an articulated joint also
|
||||
has:
|
||||
|
||||
| Property | Meaning |
|
||||
| --- | --- |
|
||||
| `aetheria.joint.kind` | `hinge`, `slider`, `fixed`, or `aim` |
|
||||
| `aetheria.joint.mode` | `animation` or `physics` |
|
||||
| `aetheria.joint.parent_body_id` | Parent collision body |
|
||||
| `aetheria.joint.child_body_id` | Child collision body |
|
||||
| `aetheria.joint.axis` | Local axis token such as `local:X` |
|
||||
| `aetheria.joint.limit_min` | Minimum degrees or metres |
|
||||
| `aetheria.joint.limit_max` | Maximum degrees or metres |
|
||||
|
||||
`animation` joints are presentation-only. `physics` joints are imported into
|
||||
daemon/Ymir state and require matching collision body IDs. An armature does not
|
||||
silently grant physics authority to a client animation.
|
||||
|
||||
Actions have `aetheria.id`, `aetheria.role = animation-clip`, and
|
||||
`aetheria.animation.loop`. Animation state is selected by typed entity state;
|
||||
clients merely lower the clip.
|
||||
|
||||
## Paint, patterns, and decals
|
||||
|
||||
Do not duplicate hull materials for every skin. A paintable material owns:
|
||||
|
||||
- ordinary PBR maps: base color, normal, ORM, and emissive;
|
||||
- a non-color `paint_mask` image;
|
||||
- `aetheria.material.paint_model = palette-mask-rgb-v1`;
|
||||
- three default palette colors.
|
||||
|
||||
The paint mask uses channel weights:
|
||||
|
||||
| Channel | Meaning |
|
||||
| --- | --- |
|
||||
| R | primary palette weight |
|
||||
| G | secondary palette weight |
|
||||
| B | tertiary palette weight |
|
||||
| A | total paint coverage; zero preserves authored base color |
|
||||
|
||||
RGB should normally be mutually exclusive but may blend at boundaries. The
|
||||
shader normalizes non-zero RGB before applying the palette, multiplies the
|
||||
result by alpha coverage, then composites over authored base color. Pattern
|
||||
textures can remap the same three weights without replacing PBR detail.
|
||||
Palette, pattern, weathering amount, and decal selection are instance or
|
||||
loadout presentation state; UVs and masks are hull-authoring state.
|
||||
|
||||
Mask channel meaning is declared on the image custom properties and copied into
|
||||
the CDN material definition. Generic lowerers consume the declared paint model;
|
||||
they do not recognize an Aetheria shader name.
|
||||
|
||||
## CultMesh lowering
|
||||
|
||||
The deployer maps authored facts into the existing portable prefab graph:
|
||||
|
||||
| Blender fact | Portable node/component intent |
|
||||
| --- | --- |
|
||||
| Visual mesh | `mesh` node plus mesh/material asset references |
|
||||
| Collision proxy | `collider` node plus `gamecult.prefab.collider.v1` |
|
||||
| Hardpoint/port | `socket` node plus `gamecult.prefab.socket.v1` or `gamecult.prefab.port.v1` |
|
||||
| Thruster surface | mesh asset plus `gamecult.prefab.emission_surface.v1` |
|
||||
| Destruction piece | mesh node plus `gamecult.prefab.destruction_piece.v1` |
|
||||
| Armature/joint | animation asset plus `gamecult.prefab.joint.v1` |
|
||||
|
||||
Those component IDs are portable intents. Aetheria owns their gameplay use;
|
||||
generic lowerers own only rendering, attachment, particles, animation, and
|
||||
collision-debug presentation. If CultMesh cannot carry one of these facts
|
||||
without opaque metadata, extend the typed prefab contract before shipping the
|
||||
asset. Do not add an Aetheria branch to EveUnity.
|
||||
|
||||
Recommended runtime payloads are GLB (`model/gltf-binary`) for geometry, skins,
|
||||
and animation; PNG or KTX2 for textures; and typed CultCache documents for the
|
||||
prefab graph and component intents. CDN manifests are content-addressed and
|
||||
provider-owned.
|
||||
|
||||
## Conformance fixture
|
||||
|
||||
`Asset Sources/Conformance/AetheriaEntityAuthoringV1.blend` exercises:
|
||||
|
||||
- LOD0 and LOD1 render meshes;
|
||||
- packed base-color, normal, ORM, and emissive maps;
|
||||
- box, sphere, convex, and articulated collision bodies;
|
||||
- two complete destruction sets;
|
||||
- weapon, utility, and radiator hardpoints;
|
||||
- mesh thruster emission ports;
|
||||
- ordered missile and drone ports;
|
||||
- a two-variant hull family with different hardpoint selections;
|
||||
- a channel-packed three-color paint mask;
|
||||
- a skinned articulated panel, armature, physics hinge metadata, and animation;
|
||||
- preview-only camera, light, and scale reference.
|
||||
|
||||
Regenerate and validate it headlessly:
|
||||
|
||||
```powershell
|
||||
blender --background --factory-startup --python tools/blender/create_aetheria_entity_fixture.py
|
||||
blender --background "Asset Sources/Conformance/AetheriaEntityAuthoringV1.blend" --python tools/blender/validate_aetheria_entity.py
|
||||
```
|
||||
|
||||
The validator prints `AETHERIA_ENTITY_FIXTURE_OK` and exits zero only when the
|
||||
contract is present. This validates authoring structure. A later pipeline smoke
|
||||
must also prove snapshot capture, CDN dependency packaging, portable-package
|
||||
publication, and lowering in a generic client.
|
||||
|
||||
## Prior art
|
||||
|
||||
- HBS's published [How to Create a BattleMech](https://ryanburrell.com/wp-content/uploads/2023/03/HBS_How-to-Create-a-BattleMech_X.pdf)
|
||||
records that most visual sources came from Piranha/MWO and treats
|
||||
`HardpointDataDef`, `ChassisDef`, `MechDef`, colliders, weapon prefabs,
|
||||
heraldry, and asset-bundle association as separate production steps.
|
||||
- Piranha's [MW5 Mod Editor Guide](https://static.mw5mercs.com/docs/MW5Mercs_Mod_Editor_Guide_%28v2.3%29.pdf)
|
||||
treats a loadout/variant as the spawnable selection and recommends a real
|
||||
test map for gameplay assets.
|
||||
- The community-documented MW5 asset split describes MDL/HPS/MDA/Loadout as
|
||||
chassis, modeled hardpoint vocabulary, variant, and installed configuration.
|
||||
See [Hardpoints, Mech Data, and Loadouts](https://mechwarrior5modding.fandom.com/wiki/Hardpoints%2C_Mech_Data%2C_and_Loadouts).
|
||||
We copy the ownership split, not Unreal's file formats.
|
||||
- Epic's [texture-mask guidance](https://dev.epicgames.com/documentation/unreal-engine/using-texture-masks-in-unreal-engine)
|
||||
documents channel packing as the normal way to carry several independent
|
||||
material masks efficiently.
|
||||
|
||||
## Pipeline gates exposed by the fixture
|
||||
|
||||
The current Brokkr Blender snapshot is not yet sufficient to deploy this
|
||||
contract. Before the importer can claim conformance it must capture:
|
||||
|
||||
- collection custom properties, including roles and variant declarations;
|
||||
- armature bones, bone custom properties, parentage, and bind poses;
|
||||
- Armature modifier targets, vertex groups, and skin weights;
|
||||
- actions, clip metadata, and animation curves;
|
||||
- mesh UV sets and material-to-image dependency edges;
|
||||
- packed image bytes and declared channel semantics;
|
||||
- stable mesh payload identity rather than mesh counts alone.
|
||||
|
||||
The deployer must then compile each variant into a fully resolved
|
||||
`CultMeshEntityPrefabPackage`, publish all referenced CDN bodies, and reject
|
||||
dangling IDs, duplicate IDs, unsupported component intents, missing payloads,
|
||||
invalid destruction mass closure, or physics joints whose body IDs do not
|
||||
exist.
|
||||
|
||||
The existing portable package also needs typed, advertised definitions for the
|
||||
socket, port, emission-surface, destruction-piece, and joint component intents.
|
||||
String metadata may carry a development probe, but it is not the released
|
||||
contract. This fixture is the acceptance input for that work; it is not evidence
|
||||
that the deploy lane already exists.
|
||||
|
|
@ -1,245 +0,0 @@
|
|||
# Cockpit And Doctrine Combat
|
||||
|
||||
Status: target gameplay direction
|
||||
|
||||
This document defines the intended Aetheria pilot experience beyond original-game parity. The source-derived behavior remains documented in
|
||||
`original-game-specification.md`; this document changes who owns combat precision and how the player understands the fight.
|
||||
|
||||
## Objective
|
||||
|
||||
Aetheria should make piloting a ship compelling at the distances, speeds, and information limits implied by its setting.
|
||||
|
||||
Manual aiming is the wrong primary skill test. A bot can place a firing solution more precisely than a human, many lethal attacks arrive from outside direct visual recognition, and the important decisions happen before a target becomes a clean object in the window. Combat should therefore focus on instruments, tactics, doctrine, and command while cognition performs precision sensing, maneuver calculation, fire control, guidance, and terminal execution.
|
||||
|
||||
The player still pilots a physical ship. They decide what result to pursue, what risks and expenditures are acceptable, which systems or capabilities to target, when to commit, and when to withdraw. Cognition under their control tries to realize that intent using the ship, crew, equipment, information, and authority actually available.
|
||||
|
||||
The desired loop is:
|
||||
|
||||
`fly -> interpret contacts -> establish doctrine -> designate intent -> supervise commitments -> disable, destroy, capture, or disengage -> recover -> refit`
|
||||
|
||||
## Ownership
|
||||
|
||||
### Player
|
||||
|
||||
The pilot owns:
|
||||
|
||||
- flight intent and the degree to which helm is delegated;
|
||||
- contact selection and attention priorities;
|
||||
- engagement objective;
|
||||
- target-system and protected-system priorities;
|
||||
- acceptable lethality and collateral risk;
|
||||
- ammunition, heat, signature, drone, and maneuver expenditure policy;
|
||||
- withdrawal and surrender conditions;
|
||||
- cognition autonomy and exception policy;
|
||||
- intervention at consequential commitment points.
|
||||
|
||||
### Cognition Planning
|
||||
|
||||
The daemon-hosted cognition planner derives proposed semantic actions within
|
||||
granted doctrine:
|
||||
|
||||
- sensor allocation and contact classification;
|
||||
- tactical positioning when helm authority is delegated;
|
||||
- weapon-group selection;
|
||||
- firing-solution construction and maintenance;
|
||||
- aim-point selection consistent with subsystem intent;
|
||||
- launch, guidance, loiter, interception, and recovery scheduling;
|
||||
- reassessment after damage, new evidence, surrender, or doctrine completion;
|
||||
- concise explanation of action, delay, refusal, and uncertainty.
|
||||
|
||||
Cognition does not inspect hidden truth. It plans from faction-local observations, retained information, doctrine, processing quality, cognitive load, communications, and available authority. The daemon command gate alone validates, accepts, and commits semantic actions. Cognition owns planning; it does not become a second execution authority.
|
||||
|
||||
### Daemon And Ymir
|
||||
|
||||
The player authors doctrine intent. The Aetheria daemon validates and owns its accepted canonical state along with cognition allocation, observations, accepted semantic actions, equipment state, committed world geometry and kinematics, deterministic probabilistic shot resolution, damage, and combat outcomes. It performs firing-solution spatial queries and persistent-payload motion and collision through Ymir. Ordinary weapon damage does not wait for a presentation projectile to collide. Clients submit typed intent and lower daemon-authored state through Eve; they do not aim locally, infer hits from effects, or maintain a private combat result. The normative resolver and cut line are defined in `deterministic-combat-resolution.md`.
|
||||
|
||||
## Cockpit View
|
||||
|
||||
The pilot view becomes first-person from an embodied cockpit rather than a third-person follow camera. The cockpit is a spatial presentation surface with three layers:
|
||||
|
||||
1. **Windows and world:** native geometry, nearby vessels, stations, projectiles, docking approaches, fields, and effects.
|
||||
2. **Fixed instruments:** persistent ship condition, propulsion, thermal, power, damage, cognition, deployment, and medical state.
|
||||
3. **Tactical projection:** observer-relative contacts, classifications, maneuver guidance, doctrine, commitments, and command exceptions.
|
||||
|
||||
The cockpit must remain useful when nothing lethal is directly visible. Windows provide embodiment and local orientation; instruments provide combat reality.
|
||||
|
||||
Instrument layout is authored presentation, but every value and command derives from typed daemon-owned state. Unity, Godot, and later pilot clients lower the same semantic cockpit surface without becoming gameplay authorities.
|
||||
|
||||
## Direct And Delegated Flight
|
||||
|
||||
Direct flight remains part of Terminus and the Starbridge pilot role. Steering, thrust, velocity control, docking, tractor work, and embodied navigation preserve the original game's strongest physical interaction.
|
||||
|
||||
Helm supports three authority levels:
|
||||
|
||||
- **Manual:** the player supplies continuous semantic movement intent.
|
||||
- **Assisted:** the player supplies heading, range, intercept, or maneuver intent and cognition resolves actuator use.
|
||||
- **Delegated:** cognition executes positioning doctrine such as hold range, screen an ally, break solution, withdraw, or match velocity.
|
||||
|
||||
Installed thrusters, drives, mass, heat, energy, damage, and control limits constrain all three modes through the same simulation path. Delegation does not grant hidden maneuver capability.
|
||||
|
||||
## Doctrine
|
||||
|
||||
Doctrine is an ordered policy over combat objectives and constraints, not a stance bonus and not a second AI personality.
|
||||
|
||||
A doctrine may define:
|
||||
|
||||
- engagement objective: observe, deter, capture, disable, destroy, protect, escape;
|
||||
- target priority: propulsion, weapons, sensors, cognition, cooling, power, communications, structure, crew spaces, cargo;
|
||||
- protected regions or capabilities;
|
||||
- acceptable lethality and collateral probability;
|
||||
- preferred weapons, payloads, and engagement ranges;
|
||||
- heat, power, ammunition, propellant, and signature reserves;
|
||||
- drone launch, loss, loiter, and recovery policy;
|
||||
- fire conditions under uncertain classification;
|
||||
- surrender and cease-fire response;
|
||||
- withdrawal thresholds;
|
||||
- decisions cognition may make without consultation.
|
||||
|
||||
The first implementation should provide authored doctrines such as `Destroy`, `Disable`, and `Disengage`, then allow the player to edit a compact set of priorities and constraints. Doctrine composition must remain readable during combat. It should not begin as a general-purpose visual programming language.
|
||||
|
||||
## Subsystem Intent And Fire Control
|
||||
|
||||
The player does not aim a reticle at a distant component. They designate a desired effect or subsystem class. Fire control chooses weapon groups, aspects, firing times, and aim points based on gathered target information and the ship's current solution.
|
||||
|
||||
Subsystem intent consumes existing and future mechanics:
|
||||
|
||||
- observer-relative target information;
|
||||
- inferred or known schematic topology;
|
||||
- weapon range, timing, spread, penetration, and damage type;
|
||||
- armor, fitted-item, and hull-cell damage paths;
|
||||
- target motion and countermaneuver;
|
||||
- cognition allocated to fire control;
|
||||
- fire-control throughput and solution quality;
|
||||
- protected regions and collateral constraints.
|
||||
|
||||
Better fire control both cycles more attacks and keeps more of them on the intended solution. Better cognition can maintain alternatives, recognize changed target state, allocate weapons, and choose when to spend terminal maneuver. Neither creates information or physical capability the ship does not possess.
|
||||
|
||||
The original semantic weapon actions remain the execution boundary. Cognition invokes those actions under doctrine instead of the player repeatedly pressing a fire binding.
|
||||
|
||||
## Commitment And Intervention
|
||||
|
||||
Routine execution proceeds without confirmation. The cockpit interrupts the player only when doctrine cannot resolve a consequential fork, including:
|
||||
|
||||
- materially ambiguous target identity;
|
||||
- conflict between protected and targeted systems;
|
||||
- transition from disabling to likely lethal effect;
|
||||
- expenditure below a declared heat, ammunition, propellant, or recovery reserve;
|
||||
- an action that substantially reveals ship geometry or capability;
|
||||
- loss of the information or authority required by standing orders;
|
||||
- surrender, disengagement opportunity, or withdrawal threshold;
|
||||
- a crew, cognition, or command-authority challenge.
|
||||
|
||||
An intervention presents the decision's causal shape: available evidence, expected effect, major uncertainty, resource and signature cost, recommendation, and time remaining. It must not pretend that a forecast is guaranteed truth.
|
||||
|
||||
## Required Instruments
|
||||
|
||||
The first cockpit surface requires six coherent instrument groups.
|
||||
|
||||
### Flight
|
||||
|
||||
Velocity, orientation, commanded and available acceleration, turn authority, maneuver reserve, destination or intercept, docking and tractor cues, and helm authority mode.
|
||||
|
||||
### Ship Schematic
|
||||
|
||||
Hull cells, armor, fitted equipment, local temperature, durability, online state, isolation, damage, and repair priority.
|
||||
|
||||
### Thermal And Power
|
||||
|
||||
Reactor output, capacitor state, demand by system, heat production and movement, radiator state, cooling limits, and forecast consequences of current doctrine.
|
||||
|
||||
### Contact Plot
|
||||
|
||||
Observer-relative contacts, information level, classification, hostility, selection, lock state, evidence age, active-ping consequences, and known uncertainty. Early versions may expose the original visibility model before richer hypothesis state exists.
|
||||
|
||||
### Doctrine And Command
|
||||
|
||||
Objective, target and protection priorities, expenditure limits, withdrawal conditions, autonomy, command owner, pending challenge, and unresolved exception.
|
||||
|
||||
### Weapons And Deployments
|
||||
|
||||
Weapon readiness, fire-control assignment, solution state, ammunition, launched platforms, drone tasks, loiter and recovery state, and the reason any expected action is being delayed or refused.
|
||||
|
||||
Cross-highlighting must connect these surfaces. Selecting a proposed attack should reveal its target region, weapons, power and heat cost, fire-control demand, expected signature, and doctrine rule. Selecting damage should reveal affected capability and current tactical consequence.
|
||||
|
||||
## Explainable Cognition
|
||||
|
||||
Delegated combat is only playable when the player can understand why the machine acts.
|
||||
|
||||
The cockpit must expose compact reason facts such as:
|
||||
|
||||
- holding fire because the propulsion solution crosses protected habitation;
|
||||
- repositioning for an aspect that exposes the selected subsystem;
|
||||
- reserving a weapon for terminal defense;
|
||||
- declining recovery because the rack cannot clear before threat arrival;
|
||||
- withdrawing because declared maneuver reserve has been crossed;
|
||||
- requesting command because classification confidence does not satisfy doctrine.
|
||||
|
||||
These are structured decision facts with references to observations, doctrine clauses, constraints, and semantic actions. They are not generated flavor text and not a client reconstruction of hidden AI state.
|
||||
|
||||
A bad outcome must remain diagnosable as some combination of incomplete information, cognition quality, cognitive load, damaged communications, weak fire control, unsuitable doctrine, conflicting authority, or physical impossibility. The interface may summarize; the underlying causal state must remain inspectable.
|
||||
|
||||
## Compatibility With The Original Loop
|
||||
|
||||
The original combat transition remains valid below the new command layer:
|
||||
|
||||
1. The player establishes doctrine and designates contact-level intent.
|
||||
2. Cognition allocates sensing, maneuver, fire control, and deployed platforms.
|
||||
3. Cognition chooses an available semantic equipment action.
|
||||
4. The daemon validates lock, range, cooldown, energy, heat, ammunition, authority, and behavior constraints.
|
||||
5. Ymir resolves spatial travel and collision where required.
|
||||
6. Damage applies through shields, armor, equipment, hull cells, and thermal state.
|
||||
7. Cognition reassesses objective completion, doctrine, and exceptions.
|
||||
8. The daemon commits and publishes typed facts and receipts through CultMesh; Eve composes their presentation and transient feedback.
|
||||
|
||||
Loot, cargo, docking, trade, refit, travel, and progression remain part of the pilot loop. Doctrine combat changes how an engagement is commanded, not why the player cares about surviving it.
|
||||
|
||||
## Canonical State Direction
|
||||
|
||||
Extend existing canonical documents before introducing another state shape. A new named projection is justified only by hidden-information filtering, viewport selection, expensive aggregation, lossy cockpit summary, or another deliberately different contract.
|
||||
|
||||
| Concept | Canonical document owner | Allowed projection | Forbidden duplicate |
|
||||
| --- | --- | --- | --- |
|
||||
| Ship systems, thermal, power, damage, movement, medical state | Existing `player_cockpit_state`, authored by daemon | Lossy Eve instrument composition | Renderer-owned cockpit model |
|
||||
| Contact and target knowledge | Existing `zone_contacts`, authored and observer-filtered by daemon | Viewport contact plot | Client classification cache treated as truth |
|
||||
| Equipment actions and readiness | Existing `action_slots` plus equipment behavior state, authored by daemon | Cockpit weapon/deployment summary | Separate doctrine weapon inventory |
|
||||
| Active doctrine and editable policy | One canonical doctrine document, authored through typed player operations and validated by daemon | Compact doctrine controls | Client-local policy used by combat execution |
|
||||
| Cognition allocation and load | Canonical cognition state, authored by daemon | Cockpit allocation summary | UI-owned cognition budget |
|
||||
| Combat assignment and subsystem intent | Canonical assignment state, authored by daemon-hosted planner through the command gate | Observer-safe target overlays | Client-generated aim points or assignments |
|
||||
| Fire-control solution | Daemon-private or faction-authorized state at the resolution gameplay requires | Observer-filtered confidence and reason summary | Publishing exact hidden solutions to every client |
|
||||
| Deployed-platform orders and recovery | Existing entity, behavior, docking, and action state extended with canonical orders | Deployment plot | Separate drone minigame truth |
|
||||
| Exceptions, challenges, and receipts | Canonical command and receipt documents, authored by daemon command gate | Cockpit intervention queue | Modal UI state that decides acceptance |
|
||||
| Decision reasons | Durable accepted decisions, refusals, material constraints, and receipts | Lossy explanation surface | Persisting every transient planner candidate as canonical history |
|
||||
|
||||
Do not build a private daemon combat model followed by a copied cockpit DTO graph. Transient planner deliberation may remain local to the daemon; only gameplay-relevant assignments, decisions, refusals, constraints, and receipts require durable shared state.
|
||||
|
||||
## First Playable Slice
|
||||
|
||||
The smallest test isolates indirect combat before rebuilding the complete pilot presentation:
|
||||
|
||||
- one authored encounter;
|
||||
- one player ship and one known hostile;
|
||||
- existing pilot presentation and direct manual helm;
|
||||
- one `Disable` doctrine;
|
||||
- one propulsion subsystem intent;
|
||||
- one existing weapon group;
|
||||
- daemon-hosted cognition choosing whether to activate that group;
|
||||
- two visible reason outcomes: `firing` or `holding`;
|
||||
- existing cell-based damage and equipment consequences;
|
||||
- fire ceases when propulsion is disabled.
|
||||
|
||||
The first-person cockpit, doctrine editing, protected regions, intervention prompts, additional doctrines, and assisted or delegated helm follow only after this proof establishes that commanding fire is more engaging than manually aiming it.
|
||||
|
||||
This slice answers one question before the design expands:
|
||||
|
||||
> Is it fun to pilot the ship while commanding the fight instead of performing precision gunnery better suited to the ship's cognition?
|
||||
|
||||
## Experience Proofs
|
||||
|
||||
1. A pilot can win an engagement without manually aiming or repeatedly firing weapon groups.
|
||||
2. Before committing, the pilot can explain the objective, selected subsystem intent, important cost, and major uncertainty.
|
||||
3. During delegated execution, the pilot can explain why weapons are firing, waiting, changing targets, or refusing an action.
|
||||
4. Direct, assisted, and delegated helm obey the same propulsion, heat, energy, mass, and damage constraints.
|
||||
5. A disabling doctrine ceases or changes fire when its objective is met.
|
||||
6. Damage to sensors, fire control, cognition, power, cooling, weapons, or communications visibly changes available doctrine execution.
|
||||
7. The cockpit remains useful when the lethal threat is outside direct visual recognition.
|
||||
8. Reconnect or view transfer restores doctrine, assignments, commitments, and command state without rerolling cognition decisions.
|
||||
|
|
@ -1,511 +0,0 @@
|
|||
# Implementing Aetheria Features With CultMesh
|
||||
|
||||
Date: 2026-06-28
|
||||
|
||||
This guide describes the target developer experience for adding Aetheria state
|
||||
with CultMesh. If the workflow grows into a chain of facades, sessions,
|
||||
projectors, adapters, and surface builders, stop and simplify the state API.
|
||||
That chain is heretek now: it means the feature is compensating for a missing
|
||||
typed document, query, operation, pointer, native view, or generated handle.
|
||||
|
||||
The rule is blunt:
|
||||
|
||||
```text
|
||||
small UI-only value: derive it inline from already accessible typed state
|
||||
named UI-only derived view: define the typed derived document, then read it
|
||||
simulation feature: define one canonical typed document, let daemon authority mutate it, consume the same document everywhere
|
||||
hot rendering/physics: use SoA, not object-graph UI documents
|
||||
```
|
||||
|
||||
CultMesh owns document identity, sync, prediction, reconciliation, and reactive
|
||||
access. Aetheria code should read like it is using game state, not walking
|
||||
protocol layers.
|
||||
|
||||
## Canonical Document Rule
|
||||
|
||||
The default shape is one shared typed document contract.
|
||||
|
||||
```text
|
||||
AetheriaRuntimeFooDocument
|
||||
-> daemon authority mutates/publishes it
|
||||
-> Unity/Electron/tools read the same document type
|
||||
-> authorized clients write intent or predictions through the managed handle
|
||||
```
|
||||
|
||||
Do not split a feature into "daemon truth" and a separate "CultMesh typed
|
||||
state" unless the second shape is intentionally different. The assembly is
|
||||
shared, so the document the daemon owns is also the document clients receive.
|
||||
Across runtimes, callers should feel like they are grabbing a handle on typed
|
||||
state and either reading it for display or writing to it for client input.
|
||||
|
||||
A second document is justified only when it earns a distinct job:
|
||||
|
||||
- hidden-information filtering;
|
||||
- expensive or shared derived state;
|
||||
- viewport/windowed selection;
|
||||
- SoA/native render or physics layout;
|
||||
- lossy presentation summaries;
|
||||
- UI surface documents, including nested CultUI `embeddedDocuments` slots when
|
||||
a parent surface reserves layout for a separately synced child document;
|
||||
- compatibility mirrors with a named removal stage.
|
||||
|
||||
Projection is not the normal way to make state client-visible. Projection is an
|
||||
exception for a different shape.
|
||||
|
||||
Nested UI does not loosen this rule. If a daemon-owned panel needs an embedded
|
||||
dropdown, item inspector, scene insert, or drag/drop target surface, the parent
|
||||
surface carries a `surface.slot` with `embeddedDocuments`, and each child is
|
||||
resolved as its own managed CultMesh document. The renderer lowers the retained
|
||||
tree and wires commands; it does not invent a Unity-only state model for the
|
||||
child surface.
|
||||
|
||||
Discovery and parity live with the shared Eve contract, not in an Aetheria-only
|
||||
helper. Any CultUI feature that affects nested surfaces must update the
|
||||
canonical fixture at `E:\Projects\Eve\web\fixtures\cultui-embedded-surface.json`
|
||||
or an equivalent versioned fixture, and it must be discoverable from
|
||||
`E:\Projects\Eve\docs\parity-testing-harness.md`. The active runtime checks are
|
||||
the browser DSL test, Eve parity harness, Flutter parity smoke, Unity build, and
|
||||
Aetheria verifier scripts. Android/Kotlin and Fensalir must remain listed in
|
||||
the matrix with explicit pending/unsupported status until they become active
|
||||
GUI CultUI renderers. Do not let an untested target disappear into politeness.
|
||||
|
||||
## The Ergonomic Bar
|
||||
|
||||
UI-only state should take one or two steps.
|
||||
|
||||
Use one step when the value is small and already derivable from state the caller
|
||||
has:
|
||||
|
||||
```csharp
|
||||
var currentDocking = client.State.Reactive<AetheriaRuntimeCurrentDockingDocument>();
|
||||
var bayName = currentDocking.Current?.DockingBayName ?? "";
|
||||
```
|
||||
|
||||
Use two steps when the derived view is shared, non-trivial, or should have a
|
||||
stable schema:
|
||||
|
||||
```text
|
||||
1. Define the typed derived document.
|
||||
2. Read it from Unity as a managed reactive typed document.
|
||||
```
|
||||
|
||||
Simulation state should take two or three steps:
|
||||
|
||||
```text
|
||||
1. Define the canonical typed document in the shared runtime package.
|
||||
2. Let the daemon mutate/publish that document as the authority for the Verse.
|
||||
3. Read the same managed document from clients; submit typed operations or,
|
||||
inside Starbridge Pilot jurisdiction, typed prediction candidates according
|
||||
to authority policy.
|
||||
```
|
||||
|
||||
Anything beyond that needs a clear reason. Performance-sensitive entity
|
||||
rendering uses SoA because it is a different data shape, not because ordinary UI
|
||||
state should become ceremonial.
|
||||
|
||||
## What CultMesh Should Hide
|
||||
|
||||
Feature authors should not manually handle:
|
||||
|
||||
- document routing keys;
|
||||
- protocol envelopes;
|
||||
- schema lookup;
|
||||
- cache hydration;
|
||||
- sync subscriptions;
|
||||
- prediction dispatch;
|
||||
- reconciliation smoothing;
|
||||
- session wrapper lifetime around a single document;
|
||||
- joins against raw daemon frame rows in UI code.
|
||||
|
||||
Those are CultMesh/runtime concerns. Unity callers should hold either a
|
||||
`CultMeshReactiveDocument<TDocument>` or a named typed handle that returns one.
|
||||
|
||||
## What Not To Add
|
||||
|
||||
Do not add new single-document wrappers such as:
|
||||
|
||||
```csharp
|
||||
AetheriaRuntimeSomeStateSession
|
||||
```
|
||||
|
||||
when the wrapper only stores a document, exposes `Current`, and calls
|
||||
`Dispose()`. That is a managed reactive document with a worse name.
|
||||
|
||||
Do not add feature-specific access paths like this:
|
||||
|
||||
```text
|
||||
daemon document -> session -> facade -> projector -> adapter -> surface builder -> caller
|
||||
```
|
||||
|
||||
That shape preserves reconstruction-era scaffolding. It does not express the
|
||||
game. At most, one boundary adapter may exist at an actual boundary: Unity
|
||||
GameObject presentation, Eve/CultUI lowering, legacy import, persistence, or
|
||||
native view ownership. If two or more layers appear in a row just to obtain one
|
||||
domain value, stop and move the missing primitive into CultMesh/CultLib or the
|
||||
generated Aetheria handle surface.
|
||||
|
||||
## Choosing The State Shape
|
||||
|
||||
Use inline derivation when:
|
||||
|
||||
- the value is UI-only;
|
||||
- the derivation is local and obvious;
|
||||
- the source typed document is already available to the caller;
|
||||
- no other system needs the result as a named state surface.
|
||||
|
||||
Use a derived typed document when:
|
||||
|
||||
- multiple callers need the same derived state;
|
||||
- the state is useful to Unity, RTS, tests, tooling, or the website simulator;
|
||||
- the derivation joins multiple source documents;
|
||||
- the result needs a stable schema or cross-runtime binding;
|
||||
- the derived view should update reactively as daemon state changes.
|
||||
|
||||
Use a canonical simulation document when:
|
||||
|
||||
- the value affects game rules;
|
||||
- input can mutate it;
|
||||
- it needs authority, replay, persistence, or reconciliation;
|
||||
- the daemon must validate operations before publishing the next state.
|
||||
|
||||
Use a derived typed document when the caller needs a different state shape,
|
||||
not merely because a client needs to see daemon-owned state.
|
||||
|
||||
Use SoA/native views when:
|
||||
|
||||
- Unity jobs, Burst, Ymir, or rendering need large columnar data;
|
||||
- row count and per-frame access make object graphs the wrong format;
|
||||
- the data is a hot view over canonical simulation state rather than a UI document.
|
||||
|
||||
## One-Step UI Derivation
|
||||
|
||||
For a small UI-only value, read existing typed state directly.
|
||||
|
||||
```csharp
|
||||
using GameCult.Aetheria.State.Verse;
|
||||
using GameCult.Mesh;
|
||||
|
||||
public sealed class DockingBadge : IDisposable
|
||||
{
|
||||
private readonly AetheriaClient _client;
|
||||
private CultMeshReactiveDocument<AetheriaRuntimeCurrentDockingDocument> _docking;
|
||||
|
||||
public DockingBadge(AetheriaClient client)
|
||||
{
|
||||
_client = client;
|
||||
}
|
||||
|
||||
public string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
_docking ??= _client.State
|
||||
.Reactive<AetheriaRuntimeCurrentDockingDocument>();
|
||||
var current = _docking.Current;
|
||||
return current?.IsDocked == true ? current.DockingBayName : "";
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_docking?.Dispose();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The caller does not need a custom facade, session, projector, or adapter. If the
|
||||
inline derivation becomes shared or hard to read, promote it to a derived
|
||||
document.
|
||||
|
||||
## Two-Step Derived UI Document
|
||||
|
||||
Use this for shared presentation state such as player HUD, docking summary,
|
||||
commander wave status, station service summary, or Starbridge support alerts.
|
||||
|
||||
Before adding this document, ask whether the UI can read the canonical
|
||||
simulation document directly. If it can, do that. The derived document exists only
|
||||
when the UI shape is genuinely derived, filtered, windowed, or shared enough to
|
||||
deserve its own schema.
|
||||
|
||||
### Step 1: Define The Derived Document
|
||||
|
||||
Put the document type in the shared runtime package so every runtime sees the
|
||||
same schema:
|
||||
|
||||
```text
|
||||
Packages/org.gamecult.aetheria.state/Runtime
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```csharp
|
||||
[MessagePackObject]
|
||||
[CultDocument(AetheriaRuntimeDaemonSchemas.ZoneDefenseStatus)]
|
||||
public sealed class AetheriaRuntimeZoneDefenseStatusDocument
|
||||
{
|
||||
[Key(0)]
|
||||
public int ZoneIndex { get; set; } = -1;
|
||||
|
||||
[Key(1)]
|
||||
public double BaseShieldRatio { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int IncomingHostileCount { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int ActiveTurretCount { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public string AlertLevel { get; set; } = "";
|
||||
}
|
||||
```
|
||||
|
||||
Then make it available through generic managed state access:
|
||||
|
||||
```csharp
|
||||
using var status =
|
||||
client.State.Reactive<AetheriaRuntimeZoneDefenseStatusDocument>();
|
||||
```
|
||||
|
||||
The exact registration/publishing code belongs in the runtime plumbing. It
|
||||
should be generated or centralized. The feature author should not have to write
|
||||
five separate access classes, wrapper methods, sessions, or facades for one
|
||||
derived state shape.
|
||||
|
||||
### Step 2: Read It From Unity
|
||||
|
||||
Unity holds the typed reactive document and reads `Current`.
|
||||
|
||||
```csharp
|
||||
using GameCult.Aetheria.State.Verse;
|
||||
using GameCult.Mesh;
|
||||
|
||||
public sealed class ZoneDefenseHud : IDisposable
|
||||
{
|
||||
private readonly AetheriaClient _client;
|
||||
private CultMeshReactiveDocument<AetheriaRuntimeZoneDefenseStatusDocument> _status;
|
||||
|
||||
public ZoneDefenseHud(AetheriaClient client)
|
||||
{
|
||||
_client = client;
|
||||
}
|
||||
|
||||
public void Refresh()
|
||||
{
|
||||
_status ??= _client.State
|
||||
.Reactive<AetheriaRuntimeZoneDefenseStatusDocument>();
|
||||
var status = _status.Current;
|
||||
if (status == null)
|
||||
return;
|
||||
|
||||
DrawShield(status.BaseShieldRatio);
|
||||
DrawIncoming(status.IncomingHostileCount);
|
||||
DrawAlert(status.AlertLevel);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_status?.Dispose();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
That is the whole derived UI document workflow. If more steps are required, they
|
||||
belong in CultMesh/runtime infrastructure, not in every feature.
|
||||
|
||||
## Two Or Three-Step Simulation Feature
|
||||
|
||||
Use this when the feature changes gameplay: heat support, repair drones,
|
||||
station construction, scenario progression, commander infrastructure, or wave
|
||||
director state.
|
||||
|
||||
### Step 1: Define The Canonical Document
|
||||
|
||||
Simulation truth is the shared typed document. The daemon owns authority over
|
||||
that document, but the document contract is not daemon-private.
|
||||
|
||||
```csharp
|
||||
[MessagePackObject]
|
||||
[CultDocument(AetheriaRuntimeDaemonSchemas.StationSupport)]
|
||||
public sealed class AetheriaRuntimeStationSupportDocument
|
||||
{
|
||||
[Key(0)]
|
||||
public double CoolingReserve { get; set; }
|
||||
|
||||
[Key(1)]
|
||||
public double RepairNaniteReserve { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int ActiveSupportDrones { get; set; }
|
||||
}
|
||||
```
|
||||
|
||||
### Step 2: Let The Daemon Own Authority
|
||||
|
||||
The daemon validates operations, applies ticks, and publishes the canonical
|
||||
document into the Verse. Unity does not own gameplay truth, but Unity does not
|
||||
need a separate client-facing copy either. CultMesh handles sync. If the client
|
||||
has ordinary prediction rights, local changes are provisional and reconcile to
|
||||
authority. Starbridge Pilot jurisdiction deliberately reverses that mismatch
|
||||
policy: a valid Pilot candidate corrects and replays Commander provisional
|
||||
state before finality. In neither case does the managed client document append
|
||||
the canonical log directly.
|
||||
|
||||
### Step 3: Read Or Submit Through The Managed Handle
|
||||
|
||||
Unity reads the same document through the managed typed handle:
|
||||
|
||||
```csharp
|
||||
var support = client.State.Reactive<AetheriaRuntimeStationSupportDocument>();
|
||||
var cooling = support.Current?.CoolingReserve ?? 0;
|
||||
```
|
||||
|
||||
When the client has no prediction jurisdiction for a fact, it submits a typed
|
||||
operation to the applicable authority:
|
||||
|
||||
```csharp
|
||||
client.Operations.Submit(new AetheriaRuntimeDeploySupportDroneOperation
|
||||
{
|
||||
ZoneIndex = currentZone,
|
||||
TargetEntityIndex = targetEntity,
|
||||
DroneLoadoutId = selectedLoadout
|
||||
});
|
||||
```
|
||||
|
||||
The daemon validates and applies the operation. The next published document is
|
||||
the authoritative result.
|
||||
|
||||
When a Starbridge Pilot has prediction jurisdiction, modifying the managed
|
||||
reactive document records a candidate keyed to the Commander tick envelope.
|
||||
CultMesh routes it to the candidate selector. Matching state records agreement;
|
||||
a valid mismatch selects the Pilot result and triggers Commander replay. Late,
|
||||
invalid, or out-of-jurisdiction candidates cannot rewrite finalized state.
|
||||
|
||||
## SoA For Hot Paths
|
||||
|
||||
Use SoA when Unity needs fast columnar access, not when a UI needs a label.
|
||||
|
||||
Good SoA candidates:
|
||||
|
||||
- visible entity transforms;
|
||||
- render splats;
|
||||
- physics bodies;
|
||||
- sensor/contact rows for thousands of entities;
|
||||
- Ymir/Burst job inputs.
|
||||
|
||||
Bad SoA candidates:
|
||||
|
||||
- current docking bay;
|
||||
- selected object details;
|
||||
- HUD status;
|
||||
- player settings;
|
||||
- station service summary.
|
||||
|
||||
SoA should be a named high-performance view over canonical simulation state. It
|
||||
should not force ordinary presentation code to understand frame slabs, column
|
||||
handles, or native buffer ownership.
|
||||
|
||||
## Reconnection
|
||||
|
||||
State needed to reconstruct a player after a client crash must be in daemon or
|
||||
scenario/session CultMesh documents, not Unity locals.
|
||||
|
||||
Persist or republish:
|
||||
|
||||
- player identity and seat;
|
||||
- current entity or cockpit module;
|
||||
- docked station and bay;
|
||||
- inventory/loadout references;
|
||||
- scenario progress;
|
||||
- commander infrastructure state;
|
||||
- active operations that survive reconnect;
|
||||
- escape pod/proxy ship state when ejected.
|
||||
|
||||
On reconnect, Unity should reacquire typed documents and rebuild presentation
|
||||
from `Current`. Reconnection should not require replaying UI actions.
|
||||
|
||||
## Tests
|
||||
|
||||
For inline UI derivation, test the source document and the small consuming
|
||||
component when behavior is non-trivial.
|
||||
|
||||
For derived UI documents, test:
|
||||
|
||||
- derivation from representative daemon state;
|
||||
- empty/default state;
|
||||
- reactive update after source state changes;
|
||||
- Unity caller reads the typed document directly.
|
||||
|
||||
For nested CultUI surfaces, test every target runtime listed in the Eve parity
|
||||
matrix:
|
||||
|
||||
- browser DSL lowering discovers and renders `embeddedDocuments`;
|
||||
- Eve parity harness preserves slots, child document identity, and command
|
||||
wiring;
|
||||
- Flutter parity smoke renders the same nested surface contract;
|
||||
- Unity build/lowering binds the parent surface and embedded child documents
|
||||
without local projector state;
|
||||
- Aetheria verifier scripts prove the game daemon publishes the discoverable
|
||||
CultMesh surface document;
|
||||
- pending runtimes such as Android/Kotlin and Fensalir remain explicitly marked
|
||||
pending/unsupported until they have a real renderer test.
|
||||
|
||||
For simulation features, test:
|
||||
|
||||
- daemon tick/application mutates the canonical typed document;
|
||||
- typed operation validation accepts and rejects correctly;
|
||||
- clients read the same shared document type the daemon publishes;
|
||||
- prediction/reconciliation behavior when the runtime supports local authority;
|
||||
- reconnect can reconstruct the required player state.
|
||||
|
||||
For SoA, test:
|
||||
|
||||
- row identity and generation;
|
||||
- bounds/ownership;
|
||||
- empty views;
|
||||
- large views;
|
||||
- native buffer lifetime.
|
||||
|
||||
## Verifier Rules
|
||||
|
||||
Verifier rules should guard the desired ergonomic shape. They should forbid
|
||||
reconstruction-era detours.
|
||||
|
||||
Good verifier expectations:
|
||||
|
||||
```text
|
||||
Unity caller owns CultMeshReactiveDocument<TDocument>
|
||||
Unity caller reads .Current
|
||||
Unity caller uses client.State.Reactive<TDocument>()
|
||||
Unity caller submits typed operations for mutations
|
||||
authorized caller mutates managed typed state as prediction/input
|
||||
hot renderer uses named SoA view
|
||||
```
|
||||
|
||||
Bad verifier expectations:
|
||||
|
||||
```text
|
||||
Unity caller owns AetheriaRuntime*Session for one document
|
||||
Unity caller calls ObserveFeatureName() wrapper only to read Current
|
||||
UI caller reads raw daemon frames and joins rows
|
||||
feature adds facade/projector/adapter/surface-builder chain
|
||||
feature introduces multiple translation layers to get one typed value
|
||||
```
|
||||
|
||||
The verifier should make the codebase harder to regress into ceremony, not
|
||||
freeze the ceremony in place.
|
||||
|
||||
## Final Check
|
||||
|
||||
Before calling a CultMesh feature ergonomic, answer these questions:
|
||||
|
||||
- Can a UI-only inline value be implemented in one local derivation?
|
||||
- Can a shared UI view be implemented by defining the document and reading
|
||||
it from Unity?
|
||||
- Can a simulation feature be explained as one canonical typed document plus
|
||||
authority policy and typed operations?
|
||||
- Does Unity code read domain state instead of protocol plumbing?
|
||||
- Is SoA reserved for hot paths?
|
||||
- Did the verifier protect the clean path instead of the old wrappers?
|
||||
|
||||
If the answer is no, fix the access shape before adding more feature code.
|
||||
|
|
@ -1,305 +0,0 @@
|
|||
# Deterministic Combat Resolution
|
||||
|
||||
Status: daemon armor-cell damage ownership implemented; broader combat parity remains
|
||||
|
||||
## Objective
|
||||
|
||||
Combat outcomes are deterministic probabilistic transactions resolved by the
|
||||
daemon from observer-local information and authoritative spatial state. A
|
||||
rendered projectile is evidence of a committed shot, not the owner of hit or
|
||||
damage truth.
|
||||
|
||||
The same resolver serves pilot cognition, RTS agents, autonomous NPCs, replay,
|
||||
and conformance. No caller receives hidden target truth or a more accurate
|
||||
execution path because it is human-controlled.
|
||||
|
||||
## Authority
|
||||
|
||||
### Owner
|
||||
|
||||
The daemon combat resolver owns shot identity, solution quality, seeded outcome,
|
||||
impact distribution, damage transaction, and combat receipts.
|
||||
|
||||
For committed direct and deployable hits, the daemon damage transaction is the
|
||||
single owner of layer ordering and mutation. It applies one shared
|
||||
`shield -> armor cell -> equipment -> scalar hull` transaction; neither the
|
||||
weapon path nor the deployable path owns a second damage model.
|
||||
|
||||
### Inputs
|
||||
|
||||
The resolver may read:
|
||||
|
||||
- the attacker's observer-local contact and information state;
|
||||
- selected target and intended effect or subsystem priority;
|
||||
- fire-control cognition allocation, quality, load, and retained solution;
|
||||
- weapon range, dispersion, damage spread, penetration, damage type, timing,
|
||||
guidance, visibility, ammunition, heat, and energy state;
|
||||
- Ymir-authored positions, orientations, velocities, angular motion, body
|
||||
bounds, and line-of-fire geometry at commitment time;
|
||||
- target signature, known silhouette/topology, countermaneuver,
|
||||
countermeasures, and only those defenses exposed by gathered information;
|
||||
- doctrine constraints and accepted semantic action parameters;
|
||||
- a deterministic entropy key derived from run seed and stable shot identity.
|
||||
- the target hull shape and hardpoint catalog topology used to initialize its
|
||||
armor and maximum-armor grids;
|
||||
- the resolved impact position and direction supplied by the direct-shot or
|
||||
deployable detonation path.
|
||||
|
||||
Missing knowledge remains uncertainty. The resolver must not replace an
|
||||
observer's weak contact with canonical target internals when constructing its
|
||||
forecast or firing solution.
|
||||
|
||||
### Outputs
|
||||
|
||||
One committed shot produces an immutable receipt containing:
|
||||
|
||||
- shot, attacker, target-contact, weapon, and semantic-action identity;
|
||||
- observation versions and solution inputs used;
|
||||
- normalized solution quality and factor contributions;
|
||||
- hit probability and deterministic hit roll;
|
||||
- miss or hit classification;
|
||||
- aim intent and deterministic impact distribution;
|
||||
- impact region/cell or miss vector;
|
||||
- damage type, penetration, pre-mitigation damage, mitigations, and applied
|
||||
shield/armor/hull/equipment damage;
|
||||
- resource, heat, signature, cooldown, ammunition, and wear transactions;
|
||||
- causal refusal or cancellation facts when no shot was committed;
|
||||
- presentation timing and trajectory hints derived from the result.
|
||||
|
||||
Receipts are CultCache/CultMesh state. Eve projects them without becoming a
|
||||
second combat model.
|
||||
|
||||
The daemon also publishes the mutated armor and maximum-armor grids. Aggregate
|
||||
armor is derived from those cells for compact Eve status; exact cell values are
|
||||
available for the schematic. Scalar hull health is the terminal remainder of
|
||||
the transaction, not a substitute armor owner.
|
||||
|
||||
## Pipeline
|
||||
|
||||
```text
|
||||
semantic fire request
|
||||
-> command validation and doctrine gate
|
||||
-> observer-local firing-solution snapshot
|
||||
-> weapon resource transaction
|
||||
-> deterministic hit and impact sampling
|
||||
-> canonical damage transaction
|
||||
-> immutable shot receipt and feedback events
|
||||
-> derived Eve presentation trajectory/effects
|
||||
```
|
||||
|
||||
The transaction boundary is the committed shot. Resource payment, outcome,
|
||||
damage, and receipt publication either commit together or do not happen.
|
||||
|
||||
## Deterministic Entropy
|
||||
|
||||
Each stochastic dimension uses a named roll derived from:
|
||||
|
||||
```text
|
||||
run generation seed
|
||||
shot sequence or stable shot id
|
||||
attacker entity id
|
||||
weapon owner/behavior identity
|
||||
target contact id
|
||||
named dimension salt
|
||||
```
|
||||
|
||||
Named dimensions include `hit`, `impact-angle`, `impact-radius`,
|
||||
`penetration`, `damage-spread`, `countermeasure`, and `malfunction`. Adding a
|
||||
new roll must not perturb existing dimensions. Replaying the same accepted
|
||||
commands against the same state versions produces the same receipts.
|
||||
|
||||
## Solution Quality
|
||||
|
||||
Hit probability is not one opaque accuracy stat. The receipt publishes bounded
|
||||
factor contributions, initially:
|
||||
|
||||
- contact information and evidence age;
|
||||
- lock/solution maturity;
|
||||
- fire-control cognition quality and allocated throughput;
|
||||
- range against weapon effective range and damage curve;
|
||||
- weapon dispersion and platform stability;
|
||||
- target apparent size, aspect, transverse motion, and acceleration uncertainty;
|
||||
- attacker motion and damaged-control penalties;
|
||||
- target signature, jamming, decoys, and defensive maneuver;
|
||||
- aim-point specificity and subsystem knowledge;
|
||||
- guidance quality and time of flight where relevant.
|
||||
|
||||
The first implementation may use a documented weighted log-odds model. It must
|
||||
retain named contributions so later calibration can change without turning the
|
||||
result into an unexplained percentage.
|
||||
|
||||
## Impact Distribution
|
||||
|
||||
A hit samples an impact distribution rather than applying damage to an abstract
|
||||
target total. Distribution width comes from residual solution error, weapon
|
||||
spread, target motion uncertainty, range, and cognition quality. Distribution
|
||||
center comes from accepted aim intent and the observer's known target topology.
|
||||
|
||||
Low-information subsystem targeting broadens or biases the distribution; it
|
||||
does not secretly reveal the canonical component location. The sampled impact
|
||||
then enters the target's shield, armor, hull-cell, equipment, thermal, and crew
|
||||
damage pipeline.
|
||||
|
||||
The implemented damage transaction maps the deterministic impact onto the
|
||||
target schematic using the fossil's normalized UV multiplied by the complete
|
||||
schematic width and height before nearest-cell selection. Damage spread expands
|
||||
through orthogonally adjacent cells.
|
||||
Penetration advances through the schematic in 0.5-cell increments, including
|
||||
the fix for the fossil path that could fail to advance and loop forever. It
|
||||
stops at the first sample outside occupied hull topology, preserving the
|
||||
fossil's contiguous penetration rule rather than tunnelling into a disconnected
|
||||
hull island. Equipment interception uses the same rotation-aware footprint as
|
||||
refit placement, thermal simulation, and schematic projection. Damage type
|
||||
remains typed and is passed through state and receipts, but does not apply
|
||||
resistance modifiers: the fossil carried damage types but never used them for
|
||||
resistance.
|
||||
|
||||
Direct hits begin at the deterministic impact cell; a hit on a hardpoint begins
|
||||
with that hardpoint's complete footprint before spread and penetration expand
|
||||
the shape. Splash payloads such as mines preserve the fossil's distinct rule:
|
||||
they select the source-facing half of the hull schematic, then enter the same
|
||||
layer transaction.
|
||||
|
||||
Lethal damage commits destruction in the same daemon transaction boundary.
|
||||
The target receives one durable destruction identity, leaves the active Eve
|
||||
world, clears combat/docking references, and emits deterministic pickups. The
|
||||
fossil rules are preserved: every cargo stack drops, each equipped item rolls
|
||||
independently against `0.25`, launch velocity has magnitude `25`, and pickup
|
||||
lifetime is `30` seconds. A retained entity row is a non-rendered tombstone for
|
||||
stable identity and exactly-once replay protection; it is not a wreck or a
|
||||
second gameplay owner. The reserved `DestroyEntity` command is rejected.
|
||||
|
||||
## Armor-Cell Authority Map
|
||||
|
||||
- Owner: the daemon's canonical damage transaction owns shield interception,
|
||||
schematic impact mapping, armor-cell mutation, equipment damage, and scalar
|
||||
hull remainder for both direct and deployable damage.
|
||||
- Inputs: hull and hardpoint catalog topology, initialized armor and
|
||||
maximum-armor grids, authoritative target state, deterministic impact and
|
||||
direction, damage amount, spread, penetration, and typed damage type.
|
||||
- Outputs: atomically mutated shield resources, armor cells, equipment state,
|
||||
scalar hull, aggregate/exact Eve armor facts, and shot/damage receipts with
|
||||
the layers reached and damage applied at each layer.
|
||||
- Derived state: aggregate armor, schematic presentation, impact effects,
|
||||
meters, and scalar summaries are views of the canonical transaction. Damage
|
||||
type is currently pass-through evidence, not a resistance table.
|
||||
- Forbidden writers: direct-weapon handlers, deployable detonation handlers,
|
||||
Ymir contacts, Unity/Eve presentation, scalar-hull helpers, and repair loops
|
||||
may not independently order layers or mutate armor/equipment/hull.
|
||||
- Shared paths: direct shots and deployable detonations submit the same damage
|
||||
transaction after producing their authoritative impact facts.
|
||||
- Cut line: the old scalar-hull-only and per-caller damage paths no longer own
|
||||
damage. Catalog topology initializes the grids once; after initialization,
|
||||
only the daemon damage transaction mutates them.
|
||||
|
||||
## Charged Weapons
|
||||
|
||||
A charged fire request commits time before it commits a shot:
|
||||
|
||||
1. The daemon begins spool without requiring a current firing solution.
|
||||
2. Charge consumes authored energy and heat and reaches ready state.
|
||||
3. If an acceptable solution exists at readiness, the shot commits.
|
||||
4. Otherwise the weapon holds full charge while solution state continues to
|
||||
evolve.
|
||||
5. After the authored safe hold interval, one deterministic malfunction hazard
|
||||
check occurs per completed held second. Risk increases with overdue time.
|
||||
6. The first acceptable solution commits the shot automatically; a separate
|
||||
semantic cancel command may discharge it safely if the weapon supports that.
|
||||
|
||||
This preserves the tactical timing commitment without rebuilding a release-key
|
||||
dexterity test that agents solve differently from humans.
|
||||
|
||||
## Ymir Boundary
|
||||
|
||||
The Aetheria simulation owns committed world geometry and kinematics and uses
|
||||
Ymir as its deterministic spatial kernel. At commitment, the resolver may invoke
|
||||
Ymir for relative transforms, motion, body bounds, occlusion, and line-of-fire
|
||||
constraints. Ordinary weapon damage does not wait for a projectile body to
|
||||
overlap a target.
|
||||
|
||||
Physical entities remain appropriate when their continued existence changes
|
||||
the world: mines, drones, interceptable missiles, torpedoes, debris, boarding
|
||||
craft, area fields, and recoverable or destructible payloads. Those objects are
|
||||
not exempt from deterministic fire-control receipts. Their later motion and
|
||||
collision are computed by Ymir and committed by the Aetheria simulation.
|
||||
|
||||
For deployables, physics contact is evidence rather than consequence. Aetheria
|
||||
authors deployment, arming, trigger and detonation clocks, target eligibility,
|
||||
blast magnitude, damage, and event chronology. The injected Ymir implementation
|
||||
computes integration and overlap/contact facts inside that transaction. The
|
||||
production daemon currently embeds it in-process; moving the computation across
|
||||
CultNet must not create another persisted world or change simulation authority.
|
||||
|
||||
Mine lifetime and source-relative range expiry are also daemon-owned trigger
|
||||
causes. They enter the same detonation transaction as proximity triggers and
|
||||
retain their reason in the event chronology. Ymir movement happens before the
|
||||
range check, matching the original simulation ordering.
|
||||
|
||||
Shield interception follows the original behavior contract rather than a
|
||||
synthetic shield hitpoint pool. An enabled equipped Shield behavior may absorb
|
||||
the full incoming damage only when canonical capacitors can fund
|
||||
`damage * EnergyUsage`; absorption consumes that energy and adds
|
||||
`damage / Efficiency` heat. Otherwise damage reaches the hull transaction.
|
||||
Receipts publish absorbed damage, hull-applied damage, energy consumed, heat
|
||||
generated, and the semantic `shield` or `hull` impact kind.
|
||||
|
||||
## Eve Presentation
|
||||
|
||||
Eve receives:
|
||||
|
||||
- persistent firing-solution and weapon state;
|
||||
- immutable shot and damage receipts;
|
||||
- aggregate armor status and the exact armor/maximum-armor schematic grid;
|
||||
- hit/miss, impact, malfunction, refusal, and destruction chronology;
|
||||
- derived trajectory hints such as origin, impact/miss endpoint, launch time,
|
||||
impact time, effect identity, and view channels.
|
||||
|
||||
Unity, Electron, and future runtimes may interpolate tracers, beams, recoil,
|
||||
audio, impact effects, and cockpit instruments from those facts. A renderer may
|
||||
drop or simplify an effect. It may not promote a visual collision into damage.
|
||||
|
||||
## Forbidden Writers
|
||||
|
||||
- `IAetheriaRuntimeWorldPhysics.StepPhysicalPayloads` may report Ymir-backed
|
||||
motion and query facts but may not decide ordinary weapon damage.
|
||||
- Unity physics, effect managers, colliders, and particle systems may not report
|
||||
hits back as combat truth.
|
||||
- cognition and agents may propose shots but may not sample or apply outcomes.
|
||||
- Eve lowerers may not reconstruct hit probability from presentation props.
|
||||
- a repair loop may not reconcile client-observed impacts into daemon health.
|
||||
- direct and deployable callers may not bypass the shared layer transaction
|
||||
with scalar hull damage.
|
||||
- Unity, Eve, and command clients may not remove an entity or manufacture its
|
||||
loot after observing a destruction effect.
|
||||
|
||||
## Cut Line
|
||||
|
||||
Ordinary weapon authority is the shot resolver and damage transaction. It does
|
||||
not spawn a physical payload, advance one through Ymir, or apply damage from a
|
||||
returned contact. Physical payload documents exist only for objects whose
|
||||
continued motion and contact are gameplay state; their contact facts do not
|
||||
implicitly carry weapon damage authority.
|
||||
|
||||
The cut is complete only when a physical payload contact can no longer alter
|
||||
ordinary weapon damage and a missing presentation trajectory cannot suppress a
|
||||
resolved hit.
|
||||
|
||||
## Conformance
|
||||
|
||||
Required proofs:
|
||||
|
||||
1. Identical state and semantic commands produce byte-equivalent shot receipts.
|
||||
2. Changing only a named entropy salt does not perturb other roll dimensions.
|
||||
3. Weak target information changes solution quality without reading hidden
|
||||
target topology.
|
||||
4. Cognition quality, range, aspect, and target motion contribute independently
|
||||
and are visible in the receipt.
|
||||
5. Hit and miss both consume the committed weapon resources.
|
||||
6. Direct and deployable impacts share the shield, armor-cell, equipment, and
|
||||
scalar-hull transaction, with layer facts preserved in receipts.
|
||||
7. Removing all projectile presentation still produces the same damage receipt.
|
||||
8. Injecting a fake visual collision cannot produce damage.
|
||||
9. Charged hold risk replays exactly and commits immediately when a valid
|
||||
solution appears.
|
||||
10. Pilot and agent requests traverse the same command, resolver, and damage
|
||||
transaction.
|
||||
|
|
@ -1,533 +0,0 @@
|
|||
# Aetheria Developer Navigation
|
||||
|
||||
Date: 2026-06-25
|
||||
|
||||
This is the handoff map for working in the post-migration Aetheria tree. It is
|
||||
written for someone who already knows original Aetheria and needs to understand
|
||||
what changed, where the new seams are, and how to keep moving without being
|
||||
ambushed by half-finished architecture.
|
||||
|
||||
The short version: Unity is being reduced to a renderer, input surface, and
|
||||
editor environment. Durable game state and portable gameplay facts now live in
|
||||
typed CultCache/CultNet/CultMesh records under `Aetheria.State`. The daemon is
|
||||
the authority over canonical shared documents, not a private truth source that
|
||||
exports a second client copy. Unity and the Electron RTS client are clients of
|
||||
the same typed Verse state.
|
||||
|
||||
## Start Here
|
||||
|
||||
Read these in this order:
|
||||
|
||||
1. `docs/developer-navigation.md`
|
||||
You are here. This is the repo map and daily working guide.
|
||||
2. `docs/aetheria-current-codebase-model.md`
|
||||
Control-flow model of the codebase before the latest Stage 7 work. Some
|
||||
names have moved, but it is still the best broad map.
|
||||
3. `docs/game-modes-and-progression.md`
|
||||
Product-mode and cross-mode progression authority: Terminus, Starbridge,
|
||||
Arena, Hangar, deployment, and settlement.
|
||||
4. `docs/hangar-launcher.md`
|
||||
Shared launcher, deployment admission, ship-bay composition, and the cut
|
||||
from generic New Game to mode bootstrap.
|
||||
5. `Aetheria.State/docs/stage-7-thin-client-staged-implementation-plan.md`
|
||||
The staged migration plan. Use this when deciding what to build next.
|
||||
6. `Aetheria.State/docs/stage-7-client-surface-inventory.md`
|
||||
Surface inventory and edit queue for Unity/Electron/client boundaries.
|
||||
7. `docs/aetheria-verse-client-contract.md`
|
||||
Intended client contract: use typed Verse state, not daemon internals.
|
||||
8. `docs/cultmesh-feature-implementation-guide.md`
|
||||
Step-by-step guide for adding canonical typed state once, letting daemon
|
||||
authority own mutation, and consuming/interacting with the same document from
|
||||
Unity and other clients.
|
||||
9. `Aetheria.State/docs/verse-authority-implementation-plan.md`
|
||||
Authority and Starbridge staged implementation map.
|
||||
10. `docs/cockpit-doctrine-combat.md`
|
||||
Target pilot experience: first-person cockpit, direct and delegated helm,
|
||||
doctrine-owned combat intent, cognition-owned precision execution, and the
|
||||
typed state required to make delegation legible. This defines experience,
|
||||
while the authority implementation plan remains authoritative for build order.
|
||||
|
||||
Longer background/reference docs:
|
||||
|
||||
- `docs/aetheria-perfect-machine-map.md`
|
||||
- `Aetheria.State/docs/verse-daemon-shape.md`
|
||||
- `Aetheria.State/docs/verse-authority-policy.md`
|
||||
- `Aetheria.State/docs/cultmesh-cross-runtime-primitives.md`
|
||||
- `Aetheria.State/docs/cultmesh-ergonomics-staged-migration-plan.md`
|
||||
- `Aetheria.State/docs/daemon-code-map-for-rust-port.md`
|
||||
- `Aetheria.State/docs/rust-rebuild-freeze-checklist.md`
|
||||
|
||||
## What Changed
|
||||
|
||||
Original Aetheria had a lot of live gameplay state flowing through Unity object
|
||||
graphs: `ActionGameManager`, `Zone`, `Entity`, behavior instances, Unity UI
|
||||
panels, save files, catalog DTOs, and renderer caches all knew more than they
|
||||
should.
|
||||
|
||||
The current migration is moving toward this shape:
|
||||
|
||||
```text
|
||||
client input
|
||||
-> typed client handles
|
||||
-> typed command document
|
||||
-> local Verse node
|
||||
-> daemon command gate
|
||||
-> simulation
|
||||
-> typed daemon frame/fact documents
|
||||
-> local Verse replica
|
||||
-> managed typed document/query or native SoA view
|
||||
-> Unity/Electron rendering and UI
|
||||
```
|
||||
|
||||
The important shift is not "Unity talks to a daemon over a side channel." The
|
||||
important shift is "every runtime is a CultMesh participant reading and writing
|
||||
typed Verse state."
|
||||
|
||||
## Main Projects
|
||||
|
||||
`Aetheria.State`
|
||||
|
||||
Durable typed state and shared runtime contract. This is the center of the new
|
||||
world. It owns document types, schema registration, state mapping, Eve command
|
||||
bridges, provider advertisement, player settings, loadout templates, trade
|
||||
policy, Verse target state, and managed derived document/query helpers.
|
||||
|
||||
`Aetheria.State.Daemon`
|
||||
|
||||
The local daemon process. It opens the state node, starts CultMesh, accepts Eve
|
||||
and daemon command documents, ticks the authoritative run state, and republishes
|
||||
daemon frame/SoA/health/provider/surface records.
|
||||
|
||||
`Packages/org.gamecult.aetheria.state/Runtime`
|
||||
|
||||
The Unity-embeddable runtime state package. Unity, tests, daemon, and Electron
|
||||
binding generation all depend on this contract. This package contains the
|
||||
shared C# client handles (`AetheriaClient`, `AetheriaControl`, `AetheriaUi`),
|
||||
daemon command documents, RTS/current-entity documents, Starbridge documents,
|
||||
authority policy, SoA documents, Eve surface builders, and runtime catalog
|
||||
snapshots.
|
||||
|
||||
`Assets/Scripts`
|
||||
|
||||
Unity client, legacy simulation shell, UI, renderer, and migration adapters.
|
||||
This is no longer supposed to be the source of portable gameplay truth. Much of
|
||||
it still exists as a presentation adapter over old object shapes while the
|
||||
daemon contract fills in.
|
||||
|
||||
`Aetheria.Rts.Web`
|
||||
|
||||
Electron RTS client. It is intentionally thin: browser UI plus Electron
|
||||
CultMesh/Verse access, generated query/document reads, and typed operation helpers.
|
||||
Generated TypeScript bindings live in
|
||||
`Aetheria.Rts.Web/Electron/aetheria-rts-generated-bindings.ts` and are derived
|
||||
from C# `[Key]` declarations.
|
||||
|
||||
`Aetheria.State.Verify`
|
||||
|
||||
The fence. If a migration rule matters, this project should enforce it.
|
||||
Whenever you delete a bad path or promote a new typed surface, add a verifier
|
||||
assertion so the old path does not grow back.
|
||||
|
||||
`Aetheria.State.AuthoritySmoke`
|
||||
|
||||
Smoke coverage for authority/session behavior. This is a good "does the
|
||||
co-op/authority spine still breathe?" check.
|
||||
|
||||
`Aetheria.State.Freeze`
|
||||
|
||||
Documentation/freeze support for the C# API/Rust-port discussion. The Rust
|
||||
rebuild is shelved for MVP purposes, but the mapping is useful context.
|
||||
|
||||
## Daily Commands
|
||||
|
||||
Run these from repo root unless noted.
|
||||
|
||||
Core verifier:
|
||||
|
||||
```powershell
|
||||
dotnet run --project .\Aetheria.State.Verify\Aetheria.State.Verify.csproj
|
||||
```
|
||||
|
||||
Unity/runtime compile:
|
||||
|
||||
```powershell
|
||||
dotnet build .\GameCult.Aetheria.State.Unity.csproj --no-restore -v:minimal
|
||||
```
|
||||
|
||||
Replica compile:
|
||||
|
||||
```powershell
|
||||
dotnet build .\Aetheria.State.Replica\Aetheria.State.Replica.csproj --no-restore -v:minimal
|
||||
```
|
||||
|
||||
Authority smoke:
|
||||
|
||||
```powershell
|
||||
dotnet run --project .\Aetheria.State.AuthoritySmoke\Aetheria.State.AuthoritySmoke.csproj
|
||||
```
|
||||
|
||||
Stage 7 Unity parity:
|
||||
|
||||
```powershell
|
||||
.\Aetheria.State\scripts\verify-stage7d-unity-parity.ps1
|
||||
```
|
||||
|
||||
RTS/Electron contract checks:
|
||||
|
||||
```powershell
|
||||
cd .\Aetheria.Rts.Web
|
||||
npm run check:rts-bindings
|
||||
npm run verify:stage7c:electron
|
||||
```
|
||||
|
||||
Regenerate RTS bindings after changing C# `[MessagePackObject]` or `[Key]`
|
||||
contracts consumed by Electron:
|
||||
|
||||
```powershell
|
||||
cd .\Aetheria.Rts.Web
|
||||
npm run generate:rts-bindings
|
||||
```
|
||||
|
||||
Expected recurring warnings:
|
||||
|
||||
- `System.Numerics.Vectors` version conflict from Unity/Brokkr reference
|
||||
overlap. This is noisy but currently non-fatal.
|
||||
- Nullable warnings in some runtime surface builders. They are not new proof of
|
||||
failure unless they become errors or touch code you are actively changing.
|
||||
|
||||
## Current Mental Model
|
||||
|
||||
### State Owner
|
||||
|
||||
Typed CultCache/CultNet/CultMesh documents are the state owner. For normal
|
||||
gameplay features, define one canonical shared document and let authority policy
|
||||
decide who may write or predict it. Do not create "daemon truth" plus a separate
|
||||
client-facing copy unless the second document is intentionally filtered,
|
||||
aggregated, windowed, lossy, SoA/native, or a named compatibility bridge. The
|
||||
primary world file is:
|
||||
|
||||
```text
|
||||
GameData/aetheria-world.cc
|
||||
```
|
||||
|
||||
Local client target state also exists so Unity can resolve which Verse to open.
|
||||
Do not resurrect ad-hoc local files for gameplay state, loadouts, player
|
||||
settings, command ports, or viewport payload passing.
|
||||
|
||||
### Daemon Owner
|
||||
|
||||
`Aetheria.State.Daemon/Program.cs` is the process entry. The important runtime
|
||||
tick boundary is in:
|
||||
|
||||
```text
|
||||
Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonTickRunner.cs
|
||||
```
|
||||
|
||||
Command application is in:
|
||||
|
||||
```text
|
||||
Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonOperations.cs
|
||||
```
|
||||
|
||||
### Client Handles
|
||||
|
||||
Use `AetheriaClient` first:
|
||||
|
||||
```text
|
||||
Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs
|
||||
```
|
||||
|
||||
It exposes generic managed document reads such as `State.Latest<TDocument>()`
|
||||
and `State.Reactive<TDocument>()`, parameterized handles for viewport/detail
|
||||
documents, Starbridge seat handles, typed controls through `AetheriaControl`,
|
||||
and typed UI surface helpers through `AetheriaUi`.
|
||||
|
||||
If a Unity panel or Electron surface needs a fact, prefer the generic managed
|
||||
document call first. Add a named handle only when it carries semantic identity,
|
||||
parameters, operation policy, or a distinct derived/native shape. Avoid handing
|
||||
callers raw daemon frames unless the caller is an explicitly fenced transition.
|
||||
|
||||
### Unity Shell
|
||||
|
||||
Unity should do:
|
||||
|
||||
- input capture;
|
||||
- camera and presentation;
|
||||
- UI lowering;
|
||||
- local view caches;
|
||||
- Burst/DOTS/native rendering eventually;
|
||||
- editor affordances.
|
||||
|
||||
Unity should not do:
|
||||
|
||||
- portable gameplay authority;
|
||||
- server-authoritative simulation ticks;
|
||||
- trade pricing truth;
|
||||
- persistent loadout/player settings truth;
|
||||
- stringly public command APIs;
|
||||
- ad-hoc queues or buses as gameplay boundaries;
|
||||
- Unity physics authority.
|
||||
|
||||
`ActionGameManager` is now a shell and compatibility adapter. It is still big,
|
||||
but it is no longer the place to add new portable gameplay state.
|
||||
|
||||
### Electron RTS Client
|
||||
|
||||
The RTS client should have the same shape as Unity:
|
||||
|
||||
- local typed Verse/CultMesh access;
|
||||
- typed viewport/object/gravity/current selection reads;
|
||||
- typed command operations;
|
||||
- no bespoke gameplay rules except UI presentation and input behavior.
|
||||
|
||||
Do not add gameplay-only truth to `Aetheria.Rts.Web/Client/app.ts`. If it looks
|
||||
like a simulation rule, it belongs in the daemon/state layer.
|
||||
|
||||
## Important Files By Task
|
||||
|
||||
Add or inspect a typed runtime document:
|
||||
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeSnapshotDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeGameViewportDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeStarbridgeDocuments.cs`
|
||||
- `Aetheria.State/AetheriaDocumentRegistry.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeVerseClient.cs`
|
||||
|
||||
Add or inspect a daemon command:
|
||||
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonOperationClient.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonOperationsClient.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaControl.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonOperations.cs`
|
||||
- `Aetheria.State.Verify/Program.cs`
|
||||
|
||||
Add a managed derived document/query:
|
||||
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeGameDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-generated-bindings.ts`
|
||||
- `Aetheria.State.Verify/Program.cs`
|
||||
|
||||
Work on Unity thin-client migration:
|
||||
|
||||
- `Assets/Scripts/Gameplay/AetheriaDaemonObserver.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaUnityGameplayBootShell.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaUnityGameplayInputShell.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaUnityObservedFrameApplier.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaUnityCurrentEntityBinder.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaUnityTargetPresentation.cs`
|
||||
- `Assets/Scripts/UI/Menu/*.cs`
|
||||
- `Assets/Scripts/UI/HUD/SchematicDisplay.cs`
|
||||
- `Assets/Scripts/Zone Display/ZoneRenderer.cs`
|
||||
|
||||
Work on Eve/CultUI surfaces:
|
||||
|
||||
- `GameCult.Eve.Surface.EveSurfaceDocument` for daemon-published CultUI/Eve surfaces
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeSurfaceDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeEveCommandClient.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntime*SurfaceBuilder.cs`
|
||||
- `Packages/org.gamecult.aetheria.eve-runtime/Runtime/AetheriaEveSurfacePresenter.cs`
|
||||
- `Packages/org.gamecult.aetheria.eve-runtime/Runtime/AetheriaEveUnitySurfaceHost.cs`
|
||||
|
||||
Work on RTS/Electron:
|
||||
|
||||
- `Aetheria.Rts.Web/Client/app.ts`
|
||||
- `Aetheria.Rts.Web/Client/aetheria-rts-contract.ts`
|
||||
- `Aetheria.Rts.Web/Electron/main.ts`
|
||||
- `Aetheria.Rts.Web/Electron/preload.cjs`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-bindings.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts`
|
||||
- `Aetheria.Rts.Web/scripts/generate-rts-bindings.mjs`
|
||||
|
||||
Work on native/SoA render path:
|
||||
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonSoaDocuments.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonSoaFramePublisher.cs`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonSoaViewIndex.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaDaemonRenderNativeView.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaDaemonRenderBuffer.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaDaemonRenderMatrixJob.cs`
|
||||
- `Assets/Scripts/Gameplay/AetheriaDaemonRenderGroupMatrixJob.cs`
|
||||
|
||||
Work on Ymir/physics:
|
||||
|
||||
- `Assets/Scripts/Gameplay/Physics/AetheriaYmirPhysicsBridge.cs`
|
||||
- `Assets/Scripts/Gameplay/Weapons/*Manager.cs`
|
||||
- `Assets/Scripts/Gameplay/Weapons/*Projectile*.cs`
|
||||
- CultMath/Ymir code may live outside this repo; verify paths before editing.
|
||||
|
||||
## Migration Rules
|
||||
|
||||
1. Public client APIs must be typed.
|
||||
No public `Apply(command, payload)`, string command names, or raw payload
|
||||
dictionaries.
|
||||
|
||||
2. If Unity needs a gameplay fact, ask whether Electron/RTS would need the same
|
||||
fact.
|
||||
If yes, promote it into `Aetheria.State` and read it through `AetheriaClient`.
|
||||
|
||||
3. If a fact is needed every frame, prefer a typed query/document or SoA/native view.
|
||||
Do not make Unity crawl a whole daemon frame in a hot path unless the code is
|
||||
explicitly transitional and fenced by the verifier.
|
||||
|
||||
4. Add verifier coverage when deleting or replacing authority paths.
|
||||
`Aetheria.State.Verify` and `verify-stage7d-unity-parity.ps1` are not busy
|
||||
work; they are the migration memory.
|
||||
|
||||
5. Keep Electron thin.
|
||||
RTS UI may select, display, and submit typed operations. It should not invent
|
||||
enemy AI, movement rules, trade rules, station rules, or combat rules.
|
||||
|
||||
6. Keep Unity honest.
|
||||
Unity may adapt old object graphs for presentation until Stage 8 finishes,
|
||||
but new state truth belongs in typed documents.
|
||||
|
||||
7. Do not preserve legacy shape for its own sake.
|
||||
Git preserves history. The migration should delete dead shims when the typed
|
||||
replacement exists and tests prove it.
|
||||
|
||||
8. Treat facade/projector/adapter/surface-builder chains as a design failure.
|
||||
One adapter at a true boundary is fine. Stacked translation layers used to
|
||||
recover one typed value mean the code is missing a CultMesh primitive,
|
||||
generated handle, canonical document, query, operation, pointer, or native
|
||||
view.
|
||||
|
||||
## Known Transitional Debt
|
||||
|
||||
These are not surprises; they are known pressure points.
|
||||
|
||||
- `ActionGameManager` still exists and is still too large. It has been reduced,
|
||||
but it remains a compatibility shell around input, scene wiring, and legacy
|
||||
presentation.
|
||||
- Unity `Entity`, `Zone`, and behavior objects still exist as presentation and
|
||||
compatibility adapters. Do not treat them as the final state authority.
|
||||
- `ZoneRenderer` still has persistent presentation caches. Stage 8 should keep
|
||||
crushing it down toward per-frame query/native rendering.
|
||||
- Some command bodies are still a broad typed union document selected by
|
||||
`AetheriaRuntimeDaemonCommandKinds`. This is typed at the document boundary,
|
||||
but not as elegant as distinct operation bodies.
|
||||
- Some TypeScript generated binding metadata covers document slots better than
|
||||
nested ergonomic decode helpers. After C# contract changes, regenerate and
|
||||
check bindings.
|
||||
- The C# daemon is still the MVP path. The Rust rebuild notes are context, not
|
||||
the current target.
|
||||
- Physics is supposed to move to Ymir. Unity physics authority is forbidden, but
|
||||
some Unity-side presentation/bridge code still exists.
|
||||
|
||||
## How To Add A New Gameplay Surface
|
||||
|
||||
Use this checklist before writing code:
|
||||
|
||||
1. Name the owner.
|
||||
Is this daemon state, client presentation, local input configuration, or
|
||||
editor-only tooling?
|
||||
|
||||
2. Define the typed shape.
|
||||
Add or extend a MessagePack/CultNet document in the runtime package. Use
|
||||
explicit `[Key]` slots and stable names.
|
||||
|
||||
3. Add the simplest access path.
|
||||
Prefer `AetheriaClient.State.Latest<TDocument>()` or
|
||||
`AetheriaClient.State.Reactive<TDocument>()` for canonical documents. Add a
|
||||
named handle only when type alone cannot identify the document, such as
|
||||
parameterized viewport/detail state or multiple documents sharing one CLR
|
||||
type. Use `AetheriaControl` or `AetheriaUi` for typed operations and UI
|
||||
commands.
|
||||
|
||||
4. Lower Unity and Electron through the same semantics.
|
||||
Unity and RTS do not need identical UI, but they should observe the same
|
||||
facts and submit the same operation when policy allows it.
|
||||
|
||||
5. Add or update generated TS bindings.
|
||||
Run `npm run generate:rts-bindings` from `Aetheria.Rts.Web` when contract
|
||||
slots change.
|
||||
|
||||
6. Fence the old path.
|
||||
Add checks to `Aetheria.State.Verify/Program.cs` or the Stage 7 parity
|
||||
script.
|
||||
|
||||
7. Run the relevant gates.
|
||||
At minimum: state verifier, Unity compile, parity script, and RTS binding
|
||||
check when TS-visible contracts changed.
|
||||
|
||||
## How To Find Things Fast
|
||||
|
||||
Search for a typed schema:
|
||||
|
||||
```powershell
|
||||
rg -n "gamecult\.aetheria\..*\.v1|CultDocument|MessagePackObject" Aetheria.State Packages/org.gamecult.aetheria.state/Runtime
|
||||
```
|
||||
|
||||
Search for Unity still touching manager/global state:
|
||||
|
||||
```powershell
|
||||
rg -n "ActionGameManager\.|RuntimeCatalog|RuntimePlayerSettings|TryGetObserved" Assets/Scripts -g "*.cs"
|
||||
```
|
||||
|
||||
Search for stringly command smells:
|
||||
|
||||
```powershell
|
||||
rg -n "Apply\(command|payload|Dictionary<string|commandKind|CommandPort|EventBus|ConcurrentQueue|Channel" Assets/Scripts Packages/org.gamecult.aetheria.state Aetheria.Rts.Web
|
||||
```
|
||||
|
||||
Search for Unity physics authority:
|
||||
|
||||
```powershell
|
||||
rg -n "OnCollision|OnTrigger|Rigidbody|Collider|Physics\." Assets/Scripts -g "*.cs"
|
||||
```
|
||||
|
||||
Search for RTS contract drift:
|
||||
|
||||
```powershell
|
||||
rg -n "aetheriaRuntime.*Slots|AetheriaRuntime.*Slot" Aetheria.Rts.Web/Electron/aetheria-rts-generated-bindings.ts
|
||||
```
|
||||
|
||||
## Git And Generated Files
|
||||
|
||||
Keep these out of commits:
|
||||
|
||||
- `Aetheria.Rts.Web/node_modules/`
|
||||
- `Aetheria.Rts.Web/electron-dist/`
|
||||
- `Aetheria.Rts.Web/bin/`
|
||||
- `Aetheria.Rts.Web/obj/`
|
||||
- `Aetheria.Rts.Web/logs/`
|
||||
- `Aetheria.Rts.Web/runtime/`
|
||||
- `Aetheria.Rts.Web/wwwroot/*.js`
|
||||
- `Aetheria.State.* / bin` and `obj`
|
||||
- local `.cc.records` caches
|
||||
|
||||
Commit these when changed deliberately:
|
||||
|
||||
- C# source and Unity `.meta` files for new Unity scripts;
|
||||
- `Aetheria.Rts.Web/package.json` and `package-lock.json`;
|
||||
- TypeScript source under `Client/` and `Electron/`;
|
||||
- generated RTS binding metadata when C# document slots change;
|
||||
- docs and verifier scripts;
|
||||
- checked-in state seed files only when intentionally regenerated.
|
||||
|
||||
## If You Are Nervous
|
||||
|
||||
That is reasonable. This tree has been through a forceful migration and some of
|
||||
the names are newer than the instincts you built from the original codebase.
|
||||
The useful way to look at it is:
|
||||
|
||||
- your original simulation concepts are still recognizable;
|
||||
- the authority boundary moved out of Unity;
|
||||
- the new code is trying to make those concepts portable across Unity, RTS,
|
||||
daemon, and later clients;
|
||||
- anything that feels like ceremony should either be defended by a verifier or
|
||||
deleted in a later cleanup pass.
|
||||
|
||||
When in doubt, follow the typed state:
|
||||
|
||||
```text
|
||||
canonical document -> managed CultMesh handle -> client presentation/input
|
||||
typed operation -> daemon authority -> same canonical document
|
||||
projection/native view -> only when the shape is intentionally different
|
||||
```
|
||||
|
||||
If a path does not fit that shape, it is probably transitional debt or a bug.
|
||||
|
|
@ -1,240 +0,0 @@
|
|||
# Aetheria Game Modes And Progression
|
||||
|
||||
Status: adopted design; the first daemon-owned Hangar/Terminus deployment slice is implemented
|
||||
|
||||
## Product Modes
|
||||
|
||||
The first product spine contains three named modes. All three must remain
|
||||
runnable at a basic level from the start; depth may arrive unevenly, but no mode
|
||||
is deferred behind a mode-specific rewrite.
|
||||
|
||||
`Terminus` is Aetheria's single-player roguelike mode. A run begins from a
|
||||
hangar-selected ship and loadout, crosses a daemon-generated sequence of
|
||||
encounters and locations, and ends through extraction, victory, failure, or
|
||||
abandonment. Its local daemon is the sole gameplay authority. Its minimum
|
||||
complete loop is:
|
||||
|
||||
```text
|
||||
deploy -> fly -> fight -> salvage -> dock/refit -> choose risk -> continue
|
||||
-> extract or die -> settle once into the Hangar
|
||||
```
|
||||
|
||||
`Starbridge` is the cooperative mode. One commander and one to four pilots act
|
||||
in one shared session. Starbridge uses commander-default simulation with
|
||||
jurisdictional pilot correction. The Commander daemon simulates the entire
|
||||
session and owns canonical finality, persistence, and publication. Each Pilot
|
||||
daemon independently predicts facts for its own ship, its daemon-assigned
|
||||
nearest environment entities, and its assigned combat engagements. When a
|
||||
validated pilot result differs from the Commander daemon's provisional result,
|
||||
the pilot result wins and the Commander daemon corrects and deterministically
|
||||
replays from that boundary. The Commander player owns Verse authorship for
|
||||
everything outside pilot jurisdiction. It uses the same player identity, hull catalog,
|
||||
loadout templates, fitting rules, and Hangar progression as Terminus while
|
||||
adding the shared base, RTS projection, waves, fabrication, support systems,
|
||||
and recovered-technology decisions.
|
||||
|
||||
`Arena` is the PvP and competitive game-simulation mode. Arena is
|
||||
server-authoritative: the server owns admission, world state, simulation,
|
||||
rules, scoring, and outcomes.
|
||||
Human players and AI controllers are clients of the same typed observation and
|
||||
operation contracts. It is the primary harness for training and evaluating NPC
|
||||
agent policies and for running build-versus-build balance matrices under exact
|
||||
rules, seeds, and loadouts. An AI may run faster than real time or in a batch
|
||||
harness, but it cannot mutate simulation state through a privileged in-process
|
||||
shortcut. Arena admission policy may restrict, normalize, loan, or price
|
||||
eligible Hangar equipment without forking the inventory/loadout schema or
|
||||
trusting a client-authored ship.
|
||||
|
||||
Headless execution is a capability of the shared simulation, not an Arena-only
|
||||
implementation. Terminus, Starbridge, and Arena can all run without renderers
|
||||
for regression, agent development, batch simulation, and operational hosting.
|
||||
Attaching or removing Unity, Electron, or another Eve lowerer cannot change the
|
||||
authoritative result.
|
||||
|
||||
The tutorial is onboarding, not a progression authority or a fourth inventory.
|
||||
It may constrain a deployment, teach a Terminus-style run, and grant rewards
|
||||
only through the same settlement path as every other mode.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- **Owner:** one authoritative typed `Hangar` aggregate owns durable cross-mode
|
||||
progression for a player: owned hulls, stored equipment and cargo, currencies
|
||||
and materials, unlocks, saved loadout templates, and docked ship
|
||||
configuration.
|
||||
- **Inputs:** authenticated player identity, accepted typed Hangar operations,
|
||||
the typed catalog, and terminal settlement requests carrying session id,
|
||||
deployment id, terminal fact id, mode-policy/version identity, and proposed
|
||||
Hangar delta.
|
||||
- **Outputs:** canonical Hangar state, saved loadout templates,
|
||||
eligibility/affordability facts, and canonical settlement receipts and
|
||||
chronology.
|
||||
- **Derived state:** Eve menus, inventories, compatible-slot lists, run
|
||||
summaries, scoreboards, and Unity/Electron presentation. A loadout template
|
||||
is a recipe over canonical catalog keys, not a second inventory or a live
|
||||
entity graph.
|
||||
- **Forbidden writers:** Unity, Electron, AI controllers, Eve lowerers, proof
|
||||
scenario seeders, run checkpoints, mode authorities, and mode-specific
|
||||
bootstrap code cannot apply Hangar deltas or mint accepted settlement
|
||||
receipts. The Hangar cannot rewrite a live session after deployment.
|
||||
- **Shared paths:** every mode reads Hangar state by identity, requests
|
||||
admission through a typed Deployment, and submits terminal outcomes through
|
||||
the same Settlement boundary. Hangar refit and template edits use Hangar
|
||||
operations. In-session dock/refit uses session operations and crosses the
|
||||
boundary only at settlement. Resume reopens Hangar or session state by
|
||||
identity and cannot redeploy or resettle.
|
||||
- **Deletion line:** no `TerminusHangar`, `StarbridgeHangar`, Arena inventory,
|
||||
client-local unlock store, or mode-private loadout authority may exist.
|
||||
Fixture-only mutations remain confined to explicitly named witness profiles
|
||||
and are structurally unable to settle progression.
|
||||
|
||||
## Session Ownership
|
||||
|
||||
A mode admission authority validates a typed deployment request against a
|
||||
versioned Hangar snapshot and mode policy, then emits an immutable committed
|
||||
Deployment receipt/snapshot. The Hangar owns available durable assets and
|
||||
configuration; it does not own Arena admission or Starbridge role assignment.
|
||||
|
||||
A mode session owns its live world: instantiated ships and equipment, damage,
|
||||
temperature, energy, cargo gathered during the session, encounter state,
|
||||
score, mode-local stock, and outcome. Starting a mode instantiates session state
|
||||
from one committed deployment. After launch, changing the Hangar does not reach
|
||||
into the live world.
|
||||
|
||||
The authority policy differs without changing the document model:
|
||||
|
||||
- **Terminus:** the local daemon decides all gameplay state.
|
||||
- **Starbridge:** the Commander daemon owns default simulation and canonical
|
||||
persistence. Pilot daemons have prediction authority plus mismatch priority
|
||||
inside typed jurisdictions; the Commander daemon reconciles to a validated
|
||||
differing pilot result rather than correcting the pilot to its own result.
|
||||
- **Arena:** the authoritative server decides all gameplay state; humans and
|
||||
AIs submit operations and consume observations.
|
||||
|
||||
Each mode is also a concrete CultMesh authority proof:
|
||||
|
||||
- **Terminus proves local authority:** one local daemon owns simulation and
|
||||
finality while clients remain replaceable lowerers.
|
||||
- **Arena proves server authority:** remote human and AI controllers submit to
|
||||
one authoritative simulation server.
|
||||
- **Starbridge proves mixed authority:** the Commander daemon owns the default
|
||||
simulation and final log while validated Pilot predictions correct facts in
|
||||
explicitly assigned jurisdictions.
|
||||
|
||||
After Starbridge mixed authority and Arena server authority are proven in live
|
||||
play and deterministic replay, the next authority milestone is
|
||||
**witness-authoritative** operation. Witness authority must reuse the same typed
|
||||
fact slots, inputs, versions, evidence, finality, and replay contracts. It is
|
||||
not permission to fork gameplay state or build consensus machinery before the
|
||||
three product modes work.
|
||||
|
||||
The exact deployment/risk policy belongs to typed mode policy. Terminus may
|
||||
risk the deployed hull, insured value, carried equipment, extracted salvage,
|
||||
or some combination without changing the ownership model. Starbridge may loan
|
||||
or share session equipment. Arena may normalize deployments. In every case,
|
||||
the policy is evaluated by the applicable authority and reported in the
|
||||
deployment and settlement receipts, not inferred by a menu.
|
||||
|
||||
## First-Wave Vertical Slices
|
||||
|
||||
Each mode must prove the shared spine early:
|
||||
|
||||
1. **Terminus:** deploy, fly, fight, salvage, dock/refit, and settle one run.
|
||||
2. **Starbridge:** one commander and one pilot share a base/session, disagree on
|
||||
one pilot-jurisdiction fact, select the pilot result, replay Commander state,
|
||||
and converge on one finalized outcome.
|
||||
3. **Arena:** start a deterministic dedicated-server match, attach at least two
|
||||
controllers (human or AI), exchange typed observations/operations, resolve a
|
||||
scored combat outcome, and reproduce it from the same seed and inputs.
|
||||
|
||||
Arena is the canonical competitive simulation harness for AI development and
|
||||
balance work. Batch and accelerated execution use the same server simulation,
|
||||
admission policy, equipment rules, and command gate as live PvP. Controllers
|
||||
can pit NPC policy versions against each other, compare ship/loadout builds, and
|
||||
produce scored replayable outcomes. Renderers are optional consumers; headless
|
||||
execution is not a separate gameplay implementation.
|
||||
|
||||
Run-local loot and credits do not become durable merely because a client can
|
||||
display them. A mode authority submits a terminal outcome and proposed delta;
|
||||
the Hangar validates identity, policy, and idempotency before committing it.
|
||||
Every accepted terminal outcome—extraction, victory, failure, or abandonment—
|
||||
produces exactly one canonical Settlement receipt, even when its delta is zero.
|
||||
Retries return the existing receipt. A session without an accepted terminal
|
||||
fact produces none. Reconnect and restart resume canonical Hangar or session
|
||||
state; they do not replay rewards.
|
||||
|
||||
## Terminus Product And Witness Profiles
|
||||
|
||||
Terminus is the product mode. Its standard run is not a fixture. The existing
|
||||
deterministic scenarios remain useful subordinate verification profiles:
|
||||
|
||||
- `released-client-proof` creates controlled combat and salvage conditions;
|
||||
- `cargo-capacity-rejection-proof` creates a full-cargo rejection condition.
|
||||
|
||||
Those profiles exercise the same Terminus simulation, Eve surfaces, operations,
|
||||
and Unity lowering as the product. They use distinct run identities and cannot
|
||||
write Hangar progression. A proof profile may simplify content; it may not own
|
||||
a parallel gameplay path.
|
||||
|
||||
## Current Migration Seam
|
||||
|
||||
The daemon now owns one typed local Hangar, its starter ship, stored equipment,
|
||||
saved loadout template, Hangar revision, and immutable Terminus deployment
|
||||
receipt. It publishes `aetheria.hangar` as the ordinary Unity entry surface.
|
||||
The surface advertises equip, remove, launch, and continue operations. Launch
|
||||
instantiates the current committed loadout into a newly identified Terminus
|
||||
run; continue reopens the deployed run selected by the existing checkpoint.
|
||||
Unity remains a generic Eve lowerer and never edits those documents directly.
|
||||
|
||||
This is the first vertical slice, not the completed cross-mode progression
|
||||
machine. Settlement, currencies/unlocks, multiple owned ships, richer fitting
|
||||
interaction, Starbridge admission, and Arena admission still need to enter the
|
||||
same Hangar boundary. The old main-menu `New Game` writer is no longer a
|
||||
product run-creation authority. Explicit Terminus proof profiles remain
|
||||
verification-only inputs.
|
||||
|
||||
Arena does not yet have a named server/session/admission/score document family
|
||||
or a preserved headless controller harness. Shared simulation smokes are useful
|
||||
substrate, but they do not constitute the Arena mode. Starbridge's existing
|
||||
documents also do not by themselves prove mixed-authority convergence.
|
||||
|
||||
The next state-architecture cut is to carry this Hangar and Deployment boundary
|
||||
through Starbridge and Arena admission, then add exactly-once Settlement. Until
|
||||
those cuts land, documentation and verification must not describe the local
|
||||
starter Hangar as completed cross-mode progression, or generic simulation
|
||||
smokes as Arena product proof.
|
||||
|
||||
## Required Proofs
|
||||
|
||||
1. A saved Hangar loadout deploys into Terminus and Starbridge and enters Arena
|
||||
admission through the same typed operation and catalog keys.
|
||||
2. A Terminus run completes the playable loop, settles exactly once, and a new
|
||||
session observes the resulting durable Hangar state.
|
||||
3. Failure, abandonment, reconnect, and daemon restart cannot duplicate rewards
|
||||
or resurrect losses.
|
||||
4. Witness profiles cannot mutate Hangar progression.
|
||||
5. Unity and Electron can read and request operations but cannot write Hangar,
|
||||
deployment, session, or settlement state directly.
|
||||
6. No mode-specific inventory or loadout document can override the canonical
|
||||
Hangar.
|
||||
7. Arena produces the same authoritative result for the same initial state,
|
||||
seed, ordered typed operations, and simulation version whether controllers
|
||||
are humans, AIs, rendered clients, or a headless batch harness.
|
||||
8. Starbridge jurisdiction changes without changing fact/document schemas;
|
||||
diagnostics expose assignment epoch, provisional Commander result, pilot
|
||||
result, mismatch decision, replay boundary, and finalized result.
|
||||
9. Terminus and Starbridge also complete representative scenarios headlessly;
|
||||
attaching a renderer does not change their ordered facts or outcome.
|
||||
10. Arena balance batches record simulation version, content/catalog version,
|
||||
seed, admission policy, controller policy identities, deployments, ordered
|
||||
operations, and scored outcome so build and AI comparisons are reproducible.
|
||||
11. A terminal outcome cannot mutate Hangar state before Hangar acceptance;
|
||||
duplicate or reordered delivery returns the same receipt and delta.
|
||||
In-session refit and resume cannot invoke deployment or settlement.
|
||||
12. A Commander result inside active pilot jurisdiction cannot become externally
|
||||
final before the prediction window closes. A valid differing pilot result
|
||||
replaces it; stale, wrong-epoch, out-of-jurisdiction, or invalid pilot
|
||||
results cannot rewrite finalized history.
|
||||
13. Terminus, Starbridge, and Arena publish diagnostics identifying their active
|
||||
CultMesh authority configuration. Witness-authoritative work begins only
|
||||
after the Starbridge and Arena proofs pass without mode-specific state or
|
||||
operation schemas.
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
# Hangar Launcher
|
||||
|
||||
Status: the shared Hangar, deployment admission, and portable Hangar surface
|
||||
contracts exist. Mode session bootstrap still has to consume accepted deployment
|
||||
receipts; the old generic New Game path remains live until that cut is complete.
|
||||
The state assembly and viewport queries compile against CultMath `0.1.2`, whose
|
||||
canonical `rect` stores normalized `min`/`max` bounds.
|
||||
|
||||
The Hangar is the launcher and durable preparation space for Terminus,
|
||||
Starbridge, and Arena. Its composition borrows the useful information geometry
|
||||
of the early MechWarrior Online MechLab without copying its visual identity.
|
||||
|
||||
```text
|
||||
+-----------------------------------------------------------------------+
|
||||
| HANGAR TERMINUS | STARBRIDGE | ARENA | LAUNCH |
|
||||
+----------------------+-----------------------------+------------------+
|
||||
| selected ship | | fit summary |
|
||||
| hull / status | authored ship preview | weapons/support |
|
||||
| readiness | | mass/heat/power |
|
||||
| deployment policy | | EDIT LOADOUT |
|
||||
+----------------------+-----------------------------+------------------+
|
||||
| OWNED SHIPS: [bay] [bay] [bay] ... |
|
||||
+-----------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
The ship-bay strip selects one durable Hangar ship. Mode selection chooses one
|
||||
typed authority/admission policy. `Launch` submits the selected ship, loadout
|
||||
template, mode, policy id, and expected Hangar revision as one deployment
|
||||
request. The Hangar owner validates and commits the immutable deployment before
|
||||
any mode session may instantiate live state.
|
||||
|
||||
`Edit Loadout` opens the existing spatial inventory/refit interaction shape.
|
||||
The left/source inventory behaves like the trade menu's stock or cargo source;
|
||||
the ship equipment and cargo grids are the target. Drag, rotate, equip, remove,
|
||||
buy, sell, and transfer remain typed refit/trade operations. The Hangar screen
|
||||
does not own a second fitting model.
|
||||
|
||||
## Authority Map
|
||||
|
||||
Owner: the canonical `gamecult.aetheria.hangar.v1` document owns durable ships,
|
||||
inventory, currencies, unlocks, template references, revision, and accepted
|
||||
deployment receipts.
|
||||
|
||||
Inputs: authenticated player identity, a typed deployment request, the expected
|
||||
Hangar revision, one owned ship, one owned loadout template, and the exact mode
|
||||
policy id.
|
||||
|
||||
Outputs: one immutable accepted deployment receipt embedded atomically in the
|
||||
new Hangar revision, or a typed rejection that does not mutate the Hangar.
|
||||
|
||||
Derived state: selected bay, selected mode, preview, fit metrics, affordability,
|
||||
compatibility warnings, and launch readiness are UI projections. The preview
|
||||
and metrics never become equipment or deployment owners.
|
||||
|
||||
Forbidden writers: Unity, Electron, Eve lowerers, mode session checkpoints,
|
||||
witness seeders, and mode-local inventory stores cannot mutate Hangar assets or
|
||||
mint accepted deployments. A mode cannot launch from an uncommitted UI
|
||||
selection.
|
||||
|
||||
Shared paths: rendered clients, headless controllers, tests, reconnect, and AI
|
||||
orchestration all submit the same deployment request and consume the same
|
||||
receipt. Terminus, Starbridge, and Arena differ by policy and session owner, not
|
||||
by Hangar schema.
|
||||
|
||||
Cut line: replace `MainMenuNewGame -> AetheriaDaemonRunFactory.WriteAsync` with
|
||||
`Hangar launch operation -> deployment admission -> mode session bootstrap`.
|
||||
Delete generic New Game as a gameplay-state writer after all three mode
|
||||
bootstraps consume deployment receipts.
|
||||
|
||||
## Verification
|
||||
|
||||
- duplicate request id returns the original accepted receipt;
|
||||
- stale Hangar revision, wrong player, unavailable ship, unowned template,
|
||||
mismatched hull, unknown mode, or wrong mode policy cannot mutate Hangar;
|
||||
- accepted receipt contains a loadout snapshot, not a mutable reference to the
|
||||
saved template;
|
||||
- all three modes pass through the same admission primitive;
|
||||
- flush/reopen preserves the Hangar revision, ship deployment state, and
|
||||
receipts;
|
||||
- the portable surface exposes owned bays, ship preview, fit summary, existing
|
||||
inventory/refit entry, three mode selectors, and Launch;
|
||||
- attaching a renderer does not change admission output.
|
||||
|
|
@ -1,138 +0,0 @@
|
|||
# Original Game Combat Specification
|
||||
|
||||
Baselines: RTS `d12d7c5c^`; ARPG `origin/master` at `ab2c2944`.
|
||||
|
||||
## Target And Lock
|
||||
|
||||
Each entity owns one target and clears it when the target leaves the zone or is
|
||||
no longer a visible enemy. Sensors accumulate observer-relative information;
|
||||
crossing detection thresholds updates visible friendly/enemy collections.
|
||||
|
||||
`LockWeapon` resets lock when target changes. Lock accumulates only against a
|
||||
hostile target and depends on target angle, lock speed, direction-impact
|
||||
exponent, and gathered sensor information raised to `SensorImpact`. Outside the
|
||||
lock angle it decays by `Decay * delta`. Firing requires lock above `0.99`, an
|
||||
available cooldown, and strict `MinRange < TargetRange < Range`.
|
||||
|
||||
Targeting also produces reciprocal `TargetedBy` state and begin, complete,
|
||||
lost, visibility, and indicator feedback.
|
||||
|
||||
Evidence: `ServerShared/Entity.cs`, `Behaviors/LockWeapon.cs`.
|
||||
|
||||
## Weapon Families
|
||||
|
||||
Base weapon performance includes damage, penetration, spread, minimum/maximum
|
||||
range, energy, heat, visibility, and velocity from item performance stats.
|
||||
|
||||
- **Instant:** trigger starts burst and cooldown. Damage, heat, and energy split
|
||||
across rounds. Each round consumes resources, emits fire, wear, heat,
|
||||
visibility, and presentation events. Magazines reload from matching cargo.
|
||||
- **Automatic:** retriggers instant bursts while held after cooldown.
|
||||
- **Constant:** applies continuous energy, heat, wear, and optional ammunition;
|
||||
emits start, stop, and reload transitions.
|
||||
- **Charged:** accumulates charge and charge-dependent damage, heat, spread,
|
||||
burst, visibility, and velocity multipliers. Early release and overcharge
|
||||
failure are authored behavior.
|
||||
- **Lock:** instant weapon gated by progressive angular/sensor lock.
|
||||
- **Launcher:** lock weapon whose projectile receives guidance, thrust, lift,
|
||||
dodge frequency, and missile velocity parameters.
|
||||
- **Guided:** guided projectile weapon without the lock gate.
|
||||
|
||||
Evidence: `ServerShared/Behaviors/Weapon.cs`, `InstantWeapon.cs`,
|
||||
`AutoWeapon.cs`, `ConstantWeapon.cs`, `ChargedWeapon.cs`, `LockWeapon.cs`, and
|
||||
`Launcher.cs`.
|
||||
|
||||
## Spatial Resolution
|
||||
|
||||
Weapon behavior emits firing facts. Presentation binds effects to source,
|
||||
barrels, and selected target, but does not own accepted damage.
|
||||
|
||||
- Ballistic projectiles apply gravity and drag, sweep/raycast their segment,
|
||||
ignore source, and terminate on collision, range, or optional airburst.
|
||||
- Guided projectiles predict intercept, apply guidance/lift/thrust curves,
|
||||
dodge procedurally, terminate after range or overshoot, and may split into
|
||||
equal-damage children.
|
||||
- Hitscan resolves range immediately.
|
||||
- Pulse lasers resolve repeated hits over visual duration and prorate damage.
|
||||
- Constant laser, lightning, and particle weapons continuously resolve hits.
|
||||
- Mines arm and resolve proximity/splash behavior.
|
||||
|
||||
Target owner: Ymir owns trajectories, sweeps, contacts, ray/shape queries, and
|
||||
spatial hit candidates. The daemon interprets those candidates through weapon,
|
||||
shield, armor, equipment, faction, and lifecycle rules.
|
||||
|
||||
Evidence: `Gameplay/Weapons/Projectile.cs`, `GuidedProjectile.cs`,
|
||||
`HitscanEffect.cs`, `Laser.cs`.
|
||||
|
||||
## Shields And Damage Topology
|
||||
|
||||
Legacy shields are not shield-HP pools. An active shield intercepts only when
|
||||
the entity can pay `damage * EnergyUsage`; the hit consumes energy and deposits
|
||||
`damage / Efficiency` as heat.
|
||||
|
||||
Hull collision maps a hit into schematic cells from texture coordinates,
|
||||
hardpoint geometry, spread, and penetration. Per affected cell damage order is:
|
||||
|
||||
1. armor;
|
||||
2. installed item durability;
|
||||
3. hull durability.
|
||||
|
||||
Splash selects exposed cells by impact direction. Damage produces distinct
|
||||
incoming-hit, armor, item, hull, depleted-armor, destroyed-item,
|
||||
destroyed-weapon, cockpit-destruction, and death facts.
|
||||
|
||||
Evidence: `Behaviors/Shield.cs`, `Gameplay/EntityInstance.cs`,
|
||||
`ServerShared/Entity.cs`.
|
||||
|
||||
## Heat And Death
|
||||
|
||||
Weapon and shield heat is deposited at physical item/hull locations. The cell
|
||||
thermal network and radiators move or reject it. Cockpit temperature drives
|
||||
heatstroke/hypothermia independently of hull durability.
|
||||
|
||||
Death causes are hull destruction, cockpit destruction, heatstroke, and
|
||||
hypothermia. Cause is authoritative and drives presentation.
|
||||
|
||||
## Destruction And Drops
|
||||
|
||||
On hull depletion the entity is marked destroyed. Every non-hull equipped item
|
||||
drops independently with default probability `0.25`; all cargo drops. Pickups
|
||||
receive random velocity with authored magnitude. Destruction VFX is requested
|
||||
and the entity leaves the zone.
|
||||
|
||||
## Required Feedback Events
|
||||
|
||||
The daemon must publish deduplicated, timestamped semantic events for:
|
||||
|
||||
- weapon trigger/start/round/stop/reload/cooldown;
|
||||
- charge start/update/release/failure;
|
||||
- lock begin/progress/complete/lost;
|
||||
- projectile launch/split/impact/expire;
|
||||
- shield interception and energy/heat consequence;
|
||||
- armor, item, weapon, cockpit, and hull damage;
|
||||
- incoming hit and controlled-entity hit confirmation;
|
||||
- death cause, destruction, and each created drop.
|
||||
|
||||
Durable current state and transient chronology are separate contracts. A client
|
||||
joining late needs current lock/cooldown/health; it must not replay old impacts.
|
||||
|
||||
## Current Migration Defects
|
||||
|
||||
1. Normal daemon simulation and optional abstract combat kernel are concurrent
|
||||
writers when the flag is enabled. One combat owner must replace both paths.
|
||||
2. Current lock is immediate or confidence-based, not original angular lock.
|
||||
3. Catalog equipment is persisted but combat executes one synthetic weapon.
|
||||
4. Ammunition, reload, bursts, energy, wear, charge, and failure are absent.
|
||||
5. Projectile taxonomy is collapsed to one guided circle.
|
||||
6. Damage is scalar shield HP then scalar hull; original shield and cell damage
|
||||
semantics are absent.
|
||||
7. Thermal state is one scalar with linear decay.
|
||||
8. Destruction does not transactionally generate original drops/death facts.
|
||||
9. Ymir hit facts are consumed without a published feedback chronology.
|
||||
10. Health normalization has competing projections and no single contract.
|
||||
|
||||
## Combat Parity Proof
|
||||
|
||||
For every weapon family, capture intent, daemon weapon state, Ymir query/body
|
||||
timeline, accepted hit, damage topology, resource costs, event sequence, Eve
|
||||
projection, and rendered feedback. Compare thresholds and timing to the fossil.
|
||||
|
|
@ -1,172 +0,0 @@
|
|||
# Original Game To Perfect Machine Matrix
|
||||
|
||||
Status dimensions:
|
||||
|
||||
- `reference`: behavior exists only in the fossil/reference implementation;
|
||||
- `owner-exists`: target subsystem implements the primitive in isolation;
|
||||
- `wired`: production Aetheria paths invoke that owner;
|
||||
- `exclusive`: obsolete writers cannot decide or repair the result;
|
||||
- `projected`: authoritative state reaches Eve;
|
||||
- `lowered`: a generic runtime presents or controls it;
|
||||
- `proven`: live parity and negative-authority checks pass.
|
||||
|
||||
Dimensions are cumulative claims only when evidence proves each one. Fixture
|
||||
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` | mode authority over canonical CultCache/CultMesh state | provider/session advertisement, mode policy, Hangar deployment/settlement, and run lifecycle bindings | all clients and headless controllers | active/failed lifecycle is restart-stable and renderer-independent. Terminus is the single-player roguelike under sole local-daemon authority. Starbridge uses Commander-default simulation and persistence plus jurisdictional Pilot prediction; a validated Pilot mismatch corrects and replays provisional Commander state before external finality. Arena is server-authoritative PvP and the primary NPC-policy/build-balancing harness. All three use the same target Hangar, deployment, catalog-key, fitting, loadout-template, and settlement vocabulary while owning distinct live sessions. Tutorial and regular topology are Terminus run recipes, not progression owners. Deterministic Terminus proof profiles retain distinct identities and cannot settle Hangar progression. All modes execute headlessly through the production simulation and operation gates. The shared Hangar/Deployment/Settlement owner and Starbridge candidate/finality protocol are adopted design but not yet implemented | implement one canonical Hangar/deployment/settlement spine; launch ordinary Terminus; prove Starbridge same-tick envelopes, jurisdiction epochs, Pilot-wins mismatch, Commander replay, late-result rejection, and one final log; prove deterministic Arena with human/AI-equivalent operations and versioned build-versus-build replays; renderer/no-renderer outcome parity; restart and exactly-once settlement |
|
||||
| Entity identity/loadout | `ServerShared/Entity*` | daemon | typed entity and inventory surfaces | EveUnity/Electron | daemon-owned hull identity, exact installed placement/rotation and instance state, cargo stacks, weapon membership/held state, equipment wear, executable behavior state, weapon chronology, active-effect state, and loadout-generation provenance survive a hard CultCache close/reopen through the durable latest-frame checkpoint. An advertised generic Eve equip operation now translates into the typed daemon transaction before that checkpoint; its accepted placement survives restart and its consumed station-cargo source does not resurrect. Generic Eve rebuilds weapon and scalar thermostat controls from that restored truth; legacy per-entity documents are bootstrap inputs only when no live frame exists | live client refit witness and multi-client convergence |
|
||||
| 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. Prelude generation retains the fossil exception that allied catalog manufacturers need not own one of the six tutorial home zones; unknown manufacturers remain zero-weight. 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`, `VelocityConversion`, `VelocityLimit`, 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, then runs operational velocity conversion with the fossil exponential damp equation and clamps the result through evaluated velocity limits before giving velocity/direction to Ymir. The evaluated limit remains in durable behavior state for reconnect and Eve inspection. 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 cross-equipment behavior execution ordering, CultMath/float32 parity harness, live production-frequency evidence, generic thrust/turn feedback lowering, and live handling screenshots |
|
||||
| Collision | fossil entity code contains no ship/station collision gameplay callback; shield collision timing is presentation | Ymir | Ymir-owned contact facts for collidable pairs; immutable entity generations for presentation | visual interpolation only | Ymir world stepping owns entity poses and radial fields. Loot collection and its capacity-rejection kick are daemon-owned XZ proximity consequences and do not consume contact facts. Ship and station bodies deliberately share one negative collision group: the fossil had no rigidbody entity response, and invented circle separation would make its 25-unit center-distance docking rule unreachable. Daemon smoke advances an overlapping ship/station pair, proves the ship remains at 24 units, then accepts docking. The released EveUnity scene sink consumes immutable presented generations and has no provider/command-transport dependency; the canonical Unity product contains no Aetheria or ServerShared gameplay assembly | upstream Box3D parity harness for any future solid-body pair and live interpolation timeline under packet delay |
|
||||
| Targeting/contacts | sensors + `ActionGameManager` | daemon | contact/target semantics | target HUD and indicators | daemon-owned selection now preserves the executable fossil exactly, including its oddly misnamed `Target Nearest` action selecting `MaxBy(distance)`, stable visible-contact tie order, and previous-from-no-selection choosing the second-to-last distance row when at least three contacts exist. Generic Eve nearest/next/previous/reticle/clear levers route to that owner; explicit scene targeting preserves both EveUnity's `sourceEntityId` and `targetEntityId` instead of falling back to the frame's current ship. Only daemon-visible contacts can be explicitly selected, and `target-not-visible` survives into the denied Eve receipt without disturbing the prior target. Every authored instant lock behavior 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. Smoke proves progressive acquisition, exact target-transfer loss/start chronology, authored angular decay with one loss crossing, reacquisition without replaying start, invalid-target reset, and generic Eve projection of the prior/current lock values. `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 | authored reticle/HUD parity; provider audio/effect binding is visual pull work |
|
||||
| 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, constant, GuidedWeapon, and Launcher 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. Guided receipts additionally retain target-entity/look-direction mode, complete guidance/thrust/lift curves, evaluated thrust and top speed, and dodge frequency; these survive checkpoint restart and reach generic Eve shot facts. The fossil guided projectile only steered, split, faded, and selected hit visuals after the ordinary weapon event had committed damage, so the client path remains derived presentation rather than a Ymir gameplay body. `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 | generic guided trajectory lowering, provider split/fade asset parameters, and removal of ordinary projectile terminology from runtime contracts |
|
||||
| Shield/armor/equipment/hull damage | energy-funded shield, schematic armor cells, equipment and scalar hull | daemon canonical damage transaction | aggregate/exact armor grid, entity status, and layer-aware shot/damage receipts | schematic, meters, impacts, damage VFX | owner-exists; wired; exclusive; projected: daemon initializes armor/maximum-armor grids from hull plus hardpoint catalog topology; direct and deployable damage share one `shield -> armor cell -> equipment -> scalar hull` transaction; direct impacts use the fossil's full-width/full-height normalized-UV scaling to select a cell or complete hardpoint footprint before orthogonal spread and contiguous 0.5-cell penetration that stops at the first hull gap, while splash payloads select the source-facing hull half; rotated equipment interception shares the refit/thermal/schematic footprint owner; the fossil penetration infinite-loop defect is fixed; damage type is typed/pass-through without resistances because the fossil never applied them; Eve exposes aggregate and exact armor state, and each direct-shot receipt owns stable per-cell coordinates plus armor/equipment/hull application for presentation; fake Ymir contacts and presentation cannot decide damage | authoritative authored collider-UV topology input, orthogonal-spread/depth fixtures, and generic shield/equipment effect lifecycle |
|
||||
| Thermal/energy | cell conduction, capacitor/reactor/radiator network, and cockpit thermal exposure | daemon | ship/equipment power, temperature, medical state, risk and death feedback | schematic/post effects | owner-exists; wired; exclusive; projected; generic timing and native asset delivery lowered: catalog hull and installed-item shapes derive cell mass/conductivity/topology; local temperature derives thermal performance, wear potential and online state; all consumers share capacitor-first/reactor-residual transactions; powered radiators pump before reactor settlement; reactor heat then enters the same cell network before conduction/radiation; cockpit-cell temperature drives the fossil nonlinear heatstroke/hypothermia accumulation, linear recovery, severe-risk crossings, and ordinary exactly-once destruction with a typed cause; Eve exposes cockpit, risk, heatstroke source-weight, phasing and death-transition facts; EveUnity generically resolves the original severe pulse plus live/reconnect-safe cause-specific death crossfade; Aetheria deterministically translates the five legacy profiles into URP profiles, persists every override as a real profile sub-asset, advertises them by semantic role through CultMesh CDN, and binds them in the canonical client through a weight-only native sink; rotated equipment topology, parent/child radiation, schematic composition, legacy SSR/AO/roundness equivalents, and live/reconnect death-fade parity remain incomplete | multi-consumer ordering, multi-radiator visibility, rotated topology, generic schematic meters, renderer-feature parity, and live/reconnect death-fade screenshots |
|
||||
| Weapons | ServerShared behaviors + Unity effects | daemon plus Ymir geometry/kinematics | action capability, weapon state, shot/damage receipts | effects/audio/HUD | instant and constant resource/timing lifecycles are daemon-owned; ordinary instant weapons remain press-edge driven, while authored `AutoWeapon` payloads use the persisted generic hold latch to retrigger on the fixed step after cooldown completion and stop structurally on release, including across CultCache restart. Charged weapons accept one semantic request, spool without requiring a solution, hold at full charge, commit automatically when a solution appears, and perform deterministic once-per-second malfunction hazard checks after the authored safe hold interval with increasing persisted risk; successful instant, automatic, constant, charged, deployable, and turret-controlled transactions publish authored transient visibility and consume the owning equipment's temperature-derived wear, with charged visibility applying its authored multiplier and turret wear remaining exact-weapon scoped; GuidedWeapon and Launcher retain ordinary authoritative shot resolution while publishing their complete fossil steering profile as derived presentation; generic Eve `weapon.state` exposes charge hold/risk and feedback exposes readiness, commit, refusal, and malfunction chronology; committed direct damage now enters the shared daemon armor-cell transaction | remaining impact-distribution parity, generic guided/effect lowering, and Unity effect reconciliation |
|
||||
| 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; after motion, the daemon collects the nearest live pickup within a fixed 25-unit XZ distance of an active undocked ship when capacity permits or moves it outside the boundary with the fossil 25-unit rejection kick; stable pickup removal makes collection exactly once and stations 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 released warm collection witness proves one stable event, cargo `0` to `1`, and removal in the following authoritative SoA generation; the full-cargo witness proves one capacity rejection, unchanged cargo, and one retained pickup; 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 | 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. 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. 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, multi-stack splitting, 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, and full fossil inventory feedback parity |
|
||||
| Trade | trade UI/economy | daemon | stock, current value, 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. Commodity delivery now uses the same cloned spatial cargo plan as inventory transfer: it fills compatible partial stacks, splits the remainder at authored maximum stack size, finds deterministic free cells in the bay shape, and only then commits stock, cargo, and credits. The sequential daemon reducer serializes two client purchases for the same final stock in one frame: exactly one command debits/delivers, the other commits `trade-stock-unavailable`, and a hard CultCache close/reopen preserves exhausted stock, the single wallet debit, delivered cargo, and both generic Eve receipts. 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 fossil had no durable quote or expiry mechanic: its menu displayed current item value and mutated immediately, so Aetheria intentionally reprices at authoritative command execution rather than inventing quote authority. The generic Unity live witness receives an authoritative purchase receipt while paused | live sale receipt witness 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 |
|
||||
| Pilot camera | ARPG follow/dock cameras | Eve view semantics + runtime | camera rig and semantic view id | EveUnity camera rig | daemon dock state selects distinct contracts instead of collapsing both fossil cameras: undocked flight advertises the entity-forward `Third Person Rig` framing (distance 30, screen 0.64/0.19, FOV 60, lens 1-4096) and the shared `aim.presentation` convergence point as its look-at; Aetheria translates the fossil Cinemachine top-origin screen Y of `0.81` to Eve's bottom-origin viewport Y of `0.19`; EveUnity solves native pose while preserving both optical aim and advertised entity framing, without provider types; the retained dock projection remains separate | reproduce the dock camera's separate follow/look-at subjects, blend timeline, noise, and reconnect state |
|
||||
| Render channels | Unity layers/culling masks | provider surface policy + runtime asset variant | semantic channel exclusions | EveUnity native layer mapping | wired, exclusive, and lowered: the pilot surface excludes the semantic `map` channel; the Unity asset variant maps `map` to its authored native layer; EveUnity subtracts that layer from the configured camera mask; portable state contains no Unity layer or mask; provider conversion preserves the source icon shader's unlit lighting model; the released witness proves the pilot camera excludes map glyphs while the map camera retains readable white glyphs without a scene light | preserve the channel proof while world presentation and transport continue to evolve |
|
||||
| Minimap/tactical map | `ZoneRenderer`, map cameras | daemon world facts | explicit map projections | Unity and Electron | the daemon directly advertises one every-frame `aetheria.sector_map` Eve surface backed by the committed sector-map projection, so travel and discovery cannot remain stuck at topology boot. The graph carries only discovered topology, current/start/Terminus roles, the fossil weighted critical route, persistent home/executive faction landmarks, and a legend. Each visible faction owns a `graph.region` scalar field with the original owner `10`, present `5`, excluded `-10` samples. The provider asset catalog carries the historical Galaxy and Influence materials plus start, Terminus, home, and executive sprites. `sectorMap.*` tokens preserve the authored background noise, contour/hatch/stroke parameters, faction boosts, deterministic per-faction hatch tilt, `0.002/0.005` link widths, `0.5/0.25s` reveal timing, marker scale, label offset, and zoom bounds without putting Aetheria styling or gameplay logic in EveUnity. Zone details remain a subordinate inspection surface; the fossil Unity map remains a transitional lowerer, not a writer | generic EveUnity and Electron graph/region lowering, provider palette recovery beyond the current stable fallback colors, node activation into zone details, and same-state visual witness in both runtimes |
|
||||
| Celestial world | `ZoneRenderer`, `ZoneGenerator`, `GeneratorPlanet`, body/asteroid prefab scripts | daemon render projection plus provider assets | ordinary generic Eve entity SoA rows | EveUnity generic entity/prefab lowerer | wired, exclusive, projected, and lowered for Terminus; generated-world authority now also exists in the daemon. Each tutorial topology zone deterministically evaluates the authored radius/mass/subzone curves, rosette-or-solar hierarchy, five satellite/binary passes, belt selection, mass normalization, stable orbits/bodies, gravity/wave curves, asteroid rows, and sun/gas-giant visual parameters. All 64 zones, their station/turret orbits, faction ships, and starter entry are persisted as canonical daemon state. Provider packaging extracts only each advertised visual child and strips fossil scripts/physics; released EveUnity `0.3.51` applies semantic scale around provider-authored local scale and contains no celestial or Aetheria branch. The released warm Terminus witness records eleven bodies and eighteen asteroids with provider refs and enabled renderers, including seven celestial instances intersecting the pilot frustum | witness generic lowering of the persisted tutorial run; body material/light readability, close-range composition matching the fossil, asteroid variation, and Electron lowering |
|
||||
| Fields/fog/gravity | zone renderer and shaders | daemon/plugin semantics | Fields plugin documents | EveUnity fields lowerer | daemon publishes canonical gravity/fog splat layers through `field.volume3d`; Eve Fields `0.2.3` owns portable `PowerPulse` and `AnimatedRadialCosine` semantics; Aetheria emits the fossil global animated simplex/cellular/ambient stack, body-owned radial waves, and separate negative gameplay `gravity.height` and positive visual `fog.surface_height`; the shared camera-relative lattice spans 1536 world units as 256 six-unit Stardust cells, rasterizes gravity at eight texels per cell into 2048 texels, and snaps the viewport by one six-unit cell; daemon entities follow fossil terrain height plus hull grid offset after Ymir XZ motion; released EveUnity `0.3.58` lowers the authored topology, one shared snapped viewport frame for fog and Stardust, provider shader ABI, pre-postprocess URP pass, provider-requested TAA, provider-material temporal coverage inputs, authoritative flow time, the historical positive-Z Unity shader camera transform, and float32 packed-output diagnostics without provider code. The provider bundle runs the actual Stardust compute shader across X, Y, and diagonal one-cell remaps and proves 705 overlapping world cells remain bit-identical after buffer reassignment; an asymmetric GPU fixture proves positive world X samples positive texture X instead of retaining the deleted fossil gravity camera's two-axis reversal; its source gate rejects replacement of temporal dithering with a fixed alpha threshold. A separate gravity-fog gate requires raymarch and temporal reprojection to share the historical positive-Z camera convention. The flight post-process bundle gate verifies serialized ACES, exposure/contrast, bloom, vignette, and film-grain components | restore readable patch structure, gravity waves, surrounding world geometry, and final luminance/composition parity; visual parity remains explicitly open |
|
||||
| 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 pickup removal/cargo chronology, active autonomous task ownership, and a mid-wormhole multi-zone route. Fresh Ymir sessions reconstruct ordinary motion from committed world truth; loot replay safety comes from the same atomic durable pickup removal and cargo insertion rather than a private contact journal. 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 | local daemon/Ymir/Eve plus shared Hangar boundary | pilot surface and typed mode/deployment/settlement operations | Aetheria.Unity or headless controller | released witness profiles prove generic provider discovery, world/assets, dock/undock, trade, movement, targeting, fire, destruction, tractor motion, feedback, exactly-once pickup, and full-cargo rejection. These prove subordinate mechanics, not ordinary product launch or durable progression. Terminus is the canonical single-player roguelike and standard runs are product state | normal mode-selection launch without a proof flag; shared Hangar deployment; escalating run/choice/extraction loop; exactly-once settlement; richer trade/refit and sustained combat; headless/rendered parity |
|
||||
| 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`, `Radiator`, `MiningTool`, and `ResourceScanner` pause their groups at the specialized owner, report the exact fossil success result, and resume common tails at most once. Invalid or out-of-range resource work therefore cannot consume trailing cargo or wear. Deferred tails now complete after the resource owners and before reactor settlement and thermal integration, preserving the fossil consumer-before-reactor order; 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. `patrol` is a first-class task with orbit targets distinct from survey/mining body targets; every generated tutorial NPC persists its assigned fossil four-orbit shuffled circuit before the first tick. Daemon sensors derive the fossil owner-security trespass rule from the controlled pilot's faction relationship and orbital security fields. Like the fossil `Minion`, a patrol agent temporarily enters the shared combat planner for its first visible hostile ship, keeps its circuit index, and resumes that same patrol when visibility is lost. 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
|
||||
|
||||
1. Unity objects never decide durable game state.
|
||||
2. Aetheria owns spatial state, game meaning, and persistence. The daemon calls
|
||||
Ymir directly as an injected in-process physics library and commits its
|
||||
deterministic results; Ymir never becomes a second daemon or state owner.
|
||||
3. Eve publishes semantic facts and commands, not Aetheria implementation
|
||||
objects or runtime-specific layer numbers.
|
||||
4. Runtime-specific asset metadata may map semantic view channels to native
|
||||
mechanisms such as Unity layers.
|
||||
5. Provider assets own authored visuals; EveUnity owns generic projection and
|
||||
native hosting; Aetheria.Unity owns only provider client configuration.
|
||||
6. Transient feedback has authoritative event identity so reconnect and refresh
|
||||
cannot duplicate hits, drops, purchases, or deaths.
|
||||
7. RTS, minimap, and pilot views are projections of one world state.
|
||||
8. Restored agent combat and future pilot cognition share semantic ship actions,
|
||||
command validation, and Ymir execution. They do not share an implicit combat
|
||||
authority: RTS task scheduling assigns work, while pilot cognition proposes
|
||||
actions from observer-local knowledge under daemon-owned doctrine.
|
||||
|
||||
## Migration Order
|
||||
|
||||
1. Finish archaeology and replace every `reference` row with exact behavior,
|
||||
source anchors, state inputs, outputs, timing, and proof cases.
|
||||
2. Establish complete daemon simulation parity using the injected Ymir physics
|
||||
port before polishing clients.
|
||||
3. Publish combat, thermal, contact, equipment, docking, trade, and feedback
|
||||
facts through Eve without runtime-specific leakage.
|
||||
4. Implement generic EveUnity presentation primitives and plugin lowering.
|
||||
5. Delete Unity's reconstructed `Entity`/`Zone`/`Behavior` mirror, then compose
|
||||
`Aetheria.Unity` from generic primitives and provider assets.
|
||||
6. Run scenario parity against the fossil and preserve captures, receipts, and
|
||||
state timelines in conformance packs.
|
||||
|
||||
Original-game parity is the substrate, not the final pilot command model. New
|
||||
combat work must follow `cockpit-doctrine-combat.md`: preserve semantic weapon
|
||||
actions and physical constraints, then place daemon-hosted cognition planning
|
||||
above them. The planner may propose sensing, maneuver, and fire-control actions;
|
||||
the daemon command gate alone accepts them, and Ymir alone resolves spatial
|
||||
motion and collision. Do not spend migration effort rebuilding manual aiming as
|
||||
the primary skill test or let a Unity presentation path become a second combat
|
||||
owner.
|
||||
|
||||
## Current P0 Faults
|
||||
|
||||
These are source-confirmed ownership failures, not feature backlog:
|
||||
|
||||
1. **Physics parity is incomplete.** Daemon entity, pickup motion, tractor,
|
||||
physical payload, and wormhole-exclusion paths use the embedded Ymir owner;
|
||||
pickup collection itself is an Aetheria XZ proximity rule. The
|
||||
entity/entity collision exclusion required by fossil docking is now proven,
|
||||
and the released Unity scene projection has no writeback dependency. The
|
||||
upstream Box3D parity harness and broader shape/contact coverage remain open.
|
||||
2. **Executable behavior coverage remains partial.** Snapshot schemas preserve
|
||||
broad equipment/behavior state and the daemon executes the migrated weapon,
|
||||
propulsion, energy, thermal, consumable, mining, survey, and agent families;
|
||||
remaining catalog behavior families and exact execution order still need proof.
|
||||
3. **Client feedback chronology is incomplete.** Pickup collection, rejection,
|
||||
expiry, projectile launch/impact, damage, and destruction now use a bounded
|
||||
deduplicated daemon ledger projected through Eve, including lock, damage, and
|
||||
wormhole transition chronology; thermal warnings and docking effects still
|
||||
need complete event families.
|
||||
4. **View composition remains partial.** Pilot surfaces now exclude semantic
|
||||
render channels and runtime asset variants map those channels to native
|
||||
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. **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. **Live conformance has no complete owner.** Static provider packs can pass
|
||||
while daemon, runtime, or split-target dependencies are absent. The current
|
||||
Eve consumer smoke fails because its expected EveElectron proof is missing.
|
||||
7. **Normative native presentation is incomplete.** EveUnity owns semantic
|
||||
render-channel lowering and immutable presented-entity generations. General
|
||||
presentation graphs, map products, attachment/effect lifecycles, material
|
||||
profiles, and source-version diagnostics still lack complete Eve contracts
|
||||
and generic runtime lowerers.
|
||||
8. **Original-game acceptance lacks an evidence ledger.** No current owner
|
||||
records fossil baseline, target state timeline, commands/receipts, rendered
|
||||
captures, and negative-writer checks as one scenario result.
|
||||
|
||||
## Evidence Rules
|
||||
|
||||
- Static fixtures and provider packs prove schema/contract shape only.
|
||||
- `wired`, `exclusive`, `lowered`, and `proven` require live executable
|
||||
witnesses at the claimed layer.
|
||||
- A negative ownership claim must verify the obsolete path cannot produce,
|
||||
override, or repair the result.
|
||||
- The current `verify-aetheria-ymir-cutover.ps1` proves selected Unity callback
|
||||
removal and static routing into an Aetheria bridge. It is not Ymir integration
|
||||
proof until it verifies an actual Ymir.Core/service dependency and rejects
|
||||
Aetheria-local spatial implementations.
|
||||
- Conformance scenarios must preserve source baseline, authoritative state
|
||||
timeline, Ymir timeline, command/receipt chronology, rendered capture,
|
||||
runtime/package versions, and negative-authority results together.
|
||||
9. **The fossil authoring project still contains a mutable gameplay graph.**
|
||||
`AetheriaUnityObservedEntityRestorer`, `AetheriaUnityObservedFrameApplier`,
|
||||
`ActionGameManager`, and `ZoneRenderer` remain reference and asset-authoring
|
||||
inputs in the original Unity project. They are absent from the canonical
|
||||
`Aetheria.Unity` client, whose verifier rejects Aetheria, ServerShared, and
|
||||
gameplay assemblies. EveUnity now publishes each committed SoA generation
|
||||
through a read-only presented-entity registry; richer selection and HUD
|
||||
adapters still need to consume it instead of rebuilding parallel indexes.
|
||||
10. **Remote provider asset delivery is proven through the managed content
|
||||
session.** The authoring build derives deterministic presentation-only
|
||||
variants, strips missing and non-Eve scripts, verifies the saved prefabs and
|
||||
loaded AssetBundle, and the daemon advertises those bundle-internal paths.
|
||||
A clean released EveUnity client downloads, verifies, atomically promotes,
|
||||
maps, reuses, and renders the provider body without access to the authoring
|
||||
project. The cold witness selects `SharedFileMapping` over the exact
|
||||
transfer-owned final path; network and GPU zero-copy are not claimed.
|
||||
11. **The negotiated local SoA fast path remains unproven.** The daemon publishes
|
||||
exact immutable generations; the external Unity client rejects stale or
|
||||
mismatched bodies and now resolves the same generation through the
|
||||
Verse-owned network binding, manifest, and content-addressed chunks. The live
|
||||
witness proves remote/fallback correctness. Shared-memory handle exchange and
|
||||
proof that a same-machine client selected the shared-memory SoA
|
||||
representation remain CultMesh work rather than EveUnity policy.
|
||||
|
|
@ -1,139 +0,0 @@
|
|||
# Original Game Presentation Specification
|
||||
|
||||
Baselines: RTS `d12d7c5c^`; ARPG `origin/master` at `ab2c2944`.
|
||||
|
||||
## Provider Documents Required
|
||||
|
||||
The original UI directly observes mutable entities and UniRx events. The target
|
||||
must replace that graph with provider-owned typed documents:
|
||||
|
||||
1. `player_cockpit_state`: systems, schematic cells, thermal state, durability,
|
||||
energy, visibility, movement, shutdown, and medical state.
|
||||
2. `zone_contacts`: identity, disposition, detection both ways, pose, selected
|
||||
and locked state, and health disclosure.
|
||||
3. `action_slots`: action identity, source equipment/cargo, icon, availability,
|
||||
active state, progress/cooldown, quantity, and operation binding.
|
||||
4. `inventory_layout`: shaped hull/cargo occupancy, cells, hardpoints,
|
||||
durability, armor, conductivity, and temperature.
|
||||
5. `trade_session`: station, stock, destinations, quotes, capacity, commands,
|
||||
receipts, and typed rejection reasons.
|
||||
6. `navigation_surface`: zone topology, contacts, fields, discovery, current
|
||||
location, and navigation commands.
|
||||
7. `presentation_events`: deduplicated hit, damage, lock, thermal, death,
|
||||
weapon, effect, and audio cues.
|
||||
|
||||
The target doctrine-combat direction adds shared state for active doctrine,
|
||||
cognition allocation, fire-control assignments, subsystem intent, deployed
|
||||
platform orders, commitment exceptions, and structured decision reasons. See
|
||||
`cockpit-doctrine-combat.md`. These are gameplay state or named projections,
|
||||
not renderer-local interpretations of action-bar activity.
|
||||
|
||||
Names are provisional; responsibilities are normative.
|
||||
|
||||
## Cockpit Schematic
|
||||
|
||||
The schematic presents equipment topology and polls reactor draw, capacitor
|
||||
charge/capacity, temperatures, radiator stores, cargo temperature, override
|
||||
shutdown, shield active state, drive RPM, visibility, hull/item durability,
|
||||
weapon ammunition/range/cooldown, and heatstroke/hypothermia thresholds.
|
||||
|
||||
The target document must publish these source facts and cell topology. Eve may
|
||||
compose them as grids, metrics, progress, imagery, and overlays. EveUnity may
|
||||
animate transitions but may not derive state from materials or particles.
|
||||
|
||||
## Target And Contact Feedback
|
||||
|
||||
The selected target panel includes identity, relation, target shield state,
|
||||
hull durability, gathered information in both directions, pose/range, and
|
||||
selection. Hostile/friendly indicators are created from contact add/remove
|
||||
facts. Detection fill, selected target, and lock indicators consume explicit
|
||||
observer-relative state.
|
||||
|
||||
Crosshairs and lock reticles need camera projection and attachment semantics.
|
||||
Barrel endpoints and articulation groups are presentation inputs, not combat
|
||||
authority.
|
||||
|
||||
Hit marker is triggered only by an incoming-hit event on the selected target
|
||||
whose source is the controlled entity. It remains visible for authored
|
||||
`HitMarkerDuration`. This requires event identity, source, target, and time.
|
||||
|
||||
## Action Bar And Input
|
||||
|
||||
Slots derive from exposed action-bar inputs plus available equipment behaviors,
|
||||
weapon groups, and consumables. They display binding, active state, cooldown or
|
||||
duration, and cargo quantity. Activation submits semantic commands; it never
|
||||
calls behavior objects in the client.
|
||||
|
||||
Bindings are client-owned and portable across providers exposing the same
|
||||
semantic action. Dynamic action availability is daemon-owned.
|
||||
|
||||
## Inventory And Trade
|
||||
|
||||
Inventory presents shaped hull and cargo grids, armor, hardpoints, occupancy,
|
||||
temperature, conductivity, item condition, comparison, selection, drag preview,
|
||||
and valid destination feedback. Drag state is local; mutations and rejection
|
||||
reasons are daemon receipts.
|
||||
|
||||
Trade presents station stock, player destinations, credits, valuation, item
|
||||
details, filters, ship purchase, and resulting inventory state. Quote and commit
|
||||
are separate when price can vary.
|
||||
|
||||
## Map Products
|
||||
|
||||
Minimap zoom changes camera/projection scale and icon scale independently from
|
||||
pilot view distance. Zone map combines objects and field textures. Sector map
|
||||
builds discovered topology and faction/current/entrance/exit/boss states.
|
||||
These are explicit Eve projections, not hidden children of the pilot scene.
|
||||
|
||||
## Distress, Damage, And Death
|
||||
|
||||
Incoming damage identifies affected schematic cells and damage category so the
|
||||
correct armor/item/hull feedback can pulse. Thermal distress publishes current
|
||||
heatstroke/hypothermia, thresholds, and cause-specific warning transitions.
|
||||
Screen post-processing intensity is a lowering of these facts plus authored
|
||||
timing, with accessibility fallback.
|
||||
|
||||
Death unbinds gameplay input, presents cause, and transitions to appropriate
|
||||
menu/restart flow. The client cannot clear or save authoritative world state as
|
||||
a side effect of playing the animation.
|
||||
|
||||
The fossil's live heatstroke presentation uses two volume weights. Base weight
|
||||
is `saturate(heatstroke / severeRiskThreshold)`. Severe weight is the normalized
|
||||
amount above that threshold, with an authored sinusoidal pulse applied by the
|
||||
lowerer. Heatstroke and hypothermia each have schematic exposure meters, while
|
||||
cockpit temperature drives the shared thermal-limit meter. The scene contains
|
||||
hypothermia volumes, but the inspected live update never drove them before
|
||||
death; do not invent continuous hypothermia post processing as historical
|
||||
parity. Cause-specific death fades cross the applicable thermal volumes into
|
||||
the death volume over one authored second.
|
||||
|
||||
The current fossil settings still declare heatstroke and hypothermia control
|
||||
limits, but the implemented heatstroke cockpit lockout was deliberately removed
|
||||
and no hypothermia lockout was connected. Thermal exposure therefore does not
|
||||
silently attenuate or reject semantic controls. The daemon owns medical state
|
||||
and death; the runtime owns only meter, volume, and transition lowering.
|
||||
|
||||
The serialized fossil profiles target a retired post-processing schema and
|
||||
contain missing script references in the current Unity body. They are evidence,
|
||||
not deployable assets. `EveThermalProfileMigrator` deterministically generates
|
||||
clean URP profiles with the supported authored values: vignette color/intensity/
|
||||
smoothness, white balance, exposure, contrast, saturation, bloom, grain, and
|
||||
depth of field. Legacy vignette roundness, screen-space reflections, and ambient
|
||||
occlusion have no equivalent portable volume parameter; they remain explicit
|
||||
renderer-feature parity gaps. The generated profiles, not the broken fossil
|
||||
files, are the assets advertised through CultMesh CDN.
|
||||
|
||||
## Effects And Audio
|
||||
|
||||
Weapon and impact effects consume semantic event facts and provider asset refs.
|
||||
Original music selection attempted to use `TargetedByCount`, but playback was a
|
||||
TODO in the inspected baseline. Audio parity therefore covers authored effect
|
||||
cues that exist; a complete music system is future content, not a hidden
|
||||
original requirement.
|
||||
|
||||
## Presentation Timing Proof
|
||||
|
||||
For every element record source document/event, trigger, duration, interpolation
|
||||
owner, interruption rule, reconnect behavior, and accessibility fallback.
|
||||
Verify initial load, user command, daemon update, mid-transition, settled state,
|
||||
refresh/reconnect, and event deduplication.
|
||||
|
|
@ -1,160 +0,0 @@
|
|||
# Original Game Rendering And View Specification
|
||||
|
||||
Baselines: RTS `d12d7c5c^`; ARPG `origin/master` at `ab2c2944`.
|
||||
|
||||
## Projection Contexts
|
||||
|
||||
Aetheria does not have one universal camera. It has distinct products:
|
||||
|
||||
- pilot gameplay world through main plus follow/dock virtual cameras;
|
||||
- auxiliary fog and field cameras writing named textures;
|
||||
- tactical minimap cameras and map-scale icons;
|
||||
- full zone-map projection;
|
||||
- sector/galaxy topology projection;
|
||||
- world effects, transparent passes, trails, and overlays.
|
||||
|
||||
`ZoneRenderer` currently coordinates many of these, but that Unity class is a
|
||||
reference composition, not the target owner.
|
||||
|
||||
## Entity Presentation Graph
|
||||
|
||||
`EntityInstance` is a composite presentation root containing:
|
||||
|
||||
- hull renderers and collision presentation;
|
||||
- tactical map icon;
|
||||
- influence and ping subviews;
|
||||
- shield subview;
|
||||
- equipment, radiator, thruster, weapon, and articulation hardpoints;
|
||||
- fade-capable and persistent material partitions;
|
||||
- visibility/fade lifecycle.
|
||||
|
||||
`ShipInstance` adds thruster particles, Aether-drive effects, tractor beam, and
|
||||
ship-specific composition. Weapon presentation adds muzzle, charge, projectile,
|
||||
beam, impact, explosion, particle, and trail subviews.
|
||||
|
||||
One entity/one opaque prefab is insufficient as a portable contract. Eve needs
|
||||
a typed entity-presentation graph with named subviews, attachment sockets,
|
||||
activation predicates, render channels, and effect bindings.
|
||||
|
||||
## Semantic Render Channels
|
||||
|
||||
Required Aetheria channels include:
|
||||
|
||||
```text
|
||||
world.geometry
|
||||
world.celestial
|
||||
world.transparent
|
||||
world.shields
|
||||
world.projectiles
|
||||
world.trails
|
||||
world.effects
|
||||
field.fog-density
|
||||
field.fog-displacement
|
||||
field.gravity
|
||||
field.influence
|
||||
map.zone.objects
|
||||
map.zone.gravity
|
||||
map.minimap.objects
|
||||
map.minimap.fields
|
||||
map.sector.topology
|
||||
overlay.targeting
|
||||
```
|
||||
|
||||
Channel identity is semantic. Unity layer numbers are runtime-variant metadata.
|
||||
The pilot view excludes minimap channels; map cameras include their map channels
|
||||
without requiring pilot geometry. A channel may render to display or a named
|
||||
texture consumed by another material/channel.
|
||||
|
||||
Each channel requires space, camera role, visibility set, ordering, output
|
||||
target, update policy, clear policy, composition mode, and consumer bindings.
|
||||
|
||||
## Fields
|
||||
|
||||
Original products include fog density/tint, displacement and patches, sector
|
||||
boundary fog, gravity wells/waves/terrain/depth, influence, slime/gravity
|
||||
textures, and map/minimap overlays. Eve Fields is the portable numeric base,
|
||||
but parity requires named outputs, per-product resolution, blend operation,
|
||||
viewport, cadence, material consumer, and camera visibility.
|
||||
|
||||
## Asset And Material Contract
|
||||
|
||||
Provider assets own authored transforms, bounds, meshes, materials, sprites,
|
||||
textures, sounds, and effect content. Semantic radius never rescales authored
|
||||
art. Runtime variants map portable roles to native resources.
|
||||
|
||||
Required asset kinds include entity presentation, subview, mesh, material
|
||||
profile, effect, projectile presentation, trail profile, field material, map
|
||||
symbol, and audio. Entity presentations declare root asset, subviews,
|
||||
attachments, material slots, visibility tags, map representations, and effect
|
||||
bindings.
|
||||
|
||||
Material profiles describe intent such as opaque PBR, transparent, additive,
|
||||
field, shield, and celestial. They expose typed parameters and texture slots;
|
||||
they do not publish Unity shader names as portable authority.
|
||||
|
||||
The current native environment seed packages the pre-generated Radiance image
|
||||
at `Assets/Textures/studio2.hdr` strictly as the reflection texture for
|
||||
stellar-tinted ambient lighting. Gravity-fog raymarching fills the visible
|
||||
frame; the studio image is not a skybox or an ambient-color authority. The HDR
|
||||
source is 4096 by 2048 pixels with
|
||||
SHA-256 `A2886F1024F67DCB082DA3C97741B4B0824A2E784A697807DBE5DCEB597F85E0`;
|
||||
it entered the reference project in commit `b53e4aec` on 2021-02-26. The
|
||||
repository contains no external license attribution for that file, so its
|
||||
redistribution clearance remains unverified. Treat it as migration material,
|
||||
not a provenance claim.
|
||||
|
||||
Texture generation is an offline authoring concern. Aetheria consumes packaged,
|
||||
pre-generated textures today; the intended authoring path moves baking into
|
||||
Blender. Neither the daemon nor generic Eve runtimes depend on Substance
|
||||
archives or a Substance importer.
|
||||
|
||||
## Effects
|
||||
|
||||
Effects are semantic burst, loop, beam, trail, impact, shield-hit, destruction,
|
||||
and screen-feedback lifecycles. Contracts declare source event, spawn space,
|
||||
attachment socket, channel, lifetime, pooling class, parameters, and start/
|
||||
update/stop bindings. Effect realization cannot mutate gameplay state.
|
||||
|
||||
The current tractor lowering uses provider-owned, pre-generated particle
|
||||
textures and materials. `beam.presentation` carries source identity, provider
|
||||
asset role, daemon power, activation threshold, authored radius/distance,
|
||||
render channel, and an advertised activation action. EveUnity attaches and
|
||||
modulates that prefab; it does not raycast, apply force, infer contact, or move
|
||||
cargo. The provider build removes the fossil's embedded tractor object from
|
||||
ship presentation prefabs, so the standalone `beam.presentation` effect is the
|
||||
only live writer of tractor visuals. The daemon's post-motion XZ proximity pass
|
||||
remains the only collection gate.
|
||||
|
||||
Projectile simulation and projectile presentation are separate. The daemon and
|
||||
Ymir own identity/pose/contact; presentation owns visual asset, trail, impact,
|
||||
and visibility tags.
|
||||
|
||||
## Maps
|
||||
|
||||
Minimap, zone map, and sector map are separate projections sharing stable world
|
||||
identities. They are not merely alternate cameras over the pilot document.
|
||||
|
||||
- minimap: local contacts, icons, influence, gravity, independent zoom;
|
||||
- zone map: viewport objects, fields, selection, and navigation;
|
||||
- sector map: topology, links, discovery, factions, entrance/exit/boss/current.
|
||||
|
||||
## Runtime Ownership
|
||||
|
||||
Target ownership: EveUnity owns generic native lowering primitives once they
|
||||
exist. Current implementation covers basic playable-world entities, provider
|
||||
assets, input, camera following, command transport, receipts, and refresh.
|
||||
Semantic render channels, entity presentation graphs, map products, material
|
||||
profiles, effect lifecycles, pooling, and parity diagnostics remain incomplete
|
||||
or unimplemented.
|
||||
|
||||
Aetheria publishes semantic state and provider asset variants. Eve owns
|
||||
portable contracts and plugin ABIs. Native layer allocation, masks, render
|
||||
textures, prefab assembly, materials, GPU buffers, particles, trails, pooling,
|
||||
culling, and diagnostics are derived runtime state, never portable authority.
|
||||
|
||||
## Visual Parity Proofs
|
||||
|
||||
Capture and compare pilot world, shield hit, each projectile/beam/trail family,
|
||||
fog/fields, minimap, zone map, and sector map. Diagnostics must identify source
|
||||
projection, channel, camera, target texture, visibility set, active asset
|
||||
variant, and provider event/state version.
|
||||
|
|
@ -1,200 +0,0 @@
|
|||
# Original Game Simulation Specification
|
||||
|
||||
Baselines: RTS `d12d7c5c^`; ARPG `origin/master` at `ab2c2944`.
|
||||
|
||||
## Entity Lifecycle
|
||||
|
||||
Entity construction starts from a hull item. It maps the hull grid, initializes
|
||||
armor, thermal mass, conductivity, hardpoints, equipment occupancy, behavior
|
||||
groups, and weapon groups. Activation initializes behaviors and subscriptions
|
||||
for zone membership, hostility, targeting, visibility, and destruction.
|
||||
|
||||
Deactivation disposes subscriptions and stops active behavior updates. Parent
|
||||
and child entities share parent pose/velocity and child mass contributes to
|
||||
parent mass. Docking removes the ship from the zone and parents it to a docking
|
||||
entity; undocking restores zone membership and activation.
|
||||
|
||||
Death may result from hull depletion, cockpit destruction, heatstroke, or
|
||||
hypothermia. Equipment fitting and cargo placement preserve item identity and
|
||||
validate geometric occupancy.
|
||||
|
||||
Evidence: `ServerShared/Entity.cs`, `Zone.cs`, `Ship.cs`,
|
||||
`EntitySerializer.cs`.
|
||||
|
||||
## Stat Evaluation
|
||||
|
||||
Behavior stats combine authored data with item quality, durability performance,
|
||||
thermal performance, wear, and attached modifiers. Additive and multiplicative
|
||||
modifiers can be attached dynamically by equipment and timed consumables.
|
||||
|
||||
The daemon must execute one catalog-derived behavior graph. It must not retain
|
||||
one set of broad serialized fields while advancing a separate synthetic stat
|
||||
model.
|
||||
|
||||
## Thermal Grid
|
||||
|
||||
Each hull/equipment cell has temperature and thermal mass. Orthogonal cells
|
||||
exchange heat according to conductivity edges and mass ratios. Exterior cells
|
||||
radiate according to authored curves and radiation contributes visibility.
|
||||
Behaviors deposit or move heat at their installed location. Item thermal
|
||||
performance and online state derive from local temperature.
|
||||
|
||||
Cockpit temperature advances heatstroke/hypothermia accumulation and recovery.
|
||||
Threshold crossings and death are authoritative events.
|
||||
|
||||
Above 330 K, heatstroke advances by `(temperature - 330)^2 * 0.00001 * dt`;
|
||||
below the threshold it recovers by `0.2 * dt`. Below 273 K, hypothermia advances
|
||||
by `(273 - temperature)^2 * 0.00001 * dt`; above the threshold it also recovers
|
||||
by `0.2 * dt`. Values saturate to `[0,1]`, severe risk crosses at `0.25`, and a
|
||||
value above `0.99` kills through the ordinary entity death path. The fossil's
|
||||
hypothermia risk comparison accidentally read heatstroke; the daemon implements
|
||||
the intended symmetric threshold crossing while retaining the exact exposure
|
||||
and death formulas.
|
||||
|
||||
The daemon derives the grid from the equipped catalog, rather than accepting a
|
||||
renderer-authored heat scalar. Hull mass and specific heat are distributed over
|
||||
the hull shape; installed equipment contributes thermal mass and replaces the
|
||||
conductivity of its occupied cells. Equipment temperature is the mean of those
|
||||
cells. Authored thermal-performance curves and durability derive each item's
|
||||
current performance and online state. Generic wear and weapon-triggered wear
|
||||
consume the same temperature-derived wear potential.
|
||||
|
||||
## Energy Network
|
||||
|
||||
Capacitors store charge. A demand drains charged capacitors evenly first, then
|
||||
divides unmet demand among online reactors. Behaviors succeed or fail according
|
||||
to the actual transaction. Radiators consume energy to pump heat and produce
|
||||
waste heat. Shields consume energy per intercepted damage.
|
||||
|
||||
Per daemon tick, equipment performance is derived before behavior execution and
|
||||
all energy consumers transact against the same equipped network. Radiators then
|
||||
pump heat and add their demand, reactors settle baseline output, overload,
|
||||
capacitor refill, throttling and equipment heat, and finally the thermal grid
|
||||
conducts and radiates. Thermal and radiator radiation are independently replaced
|
||||
visibility contributions; they are not cumulative scalar drift. A client may
|
||||
request semantic controls, but cannot set charge, heat, wear, or online state.
|
||||
|
||||
## Behavior Execution
|
||||
|
||||
Required behavior families:
|
||||
|
||||
- propulsion: thruster and Aether drive;
|
||||
- energy: capacitor, reactor, conversion;
|
||||
- thermal: radiator, heatsink, thermotoggle;
|
||||
- sensors: sensor, ping, reflector, visibility;
|
||||
- defense: shield and hull/armor consequences;
|
||||
- weapons: instant, automatic, constant, charged, lock, launcher, guided;
|
||||
- utility: tractor, mining, scanner, item usage, velocity limit;
|
||||
- composition: switches, triggers, behavior groups, stat modifiers;
|
||||
- timed consumables containing ordinary behaviors.
|
||||
|
||||
Behavior groups expose semantic switches, triggers, or analog controls. The
|
||||
daemon advertises those controls as current actions. Clients never invoke the
|
||||
behavior implementation directly.
|
||||
|
||||
## Consumables
|
||||
|
||||
Activation requires the actual item in cargo. Non-stackable effects reject a
|
||||
duplicate active effect. Activation removes the item instance and executes its
|
||||
behaviors for authored duration. Quality contributes to stat evaluation.
|
||||
Expiration removes effects and attached modifiers exactly once. `ItemUsage` may
|
||||
consume another configured cargo item.
|
||||
|
||||
## Sensors And Visibility
|
||||
|
||||
Visibility sources are independently identified and decayed. Passive sensors
|
||||
accumulate observer-relative information from installed sensor sensitivity,
|
||||
target signature, and distance. Passive reach is derived from enabled installed
|
||||
sensor arrays; multiple arrays combine with diminishing returns. Stations have
|
||||
no class bonus: their advantage comes from spending hull volume, mass, power,
|
||||
cooling, and computation on sensor equipment ships cannot afford. Cargo-held
|
||||
sensors contribute nothing. Threshold transitions create/remove classified contacts. Ping consumes
|
||||
energy, raises source visibility, expands in space, and grants information on
|
||||
crossing. Hostility uses faction ownership, security, and presence rules.
|
||||
|
||||
Sensor reach and emitted visibility are separate quantities. Contact refresh
|
||||
must never overwrite the thermal, propulsion, weapon, reflector, and ping
|
||||
sources that make an entity detectable.
|
||||
|
||||
## AI
|
||||
|
||||
Agents own root/current state, task, controls, acceleration, and transitions.
|
||||
Steering compares desired/current velocity. `MoveTo` is stopping-aware;
|
||||
`MatchVelocity` converges to target motion. Combat evaluates useful weapon
|
||||
groups and optimum range. Civilian tasks include hauling, mining, patrol,
|
||||
towing, survey, and wandering.
|
||||
|
||||
AI reads the same contacts, behavior graph, physics, and command primitives as
|
||||
players. It does not use privileged damage or movement shortcuts.
|
||||
|
||||
The original corporation scheduler is preserved in commit `ab8aa5fb`,
|
||||
`ServerShared/GameContext.cs`. For each corporation it filters unreserved
|
||||
tasks, groups them by task type, discards groups with no compatible available
|
||||
controller, orders jobs by descending priority, zips them with compatible
|
||||
controllers, flattens the assignments, reserves each task, and calls the
|
||||
controller's ordinary `AssignTask` entry point. The daemon scheduler must retain
|
||||
that queue/capability/priority/availability contract. Assignment state is
|
||||
durable; task execution drives the same semantic controls used by players.
|
||||
|
||||
The historical hauling controller (`991d411c`) travels to the origin, docks,
|
||||
loads up to available capacity and outstanding quantity, waits, travels to the
|
||||
destination, docks, unloads, and repeats until the requested quantity is
|
||||
delivered. Daemon task phases may advance only from accepted movement,
|
||||
docking, and cargo-transfer results. A rejected transfer leaves both cargo and
|
||||
task phase unchanged.
|
||||
|
||||
The remaining implemented RTS controllers at `d12d7c5c^` are normative:
|
||||
|
||||
- `MiningController` selects the nearest extant asteroid, approaches tool
|
||||
range, aims and activates the mining switch, chooses another depleted
|
||||
asteroid, and returns home to unload when cargo is full.
|
||||
- `SurveyController` chooses the nearest unsurveyed planet or belt asteroid,
|
||||
approaches scanner range while matching target motion, aims and scans until
|
||||
the corporation survey floor satisfies scanner density, then advances.
|
||||
- `TowingController` travels to the station, parents the station to the tug,
|
||||
carries it to the requested orbital radius, detaches it, creates the orbit,
|
||||
and completes.
|
||||
- `PatrolController` continuously selects orbital targets and uses locomotion
|
||||
until it reaches the configured target distance.
|
||||
- `WanderController` chooses random planets or orbitals; orbital wandering can
|
||||
dock for a randomized duration before selecting another target.
|
||||
|
||||
Evidence: `d12d7c5c^:Assets/Scripts/ServerShared/Behaviors/{Mining,
|
||||
Survey,Towing,Patrol,Wander,Hauling}Controller.cs` and
|
||||
`ab8aa5fb:Assets/Scripts/ServerShared/GameContext.cs`.
|
||||
|
||||
## Quality And Progression
|
||||
|
||||
Crafted items carry continuous quality. Quality changes performance, durability
|
||||
response, thermal response, price, and wear. Rarity tiers map quality bands and
|
||||
derive tier/upgrade count. There is no XP/skill-tree system in the baseline.
|
||||
|
||||
## Ymir Boundary
|
||||
|
||||
Ymir owns deterministic bodies, integration, fields, shape/ray/sweep queries,
|
||||
contacts, impulses, projectile trajectories, and spatial placement candidates.
|
||||
The daemon owns equipment interpretation, accepted controls, resource costs,
|
||||
damage meaning, lifecycle, inventory, and persistence.
|
||||
|
||||
Daemon projectile integration and contact detection now call standalone
|
||||
`Ymir.Core`. Ship flight, gravity, tractor interaction, docking placement, and
|
||||
the remaining Unity query bridge still need to enter that same world before
|
||||
the boundary is complete.
|
||||
|
||||
## Simulation Pipeline
|
||||
|
||||
```text
|
||||
typed commands + elapsed fixed time + catalog-derived behavior graph
|
||||
-> validate semantic controls and resource transactions
|
||||
-> derive forces/bodies/queries for Ymir
|
||||
-> Ymir deterministic spatial step
|
||||
-> interpret contacts and spatial results
|
||||
-> advance thermal, energy, sensors, AI, behaviors, lifecycle
|
||||
-> one atomic daemon commit
|
||||
-> durable state + deduplicated event chronology
|
||||
-> Eve projections
|
||||
```
|
||||
|
||||
Order must be made explicit and parity-tested against the baseline. Full daemon
|
||||
boot is not the unit-test boundary: each organ requires narrow ports, mockable
|
||||
clock/physics/catalog dependencies, and adjacent pipeline smokes.
|
||||
|
|
@ -1,485 +0,0 @@
|
|||
# Aetheria Original Game Specification
|
||||
|
||||
Status: source-derived living specification
|
||||
|
||||
Authority: the executable fossil has two normative strata. The original RTS
|
||||
lineage is pinned immediately before the ARPG port at `d12d7c5c^`; the current
|
||||
ARPG lineage is pinned at `origin/master`. Removed RTS mechanics remain part of
|
||||
Starbridge even when the ARPG rebuild no longer contains their bodies.
|
||||
This document describes that behavior without granting the fossil Unity project
|
||||
authority in the target architecture.
|
||||
|
||||
Pinned ARPG baseline: `ab2c294464bb30b9b5c8987cdb9108204821a92d`.
|
||||
Pinned RTS baseline: `d12d7c5c^`.
|
||||
|
||||
Subsystem specifications:
|
||||
|
||||
- [Simulation](original-game-simulation-spec.md)
|
||||
- [Combat](original-game-combat-spec.md)
|
||||
- [World, economy, and progression](original-game-world-economy-spec.md)
|
||||
- [Presentation](original-game-presentation-spec.md)
|
||||
- [Rendering and views](original-game-rendering-spec.md)
|
||||
- [Migration matrix](original-game-migration-matrix.md)
|
||||
|
||||
Target gameplay evolution beyond fossil parity:
|
||||
|
||||
- [Cockpit and doctrine combat](cockpit-doctrine-combat.md) defines the
|
||||
post-parity target experience: an embodied cockpit, player-authored combat
|
||||
intent, and cognition-mediated precision execution. Original manual controls
|
||||
remain the parity baseline and an optional fallback/debug surface until that
|
||||
direction passes its experience proofs. This target does not rewrite the
|
||||
archaeology or parity scenarios; original semantic actions, simulation
|
||||
constraints, and damage remain its execution substrate.
|
||||
|
||||
## Purpose
|
||||
|
||||
The original Unity game contains the accumulated mechanics, timing, controls,
|
||||
rendering decisions, and player feedback that define Aetheria as a game. The
|
||||
target is behavioral parity through a different machine:
|
||||
|
||||
- the Aetheria daemon owns game state and simulation decisions;
|
||||
- the Aetheria simulation owns committed physical state and computes spatial
|
||||
integration, queries, and collision through Ymir;
|
||||
- Eve surfaces expose everything a client needs to understand and present;
|
||||
- EveUnity lowers those semantics into Unity rendering and interaction;
|
||||
- provider assets retain authored visual, audio, and material content;
|
||||
- no client reconstructs authority from presentation state.
|
||||
|
||||
Parity means the same player intent produces materially the same mechanical
|
||||
outcome and legible feedback. It does not require preserving Unity component
|
||||
boundaries or implementation accidents.
|
||||
|
||||
## Evidence Rules
|
||||
|
||||
Each normative behavior must cite an executable source path in the applicable
|
||||
pinned lineage. Git history is authoritative evidence when the ARPG port
|
||||
deleted an implemented RTS mechanic.
|
||||
Timing, thresholds, formulas, and ordering must cite the defining source rather
|
||||
than a caller that merely observes the result. Scene and prefab evidence is
|
||||
valid for composition, layer, camera, and feedback behavior. Current-branch
|
||||
code is evidence of migration status, not evidence of original behavior.
|
||||
|
||||
The principal source bodies are:
|
||||
|
||||
- `Assets/Scripts/ServerShared`: Unity-free mechanics and state transitions;
|
||||
- `Assets/Scripts/Gameplay`: player orchestration and presentation feedback;
|
||||
- `Assets/Scripts/Zone Display`: world, map, fog, and field presentation;
|
||||
- `Assets/Scripts/UI`: HUD, inventory, trade, menus, and input display;
|
||||
- `Assets/Scenes/ARPG.unity`: runtime composition and camera/layer policy;
|
||||
- `Assets/Resources`: provider-authored prefabs, materials, icons, and effects;
|
||||
- catalog and settings assets: authored numeric balance and content.
|
||||
|
||||
## Modes And Views
|
||||
|
||||
### Terminus
|
||||
|
||||
Terminus is a single-player game mode using the pilot surface. The minimum
|
||||
complete loop is: fly, acquire or select a target, fire, survive return fire,
|
||||
destroy or disable something, scoop useful cargo, dock, and trade. It shares
|
||||
pilot mechanics and presentation with the Starbridge pilot role. The target
|
||||
product is a repeatable roguelike run: deploy from the persistent Hangar,
|
||||
cross escalating encounters, salvage and refit, then extract, win, abandon, or
|
||||
die. Only an accepted terminal settlement may move rewards or losses between
|
||||
the run and the Hangar.
|
||||
|
||||
### Starbridge
|
||||
|
||||
Starbridge is one multiplayer mode with two simultaneous projections of one
|
||||
authoritative state:
|
||||
|
||||
- one commander uses the 2D RTS view;
|
||||
- up to four pilots use the 3D ARPG view;
|
||||
- the Unity map panel and Electron commander backdrop are projections of the
|
||||
same strategic world facts;
|
||||
- view choice never creates a second simulation.
|
||||
|
||||
Starbridge uses Commander-daemon default simulation with jurisdictional Pilot
|
||||
correction. The Commander daemon simulates every fact and owns canonical
|
||||
finality and persistence. Pilot daemons independently predict facts for their
|
||||
own ship, daemon-assigned nearest environment entities, and assigned combat
|
||||
engagements. A validated mismatch resolves toward the pilot result; the
|
||||
Commander daemon corrects and replays its provisional state. Outside pilot
|
||||
jurisdiction, the Commander player owns Verse authorship and the Commander
|
||||
daemon result stands. No Pilot daemon owns a private persistent world.
|
||||
|
||||
Terminus, Starbridge, and Arena share the canonical Hangar, deployment,
|
||||
catalog keys, fitting rules, and saved loadout templates described in
|
||||
[Game Modes And Progression](game-modes-and-progression.md). They do not share
|
||||
live session entity graphs, encounter state, or mode-local stock.
|
||||
|
||||
### Arena
|
||||
|
||||
Arena is the server-authoritative PvP and competitive game-simulation mode. Human
|
||||
players and AI controllers use identical typed observations and operations;
|
||||
the server alone admits deployments, advances simulation, resolves combat, and
|
||||
scores outcomes. Deterministic and accelerated Arena runs are the primary NPC
|
||||
policy training/evaluation and build-versus-build balancing harness, not a
|
||||
second rules implementation. Terminus and Starbridge must also run headlessly;
|
||||
headless execution belongs to the shared simulation body, not to one mode.
|
||||
|
||||
### Pilot View
|
||||
|
||||
The pilot view follows the controlled ship in 3D. It presents world geometry,
|
||||
combat, fields, effects, target feedback, cockpit status, and overlays. It must
|
||||
not render tactical-map glyphs embedded in provider prefabs.
|
||||
|
||||
Evidence:
|
||||
|
||||
- `Assets/Scenes/ARPG.unity` composes follow and dock cameras;
|
||||
- `ProjectSettings/TagManager.asset` assigns `Minimap` to Unity layer 14;
|
||||
- `Assets/Scripts/Gameplay/EntityInstance.cs` owns a separate `MapIcon` visual;
|
||||
- `Assets/Scripts/Zone Display/ZoneRenderer.cs` sizes map icons from minimap
|
||||
distance independently of world geometry.
|
||||
|
||||
### Tactical And Strategic Views
|
||||
|
||||
Map views render semantic contacts, bodies, fields, influence, and navigation
|
||||
at map scale. Their glyph scale and visibility rules are independent from the
|
||||
native geometry used by the pilot camera. A native asset may contain visuals
|
||||
for multiple view channels, but each camera renders only its selected channel.
|
||||
|
||||
## Core Entity Model
|
||||
|
||||
An entity is a simulated body with identity, faction, transform, velocity,
|
||||
visibility, target state, equipment, cargo, docking relationships, behaviors,
|
||||
and derived performance. The controlled entity is selected by authoritative
|
||||
run state, not by whichever client object currently has focus.
|
||||
|
||||
Entity lifecycle includes creation from authored templates, activation in a
|
||||
zone, observation, targeting, damage, destruction, cargo/equipment drops,
|
||||
docking, undocking, zone transfer, and persistence in the run checkpoint.
|
||||
|
||||
Primary evidence:
|
||||
|
||||
- `Assets/Scripts/ServerShared/Entity.cs`;
|
||||
- `Assets/Scripts/ServerShared/EntityData.cs` and related loadout types;
|
||||
- `Assets/Scripts/Gameplay/EntityInstance.cs`;
|
||||
- `Assets/Scripts/Gameplay/ActionGameManager.cs`.
|
||||
|
||||
## Flight And Spatial Interaction
|
||||
|
||||
Player movement is intent applied to a simulated ship, not direct client
|
||||
transform mutation. Camera-relative input is converted to semantic movement;
|
||||
the simulation resolves thrust, velocity, drag, control limits, heat, and
|
||||
collisions. `origin/master` has no privileged boost input or boost state.
|
||||
Acceleration comes from installed and active thrusters or Aether drives,
|
||||
available energy, heat, mass, and movement axes. Future drive-boost or evasive
|
||||
maneuver actions therefore enter as equipment-provided semantic actions rather
|
||||
than being invented as hidden base-flight rules.
|
||||
|
||||
Spatial mechanics include:
|
||||
|
||||
- acceleration, steering, velocity, drag, and stopping behavior;
|
||||
- collision bodies and collision response;
|
||||
- range checks for weapons, sensors, tractor, docking, and interactions;
|
||||
- tractor force and towing/scooping behavior;
|
||||
- docking and undocking placement;
|
||||
- projectiles and collision hits;
|
||||
- zone and navigation boundaries.
|
||||
|
||||
Target owner: Ymir computes authoritative spatial results from daemon-owned
|
||||
intent and body state. The daemon commits resulting game state. Clients may
|
||||
interpolate presentation but may not decide collisions or accepted movement.
|
||||
|
||||
### Original Flight Update
|
||||
|
||||
`Ship.Update` recalculates thrust and torque, clears actuator axes, allocates
|
||||
lateral and longitudinal thrust banks, compensates asymmetric lateral torque,
|
||||
steers toward the XZ look direction, drives Aether-drive axes, then applies
|
||||
hull drag and gravity. Thrusters consume energy, apply `thrust / mass * delta`,
|
||||
contribute torque, add heat, and add visibility. Aether drives separately model
|
||||
rotor RPM, coupling, passive coupling, torque, energy draw, and thrust.
|
||||
|
||||
Original tractor input is analog and approaches the requested value at two
|
||||
units per second. Interact prioritizes a nearby wormhole and otherwise attempts
|
||||
the first eligible nearby dock. Undocking requires a cockpit, propulsion, a
|
||||
reactor, and a bay able to release the ship.
|
||||
|
||||
Evidence: `Ship.cs`, `Thruster.cs`, `AetherDrive.cs`, and
|
||||
`ActionGameManager.cs`.
|
||||
|
||||
## Sensors, Visibility, And Targeting
|
||||
|
||||
Visibility is simulated and observer-relative. Sensors accumulate information,
|
||||
contacts distinguish visible/known/hostile state, pings alter visibility, and
|
||||
target selection is constrained by available contacts and game rules.
|
||||
|
||||
Passive sensor capability belongs to installed equipment, not to the `station`
|
||||
or `ship` entity kind. A station generally sees farther because its size and
|
||||
mass budget supports more and larger arrays together with the required power,
|
||||
cooling, and computation. An equivalently equipped ship and station have the
|
||||
same capability. Docked craft may consume the station's contact picture, but
|
||||
do not inherit a magical range value.
|
||||
|
||||
The pilot can select explicitly, cycle or choose nearest targets, and obtain a
|
||||
lock where required by equipment. The UI distinguishes target existence,
|
||||
visibility to target, target visibility, hostility, lock progress, shields, and
|
||||
hull condition.
|
||||
|
||||
Primary evidence:
|
||||
|
||||
- sensor and visibility behaviors under `Assets/Scripts/ServerShared`;
|
||||
- targeting in `Assets/Scripts/Gameplay/ActionGameManager.cs`;
|
||||
- target feedback fields in the ARPG scene and HUD prefabs.
|
||||
|
||||
Visibility is the sum of independently decaying sources produced by thermal
|
||||
radiation, weapons, propulsion, explicit visibility behavior, reflector cross
|
||||
section, and active pings. Each observer accumulates information per target.
|
||||
Crossing the configured threshold creates a classified contact; falling below
|
||||
it removes the contact and clears invalid targets. Active ping consumes energy,
|
||||
raises the observer's signature, expands over time, and grants information as
|
||||
its radius crosses entities. Targeting creates reciprocal `TargetedBy` state.
|
||||
|
||||
## Equipment And Derived Performance
|
||||
|
||||
Ships are assembled from a hull and slotted items. Items contribute behaviors
|
||||
and stat recipes. Equipment placement, condition, temperature, energy use,
|
||||
cooldowns, toggles, and active consumables affect derived ship performance.
|
||||
|
||||
Required behavior families include:
|
||||
|
||||
- hull, cockpit, reactor, battery, radiator, heatsink, thermotoggle;
|
||||
- thruster and maneuvering modifiers;
|
||||
- sensor, visibility, ping, and lock support;
|
||||
- shield generation and shield state;
|
||||
- instant, constant, projectile, and guided weapon behavior;
|
||||
- tractor and cargo interaction;
|
||||
- consumables and timed effects.
|
||||
|
||||
Behavior groups expose switches, triggers, or analog controls while behaviors
|
||||
own execution. The original set includes instant, constant, charged, lock,
|
||||
automatic, launcher, and guided weapons; capacitors, reactors, radiators,
|
||||
sensors, reflectors, visibility, mining and resource scanning; stat modifiers;
|
||||
conversion, velocity-limit, trigger, switch, and thermotoggle behaviors.
|
||||
|
||||
Stats derive from quality, durability performance, thermal performance, wear,
|
||||
stat recipes, and attached modifiers. Persisting behavior fields without
|
||||
executing this graph is not parity.
|
||||
|
||||
The action bar is a binding surface over currently available semantic actions.
|
||||
Its contents change with equipment and cargo. Any exposed input, including
|
||||
Shift or Space, may bind to an action slot. Controller directional strings are
|
||||
first-class input gestures.
|
||||
|
||||
## Thermal And Energy Simulation
|
||||
|
||||
Items and ship compartments exchange or generate heat according to their
|
||||
behaviors. Cockpit temperature contributes to hypothermia and heatstroke.
|
||||
Threshold crossings produce warnings; sustained extreme temperature can kill
|
||||
the pilot. Heatstroke and hypothermia recover according to gameplay settings.
|
||||
|
||||
Original formula and threshold authority:
|
||||
|
||||
- `Assets/Scripts/ServerShared/Entity.cs` heatstroke/hypothermia update paths;
|
||||
- `Assets/Scripts/ServerShared/Settings.cs` temperature thresholds,
|
||||
multipliers, exponents, recovery speeds, and control limits.
|
||||
|
||||
Presentation includes schematic temperatures, limit markers, warnings,
|
||||
post-processing intensity, severe heatstroke phasing, shutdown state, and cause
|
||||
of death. Presentation never computes medical state from a color or effect.
|
||||
|
||||
The original thermal model is cell-based. Hull cells exchange heat with
|
||||
orthogonal neighbors according to occupants, conductivity edges, and thermal
|
||||
mass ratios. Exterior cells radiate through an authored power curve and this
|
||||
radiation contributes visibility. Radiators consume energy to pump and reject
|
||||
heat. Item online state and thermal performance derive from local temperature.
|
||||
|
||||
Energy demand drains capacitors evenly first; remaining demand is distributed
|
||||
across online reactors. Propulsion, weapons, shields, sensors, charging, and
|
||||
cooling therefore share one energy network. A scalar heat value with linear
|
||||
decay is only a placeholder.
|
||||
|
||||
## Combat
|
||||
|
||||
Combat order is:
|
||||
|
||||
1. The actor selects or retains a valid target.
|
||||
2. An available semantic weapon-group action is activated.
|
||||
3. Weapon state validates lock, range, cooldown, energy, heat, ammunition, and
|
||||
behavior-specific constraints.
|
||||
4. The simulation emits the appropriate instant, constant, projectile, or
|
||||
guided attack.
|
||||
5. Ymir resolves spatial travel and collision for physical attacks.
|
||||
6. Damage is applied through shields, armor/hull rules, equipment effects, and
|
||||
destruction state.
|
||||
7. Destruction produces authoritative drops and removes or transforms the
|
||||
entity.
|
||||
8. Eve publishes both durable state and transient feedback events.
|
||||
|
||||
The original game exposes multiple weapon behavior classes. A single generic
|
||||
bolt approximation is not parity. Each behavior's timing, targeting, damage,
|
||||
visibility, energy, heat, and effect contract must be specified from
|
||||
`Assets/Scripts/ServerShared` and weapon presentation code.
|
||||
|
||||
Player feedback includes muzzle/beam/projectile effects, shield impact,
|
||||
damage/destruction effects, audio, target meter changes, lock state, and a
|
||||
time-bounded hit marker when the controlled entity damages its target.
|
||||
|
||||
Primary feedback evidence:
|
||||
|
||||
- `Assets/Scripts/Gameplay/ActionGameManager.cs` target and hit-marker logic;
|
||||
- weapon implementations under `Assets/Scripts/Gameplay/Weapons`;
|
||||
- behavior implementations under `Assets/Scripts/ServerShared`;
|
||||
- `Assets/Scripts/Gameplay/EntityInstance.cs` effect materialization.
|
||||
|
||||
Damage is typed and spatial. Shields are active energy-to-heat interceptors,
|
||||
not regenerating shield hit points: interception requires an active shield and
|
||||
energy for `damage * EnergyUsage`, then deposits `damage / Efficiency` as heat.
|
||||
Remaining damage maps to schematic cells and flows through armor, fitted item
|
||||
durability, then hull durability according to spread and penetration. Armor,
|
||||
item, weapon, cockpit, hull, and thermal deaths are distinct facts.
|
||||
|
||||
AI is a state/task system. Combat agents evaluate weapon-group damage across
|
||||
range, select useful groups and optimum range, approach, retreat or match
|
||||
velocity, target, and fire. Other tasks include hauling, mining, patrol,
|
||||
towing, survey, and wandering. Nearest-player pursuit with one synthetic
|
||||
weapon is not parity.
|
||||
|
||||
## Loot, Cargo, Inventory, And Equipment
|
||||
|
||||
Destroyed entities can create world pickups from authoritative cargo and
|
||||
equipment decisions. A player can acquire loot through collision/scoop or
|
||||
tractor interaction when rules permit. Items move between world, cargo bays,
|
||||
equipment slots, docking storage, and trade stock through typed operations.
|
||||
|
||||
The UI supports inspection, comparison, drag/drop transfer, valid-destination
|
||||
feedback, equipment changes, cargo capacity, and action availability. Client
|
||||
drag state is presentation-only; accepted transfer and resulting loadout are
|
||||
daemon-owned.
|
||||
|
||||
Original destroyed entities probabilistically drop non-hull equipment and all
|
||||
cargo as physical pickups with inherited/random velocity and a thirty-second
|
||||
lifetime. Pickup collision attempts storage in eligible cargo bays; success
|
||||
destroys the pickup and failure leaves it in space. Equipment fitting validates
|
||||
hull shape, rotation, occupancy, hardpoints, and placement constraints.
|
||||
|
||||
## Docking, Stations, And Trade
|
||||
|
||||
Docking requires a valid nearby facility and results in authoritative docking
|
||||
relationships and placement. Docked presentation switches camera/context and
|
||||
enables station services. Undocking restores the pilot to world simulation at
|
||||
an authoritative spawn transform.
|
||||
|
||||
Trade uses station stock, player funds/resources, item quality/condition,
|
||||
prices, and capacity rules. Purchase and sale mutate daemon state atomically
|
||||
and return receipts. The trade UI derives available commands and disabled
|
||||
reasons from the published state.
|
||||
|
||||
The original market is station inventory. Purchase requires credits and
|
||||
destination capacity; commodities split into stack-sized lots; hull purchase
|
||||
creates a docked player ship. No original sell path was found. Stations also
|
||||
provide refit/loadout restoration, ship selection, local narrative, and towing.
|
||||
|
||||
## World, Zones, And Progression
|
||||
|
||||
The world contains zones, stations, orbitals, bodies, asteroids, factions,
|
||||
connections, fields, and encounter state. Zone rendering includes world
|
||||
objects plus gravity/fog/influence and map projections. Travel and progression
|
||||
must preserve the original generation and transition rules before new content
|
||||
extends them.
|
||||
|
||||
Terminus content may be sparse, but the machinery must support a repeatable
|
||||
single-player roguelike loop. Starbridge reuses the same Hangar and pilot
|
||||
machinery while adding its own shared session, commander, and multi-pilot
|
||||
coordination under mixed authority. Arena reuses the same deployment vocabulary
|
||||
under server-authoritative admission/normalization.
|
||||
|
||||
Travel is embodied through nearby wormholes. Transition transfers the current
|
||||
entity, reveals destination adjacency, performs exit motion, and saves.
|
||||
Progression is exploration, discovery, combat, loot, refit, trade, ship
|
||||
acquisition, faction territory, boss-path traversal, and narrative locations.
|
||||
No XP/level system was found; item quality, rarity, and acquisition are the
|
||||
implemented progression axis.
|
||||
|
||||
## HUD And Player Feedback
|
||||
|
||||
The pilot HUD must expose, at minimum:
|
||||
|
||||
- controlled ship schematic and equipment state;
|
||||
- target identity, relation, visibility, lock, hull, and shield state;
|
||||
- crosshair/view direction and selected-target indicators;
|
||||
- action bar with live availability, cooldown, binding, and activation state;
|
||||
- cargo/inventory affordances and interaction prompts;
|
||||
- docking and station context;
|
||||
- thermal, shutdown, damage, death, hit, and warning feedback;
|
||||
- minimap/map projection through its own view channel;
|
||||
- command rejection or disabled reasons where an action cannot execute.
|
||||
|
||||
The UI's visual composition may be modernized, but information timing and
|
||||
salience are part of behavior. A metric card containing the same number is not
|
||||
automatically equivalent to the original feedback.
|
||||
|
||||
## Rendering And Audio
|
||||
|
||||
Provider assets may contain multiple semantic subviews: pilot geometry,
|
||||
tactical glyphs, shields, combat effects, influence, and other overlays. Eve
|
||||
advertises the active view. Runtime variants map semantic render channels to
|
||||
native camera/layer mechanisms. The pilot camera must not render map glyphs;
|
||||
map cameras must not depend on pilot geometry being visible.
|
||||
|
||||
Authored prefab transforms are authoritative presentation data. Semantic world
|
||||
radius is collision/selection metadata and must not rescale native art. Camera
|
||||
framing derives from authored visual bounds and advertised camera semantics.
|
||||
|
||||
Audio and VFX are triggered from semantic state or event facts with stable
|
||||
identities and timing. They may not infer authoritative hits, deaths, or weapon
|
||||
activation from local particle collisions.
|
||||
|
||||
## Save, Resume, And Multiplayer Consistency
|
||||
|
||||
Authoritative run state and durable Hangar progression are separate typed
|
||||
CultCache state published through CultMesh. Reconnect, reload, and view changes
|
||||
must reproduce the same current entity, zone, session loadout, docking, target,
|
||||
combat, and run-local cargo. The Hangar separately preserves owned ships,
|
||||
stored equipment, currencies/materials, unlocks, and saved loadout templates.
|
||||
Only deployment and exactly-once settlement transactions cross that boundary.
|
||||
Presentation-only animation may restart; game decisions may not.
|
||||
|
||||
Starbridge clients observe one shared session. A pilot and commander can issue
|
||||
different semantic commands, but neither owns a private copy of the world.
|
||||
|
||||
## Required Scenario Proofs
|
||||
|
||||
1. **Flight:** launch Terminus, fly, turn, stop, exercise installed propulsion
|
||||
actions, and collide; daemon-committed state and visible Ymir-computed motion
|
||||
agree throughout.
|
||||
2. **Target and combat:** acquire a hostile, lock where required, fire each
|
||||
weapon family, observe effects and hit feedback, take return fire, and
|
||||
destroy the target.
|
||||
3. **Loot:** observe authoritative drops, tractor or scoop one, and see the item
|
||||
appear in cargo exactly once.
|
||||
4. **Dock and trade:** dock, inspect stock, buy and sell, change equipment,
|
||||
undock, and observe the changed ship behavior.
|
||||
5. **Thermal:** generate heat, cross warning/control thresholds, recover, and
|
||||
verify HUD/post-processing follows daemon facts.
|
||||
6. **Views:** show the same zone in pilot, minimap, Unity tactical map, and
|
||||
Electron commander view without leaking view-specific glyphs.
|
||||
7. **Persistence:** restart daemon/client mid-loop and recover authoritative
|
||||
state without client repair logic.
|
||||
8. **Starbridge:** one commander and multiple pilots act in the same session;
|
||||
all projections converge on one command/receipt history.
|
||||
9. **Cross-mode progression:** deploy one saved Hangar loadout into Terminus and
|
||||
Starbridge through the same typed path; admit it into Arena through that path;
|
||||
settle a Terminus outcome exactly
|
||||
once; prove reconnect, failure, and proof scenarios cannot duplicate or
|
||||
counterfeit durable progression.
|
||||
10. **Arena simulation:** run a deterministic server-authoritative match with
|
||||
human or AI controllers using the same typed operation boundary; reproduce
|
||||
the scored outcome headlessly from the same seed and ordered inputs; compare
|
||||
controller-policy and ship-build variants with versioned reproducible facts.
|
||||
|
||||
## Open Archaeology Ledger
|
||||
|
||||
The following require exact source-derived sub-specs before parity can be
|
||||
claimed:
|
||||
|
||||
- complete weapon-family formulas and timing;
|
||||
- full thermal/energy/stat-recipe update order;
|
||||
- AI state machines and encounter spawning;
|
||||
- docking eligibility and placement rules;
|
||||
- trade price and stock mutation formulas;
|
||||
- zone generation, travel, and progression rules;
|
||||
- every HUD indicator's source fact, update trigger, and animation timing;
|
||||
- audio event matrix;
|
||||
- render-channel membership for all provider prefab subviews;
|
||||
- multiplayer ownership and conflict rules from the original network model.
|
||||
|
|
@ -1,134 +0,0 @@
|
|||
# Original Game World, Economy, And Progression Specification
|
||||
|
||||
Baselines: RTS `d12d7c5c^`; ARPG `origin/master` at `ab2c2944`.
|
||||
|
||||
## Docking
|
||||
|
||||
While docked, a pilot shares the dock parent's sensor-derived contact set. This
|
||||
is not a special station-quality multiplier: stations can spend their greater
|
||||
size, mass, power, cooling, and equipment capacity on sensor apertures and
|
||||
support systems that ships cannot economically carry. The daemon unions the
|
||||
ship and dock-parent contact sets; Eve receives only the resulting authoritative
|
||||
visibility projection.
|
||||
|
||||
Contextual interact first considers a nearby wormhole, then docking. Docking is
|
||||
proximity-based, requires the ship to be unparented, iterates nearby entities,
|
||||
and uses the first bay accepting `TryDock`. Success changes zone/parent
|
||||
relationships, control binding, perspective, camera, inventory context, and
|
||||
station services.
|
||||
|
||||
Undocking requires cockpit, propulsion, reactor, and a docking bay able to
|
||||
release the ship under its occupancy/cargo constraints. The daemon owns all
|
||||
eligibility and placement. Eve publishes current context, available command,
|
||||
disabled reason, and resulting receipt. Camera/menu transition is derived.
|
||||
|
||||
## Inventory And Equipment
|
||||
|
||||
Items retain stable identity, quality, durability, temperature, behavior state,
|
||||
and quantity. Equipment placement validates hull shape, rotation, occupancy,
|
||||
hardpoints, and equipment constraints. Cargo bays are shaped grids supporting
|
||||
capacity and stacks.
|
||||
|
||||
Every transfer is an atomic daemon operation with source, destination, item,
|
||||
placement, resulting state, and typed rejection reason. Client drag/drop is a
|
||||
proposal and preview only. Required paths include cargo-to-cargo,
|
||||
cargo-to-equipment, equipment-to-cargo, equipment-to-equipment, station/player
|
||||
transfers, loadout restore, naming, and current-ship selection.
|
||||
|
||||
## Destruction, Loot, And Scooping
|
||||
|
||||
Destroyed entities roll each non-hull fitted item independently for drop and
|
||||
drop all cargo. Pickups are physical bodies with identity, item contents,
|
||||
velocity, and thirty-second lifetime. Tractor affects spatial motion. Pickup
|
||||
collision attempts storage in any eligible cargo bay. Success commits item
|
||||
transfer and despawn exactly once; insufficient capacity leaves the pickup.
|
||||
|
||||
## Stations
|
||||
|
||||
Stations provide docking bays, stock cargo, trade, refit/loadout restoration,
|
||||
owned/player ship selection, local narrative, and optional towing. Target
|
||||
architecture publishes one coherent station workflow surface rather than a
|
||||
catalog of unrelated contextual dialogs.
|
||||
|
||||
## Trade
|
||||
|
||||
Station inventory is the baseline market. Price comes from item data or crafted
|
||||
valuation. Purchase requires credits and destination capacity. Commodities
|
||||
split into stack-sized lots. Hull purchase creates a docked player ship. Credits,
|
||||
stock, destination inventory, and ship ownership commit atomically.
|
||||
|
||||
No baseline sell path was found. Selling, stock replenishment, scarcity,
|
||||
production, and dynamic faction economy are extensions; they must not be cited
|
||||
as missing baseline parity.
|
||||
|
||||
## Galaxy And Zones
|
||||
|
||||
Generation creates zones, links, factions, entrance/exit, critical/boss path,
|
||||
initial discovery, and contents. Zone state includes entities, bodies,
|
||||
asteroids/resources, orbitals, stations, fields, wormholes, encounters, and
|
||||
faction/security context.
|
||||
|
||||
Sector map is a discovered-topology inspection projection. Full zone map and
|
||||
minimap are separate spatial projections. Shared identities link all views.
|
||||
|
||||
## Travel
|
||||
|
||||
Travel is embodied by entering a nearby wormhole. One daemon transaction:
|
||||
|
||||
1. validates proximity and destination;
|
||||
2. removes/transfers the current entity;
|
||||
3. changes current zone;
|
||||
4. reveals destination adjacency according to baseline rules;
|
||||
5. chooses authoritative exit pose/motion through Ymir;
|
||||
6. checkpoints the run;
|
||||
7. publishes transition/result events and new projections.
|
||||
|
||||
No Unity callback may complete discovery, transfer, or save after command
|
||||
acceptance. Towing is a separate station-mediated relocation mechanic.
|
||||
|
||||
## Progression Spine
|
||||
|
||||
The fossil New Game begins at the entrance with a generated player ship. In the
|
||||
target product, mode selection begins from a committed Hangar deployment;
|
||||
generation may fill mode-owned world content and explicitly loaned session
|
||||
equipment, but it does not replace durable cross-mode progression. Baseline
|
||||
progression consists of:
|
||||
|
||||
- exploration and discovery;
|
||||
- combat and survival;
|
||||
- physical loot acquisition;
|
||||
- equipment fitting and refit;
|
||||
- trade and ship acquisition;
|
||||
- faction territory and critical/boss-path traversal;
|
||||
- narrative locations;
|
||||
- persistence of zone, entity, inventory, loadout, and action bindings.
|
||||
|
||||
The target separates two owners:
|
||||
|
||||
- the shared Hangar owns durable hulls, stored equipment/cargo, currencies,
|
||||
unlocks, and saved loadout templates across Terminus, Starbridge, and Arena;
|
||||
- each mode session owns its instantiated ship, damage, run-local cargo,
|
||||
encounter state, and score until one terminal settlement applies the mode's
|
||||
explicit reward/loss policy.
|
||||
|
||||
No mode owns a private inventory schema. See
|
||||
[Game Modes And Progression](game-modes-and-progression.md).
|
||||
|
||||
The target daemon needs an explicit run-state machine linking these pieces,
|
||||
including new/continue, active encounter, docked service context, travel,
|
||||
failure/death, completion, and Starbridge session roles. A collection of
|
||||
documents is not itself a game loop.
|
||||
|
||||
## Receipts And Player Recovery
|
||||
|
||||
All rejected operations expose stable reason codes and recovery facts. Required
|
||||
examples include cargo full, invalid placement, missing cockpit/propulsion/
|
||||
reactor, no eligible bay, insufficient credits, invalid target, unavailable
|
||||
route, item unavailable, stale quote, and duplicate command.
|
||||
|
||||
## Scenario Proof
|
||||
|
||||
Run from new game through flight, wormhole travel, hostile encounter,
|
||||
destruction/drop, failed and successful scoop, docking, purchase, equipment
|
||||
change, undock, behavior change, save, restart, and continue. Capture daemon
|
||||
commits, Ymir timeline, Eve surfaces/events, receipts, and visible client state.
|
||||
|
|
@ -1,426 +0,0 @@
|
|||
# Renderless Aetheria Architecture
|
||||
|
||||
Date: 2026-07-06
|
||||
|
||||
This document records the intended architecture before the next demolition pass.
|
||||
It is not an implementation claim. It is the map the implementation must be
|
||||
measured against.
|
||||
|
||||
Canonical Eve-side doctrine lives in
|
||||
`E:\Projects\Eve\docs\world-state-lowering.md`. This Aetheria document applies
|
||||
that doctrine to Aetheria: the daemon is the provider, Eve owns world-state
|
||||
lowering semantics, and Aetheria clients are conformance targets.
|
||||
|
||||
## Objective
|
||||
|
||||
Aetheria should become a renderless, policy-authoritative game whose three
|
||||
product modes share one simulation and progression spine.
|
||||
|
||||
Terminus uses sole local-daemon authority. Starbridge uses Commander-default
|
||||
simulation with jurisdictional Pilot correction. Arena uses sole server
|
||||
authority. In Starbridge, the Commander daemon owns the full default simulation,
|
||||
canonical log, persistence, and publication. Pilot daemons independently
|
||||
predict facts inside assigned jurisdictions; a validated mismatch corrects the
|
||||
Commander daemon to the pilot result before external finality. Aetheria
|
||||
providers publish canonical typed operations, assets, and high-performance
|
||||
views of live state. Eve owns the portable UI and
|
||||
world-state rendering instruction contract. Unity, Godot, Electron, Hermodr,
|
||||
AI controllers, and later runtimes lower surfaces or submit typed operations;
|
||||
renderer attachment is never an authority input. All three modes must also run
|
||||
headlessly through the same simulation body.
|
||||
|
||||
The modes are the authority runway: Terminus proves local authority, Arena
|
||||
proves server authority, and Starbridge proves Commander-default/Pilot-corrected
|
||||
mixed authority. Witness-authoritative operation follows only after the server
|
||||
and mixed configurations pass live, restart, replay, and negative
|
||||
authority proofs through the same typed fact contract.
|
||||
|
||||
Hermodr is the RTS sanity check: an unspecialized Eve/browser client must be
|
||||
able to reconstruct the same RTS gameplay surface as Electron from the Eve spec,
|
||||
daemon API, state pointers, render-field documents, operation descriptors, and
|
||||
CultMesh CDN asset references.
|
||||
|
||||
Godot is the corresponding ARPG sanity check: an unspecialized non-Unity client
|
||||
must be able to reconstruct the 3D action-game surface from the same kind of
|
||||
daemon-authored contract, without inheriting Unity scene authority.
|
||||
|
||||
## Authority Map
|
||||
|
||||
Owner:
|
||||
Typed mode policy owns authority and jurisdiction assignment. The Terminus local
|
||||
daemon and Arena server own all simulation and finality in their sessions. In
|
||||
Starbridge, the Commander daemon owns simulation scheduling, the default
|
||||
candidate for every fact, canonical selection, deterministic correction/replay,
|
||||
persistence, receipts, and publication. A Pilot daemon owns the candidate result
|
||||
for its assigned jurisdiction when that validated result differs. The shared
|
||||
Hangar remains a separate authoritative typed aggregate outside live sessions.
|
||||
|
||||
Inputs:
|
||||
The Commander daemon reads canonical CultCache/CultMesh state, catalog data,
|
||||
authority policy, player operations, clock input, deterministic seeds, and asset
|
||||
manifests. Before each Starbridge prediction window it publishes an immutable
|
||||
tick envelope and jurisdiction table. Pilot candidates must use that same prior
|
||||
state root, versions, inputs, and seed position. Simulation transactions may
|
||||
invoke the embedded Ymir spatial kernel, but Ymir does not become a state owner.
|
||||
|
||||
Outputs:
|
||||
The provider publishes typed state documents, committed facts, operation receipts,
|
||||
simulation frames, SoA/native view descriptors, scalar and vector field
|
||||
documents, render splats, entity/object render rows, typed CultMesh artifact
|
||||
manifests, managed content sessions, and Eve/CultUI surfaces.
|
||||
|
||||
Derived state:
|
||||
Unity GameObjects, Electron canvases, Hermodr browser nodes, Godot scene nodes,
|
||||
local native buffers, local caches, and local input state are derived
|
||||
presentation/runtime state. They may improve performance or UX. They do not
|
||||
decide committed Aetheria truth.
|
||||
|
||||
Forbidden writers:
|
||||
Renderer-local gameplay compensators, Unity scene lifetime, Unity collision
|
||||
callbacks, Electron-only map builders, Hermodr Aetheria plugins, Godot-specific
|
||||
daemon branches, local file sidecars, renderer-owned asset fallbacks, and
|
||||
client-specific command routers must not write canonical gameplay state. A
|
||||
Pilot daemon cannot expand its own jurisdiction, directly append the canonical
|
||||
log, or correct a finalized fact. The Commander daemon cannot bypass an open
|
||||
pilot prediction window, publish provisional results as final, or preserve its
|
||||
own result after a valid in-window Pilot mismatch.
|
||||
|
||||
Starbridge finality:
|
||||
Every comparable fact slot is keyed by session, simulation/content versions,
|
||||
run and jurisdiction epochs, tick/substep, fact kind, subject, engagement or
|
||||
claim identity, and causal input-set hash. Jurisdiction is Commander-published
|
||||
typed state effective at a named tick. Commander results inside Pilot
|
||||
jurisdiction remain provisional for a deterministic tick/barrier window. A
|
||||
schema-valid, rules-valid, in-jurisdiction Pilot mismatch replaces the Commander
|
||||
candidate; dependent provisional state is replayed from that boundary. Silence
|
||||
or a missed window leaves the Commander candidate. Late results are evidence,
|
||||
not repairs. Only finalized facts may affect canonical gameplay checkpoints,
|
||||
score, Hangar settlement, or irreversible external effects. Open candidate
|
||||
windows and their evidence are durably journaled as protocol state so restart
|
||||
does not discard or promote a dispute.
|
||||
|
||||
Shared paths:
|
||||
Unity, Godot, Electron, Hermodr, tests, tools, and future clients should all
|
||||
consume the same daemon-published documents and Eve surfaces. Direct user input,
|
||||
programmatic commands, replay/import, reconnect, and automation should all enter
|
||||
through typed operations, scoped Pilot candidates, or an explicitly declared
|
||||
mergeable-state strategy. None is a generic gameplay-document write path.
|
||||
|
||||
Deletion line:
|
||||
Before adding new client behavior, delete or demote any path that lets a client
|
||||
invent gameplay state, reconstruct daemon-owned documents from broader frames,
|
||||
or patch missing Eve semantics with Aetheria-specific renderer code.
|
||||
|
||||
## Spatial Kernel Boundary
|
||||
|
||||
The active Aetheria simulation authority owns committed transforms, velocities,
|
||||
contacts that affect gameplay, and every consequence derived from them. All
|
||||
authoritative integration, overlap, cast, contact, broadphase, and spatial-field
|
||||
computation is performed through Ymir. In the production daemon Ymir is an
|
||||
embedded deterministic kernel, not an independently persistent Aetheria world.
|
||||
|
||||
The daemon passes an explicit simulation slice to Ymir and commits the returned
|
||||
spatial facts as part of the same tick transaction. Ymir neither reads Aetheria
|
||||
state behind the daemon's back nor writes CultMesh documents of its own. Combat,
|
||||
docking, sensors, AI decisions, damage, inventory, triggers, and event chronology
|
||||
remain Aetheria rules even when they consume Ymir results.
|
||||
|
||||
Ymir is linked into the production daemon as an in-process library behind a
|
||||
narrow injected physics port. That port exists for deterministic substitution
|
||||
and language interop, not to create another daemon, transport, lease domain, or
|
||||
copy of the world. Aetheria owns the input projection and every committed
|
||||
result.
|
||||
|
||||
## Terminus Simulation Clock
|
||||
|
||||
Terminus uses a daemon-owned, user-controllable simulation clock. Pause and slow
|
||||
rates provide unbounded tactical decision time. High rates provide transit time
|
||||
compression so a physically larger world does not require the player to watch
|
||||
uneventful coasting in real time. Supported requested rates currently range from
|
||||
pause through `128x`; Starbridge remains real-time-owned.
|
||||
|
||||
While paused, `AdvanceSimulationStep` advances exactly one fixed daemon step
|
||||
without changing the persistent requested rate. Eve advertises this as
|
||||
`simulation.step`, giving players, bots, and conformance fixtures a precise
|
||||
tactical inspection primitive instead of briefly unpausing and racing the
|
||||
publication cadence.
|
||||
|
||||
The requested simulation rate is not a renderer time scale. The daemon advances
|
||||
the deterministic fixed-step simulation repeatedly and publishes one coherent
|
||||
sample of the resulting state. Unity, Electron, bots, and other Eve clients may
|
||||
interpolate presentation between samples, but cannot advance committed game
|
||||
time or invent intermediate outcomes.
|
||||
|
||||
Time compression distinguishes the persistent requested rate from the effective
|
||||
rate currently being executed. During a compressed batch, the daemon inspects
|
||||
new gameplay facts after every fixed step. Damage, destruction, pickup outcomes,
|
||||
thermal risk, docking transitions, weapon failures, wormhole transitions, and
|
||||
run failure stop the batch at the causal step, publish `simulation.interrupted`,
|
||||
and set the effective rate to pause without erasing the requested rate. The
|
||||
interruption names its cause and exact simulation time; the daemon never commits
|
||||
later steps before publishing it. Contact, hostile targeting, weapon readiness,
|
||||
arrival, resource discovery, and failed-order coverage remain to be added to the
|
||||
explicit policy as their authoritative facts mature. This attention policy is
|
||||
daemon-owned gameplay state, not client heuristics.
|
||||
|
||||
Compressed stepping must not multiply control-plane traffic. Commands and
|
||||
receipts retain their ordinary typed CultMesh path, SoA consumers receive the
|
||||
latest complete leased frame, and reactive UI state is sampled at a bounded
|
||||
publication cadence. Internal fixed steps remain deterministic and testable
|
||||
without requiring a renderer or wall-clock delays.
|
||||
|
||||
## Tutorial Generation
|
||||
|
||||
The fossil tutorial was not a scripted objective mode. Its surviving gameplay
|
||||
difference is a distinct generated galaxy selected while `TutorialPassed` is
|
||||
false: six authored faction roles, 64 weighted blue-noise zones, a pruned
|
||||
Delaunay link graph, faction influence and ownership, an unowned entrance, and
|
||||
initial discovery of the entrance plus its neighbors. The narrative processor
|
||||
was commented out and no source-backed tutorial-completion trigger survived.
|
||||
|
||||
That topology now has a deterministic daemon owner driven by CultMath's
|
||||
Unity-compatible simplex noise. Every topology zone also has a daemon-owned
|
||||
celestial plan preserving the fossil's radius/mass curves, packed subzones,
|
||||
rosettes, solar systems, satellite and binary passes, asteroid belts, stable
|
||||
orbits, gravity curves, and sun/gas-giant presentation parameters. The old
|
||||
process-dependent string/hash seed has been replaced by a stable typed-zone
|
||||
seed; generated saves must reproduce across daemon processes.
|
||||
|
||||
The daemon continues the exact post-celestial random stream to populate each
|
||||
zone with the fossil station-count curve, Lagrange station orbits, paired
|
||||
defensive turrets, and faction ships. The entrance additionally receives the
|
||||
controlled starter ship. Zone adjacency is the wormhole truth; exits remain a
|
||||
derived render/interaction query rather than counterfeit wormhole entities.
|
||||
Generated non-player ships are distributed through the fossil half-zone volume.
|
||||
Generated orbits carry the authored distance-derived period; each fixed daemon
|
||||
step advances canonical phase and projects orbital entity pose and velocity
|
||||
before Ymir. Body queries and Eve lower the same orbit graph.
|
||||
Each generated NPC also enters with a daemon-owned assigned patrol task over
|
||||
four shuffled orbit identities, matching the fossil activation behavior without
|
||||
letting the Unity client create agent state. The daemon derives hostility from
|
||||
the fossil owner-security and faction-relationship rule. A visible hostile ship
|
||||
pre-empts circuit movement through the existing combat planner; the patrol task
|
||||
keeps its circuit index and resumes it when contact is lost.
|
||||
|
||||
Mode selection submits an advertised Eve operation and waits for a newly
|
||||
published daemon session. Terminus is the canonical single-player roguelike;
|
||||
its standard launch is product state, not a witness fixture. The persisted
|
||||
64-zone tutorial is an onboarding run recipe that may constrain a Terminus
|
||||
deployment without owning a separate inventory or progression path. No
|
||||
surviving fossil source defines tutorial completion, so the target completion
|
||||
and settlement rule remains an explicit design seam. Target onboarding
|
||||
completion must be a typed progression/settlement fact; the fossil
|
||||
`TutorialPassed` boolean cannot select product mode or own Hangar progression.
|
||||
|
||||
The non-tutorial sector has a separate daemon owner matching the fossil's
|
||||
196-zone settings, corporation selection, entrance/exit isolation, boss
|
||||
chokepoints, full influence radii, discovery, and order-four names. It feeds
|
||||
the daemon celestial, population, loadout, patrol, and persistence pipeline and
|
||||
is reusable as a full Terminus run recipe under a command-stable generation
|
||||
seed. `released-client-proof` and `cargo-capacity-rejection-proof` remain
|
||||
non-progressing Terminus witness profiles with distinct run identities; they
|
||||
are not the only launch path for the product mode.
|
||||
|
||||
## Current Mechanism
|
||||
|
||||
The repo is mid-migration.
|
||||
|
||||
The C# daemon currently publishes typed runtime state, command boundaries, Eve
|
||||
surfaces, Starbridge documents, viewport documents, asset manifests, and
|
||||
CultMesh-facing transport hooks. Electron has been moved toward consuming
|
||||
daemon-authored Eve surfaces and managed documents instead of rebuilding them
|
||||
from a daemon frame. Unity has been moved toward observing daemon frames and
|
||||
submitting typed operations instead of ticking local simulation, but it still
|
||||
contains Unity-era presentation, object restoration, input, camera, UI, weapon,
|
||||
and gameplay-adapter code.
|
||||
|
||||
This means Aetheria is not yet fully renderless. The desired ownership is clear,
|
||||
but the repo still contains migration bridges and Unity-shaped presentation
|
||||
state that must be audited before they can be deleted or demoted.
|
||||
|
||||
## Invariants
|
||||
|
||||
- Aetheria gameplay truth lives in daemon-owned typed state, not renderer state.
|
||||
- Eve surfaces contain the UI and world-state render instructions required by
|
||||
clients.
|
||||
- Dynamic contents are state pointers or managed document references, not copied
|
||||
live state embedded into the surface document.
|
||||
- CultMesh CDN serves assets advertised by the daemon.
|
||||
- Renderer-local code may lower, cache, batch, interpolate, and display. It may
|
||||
not invent gameplay semantics.
|
||||
- Game-feel settings belong to daemon config or typed state, not client-local
|
||||
constants.
|
||||
- Runtime-specific names may describe packaging or product shells, but not
|
||||
gameplay authority branches.
|
||||
- Hermodr and Electron must render the same RTS surface from the same Eve
|
||||
contract.
|
||||
- Godot and Unity must render the same ARPG surface from the same Eve contract.
|
||||
|
||||
## Eve Surface Contract
|
||||
|
||||
An Aetheria Eve surface should be rich enough to describe both the 2D RTS view
|
||||
and the 3D ARPG view.
|
||||
|
||||
This is not only UI Toolkit-style widget lowering. Eve lowerers must be able to
|
||||
lower world state with different presentation budgets: a compact 2D tactical
|
||||
map, a richer browser canvas, a Unity or Godot 3D scene, a debug overlay, or a
|
||||
future room-scale view. The sophistication belongs to the lowering target, but
|
||||
the semantic instructions belong to Eve and the daemon-authored surface.
|
||||
|
||||
The surface should be able to declare:
|
||||
|
||||
- layout, rows, columns, grids, modal placement, fields, and command bindings;
|
||||
- state pointers to daemon-owned typed documents;
|
||||
- operation descriptors with typed payload schemas and route hints;
|
||||
- 2D scalar fields, such as gravity heightmaps;
|
||||
- 2D vector/color fields, such as nebula tint or fog/tint splats;
|
||||
- 3D vector fields, such as flow fields derived from volumetric simulation;
|
||||
- field visualizers, such as isolines, shaded height, probes, volume slices, or
|
||||
particle/flow overlays;
|
||||
- render splat buffers and accumulation rules;
|
||||
- entity/object render rows with asset refs, transforms, labels, and selection
|
||||
metadata;
|
||||
- presentation-quality hints, level-of-detail policies, and native-view
|
||||
descriptors that let clients choose an appropriate 2D or 3D lowering without
|
||||
changing gameplay meaning;
|
||||
- asset refs resolved through CultMesh CDN.
|
||||
|
||||
The Eve repo owns the game-agnostic lowering primitives for these contracts.
|
||||
Aetheria may define game documents, author surfaces, publish assets, and provide
|
||||
fixtures, but it should not require Electron, Hermodr, Unity, or Godot to carry
|
||||
private Aetheria rendering knowledge.
|
||||
|
||||
## World-State Lowering
|
||||
|
||||
World-state lowering is an Eve responsibility, not an Aetheria client
|
||||
responsibility.
|
||||
|
||||
The Aetheria daemon can publish a view of world state at several levels:
|
||||
|
||||
- canonical typed game documents for rules and committed facts;
|
||||
- high-performance SoA/native view descriptors for hot rendering paths;
|
||||
- field documents for scalar/vector/color data;
|
||||
- object/entity render rows for things with transforms, sprites, meshes, labels,
|
||||
selection metadata, and operation affordances;
|
||||
- asset refs for icons, sprites, materials, meshes, shaders, and generated
|
||||
textures.
|
||||
|
||||
Eve lowerers decide how sophisticated the presentation should be in a particular
|
||||
runtime. Hermodr might draw an RTS surface as a 2D canvas with isolines, icons,
|
||||
labels, and modal UI. Electron might use the same lowering path with richer
|
||||
shell integration. Unity or Godot might lower the ARPG surface into meshes,
|
||||
materials, particles, UI panels, input affordances, and camera-relative
|
||||
overlays. Those are quality tiers over the same semantic surface, not separate
|
||||
Aetheria clients with private gameplay knowledge.
|
||||
|
||||
If a lowerer needs to know that a value is "Aetheria gravity" in order to render
|
||||
it, the contract is wrong. The surface should say it is a scalar field with
|
||||
domain, units, sampling rules, visualization options, and asset/material refs.
|
||||
If a lowerer needs to know that a row is an "Aetheria planet" to draw it, the
|
||||
contract is wrong. The row should carry an entity kind, transform, display
|
||||
label, state refs, and daemon-advertised assets.
|
||||
|
||||
## Field Documents
|
||||
|
||||
Gravity is a 2D scalar field for the RTS view. It should be produced from
|
||||
daemon-owned simulation/generation state and exposed as a high-performance view
|
||||
or field document. Isolines are one visualization of that scalar field, not the
|
||||
field itself.
|
||||
|
||||
Nebula tint is a 2D vector/color field. Tint splats are color times the
|
||||
appropriate Aetheria brush/window function accumulated into a color buffer.
|
||||
Those rules belong in daemon-authored render-field declarations or
|
||||
game-agnostic Eve field primitives, not in renderer-local compensation code.
|
||||
|
||||
The ARPG surface also needs 3D fields. Flow from the volumetric shader family is
|
||||
a 3D vector field. A 2D renderer does not need the full 3D flow field, but the
|
||||
contract should not be designed as if all Aetheria views are flat maps.
|
||||
|
||||
## Asset Contract
|
||||
|
||||
The daemon advertises immutable runtime variants through `EveAssetCatalogDocument`
|
||||
and CultMesh CDN manifests/chunks. Each variant declares its content hash, byte
|
||||
size, platform, format, and internal asset key. Clients resolve those refs
|
||||
through their generic runtime asset bridge.
|
||||
|
||||
Unity `Resources` paths and source-project asset paths are packaging inputs, not
|
||||
runtime identity. A migrated provider asset must load in a clean EveUnity client
|
||||
without Aetheria gameplay assemblies. Provider bundles therefore contain
|
||||
presentation-only prefabs and generic EveUnity components, never fossil gameplay
|
||||
`MonoBehaviour` scripts.
|
||||
|
||||
Clients should not synthesize icon paths, substitute improvised SVGs, or embed
|
||||
fallback asset lore when the daemon fails to advertise an asset. A missing asset
|
||||
should be visible as missing provider data, not silently repaired by the
|
||||
renderer.
|
||||
|
||||
## Runtime Roles
|
||||
|
||||
Hermodr:
|
||||
Generic Eve/browser lowering witness for the RTS surface. It proves the
|
||||
contract is not Electron-specific.
|
||||
|
||||
Electron:
|
||||
Player-facing Starbridge RTS shell. It may own packaging, windowing, app
|
||||
lifecycle, local daemon launch ergonomics, and platform bridges. It should not
|
||||
own Aetheria gameplay semantics.
|
||||
|
||||
Unity:
|
||||
Current ARPG reference client and migration source. It may own engine
|
||||
presentation, input capture, camera, generic GameObject projection, native
|
||||
world-state lowering, and temporary adapters. It must not reconstruct mutable
|
||||
Aetheria `Entity`, `Zone`, `Behavior`, or item graphs, and it does not own rules,
|
||||
state, level generation, physics, visibility, or UI/world semantics.
|
||||
|
||||
Godot:
|
||||
Future ARPG conformance runtime. It should prove the ARPG client can be rebuilt
|
||||
from the daemon and Eve contract rather than ported from Unity scene authority.
|
||||
|
||||
Eve:
|
||||
Game-agnostic surface and world-state lowering contract. Eve owns reusable
|
||||
primitives for state binding, operation invocation, modal placement, 2D/3D
|
||||
field visualization, asset refs, native-view descriptors, and runtime-neutral
|
||||
UI/render semantics.
|
||||
|
||||
Aetheria:
|
||||
Game daemon, documents, rules, authored surfaces, assets, generation,
|
||||
simulation, and authority policy.
|
||||
|
||||
## Migration Gates
|
||||
|
||||
1. Daemon publishes the RTS surface as Eve/CultUI plus state pointers, field
|
||||
documents, typed operations, and CultMesh CDN assets.
|
||||
2. Hermodr lowers that RTS surface with no Aetheria-specific renderer plugin.
|
||||
3. Electron renders the same RTS surface through shared Eve primitives.
|
||||
4. Daemon publishes equivalent ARPG surfaces and 3D render contracts.
|
||||
5. Unity consumes the ARPG contract as a renderer/input shell, with remaining
|
||||
shims named and bounded.
|
||||
6. Godot lowers the ARPG contract without Unity scene authority.
|
||||
7. Unity-only simulation, generation, physics, UI semantics, and asset fallback
|
||||
paths are deleted or demoted to renderer presentation.
|
||||
8. The generic Unity client loads provider-published presentation-only assets,
|
||||
lowers exact CultMesh body generations, and contains no Aetheria gameplay
|
||||
assembly reference.
|
||||
|
||||
## Verification Strategy
|
||||
|
||||
Documentation comes first. Verifier pressure should be added only after this
|
||||
map is accepted.
|
||||
|
||||
When enforcement starts, the verifier should prove:
|
||||
|
||||
- active docs describe renderless Aetheria and game-agnostic Eve lowerers;
|
||||
- daemon code owns simulation, generation, operation acceptance, assets, and
|
||||
high-performance view publication;
|
||||
- Electron does not rebuild daemon-owned documents from frames;
|
||||
- Hermodr has no Aetheria-specific rendering branch;
|
||||
- Unity gameplay code does not tick local simulation or write canonical state;
|
||||
- Godot work does not introduce a daemon-side Godot mode;
|
||||
- asset refs come from daemon manifests and CultMesh CDN;
|
||||
- field visualization settings come from Eve/daemon documents, not renderer
|
||||
constants.
|
||||
- world-state lowerers live in Eve packages or generic runtime packages, not as
|
||||
Aetheria-specific client renderer code.
|
||||
|
||||
The goal is not to outlaw useful runtime code. The goal is to make ownership
|
||||
legible: renderers render, the daemon decides, Eve carries the contract.
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
# Unity daemon development
|
||||
|
||||
Open `Aetheria.Unity` in Unity and choose **Aetheria > Daemon Development**.
|
||||
This is the interactive development path. The released-package witness remains
|
||||
the automated integration proof and is not required for ordinary iteration.
|
||||
|
||||
**Build daemon** explicitly builds `Aetheria.State.Daemon` in
|
||||
`bin/Debug/net10.0`. **Reimport state & build** also replaces the isolated
|
||||
development state under `Aetheria.Unity/Build`. **Start daemon** launches the
|
||||
already-prepared Debug apphost immediately; it never performs a build. The editor owns
|
||||
the daemon process, its PID, and its output streams. The generic EveUnity
|
||||
client connects directly to the daemon's local CultMesh endpoint. Odin is not
|
||||
part of this path.
|
||||
|
||||
The named daemon apphost is launched with both system .NET runtime-root
|
||||
variables pinned explicitly rather than inheriting Unity's embedded runtime
|
||||
environment. This keeps .NET 10 host resolution deterministic while preserving
|
||||
the `Aetheria.State.Daemon` process identity used for ownership, Rider attach,
|
||||
and domain-reload reattachment.
|
||||
|
||||
The daemon lifecycle is independent of Unity Play Mode. Play never builds,
|
||||
starts, restarts, or stops the daemon. Entering Play connects a generic client;
|
||||
leaving Play drops that client while the authoritative daemon remains alive and
|
||||
ready for the next connection.
|
||||
|
||||
Starting the daemon does not create, load, or step a game world. It starts the
|
||||
typed state boundary and CultMesh transport in `ready` mode and publishes the
|
||||
`aetheria.hangar` Eve surface. The Hangar exposes the canonical saved loadout
|
||||
and typed equip/remove operations. **Launch** commits a Terminus deployment
|
||||
from the current Hangar revision and creates its run; **Continue** selects the
|
||||
existing deployed Terminus checkpoint without creating a replacement run.
|
||||
Typed mode selection chooses authority and policy; a committed
|
||||
deployment/admission creates session state through the applicable provider or
|
||||
Arena server. Only that activation boundary opens
|
||||
simulation persistence and starts the fixed simulation clock. When the last
|
||||
playable-world subscription is withdrawn,
|
||||
the daemon commits the final public frame and matching private Ymir checkpoint,
|
||||
releases the active physics world, and returns to `ready`. A dropped client
|
||||
therefore leaves the daemon and saved world alive without making Unity Play
|
||||
Mode a lifecycle authority.
|
||||
|
||||
The editor connects through the daemon's `cultnet+tcp` control endpoint. The
|
||||
advertised session then selects the dedicated content and QUIC realtime planes;
|
||||
the editor bootstrap does not choose those planes or retain an RUDP fallback.
|
||||
|
||||
The launcher displays and passes the exact source dependency roots used for the
|
||||
Debug daemon build. CultLib prefers the active
|
||||
`CultLib-codex-cultmesh-reliability` checkout, then `CultLib-release`, and
|
||||
finally the canonical `CultLib` sibling.
|
||||
Ymir still prefers the active `Ymir-aetheria-integration` sibling checkout and
|
||||
falls back to the canonical `Ymir` sibling when that integration checkout is
|
||||
absent. This prevents an older sibling assembly from impersonating the daemon
|
||||
being debugged.
|
||||
|
||||
## Normal loop
|
||||
|
||||
1. Press **Build daemon** after changing daemon code. Use **Reimport state &
|
||||
build** only when the isolated development state must be replaced.
|
||||
2. Press **Start daemon** and wait for the window to report the live endpoint.
|
||||
3. Enter Unity Play Mode. The generic client mounts `aetheria.hangar`.
|
||||
4. Configure the saved loadout, then choose **Launch** for a new Terminus run
|
||||
or **Continue** for the currently deployed saved run. The same mounted Eve
|
||||
surface becomes the gameplay composition after activation.
|
||||
5. Use Unity Pause to submit the advertised `simulation.pause` action to the
|
||||
daemon. Unity unpause submits `simulation.rate.realtime`.
|
||||
6. While paused, use **Advance one step** to commit exactly one fixed daemon
|
||||
simulation step.
|
||||
7. Stop or restart the daemon explicitly from the same
|
||||
window.
|
||||
|
||||
Unity's editor clock is never gameplay authority. The pause and step controls
|
||||
are ordinary advertised Eve operations accepted by the daemon. If the active
|
||||
game mode does not advertise its simulation clock, the window reports that
|
||||
contract failure instead of locally freezing world truth.
|
||||
|
||||
## Rider
|
||||
|
||||
The window displays the actual `Aetheria.State.Daemon` process ID. Press
|
||||
**Copy daemon PID**, then in Rider choose **Run > Attach to Process** and select
|
||||
that PID. **Open daemon source** opens `Aetheria.State.Daemon/Program.cs` through
|
||||
Unity's configured external editor. The launched process uses Debug assemblies
|
||||
from the current checkout, so breakpoints bind to the code being run.
|
||||
|
||||
Hitting a Rider breakpoint suspends the authoritative daemon process. The Unity
|
||||
client continues to display its last committed generation until execution
|
||||
resumes; it does not simulate through the breakpoint.
|
||||
|
||||
## Files
|
||||
|
||||
- State: `Aetheria.Unity/Build/aetheria-unity-dev.cc`
|
||||
- Daemon stdout: `Aetheria.Unity/Build/DaemonDevelopment/daemon.log`
|
||||
- Daemon stderr: `Aetheria.Unity/Build/DaemonDevelopment/daemon.error.log`
|
||||
- Preparation logs: `Aetheria.Unity/Build/DaemonDevelopment/launcher*.log`
|
||||
|
||||
`Reimport state & build` deletes only the isolated development `.cc` file, its
|
||||
`.cultmesh` (or legacy `.records`) sidecar, and the matching daemon-private
|
||||
`.ymir.cc` journal store before importing it again. It does not touch
|
||||
`GameData`, the source catalog, or another witness/run state.
|
||||
Loading…
Reference in a new issue