{
  "description": "Test vectors for prepared-board.canonical-json.v1 and prepared-board.decision-record.v1. contentHash = \"sha256:\" + hex SHA-256 of the UTF-8 bytes of canonical. inputJson is JSON text so that values like -0 survive. Docs: https://preparedboard.com/standard",
  "canonicalization": [
    {
      "name": "keys sorted, whitespace removed",
      "inputJson": "{ \"b\": 1, \"a\": [3, 2, 1], \"c\": { \"z\": null, \"y\": true } }",
      "canonical": "{\"a\":[3,2,1],\"b\":1,\"c\":{\"y\":true,\"z\":null}}",
      "contentHash": "sha256:abebfca918a9c06d400778d9ef17e4f437dcee8676e2d9ab95561c8202191bea"
    },
    {
      "name": "keys sorted by UTF-16 code units, not code points",
      "inputJson": "{\"\\uff5e\": 4, \"\\ud83d\\ude00\": 3, \"\\u00e9\": 2, \"z\": 1}",
      "canonical": "{\"z\":1,\"é\":2,\"😀\":3,\"～\":4}",
      "contentHash": "sha256:ab8db91abab4c66ff194571dc6d7c6e81b4a88f782cb0130ad225ab3b3b4d367"
    },
    {
      "name": "non-ASCII text kept as UTF-8, not escaped",
      "inputJson": "{\"title\": \"Café — Überprüfung 日本 😀\"}",
      "canonical": "{\"title\":\"Café — Überprüfung 日本 😀\"}",
      "contentHash": "sha256:d658c3a4a9f5de4a2c6f509f6e5396b1ece7c61b8ea7f1e37d972c2cd6f66dbd"
    },
    {
      "name": "control characters, quote and backslash escaped like JSON.stringify",
      "inputJson": "{\"s\": \"line1\\nline2\\t\\\"q\\\" \\\\ \\u0001 \\u001f \\u007f\"}",
      "canonical": "{\"s\":\"line1\\nline2\\t\\\"q\\\" \\\\ \\u0001 \\u001f \"}",
      "contentHash": "sha256:c832cc52038bfdc7ba806bf1e3aadc869d40554731ac5d93133d28e2adb4c724"
    },
    {
      "name": "lone surrogate escaped",
      "inputJson": "{\"s\": \"\\ud800\"}",
      "canonical": "{\"s\":\"\\ud800\"}",
      "contentHash": "sha256:d06a70a1ca4d3ac4099cd5f35ecbb551be652247e0950c05790e8f0c58010851"
    },
    {
      "name": "negative zero written as 0",
      "inputJson": "{\"n\": -0, \"m\": -5, \"big\": 9007199254740991}",
      "canonical": "{\"big\":9007199254740991,\"m\":-5,\"n\":0}",
      "contentHash": "sha256:ec0e9ecce050e593a4ccc441fbf8f194d10956592412cb63c7deb482d3ac864c"
    },
    {
      "name": "empty containers",
      "inputJson": "{\"a\": {}, \"b\": [], \"c\": \"\"}",
      "canonical": "{\"a\":{},\"b\":[],\"c\":\"\"}",
      "contentHash": "sha256:e052004170cc85d084722ffe760c499548014bfdbdf5275548b688255770dfc2"
    }
  ],
  "rejected": [
    {
      "name": "fractional number",
      "inputJson": "{\"n\": 1.5}",
      "reason": "canonical JSON allows integers only, got 1.5"
    },
    {
      "name": "integer beyond 2^53 − 1",
      "inputJson": "{\"n\": 9007199254740993}",
      "reason": "canonical JSON allows integers only, got 9007199254740992"
    },
    {
      "name": "exponent that overflows to Infinity",
      "inputJson": "{\"n\": 1e400}",
      "reason": "canonical JSON allows integers only, got Infinity"
    }
  ],
  "records": [
    {
      "name": "public demo seal (/verify/demo)",
      "record": {
        "schema": "prepared-board.decision-record.v1",
        "decisionId": "sample-hi-2026-07",
        "boardId": "sample-halvorsen-board",
        "version": 1,
        "title": "Approve $6.0M venture debt facility with Northgate Capital",
        "motionText": "RESOLVED, that the Board approves the Company entering into a $6.0M senior secured term loan facility with Northgate Capital on substantially the terms in the term sheet dated June 30, 2026 (Pack item 4.1), and authorizes the CEO and CFO to execute the definitive loan agreement.",
        "outcome": "CLOSED",
        "closedAt": "2026-08-04T18:30:00.000Z",
        "votes": {
          "for": 7,
          "against": 0,
          "abstain": 0,
          "recused": 1
        },
        "voteMethod": "ROLL_CALL",
        "meetingId": "sample-meeting",
        "evidence": [
          {
            "documentId": "sample-doc-1",
            "sha256": "sha256:bf61578d7f742ade1b2bc2d8a9181ad9e7aa50b14528281d160d0f36f8121b85"
          },
          {
            "documentId": "sample-doc-2",
            "sha256": "sha256:282c8102b212073c345deb060109b6ba31390120ecc8b39638572589729332c9"
          },
          {
            "documentId": "sample-doc-3",
            "sha256": "sha256:2bc407216759c0f52e975d980911ef2c56f0c4432fbc606293431ee5f9eb14f2"
          },
          {
            "documentId": "sample-doc-4",
            "sha256": "sha256:cfe8c70f9d1ecf973a32b542691ceb60a6077aabd81020bc1c8f23e316bd0626"
          }
        ]
      },
      "canonical": "{\"boardId\":\"sample-halvorsen-board\",\"closedAt\":\"2026-08-04T18:30:00.000Z\",\"decisionId\":\"sample-hi-2026-07\",\"evidence\":[{\"documentId\":\"sample-doc-1\",\"sha256\":\"sha256:bf61578d7f742ade1b2bc2d8a9181ad9e7aa50b14528281d160d0f36f8121b85\"},{\"documentId\":\"sample-doc-2\",\"sha256\":\"sha256:282c8102b212073c345deb060109b6ba31390120ecc8b39638572589729332c9\"},{\"documentId\":\"sample-doc-3\",\"sha256\":\"sha256:2bc407216759c0f52e975d980911ef2c56f0c4432fbc606293431ee5f9eb14f2\"},{\"documentId\":\"sample-doc-4\",\"sha256\":\"sha256:cfe8c70f9d1ecf973a32b542691ceb60a6077aabd81020bc1c8f23e316bd0626\"}],\"meetingId\":\"sample-meeting\",\"motionText\":\"RESOLVED, that the Board approves the Company entering into a $6.0M senior secured term loan facility with Northgate Capital on substantially the terms in the term sheet dated June 30, 2026 (Pack item 4.1), and authorizes the CEO and CFO to execute the definitive loan agreement.\",\"outcome\":\"CLOSED\",\"schema\":\"prepared-board.decision-record.v1\",\"title\":\"Approve $6.0M venture debt facility with Northgate Capital\",\"version\":1,\"voteMethod\":\"ROLL_CALL\",\"votes\":{\"abstain\":0,\"against\":0,\"for\":7,\"recused\":1}}",
      "contentHash": "sha256:c1bfec831c6bc7da110ead36bab260fe8a656660b6163d3f248529c1070caeb6"
    },
    {
      "name": "example bundle example-seal-1",
      "record": {
        "schema": "prepared-board.decision-record.v1",
        "decisionId": "example-dec-001",
        "boardId": "example-board",
        "version": 1,
        "title": "Approve FY2027 operating budget (fictional)",
        "motionText": "RESOLVED, that the FY2027 operating budget presented to the board is approved.",
        "outcome": "ADOPTED",
        "closedAt": "2026-09-15T17:30:00.000Z",
        "votes": {
          "for": 4,
          "against": 1,
          "abstain": 0,
          "recused": 0
        },
        "voteMethod": "ROLL_CALL",
        "meetingId": "example-meeting-2026-09",
        "evidence": [
          {
            "documentId": "example-dec-001-doc-1",
            "sha256": "sha256:2d343bea330e5850058f1b1f2e3e9f7a0ff9e368a8b696588b464fee45977920"
          },
          {
            "documentId": "example-dec-001-doc-2",
            "sha256": "sha256:cd7737c5c10761e2e647a064937f7beee0dcfa71c790e3e8070bf3b9d9d3f986"
          }
        ]
      },
      "canonical": "{\"boardId\":\"example-board\",\"closedAt\":\"2026-09-15T17:30:00.000Z\",\"decisionId\":\"example-dec-001\",\"evidence\":[{\"documentId\":\"example-dec-001-doc-1\",\"sha256\":\"sha256:2d343bea330e5850058f1b1f2e3e9f7a0ff9e368a8b696588b464fee45977920\"},{\"documentId\":\"example-dec-001-doc-2\",\"sha256\":\"sha256:cd7737c5c10761e2e647a064937f7beee0dcfa71c790e3e8070bf3b9d9d3f986\"}],\"meetingId\":\"example-meeting-2026-09\",\"motionText\":\"RESOLVED, that the FY2027 operating budget presented to the board is approved.\",\"outcome\":\"ADOPTED\",\"schema\":\"prepared-board.decision-record.v1\",\"title\":\"Approve FY2027 operating budget (fictional)\",\"version\":1,\"voteMethod\":\"ROLL_CALL\",\"votes\":{\"abstain\":0,\"against\":1,\"for\":4,\"recused\":0}}",
      "contentHash": "sha256:78adf91bbdf847d0c4e53d7ed8b211b2139eb31ada5a8a44841f8a6b38c6224c"
    },
    {
      "name": "example bundle example-seal-2",
      "record": {
        "schema": "prepared-board.decision-record.v1",
        "decisionId": "example-dec-002",
        "boardId": "example-board",
        "version": 1,
        "title": "Adopt updated conflict of interest policy (fictional)",
        "motionText": "RESOLVED, that the conflict of interest policy attached as Exhibit A is adopted.",
        "outcome": "CLOSED",
        "closedAt": "2026-09-22T14:00:00.000Z",
        "votes": null,
        "voteMethod": "UNANIMOUS_WRITTEN_CONSENT",
        "meetingId": null,
        "evidence": [
          {
            "documentId": "example-dec-002-doc-1",
            "sha256": "sha256:d9060927692da7abe9a906c52e8bfb986bd9f6dd1ba77937436d252c9cf859b6"
          }
        ]
      },
      "canonical": "{\"boardId\":\"example-board\",\"closedAt\":\"2026-09-22T14:00:00.000Z\",\"decisionId\":\"example-dec-002\",\"evidence\":[{\"documentId\":\"example-dec-002-doc-1\",\"sha256\":\"sha256:d9060927692da7abe9a906c52e8bfb986bd9f6dd1ba77937436d252c9cf859b6\"}],\"meetingId\":null,\"motionText\":\"RESOLVED, that the conflict of interest policy attached as Exhibit A is adopted.\",\"outcome\":\"CLOSED\",\"schema\":\"prepared-board.decision-record.v1\",\"title\":\"Adopt updated conflict of interest policy (fictional)\",\"version\":1,\"voteMethod\":\"UNANIMOUS_WRITTEN_CONSENT\",\"votes\":null}",
      "contentHash": "sha256:07331205ce2cd4fda7b913dd59a0405ee51cf525c4ac213585893363d41046e0"
    },
    {
      "name": "example bundle example-seal-3",
      "record": {
        "schema": "prepared-board.decision-record.v1",
        "decisionId": "example-dec-001",
        "boardId": "example-board",
        "version": 2,
        "title": "Approve FY2027 operating budget (fictional)",
        "motionText": "RESOLVED, that the FY2027 operating budget presented to the board is approved.",
        "outcome": "SUPERSEDED",
        "closedAt": "2026-10-06T16:00:00.000Z",
        "votes": {
          "for": 4,
          "against": 1,
          "abstain": 0,
          "recused": 0
        },
        "voteMethod": "ROLL_CALL",
        "meetingId": "example-meeting-2026-09",
        "evidence": [
          {
            "documentId": "example-dec-001-doc-1",
            "sha256": "sha256:2d343bea330e5850058f1b1f2e3e9f7a0ff9e368a8b696588b464fee45977920"
          },
          {
            "documentId": "example-dec-001-doc-2",
            "sha256": "sha256:cd7737c5c10761e2e647a064937f7beee0dcfa71c790e3e8070bf3b9d9d3f986"
          }
        ]
      },
      "canonical": "{\"boardId\":\"example-board\",\"closedAt\":\"2026-10-06T16:00:00.000Z\",\"decisionId\":\"example-dec-001\",\"evidence\":[{\"documentId\":\"example-dec-001-doc-1\",\"sha256\":\"sha256:2d343bea330e5850058f1b1f2e3e9f7a0ff9e368a8b696588b464fee45977920\"},{\"documentId\":\"example-dec-001-doc-2\",\"sha256\":\"sha256:cd7737c5c10761e2e647a064937f7beee0dcfa71c790e3e8070bf3b9d9d3f986\"}],\"meetingId\":\"example-meeting-2026-09\",\"motionText\":\"RESOLVED, that the FY2027 operating budget presented to the board is approved.\",\"outcome\":\"SUPERSEDED\",\"schema\":\"prepared-board.decision-record.v1\",\"title\":\"Approve FY2027 operating budget (fictional)\",\"version\":2,\"voteMethod\":\"ROLL_CALL\",\"votes\":{\"abstain\":0,\"against\":1,\"for\":4,\"recused\":0}}",
      "contentHash": "sha256:60655622053f3ce785a995e6a1e8fd8e835bb9b82ae417af3b73649c663a5c68"
    }
  ]
}
