{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PMF Harness draft (structured output)",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "change",
        "queue"
      ]
    },
    "summary": {
      "type": "string",
      "description": "One short sentence the user sees: what changed, for them"
    },
    "reason": {
      "type": "string",
      "description": "For queue: why this needs a developer"
    },
    "ops": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "text",
              "attr",
              "style",
              "hide",
              "move",
              "class"
            ]
          },
          "selector": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "enum": [
              "aria-label",
              "title",
              "placeholder",
              "alt"
            ]
          },
          "props": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "property": {
                  "type": "string",
                  "enum": [
                    "font-size",
                    "font-weight",
                    "font-style",
                    "line-height",
                    "letter-spacing",
                    "text-align",
                    "text-transform",
                    "text-decoration",
                    "color",
                    "background-color",
                    "border-color",
                    "border-width",
                    "border-style",
                    "border-radius",
                    "padding",
                    "padding-top",
                    "padding-right",
                    "padding-bottom",
                    "padding-left",
                    "margin",
                    "margin-top",
                    "margin-right",
                    "margin-bottom",
                    "margin-left",
                    "gap",
                    "row-gap",
                    "column-gap",
                    "width",
                    "min-width",
                    "max-width",
                    "height",
                    "min-height",
                    "max-height",
                    "display",
                    "flex-direction",
                    "flex-wrap",
                    "justify-content",
                    "align-items",
                    "align-self",
                    "order",
                    "flex-grow",
                    "opacity",
                    "box-shadow",
                    "white-space",
                    "visibility",
                    "grid-template-columns"
                  ]
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "property",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          },
          "add": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "remove": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "op",
          "selector"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "kind",
    "summary",
    "reason",
    "ops"
  ],
  "additionalProperties": false
}
