{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Knowledge Record Metadata", "type": "object", "required": [ "id", "title", "domain", "tags", "status", "severity", "created_at", "updated_at", "applies_to" ], "properties": { "id": { "type": "string", "pattern": "^KB-[A-Z]+-[0-9]{3}$" }, "title": { "type": "string", "minLength": 8 }, "domain": { "type": "string", "enum": ["infrastructure", "security", "plugin-dev", "process", "ci-cd"] }, "tags": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "status": { "type": "string", "enum": ["active", "deprecated", "draft"] }, "severity": { "type": "string", "enum": ["low", "medium", "high", "critical"] }, "created_at": { "type": "string", "format": "date" }, "updated_at": { "type": "string", "format": "date" }, "applies_to": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "related_records": { "type": "array", "items": { "type": "string", "pattern": "^KB-[A-Z]+-[0-9]{3}$" } } }, "additionalProperties": true }