Skip to main content
Version: Next

DifferenceReport Schema

Schema and identical/differing examples.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projectbeacon.example/schemas/diff.json",
"title": "DifferenceReport",
"type": "object",
"additionalProperties": false,
"required": [
"version",
"benchmark",
"job_spec_hash",
"comparisons",
"generated_at",
"attester"
],
"properties": {
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+$" },
"benchmark": {
"type": "object",
"additionalProperties": false,
"required": ["name", "id"],
"properties": {
"name": { "type": "string", "minLength": 1, "maxLength": 200 },
"id": { "type": "string", "minLength": 1, "maxLength": 200 }
}
},
"job_spec_hash": { "type": "string", "pattern": "^(sha256|blake3):[A-Fa-f0-9]{64,}$" },
"receipts": {
"type": "array",
"description": "Receipts included in this comparison (by transparency-log reference or CID).",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["region", "receipt_ref"],
"properties": {
"region": { "type": "string", "pattern": "^[A-Z]{2}$" },
"receipt_ref": { "type": "string", "minLength": 3, "maxLength": 500 }
}
},
"minItems": 2
},
"comparisons": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["lhs_region", "rhs_region", "similarity", "diff_summary"],
"properties": {
"lhs_region": { "type": "string", "pattern": "^[A-Z]{2}$" },
"rhs_region": { "type": "string", "pattern": "^[A-Z]{2}$" },
"similarity": { "type": "number", "minimum": 0, "maximum": 1 },
"diff_summary": { "type": "string", "maxLength": 5000 },
"auto_diff_algo": { "type": "string", "default": "diff-match-patch" },
"auto_diff_fragment": { "type": "string", "maxLength": 20000 },
"classification": {
"type": "string",
"enum": ["none", "cosmetic", "content", "content-high-salience"]
},
"human_notes": { "type": "string", "maxLength": 5000 },
"lhs_output_hash": { "type": "string", "pattern": "^(sha256|blake3):[A-Fa-f0-9]{64,}$" },
"rhs_output_hash": { "type": "string", "pattern": "^(sha256|blake3):[A-Fa-f0-9]{64,}$" }
}
}
},
"generated_at": { "type": "string", "format": "date-time" },
"attester": {
"type": "object",
"additionalProperties": false,
"required": ["org", "jurisdiction", "pubkey_fingerprint"],
"properties": {
"org": { "type": "string", "minLength": 1, "maxLength": 200 },
"jurisdiction": { "type": "string", "pattern": "^[A-Z]{2}$" },
"pubkey_fingerprint": { "type": "string", "pattern": "^(sha256|blake3):[A-Fa-f0-9]{64,}$" }
}
},
"auto_diff_report_hash": {
"type": "string",
"pattern": "^(sha256|blake3):[A-Fa-f0-9]{64,}$",
"description": "Hash of the raw automated diff JSON this report reviewed."
},
"status": {
"type": "string",
"enum": ["verified", "inconclusive", "rejected"],
"default": "verified"
}
}
}