{
  "spec": "RGE-1 (Registry-Gated Entitlements, Draft v0.1)",
  "generated_by": "spec/rge-1/gen-vectors.mjs (deterministic: fixed seeds, no clock, no randomness)",
  "note": "All keys are derived from fixed test seeds (0x11.., 0x44.., 0x55.., 0x66..) and MUST NOT be used in production. Every organisation, domain and licence identifier is a placeholder. Regenerating with the same generator yields byte-identical output.",
  "keys": {
    "gate_test_seed_hex": "4444444444444444444444444444444444444444444444444444444444444444",
    "gate_public_key": "11l5O7wTooGagnx2rbb7qKSa7gB/SfLQmS2ZuCWtLEg=",
    "licensor_declarant_public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
    "anchor_operator_public_key": "0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc=",
    "outsider_public_key": "NLTZBDFWy23PC+sKKUm3VZyUDSvLbb6MU6mzAnjjp0Y="
  },
  "gate_config": {
    "issuer": "https://entitlements.example-licensor.com",
    "key_id": "gate-test-key-1",
    "configured_ttl_seconds": 86400,
    "max_staleness_seconds": 172800,
    "use": "ai-input",
    "subject": {
      "scope": "domain",
      "domain": "example-licensor.com"
    },
    "declarant_keys": [
      "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
    ],
    "anchor_keys": [
      "0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc="
    ]
  },
  "anchors": {
    "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU": {
      "anchored_at": "2026-02-20T18:00:00Z",
      "anchored_payload": {
        "adp_version": "1.0",
        "type": "anchor-batch",
        "batch_id": "01JRGE00000000000000BATCH1",
        "merkle_root_sha256": "cbb15fba728ce5fa9b0baeace4643c9a9abc520eb5a53558bb43d6b5ecaa47b8",
        "leaf_count": 4,
        "tree_construction": "rfc6962",
        "anchor_signature": {
          "alg": "ed25519",
          "canonical_message": "adp:anchor:v1|01JRGE00000000000000BATCH1|cbb15fba728ce5fa9b0baeace4643c9a9abc520eb5a53558bb43d6b5ecaa47b8|4",
          "signature": "1UlZduvJFNkqxNlUCaV5X2dePo+KcRJUubGh9VTgHFklyGSVCFLQJi7OpsSzCv4sWdgUG7bl3E8egoZoNb2hDA==",
          "public_key": "0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc="
        }
      }
    },
    "KDBKaAxkXU5tuAEQ1gqu5UAjMZtpdPbi84fFEJji7Y8": {
      "anchored_at": "2027-02-15T12:00:00Z",
      "anchored_payload": {
        "adp_version": "1.0",
        "type": "anchor-batch",
        "batch_id": "01JRGE00000000000000BATCH2",
        "merkle_root_sha256": "2bb44038872818d8eb4714bfa6ea2334019444e862384cde1989852545388ebb",
        "leaf_count": 1,
        "tree_construction": "rfc6962",
        "anchor_signature": {
          "alg": "ed25519",
          "canonical_message": "adp:anchor:v1|01JRGE00000000000000BATCH2|2bb44038872818d8eb4714bfa6ea2334019444e862384cde1989852545388ebb|1",
          "signature": "+ybTKV3FMEdqcJBGSt4ECk/2bCWx90873HXmgwNNLiyEyAhHq0CJVER8UNjh/W+SmAxHmtkFW8St4wy/1bjPAg==",
          "public_key": "0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc="
        }
      }
    },
    "Bd4pnaONUF5HITTWcsgANCyKSmmIUk3G4Eha7NbIgpg": {
      "anchored_at": "2026-07-01T09:00:00Z",
      "anchored_payload": {
        "adp_version": "1.0",
        "type": "anchor-batch",
        "batch_id": "01JRGE00000000000000BATCH3",
        "merkle_root_sha256": "d813dbf1dabd581d3f6fadd0fd45788da7588220370e7afa4302014551309c94",
        "leaf_count": 1,
        "tree_construction": "rfc6962",
        "anchor_signature": {
          "alg": "ed25519",
          "canonical_message": "adp:anchor:v1|01JRGE00000000000000BATCH3|d813dbf1dabd581d3f6fadd0fd45788da7588220370e7afa4302014551309c94|1",
          "signature": "veok5CL/CKK0JpE1iCskfMSkXE1lFqMPjGi4ljDZ0pvsyKw4RmHzaM75lsAy/4wMXOU4BO55Q5U28rtGEuhtDw==",
          "public_key": "0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc="
        }
      }
    },
    "bmv02XfHL6H8Vp04LiC0l1i0BE-bWNjs2pQaC1xxn_4": {
      "anchored_at": "2026-07-02T09:00:00Z",
      "anchored_payload": {
        "adp_version": "1.0",
        "type": "anchor-batch",
        "batch_id": "01JRGE00000000000000BATCH4",
        "merkle_root_sha256": "a13dd77c2fc960139bfe744d26ecb3e77f369d65f4234944a38ff67c191b6547",
        "leaf_count": 1,
        "tree_construction": "rfc6962",
        "anchor_signature": {
          "alg": "ed25519",
          "canonical_message": "adp:anchor:v1|01JRGE00000000000000BATCH4|a13dd77c2fc960139bfe744d26ecb3e77f369d65f4234944a38ff67c191b6547|1",
          "signature": "lR+oxCsqkQhyObq1rFjG65U/8188GZhVcIFDJGCU71hUayuyB3vo/AoOSX0DlUICL8/DKl2qEZIP7pTokrOiDw==",
          "public_key": "0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc="
        }
      }
    }
  },
  "bundles": {
    "G1": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000GRANT1",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          },
          {
            "use": "ai-input",
            "actor": "rge:licensee:example-licensee",
            "status": "permitted",
            "terms": {
              "license": "EX-ENT-2026-001",
              "license_url": "https://example-licensor.com/licenses/EX-ENT-2026-001",
              "contact": "licensing@example-licensor.com",
              "valid_from": "2026-03-01T00:00:00Z",
              "grace_period_seconds": 0,
              "entitlement": {
                "gate": "https://entitlements.example-licensor.com",
                "scopes": [
                  "retrieve:news",
                  "retrieve:archive"
                ],
                "max_qps": 50
              },
              "valid_until": "2027-03-01T00:00:00Z"
            }
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "04becf7f6c94f55f24667acd3559786fd08998b6357f1f5b23105621f09ae612"
        },
        "effective_from": "2026-03-01T00:00:00Z",
        "issued_at": "2026-02-20T17:00:00Z",
        "supersedes": null
      },
      "canonical_declaration_sha256": "5c0af351ee0e84247143abb991fdbf848f513b3a175e9f9354948a8a760683c7",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000GRANT1|5c0af351ee0e84247143abb991fdbf848f513b3a175e9f9354948a8a760683c7",
        "signature": "rUFGtDPl4eKhnbWwe3ePflg8yKWNRzgSdhRTG6W6Ow4IxQO/y6Kgz1fpehQypQuh+9ulOcIFAtVobIQlYZO7Dw==",
        "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
      },
      "leaf_hash_sha256": "a1618717a8572f22c7f075c27e202bb2b27883aa25115f045fc0f28458238395",
      "leaf_index": 0,
      "tree_size": 4,
      "merkle_proof": [
        "4ddbe3e365d390b26fe4740aebc51a5d263afe35b6951bf9587e437ae586e507",
        "cc874090a38d1f9ef3c83ecba7f9460424fa6211869eda3b9d24b844259d88ad"
      ],
      "merkle_root_sha256": "cbb15fba728ce5fa9b0baeace4643c9a9abc520eb5a53558bb43d6b5ecaa47b8",
      "anchor": {
        "arweave_tx_id": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU"
      }
    },
    "GB": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000GRANTB",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          },
          {
            "use": "ai-input",
            "actor": "rge:licensee:example-licensee-b",
            "status": "permitted",
            "terms": {
              "license": "EX-ENT-2026-002",
              "license_url": "https://example-licensor.com/licenses/EX-ENT-2026-002",
              "contact": "licensing@example-licensor.com",
              "valid_from": "2026-03-01T00:00:00Z",
              "grace_period_seconds": 3600,
              "entitlement": {
                "gate": "https://entitlements.example-licensor.com",
                "scopes": [
                  "retrieve:news"
                ],
                "max_qps": 50
              },
              "valid_until": "2026-09-01T00:00:00Z"
            }
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "ba69bd6b33082c89ee5cb7e8dd49117a5619e4478deac981b4efee440080dbf3"
        },
        "effective_from": "2026-03-01T00:00:00Z",
        "issued_at": "2026-02-20T17:00:00Z",
        "supersedes": null
      },
      "canonical_declaration_sha256": "c160a1aac5052ea458b20500ee7af25938f98cdd51060ddd04f511613cc19200",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000GRANTB|c160a1aac5052ea458b20500ee7af25938f98cdd51060ddd04f511613cc19200",
        "signature": "/+IupK3bJkZx2j4A7Wa614YJbyqOohFNNHPeD2U3qKrjXLMK7w4aV0WS9LR/CIvxNah1ssg2qRLCo9PF20mNCA==",
        "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
      },
      "leaf_hash_sha256": "4ddbe3e365d390b26fe4740aebc51a5d263afe35b6951bf9587e437ae586e507",
      "leaf_index": 1,
      "tree_size": 4,
      "merkle_proof": [
        "a1618717a8572f22c7f075c27e202bb2b27883aa25115f045fc0f28458238395",
        "cc874090a38d1f9ef3c83ecba7f9460424fa6211869eda3b9d24b844259d88ad"
      ],
      "merkle_root_sha256": "cbb15fba728ce5fa9b0baeace4643c9a9abc520eb5a53558bb43d6b5ecaa47b8",
      "anchor": {
        "arweave_tx_id": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU"
      }
    },
    "GM": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000GRANTM",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          },
          {
            "use": "ai-input",
            "actor": "rge:licensee:example-licensee-c",
            "status": "permitted",
            "terms": {
              "license": "EX-ENT-2026-003",
              "license_url": "https://example-licensor.com/licenses/EX-ENT-2026-003",
              "contact": "licensing@example-licensor.com",
              "valid_from": "2026-03-01T00:00:00Z",
              "grace_period_seconds": 0,
              "entitlement": {
                "gate": "https://entitlements.example-licensor.com",
                "scopes": [
                  "retrieve:news"
                ],
                "max_qps": 50
              }
            }
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "11a98876081a5b2d914c875c52c553db31ec8044b0fa857632fe6935bce46ffc"
        },
        "effective_from": "2026-03-01T00:00:00Z",
        "issued_at": "2026-02-20T17:00:00Z",
        "supersedes": null
      },
      "canonical_declaration_sha256": "546eeb18d5ea8b6fd55ed8cbe9c62cfcc735424ee4753401028a168be77ae89d",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000GRANTM|546eeb18d5ea8b6fd55ed8cbe9c62cfcc735424ee4753401028a168be77ae89d",
        "signature": "fXOv/tSoiiQMQrSLTMq6O+ioAcsm60u81yFVrU+dH78Aiz/AdFr/2XwUmHf5ggHk8ci9vn29SFM4W/qkEenkCA==",
        "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
      },
      "leaf_hash_sha256": "6f7e85dc96edf2b49ae1605484c11cc663884e84f898cd92d34a099cd5889a00",
      "leaf_index": 2,
      "tree_size": 4,
      "merkle_proof": [
        "7ad0cae251060ce85f3f26822d71e8be64e94fc0868f247482c896489a97ef8b",
        "6f5759783dcb31f1ce0df0a9db3490edb50d7ea7839bb963d2f88a3c638b7006"
      ],
      "merkle_root_sha256": "cbb15fba728ce5fa9b0baeace4643c9a9abc520eb5a53558bb43d6b5ecaa47b8",
      "anchor": {
        "arweave_tx_id": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU"
      }
    },
    "GO": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000GRANTO",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          },
          {
            "use": "ai-input",
            "actor": "rge:licensee:example-licensee-d",
            "status": "permitted",
            "terms": {
              "license": "EX-ENT-2026-004",
              "license_url": "https://example-licensor.com/licenses/EX-ENT-2026-004",
              "contact": "licensing@example-licensor.com",
              "valid_from": "2026-03-01T00:00:00Z",
              "grace_period_seconds": 0,
              "entitlement": {
                "gate": "https://entitlements.another-gate.example",
                "scopes": [
                  "retrieve:news"
                ],
                "max_qps": 50
              },
              "valid_until": "2027-03-01T00:00:00Z"
            }
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "940d373213a9bcebd08b2587297759a09898177a0d06edfeed38bc99f3cdeeb2"
        },
        "effective_from": "2026-03-01T00:00:00Z",
        "issued_at": "2026-02-20T17:00:00Z",
        "supersedes": null
      },
      "canonical_declaration_sha256": "c6fbcc259e1aec457a5a6ee9754870576e0fc94c2f2ff30b4d5b49ad5e284aa9",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000GRANTO|c6fbcc259e1aec457a5a6ee9754870576e0fc94c2f2ff30b4d5b49ad5e284aa9",
        "signature": "vUuAxuXgf1Hie1Iex609PYdXTOKeuupiEN7xtSOOLcYpflNmQRMySwrp6CzewFg+aClYU0QUmp/mxVUUvdXUAQ==",
        "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
      },
      "leaf_hash_sha256": "7ad0cae251060ce85f3f26822d71e8be64e94fc0868f247482c896489a97ef8b",
      "leaf_index": 3,
      "tree_size": 4,
      "merkle_proof": [
        "6f7e85dc96edf2b49ae1605484c11cc663884e84f898cd92d34a099cd5889a00",
        "6f5759783dcb31f1ce0df0a9db3490edb50d7ea7839bb963d2f88a3c638b7006"
      ],
      "merkle_root_sha256": "cbb15fba728ce5fa9b0baeace4643c9a9abc520eb5a53558bb43d6b5ecaa47b8",
      "anchor": {
        "arweave_tx_id": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU"
      }
    },
    "G2": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000GRANT2",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          },
          {
            "use": "ai-input",
            "actor": "rge:licensee:example-licensee",
            "status": "permitted",
            "terms": {
              "license": "EX-ENT-2027-001",
              "license_url": "https://example-licensor.com/licenses/EX-ENT-2027-001",
              "contact": "licensing@example-licensor.com",
              "valid_from": "2027-03-01T00:00:00Z",
              "grace_period_seconds": 0,
              "entitlement": {
                "gate": "https://entitlements.example-licensor.com",
                "scopes": [
                  "retrieve:news",
                  "retrieve:archive"
                ],
                "max_qps": 50
              },
              "valid_until": "2028-03-01T00:00:00Z"
            }
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "25c56cf886ee02c699527a10d15526393935e586d47d6ca9a63aa93a68404c15"
        },
        "effective_from": "2027-03-01T00:00:00Z",
        "issued_at": "2027-02-15T11:00:00Z",
        "supersedes": "01JRGE0000000000000GRANT1"
      },
      "canonical_declaration_sha256": "4ac407c70f5bd1dbd8d392e5dd58711c259298d84be21f4ac47d628fce6d32cd",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000GRANT2|4ac407c70f5bd1dbd8d392e5dd58711c259298d84be21f4ac47d628fce6d32cd",
        "signature": "ciCMbOQvmSWz3whl3i90xcXPWLhA4YCqeUF4t9FRyfEYN/jNu5ZqKIw28o6XQwi9jZap68vb3IXZ5nmlmi1KDQ==",
        "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
      },
      "leaf_hash_sha256": "2bb44038872818d8eb4714bfa6ea2334019444e862384cde1989852545388ebb",
      "leaf_index": 0,
      "tree_size": 1,
      "merkle_proof": [],
      "merkle_root_sha256": "2bb44038872818d8eb4714bfa6ea2334019444e862384cde1989852545388ebb",
      "anchor": {
        "arweave_tx_id": "KDBKaAxkXU5tuAEQ1gqu5UAjMZtpdPbi84fFEJji7Y8"
      }
    },
    "G3": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000REVOKE",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          },
          {
            "use": "ai-input",
            "actor": "rge:licensee:example-licensee",
            "status": "reserved"
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "85feb8cac98b0af90872e31515cfedf18a8e0b9015495d95202d741421568caf"
        },
        "effective_from": "2026-07-01T08:00:00Z",
        "issued_at": "2026-07-01T08:00:00Z",
        "supersedes": "01JRGE0000000000000GRANT1"
      },
      "canonical_declaration_sha256": "37e91db845ba8418e5f0ec994c965ee4dc0b89b566d9aa39514a3d70f82cfdb3",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000REVOKE|37e91db845ba8418e5f0ec994c965ee4dc0b89b566d9aa39514a3d70f82cfdb3",
        "signature": "JfLv8NECKWHjDcIV984pFB1IB1F0NmcUmV5mqH6Lah73TbR15FnkRdhxusEVgZPVFMBbZetASO1lWqRnmzn8Dg==",
        "public_key": "xoImN8fTEOxXYnvgC6JZ0lN0n0qvZERwz/vlOjX3MkI="
      },
      "leaf_hash_sha256": "d813dbf1dabd581d3f6fadd0fd45788da7588220370e7afa4302014551309c94",
      "leaf_index": 0,
      "tree_size": 1,
      "merkle_proof": [],
      "merkle_root_sha256": "d813dbf1dabd581d3f6fadd0fd45788da7588220370e7afa4302014551309c94",
      "anchor": {
        "arweave_tx_id": "Bd4pnaONUF5HITTWcsgANCyKSmmIUk3G4Eha7NbIgpg"
      }
    },
    "GX": {
      "declaration": {
        "adp_version": "1.0",
        "schema_version": 2,
        "declaration_id": "01JRGE0000000000000FOREIGN",
        "subject": {
          "scope": "domain",
          "domain": "example-licensor.com"
        },
        "reservations": [
          {
            "use": "ai-input",
            "actor": "any",
            "status": "reserved"
          }
        ],
        "declarant": {
          "id": "did:web:example-licensor.com",
          "public_key": "NLTZBDFWy23PC+sKKUm3VZyUDSvLbb6MU6mzAnjjp0Y=",
          "public_key_alg": "ed25519"
        },
        "authority": {
          "method": "dns-01",
          "proof": "_adp-challenge.example-licensor.com",
          "proof_digest_sha256": "2e4cb65d04f940b516cbe543ca0d4c9cbe005d4de5865fcabe33c71f51e97ab3"
        },
        "effective_from": "2026-07-02T08:00:00Z",
        "issued_at": "2026-07-02T08:00:00Z",
        "supersedes": "01JRGE0000000000000GRANT1"
      },
      "canonical_declaration_sha256": "e89715b4da1232c921adc5f6d156c9e291a51e9bd6f1f16062d580eda2849566",
      "declarant_proof": {
        "type": "declarant-signature",
        "alg": "ed25519",
        "canonical_message": "adp:declaration:v1|01JRGE0000000000000FOREIGN|e89715b4da1232c921adc5f6d156c9e291a51e9bd6f1f16062d580eda2849566",
        "signature": "r0Uu0LCYnwNS3KbNFX3MH26u3Hkw4iE0v8ud/VB+QnStoR+weUKmrLs1KHLtc7L8w8mCkyY9f+iCjtmxGwg3Aw==",
        "public_key": "NLTZBDFWy23PC+sKKUm3VZyUDSvLbb6MU6mzAnjjp0Y="
      },
      "leaf_hash_sha256": "a13dd77c2fc960139bfe744d26ecb3e77f369d65f4234944a38ff67c191b6547",
      "leaf_index": 0,
      "tree_size": 1,
      "merkle_proof": [],
      "merkle_root_sha256": "a13dd77c2fc960139bfe744d26ecb3e77f369d65f4234944a38ff67c191b6547",
      "anchor": {
        "arweave_tx_id": "bmv02XfHL6H8Vp04LiC0l1i0BE-bWNjs2pQaC1xxn_4"
      }
    }
  },
  "scenarios": [
    {
      "name": "before the window opens",
      "rule": "§5 step 4",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-02-25T00:00:00Z",
      "fresh_at": "2026-02-25T00:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "RESERVED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "mid-window issuance",
      "rule": "§6.2 step 3",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 200,
        "decision": "ALLOW",
        "state": "LIVE",
        "error": null,
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": 86400,
        "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA"
      }
    },
    {
      "name": "last hour: the token is cut to the window",
      "rule": "§6.2 step 3",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2027-02-28T23:00:00Z",
      "fresh_at": "2027-02-28T23:00:00Z",
      "expect": {
        "http_status": 200,
        "decision": "ALLOW",
        "state": "LIVE",
        "error": null,
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": 3600,
        "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE4MDM4NTkyMDAsImlhdCI6MTgwMzg1NTYwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiI0NTg1ZjAxM2MwZDhhNGQxNWI1ZWI3NTc5MDY0NThiZiIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.QDXh8PYnVgK5rnu_zDUFgj1LZdm5kf-bHzQTdUidFcWi4wwQDTsZ_MWcJE8B9Iw268ZS8WHkiWaZDQlmAt7-Cg"
      }
    },
    {
      "name": "at valid_until exactly: the window is half-open",
      "rule": "§4.2",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2027-03-01T00:00:00Z",
      "fresh_at": "2027-03-01T00:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "EXPIRED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "inside the grace period",
      "rule": "§4.3",
      "bundles": [
        "GB"
      ],
      "actor": "rge:licensee:example-licensee-b",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-09-01T00:30:00Z",
      "fresh_at": "2026-09-01T00:30:00Z",
      "expect": {
        "http_status": 200,
        "decision": "ALLOW",
        "state": "LIVE",
        "error": null,
        "authorizing_declaration": "01JRGE0000000000000GRANTB",
        "expires_in": 1800,
        "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVEIiLCJhZHBfbGVhZiI6IjRkZGJlM2UzNjVkMzkwYjI2ZmU0NzQwYWViYzUxYTVkMjYzYWZlMzViNjk1MWJmOTU4N2U0MzdhZTU4NmU1MDciLCJleHAiOjE3ODgyMjQ0MDAsImlhdCI6MTc4ODIyMjYwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiJjNzc4MGQ1ZGY4MmVjNWVmOWEzMDE3OTJmZjY3NjBjYyIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlLWIifQ.iivP3kXDqOwsP0o2oBqvEzNclEdZndDcidWkkXQ0LFroURHwYoWmCEQKJCslFiHCtciGTvkiGLQ8aHiN_oDBBw"
      }
    },
    {
      "name": "grace period over",
      "rule": "§4.3",
      "bundles": [
        "GB"
      ],
      "actor": "rge:licensee:example-licensee-b",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-09-01T01:00:00Z",
      "fresh_at": "2026-09-01T01:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "EXPIRED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANTB",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "renewal: the superseding grant carries access across the boundary",
      "rule": "§6.4",
      "bundles": [
        "G1",
        "G2"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2027-03-01T00:00:00Z",
      "fresh_at": "2027-03-01T00:00:00Z",
      "expect": {
        "http_status": 200,
        "decision": "ALLOW",
        "state": "LIVE",
        "error": null,
        "authorizing_declaration": "01JRGE0000000000000GRANT2",
        "expires_in": 86400,
        "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDIiLCJhZHBfbGVhZiI6IjJiYjQ0MDM4ODcyODE4ZDhlYjQ3MTRiZmE2ZWEyMzM0MDE5NDQ0ZTg2MjM4NGNkZTE5ODk4NTI1NDUzODhlYmIiLCJleHAiOjE4MDM5NDU2MDAsImlhdCI6MTgwMzg1OTIwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiI3MzQ2MjRmZGQyODU2YTU4MTA0Yjk3MjBjMThkN2M5YSIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.62Ye70Ld7vKdoN-1vlfL7bw8Yl-Qqf9n_E-rv-33YfDMGi2I9okWeF0592mOFPUsmAAyOPSpEnYwcVe7AAlDDA"
      }
    },
    {
      "name": "breach revocation",
      "rule": "§5 step 4",
      "bundles": [
        "G1",
        "G3"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-07-02T00:00:00Z",
      "fresh_at": "2026-07-02T00:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "REVOKED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000REVOKE",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "an actor with no grant",
      "rule": "§5 step 4",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:not-a-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "RESERVED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "requested scopes exceed the grant",
      "rule": "§4.4",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news",
        "retrieve:everything"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 403,
        "decision": "DENY",
        "state": "LIVE",
        "error": "SCOPE_NOT_GRANTED",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "supersession state older than max_staleness: fail closed",
      "rule": "§6.5",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-04T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 503,
        "decision": "DENY",
        "state": "LIVE",
        "error": "GRANT_STATE_STALE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "supersession state exactly max_staleness old: still issues",
      "rule": "§6.5",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-03T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 200,
        "decision": "ALLOW",
        "state": "LIVE",
        "error": null,
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": 86400,
        "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODA1MzEyMDAsImlhdCI6MTc4MDQ0NDgwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIxZDU5ZjlmMTUyZTQ1NzRiMjRhMTZkOTgzMzA1Nzk5YyIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.s4yebs4hvZ3fVXBazkNvCRgO60IJQ4X5xHYlTaoJPwJrZg8_nmFxy549fBvREdIvKtkhmnZb1E0v0GJtEefiBg"
      }
    },
    {
      "name": "never re-checked: fail closed",
      "rule": "§6.5",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": null,
      "expect": {
        "http_status": 503,
        "decision": "DENY",
        "state": "LIVE",
        "error": "GRANT_STATE_STALE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "expiry is enforced without any registry contact",
      "rule": "§6.5",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2027-03-02T00:00:00Z",
      "fresh_at": null,
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "EXPIRED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "a supersession signed by someone else revokes nothing",
      "rule": "§9",
      "bundles": [
        "G1",
        "GX"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-07-03T00:00:00Z",
      "fresh_at": "2026-07-03T00:00:00Z",
      "expect": {
        "http_status": 200,
        "decision": "ALLOW",
        "state": "LIVE",
        "error": null,
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "expires_in": 86400,
        "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODMxMjMyMDAsImlhdCI6MTc4MzAzNjgwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiJmMGE4ZTNjZWI5M2U4ODI4MWY2NTlhNDhhMWY2ZTI4ZiIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.7zm-8025PX8PDi7qZ8gbihqZnYi8VSlaCUvnKCUJIxAibg6vqO1yAyh_djSjVP2BVO8ItJ3c9HxbzYy_zGaHAQ"
      }
    },
    {
      "name": "a grant altered after signing grants nothing",
      "rule": "§5 step 1",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2027-06-01T00:00:00Z",
      "fresh_at": "2027-06-01T00:00:00Z",
      "tamper": {
        "bundle": "G1",
        "path": "declaration.reservations.1.terms.valid_until",
        "value": "2099-01-01T00:00:00Z"
      },
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "RESERVED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": null,
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "a permitted reservation with no valid_until is not a grant",
      "rule": "§4.2",
      "bundles": [
        "GM"
      ],
      "actor": "rge:licensee:example-licensee-c",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "RESERVED",
        "error": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANTM",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "a grant bound to a different Gate",
      "rule": "§4.4",
      "bundles": [
        "GO"
      ],
      "actor": "rge:licensee:example-licensee-d",
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 403,
        "decision": "DENY",
        "state": "LIVE",
        "error": "GRANT_NOT_FOR_THIS_GATE",
        "authorizing_declaration": "01JRGE0000000000000GRANTO",
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "a request with no scopes",
      "rule": "§6.2",
      "bundles": [
        "G1"
      ],
      "actor": "rge:licensee:example-licensee",
      "scopes": [],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 400,
        "decision": "DENY",
        "state": "RESERVED",
        "error": "INVALID_REQUEST",
        "authorizing_declaration": null,
        "expires_in": null,
        "token": null
      }
    },
    {
      "name": "a client bound to no actor",
      "rule": "§6.1",
      "bundles": [
        "G1"
      ],
      "actor": null,
      "scopes": [
        "retrieve:news"
      ],
      "t_now": "2026-06-01T00:00:00Z",
      "fresh_at": "2026-06-01T00:00:00Z",
      "expect": {
        "http_status": 401,
        "decision": "DENY",
        "state": "RESERVED",
        "error": "CLIENT_NOT_BOUND",
        "authorizing_declaration": null,
        "expires_in": null,
        "token": null
      }
    }
  ],
  "token_validation": [
    {
      "name": "a live token with the required scope",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": true,
        "reason": null
      }
    },
    {
      "name": "one second before expiry",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-01T23:59:59Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": true,
        "reason": null
      }
    },
    {
      "name": "at exp exactly",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-02T00:00:00Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "expired"
      }
    },
    {
      "name": "before iat",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-05-31T23:59:59Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "not-yet-valid"
      }
    },
    {
      "name": "a scope the token does not carry",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:archive",
      "expect": {
        "valid": false,
        "reason": "scope-not-held"
      }
    },
    {
      "name": "claims edited after signing",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlLWIifQ.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "bad-signature"
      }
    },
    {
      "name": "signed by a key that is not the Gate's",
      "token": "eyJhbGciOiJFZERTQSIsImtpZCI6ImdhdGUtdGVzdC1rZXktMSIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.vKLc_dsujX8bqGXNjHTS-IlogCDYMFLWxRb2col9gFAiEjIT2Wqs7rwS2SQjlyG7KfiTrDWmAozXkef9B-gfAg",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "bad-signature"
      }
    },
    {
      "name": "alg \"none\" with an empty signature",
      "token": "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "malformed"
      }
    },
    {
      "name": "alg \"none\" with a signature attached",
      "token": "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "unsupported-algorithm"
      }
    },
    {
      "name": "alg \"HS256\" header",
      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZHBfZGVjbCI6IjAxSlJHRTAwMDAwMDAwMDAwMDBHUkFOVDEiLCJhZHBfbGVhZiI6ImExNjE4NzE3YTg1NzJmMjJjN2YwNzVjMjdlMjAyYmIyYjI3ODgzYWEyNTExNWYwNDVmYzBmMjg0NTgyMzgzOTUiLCJleHAiOjE3ODAzNTg0MDAsImlhdCI6MTc4MDI3MjAwMCwiaXNzIjoiaHR0cHM6Ly9lbnRpdGxlbWVudHMuZXhhbXBsZS1saWNlbnNvci5jb20iLCJqdGkiOiIwNzMwY2YzZTY1ODUzMzljMzE3MjExOWVkMTJlNDMyMCIsInNjb3BlcyI6WyJyZXRyaWV2ZTpuZXdzIl0sInN1YiI6InJnZTpsaWNlbnNlZTpleGFtcGxlLWxpY2Vuc2VlIn0.A218T6fDj4iWL8lf1GytLUMvc0S92cXWP1ex1EV1IWxVz-iYPctUbwpR__YR2FPmEm0bL_3HxWWppwFNgCD2AA",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "unsupported-algorithm"
      }
    },
    {
      "name": "not a token",
      "token": "not.a.token!",
      "t_now": "2026-06-01T00:00:10Z",
      "required_scope": "retrieve:news",
      "expect": {
        "valid": false,
        "reason": "malformed"
      }
    }
  ],
  "log_sequence": {
    "note": "One Gate holding these bundles, re-checked as fresh before each step, making these requests in order.",
    "bundles": [
      "G1",
      "GB"
    ],
    "steps": [
      {
        "t_now": "2026-06-01T00:00:00Z",
        "actor": "rge:licensee:example-licensee",
        "scopes": [
          "retrieve:news"
        ]
      },
      {
        "t_now": "2026-06-01T00:00:05Z",
        "actor": "rge:licensee:example-licensee-b",
        "scopes": [
          "retrieve:news"
        ]
      },
      {
        "t_now": "2026-06-01T00:00:09Z",
        "actor": "rge:licensee:not-a-licensee",
        "scopes": [
          "retrieve:news"
        ]
      },
      {
        "t_now": "2026-06-01T00:01:00Z",
        "actor": "rge:licensee:example-licensee",
        "scopes": [
          "retrieve:everything"
        ]
      },
      {
        "t_now": "2026-09-01T01:00:00Z",
        "actor": "rge:licensee:example-licensee-b",
        "scopes": [
          "retrieve:news"
        ]
      },
      {
        "t_now": "2027-03-01T00:00:02Z",
        "actor": "rge:licensee:example-licensee",
        "scopes": [
          "retrieve:news"
        ]
      }
    ],
    "rows": [
      {
        "event_id": "0730cf3e6585339c3172119ed12e4320",
        "t": "2026-06-01T00:00:00Z",
        "actor": "rge:licensee:example-licensee",
        "decision": "ALLOW",
        "state": "LIVE",
        "reason": null,
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "declaration_leaf_hash": "a1618717a8572f22c7f075c27e202bb2b27883aa25115f045fc0f28458238395",
        "anchor_tx": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU",
        "scopes_requested": [
          "retrieve:news"
        ],
        "token_id": "0730cf3e6585339c3172119ed12e4320",
        "token_exp": "2026-06-02T00:00:00Z",
        "prev_row_sha256": "0000000000000000000000000000000000000000000000000000000000000000"
      },
      {
        "event_id": "e04fead08dae27a578892cfb570317e3",
        "t": "2026-06-01T00:00:05Z",
        "actor": "rge:licensee:example-licensee-b",
        "decision": "ALLOW",
        "state": "LIVE",
        "reason": null,
        "authorizing_declaration": "01JRGE0000000000000GRANTB",
        "declaration_leaf_hash": "4ddbe3e365d390b26fe4740aebc51a5d263afe35b6951bf9587e437ae586e507",
        "anchor_tx": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU",
        "scopes_requested": [
          "retrieve:news"
        ],
        "token_id": "e04fead08dae27a578892cfb570317e3",
        "token_exp": "2026-06-02T00:00:05Z",
        "prev_row_sha256": "56c028d71ad3394052fc47a1cc95a6a5f91fc734f7a8fa305c4471569940ed4a"
      },
      {
        "event_id": "7306e588419827279461835d93341c5e",
        "t": "2026-06-01T00:00:09Z",
        "actor": "rge:licensee:not-a-licensee",
        "decision": "DENY",
        "state": "RESERVED",
        "reason": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANTB",
        "declaration_leaf_hash": "4ddbe3e365d390b26fe4740aebc51a5d263afe35b6951bf9587e437ae586e507",
        "anchor_tx": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU",
        "scopes_requested": [
          "retrieve:news"
        ],
        "token_id": null,
        "token_exp": null,
        "prev_row_sha256": "4f4ed93c2fef3ce7db0a1f82a87a0054be807a68b7a66437a5e7075147904f8e"
      },
      {
        "event_id": "9c6536be9c17cb96f66c7f56a5ea0794",
        "t": "2026-06-01T00:01:00Z",
        "actor": "rge:licensee:example-licensee",
        "decision": "DENY",
        "state": "LIVE",
        "reason": "SCOPE_NOT_GRANTED",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "declaration_leaf_hash": "a1618717a8572f22c7f075c27e202bb2b27883aa25115f045fc0f28458238395",
        "anchor_tx": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU",
        "scopes_requested": [
          "retrieve:everything"
        ],
        "token_id": null,
        "token_exp": null,
        "prev_row_sha256": "636417b636654102d947fefba4436249b399bd4511591436bcfaa8b69d7bf806"
      },
      {
        "event_id": "64306794d742ff6d5af5abdccd5b4fb1",
        "t": "2026-09-01T01:00:00Z",
        "actor": "rge:licensee:example-licensee-b",
        "decision": "DENY",
        "state": "EXPIRED",
        "reason": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANTB",
        "declaration_leaf_hash": "4ddbe3e365d390b26fe4740aebc51a5d263afe35b6951bf9587e437ae586e507",
        "anchor_tx": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU",
        "scopes_requested": [
          "retrieve:news"
        ],
        "token_id": null,
        "token_exp": null,
        "prev_row_sha256": "d53e0d26b16944aee3709fda2b3a6b08912355aca6fd3f2da17bb2b51cd998db"
      },
      {
        "event_id": "64c19c9b18452da7753bf5c8240574e4",
        "t": "2027-03-01T00:00:02Z",
        "actor": "rge:licensee:example-licensee",
        "decision": "DENY",
        "state": "EXPIRED",
        "reason": "GRANT_NOT_LIVE",
        "authorizing_declaration": "01JRGE0000000000000GRANT1",
        "declaration_leaf_hash": "a1618717a8572f22c7f075c27e202bb2b27883aa25115f045fc0f28458238395",
        "anchor_tx": "2uu_qVUIZFj3jFASDlWc_M9nNVhmvf5PPQVY1I1X2tU",
        "scopes_requested": [
          "retrieve:news"
        ],
        "token_id": null,
        "token_exp": null,
        "prev_row_sha256": "07bba864a79a98693ad61b11c5a0cd82956bba028c64d29de9f54ae05a51bf4d"
      }
    ],
    "head_sha256": "b989435d98ae0f5e1e526b34830d07bf17ec99287f2d413e78c3304cf308f47c"
  },
  "demo": {
    "note": "Inputs for `node gate.mjs serve`. The client secret is public test data.",
    "bundles": [
      "G1",
      "GB"
    ],
    "example_client_secret": "rge-demo-secret-not-for-production",
    "clients": {
      "demo-client-a": {
        "actor": "rge:licensee:example-licensee",
        "secret_sha256": "6f19ca84a301cba0e6c6b9c732c9223cf06611e719cba58105d74317dd5b2af9"
      }
    }
  }
}
