{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://kri.local/agent-harness/profile.schema.json", "title": "KRI Agent Harness Project Profile", "type": "object", "additionalProperties": false, "required": [ "schema_version", "project", "stack" ], "properties": { "schema_version": { "const": 1 }, "project": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "type", "layer", "legacy" ], "properties": { "id": { "$ref": "#/$defs/slug" }, "name": { "type": "string", "minLength": 1 }, "type": { "enum": [ "library", "scaffold-cli", "shared-service", "internal-service", "requested-project" ] }, "layer": { "enum": [ "frontend", "backend", "fullstack", "standalone" ] }, "legacy": { "type": "boolean" } } }, "stack": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/stack_id" } }, "shared_contracts": { "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "provides": { "$ref": "#/$defs/contract_list" }, "consumes": { "$ref": "#/$defs/contract_list" } } }, "databases": { "type": "array", "uniqueItems": true, "items": { "type": "object", "additionalProperties": false, "required": [ "id", "engine", "role" ], "properties": { "id": { "$ref": "#/$defs/slug" }, "engine": { "enum": [ "mysql", "mssql" ] }, "role": { "$ref": "#/$defs/slug" }, "access": { "enum": [ "read-only", "read-write" ] } } } }, "migration": { "type": "object", "additionalProperties": false, "required": [ "status", "target_stack", "strategy" ], "properties": { "status": { "enum": [ "planned", "active", "paused" ] }, "target_stack": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/stack_id" } }, "strategy": { "const": "staged" } } } }, "$defs": { "slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }, "stack_id": { "enum": [ "typescript", "react", "nextjs", "java-springboot", "classic-asp", "dotnet-csharp", "python", "ai-llm" ] }, "contract_id": { "enum": [ "kri-front-common", "kri-ui-registry", "kri-common" ] }, "contract_list": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/contract_id" } } } }