{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "EntryRef": {
      "properties": {
        "root_id": {
          "type": "string"
        },
        "space_id": {
          "type": "string"
        },
        "position": {
          "type": "integer"
        }
      },
      "type": "object",
      "required": [
        "root_id",
        "space_id",
        "position"
      ],
      "description": "EntryRef is the occurrence identity of one entry: a position in one journal."
    },
    "Path": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "Path is a location in the world: labels from a root organizer down, relative to the world."
    }
  },
  "properties": {
    "operation_id": {
      "type": "string"
    },
    "campaign": {
      "type": "string"
    },
    "assignment": {
      "type": "string"
    },
    "expected_cutoff": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "worker": {
      "type": "string"
    },
    "inputs": {
      "items": {
        "$ref": "#/$defs/EntryRef"
      },
      "type": "array"
    },
    "outputs": {
      "items": {
        "$ref": "#/$defs/Path"
      },
      "type": "array"
    },
    "brief": {
      "type": "string"
    }
  },
  "type": "object",
  "required": [
    "operation_id",
    "campaign",
    "assignment",
    "worker",
    "inputs",
    "outputs"
  ],
  "title": "AssignRequest",
  "description": "AssignRequest publishes an assignment: pinned input occurrences, intended outputs under the worker's space or an artifact's declarations, and the brief the worker's session starts from."
}
