{ "$id": "doxa-framework-mapping-v1", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "One record per named framework criterion. Retain disagreement, source version and contextual evidence. Comparative criteria require justified comparator packets. A combined label is never inferred by majority across frameworks.", "properties": { "case_id": { "type": "string" }, "comparative_criterion": { "type": "boolean" }, "comparison_packet_ids": { "items": { "type": "string" }, "type": "array" }, "decision": { "enum": [ "present", "absent", "insufficient_context", "disputed_mapping" ] }, "disagrees_with_mapping_ids": { "items": { "type": "string" }, "type": "array" }, "evidence": { "items": { "description": "Offsets use the explicit record offset_unit in preserved source_record.text; runtime validation checks equality and bounds.", "properties": { "end": { "minimum": 1, "type": "integer" }, "role": { "enum": [ "supporting", "countervailing", "context" ] }, "source_record_id": { "minLength": 1, "type": "string" }, "start": { "minimum": 0, "type": "integer" }, "text": { "minLength": 1, "type": "string" } }, "required": [ "role", "start", "end", "text" ], "type": "object" }, "type": "array" }, "framework": { "properties": { "criterion_reference": { "minLength": 1, "type": "string" }, "document_url": { "format": "uri", "type": "string" }, "id": { "enum": [ "IHRA", "JDA", "Nexus" ] }, "version_or_snapshot": { "minLength": 1, "type": "string" } }, "required": [ "id", "version_or_snapshot", "document_url", "criterion_reference" ], "type": "object" }, "id": { "type": "string" }, "offset_unit": { "enum": [ "unicode_code_points", "utf16_code_units" ] }, "provenance": { "allOf": [ { "if": { "properties": { "kind": { "const": "upstream_human_consensus" } } }, "then": { "required": [ "process_source_url", "upstream_revision", "upstream_annotation_record_id", "upstream_annotation_sha256" ] } } ], "properties": { "identity_assurance": { "enum": [ "self_reported", "upstream_documented", "externally_verified" ] }, "independence_declared": { "type": "boolean" }, "kind": { "enum": [ "ai_provisional", "human_single", "upstream_human_consensus", "adjudicated" ] }, "process_source_url": { "format": "uri", "type": "string" }, "reviewed_at": { "format": "date-time", "type": "string" }, "reviewer_id": { "minLength": 1, "type": "string" }, "reviewer_type": { "enum": [ "ai", "human", "upstream_process" ] }, "upstream_annotation_record_id": { "minLength": 1, "type": "string" }, "upstream_annotation_sha256": { "pattern": "^[0-9a-f]{64}$", "type": "string" }, "upstream_revision": { "minLength": 1, "type": "string" } }, "required": [ "kind", "reviewer_id", "reviewer_type", "reviewed_at", "independence_declared" ], "type": "object" }, "rationale": { "minLength": 1, "type": "string" }, "source_record_id": { "type": "string" }, "source_text_sha256": { "type": "string" } }, "required": [ "id", "case_id", "framework", "decision", "rationale", "evidence", "provenance", "source_record_id", "source_text_sha256", "offset_unit", "comparative_criterion", "disagrees_with_mapping_ids" ], "type": "object" }