[
  {
    "id": "flat-1",
    "tier": 1,
    "schemaId": "flat",
    "request": "Send this to billing, mark it urgent, and reply to the customer.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "route": {
          "type": "string",
          "enum": [
            "billing",
            "support",
            "sales"
          ]
        },
        "priority": {
          "type": "string",
          "enum": [
            "low",
            "normal",
            "urgent"
          ]
        },
        "reply": {
          "type": "boolean"
        }
      },
      "required": [
        "route",
        "priority",
        "reply"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "flat-2",
    "tier": 1,
    "schemaId": "flat",
    "request": "I need technical help, not a quote. Normal priority. Do not send a reply.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "route": {
          "type": "string",
          "enum": [
            "billing",
            "support",
            "sales"
          ]
        },
        "priority": {
          "type": "string",
          "enum": [
            "low",
            "normal",
            "urgent"
          ]
        },
        "reply": {
          "type": "boolean"
        }
      },
      "required": [
        "route",
        "priority",
        "reply"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "flat-3",
    "tier": 1,
    "schemaId": "flat",
    "request": "Ask sales for a quote. Low priority, and no reply needed.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "route": {
          "type": "string",
          "enum": [
            "billing",
            "support",
            "sales"
          ]
        },
        "priority": {
          "type": "string",
          "enum": [
            "low",
            "normal",
            "urgent"
          ]
        },
        "reply": {
          "type": "boolean"
        }
      },
      "required": [
        "route",
        "priority",
        "reply"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "flat-4",
    "tier": 1,
    "schemaId": "flat",
    "request": "Support should handle this outage urgently. Please reply. It is not a billing issue.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "route": {
          "type": "string",
          "enum": [
            "billing",
            "support",
            "sales"
          ]
        },
        "priority": {
          "type": "string",
          "enum": [
            "low",
            "normal",
            "urgent"
          ]
        },
        "reply": {
          "type": "boolean"
        }
      },
      "required": [
        "route",
        "priority",
        "reply"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "memory-1",
    "tier": 2,
    "schemaId": "memory",
    "request": "Create a paid order for Mira Chen, use her email, quantity four.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "customer": {
          "type": "string",
          "description": "Requested customer display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
          "description": "Email address of the requested person."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "description": "Requested quantity, from 1 to 20."
        },
        "paid": {
          "type": "boolean"
        }
      },
      "required": [
        "customer",
        "email",
        "quantity",
        "paid"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "memory-2",
    "tier": 2,
    "schemaId": "memory",
    "request": "Noah Singh wants two units, not four. Use his email. The order is unpaid.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "customer": {
          "type": "string",
          "description": "Requested customer display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
          "description": "Email address of the requested person."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "description": "Requested quantity, from 1 to 20."
        },
        "paid": {
          "type": "boolean"
        }
      },
      "required": [
        "customer",
        "email",
        "quantity",
        "paid"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "memory-3",
    "tier": 2,
    "schemaId": "memory",
    "request": "For Ava Roy, six units, paid already. Email Ava, not Mira.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "customer": {
          "type": "string",
          "description": "Requested customer display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
          "description": "Email address of the requested person."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "description": "Requested quantity, from 1 to 20."
        },
        "paid": {
          "type": "boolean"
        }
      },
      "required": [
        "customer",
        "email",
        "quantity",
        "paid"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "memory-4",
    "tier": 2,
    "schemaId": "memory",
    "request": "Mira Chen needs two units on an unpaid order. Use Mira’s contact, not Noah’s.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "customer": {
          "type": "string",
          "description": "Requested customer display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
          "description": "Email address of the requested person."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "description": "Requested quantity, from 1 to 20."
        },
        "paid": {
          "type": "boolean"
        }
      },
      "required": [
        "customer",
        "email",
        "quantity",
        "paid"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "nested-1",
    "tier": 3,
    "schemaId": "nested",
    "request": "For the Orbit API project, create Mira’s invoice for the small amount in CAD with the ten-percent discount. Include her phone and email.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "customer": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Requested customer display name."
            },
            "email": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
              "description": "Email address of the requested person."
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested customer phone, or null when phone must be omitted."
            }
          },
          "required": [
            "name",
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "invoice": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "number",
              "minimum": 0,
              "maximum": 10000,
              "description": "Requested invoice amount in dollars."
            },
            "currency": {
              "type": "string",
              "enum": [
                "CAD",
                "USD",
                "EUR"
              ]
            },
            "discount": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 0.5
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested fractional discount, or null for none."
            }
          },
          "required": [
            "amount",
            "currency",
            "discount"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "customer",
        "invoice"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "nested-2",
    "tier": 3,
    "schemaId": "nested",
    "request": "Cedar Web: Noah’s invoice for the large amount, in USD, no discount. Use his email but leave phone null.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "customer": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Requested customer display name."
            },
            "email": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
              "description": "Email address of the requested person."
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested customer phone, or null when phone must be omitted."
            }
          },
          "required": [
            "name",
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "invoice": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "number",
              "minimum": 0,
              "maximum": 10000,
              "description": "Requested invoice amount in dollars."
            },
            "currency": {
              "type": "string",
              "enum": [
                "CAD",
                "USD",
                "EUR"
              ]
            },
            "discount": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 0.5
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested fractional discount, or null for none."
            }
          },
          "required": [
            "amount",
            "currency",
            "discount"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "customer",
        "invoice"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "nested-3",
    "tier": 3,
    "schemaId": "nested",
    "request": "Orbit API: Ava, email and phone included. Invoice the large amount in EUR with a 25% discount as a fraction, not the number 25.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "customer": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Requested customer display name."
            },
            "email": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
              "description": "Email address of the requested person."
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested customer phone, or null when phone must be omitted."
            }
          },
          "required": [
            "name",
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "invoice": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "number",
              "minimum": 0,
              "maximum": 10000,
              "description": "Requested invoice amount in dollars."
            },
            "currency": {
              "type": "string",
              "enum": [
                "CAD",
                "USD",
                "EUR"
              ]
            },
            "discount": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 0.5
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested fractional discount, or null for none."
            }
          },
          "required": [
            "amount",
            "currency",
            "discount"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "customer",
        "invoice"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "nested-4",
    "tier": 3,
    "schemaId": "nested",
    "request": "Cedar Web: Mira’s small invoice in CAD. No discount and no phone. Keep her email.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "customer": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Requested customer display name."
            },
            "email": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
              "description": "Email address of the requested person."
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested customer phone, or null when phone must be omitted."
            }
          },
          "required": [
            "name",
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "invoice": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "number",
              "minimum": 0,
              "maximum": 10000,
              "description": "Requested invoice amount in dollars."
            },
            "currency": {
              "type": "string",
              "enum": [
                "CAD",
                "USD",
                "EUR"
              ]
            },
            "discount": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 0.5
                },
                {
                  "type": "null"
                }
              ],
              "description": "Requested fractional discount, or null for none."
            }
          },
          "required": [
            "amount",
            "currency",
            "discount"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "customer",
        "invoice"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "arrays-1",
    "tier": 4,
    "schemaId": "arrays",
    "request": "In this order: four travel mugs at normal priority, then two USB cables urgently. Ship the order.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "items": {
          "minItems": 0,
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "product": {
                "type": "string",
                "description": "Product display name, in request order."
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "description": "Requested quantity, from 1 to 20."
              },
              "priority": {
                "type": "string",
                "enum": [
                  "low",
                  "normal",
                  "urgent"
                ]
              }
            },
            "required": [
              "product",
              "quantity",
              "priority"
            ],
            "additionalProperties": false
          }
        },
        "ship": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "ship"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "arrays-2",
    "tier": 4,
    "schemaId": "arrays",
    "request": "One line item: six field guides, low priority. Do not ship.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "items": {
          "minItems": 0,
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "product": {
                "type": "string",
                "description": "Product display name, in request order."
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "description": "Requested quantity, from 1 to 20."
              },
              "priority": {
                "type": "string",
                "enum": [
                  "low",
                  "normal",
                  "urgent"
                ]
              }
            },
            "required": [
              "product",
              "quantity",
              "priority"
            ],
            "additionalProperties": false
          }
        },
        "ship": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "ship"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "arrays-3",
    "tier": 4,
    "schemaId": "arrays",
    "request": "Clear the order: zero line items, nothing to ship.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "items": {
          "minItems": 0,
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "product": {
                "type": "string",
                "description": "Product display name, in request order."
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "description": "Requested quantity, from 1 to 20."
              },
              "priority": {
                "type": "string",
                "enum": [
                  "low",
                  "normal",
                  "urgent"
                ]
              }
            },
            "required": [
              "product",
              "quantity",
              "priority"
            ],
            "additionalProperties": false
          }
        },
        "ship": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "ship"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "arrays-4",
    "tier": 4,
    "schemaId": "arrays",
    "request": "Add, in order: two USB cables urgently, four field guides at normal priority, and six travel mugs at low priority. Ship.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "items": {
          "minItems": 0,
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "product": {
                "type": "string",
                "description": "Product display name, in request order."
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "description": "Requested quantity, from 1 to 20."
              },
              "priority": {
                "type": "string",
                "enum": [
                  "low",
                  "normal",
                  "urgent"
                ]
              }
            },
            "required": [
              "product",
              "quantity",
              "priority"
            ],
            "additionalProperties": false
          }
        },
        "ship": {
          "type": "boolean"
        }
      },
      "required": [
        "items",
        "ship"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "union-1",
    "tier": 5,
    "schemaId": "union",
    "request": "Email Mira the release-ready subject as HTML on Friday. Not an SMS.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "delivery": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "email"
                },
                "to": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                  "description": "Email address of the requested person."
                },
                "subject": {
                  "type": "string",
                  "description": "Requested email subject stored in memory."
                },
                "html": {
                  "type": "boolean"
                }
              },
              "required": [
                "channel",
                "to",
                "subject",
                "html"
              ],
              "additionalProperties": false,
              "description": "An email notification."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "sms"
                },
                "to": {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$",
                  "description": "International phone number of the requested person."
                },
                "text": {
                  "type": "string",
                  "description": "Requested SMS body stored in memory."
                }
              },
              "required": [
                "channel",
                "to",
                "text"
              ],
              "additionalProperties": false,
              "description": "A text message, not email."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "webhook"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Requested HTTPS webhook URL."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "POST",
                    "PUT"
                  ]
                },
                "retries": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3,
                  "description": "Number of webhook retries, 0 to 3."
                }
              },
              "required": [
                "channel",
                "url",
                "method",
                "retries"
              ],
              "additionalProperties": false,
              "description": "Call a webhook endpoint."
            }
          ]
        },
        "schedule": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Requested date in YYYY-MM-DD, or null for immediate delivery."
        }
      },
      "required": [
        "delivery",
        "schedule"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "union-2",
    "tier": 5,
    "schemaId": "union",
    "request": "Send Noah an SMS saying the package arrived. Send now, without a scheduled date.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "delivery": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "email"
                },
                "to": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                  "description": "Email address of the requested person."
                },
                "subject": {
                  "type": "string",
                  "description": "Requested email subject stored in memory."
                },
                "html": {
                  "type": "boolean"
                }
              },
              "required": [
                "channel",
                "to",
                "subject",
                "html"
              ],
              "additionalProperties": false,
              "description": "An email notification."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "sms"
                },
                "to": {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$",
                  "description": "International phone number of the requested person."
                },
                "text": {
                  "type": "string",
                  "description": "Requested SMS body stored in memory."
                }
              },
              "required": [
                "channel",
                "to",
                "text"
              ],
              "additionalProperties": false,
              "description": "A text message, not email."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "webhook"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Requested HTTPS webhook URL."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "POST",
                    "PUT"
                  ]
                },
                "retries": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3,
                  "description": "Number of webhook retries, 0 to 3."
                }
              },
              "required": [
                "channel",
                "url",
                "method",
                "retries"
              ],
              "additionalProperties": false,
              "description": "Call a webhook endpoint."
            }
          ]
        },
        "schedule": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Requested date in YYYY-MM-DD, or null for immediate delivery."
        }
      },
      "required": [
        "delivery",
        "schedule"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "union-3",
    "tier": 5,
    "schemaId": "union",
    "request": "Call the orders webhook with POST and three retries on Monday. Do not email anyone.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "delivery": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "email"
                },
                "to": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                  "description": "Email address of the requested person."
                },
                "subject": {
                  "type": "string",
                  "description": "Requested email subject stored in memory."
                },
                "html": {
                  "type": "boolean"
                }
              },
              "required": [
                "channel",
                "to",
                "subject",
                "html"
              ],
              "additionalProperties": false,
              "description": "An email notification."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "sms"
                },
                "to": {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$",
                  "description": "International phone number of the requested person."
                },
                "text": {
                  "type": "string",
                  "description": "Requested SMS body stored in memory."
                }
              },
              "required": [
                "channel",
                "to",
                "text"
              ],
              "additionalProperties": false,
              "description": "A text message, not email."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "webhook"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Requested HTTPS webhook URL."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "POST",
                    "PUT"
                  ]
                },
                "retries": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3,
                  "description": "Number of webhook retries, 0 to 3."
                }
              },
              "required": [
                "channel",
                "url",
                "method",
                "retries"
              ],
              "additionalProperties": false,
              "description": "Call a webhook endpoint."
            }
          ]
        },
        "schedule": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Requested date in YYYY-MM-DD, or null for immediate delivery."
        }
      },
      "required": [
        "delivery",
        "schedule"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "union-4",
    "tier": 5,
    "schemaId": "union",
    "request": "Call the release webhook now with PUT. Zero retries. No scheduled date.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "delivery": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "email"
                },
                "to": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                  "description": "Email address of the requested person."
                },
                "subject": {
                  "type": "string",
                  "description": "Requested email subject stored in memory."
                },
                "html": {
                  "type": "boolean"
                }
              },
              "required": [
                "channel",
                "to",
                "subject",
                "html"
              ],
              "additionalProperties": false,
              "description": "An email notification."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "sms"
                },
                "to": {
                  "type": "string",
                  "pattern": "^\\+[0-9]{11,15}$",
                  "description": "International phone number of the requested person."
                },
                "text": {
                  "type": "string",
                  "description": "Requested SMS body stored in memory."
                }
              },
              "required": [
                "channel",
                "to",
                "text"
              ],
              "additionalProperties": false,
              "description": "A text message, not email."
            },
            {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "const": "webhook"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Requested HTTPS webhook URL."
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "POST",
                    "PUT"
                  ]
                },
                "retries": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3,
                  "description": "Number of webhook retries, 0 to 3."
                }
              },
              "required": [
                "channel",
                "url",
                "method",
                "retries"
              ],
              "additionalProperties": false,
              "description": "Call a webhook endpoint."
            }
          ]
        },
        "schedule": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Requested date in YYYY-MM-DD, or null for immediate delivery."
        }
      },
      "required": [
        "delivery",
        "schedule"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "workflow-1",
    "tier": 6,
    "schemaId": "workflow",
    "request": "Enable Orbit API. Steps in order: email Mira the release-ready subject as HTML; wait one minute; create the release-review task owned by Noah, urgent. Mira is a required reviewer and Ava is optional, in that order. Stop on failure, maximum three attempts, five-minute timeout.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "workflow": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "steps": {
              "minItems": 1,
              "maxItems": 3,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "notify"
                      },
                      "delivery": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "email"
                              },
                              "to": {
                                "type": "string",
                                "format": "email",
                                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                "description": "Email address of the requested person."
                              },
                              "subject": {
                                "type": "string",
                                "description": "Requested email subject stored in memory."
                              },
                              "html": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "subject",
                              "html"
                            ],
                            "additionalProperties": false,
                            "description": "An email notification."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "sms"
                              },
                              "to": {
                                "type": "string",
                                "pattern": "^\\+[0-9]{11,15}$",
                                "description": "International phone number of the requested person."
                              },
                              "text": {
                                "type": "string",
                                "description": "Requested SMS body stored in memory."
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "text"
                            ],
                            "additionalProperties": false,
                            "description": "A text message, not email."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "webhook"
                              },
                              "url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Requested HTTPS webhook URL."
                              },
                              "method": {
                                "type": "string",
                                "enum": [
                                  "POST",
                                  "PUT"
                                ]
                              },
                              "retries": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3,
                                "description": "Number of webhook retries, 0 to 3."
                              }
                            },
                            "required": [
                              "channel",
                              "url",
                              "method",
                              "retries"
                            ],
                            "additionalProperties": false,
                            "description": "Call a webhook endpoint."
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "delivery"
                    ],
                    "additionalProperties": false,
                    "description": "Send a notification."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "wait"
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3600,
                        "description": "Requested wait duration in seconds."
                      }
                    },
                    "required": [
                      "kind",
                      "seconds"
                    ],
                    "additionalProperties": false,
                    "description": "Pause the workflow."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "task"
                      },
                      "task": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "description": "Requested task title."
                          },
                          "owner": {
                            "type": "string",
                            "format": "email",
                            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                            "description": "Email address of the requested person."
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "low",
                              "normal",
                              "urgent"
                            ]
                          }
                        },
                        "required": [
                          "title",
                          "owner",
                          "priority"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "kind",
                      "task"
                    ],
                    "additionalProperties": false,
                    "description": "Create a task."
                  }
                ]
              }
            },
            "approvals": {
              "minItems": 0,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "reviewer": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                    "description": "Email address of the requested person."
                  },
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "reviewer",
                  "required"
                ],
                "additionalProperties": false
              }
            },
            "policy": {
              "type": "object",
              "properties": {
                "failure": {
                  "type": "string",
                  "enum": [
                    "stop",
                    "continue"
                  ]
                },
                "limits": {
                  "type": "object",
                  "properties": {
                    "attempts": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3,
                      "description": "Maximum workflow attempts, 1 to 3."
                    },
                    "timeout": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3600,
                      "description": "Workflow timeout in seconds."
                    }
                  },
                  "required": [
                    "attempts",
                    "timeout"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "failure",
                "limits"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "steps",
            "approvals",
            "policy"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "workflow"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "workflow-2",
    "tier": 6,
    "schemaId": "workflow",
    "request": "Disable Cedar Web. Keep one step: text Ava that the package arrived. No reviewers. Continue on failure, one attempt, one-minute timeout.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "workflow": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "steps": {
              "minItems": 1,
              "maxItems": 3,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "notify"
                      },
                      "delivery": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "email"
                              },
                              "to": {
                                "type": "string",
                                "format": "email",
                                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                "description": "Email address of the requested person."
                              },
                              "subject": {
                                "type": "string",
                                "description": "Requested email subject stored in memory."
                              },
                              "html": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "subject",
                              "html"
                            ],
                            "additionalProperties": false,
                            "description": "An email notification."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "sms"
                              },
                              "to": {
                                "type": "string",
                                "pattern": "^\\+[0-9]{11,15}$",
                                "description": "International phone number of the requested person."
                              },
                              "text": {
                                "type": "string",
                                "description": "Requested SMS body stored in memory."
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "text"
                            ],
                            "additionalProperties": false,
                            "description": "A text message, not email."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "webhook"
                              },
                              "url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Requested HTTPS webhook URL."
                              },
                              "method": {
                                "type": "string",
                                "enum": [
                                  "POST",
                                  "PUT"
                                ]
                              },
                              "retries": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3,
                                "description": "Number of webhook retries, 0 to 3."
                              }
                            },
                            "required": [
                              "channel",
                              "url",
                              "method",
                              "retries"
                            ],
                            "additionalProperties": false,
                            "description": "Call a webhook endpoint."
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "delivery"
                    ],
                    "additionalProperties": false,
                    "description": "Send a notification."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "wait"
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3600,
                        "description": "Requested wait duration in seconds."
                      }
                    },
                    "required": [
                      "kind",
                      "seconds"
                    ],
                    "additionalProperties": false,
                    "description": "Pause the workflow."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "task"
                      },
                      "task": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "description": "Requested task title."
                          },
                          "owner": {
                            "type": "string",
                            "format": "email",
                            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                            "description": "Email address of the requested person."
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "low",
                              "normal",
                              "urgent"
                            ]
                          }
                        },
                        "required": [
                          "title",
                          "owner",
                          "priority"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "kind",
                      "task"
                    ],
                    "additionalProperties": false,
                    "description": "Create a task."
                  }
                ]
              }
            },
            "approvals": {
              "minItems": 0,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "reviewer": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                    "description": "Email address of the requested person."
                  },
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "reviewer",
                  "required"
                ],
                "additionalProperties": false
              }
            },
            "policy": {
              "type": "object",
              "properties": {
                "failure": {
                  "type": "string",
                  "enum": [
                    "stop",
                    "continue"
                  ]
                },
                "limits": {
                  "type": "object",
                  "properties": {
                    "attempts": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3,
                      "description": "Maximum workflow attempts, 1 to 3."
                    },
                    "timeout": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3600,
                      "description": "Workflow timeout in seconds."
                    }
                  },
                  "required": [
                    "attempts",
                    "timeout"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "failure",
                "limits"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "steps",
            "approvals",
            "policy"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "workflow"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "workflow-3",
    "tier": 6,
    "schemaId": "workflow",
    "request": "Enable Orbit API. First create the invoice-approval task for Ava with low priority, then call the orders webhook with POST and two retries. Noah must review. Continue on failure, two attempts, five-minute timeout.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "workflow": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "steps": {
              "minItems": 1,
              "maxItems": 3,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "notify"
                      },
                      "delivery": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "email"
                              },
                              "to": {
                                "type": "string",
                                "format": "email",
                                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                "description": "Email address of the requested person."
                              },
                              "subject": {
                                "type": "string",
                                "description": "Requested email subject stored in memory."
                              },
                              "html": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "subject",
                              "html"
                            ],
                            "additionalProperties": false,
                            "description": "An email notification."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "sms"
                              },
                              "to": {
                                "type": "string",
                                "pattern": "^\\+[0-9]{11,15}$",
                                "description": "International phone number of the requested person."
                              },
                              "text": {
                                "type": "string",
                                "description": "Requested SMS body stored in memory."
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "text"
                            ],
                            "additionalProperties": false,
                            "description": "A text message, not email."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "webhook"
                              },
                              "url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Requested HTTPS webhook URL."
                              },
                              "method": {
                                "type": "string",
                                "enum": [
                                  "POST",
                                  "PUT"
                                ]
                              },
                              "retries": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3,
                                "description": "Number of webhook retries, 0 to 3."
                              }
                            },
                            "required": [
                              "channel",
                              "url",
                              "method",
                              "retries"
                            ],
                            "additionalProperties": false,
                            "description": "Call a webhook endpoint."
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "delivery"
                    ],
                    "additionalProperties": false,
                    "description": "Send a notification."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "wait"
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3600,
                        "description": "Requested wait duration in seconds."
                      }
                    },
                    "required": [
                      "kind",
                      "seconds"
                    ],
                    "additionalProperties": false,
                    "description": "Pause the workflow."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "task"
                      },
                      "task": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "description": "Requested task title."
                          },
                          "owner": {
                            "type": "string",
                            "format": "email",
                            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                            "description": "Email address of the requested person."
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "low",
                              "normal",
                              "urgent"
                            ]
                          }
                        },
                        "required": [
                          "title",
                          "owner",
                          "priority"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "kind",
                      "task"
                    ],
                    "additionalProperties": false,
                    "description": "Create a task."
                  }
                ]
              }
            },
            "approvals": {
              "minItems": 0,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "reviewer": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                    "description": "Email address of the requested person."
                  },
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "reviewer",
                  "required"
                ],
                "additionalProperties": false
              }
            },
            "policy": {
              "type": "object",
              "properties": {
                "failure": {
                  "type": "string",
                  "enum": [
                    "stop",
                    "continue"
                  ]
                },
                "limits": {
                  "type": "object",
                  "properties": {
                    "attempts": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3,
                      "description": "Maximum workflow attempts, 1 to 3."
                    },
                    "timeout": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3600,
                      "description": "Workflow timeout in seconds."
                    }
                  },
                  "required": [
                    "attempts",
                    "timeout"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "failure",
                "limits"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "steps",
            "approvals",
            "policy"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "workflow"
      ],
      "additionalProperties": false
    }
  },
  {
    "id": "workflow-4",
    "tier": 6,
    "schemaId": "workflow",
    "request": "Enable Cedar Web. Wait one minute, then email Noah the invoice subject as plain text. Do not add a task or reviewers. Stop on failure, one attempt, five-minute timeout.",
    "memory": {
      "name-mira": "Mira Chen",
      "name-noah": "Noah Singh",
      "name-ava": "Ava Roy",
      "email-mira": "mira@example.test",
      "email-noah": "noah@example.test",
      "email-ava": "ava@example.test",
      "phone-mira": "+15145550111",
      "phone-noah": "+15145550222",
      "phone-ava": "+15145550333",
      "project-orbit": "orbit-api",
      "project-cedar": "cedar-web",
      "project-title": "Orbit API",
      "product-mug": "Travel mug",
      "product-cable": "USB cable",
      "product-book": "Field guide",
      "subject-release": "Release is ready",
      "subject-invoice": "Your invoice",
      "text-arrived": "Your package arrived",
      "task-review": "Review the release",
      "task-invoice": "Approve the invoice",
      "webhook-orders": "https://example.test/hooks/orders",
      "webhook-release": "https://example.test/hooks/release",
      "date-friday": "2026-10-02",
      "date-monday": "2026-10-05",
      "date-display": "Friday, October 2",
      "qty-two": 2,
      "qty-four": 4,
      "qty-six": 6,
      "qty-too-large": 200,
      "amount-small": 125.5,
      "amount-large": 840,
      "discount-ten": 0.1,
      "discount-quarter": 0.25,
      "discount-invalid": 25,
      "zero": 0,
      "one": 1,
      "three": 3,
      "wait-minute": 60,
      "timeout-five": 300,
      "negative": -5
    },
    "schema": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]*$",
          "description": "Lowercase project slug, not a display title."
        },
        "workflow": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "steps": {
              "minItems": 1,
              "maxItems": 3,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "notify"
                      },
                      "delivery": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "email"
                              },
                              "to": {
                                "type": "string",
                                "format": "email",
                                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                "description": "Email address of the requested person."
                              },
                              "subject": {
                                "type": "string",
                                "description": "Requested email subject stored in memory."
                              },
                              "html": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "subject",
                              "html"
                            ],
                            "additionalProperties": false,
                            "description": "An email notification."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "sms"
                              },
                              "to": {
                                "type": "string",
                                "pattern": "^\\+[0-9]{11,15}$",
                                "description": "International phone number of the requested person."
                              },
                              "text": {
                                "type": "string",
                                "description": "Requested SMS body stored in memory."
                              }
                            },
                            "required": [
                              "channel",
                              "to",
                              "text"
                            ],
                            "additionalProperties": false,
                            "description": "A text message, not email."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string",
                                "const": "webhook"
                              },
                              "url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Requested HTTPS webhook URL."
                              },
                              "method": {
                                "type": "string",
                                "enum": [
                                  "POST",
                                  "PUT"
                                ]
                              },
                              "retries": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3,
                                "description": "Number of webhook retries, 0 to 3."
                              }
                            },
                            "required": [
                              "channel",
                              "url",
                              "method",
                              "retries"
                            ],
                            "additionalProperties": false,
                            "description": "Call a webhook endpoint."
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "delivery"
                    ],
                    "additionalProperties": false,
                    "description": "Send a notification."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "wait"
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3600,
                        "description": "Requested wait duration in seconds."
                      }
                    },
                    "required": [
                      "kind",
                      "seconds"
                    ],
                    "additionalProperties": false,
                    "description": "Pause the workflow."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "task"
                      },
                      "task": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "description": "Requested task title."
                          },
                          "owner": {
                            "type": "string",
                            "format": "email",
                            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                            "description": "Email address of the requested person."
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "low",
                              "normal",
                              "urgent"
                            ]
                          }
                        },
                        "required": [
                          "title",
                          "owner",
                          "priority"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "kind",
                      "task"
                    ],
                    "additionalProperties": false,
                    "description": "Create a task."
                  }
                ]
              }
            },
            "approvals": {
              "minItems": 0,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "reviewer": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                    "description": "Email address of the requested person."
                  },
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "reviewer",
                  "required"
                ],
                "additionalProperties": false
              }
            },
            "policy": {
              "type": "object",
              "properties": {
                "failure": {
                  "type": "string",
                  "enum": [
                    "stop",
                    "continue"
                  ]
                },
                "limits": {
                  "type": "object",
                  "properties": {
                    "attempts": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3,
                      "description": "Maximum workflow attempts, 1 to 3."
                    },
                    "timeout": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 3600,
                      "description": "Workflow timeout in seconds."
                    }
                  },
                  "required": [
                    "attempts",
                    "timeout"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "failure",
                "limits"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "steps",
            "approvals",
            "policy"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "project",
        "workflow"
      ],
      "additionalProperties": false
    }
  }
]
