{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://sidecat.dev/spec/system/0.1/local-harness-preparation.schema.json",
  "title": "Provisional local harness preparation profile",
  "type": "object",
  "required": [
    "profile",
    "socketPath",
    "enrollmentID",
    "credentialID",
    "keyFormat",
    "privateKeyPath"
  ],
  "properties": {
    "profile": {
      "const": "sidecat.system/0.1/local-harness"
    },
    "socketPath": {
      "type": "string",
      "minLength": 2,
      "maxLength": 4096,
      "pattern": "^/"
    },
    "enrollmentID": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "credentialID": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "keyFormat": {
      "const": "ed25519-seed-raw32"
    },
    "privateKeyPath": {
      "type": "string",
      "minLength": 2,
      "maxLength": 4096,
      "pattern": "^/"
    },
    "expectedActor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    }
  },
  "additionalProperties": false
}
