{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://baseline-harness.dev/spec/schemas/project-exception.schema.json", "title": "Project Exception", "description": "Документированное обоснованное исключение, утверждаемое владельцем (D-002, D-008). Отличие от N/A: N/A — требование неприменимо, EXEMPT — применимо, но снято обоснованным решением. Не проходит: исключение без области, причины, ссылки на решение владельца или условия пересмотра.", "type": "object", "additionalProperties": false, "required": ["id", "requirement", "scope", "reason", "decision_ref", "review_condition"], "properties": { "id": { "type": "string", "pattern": "^ex-[a-z0-9]+(-[a-z0-9]+)*$", "description": "Постоянный идентификатор (D-031)." }, "requirement": { "type": "string", "pattern": "^req-[a-z0-9]+(-[a-z0-9]+)*$" }, "scope": { "type": "object", "additionalProperties": false, "required": ["kind", "description"], "properties": { "kind": { "enum": ["path", "capability", "tool", "other"] }, "paths": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }, "description": { "type": "string", "minLength": 10 } }, "allOf": [ { "if": { "properties": { "kind": { "const": "path" } }, "required": ["kind"] }, "then": { "required": ["paths"], "properties": { "paths": true } } } ] }, "reason": { "type": "string", "minLength": 10 }, "decision_ref": { "type": "string", "minLength": 3, "description": "Ссылка на утверждённое решение владельца (например, решение Backlog D-0xx). Без неё исключение неутверждённое." }, "review_condition": { "type": "string", "minLength": 3 }, "expires": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "status": { "enum": ["active", "revoked", "expired"], "default": "active", "description": "Состояние исключения; не смешивается с жизненным циклом требования." } } }