{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://devrunbook.local/schemas/release-evidence.schema.json", "title": "DevRunbook Release Evidence Matrix", "type": "object", "additionalProperties": false, "required": ["schemaVersion", "product", "release", "summary", "requirements", "gates", "artifacts"], "properties": { "schemaVersion": {"const": 1}, "product": {"const": "DevRunbook"}, "release": { "type": "object", "additionalProperties": false, "required": ["version", "commit", "generatedAt", "overallStatus"], "properties": { "version": {"type": "string", "minLength": 1, "maxLength": 80}, "commit": {"type": "string", "minLength": 7, "maxLength": 80}, "generatedAt": {"type": "string", "format": "date-time"}, "overallStatus": {"enum": ["passed", "failed", "blocked", "accepted-exception"]} } }, "summary": { "type": "object", "additionalProperties": false, "required": ["passed", "failed", "blocked", "notApplicable", "acceptedExceptions"], "properties": { "passed": {"type": "integer", "minimum": 0}, "failed": {"type": "integer", "minimum": 0}, "blocked": {"type": "integer", "minimum": 0}, "notApplicable": {"type": "integer", "minimum": 0}, "acceptedExceptions": {"type": "integer", "minimum": 0} } }, "requirements": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["requirementId", "status", "commit", "testEvidence", "browserEvidence", "exceptionId", "notes"], "properties": { "requirementId": {"type": "string", "pattern": "^(FR|NFR)-[A-Z]+-[0-9]{3}$"}, "status": {"enum": ["passed", "failed", "blocked", "not-applicable", "accepted-exception"]}, "commit": {"type": ["string", "null"], "maxLength": 80}, "testEvidence": {"type": "array", "items": {"type": "string", "minLength": 1, "maxLength": 1000}}, "browserEvidence": {"type": "array", "items": {"type": "string", "minLength": 1, "maxLength": 1000}}, "exceptionId": {"type": ["string", "null"], "maxLength": 100}, "notes": {"type": "string", "maxLength": 5000} } } }, "gates": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["id", "status", "evidence"], "properties": { "id": {"type": "string", "pattern": "^[a-z][a-z0-9-]*$"}, "status": {"enum": ["passed", "failed", "blocked", "not-applicable", "accepted-exception"]}, "evidence": {"type": "array", "items": {"type": "string", "minLength": 1, "maxLength": 1000}} } } }, "artifacts": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["name", "path", "sha256"], "properties": { "name": {"type": "string", "minLength": 1, "maxLength": 200}, "path": {"type": "string", "minLength": 1, "maxLength": 1000}, "sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"} } } } } }