Define CultMesh authority runway

This commit is contained in:
Meta Vens 2026-08-07 14:46:32 +01:00
commit 54895e28fe
14 changed files with 458 additions and 301 deletions

View file

@ -587,8 +587,11 @@ The current UI direction is Eve/CultUI:
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;
directly configured daemon peers exchange typed committed facts there as well.
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.

View file

@ -13,11 +13,18 @@ authority.
Aetheria should persist and replicate game state as typed CultCache documents,
publish multiplayer/service state through CultMesh, and render operator/runtime
interfaces from Eve CultUI surfaces. Terminus uses local-daemon authority,
Starbridge uses typed mixed authority, and Arena uses server authority; all
Starbridge uses Commander-default simulation with jurisdictional Pilot
correction, and Arena uses server authority; all
three share the target Hangar/deployment/settlement spine and can execute
headlessly. The old JSON, RethinkDB, JsonKnownTypes, legacy catalog cache, and
legacy UI paths should be migration-only or deleted.
The product modes deliberately pressure different CultMesh authority shapes:
Terminus local authority, Arena server authority, and Starbridge
Commander-default/Pilot-corrected mixed authority. Witness-authoritative
operation is the next configuration after Arena and Starbridge prove shared fact identity,
finality, replay, and negative authority invariants.
## Current Mechanism
- `Aetheria.State.Daemon` is the first-class local Verse daemon host. It opens
@ -3440,7 +3447,7 @@ daemon smoke with one explicit CultLib/EveUnity/Ymir root set so a stale NuGet
project graph cannot substitute another worktree during `--no-restore`.
The unused Starbridge bootstrap that wrote invented stock, attacker, boss, and
technology keys has been deleted. Starbridge session bootstrap must enter
through shared Hangar deployment, typed mixed-authority policy, the active mode
through shared Hangar deployment, typed candidate/jurisdiction/finality policy, the active mode
owner, and typed catalogs; a dormant document seeder is not a game mode.
Run-lifecycle ownership is deliberately narrower than a quest system:

View file

@ -88,12 +88,14 @@ 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. When a runtime has authority or prediction
rights, mutating the managed typed document is the ergonomic target; CultMesh
debounces, routes, records the prediction, and reconciles against canonical
state. When a runtime does not have direct write authority, it submits a typed
operation handle that the daemon validates and applies to the same canonical
document.
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

View file

@ -94,7 +94,9 @@ 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 or modify the same managed document from clients according to authority policy.
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
@ -343,11 +345,13 @@ public sealed class AetheriaRuntimeStationSupportDocument
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 prediction authority, local changes to the managed document are
predictions; reconciliation corrects them without requiring feature code to
manually shuttle deltas.
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 Mutate Through The Managed Handle
### Step 3: Read Or Submit Through The Managed Handle
Unity reads the same document through the managed typed handle:
@ -356,8 +360,8 @@ var support = client.State.Reactive<AetheriaRuntimeStationSupportDocument>();
var cooling = support.Current?.CoolingReserve ?? 0;
```
When the client does not have direct simulation authority, it submits a typed
operation:
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
@ -371,10 +375,11 @@ client.Operations.Submit(new AetheriaRuntimeDeploySupportDroneOperation
The daemon validates and applies the operation. The next published document is
the authoritative result.
When the client has prediction or simulation authority, the ergonomic target is
even simpler: modifying the managed reactive document records a prediction,
debounced by the update frame, and CultMesh routes/reconciles it according to
the Verse authority policy.
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

View file

@ -20,10 +20,15 @@ deploy -> fly -> fight -> salvage -> dock/refit -> choose risk -> continue
```
`Starbridge` is the cooperative mode. One commander and one to four pilots act
in one shared session. Starbridge is mixed-authority: typed authority policy
assigns bounded claim kinds to the commander, pilots, daemon, or leases while
all participants converge on the same canonical typed state and receipt
history. It uses the same player identity, hull catalog, equipment vocabulary,
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.
@ -98,11 +103,30 @@ into the live world.
The authority policy differs without changing the document model:
- **Terminus:** the local daemon decides all gameplay state.
- **Starbridge:** mixed authority assigns bounded claim kinds to participants;
typed policy and committed receipts make ownership visible and revocable.
- **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
@ -115,8 +139,9 @@ deployment and settlement receipts, not inferred by a menu.
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, exercise
one policy-owned command each, and converge on one outcome.
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.
@ -185,8 +210,9 @@ simulation smokes as Arena product proof.
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 policy changes authority without changing document or operation
schemas, and denied claims expose the active owner and reason.
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,
@ -195,3 +221,11 @@ simulation smokes as Arena product proof.
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.

View file

@ -15,7 +15,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
| Organ | Original authority/evidence | Target owner | Eve contract | Runtime lowering | Current status | Required proof |
|---|---|---|---|---|---|---|
| Run/session state | `ServerShared`, `ActionGameManager` | 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 is co-op under typed mixed-authority policy; 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 must execute headlessly through the production simulation and operation gates. The shared Hangar/Deployment/Settlement owner is adopted design but not yet implemented | implement and prove one canonical Hangar/deployment/settlement spine; launch ordinary Terminus without a proof flag; mixed-authority Starbridge convergence; deterministic server-authoritative Arena with human/AI-equivalent operations and versioned build-versus-build replays; renderer/no-renderer outcome parity; restart and exactly-once settlement |
| 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 |

View file

@ -93,10 +93,14 @@ authoritative state:
same strategic world facts;
- view choice never creates a second simulation.
Starbridge is mixed-authority. Typed policy assigns bounded command/claim kinds
to the commander, pilots, daemon, or leases; every accepted mutation joins one
canonical state and receipt history. Mixed authority does not mean private
client worlds that reconcile after the fact.
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

View file

@ -16,16 +16,25 @@ lowering semantics, and Aetheria clients are conformance targets.
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 typed mixed authority
across commander, pilots, daemon, and bounded leases. Arena uses sole
server authority. The applicable authorities own committed game state and
simulation claims; Aetheria providers publish canonical typed operations,
assets, and high-performance views of live state. Eve owns the portable UI and
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
@ -38,18 +47,21 @@ daemon-authored contract, without inheriting Unity scene authority.
## Authority Map
Owner:
Typed mode policy owns the authority assignment. The Terminus local daemon and
Arena server own all gameplay claims in their sessions. Starbridge assigns
bounded claim kinds across participants while preserving one canonical state
and receipt history. The shared Hangar remains a separate authoritative typed
aggregate outside live sessions.
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:
Applicable authorities may read typed CultCache/CultMesh documents, catalog
data, authority policy, player/AI operation documents, simulation clock input,
deterministic generation seeds and asset manifests. Simulation transactions may
invoke the embedded Ymir spatial kernel, but Ymir does not become a second state
owner.
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,
@ -67,14 +79,32 @@ 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 or define canonical gameplay
state.
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 or policy-governed typed document writes.
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