From 05e506ef60ecce8439a8e1a674f16e127420317f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 9 Jul 2026 02:46:53 +0100 Subject: [PATCH] Tighten conformance export record schema --- docs/eve-migration-roadmap.md | 5 + docs/parity-testing-harness.md | 5 + ...cult.eve.conformance_export.v1.schema.json | 260 +++++++++++++++++- tools/conformance/consume-export.mjs | 53 ++++ tools/parity/run-parity.mjs | 2 +- 5 files changed, 320 insertions(+), 5 deletions(-) diff --git a/docs/eve-migration-roadmap.md b/docs/eve-migration-roadmap.md index db6e62c..d7cbace 100644 --- a/docs/eve-migration-roadmap.md +++ b/docs/eve-migration-roadmap.md @@ -299,6 +299,11 @@ Recently cut: data in addition to the generic `capabilityGaps[]` ledger. Runtime owners can consume provider id, surface id, target id, owner repo, runtime id, split target, and runtime status without scraping prose or gap strings. +- The conformance export schema and consumer smoke now require minimum typed + item shapes for plugins, providers, runtimes, and split targets. Owner repos + can rely on exported ids, owners, statuses, split targets, manifest or + advertisement paths, feature/plugin arrays, and blocker/proof arrays instead + of treating those sections as untyped bags. - EveUnity now has a pending Unity scene handoff at `runtimes/incubating/eve-unity-scene/eveunity-scene-split-handoff.json`. The active `unity-uitoolkit` runtime remains a semantic UI surface lowerer; diff --git a/docs/parity-testing-harness.md b/docs/parity-testing-harness.md index 90905c2..6018ec0 100644 --- a/docs/parity-testing-harness.md +++ b/docs/parity-testing-harness.md @@ -95,6 +95,11 @@ projection. It summarizes pack health, plugin ABI/capability claims, provider surfaces/commands/receipts, runtime feature/capture/command coverage, split readiness, and handoff counts. This is derived evidence for consumers, not a new source of truth. +The export schema and consumer smoke now require minimum record shapes for +plugins, providers, runtimes, and split targets. Owner repos should be able to +depend on ids, owners, statuses, split targets, manifest or advertisement paths, +feature/plugin arrays, and blocker/proof arrays without reading Eve's parity +manifest. Capability gaps are exported as `capabilityGaps[]`. They are derived from missing plugin/provider/runtime evidence, declared unsupported plugin diff --git a/schemas/gamecult.eve.conformance_export.v1.schema.json b/schemas/gamecult.eve.conformance_export.v1.schema.json index a229209..ca21073 100644 --- a/schemas/gamecult.eve.conformance_export.v1.schema.json +++ b/schemas/gamecult.eve.conformance_export.v1.schema.json @@ -155,16 +155,268 @@ } }, "plugins": { - "type": "array" + "type": "array", + "items": { + "type": "object", + "required": [ + "pluginId", + "status", + "ownerRepo", + "splitTarget", + "manifestPath", + "advertisementPath", + "abiFixturePath", + "capabilities" + ], + "properties": { + "pluginId": { + "type": "string", + "minLength": 1 + }, + "status": { + "type": "string", + "minLength": 1 + }, + "ownerRepo": { + "type": "string", + "minLength": 1 + }, + "splitTarget": { + "type": "string", + "minLength": 1 + }, + "manifestPath": { + "type": "string", + "minLength": 1 + }, + "advertisementPath": { + "type": "string", + "minLength": 1 + }, + "handoffPath": { + "type": "string" + }, + "handoffExportPath": { + "type": "string" + }, + "abiFixturePath": { + "type": "string", + "minLength": 1 + }, + "abiOperations": { + "type": "array" + }, + "runtimeBoundary": { + "type": "object" + }, + "optionalPlugins": { + "type": "array" + }, + "capabilities": { + "type": "array" + } + }, + "additionalProperties": true + } }, "providers": { - "type": "array" + "type": "array", + "items": { + "type": "object", + "required": [ + "providerId", + "status", + "ownerRepo", + "advertisementPath", + "surfaces", + "commands", + "surfaceContracts" + ], + "properties": { + "providerId": { + "type": "string", + "minLength": 1 + }, + "status": { + "type": "string", + "minLength": 1 + }, + "ownerRepo": { + "type": "string", + "minLength": 1 + }, + "advertisementPath": { + "type": "string", + "minLength": 1 + }, + "scenarioPath": { + "type": "string" + }, + "handoffPath": { + "type": "string" + }, + "handoffExportPath": { + "type": "string" + }, + "scenarioId": { + "type": "string" + }, + "receiptStates": { + "type": "array" + }, + "surfaces": { + "type": "array" + }, + "surfaceKinds": { + "type": "array" + }, + "surfaceContracts": { + "type": "array" + }, + "commands": { + "type": "array" + }, + "pluginRequirements": { + "type": "array" + } + }, + "additionalProperties": true + } }, "runtimes": { - "type": "array" + "type": "array", + "items": { + "type": "object", + "required": [ + "runtimeId", + "status", + "ownerRepo", + "splitTarget", + "supportedFeatures", + "supportedPlugins", + "unsupportedPlugins", + "captureStatus", + "worldSurfaceLowering" + ], + "properties": { + "runtimeId": { + "type": "string", + "minLength": 1 + }, + "status": { + "type": "string", + "minLength": 1 + }, + "ownerRepo": { + "type": "string", + "minLength": 1 + }, + "splitTarget": { + "type": "string", + "minLength": 1 + }, + "supportedFeatures": { + "type": "array" + }, + "supportedPlugins": { + "type": "array" + }, + "unsupportedPlugins": { + "type": "array" + }, + "capabilityManifestPath": { + "type": "string" + }, + "capabilityManifestErrors": { + "type": "array" + }, + "splitHandoffPath": { + "type": "string" + }, + "splitHandoffExportPath": { + "type": "string" + }, + "commandTransportSchema": { + "type": "string" + }, + "captureStatus": { + "type": "string", + "minLength": 1 + }, + "lifecycle": { + "type": "object" + }, + "worldSurfaceLowering": { + "type": "array" + } + }, + "additionalProperties": true + } }, "splitTargets": { - "type": "array" + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "ownerRepo", + "repoRole", + "status", + "runtimes", + "runtimeStatuses", + "requiredRuntimeStatuses", + "requiredFeatures", + "requiredPlugins", + "proofs", + "pendingProofs", + "blockers" + ], + "properties": { + "id": { + "type": "string", + "minLength": 1 + }, + "ownerRepo": { + "type": "string", + "minLength": 1 + }, + "repoRole": { + "type": "string" + }, + "status": { + "type": "string", + "minLength": 1 + }, + "declaredStatus": { + "type": "string" + }, + "runtimes": { + "type": "array" + }, + "runtimeStatuses": { + "type": "object" + }, + "requiredRuntimeStatuses": { + "type": "array" + }, + "requiredFeatures": { + "type": "array" + }, + "requiredPlugins": { + "type": "array" + }, + "proofs": { + "type": "array" + }, + "pendingProofs": { + "type": "array" + }, + "blockers": { + "type": "array" + } + }, + "additionalProperties": true + } } }, "additionalProperties": true diff --git a/tools/conformance/consume-export.mjs b/tools/conformance/consume-export.mjs index e6d1018..e998704 100644 --- a/tools/conformance/consume-export.mjs +++ b/tools/conformance/consume-export.mjs @@ -123,6 +123,11 @@ function validateIndex(index, directory, expectations, errors) { const capabilityGaps = Array.isArray(index.capabilityGaps) ? index.capabilityGaps : []; const worldSurfaceLoweringGaps = Array.isArray(index.worldSurfaceLoweringGaps) ? index.worldSurfaceLoweringGaps : []; + validatePluginRecords(plugins, errors); + validateProviderRecords(providers, errors); + validateRuntimeRecords(runtimes, errors); + validateSplitTargetRecords(splitTargets, errors); + if (expectations.conformanceHandoff && !index.conformanceHandoffPath) { errors.push("conformanceHandoffPath:missing"); } @@ -566,6 +571,54 @@ function validateWorldSurfaceLoweringGaps(gaps, errors) { } } +function validatePluginRecords(plugins, errors) { + for (const plugin of plugins) { + const label = `plugins:${plugin.pluginId || "unknown"}`; + for (const field of ["pluginId", "status", "ownerRepo", "splitTarget", "manifestPath", "advertisementPath", "abiFixturePath"]) { + if (!plugin?.[field]) errors.push(`${label}:${field}:missing`); + } + for (const field of ["capabilities", "abiOperations", "optionalPlugins"]) { + if (!Array.isArray(plugin?.[field])) errors.push(`${label}:${field}:expected array`); + } + } +} + +function validateProviderRecords(providers, errors) { + for (const provider of providers) { + const label = `providers:${provider.providerId || "unknown"}`; + for (const field of ["providerId", "status", "ownerRepo", "advertisementPath"]) { + if (!provider?.[field]) errors.push(`${label}:${field}:missing`); + } + for (const field of ["surfaces", "surfaceKinds", "surfaceContracts", "commands", "pluginRequirements", "receiptStates"]) { + if (!Array.isArray(provider?.[field])) errors.push(`${label}:${field}:expected array`); + } + } +} + +function validateRuntimeRecords(runtimes, errors) { + for (const runtime of runtimes) { + const label = `runtimes:${runtime.runtimeId || "unknown"}`; + for (const field of ["runtimeId", "status", "ownerRepo", "splitTarget", "captureStatus"]) { + if (!runtime?.[field]) errors.push(`${label}:${field}:missing`); + } + for (const field of ["supportedFeatures", "supportedPlugins", "unsupportedPlugins", "capabilityManifestErrors", "worldSurfaceLowering"]) { + if (!Array.isArray(runtime?.[field])) errors.push(`${label}:${field}:expected array`); + } + } +} + +function validateSplitTargetRecords(splitTargets, errors) { + for (const target of splitTargets) { + const label = `splitTargets:${target.id || "unknown"}`; + for (const field of ["id", "ownerRepo", "status", "runtimeStatuses"]) { + if (!target?.[field]) errors.push(`${label}:${field}:missing`); + } + for (const field of ["runtimes", "requiredRuntimeStatuses", "requiredFeatures", "requiredPlugins", "proofs", "pendingProofs", "blockers"]) { + if (!Array.isArray(target?.[field])) errors.push(`${label}:${field}:expected array`); + } + } +} + function capabilityGapText(gap) { return [ gap.kind, diff --git a/tools/parity/run-parity.mjs b/tools/parity/run-parity.mjs index bf76a82..7e930f0 100644 --- a/tools/parity/run-parity.mjs +++ b/tools/parity/run-parity.mjs @@ -1636,7 +1636,7 @@ function buildConformanceExport(report) { splitHandoffExportPath: makeHandoffExportPath("runtime", runtime.id, runtime.splitHandoffPath || ""), commandTransportSchema: runtime.commandTransportSmoke?.schema || "", captureStatus: runtime.capture?.status || "", - lifecycle: runtime.lifecycle, + ...(runtime.lifecycle ? { lifecycle: runtime.lifecycle } : {}), worldSurfaceLowering: runtime.worldSurfaceLowering || [], })), splitTargets: report.splitTargets || [],