Type EveUnity capture contract

This commit is contained in:
Meta Vens 2026-07-09 09:57:17 +01:00
commit ceb6e005c4
7 changed files with 140 additions and 1 deletions

View file

@ -1250,6 +1250,18 @@
"capture": {
"ownerRepo": "EveUnity",
"status": "pending-editor-capture",
"captureContract": {
"ownerRepo": "EveUnity",
"runtimeId": "unity-uitoolkit",
"captureKind": "unity-editor-or-batchmode-png",
"artifactKind": "png",
"artifactPattern": "artifacts/eveunity-uitoolkit-capture/{stamp}/unity-uitoolkit.png",
"conformanceAttachment": "runtime.captureArtifacts[]",
"requiredProvider": "aetheria",
"requiredSurface": "aetheria.daemon.game",
"authority": "Capture observes runtime projection only; provider state, command acceptance, and receipts stay provider-owned.",
"publishProof": "Unity editor or batchmode capture artifact is attached to the runtime conformance report from EveUnity."
},
"evidencePaths": [],
"pendingProofs": [
"Unity batchmode or editor capture artifact attached to the runtime conformance report."

View file

@ -1254,6 +1254,7 @@ function compareRuntimeLifecycleClaims(expectedLifecycle, actualLifecycle, manif
errors.push(...missingMembers(expected.pendingProofs || [], actual.pendingProofs || [], `${label}.pendingProofs`));
errors.push(...compareReleaseContract(expected.releaseContract, actual.releaseContract, `${label}.releaseContract`));
errors.push(...compareTestContract(expected.testContract, actual.testContract, `${label}.testContract`));
errors.push(...compareCaptureContract(expected.captureContract, actual.captureContract, `${label}.captureContract`));
for (const evidencePath of actual.evidencePaths || []) {
if (!existsSync(path.join(repoRoot, evidencePath))) {
@ -1264,6 +1265,29 @@ function compareRuntimeLifecycleClaims(expectedLifecycle, actualLifecycle, manif
return errors;
}
function compareCaptureContract(expected, actual, label) {
const errors = [];
if (!expected) return errors;
if (!actual) return [`${label}:missing`];
for (const key of [
"ownerRepo",
"runtimeId",
"captureKind",
"artifactKind",
"artifactPattern",
"conformanceAttachment",
"requiredProvider",
"requiredSurface",
"authority",
"publishProof",
]) {
if ((expected[key] || "") !== (actual[key] || "")) {
errors.push(`${label}.${key}:expected ${expected[key] || ""} got ${actual[key] || ""}`);
}
}
return errors;
}
function compareTestContract(expected, actual, label) {
const errors = [];
if (!expected) return errors;