diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 849d2ff..8a39fb8 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -42,11 +42,11 @@ jobs: done exit $failed - - name: Guardrail: detect duplicate schema $id values + - name: "Guardrail: detect duplicate schema $id values" run: | python3 scripts/check_duplicate_schema_ids.py - - name: Guardrail: control-plane canonical wrapper $id resolution + - name: "Guardrail: control-plane canonical wrapper $id resolution" run: | python3 scripts/validate_control_plane_wrapper_ids.py diff --git a/schemas/CompressionEvaluation.json b/schemas/CompressionEvaluation.json index 0bb8927..a519be8 100644 --- a/schemas/CompressionEvaluation.json +++ b/schemas/CompressionEvaluation.json @@ -79,8 +79,14 @@ "properties": { "novelty": { "type": "number", "description": "Primary novelty signal." }, "redundancy": { "type": "number", "description": "Primary redundancy signal." }, + "supportingMetrics": { + "type": ["object", "null"], + "additionalProperties": { "type": "number" }, + "description": "Optional named supporting metrics (e.g. support, stability)." + }, "confidence": { "type": ["number", "null"], "description": "Optional confidence score." }, - "warnings": { "type": "array", "items": { "type": "string" }, "description": "Optional warnings." } + "warnings": { "type": "array", "items": { "type": "string" }, "description": "Optional warnings." }, + "normalizationVersion": { "type": ["string", "null"], "description": "Optional version of the metric normalization applied." } } }, "policyDecisionRef": { @@ -98,6 +104,31 @@ "pattern": "^urn:srcos:prov:", "description": "Optional provenance reference." }, + "truthSurfaceRef": { + "type": ["string", "null"], + "pattern": "^urn:srcos:truth-surface:", + "description": "Optional reference to the truth surface this evaluation is grounded against." + }, + "deltaSurfaceRef": { + "type": ["string", "null"], + "pattern": "^urn:srcos:delta-surface:", + "description": "Optional reference to the delta surface produced by this evaluation." + }, + "integrity": { + "type": ["object", "null"], + "additionalProperties": false, + "description": "Optional signed integrity envelope for the evaluation record.", + "properties": { + "evaluationHash": { "type": "string", "description": "Content hash of the evaluation." }, + "signer": { "type": ["string", "null"], "description": "Identity of the signer." }, + "signature": { "type": ["string", "null"], "description": "Detached signature over the evaluation hash." }, + "signedAt": { "type": ["string", "null"], "format": "date-time", "description": "Signing timestamp." } + } + }, + "notes": { + "type": ["string", "null"], + "description": "Optional human-readable notes." + }, "createdAt": { "type": "string", "format": "date-time",