{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.invalid/mcu-ir/mlir_batch_result.schema.json", "title": "Pinned ONNX-MLIR batch model result", "type": "object", "additionalProperties": true, "required": [ "schema_version", "model_id", "config_path", "config_sha256", "run_id", "started_at", "ended_at", "overall_status", "tool_versions", "variants", "forbidden_operations_performed" ], "properties": { "schema_version": {"const": "1.0"}, "model_id": {"type": "string", "pattern": "^[A-Z]{2}[0-9]{2}$"}, "config_path": {"type": "string", "minLength": 1}, "config_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "run_id": {"type": "string", "minLength": 1}, "started_at": {"type": "string", "format": "date-time"}, "ended_at": {"type": "string", "format": "date-time"}, "overall_status": {"enum": ["PASS", "PARTIAL", "FAIL", "BLOCKED"]}, "tool_versions": {"type": "object"}, "forbidden_operations_performed": {"const": []}, "variants": { "type": "object", "additionalProperties": false, "required": ["fp32", "public_quantized"], "properties": { "fp32": {"$ref": "#/$defs/variant_result"}, "public_quantized": {"$ref": "#/$defs/variant_result"} } } }, "$defs": { "file_record": { "type": "object", "required": ["path", "exists", "sha256", "bytes"], "properties": { "path": {"type": "string"}, "exists": {"type": "boolean"}, "sha256": {"type": ["string", "null"]}, "bytes": {"type": ["integer", "null"]} } }, "stage_result": { "type": "object", "additionalProperties": true, "required": [ "stage", "status", "failure_code", "command", "command_argv", "execution_argv", "working_directory", "inputs", "outputs", "started_at", "ended_at", "duration_sec", "exit_code", "timed_out", "stdout_log", "stderr_log", "resource_log", "patch", "validation", "fingerprint", "reused_from_previous_run" ], "properties": { "stage": {"type": "string"}, "status": {"enum": ["PASS", "PASS_WITH_PATCH", "PARTIAL", "BLOCKED", "FAIL"]}, "failure_code": {"type": ["string", "null"]}, "command": {"type": "string"}, "command_argv": {"type": "array", "items": {"type": "string"}}, "execution_argv": {"type": "array", "items": {"type": "string"}}, "working_directory": {"type": "string"}, "inputs": {"type": "array", "items": {"$ref": "#/$defs/file_record"}}, "outputs": {"type": "array", "items": {"$ref": "#/$defs/file_record"}}, "started_at": {"type": "string", "format": "date-time"}, "ended_at": {"type": "string", "format": "date-time"}, "duration_sec": {"type": "number", "minimum": 0}, "exit_code": {"type": ["integer", "null"]}, "timed_out": {"type": "boolean"}, "stdout_log": {"type": "string"}, "stderr_log": {"type": "string"}, "resource_log": {"type": "string"}, "patch": {"type": ["string", "null"]}, "validation": {"type": "object"}, "fingerprint": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "reused_from_previous_run": {"type": "boolean"} } }, "variant_result": { "type": "object", "additionalProperties": true, "required": [ "status", "failure_code", "required_path_status", "input", "stages", "quantization" ], "properties": { "status": {"enum": ["PASS", "PARTIAL", "FAIL", "BLOCKED"]}, "failure_code": {"type": ["string", "null"]}, "required_path_status": {"enum": ["PASS", "PARTIAL", "FAIL", "BLOCKED"]}, "input": {"$ref": "#/$defs/file_record"}, "stages": {"type": "array", "items": {"$ref": "#/$defs/stage_result"}}, "quantization": {"type": "object"} } } } }