{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://sneakoscope.local/schemas/architecture-baseline.v1.schema.json",
  "title": "SKS Architecture Baseline V1",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema",
    "missionId",
    "required",
    "capturedBeforeMutation",
    "worktreeFingerprintHash",
    "graphHash",
    "policyHash",
    "analyzerVersion",
    "serializerVersion",
    "metrics",
    "findings",
    "canonicalPayloadHash",
    "seal"
  ],
  "properties": {
    "schema": { "const": "sks.architecture-baseline.v1" },
    "missionId": { "type": "string", "minLength": 1 },
    "routeId": { "type": "string" },
    "taskProfile": { "type": "string" },
    "required": { "const": true },
    "capturedAt": { "type": "string", "minLength": 1 },
    "capturedBeforeMutation": { "const": true },
    "repositoryHead": { "type": ["string", "null"] },
    "worktreeFingerprintHash": { "type": "string", "minLength": 1 },
    "preexistingDirtyPaths": { "type": "array", "items": { "type": "string" } },
    "graphHash": { "type": "string", "minLength": 1 },
    "topologyHash": { "type": "string" },
    "ssotInventoryHash": { "type": "string" },
    "voxelContextHash": { "type": "string" },
    "policyHash": { "type": "string", "minLength": 1 },
    "analyzerVersion": { "type": "string", "minLength": 1 },
    "serializerVersion": { "type": "string", "minLength": 1 },
    "scope": { "type": "object" },
    "metrics": { "type": "object" },
    "findings": { "type": "array" },
    "viewHashes": { "type": "object" },
    "canonicalPayloadHash": { "type": "string", "minLength": 1 },
    "seal": { "type": "string", "minLength": 1 }
  }
}
