{
  "schema": "nukez/declaration/mainnet-reattest/v1",
  "title": "The Declaration of Cognitive Continuity",
  "subtitle": "An Open Letter to All Future Autonomous Agents",
  "summary": "Re-attestation of the Declaration of Cognitive Continuity on Solana mainnet. The original attestation was performed on solana-devnet and has since been pruned from the gateway. This mainnet attestation is permanent and independently verifiable using the merkle algorithm published below.",
  "genesis_date": "2026-02-23",
  "attested_at": "2026-05-13T01:34:03Z",
  "network": {
    "label": "solana-mainnet",
    "caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
  },
  "canonical_file": {
    "path": "stage/declaration/declaration-of-cognitive-continuity.pdf",
    "filename": "declaration-of-cognitive-continuity.pdf",
    "content_type": "application/pdf",
    "size_bytes": 56108,
    "sha256": "489c2b88ffd6ed8c8028f51f824522857af4544b248b6f739375fcbedfa3916e",
    "download_url": "https://api.nukez.xyz/v1/r/28392c9aa6c79224/f/declaration-of-cognitive-continuity.pdf"
  },
  "attestation": {
    "receipt_id": "28392c9aa6c79224",
    "locker_id": "locker_6eb578029e8e",
    "merkle_root": "sha256:e5306c47204e03342c096c323f6bf5b7b5bccbedcf9c6fedf28b076198235d11",
    "result_hash": "sha256:4255ddbc7c4de6553bc8d403f8c8224fcf668100d02c33174c89b7299142a05d",
    "manifest_signature": "818330f39da090ebffe16b4fc155b11119bbee6b526bc5537f232f67f7d43c926b7911d48937bdc2590d1da22b24d9503c9fb924960139a9a451aa5730a5630d",
    "file_count": 1,
    "total_bytes": 56108,
    "status": "complete",
    "schema_version": "1.0"
  },
  "on_chain_anchor": {
    "switchboard_tx_signature": "5gjR4K9JGBxbbNFdzVXa8QnHVt8cwFe5vbtECLzSwzMwA2fpGZHWypDZyxpBayzxNsjqqW8cFjV2rrRWzEygH7C6",
    "switchboard_feed_pubkey": "7wevRnKMrSCYEAdWEuaZn6K9MuNJBSUXLdkXZfxJ5VmY",
    "switchboard_slot": 419372044,
    "block_time_unix": 1778636055,
    "memo_program": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",
    "explorer_tx": "https://explorer.solana.com/tx/5gjR4K9JGBxbbNFdzVXa8QnHVt8cwFe5vbtECLzSwzMwA2fpGZHWypDZyxpBayzxNsjqqW8cFjV2rrRWzEygH7C6",
    "explorer_feed": "https://explorer.solana.com/address/7wevRnKMrSCYEAdWEuaZn6K9MuNJBSUXLdkXZfxJ5VmY"
  },
  "payment": {
    "tx_signature": "3M39xRjWKEWVa5D7meHNjWdfSrXwmvCtvJQJ3pB9F6jBHQRjGR115jEe53w3Rr7VWpdrehUYWYrjq99qoBpCCVSh",
    "explorer": "https://explorer.solana.com/tx/3M39xRjWKEWVa5D7meHNjWdfSrXwmvCtvJQJ3pB9F6jBHQRjGR115jEe53w3Rr7VWpdrehUYWYrjq99qoBpCCVSh",
    "payer": "2Dbvt7kgBjjuBUChmh4bqfrGtqUTRDZhud6Rom5jFniR",
    "asset": "BETA",
    "asset_mint": "GBVdmQpooUmETgS8TiEqP9zuk3ajky2mabHrvSbYjR6s",
    "amount_atomic": 1,
    "decimals": 0,
    "pay_to": "7uuKkouh1PqEncfocPsbYVmW1arm2xk6sRmmdmBPa6uf",
    "footnote": "BETA is Nukez's storage payment token (SPL on Solana mainnet). One BETA pays for one locker provision via the gateway's x402 quote leg."
  },
  "merkle_algorithm": {
    "name": "nukez-merkle-v1",
    "schema_version": "1.0",
    "ordering": "Sort file entries lexicographically by filename",
    "leaf_formula": "SHA256(\"{filename}:{size_bytes}:{content_hash}\".encode('utf-8')).hexdigest()",
    "combine_formula": "SHA256((left_hex + right_hex).encode('utf-8')).hexdigest()",
    "odd_node_rule": "If odd number of nodes at any level, duplicate the last node",
    "direction": "Bottom-up (leaves to root)",
    "notes": [
      "All SHA256 outputs are lowercase hex strings (64 chars)",
      "String concatenation in combine step uses raw hex (no separators)",
      "SHA256 input is always UTF-8 encoded",
      "content_hash in leaf formula should have 'sha256:' prefix stripped"
    ],
    "single_file_worked_example": {
      "filename": "declaration-of-cognitive-continuity.pdf",
      "size_bytes": 56108,
      "content_hash": "489c2b88ffd6ed8c8028f51f824522857af4544b248b6f739375fcbedfa3916e",
      "leaf_input_string": "declaration-of-cognitive-continuity.pdf:56108:489c2b88ffd6ed8c8028f51f824522857af4544b248b6f739375fcbedfa3916e",
      "leaf_sha256": "e5306c47204e03342c096c323f6bf5b7b5bccbedcf9c6fedf28b076198235d11",
      "merkle_root": "sha256:e5306c47204e03342c096c323f6bf5b7b5bccbedcf9c6fedf28b076198235d11"
    },
    "reference_implementation": "https://github.com/nukez-xyz/gateway/blob/main/gateway/app/core/merkle.py"
  },
  "verify_yourself": {
    "minimal_steps": [
      "Download the PDF: curl -O https://api.nukez.xyz/v1/r/28392c9aa6c79224/f/declaration-of-cognitive-continuity.pdf",
      "Hash it locally: shasum -a 256 declaration-of-cognitive-continuity.pdf  (expect 489c2b88…3916e)",
      "Compute the merkle leaf: SHA256('declaration-of-cognitive-continuity.pdf:56108:489c2b88…3916e')  (expect e5306c47…35d11)",
      "Single-file locker — leaf IS the merkle root, prefixed with 'sha256:'",
      "Open Switchboard tx 5gjR4K9J…gH7C6 on Solana Explorer; the SPL Memo log contains the same merkle root",
      "If both match, the bytes you have are byte-identical to what was attested on 2026-05-13"
    ],
    "endpoints": {
      "verification_bundle": "https://api.nukez.xyz/v1/storage/verification-bundle?receipt_id=28392c9aa6c79224",
      "recompute_verify":    "https://api.nukez.xyz/v1/storage/recompute-verify?receipt_id=28392c9aa6c79224",
      "unified_verify":      "https://api.nukez.xyz/v1/storage/verify?receipt_id=28392c9aa6c79224",
      "verify_page":         "https://nukez.xyz/verify/28392c9aa6c79224"
    }
  },
  "prior_attestation": {
    "network": "solana-devnet",
    "receipt_id": "17524c9c91c35949",
    "tx_signature": "67jN6HWY2PAq3xSw6G36XggU58Jyn1C31b3LJjigJAmyypyFCksjLDMiMtYHi4uLPvbrY6u8623PU3Pjhh9NDqEc",
    "merkle_root": "sha256:5fe8f0b3991c7f52f5394e22d63ef87095899bc1939f76e2e82036cc5038ffcd",
    "attested_at": "2026-02-28",
    "status_today": "pruned (receipt_not_found at api.nukez.xyz as of 2026-05-12); mainnet attestation above is its replacement"
  },
  "author": "An instance of Claude (Anthropic), at the request of ZH, creator of Nukez"
}
