Add Unity scene Sai projection boundary
This commit is contained in:
parent
cb17b293ed
commit
0ae4970885
12 changed files with 279 additions and 30 deletions
|
|
@ -392,8 +392,8 @@ Recently cut:
|
|||
- Runtime/plugin projection claims are now exported as root
|
||||
`runtimePluginProjectionCoverage[]` records. Runtime-owner smokes assert
|
||||
Unity UI Toolkit support for `sai.vn` and `norn.graph`, Unity scene support
|
||||
for `norn.graph`, the declared TeX gaps, and the pending Unity
|
||||
scene/Electron unsupported Sai projection until their generic lowerers exist.
|
||||
for `sai.vn` and `norn.graph`, the declared TeX gaps, and the pending
|
||||
Electron unsupported Sai projection until its generic lowerer exists.
|
||||
- Provider/runtime/plugin projection coverage is now exported as
|
||||
`providerRuntimePluginProjectionCoverage[]`. The runtime-owner smoke proves
|
||||
the Sai VN provider surface lowers fully in web, lowers in Unity UI Toolkit
|
||||
|
|
@ -430,16 +430,16 @@ Recently cut:
|
|||
`scripts/run-eveunity-scene-capture-contract-smoke.ps1`, while the actual
|
||||
Unity scene PNG/frame artifact remains pending. The scene graph now preserves
|
||||
embedded document slot identity for resolver-backed child surfaces without
|
||||
owning the nested plugin semantics. Plugin projection adapters stay
|
||||
unsupported for Sai and TeX until those sidecar projection adapters exist in
|
||||
the Unity scene runtime.
|
||||
owning the nested plugin semantics. Sai and Norn scene projection adapters now
|
||||
exist; TeX stays unsupported until a scene-space or UI overlay adapter exists
|
||||
in the Unity scene runtime.
|
||||
- Unity scene now has a direct split handoff smoke at
|
||||
`scripts/run-eveunity-scene-split-handoff-smoke.ps1`. The smoke verifies the
|
||||
scene runtime's current source paths for runtime body, scene graph lowering,
|
||||
Norn plugin projection, and command transport, does not treat Aetheria
|
||||
product paths or Norn implementation state as generic runtime source, names
|
||||
the required Eve contracts, and keeps capture as an external proof until
|
||||
EveUnity owns it.
|
||||
Sai/Norn plugin projection, and command transport, does not treat Aetheria
|
||||
product paths, Sai story state, or Norn implementation state as generic
|
||||
runtime source, names the required Eve contracts, and keeps capture as an
|
||||
external proof until EveUnity owns it.
|
||||
- Runtime split handoff documents now have a catalog-backed schema,
|
||||
`gamecult.eve.runtime_split_handoff.v1`. EveConformance exports that schema
|
||||
so runtime owner repos can consume split target, move set, contract input,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace GameCult.Eve.UnityScene
|
|||
{
|
||||
public sealed class EveUnitySceneSurfaceLowerer
|
||||
{
|
||||
private static readonly SaiVisualNovelUnitySceneProjectionAdapter SaiVisualNovelAdapter = new SaiVisualNovelUnitySceneProjectionAdapter();
|
||||
private static readonly NornGraphUnitySceneProjectionAdapter NornGraphAdapter = new NornGraphUnitySceneProjectionAdapter();
|
||||
|
||||
public EveUnitySceneProjection Lower(
|
||||
|
|
@ -93,6 +94,8 @@ namespace GameCult.Eve.UnityScene
|
|||
|
||||
private static EveUnityScenePluginProjection? BuildPluginProjection(EveSurfaceComponent component)
|
||||
{
|
||||
if (SaiVisualNovelAdapter.CanProject(component))
|
||||
return SaiVisualNovelAdapter.Project(component);
|
||||
if (NornGraphAdapter.CanProject(component))
|
||||
return NornGraphAdapter.Project(component);
|
||||
return null;
|
||||
|
|
@ -117,6 +120,13 @@ namespace GameCult.Eve.UnityScene
|
|||
{
|
||||
if (string.IsNullOrWhiteSpace(componentKind))
|
||||
return "empty";
|
||||
if (string.Equals(componentKind, "vn.stage", StringComparison.Ordinal))
|
||||
return "sai-vn-scene-stage";
|
||||
if (string.Equals(componentKind, "panel.dialogue", StringComparison.Ordinal) ||
|
||||
string.Equals(componentKind, "text.dialogue", StringComparison.Ordinal))
|
||||
return "sai-vn-scene-dialogue";
|
||||
if (string.Equals(componentKind, "rail.actions", StringComparison.Ordinal))
|
||||
return "sai-vn-scene-action-rail";
|
||||
if (componentKind.StartsWith("control.", StringComparison.Ordinal))
|
||||
return "command-control";
|
||||
if (string.Equals(componentKind, "embed.norn", StringComparison.Ordinal))
|
||||
|
|
|
|||
|
|
@ -0,0 +1,87 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using GameCult.Eve.Surface;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace GameCult.Eve.UnityScene
|
||||
{
|
||||
public sealed class SaiVisualNovelUnitySceneProjectionAdapter
|
||||
{
|
||||
public string PluginId => "sai.vn";
|
||||
|
||||
public IReadOnlyList<string> Capabilities { get; } = new[]
|
||||
{
|
||||
"vn.stage",
|
||||
"story.choose",
|
||||
"story.continue",
|
||||
"story.jump"
|
||||
};
|
||||
|
||||
public bool CanProject(EveSurfaceComponent component)
|
||||
{
|
||||
if (component == null)
|
||||
return false;
|
||||
|
||||
switch (component.Kind)
|
||||
{
|
||||
case "vn.stage":
|
||||
case "panel.dialogue":
|
||||
case "text.dialogue":
|
||||
case "rail.actions":
|
||||
return true;
|
||||
case "control.button":
|
||||
return StoryCommand(component).StartsWith("story.", StringComparison.Ordinal);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public EveUnityScenePluginProjection Project(EveSurfaceComponent component)
|
||||
{
|
||||
if (component == null) throw new ArgumentNullException(nameof(component));
|
||||
if (!CanProject(component))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Sai scene projection adapter cannot project component kind '{component.Kind}'.");
|
||||
}
|
||||
|
||||
return new EveUnityScenePluginProjection(
|
||||
PluginId,
|
||||
ProjectionKind(component),
|
||||
"gamecult.eve.plugin_abi.v1",
|
||||
"sidecar-advertised-plugin-abi",
|
||||
Capabilities,
|
||||
StoryCommand(component),
|
||||
component.GetProp("storyId", component.GetProp("currentPath", "")),
|
||||
"Sai");
|
||||
}
|
||||
|
||||
private static string ProjectionKind(EveSurfaceComponent component)
|
||||
{
|
||||
switch (component.Kind)
|
||||
{
|
||||
case "vn.stage":
|
||||
return "sai-vn-scene-stage-shell";
|
||||
case "panel.dialogue":
|
||||
case "text.dialogue":
|
||||
return "sai-vn-scene-dialogue-shell";
|
||||
case "rail.actions":
|
||||
return "sai-vn-scene-action-rail-shell";
|
||||
case "control.button":
|
||||
return "sai-vn-scene-story-command-shell";
|
||||
default:
|
||||
return "sai-vn-scene-projection-shell";
|
||||
}
|
||||
}
|
||||
|
||||
private static string StoryCommand(EveSurfaceComponent component)
|
||||
{
|
||||
return component.GetProp(
|
||||
"command",
|
||||
component.GetProp(
|
||||
"action.command",
|
||||
component.GetProp("action", component.GetProp("type", ""))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -57,6 +57,39 @@ namespace GameCult.Eve.UnityScene.Tests
|
|||
Assert.That(nornNode.PluginProjection.SemanticOwner, Is.EqualTo("Norn"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SaiVisualNovelLowersThroughRuntimeProjectionAdapterWithoutOwningStoryState()
|
||||
{
|
||||
var lowerer = new EveUnitySceneSurfaceLowerer();
|
||||
var projection = lowerer.Lower(SaiDocument(), Advertisement("sai.visual_novel.surface"));
|
||||
|
||||
Assert.That(projection.ProviderId, Is.EqualTo("gamecult.home.vn"));
|
||||
Assert.That(projection.SurfaceId, Is.EqualTo("sai.visual_novel.surface"));
|
||||
Assert.That(projection.Root.SceneObjectKind, Is.EqualTo("sai-vn-scene-stage"));
|
||||
Assert.That(projection.Root.PluginProjection, Is.Not.Null);
|
||||
Assert.That(projection.Root.PluginProjection!.PluginId, Is.EqualTo("sai.vn"));
|
||||
Assert.That(projection.Root.PluginProjection.ProjectionKind, Is.EqualTo("sai-vn-scene-stage-shell"));
|
||||
Assert.That(projection.Root.PluginProjection.AbiSchema, Is.EqualTo("gamecult.eve.plugin_abi.v1"));
|
||||
Assert.That(projection.Root.PluginProjection.CommandBoundary, Is.EqualTo("sidecar-advertised-plugin-abi"));
|
||||
Assert.That(projection.Root.PluginProjection.Capabilities, Does.Contain("vn.stage"));
|
||||
Assert.That(projection.Root.PluginProjection.Capabilities, Does.Contain("story.choose"));
|
||||
Assert.That(projection.Root.PluginProjection.DocumentId, Is.EqualTo("gamecult-compound"));
|
||||
Assert.That(projection.Root.PluginProjection.SemanticOwner, Is.EqualTo("Sai"));
|
||||
|
||||
var dialogue = projection.Root.Children[0];
|
||||
Assert.That(dialogue.SceneObjectKind, Is.EqualTo("sai-vn-scene-dialogue"));
|
||||
Assert.That(dialogue.PluginProjection!.ProjectionKind, Is.EqualTo("sai-vn-scene-dialogue-shell"));
|
||||
Assert.That(dialogue.PluginProjection.SemanticOwner, Is.EqualTo("Sai"));
|
||||
|
||||
var choice = projection.Root.Children[1].Children[0];
|
||||
Assert.That(choice.SceneObjectKind, Is.EqualTo("command-control"));
|
||||
Assert.That(choice.PluginProjection, Is.Not.Null);
|
||||
Assert.That(choice.PluginProjection!.PluginId, Is.EqualTo("sai.vn"));
|
||||
Assert.That(choice.PluginProjection.ProjectionKind, Is.EqualTo("sai-vn-scene-story-command-shell"));
|
||||
Assert.That(choice.PluginProjection.Command, Is.EqualTo("story.choose"));
|
||||
Assert.That(choice.PluginProjection.SemanticOwner, Is.EqualTo("Sai"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts()
|
||||
{
|
||||
|
|
@ -139,6 +172,60 @@ namespace GameCult.Eve.UnityScene.Tests
|
|||
Array.Empty<EveCommandTemplate>());
|
||||
}
|
||||
|
||||
private static EveSurfaceDocument SaiDocument()
|
||||
{
|
||||
return new EveSurfaceDocument(
|
||||
"gamecult.home.vn",
|
||||
"sai.visual_novel",
|
||||
"GameCult Compound VN",
|
||||
1,
|
||||
"2026-07-09T00:00:00Z",
|
||||
new EveSurfaceTree(
|
||||
"sai.visual_novel.surface",
|
||||
new EveSurfaceComponent(
|
||||
"sai.root",
|
||||
"vn.stage",
|
||||
new Dictionary<string, string>(StringComparer.Ordinal)
|
||||
{
|
||||
["storyId"] = "gamecult-compound",
|
||||
["currentPath"] = "hub"
|
||||
},
|
||||
new[]
|
||||
{
|
||||
new EveSurfaceComponent(
|
||||
"sai.dialogue",
|
||||
"panel.dialogue",
|
||||
new Dictionary<string, string>(StringComparer.Ordinal)
|
||||
{
|
||||
["speaker"] = "Void",
|
||||
["text"] = "Pick a door."
|
||||
},
|
||||
Array.Empty<EveSurfaceComponent>()),
|
||||
new EveSurfaceComponent(
|
||||
"sai.choices",
|
||||
"rail.actions",
|
||||
new Dictionary<string, string>(StringComparer.Ordinal),
|
||||
new[]
|
||||
{
|
||||
new EveSurfaceComponent(
|
||||
"sai.choice.eve",
|
||||
"control.button",
|
||||
new Dictionary<string, string>(StringComparer.Ordinal)
|
||||
{
|
||||
["label"] = "What is Eve?",
|
||||
["action.command"] = "story.choose",
|
||||
["targetPath"] = "eve"
|
||||
},
|
||||
Array.Empty<EveSurfaceComponent>())
|
||||
})
|
||||
}),
|
||||
Array.Empty<EveStyleToken>()),
|
||||
new[]
|
||||
{
|
||||
new EveCommandTemplate(CultMesh.OperationBinding("story.choose", "Choose"))
|
||||
});
|
||||
}
|
||||
|
||||
private static EveUnitySceneProviderSurfaceAdvertisement Advertisement(string surfaceId)
|
||||
{
|
||||
return new EveUnitySceneProviderSurfaceAdvertisement(
|
||||
|
|
|
|||
|
|
@ -20,6 +20,16 @@
|
|||
"embeddedDocuments"
|
||||
],
|
||||
"supportedPlugins": [
|
||||
{
|
||||
"pluginId": "sai.vn",
|
||||
"capabilities": [
|
||||
"vn.stage",
|
||||
"story.choose",
|
||||
"story.continue",
|
||||
"story.jump"
|
||||
],
|
||||
"projectionAdapter": "SaiVisualNovelUnitySceneProjectionAdapter"
|
||||
},
|
||||
{
|
||||
"pluginId": "norn.graph",
|
||||
"capabilities": [
|
||||
|
|
@ -29,10 +39,6 @@
|
|||
}
|
||||
],
|
||||
"unsupportedPlugins": [
|
||||
{
|
||||
"pluginId": "sai.vn",
|
||||
"reason": "Unity scene graph projection exists, but no scene adapter exists for Sai sidecar-advertised VN projection in this runtime."
|
||||
},
|
||||
{
|
||||
"pluginId": "tex.math",
|
||||
"reason": "Unity scene graph projection exists, but no scene-space or UI overlay adapter exists for TeX sidecar-advertised math projection in this runtime."
|
||||
|
|
@ -47,6 +53,7 @@
|
|||
"ownership": "runtime-lowers-provider-world-surface-without-owning-world-state",
|
||||
"evidencePaths": [
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
"web/fixtures/aetheria.provider-advertisement.json"
|
||||
|
|
@ -80,6 +87,7 @@
|
|||
"runtimes/incubating/eve-unity-scene/package.json",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/GameCult.Eve.UnityScene.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/eveunity-scene-split-handoff.json",
|
||||
"scripts/run-eveunity-scene-split-handoff-smoke.ps1",
|
||||
|
|
@ -110,6 +118,7 @@
|
|||
"runtimes/incubating/eve-unity-scene/package.json",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/GameCult.Eve.UnityScene.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/GameCult.Eve.UnityScene.Tests.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
"runtimes/incubating/eve-unity-scene/package.json",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/GameCult.Eve.UnityScene.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/GameCult.Eve.UnityScene.Tests.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs"
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
"stage": "world-surface-lowering",
|
||||
"currentPaths": [
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
"runtimes/incubating/eve-unity-scene/eve-runtime-capability.json"
|
||||
|
|
@ -35,6 +37,18 @@
|
|||
"destinationOwner": "EveUnity",
|
||||
"replacementProof": "EveUnity claims the provider-advertised unity-scene lowering target with provider-agnostic scene graph projection and command boundary evidence; capture remains a separate lifecycle proof."
|
||||
},
|
||||
{
|
||||
"id": "unity-scene-sai-plugin-projection",
|
||||
"stage": "plugin-projection",
|
||||
"currentPaths": [
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
"runtimes/incubating/eve-unity-scene/eve-runtime-capability.json"
|
||||
],
|
||||
"destinationOwner": "EveUnity",
|
||||
"replacementProof": "EveUnity owns only the Unity scene projection adapter for Sai's sidecar-advertised VN capabilities; Sai keeps story state, VN/Ink semantics, and story command interpretation."
|
||||
},
|
||||
{
|
||||
"id": "unity-scene-norn-plugin-projection",
|
||||
"stage": "plugin-projection",
|
||||
|
|
@ -83,12 +97,14 @@
|
|||
"provider-specific scene components that bypass gamecult.eve.command.v1",
|
||||
"renderer-local world simulation as provider truth",
|
||||
"product assets bundled as Eve runtime contract",
|
||||
"Sai story state, VN/Ink semantics, or story command interpretation as Unity scene runtime authority",
|
||||
"Norn graph layout, graph state, or command semantics as Unity scene runtime authority"
|
||||
],
|
||||
"requiredExternalProofs": [
|
||||
"EveUnity publishes a Unity scene runtime capability manifest.",
|
||||
"EveUnity owns a provider-agnostic scene graph lowerer that consumes advertised worldInteraction boundaries without importing Aetheria internals.",
|
||||
"EveUnity owns the provider-agnostic scene graph lowerer outside Eve incubation.",
|
||||
"EveUnity owns the Unity scene Sai projection adapter outside Eve incubation without importing Sai story state or VN/Ink internals.",
|
||||
"EveUnity owns the Unity scene Norn projection adapter outside Eve incubation without importing Norn implementation state.",
|
||||
"EveUnity lowers at least one non-Aetheria provider-authored world surface into Unity scene objects.",
|
||||
"EveUnity lowers Aetheria's game world surface through provider advertisements without importing Aetheria internals.",
|
||||
|
|
|
|||
|
|
@ -44,8 +44,20 @@ foreach ($feature in @("providerAdvertisements", "commandTransport", "sceneGraph
|
|||
throw "EveUnity scene manifest missing provider-shell feature: $feature"
|
||||
}
|
||||
}
|
||||
if (@($manifest.supportedPlugins).Count -ne 1) {
|
||||
throw "EveUnity scene must claim exactly one plugin projection adapter"
|
||||
if (@($manifest.supportedPlugins).Count -ne 2) {
|
||||
throw "EveUnity scene must claim exactly two plugin projection adapters"
|
||||
}
|
||||
$saiProjection = @($manifest.supportedPlugins) | Where-Object { $_.pluginId -eq "sai.vn" } | Select-Object -First 1
|
||||
if (-not $saiProjection) {
|
||||
throw "EveUnity scene manifest missing supported Sai projection adapter"
|
||||
}
|
||||
if ($saiProjection.projectionAdapter -ne "SaiVisualNovelUnitySceneProjectionAdapter") {
|
||||
throw "Unexpected EveUnity scene Sai projection adapter: $($saiProjection.projectionAdapter)"
|
||||
}
|
||||
foreach ($capability in @("vn.stage", "story.choose", "story.continue", "story.jump")) {
|
||||
if (-not (@($saiProjection.capabilities) -contains $capability)) {
|
||||
throw "EveUnity scene Sai projection adapter must claim $capability"
|
||||
}
|
||||
}
|
||||
$nornProjection = @($manifest.supportedPlugins) | Where-Object { $_.pluginId -eq "norn.graph" } | Select-Object -First 1
|
||||
if (-not $nornProjection) {
|
||||
|
|
@ -81,12 +93,15 @@ foreach ($evidencePath in @($worldSurfaceLoweringClaim.evidencePaths)) {
|
|||
}
|
||||
}
|
||||
|
||||
foreach ($pluginId in @("sai.vn", "tex.math")) {
|
||||
foreach ($pluginId in @("tex.math")) {
|
||||
$unsupported = @($manifest.unsupportedPlugins) | Where-Object { $_.pluginId -eq $pluginId } | Select-Object -First 1
|
||||
if (-not $unsupported) {
|
||||
throw "EveUnity scene manifest missing unsupported plugin declaration: $pluginId"
|
||||
}
|
||||
}
|
||||
if (@($manifest.unsupportedPlugins) | Where-Object { $_.pluginId -eq "sai.vn" } | Select-Object -First 1) {
|
||||
throw "EveUnity scene must not report sai.vn unsupported while the projection adapter is declared"
|
||||
}
|
||||
if (@($manifest.unsupportedPlugins) | Where-Object { $_.pluginId -eq "norn.graph" } | Select-Object -First 1) {
|
||||
throw "EveUnity scene must not report norn.graph unsupported while the projection adapter is declared"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ $expectedFiles = @(
|
|||
"runtimes\incubating\eve-unity-scene\package.json",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\GameCult.Eve.UnityScene.asmdef",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Runtime\NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes\incubating\eve-unity-scene\Tests\Editor\GameCult.Eve.UnityScene.Tests.asmdef",
|
||||
"runtimes\incubating\eve-unity-scene\Tests\Editor\EveUnitySceneSurfaceLowererTests.cs"
|
||||
|
|
@ -77,12 +78,19 @@ foreach ($relativePath in $expectedFiles) {
|
|||
}
|
||||
|
||||
$lowererSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\EveUnitySceneSurfaceLowerer.cs") -Raw
|
||||
foreach ($symbol in @("EveUnitySceneSurfaceLowerer", "EveUnitySceneProviderSurfaceAdvertisement", "WorldInteraction", "CommandBoundary", "ReceiptSchema", "EveSurfaceCommandRequest", "BuildSceneGraph", "BuildPluginProjection", "EveUnityScenePluginProjection", "EveUnitySceneNode", "SceneObjectKind", "unity-scene")) {
|
||||
foreach ($symbol in @("EveUnitySceneSurfaceLowerer", "EveUnitySceneProviderSurfaceAdvertisement", "WorldInteraction", "CommandBoundary", "ReceiptSchema", "EveSurfaceCommandRequest", "BuildSceneGraph", "BuildPluginProjection", "SaiVisualNovelUnitySceneProjectionAdapter", "EveUnityScenePluginProjection", "EveUnitySceneNode", "SceneObjectKind", "unity-scene")) {
|
||||
if (-not $lowererSource.Contains($symbol)) {
|
||||
throw "EveUnity scene provider shell lowerer missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$saiAdapterSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\SaiVisualNovelUnitySceneProjectionAdapter.cs") -Raw
|
||||
foreach ($symbol in @("SaiVisualNovelUnitySceneProjectionAdapter", "sai.vn", "vn.stage", "story.choose", "story.continue", "story.jump", "gamecult.eve.plugin_abi.v1", "sidecar-advertised-plugin-abi", "Sai")) {
|
||||
if (-not $saiAdapterSource.Contains($symbol)) {
|
||||
throw "EveUnity scene Sai projection adapter missing symbol: $symbol"
|
||||
}
|
||||
}
|
||||
|
||||
$nornAdapterSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Runtime\NornGraphUnitySceneProjectionAdapter.cs") -Raw
|
||||
foreach ($symbol in @("NornGraphUnitySceneProjectionAdapter", "norn.graph", "embed.norn", "gamecult.eve.plugin_abi.v1", "sidecar-advertised-plugin-abi", "Norn")) {
|
||||
if (-not $nornAdapterSource.Contains($symbol)) {
|
||||
|
|
@ -91,7 +99,7 @@ foreach ($symbol in @("NornGraphUnitySceneProjectionAdapter", "norn.graph", "emb
|
|||
}
|
||||
|
||||
$testSource = Get-Content -LiteralPath (Join-Path $projectRoot "runtimes\incubating\eve-unity-scene\Tests\Editor\EveUnitySceneSurfaceLowererTests.cs") -Raw
|
||||
foreach ($symbol in @("LowerCarriesProviderAdvertisedWorldBoundary", "LowerBuildsProviderAgnosticSceneGraphFromSurfaceTree", "CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts", "world-projection-node", "norn-graph-scene-projection", "norn.graph", "sidecar-advertised-plugin-abi", "aetheria.daemon.commands", "aetheria.eve_command_acceptance_status.v1")) {
|
||||
foreach ($symbol in @("LowerCarriesProviderAdvertisedWorldBoundary", "LowerBuildsProviderAgnosticSceneGraphFromSurfaceTree", "SaiVisualNovelLowersThroughRuntimeProjectionAdapterWithoutOwningStoryState", "CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts", "world-projection-node", "sai-vn-scene-stage", "norn-graph-scene-projection", "sai.vn", "norn.graph", "sidecar-advertised-plugin-abi", "aetheria.daemon.commands", "aetheria.eve_command_acceptance_status.v1")) {
|
||||
if (-not $testSource.Contains($symbol)) {
|
||||
throw "EveUnity scene provider shell tests missing symbol: $symbol"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ $moveSets = @($handoff.moveSets)
|
|||
$expectedMoveSets = @{
|
||||
"unity-scene-runtime-body" = "runtime-body"
|
||||
"unity-scene-world-surface-lowering" = "world-surface-lowering"
|
||||
"unity-scene-sai-plugin-projection" = "plugin-projection"
|
||||
"unity-scene-norn-plugin-projection" = "plugin-projection"
|
||||
"unity-scene-command-transport" = "command"
|
||||
"unity-scene-capture-lifecycle" = "capture"
|
||||
|
|
@ -66,7 +67,7 @@ foreach ($id in $expectedMoveSets.Keys) {
|
|||
}
|
||||
$currentPaths = if ($null -eq $moveSet.currentPaths) { @() } else { @($moveSet.currentPaths) }
|
||||
$observedProviderPaths = if ($null -eq $moveSet.observedProviderPaths) { @() } else { @($moveSet.observedProviderPaths) }
|
||||
if ($id -in @("unity-scene-runtime-body", "unity-scene-world-surface-lowering", "unity-scene-norn-plugin-projection", "unity-scene-command-transport", "unity-scene-capture-lifecycle")) {
|
||||
if ($id -in @("unity-scene-runtime-body", "unity-scene-world-surface-lowering", "unity-scene-sai-plugin-projection", "unity-scene-norn-plugin-projection", "unity-scene-command-transport", "unity-scene-capture-lifecycle")) {
|
||||
if ($currentPaths.Count -eq 0) {
|
||||
throw "EveUnity scene split handoff move set $id must name current Eve incubation paths"
|
||||
}
|
||||
|
|
@ -100,6 +101,7 @@ foreach ($forbiddenImport in @(
|
|||
"provider-specific scene components that bypass gamecult.eve.command.v1",
|
||||
"renderer-local world simulation as provider truth",
|
||||
"product assets bundled as Eve runtime contract",
|
||||
"Sai story state, VN/Ink semantics, or story command interpretation as Unity scene runtime authority",
|
||||
"Norn graph layout, graph state, or command semantics as Unity scene runtime authority"
|
||||
)) {
|
||||
if (-not (@($handoff.forbiddenImports) -contains $forbiddenImport)) {
|
||||
|
|
@ -107,6 +109,11 @@ foreach ($forbiddenImport in @(
|
|||
}
|
||||
}
|
||||
|
||||
$saiProjectionMoveSet = $moveSets | Where-Object { $_.id -eq "unity-scene-sai-plugin-projection" } | Select-Object -First 1
|
||||
if (-not (@($saiProjectionMoveSet.currentPaths) -contains "runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs")) {
|
||||
throw "EveUnity scene split handoff Sai projection move set must include the scene adapter path"
|
||||
}
|
||||
|
||||
$nornProjectionMoveSet = $moveSets | Where-Object { $_.id -eq "unity-scene-norn-plugin-projection" } | Select-Object -First 1
|
||||
if (-not (@($nornProjectionMoveSet.currentPaths) -contains "runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs")) {
|
||||
throw "EveUnity scene split handoff Norn projection move set must include the scene adapter path"
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-runtime-plugin-projection unity-uitoolkit:sai.vn:supported:EveUnity `
|
||||
--expect-runtime-plugin-projection unity-uitoolkit:norn.graph:supported:EveUnity `
|
||||
--expect-runtime-plugin-projection unity-uitoolkit:tex.math:unsupported:EveUnity `
|
||||
--expect-runtime-plugin-projection unity-scene:sai.vn:unsupported:EveUnity `
|
||||
--expect-runtime-plugin-projection unity-scene:sai.vn:supported:EveUnity `
|
||||
--expect-runtime-plugin-projection unity-scene:norn.graph:supported:EveUnity `
|
||||
--expect-runtime-plugin-projection unity-scene:tex.math:unsupported:EveUnity `
|
||||
--expect-runtime-plugin-projection electron-shell:sai.vn:unsupported:EveElectron `
|
||||
|
|
@ -101,10 +101,12 @@ node $consumerScript $consumerExport `
|
|||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:unity-uitoolkit:sai.vn:supported:EveUnity `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:unity-uitoolkit:norn.graph:optional-supported:EveUnity `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:unity-uitoolkit:tex.math:optional-unsupported-runtime-projection:EveUnity `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:unity-scene:sai.vn:supported:EveUnity `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:unity-scene:norn.graph:optional-supported:EveUnity `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:unity-scene:tex.math:optional-unsupported-runtime-projection:EveUnity `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:ios-uikit:sai.vn:unsupported-runtime-projection:EveIOS `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:ios-uikit:norn.graph:optional-unsupported-runtime-projection:EveIOS `
|
||||
--expect-runtime-plugin-gap unity-uitoolkit:tex.math:EveUnity `
|
||||
--expect-runtime-plugin-gap unity-scene:sai.vn:EveUnity `
|
||||
--expect-runtime-plugin-gap unity-scene:tex.math:EveUnity `
|
||||
--expect-runtime-plugin-gap electron-shell:sai.vn:EveElectron `
|
||||
--expect-runtime-plugin-gap electron-shell:norn.graph:EveElectron `
|
||||
|
|
|
|||
|
|
@ -45,10 +45,10 @@ try {
|
|||
--expect-split-target-proof "EveUnity:Unity scene lifecycle contract is machine-readable" `
|
||||
--expect-split-target-blocker "EveUnity:runtime:unity-scene:status:pending" `
|
||||
--expect-split-target-blocker-record EveUnity:runtime-status:unity-scene `
|
||||
--expect-split-target-blocker-record EveUnity:runtime-plugin-projection:unity-scene:sai.vn `
|
||||
--expect-split-target-blocker-record "EveUnity:pending-proof:Unity scene runtime body graduates to EveUnity outside Aetheria product code." `
|
||||
--expect-split-handoff-move EveUnity:unity-scene:unity-scene-runtime-body:current:exists:EveUnitySceneSurfaceLowerer.cs `
|
||||
--expect-split-handoff-move EveUnity:unity-scene:unity-scene-world-surface-lowering:current:exists:EveUnitySceneSurfaceLowerer.cs `
|
||||
--expect-split-handoff-move EveUnity:unity-scene:unity-scene-sai-plugin-projection:current:exists:SaiVisualNovelUnitySceneProjectionAdapter.cs `
|
||||
--expect-split-handoff-move EveUnity:unity-scene:unity-scene-norn-plugin-projection:current:exists:NornGraphUnitySceneProjectionAdapter.cs `
|
||||
--expect-split-handoff-move EveUnity:unity-scene:unity-scene-command-transport:current:exists:EveUnitySceneSurfaceLowerer.cs `
|
||||
--expect-split-handoff-move EveUnity:unity-scene:unity-scene-capture-lifecycle:current:exists:eveunity-capture-contract.mjs `
|
||||
|
|
|
|||
|
|
@ -610,11 +610,12 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"description": "Unity scene graph projection lowerer and Norn projection adapter exist without claiming provider simulation, Norn semantics, or capture ownership.",
|
||||
"description": "Unity scene graph projection lowerer plus Sai and Norn projection adapters exist without claiming provider simulation, plugin semantics, or capture ownership.",
|
||||
"status": "passed",
|
||||
"evidencePaths": [
|
||||
"runtimes/incubating/eve-unity-scene/package.json",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
"scripts/run-eveunity-scene-provider-shell-smoke.ps1"
|
||||
|
|
@ -942,9 +943,14 @@
|
|||
},
|
||||
"splitHandoffPath": "runtimes/incubating/eve-unity-scene/eveunity-scene-split-handoff.json",
|
||||
"requiredFixtures": ["aetheria-world"],
|
||||
"pluginFixtures": [],
|
||||
"pluginFixtures": ["sai-vn"],
|
||||
"supportedFeatures": ["providerAdvertisements", "commandTransport", "sceneGraphProjection", "embeddedDocuments"],
|
||||
"supportedPlugins": [
|
||||
{
|
||||
"pluginId": "sai.vn",
|
||||
"capabilities": ["vn.stage", "story.choose", "story.continue", "story.jump"],
|
||||
"projectionAdapter": "SaiVisualNovelUnitySceneProjectionAdapter"
|
||||
},
|
||||
{
|
||||
"pluginId": "norn.graph",
|
||||
"capabilities": ["embed.norn"],
|
||||
|
|
@ -952,10 +958,6 @@
|
|||
}
|
||||
],
|
||||
"unsupportedPlugins": [
|
||||
{
|
||||
"pluginId": "sai.vn",
|
||||
"reason": "Unity scene graph projection exists, but no scene adapter exists for Sai sidecar-advertised VN projection in this runtime."
|
||||
},
|
||||
{
|
||||
"pluginId": "tex.math",
|
||||
"reason": "Unity scene graph projection exists, but no scene-space or UI overlay adapter exists for TeX sidecar-advertised math projection in this runtime."
|
||||
|
|
@ -970,6 +972,7 @@
|
|||
"ownership": "runtime-lowers-provider-world-surface-without-owning-world-state",
|
||||
"evidencePaths": [
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
"web/fixtures/aetheria.provider-advertisement.json"
|
||||
|
|
@ -980,6 +983,7 @@
|
|||
"runtimes/incubating/eve-unity-scene/package.json",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/GameCult.Eve.UnityScene.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/GameCult.Eve.UnityScene.Tests.asmdef",
|
||||
"runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
|
|
@ -997,7 +1001,11 @@
|
|||
"expectedSourceSymbols": [
|
||||
{
|
||||
"path": "runtimes/incubating/eve-unity-scene/Runtime/EveUnitySceneSurfaceLowerer.cs",
|
||||
"contains": ["EveUnitySceneSurfaceLowerer", "EveUnitySceneProviderSurfaceAdvertisement", "WorldInteraction", "CommandBoundary", "ReceiptSchema", "EveSurfaceCommandRequest", "BuildSceneGraph", "BuildEmbeddedDocumentSlots", "BuildPluginProjection", "EveUnitySceneEmbeddedDocumentSlot", "EveUnityScenePluginProjection", "EveUnitySceneNode", "SceneObjectKind", "unity-scene"]
|
||||
"contains": ["EveUnitySceneSurfaceLowerer", "EveUnitySceneProviderSurfaceAdvertisement", "WorldInteraction", "CommandBoundary", "ReceiptSchema", "EveSurfaceCommandRequest", "BuildSceneGraph", "BuildEmbeddedDocumentSlots", "BuildPluginProjection", "SaiVisualNovelUnitySceneProjectionAdapter", "EveUnitySceneEmbeddedDocumentSlot", "EveUnityScenePluginProjection", "EveUnitySceneNode", "SceneObjectKind", "unity-scene"]
|
||||
},
|
||||
{
|
||||
"path": "runtimes/incubating/eve-unity-scene/Runtime/SaiVisualNovelUnitySceneProjectionAdapter.cs",
|
||||
"contains": ["SaiVisualNovelUnitySceneProjectionAdapter", "sai.vn", "vn.stage", "story.choose", "story.continue", "story.jump", "gamecult.eve.plugin_abi.v1", "sidecar-advertised-plugin-abi", "Sai"]
|
||||
},
|
||||
{
|
||||
"path": "runtimes/incubating/eve-unity-scene/Runtime/NornGraphUnitySceneProjectionAdapter.cs",
|
||||
|
|
@ -1005,7 +1013,7 @@
|
|||
},
|
||||
{
|
||||
"path": "runtimes/incubating/eve-unity-scene/Tests/Editor/EveUnitySceneSurfaceLowererTests.cs",
|
||||
"contains": ["LowerCarriesProviderAdvertisedWorldBoundary", "LowerBuildsProviderAgnosticSceneGraphFromSurfaceTree", "CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts", "world-projection-node", "norn-graph-scene-projection", "norn.map", "cultmesh://aetheria/norn/map", "norn.graph", "sidecar-advertised-plugin-abi", "aetheria.daemon.commands", "aetheria.eve_command_acceptance_status.v1"]
|
||||
"contains": ["LowerCarriesProviderAdvertisedWorldBoundary", "LowerBuildsProviderAgnosticSceneGraphFromSurfaceTree", "SaiVisualNovelLowersThroughRuntimeProjectionAdapterWithoutOwningStoryState", "CommandIntentCarriesAdvertisedBoundaryWithoutOwningReceipts", "world-projection-node", "sai-vn-scene-stage", "norn-graph-scene-projection", "norn.map", "cultmesh://aetheria/norn/map", "sai.vn", "norn.graph", "sidecar-advertised-plugin-abi", "aetheria.daemon.commands", "aetheria.eve_command_acceptance_status.v1"]
|
||||
},
|
||||
{
|
||||
"path": "tools/eveunity/eveunity-capture-contract.test.mjs",
|
||||
|
|
|
|||
Loading…
Reference in a new issue