{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Production AI decision rule candidate schema", "description": "Candidate row contract. No row may be released until source mapping, review and rights gates pass.", "type": "object", "additionalProperties": false, "required": ["rule_id", "decision_job", "rule_kind", "priority", "outcome", "conditions", "questions", "options", "disqualifiers", "rejected_options", "evidence_required", "next_steps", "source_claim_ids", "source_reference_ids", "source_asset_id", "source_url", "source_commit_sha", "source_data_hash", "source_version", "review_status", "verified_at", "limitations", "status"], "properties": { "rule_id": {"type": "string", "minLength": 1}, "decision_job": {"const": "PATH_SELECTION"}, "rule_kind": {"type": "string", "enum": ["DECISION", "ADVISORY", "STOP_CONDITION"]}, "priority": {"type": "integer", "minimum": 0}, "outcome": {"type": "string", "minLength": 1}, "conditions": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["group", "criterion_id", "operator", "value"], "properties": { "group": {"type": "string", "minLength": 1}, "criterion_id": {"type": "string", "minLength": 1}, "operator": {"type": "string", "enum": ["equals", "not_equals", "in", "not_in"]}, "value": {} } } }, "questions": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["criterion_id", "question", "allowed_answers"], "properties": { "criterion_id": {"type": "string", "minLength": 1}, "question": {"type": "string", "minLength": 1}, "allowed_answers": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}} } } }, "options": {"type": "array", "items": {"type": "string", "minLength": 1}}, "disqualifiers": {"type": "array", "items": {"type": "string", "minLength": 1}}, "rejected_options": {"type": "array", "items": {"type": "string", "minLength": 1}}, "evidence_required": {"type": "array", "items": {"type": "string", "minLength": 1}}, "next_steps": {"type": "array", "items": {"type": "string", "minLength": 1}}, "source_claim_ids": {"type": "array", "items": {"type": "string", "minLength": 1}}, "source_reference_ids": {"type": "array", "items": {"type": "string", "minLength": 1}}, "source_asset_id": {"type": "string", "minLength": 1}, "source_url": {"type": "string", "format": "uri", "pattern": "^https://"}, "source_commit_sha": {"type": "string", "pattern": "^[0-9a-f]{40}$"}, "source_data_hash": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}, "source_version": {"type": "string", "minLength": 1}, "review_status": {"type": "string", "enum": ["REVIEWED", "DISPUTED"]}, "verified_at": {"type": "string", "format": "date-time"}, "limitations": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}}, "status": {"type": "string", "enum": ["ACTIVE", "DISPUTED", "DEPRECATED"]} } }