Add Sai and Norn plugin handoff proofs

This commit is contained in:
Meta Vens 2026-07-09 01:48:37 +01:00
commit 96968931a1
10 changed files with 265 additions and 2 deletions

View file

@ -280,6 +280,15 @@ Exit criteria:
Recently cut:
- Sai and Norn now have plugin handoff manifests at
`plugins/incubating/sai-vn.plugin-handoff.json` and
`plugins/incubating/norn-graph.plugin-handoff.json`, plus a shared verifier
at `scripts/run-plugin-handoff-smoke.ps1`. The handoffs name the manifest,
advertisement, ABI fixture, move sets, contract inputs, forbidden imports,
and external proofs that must move to the owner repos. The conformance export
carries plugin `handoffPath`, and the plugin-owner smoke asserts it so Sai
and Norn can consume the plugin boundary without reading Eve's parity
manifest.
- Aetheria now has a provider handoff manifest at
`web/fixtures/aetheria-provider-handoff.json` and a verifier at
`scripts/run-aetheria-provider-handoff-smoke.ps1`. The handoff names the

View file

@ -85,6 +85,11 @@ The conformance export includes runtime `capabilityManifestPath` and
generic projection runtime from a runtime that can project plugin-declared
capabilities.
Plugin handoff paths are exported as `plugins[].handoffPath` for owner repos
such as Sai and Norn. These paths are incubation evidence for where plugin
manifest, advertisement, ABI fixture, and conformance ownership must move; they
are not plugin runtime state.
The runtime conformance pack is evidence-shaped, not fixture-shaped. Its
`packs/runtime.json` document includes `runtimeTargets` so runtime repos can
consume status, supported features, plugin support, command schema, lifecycle,
@ -110,6 +115,17 @@ asserts the provider pack, `aetheria-world` fixture, `aetheria` provider entry,
copies remain under Eve's `artifacts/aetheria-conformance-consumer-smoke` so
the provider worktree does not become dirty merely by proving the boundary.
Plugin owner handoff smoke:
```powershell
powershell -ExecutionPolicy Bypass -File .\scripts\run-plugin-handoff-smoke.ps1
```
That script validates the Sai and Norn handoff manifests against their plugin
manifests, advertisements, ABI fixtures, move-set paths, contract inputs, and
external proofs. The plugin-owner conformance smoke also asserts those handoff
paths from the conformance export.
Aetheria provider handoff smoke:
```powershell

View file

@ -0,0 +1,51 @@
{
"schema": "gamecult.eve.plugin_handoff.v1",
"pluginId": "norn.graph",
"ownerRepo": "Norn",
"currentHostRepo": "Eve",
"splitTarget": "Norn/eve-plugin-graph",
"manifestPath": "plugins/incubating/norn-graph.plugin.json",
"advertisementPath": "plugins/incubating/norn-graph.plugin-advertisement.json",
"abiFixturePath": "plugins/incubating/norn-graph.plugin-abi-fixture.json",
"authorityBoundary": "Norn owns graph document semantics, graph layout, graph interaction, fallback behavior, and plugin ABI behavior. Eve owns only plugin manifest, advertisement, ABI, provider requirement, and conformance export contracts.",
"moveSets": [
{
"id": "plugin-manifest",
"destinationOwner": "Norn",
"currentPaths": [
"plugins/incubating/norn-graph.plugin.json",
"plugins/incubating/norn-graph.plugin-advertisement.json"
],
"replacementProof": "Norn publishes norn.graph plugin manifest and advertisement from the Norn repo or sidecar daemon."
},
{
"id": "abi-conformance",
"destinationOwner": "Norn",
"currentPaths": [
"plugins/incubating/norn-graph.plugin-abi-fixture.json",
"web/fixtures/sai-vn-surface.json",
"web/fixtures/sai-vn-surface.conformance.json"
],
"replacementProof": "Norn owns embed.norn layout, interaction, fallback, and ABI conformance cases."
}
],
"contractInputs": [
"gamecult.eve.plugin.v1",
"gamecult.eve.plugin_advertisement.v1",
"gamecult.eve.plugin_abi.v1",
"gamecult.eve.plugin_abi_fixture.v1",
"gamecult.eve.conformance_export.v1"
],
"forbiddenImports": [
"Aetheria provider state",
"Sai story session internals",
"renderer-native projection internals",
"provider command acceptance or receipt authority"
],
"requiredExternalProofs": [
"Norn publishes the norn.graph sidecar ABI without depending on Eve source layout.",
"Norn owns graph layout, interaction, fallback, and conformance fixtures.",
"Providers consume norn.graph through plugin advertisements and ABI operations.",
"Runtimes declare norn.graph projection support through runtime capability manifests."
]
}

View file

@ -0,0 +1,51 @@
{
"schema": "gamecult.eve.plugin_handoff.v1",
"pluginId": "sai.vn",
"ownerRepo": "Sai",
"currentHostRepo": "Eve",
"splitTarget": "Sai/sai-vn-plugin",
"manifestPath": "plugins/incubating/sai-vn.plugin.json",
"advertisementPath": "plugins/incubating/sai-vn.plugin-advertisement.json",
"abiFixturePath": "plugins/incubating/sai-vn.plugin-abi-fixture.json",
"authorityBoundary": "Sai owns VN/Ink story semantics, visual manifest semantics, story command interpretation, and plugin ABI behavior. Eve owns only plugin manifest, advertisement, ABI, provider requirement, and conformance export contracts.",
"moveSets": [
{
"id": "plugin-manifest",
"destinationOwner": "Sai",
"currentPaths": [
"plugins/incubating/sai-vn.plugin.json",
"plugins/incubating/sai-vn.plugin-advertisement.json"
],
"replacementProof": "Sai publishes sai.vn plugin manifest and advertisement from the Sai repo or sidecar daemon."
},
{
"id": "abi-conformance",
"destinationOwner": "Sai",
"currentPaths": [
"plugins/incubating/sai-vn.plugin-abi-fixture.json",
"web/fixtures/sai-vn-surface.json",
"web/fixtures/sai-vn-surface.conformance.json"
],
"replacementProof": "Sai owns VN/Ink ABI describe, validate, project, lower, measure, and apply conformance cases."
}
],
"contractInputs": [
"gamecult.eve.plugin.v1",
"gamecult.eve.plugin_advertisement.v1",
"gamecult.eve.plugin_abi.v1",
"gamecult.eve.plugin_abi_fixture.v1",
"gamecult.eve.conformance_export.v1"
],
"forbiddenImports": [
"Aetheria provider state",
"renderer-native projection internals",
"Unity plugin host internals",
"provider command acceptance or receipt authority"
],
"requiredExternalProofs": [
"Sai publishes the sai.vn sidecar ABI without depending on Eve source layout.",
"Sai owns VN/Ink story state, visual manifest, and story command fixtures.",
"Providers consume sai.vn through plugin advertisements and ABI operations.",
"Runtimes declare sai.vn projection support through runtime capability manifests."
]
}

View file

@ -14,6 +14,7 @@ $env:EVE_PARITY_OUTPUT = if ([System.IO.Path]::IsPathRooted($OutputDirectory)) {
Push-Location $projectRoot
try {
node .\tools\parity\run-parity.mjs
& (Join-Path $PSScriptRoot "run-plugin-handoff-smoke.ps1")
& (Join-Path $PSScriptRoot "run-aetheria-provider-handoff-smoke.ps1")
& (Join-Path $PSScriptRoot "run-eveunity-split-handoff-smoke.ps1")
& (Join-Path $PSScriptRoot "run-conformance-consumer-smoke.ps1")

View file

@ -0,0 +1,110 @@
param(
[string[]] $HandoffPaths = @(
"plugins\incubating\sai-vn.plugin-handoff.json",
"plugins\incubating\norn-graph.plugin-handoff.json"
)
)
$ErrorActionPreference = "Stop"
$projectRoot = Split-Path -Parent $PSScriptRoot
foreach ($handoffPath in $HandoffPaths) {
$absoluteHandoffPath = if ([System.IO.Path]::IsPathRooted($handoffPath)) {
$handoffPath
} else {
Join-Path $projectRoot $handoffPath
}
if (-not (Test-Path -LiteralPath $absoluteHandoffPath)) {
throw "Plugin handoff manifest not found: $absoluteHandoffPath"
}
$handoff = Get-Content -LiteralPath $absoluteHandoffPath -Raw | ConvertFrom-Json
if ($handoff.schema -ne "gamecult.eve.plugin_handoff.v1") {
throw "Unexpected plugin handoff schema in $($handoffPath): $($handoff.schema)"
}
if (-not $handoff.pluginId) {
throw "Plugin handoff missing pluginId: $handoffPath"
}
if (-not $handoff.ownerRepo) {
throw "Plugin handoff missing ownerRepo: $($handoff.pluginId)"
}
if ($handoff.currentHostRepo -ne "Eve") {
throw "Plugin handoff $($handoff.pluginId) has unexpected current host: $($handoff.currentHostRepo)"
}
foreach ($pathProperty in @("manifestPath", "advertisementPath", "abiFixturePath")) {
$relativePath = $handoff.$pathProperty
if (-not $relativePath) {
throw "Plugin handoff $($handoff.pluginId) missing $pathProperty"
}
$absolutePath = Join-Path $projectRoot $relativePath
if (-not (Test-Path -LiteralPath $absolutePath)) {
throw "Plugin handoff $($handoff.pluginId) references missing $($pathProperty): $relativePath"
}
}
$manifest = Get-Content -LiteralPath (Join-Path $projectRoot $handoff.manifestPath) -Raw | ConvertFrom-Json
$advertisement = Get-Content -LiteralPath (Join-Path $projectRoot $handoff.advertisementPath) -Raw | ConvertFrom-Json
$abiFixture = Get-Content -LiteralPath (Join-Path $projectRoot $handoff.abiFixturePath) -Raw | ConvertFrom-Json
if ($manifest.pluginId -ne $handoff.pluginId) {
throw "Plugin handoff pluginId does not match manifest: $($handoff.pluginId) vs $($manifest.pluginId)"
}
if ($advertisement.pluginId -ne $handoff.pluginId) {
throw "Plugin handoff pluginId does not match advertisement: $($handoff.pluginId) vs $($advertisement.pluginId)"
}
if ($abiFixture.pluginId -ne $handoff.pluginId) {
throw "Plugin handoff pluginId does not match ABI fixture: $($handoff.pluginId) vs $($abiFixture.pluginId)"
}
if ($manifest.incubation.ownerRepo -ne $handoff.ownerRepo) {
throw "Plugin handoff $($handoff.pluginId) owner does not match manifest owner: $($manifest.incubation.ownerRepo)"
}
if ($manifest.incubation.splitTarget -ne $handoff.splitTarget) {
throw "Plugin handoff $($handoff.pluginId) split target does not match manifest: $($manifest.incubation.splitTarget)"
}
$operations = @($abiFixture.operations | ForEach-Object { $_.operation })
foreach ($operation in @("describe", "validate", "project", "lower", "measure", "apply")) {
if (-not ($operations -contains $operation)) {
throw "Plugin handoff $($handoff.pluginId) ABI fixture missing operation: $operation"
}
}
foreach ($moveSet in @($handoff.moveSets)) {
if ($moveSet.destinationOwner -ne $handoff.ownerRepo) {
throw "Plugin handoff $($handoff.pluginId) move set $($moveSet.id) has unexpected destination owner: $($moveSet.destinationOwner)"
}
if (-not $moveSet.replacementProof) {
throw "Plugin handoff $($handoff.pluginId) move set $($moveSet.id) missing replacement proof"
}
foreach ($relativePath in @($moveSet.currentPaths)) {
$absolutePath = Join-Path $projectRoot $relativePath
if (-not (Test-Path -LiteralPath $absolutePath)) {
throw "Plugin handoff $($handoff.pluginId) move set $($moveSet.id) references missing path: $relativePath"
}
}
}
foreach ($contract in @(
"gamecult.eve.plugin.v1",
"gamecult.eve.plugin_advertisement.v1",
"gamecult.eve.plugin_abi.v1",
"gamecult.eve.plugin_abi_fixture.v1",
"gamecult.eve.conformance_export.v1"
)) {
if (-not (@($handoff.contractInputs) -contains $contract)) {
throw "Plugin handoff $($handoff.pluginId) missing contract input: $contract"
}
}
foreach ($proof in @($handoff.requiredExternalProofs)) {
if (-not $proof) {
throw "Plugin handoff $($handoff.pluginId) contains an empty required external proof"
}
}
}
Write-Host "Plugin handoff smoke passed: $($HandoffPaths -join ', ')"

View file

@ -35,6 +35,8 @@ node $consumerScript $consumerExport `
--expect-fixture sai-vn `
--expect-plugin sai.vn `
--expect-plugin norn.graph `
--expect-plugin-handoff sai.vn `
--expect-plugin-handoff norn.graph `
--expect-plugin-operation sai.vn:describe `
--expect-plugin-operation sai.vn:validate `
--expect-plugin-operation sai.vn:project `

View file

@ -18,6 +18,7 @@ if (!exportDirectory) {
" --expect-split-target <id>",
" --expect-plugin-operation <pluginId:operation>",
" --expect-plugin-capability <pluginId:capability>",
" --expect-plugin-handoff <pluginId>",
" --expect-provider-surface <providerId:surfaceId>",
" --expect-provider-command <providerId:command>",
" --expect-provider-receipt-state <providerId:state>",
@ -130,6 +131,16 @@ function validateIndex(index, directory, expectations, errors) {
errors.push(`plugins:${expectation.pluginId}:capability:${expectation.capability}:missing`);
}
}
for (const expectedPlugin of expectations.pluginHandoffs) {
const plugin = plugins.find(candidate => candidate.pluginId === expectedPlugin);
if (!plugin) {
errors.push(`plugins:${expectedPlugin}:missing`);
continue;
}
if (!plugin.handoffPath) {
errors.push(`plugins:${expectedPlugin}:handoffPath:missing`);
}
}
for (const expectedProvider of expectations.providers) {
if (!providers.some(provider => provider.providerId === expectedProvider)) errors.push(`providers:${expectedProvider}:missing`);
}
@ -284,6 +295,7 @@ function parseArguments(args) {
plugins: [],
pluginOperations: [],
pluginCapabilities: [],
pluginHandoffs: [],
providers: [],
providerSurfaces: [],
providerCommands: [],
@ -310,6 +322,7 @@ function parseArguments(args) {
["--expect-split-target", expectations.splitTargets],
["--expect-plugin-operation", expectations.pluginOperations],
["--expect-plugin-capability", expectations.pluginCapabilities],
["--expect-plugin-handoff", expectations.pluginHandoffs],
["--expect-provider-surface", expectations.providerSurfaces],
["--expect-provider-command", expectations.providerCommands],
["--expect-provider-receipt-state", expectations.providerReceiptStates],
@ -339,6 +352,8 @@ function parseArguments(args) {
target.push(parsePluginExpectation(value, "operation"));
} else if (option === "--expect-plugin-capability") {
target.push(parsePluginExpectation(value, "capability"));
} else if (option === "--expect-plugin-handoff") {
target.push(value);
} else if (option === "--expect-provider-surface") {
target.push(parseProviderExpectation(value, "surfaceId"));
} else if (option === "--expect-provider-command") {

View file

@ -371,12 +371,15 @@
"schemaPath": "schemas/gamecult.eve.plugin.v1.schema.json",
"manifestPath": "plugins/incubating/sai-vn.plugin.json",
"abiFixturePath": "plugins/incubating/sai-vn.plugin-abi-fixture.json",
"handoffPath": "plugins/incubating/sai-vn.plugin-handoff.json",
"advertisementSchemaPath": "schemas/gamecult.eve.plugin_advertisement.v1.schema.json",
"advertisementPath": "plugins/incubating/sai-vn.plugin-advertisement.json",
"expectedPaths": [
"plugins/incubating/sai-vn.plugin.json",
"plugins/incubating/sai-vn.plugin-abi-fixture.json",
"plugins/incubating/sai-vn.plugin-advertisement.json"
"plugins/incubating/sai-vn.plugin-advertisement.json",
"plugins/incubating/sai-vn.plugin-handoff.json",
"scripts/run-plugin-handoff-smoke.ps1"
]
},
{
@ -392,12 +395,15 @@
"schemaPath": "schemas/gamecult.eve.plugin.v1.schema.json",
"manifestPath": "plugins/incubating/norn-graph.plugin.json",
"abiFixturePath": "plugins/incubating/norn-graph.plugin-abi-fixture.json",
"handoffPath": "plugins/incubating/norn-graph.plugin-handoff.json",
"advertisementSchemaPath": "schemas/gamecult.eve.plugin_advertisement.v1.schema.json",
"advertisementPath": "plugins/incubating/norn-graph.plugin-advertisement.json",
"expectedPaths": [
"plugins/incubating/norn-graph.plugin.json",
"plugins/incubating/norn-graph.plugin-abi-fixture.json",
"plugins/incubating/norn-graph.plugin-advertisement.json"
"plugins/incubating/norn-graph.plugin-advertisement.json",
"plugins/incubating/norn-graph.plugin-handoff.json",
"scripts/run-plugin-handoff-smoke.ps1"
]
},
{

View file

@ -462,6 +462,7 @@ async function evaluatePlugin(plugin, fixtureResults) {
schemaPath: plugin.schemaPath || "",
manifestPath: plugin.manifestPath || "",
abiFixturePath: plugin.abiFixturePath || "",
handoffPath: plugin.handoffPath || "",
abiOperations,
advertisementSchemaPath: plugin.advertisementSchemaPath || "",
advertisementPath: plugin.advertisementPath || "",
@ -1346,6 +1347,7 @@ function buildConformanceExport(report) {
graduationTrigger: plugin.graduationTrigger,
manifestPath: plugin.manifestPath,
advertisementPath: plugin.advertisementPath,
handoffPath: plugin.handoffPath,
abiFixturePath: plugin.abiFixturePath,
abiOperations: plugin.abiOperations || [],
optionalPlugins: plugin.optionalPlugins || [],