{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:orbiplex:schema:nse-select-turn-order-table:v1",
  "title": "NSE Select Turn Order Table v1",
  "description": "Deterministic target-free role-priority table for the Corpus select-turn-order hook.",
  "x-dia-workflow": "project",
  "x-dia-status": "accepted",
  "x-dia-basis": [
    "doc/project/40-proposals/085-operator-sovereign-extensibility-and-experiment-packages.md",
    "doc/project/40-proposals/069-corpus.md"
  ],
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "schema/v", "policy/id", "policy/name", "hook/id", "hook/v", "role/order"],
  "properties": {
    "schema": { "const": "nse-select-turn-order-table.v1" },
    "schema/v": { "const": 1 },
    "policy/id": { "type": "string", "pattern": "^nse-policy:[0-9A-HJKMNP-TV-Z]{26}$" },
    "policy/name": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[^\\u0000-\\u001F\\u007F]+$" },
    "hook/id": { "const": "select-turn-order" },
    "hook/v": { "const": 1 },
    "role/order": {
      "description": "A partial role priority. Listed roles are ordered first; unlisted roles retain their relative order from the host-built offer after all listed roles.",
      "type": "array",
      "minItems": 1,
      "maxItems": 4,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": ["implementer", "reviewer", "adversarial-critic", "summarizer"]
      }
    }
  }
}
