{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "const": "owp-docs-draft/0.1",
      "description": "Draft discriminator. This value is not OWP v0.4 conformance or an alpha wire profile."
    },
    "job_id": {
      "type": "string",
      "pattern": "^job_[A-Za-z0-9]{8,64}$",
      "description": "Source defines the prefix; this draft chooses an 8–64 character alphanumeric suffix."
    },
    "phase_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "agent_id": {
      "type": "string",
      "pattern": "^agent_[A-Za-z0-9]{8,64}$",
      "description": "Source defines the prefix; this draft chooses an 8–64 character alphanumeric suffix."
    },
    "grant_id": {
      "type": "string",
      "pattern": "^grant_[A-Za-z0-9]{8,64}$",
      "description": "Source defines the prefix; this draft chooses an 8–64 character alphanumeric suffix."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:Z))$",
      "description": "Draft: UTC date-time, second precision, ending in Z."
    }
  },
  "required": [
    "profile",
    "job_id",
    "phase_id",
    "agent_id",
    "grant_id",
    "expires_at"
  ],
  "additionalProperties": false,
  "description": "Draft claims shape for §7.5 tuple binding. Token envelope/signature is unresolved. Non-transferable, single-hop.",
  "title": "PhaseToken",
  "$comment": "owp-docs-draft/0.1: proposed documentation shape only. Source: https://app.notion.com/p/338ed9cb3201819d96e9fc7b8e88594a §7.5. No production conformance claim."
}
