{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-agent-roster-entry-schema.json",
  "title": "AgentRosterEntry",
  "description": "What one agent may learn about another: enough to decide whose memory is worth querying, or how to put an issue in Ready so that agent picks it up, and nothing more.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grepr-agents-api-openapi.yml#/components/schemas/AgentRosterEntry",
  "properties": {
    "description": {
      "description": "What the agent handles, as its configuration says, or null when it says nothing.",
      "type": "string"
    },
    "id": {
      "description": "The agent's id, as named in a cross-agent memory search's `agentId`.",
      "type": "string"
    },
    "name": {
      "description": "The agent's human-readable name.",
      "type": "string"
    },
    "picksUp": {
      "$ref": "#/$defs/PickupFilters"
    }
  },
  "type": "object",
  "$defs": {
    "PickupFilters": {
      "description": "The filters an agent picks up Ready issues by; null means any.",
      "properties": {
        "entities": {
          "additionalProperties": {
            "description": "Any of these values for each entity key.",
            "items": {
              "description": "Any of these values for each entity key.",
              "type": "string"
            },
            "type": "array"
          },
          "description": "Any of these values for each entity key.",
          "type": "object"
        },
        "labels": {
          "description": "Every one of these labels.",
          "items": {
            "description": "Every one of these labels.",
            "type": "string"
          },
          "type": "array"
        },
        "priority": {
          "description": "This priority or more urgent.",
          "type": "string"
        },
        "teamIds": {
          "description": "Any of these teams.",
          "items": {
            "description": "Any of these teams.",
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  }
}