{
  "$schema": "https://www.digitaltableteur.com/schemas/contract-spec/1.0/contract.schema.json",
  "specVersion": "1.0",
  "name": "CaseStudySummary",
  "status": "alpha",
  "description": "Decision-first case study summary: outcome, role, constraints, key decisions and evidence with source labels.",
  "props": {
    "outcome": {
      "type": "string",
      "optional": false,
      "description": "What changed because of the work, in one or two sentences."
    },
    "role": {
      "type": "string",
      "optional": false,
      "description": "Role and scope of the engagement."
    },
    "constraints": {
      "type": "string[]",
      "optional": false,
      "description": "What made the problem hard."
    },
    "decisions": {
      "type": "CaseStudyDecision[]",
      "optional": false,
      "description": "The decisions that shaped the result."
    },
    "evidence": {
      "type": "CaseStudyEvidence[]",
      "optional": false,
      "description": "Claims with an explicit source label; nothing is presented unsourced."
    },
    "title": {
      "type": "string",
      "optional": true,
      "description": "Section heading. Defaults to the translated \"At a glance\"."
    },
    "maxWidth": {
      "type": "union",
      "values": [
        "sm",
        "md",
        "lg",
        "full",
        "xl"
      ],
      "optional": true,
      "description": "Maximum content width."
    },
    "className": {
      "type": "string",
      "optional": true,
      "description": "Additional class name applied to the section root."
    }
  },
  "accessibility": {
    "criteria": [
      {
        "id": "axe-no-violations",
        "statement": "Required stories produce no axe violations at the configured severity.",
        "verification": "automated",
        "wcag": [
          "2.5.8"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:28:00.980Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:14:28.930Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:21:12.988Z",
            "passed": true,
            "runner": "local-audit-fixes"
          }
        ]
      },
      {
        "id": "accessibility-tree",
        "statement": "The accessibility tree (role, name, state) matches the committed snapshot for every required story.",
        "verification": "automated",
        "wcag": [
          "1.3.1",
          "4.1.2"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:28:00.980Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:34:06.036Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:14:28.930Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:21:12.988Z",
            "passed": true,
            "runner": "local-audit-fixes"
          }
        ]
      },
      {
        "id": "forced-colors-real-browser",
        "statement": "The component remains legible and operable under a real browser forced-colors: active pass.",
        "verification": "automated",
        "check": "npm run test:stories:hc",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/patterns/CaseStudySummary/__a11y-evidence__/patterns-casestudysummary-default.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:34:06.036Z",
            "passed": true,
            "runner": "local-audit-fixes"
          }
        ]
      },
      {
        "id": "aria-requirements",
        "statement": "Documented ARIA roles, states, and properties are present on the rendered output.",
        "verification": "unverified",
        "wcag": [
          "4.1.2"
        ],
        "note": "No exportable evidence record for this check; re-run the check to capture one."
      },
      {
        "id": "human-a11y-review",
        "statement": "A human completed an end-to-end accessibility review of this component.",
        "verification": "unverified",
        "note": "Marked reviewed, but no review date was recorded."
      }
    ]
  },
  "source": [
    "../../../nextjs-app/shared/patterns/CaseStudySummary/CaseStudySummary.module.css",
    "../../../nextjs-app/shared/patterns/CaseStudySummary/CaseStudySummary.tsx"
  ]
}
