{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-contract-verify.v1.json",
  "title": "Workspai Workspace Contract Verify Evidence",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schemaVersion",
    "generatedAt",
    "status",
    "contractPath",
    "projectCount",
    "checks",
    "violations"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspace-contract-verify.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "enum": ["passed", "failed"]
    },
    "contractPath": {
      "type": "string"
    },
    "projectCount": {
      "type": "integer",
      "minimum": 0
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "status", "message"],
        "properties": {
          "id": { "type": "string" },
          "status": { "enum": ["passed", "failed"] },
          "message": { "type": "string" }
        }
      }
    },
    "violations": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}
