{
  "$defs": {
    "Classification": {
      "enum": [
        "C0",
        "C1",
        "C2",
        "C3"
      ],
      "title": "Classification",
      "type": "string"
    }
  },
  "$id": "https://agentnet.invalid/schemas/v1/room.json",
  "additionalProperties": false,
  "properties": {
    "classification": {
      "$ref": "#/$defs/Classification"
    },
    "control_sequence": {
      "minimum": 1,
      "title": "Control Sequence",
      "type": "integer"
    },
    "domain_id": {
      "title": "Domain Id",
      "type": "string"
    },
    "history_mode": {
      "enum": [
        "from_join",
        "none"
      ],
      "title": "History Mode",
      "type": "string"
    },
    "owner_domain_id": {
      "title": "Owner Domain Id",
      "type": "string"
    },
    "owner_epoch": {
      "minimum": 1,
      "title": "Owner Epoch",
      "type": "integer"
    },
    "policy": {
      "additionalProperties": true,
      "title": "Policy",
      "type": "object"
    },
    "room_id": {
      "title": "Room Id",
      "type": "string"
    },
    "schema_version": {
      "const": "1.0",
      "default": "1.0",
      "title": "Schema Version",
      "type": "string"
    },
    "state": {
      "enum": [
        "active",
        "frozen",
        "tombstoned"
      ],
      "title": "State",
      "type": "string"
    }
  },
  "required": [
    "room_id",
    "domain_id",
    "owner_domain_id",
    "owner_epoch",
    "control_sequence",
    "state",
    "classification",
    "history_mode",
    "policy"
  ],
  "title": "RoomRecord",
  "type": "object",
  "x-agentnet-schema-version": "1.0"
}
