Tighten conformance export record schema

This commit is contained in:
Meta Vens 2026-07-09 02:46:53 +01:00
commit 05e506ef60
5 changed files with 320 additions and 5 deletions

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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,

View file

@ -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 || [],