diff --git a/GameCult/Blog/witness-authoritative-networking.md b/GameCult/Blog/witness-authoritative-networking.md index 21540dc..2f8ec9c 100644 --- a/GameCult/Blog/witness-authoritative-networking.md +++ b/GameCult/Blog/witness-authoritative-networking.md @@ -583,7 +583,7 @@ The current [`codex/aetheria-state-rebuild`](https://github.com/GameCult/Aetheri In plain terms: Unity is becoming one client of the world, not the world itself. -That makes Aetheria the scariest useful example of the value proposition. A greenfield game can be designed around CultMesh from the first document and command boundary. Aetheria cannot. It is a large existing Unity game with years of state ownership embedded in renderer code, UI flows, save paths, physics hooks, inventory behavior, and gameplay objects. The branch is more than five hundred commits deep and still mid-migration. That is exactly why the case matters: many developers will not be asking whether CultMesh can support a clean new project. They will be asking whether an existing game can survive the migration. +That makes Aetheria the scariest useful example of the value proposition. A greenfield game can be designed around CultMesh from the first document and command boundary. Aetheria cannot. It is a large existing Unity game with years of state ownership embedded in renderer code, UI flows, save paths, physics hooks, inventory behavior, and gameplay objects. The branch is 526 commits deep, spans active work from June 13, 2026 through June 21, 2026, and is still mid-migration. That is exactly why the case matters: many developers will not be asking whether CultMesh can support a clean new project. They will be asking whether an existing game can survive the migration. The branch makes that boundary concrete in several ways: @@ -593,11 +593,19 @@ The branch makes that boundary concrete in several ways: - Unity rendering is being rewritten around daemon snapshots, contacts, render queries, entity observations, and projection caches instead of direct authority over the simulation. - Verification rules now explicitly reject Unity-owned simulation authority: Unity must not tick local simulation as truth, shared simulation ticks must not be called from the renderer, Unity physics must not become gameplay authority, and gameplay actions such as weapon groups, loot pickup, inventory transfer, loadout save/restore, trade purchase, and entity destruction must pass through typed authority requests. +The commit history is the case study: not the existence of a branch, but the ordered cuts. The first commits are not glamorous. They start with `Start typed state rebuild`, then remove or quarantine old owners: Rethink backing stores, Newtonsoft annotations, LiteNet client transport, local save authority, generated editor writers, saved game DTOs, mutation surfaces, and serializer residue. After that, the history spends hundreds of commits materializing typed documents, keys, snapshots, player settings, loadouts, catalog state, zone state, entity state, behavior state, runtime sessions, and daemon publications. + +The middle of the branch is where frontend parity becomes visible. Aetheria does not bolt on a hosted admin console. It publishes provider-owned Eve surfaces and lowers them into Unity through `Packages/org.gamecult.aetheria.eve-runtime`, with game, editor, GUI, and TUI surfaces treated as daemon state. The same pattern is the path to web, terminal, editor, agent, and native clients: deploy a client in any CultMesh runtime and lower the daemon-published surface there. + +The later commits move authority out of Unity with a ratchet. `Move daemon command authority out of Unity` shifts docking, movement, target, shield, transfer, action-bar, and intent validation into daemon operations. `Add daemon render query primitives` gives renderers typed queries for the facts they need without letting them reconstruct authority. The current tail of the branch is especially revealing: commits such as `Stop patching asteroid mirror state in Unity`, `Read target indicators from daemon contacts`, `Resolve UI targets from daemon snapshots`, `Stop mirroring daemon contacts into facades`, and `Resolve dock binding from daemon assignments` show the last stubborn Unity-owned mirrors being cut away and replaced with daemon observations. + +Even the verification layer tells the story. `Aetheria.State.Verify` is not just test coverage; it is a migration ratchet. It rejects Unity-owned simulation ticks, Unity physics as gameplay authority, private command mutation paths, renderer-owned contact restoration, and UI flows that bypass typed daemon requests. The codebase is being taught, commit by commit, that Unity may present, predict, cache, and witness, but it may not silently become canonical truth again. + This is exactly the transition the Aetheria dream implied: the game is not being rebuilt as "single-player plus networking." It is being split into a distributed state owner and multiple surfaces that can observe, present, command, and eventually witness the same Verse. This is what "moving a game to CultMesh" looks like in practice. It is a dirty process because Unity owned a lot of state: saves, menus, runtime objects, local projections, physics hooks, renderer caches, and gameplay commands were tangled together. The work is not to sprinkle networking over that shape. The work is to name each ownership boundary, move durable state into typed documents, turn gameplay actions into typed command records, demote renderer state into observation/projection, and publish the daemon's surfaces so other runtimes can stand beside Unity. -That is the part that makes the agent workflow relevant. A human can describe the target doctrine; an agent can grind through the migration cuts, verification rules, and call-site rewrites. The current Aetheria branch is still dirty, unfinished, and only partway through its metamorphosis, but it shows the leverage: a serious single-player Unity codebase can start becoming a distributed multiplayer system in about a week when the destination architecture already exists. +That is the part that makes the agent workflow relevant. A human can describe the target doctrine; an agent can grind through the migration cuts, verification rules, and call-site rewrites. The current Aetheria branch is still dirty, unfinished, and only partway through its metamorphosis, but it shows the leverage: a serious single-player Unity codebase can start becoming a distributed multiplayer system over roughly a week of focused agent-driven commits when the destination architecture already exists. The important lesson is not that Aetheria already proves MMO-scale witness consensus. It does not. The important lesson is that the architecture is changing in the right order. First, state stops belonging to the renderer. Then commands become typed records. Then surfaces become daemon-published. Then Unity, web, terminal, editor, agent, or another runtime can stand around the same world without each inventing its own private source of truth.