{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://humbleteam.local/humble-agents/state-record.schema.json",
  "type": "object",
  "required": ["entityId", "machineId", "machineVersion", "state", "revision", "lastEventId", "updatedAt"],
  "additionalProperties": false,
  "properties": {
    "entityId": { "type": "string", "minLength": 1 },
    "machineId": { "type": "string", "minLength": 1 },
    "machineVersion": { "type": "integer", "minimum": 1 },
    "state": { "type": "string", "minLength": 1 },
    "revision": { "type": "integer", "minimum": 1 },
    "lastEventId": { "type": "string", "minLength": 1 },
    "updatedAt": { "type": "string", "format": "date-time" }
  }
}
