{
  "step": "brand-apply",
  "tool": "brand_apply",
  "input": {
    "brand": "A",
    "delta": {
      "surface.interactive.primary.default": "oklch(0.5 0.1 183)"
    }
  },
  "isError": false,
  "error": null,
  "output": {
    "receipt": {
      "sourceWritten": false,
      "sourceFiles": [],
      "build": null,
      "changes": [],
      "metadataChanges": 3,
      "validation": {
        "valid": false,
        "brand_id": "A",
        "themes": {
          "base": {
            "label": "light",
            "slots": 103,
            "provided": 104
          },
          "dark": {
            "label": "dark",
            "slots": 96,
            "provided": 97
          },
          "hc": {
            "label": "high contrast",
            "slots": 96,
            "provided": 97
          }
        },
        "issues": [
          {
            "rule": "slot-not-token",
            "theme": "base",
            "slot": "surface.interactive.primary.default",
            "message": "base.surface.interactive.primary.default is not a token: give {\"$type\": \"color\", \"$value\": \"…\"}."
          },
          {
            "rule": "slot-not-token",
            "theme": "dark",
            "slot": "surface.interactive.primary.default",
            "message": "dark.surface.interactive.primary.default is not a token: give {\"$type\": \"color\", \"$value\": \"…\"}."
          },
          {
            "rule": "slot-not-token",
            "theme": "hc",
            "slot": "surface.interactive.primary.default",
            "message": "hc.surface.interactive.primary.default is not a token: give {\"$type\": \"color\", \"$value\": \"…\"}."
          }
        ],
        "contrast": {
          "base": {
            "graded": 84,
            "passed": 84,
            "failed": 0,
            "ungraded": 0,
            "charts": {
              "graded": 7,
              "passed": 7,
              "failed": 0,
              "ungraded": 0
            }
          },
          "dark": {
            "graded": 84,
            "passed": 84,
            "failed": 0,
            "ungraded": 0,
            "charts": {
              "graded": 7,
              "passed": 7,
              "failed": 0,
              "ungraded": 0
            }
          },
          "hc": {
            "graded": 83,
            "passed": 83,
            "failed": 0,
            "ungraded": 0,
            "systemColoursResolvedIn": "Chromium 141.0.7390.37 without forced colours (macOS and Linux, light and dark color-scheme), 2026-09-29",
            "exempt": 1,
            "charts": {
              "graded": 7,
              "passed": 7,
              "failed": 0,
              "ungraded": 0
            }
          }
        },
        "files": [
          {
            "theme": "base",
            "path": "A/base.json",
            "sha256": "be89ebe5f003fd3742b8bd1acef932c8c71ff7d8f9e177777b15df0645ee4482",
            "bytes": 37759
          },
          {
            "theme": "dark",
            "path": "A/dark.json",
            "sha256": "c8c67f920e4398a7d7691009e10bdad39218123ae2fd07ba12a6c891ae4a1d53",
            "bytes": 36103
          },
          {
            "theme": "hc",
            "path": "A/hc.json",
            "sha256": "5436b268c7e8426a2983f44e46628a41a0e0b574c6cb780ab0d6ff2eda696e46",
            "bytes": 24896
          }
        ]
      }
    },
    "artifacts": [],
    "preview": {
      "summary": "Updated 0 token values for brand A and 3 description or metadata entries.",
      "notes": [
        "base: 1 updated token",
        "dark: 1 updated token",
        "hc: 1 updated token"
      ],
      "diffs": [
        {
          "path": "packages/tokens/src/tokens/brands/A/base.json",
          "status": "modified",
          "summary": {
            "additions": 1,
            "deletions": 0
          },
          "hunks": [
            {
              "header": "@@ theme=base change=0 @@",
              "changes": [
                {
                  "type": "add",
                  "value": "/surface.interactive.primary.default: oklch(0.5 0.1 183)"
                }
              ]
            }
          ],
          "structured": {
            "type": "json",
            "before": {},
            "after": {
              "surface.interactive.primary.default": "oklch(0.5 0.1 183)"
            }
          }
        },
        {
          "path": "packages/tokens/src/tokens/brands/A/dark.json",
          "status": "modified",
          "summary": {
            "additions": 1,
            "deletions": 0
          },
          "hunks": [
            {
              "header": "@@ theme=dark change=0 @@",
              "changes": [
                {
                  "type": "add",
                  "value": "/surface.interactive.primary.default: oklch(0.5 0.1 183)"
                }
              ]
            }
          ],
          "structured": {
            "type": "json",
            "before": {},
            "after": {
              "surface.interactive.primary.default": "oklch(0.5 0.1 183)"
            }
          }
        },
        {
          "path": "packages/tokens/src/tokens/brands/A/hc.json",
          "status": "modified",
          "summary": {
            "additions": 1,
            "deletions": 0
          },
          "hunks": [
            {
              "header": "@@ theme=hc change=0 @@",
              "changes": [
                {
                  "type": "add",
                  "value": "/surface.interactive.primary.default: oklch(0.5 0.1 183)"
                }
              ]
            }
          ],
          "structured": {
            "type": "json",
            "before": {},
            "after": {
              "surface.interactive.primary.default": "oklch(0.5 0.1 183)"
            }
          }
        }
      ],
      "specimens": [
        "data:application/json,%7B%22theme%22%3A%22base%22%2C%22path%22%3A%22%2Fsurface.interactive.primary.default%22%2C%22after%22%3A%22oklch(0.5%200.1%20183)%22%7D",
        "data:application/json,%7B%22theme%22%3A%22dark%22%2C%22path%22%3A%22%2Fsurface.interactive.primary.default%22%2C%22after%22%3A%22oklch(0.5%200.1%20183)%22%7D",
        "data:application/json,%7B%22theme%22%3A%22hc%22%2C%22path%22%3A%22%2Fsurface.interactive.primary.default%22%2C%22after%22%3A%22oklch(0.5%200.1%20183)%22%7D"
      ]
    }
  }
}
