Remove stale RTS projection docs
This commit is contained in:
parent
163a6d7d4c
commit
e140597234
5 changed files with 81 additions and 32 deletions
|
|
@ -16374,6 +16374,10 @@ static void RequireUnityDoesNotCallSharedSimulationTicks(string root)
|
|||
var rtsElectronMainPath = Path.Combine(root, "Aetheria.Rts.Web", "Electron", "main.ts");
|
||||
var rtsElectronCultMeshPath = Path.Combine(root, "Aetheria.Rts.Web", "Electron", "aetheria-cultmesh.ts");
|
||||
var rtsClientAppPath = Path.Combine(root, "Aetheria.Rts.Web", "Client", "app.ts");
|
||||
var verseAuthorityPlanPath = Path.Combine(root, "Aetheria.State", "docs", "verse-authority-implementation-plan.md");
|
||||
var stage7ThinClientPlanPath = Path.Combine(root, "Aetheria.State", "docs", "stage-7-thin-client-staged-implementation-plan.md");
|
||||
var stage7ClientSurfaceInventoryPath = Path.Combine(root, "Aetheria.State", "docs", "stage-7-client-surface-inventory.md");
|
||||
var daemonCodeMapPath = Path.Combine(root, "Aetheria.State", "docs", "daemon-code-map-for-rust-port.md");
|
||||
var daemonRuntimeDocumentTestsPath = Path.Combine(root, "Assets", "Scripts", "Tests", "DaemonRuntimeDocumentTests.cs");
|
||||
var authoritySmokePath = Path.Combine(root, "Aetheria.State.AuthoritySmoke", "Program.cs");
|
||||
var freezePath = Path.Combine(root, "Aetheria.State.Freeze", "Program.cs");
|
||||
|
|
@ -16422,6 +16426,19 @@ static void RequireUnityDoesNotCallSharedSimulationTicks(string root)
|
|||
var rtsClientApp = File.Exists(rtsClientAppPath)
|
||||
? File.ReadAllText(rtsClientAppPath)
|
||||
: throw new InvalidOperationException("Cannot verify Electron CultMesh CDN asset authority; renderer app is missing.");
|
||||
var activeStage7ArchitectureDocs = new[]
|
||||
{
|
||||
verseAuthorityPlanPath,
|
||||
stage7ThinClientPlanPath,
|
||||
stage7ClientSurfaceInventoryPath,
|
||||
daemonCodeMapPath
|
||||
}
|
||||
.Select(path => File.Exists(path)
|
||||
? File.ReadAllText(path)
|
||||
: throw new InvalidOperationException(
|
||||
"Cannot verify RTS client authority documentation; architecture doc is missing: " +
|
||||
Path.GetRelativePath(root, path)))
|
||||
.ToArray();
|
||||
var daemonRuntimeDocumentTests = File.Exists(daemonRuntimeDocumentTestsPath)
|
||||
? File.ReadAllText(daemonRuntimeDocumentTestsPath)
|
||||
: throw new InvalidOperationException("Cannot verify daemon projectile authority; daemon runtime document tests are missing.");
|
||||
|
|
@ -16716,6 +16733,33 @@ static void RequireUnityDoesNotCallSharedSimulationTicks(string root)
|
|||
throw new InvalidOperationException(
|
||||
"Electron local document decoding must not keep dead viewport, selection, or inventory projection builders; daemon managed documents own those fields.");
|
||||
}
|
||||
var staleRtsClientDocumentationPhrases = new[]
|
||||
{
|
||||
"aetheria-rts-local-projection.ts",
|
||||
"aetheria-local-publication-reader.ts",
|
||||
"AetheriaLocalPublicationReader",
|
||||
"AetheriaRemotePublicationReader",
|
||||
"projection facade methods backed by local CultCache publication sidecars",
|
||||
"Electron sends CultMesh commands but still reads local `.cc` publications.",
|
||||
"TS duplicates projection logic by decoding MessagePack arrays and slot constants."
|
||||
};
|
||||
var staleRtsClientDocumentationHits = activeStage7ArchitectureDocs
|
||||
.SelectMany((text, index) => staleRtsClientDocumentationPhrases
|
||||
.Where(phrase => text.Contains(phrase, StringComparison.Ordinal))
|
||||
.Select(phrase => $"{Path.GetRelativePath(root, new[]
|
||||
{
|
||||
verseAuthorityPlanPath,
|
||||
stage7ThinClientPlanPath,
|
||||
stage7ClientSurfaceInventoryPath,
|
||||
daemonCodeMapPath
|
||||
}[index])}: {phrase}"))
|
||||
.ToArray();
|
||||
if (staleRtsClientDocumentationHits.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Active architecture docs must not preserve deleted Electron local projection/publication-reader wrappers as the client contract; Hermodr and Electron consume daemon-authored documents through the Eve/CultMesh contract: " +
|
||||
string.Join("; ", staleRtsClientDocumentationHits));
|
||||
}
|
||||
if (!rtsElectronCultMesh.Contains("fetchViewportDocument(AetheriaRtsSchemas.gameViewport, \"aetheria.viewport.map\"", StringComparison.Ordinal) ||
|
||||
!rtsElectronCultMesh.Contains("fetchViewportDocument(AetheriaRtsSchemas.objectsViewport, \"aetheria.viewport.objects\"", StringComparison.Ordinal) ||
|
||||
!rtsElectronCultMesh.Contains("fetchViewportDocument(AetheriaRtsSchemas.gravityViewport, \"aetheria.viewport.gravity\"", StringComparison.Ordinal) ||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,10 @@ The current daemon is one C# executable around a CultMesh node. It ensures seed
|
|||
That shape proved the core idea, but it also leaked implementation details into every edge:
|
||||
|
||||
- Unity observes daemon state through a C# facade and memory-mapped SoA view.
|
||||
- Electron sends CultMesh commands but still reads local `.cc` publications.
|
||||
- TS duplicates projection logic by decoding MessagePack arrays and slot constants.
|
||||
- Electron sends CultMesh commands and reads daemon-authored managed documents
|
||||
through the CultMesh document catalog.
|
||||
- TS decodes the daemon-authored document slot layout, but must not duplicate
|
||||
projection authority or rebuild view/state from raw daemon frames.
|
||||
- RUDP snapshot handling injects ad hoc viewport projection records.
|
||||
- Eve/CultUI surface generation is mixed into daemon publication.
|
||||
- The host loop seeds scenario content and durable docs directly.
|
||||
|
|
@ -87,7 +89,7 @@ These files define the deprecated reference surface. They should be treated as A
|
|||
| Operation builders | `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeDaemonOperationClient.cs` and `AetheriaRuntimeDaemonOperationsClient.cs` | Existing typed operation vocabulary. |
|
||||
| Eve bridge | `Aetheria.State/AetheriaEveCommandBridge.cs` | Existing Eve command acceptance behavior for settings, catalog, policies, and surfaces. |
|
||||
| Unity consumption | `Assets/Scripts/Gameplay/AetheriaDaemonObserver.cs` | Current Unity daemon observation, SoA remapping, and render native view handoff. |
|
||||
| TS consumption | `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts`, `aetheria-rts-local-projection.ts`, `aetheria-local-publication-reader.ts` | Current Electron command sending, local publication reading, and duplicated projection behavior. |
|
||||
| TS consumption | `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts`, `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts` | Current Electron command sending, CultMesh document catalog/query reads, and typed daemon document decoding. |
|
||||
| Ymir C# contracts | `Assets/Scripts/ServerShared/YmirPhysicsContracts.cs` | Current body/world/query DTOs plus reference implementation for step, overlap, and cast queries. |
|
||||
| Ymir Unity bridge | `Assets/Scripts/Gameplay/Physics/AetheriaYmirPhysicsBridge.cs` | Current Unity presentation adapter that maps daemon SoA bodies into typed Ymir query worlds. |
|
||||
| Ymir query tests | `Assets/Scripts/Tests/YmirPhysicsQueryTests.cs` | Current expectations for integration, radial fields, contacts, overlap sphere/circle, and cast sphere/circle; useful semantics should survive, DTO/endpoint shape should not. |
|
||||
|
|
|
|||
|
|
@ -239,15 +239,15 @@ Done:
|
|||
inline;
|
||||
- `Aetheria.State.AuthoritySmoke` verifies the projection behavior against a
|
||||
local daemon frame;
|
||||
- Electron map reads now fetch the latest daemon frame and project it locally in
|
||||
`aetheria-rts-local-projection.ts` instead of requesting the remote RTS
|
||||
viewport document;
|
||||
- Electron map reads now fetch daemon-authored managed viewport documents
|
||||
through CultMesh query handles instead of rebuilding viewports locally from
|
||||
the latest daemon frame;
|
||||
- Electron selected-object, inventory/cargo, daemon health, and authority status
|
||||
panels now read through typed local projection facade methods instead of
|
||||
deriving panel state sideways from the map payload;
|
||||
- Electron map/panel projection reads now use local CultCache publication files
|
||||
through `aetheria-local-publication-reader.ts` instead of loopback
|
||||
`sendSnapshotRequest`;
|
||||
panels now decode typed daemon documents instead of deriving panel state
|
||||
sideways from the map payload;
|
||||
- Electron map/panel reads use the CultMesh document catalog and managed query
|
||||
records instead of loopback `sendSnapshotRequest` or local publication reader
|
||||
wrappers;
|
||||
- the daemon publishes the Verse authority policy to a local `.authority.policy.cc`
|
||||
sidecar so Electron can read authority status locally alongside frame and
|
||||
health;
|
||||
|
|
|
|||
|
|
@ -136,9 +136,10 @@ Completed and usable:
|
|||
from C# `[Key]` declarations.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-bindings.ts` keeps ergonomic command
|
||||
encoders and public TS request/response types.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-projection.ts` projects the
|
||||
latest daemon frame into a local map viewport.
|
||||
- Electron no longer requests the remote RTS viewport snapshot document.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts` reads daemon-authored
|
||||
managed documents through CultMesh document catalog/query handles.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts` only decodes
|
||||
those managed documents into TypeScript values.
|
||||
- `AetheriaRuntimeGameViewportDocuments` owns the matching C# map projection and
|
||||
the daemon delegates the temporary RUDP compatibility hook to it.
|
||||
- `AetheriaRuntimeStarbridgeDocuments` owns the first S0 session-summary
|
||||
|
|
@ -338,7 +339,8 @@ Build:
|
|||
|
||||
Outputs:
|
||||
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-projection.ts`
|
||||
- daemon-authored managed viewport/indexed documents;
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts`
|
||||
- `Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeGameViewportDocuments.cs`
|
||||
- `Aetheria.State.AuthoritySmoke/Program.cs`
|
||||
|
|
@ -389,7 +391,7 @@ Build:
|
|||
|
||||
Outputs:
|
||||
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-projection.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-bindings.ts`
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts`
|
||||
- `Aetheria.Rts.Web/Client/app.ts`
|
||||
|
|
@ -443,8 +445,10 @@ Build:
|
|||
|
||||
Outputs:
|
||||
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-local-publication-reader.ts`;
|
||||
- updated `AetheriaCultMeshClient` read path;
|
||||
- updated `AetheriaCultMeshClient` document catalog and managed query read
|
||||
path;
|
||||
- typed document decoding in
|
||||
`Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts`;
|
||||
- verifier proving map reads no longer issue snapshot requests for local frame
|
||||
data.
|
||||
- authority policy sidecar publication through
|
||||
|
|
|
|||
|
|
@ -753,12 +753,11 @@ Current artifacts:
|
|||
- `Aetheria.Rts.Web/Electron/aetheria-rts-bindings.ts` owns only ergonomic
|
||||
command encoders and public request/response types over the generated
|
||||
contract metadata.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-projection.ts` projects the
|
||||
latest daemon frame into the Electron map viewport locally, and also owns
|
||||
selected-object, inventory/cargo, daemon health, and authority-status
|
||||
projections.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-local-publication-reader.ts` reads local
|
||||
CultCache publication sidecars for frame, health, and authority policy.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-cultmesh.ts` reads daemon-authored
|
||||
managed documents through the CultMesh document catalog and query handles.
|
||||
- `Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts` decodes those
|
||||
daemon-authored documents into TypeScript view values; it must not rebuild
|
||||
field, viewport, selection, inventory, or asset documents from daemon frames.
|
||||
- `Aetheria.Rts.Web/scripts/verify-stage7c-local-runtime.ps1` proves the
|
||||
compiled Electron runtime facade can drive map, selection, inventory, health,
|
||||
and authority projections from a one-shot daemon's local publications.
|
||||
|
|
@ -1909,11 +1908,11 @@ publish post-import frames, and converge in the two-daemon smoke.
|
|||
|
||||
The current known risk is Stage 7 client parity. RTS/Electron no longer exposes
|
||||
public generic `command` or `viewport` APIs, the TS contract metadata is
|
||||
generated from C# document declarations, and the map viewport is projected
|
||||
locally in TypeScript from the latest daemon frame. Electron selected-object,
|
||||
inventory/cargo, daemon health, and authority status now read through typed
|
||||
projection facade methods backed by local CultCache publication sidecars. The
|
||||
Stage 7C verifiers prove both the compiled Electron runtime facade and the real
|
||||
Electron app shell against local daemon publications. The remaining Stage 7 risk
|
||||
is Unity parity: Unity still needs the same typed local Verse client shape before
|
||||
the gameplay shell can be demolished.
|
||||
generated from C# document declarations, and Electron fetches daemon-authored
|
||||
managed documents through CultMesh document catalog/query handles. Electron
|
||||
selected-object, inventory/cargo, daemon health, and authority status are
|
||||
decoded from those typed daemon documents, not rebuilt from daemon frames or
|
||||
local sidecar readers. The Stage 7C verifiers prove both the compiled Electron
|
||||
runtime facade and the real Electron app shell against local daemon
|
||||
publications. The remaining Stage 7 risk is Unity parity: Unity still needs the
|
||||
same typed local Verse client shape before the gameplay shell can be demolished.
|
||||
|
|
|
|||
Loading…
Reference in a new issue