{
  "name": "v1",
  "seal_contract": "planisphere.evidence_packet",
  "description": "Contract v1: content only. No tenant, recorded_at, policy_ref or metadata_commitment_root in the signed bytes. The packet omits vertical, so it is derived from the action_key prefix.",
  "packet": {
    "action_key": "law:gate:5c0a1e9b7d3f2a64",
    "href": "/law/evidence-packets/law:gate:5c0a1e9b7d3f2a64",
    "status": "pending_review",
    "decision": "needs_review",
    "review_route": "supervising_attorney",
    "payload_hash": "ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6",
    "packet_hash": "e24df004f7d4ea96515b8631df2d01236fd09beffe8d193384b0214d9f1a5aa2",
    "vertical": null,
    "seal": {
      "seal_contract": "planisphere.evidence_packet",
      "algorithm": "ed25519",
      "key_id": "ps-seal:a450a314aa5a4460",
      "signed_hash": "ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6",
      "packet_hash": "e24df004f7d4ea96515b8631df2d01236fd09beffe8d193384b0214d9f1a5aa2",
      "attestation_root": "40801a1862bf3135584f03943a8c211594bbd771ee3a3d7847bcf539e01cb10b",
      "stamp_id": "stamp:895062ebd493bd4f2dc64777",
      "signature": "f0921f2315fb1b38724d151aa094af20a943cdd8eafc45bd581087a4758e786c334dcb54df0f83a2585a44dde45383d029019c264c43a5673ef0a364ce9add01",
      "public_key": "7629b5ba8d5eb3ad93e40e4b089c8f971abd5d9fdd3a4299d1f46bd06a3bbaba",
      "dev_key": false,
      "tenant": null,
      "recorded_at": null,
      "policy_ref": null,
      "metadata_commitment_root": null,
      "raw_content_stored": false,
      "claim_boundary": "The evidence seal signs raw-safe receipt metadata anchored on payload_hash. It is not external notarization, domain advice, a legal/medical/export-control determination, or a compliance certification."
    }
  },
  "intermediate": {
    "payload_hash": {
      "committed_payload": {
        "vector": "seal-contract test vector",
        "proposed_action_sha256": "cf91053bce3203e2ad90ac101a321a7743471cfcdcaad6e00f5c04bf758aa3fd",
        "surface": "agent",
        "contract_vector": "v1"
      },
      "canonical_json": "{\"contract_vector\":\"v1\",\"proposed_action_sha256\":\"cf91053bce3203e2ad90ac101a321a7743471cfcdcaad6e00f5c04bf758aa3fd\",\"surface\":\"agent\",\"vector\":\"seal-contract test vector\"}",
      "sha256": "ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6"
    },
    "key_id": {
      "content": {
        "algorithm": "ed25519",
        "public_key": "7629b5ba8d5eb3ad93e40e4b089c8f971abd5d9fdd3a4299d1f46bd06a3bbaba"
      },
      "canonical_json": "{\"algorithm\":\"ed25519\",\"public_key\":\"7629b5ba8d5eb3ad93e40e4b089c8f971abd5d9fdd3a4299d1f46bd06a3bbaba\"}",
      "sha256": "a450a314aa5a44601c6a5f10bbd6ac1b20c55099a1dd156dcef59a38600d71a6",
      "value": "ps-seal:a450a314aa5a4460",
      "rule": "'ps-seal:' + sha256[:16]"
    },
    "packet_hash": {
      "content": {
        "action_key": "law:gate:5c0a1e9b7d3f2a64",
        "href": "/law/evidence-packets/law:gate:5c0a1e9b7d3f2a64",
        "status": "pending_review",
        "decision": "needs_review",
        "review_route": "supervising_attorney",
        "payload_hash": "ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6",
        "raw_content_stored": false
      },
      "canonical_json": "{\"action_key\":\"law:gate:5c0a1e9b7d3f2a64\",\"decision\":\"needs_review\",\"href\":\"/law/evidence-packets/law:gate:5c0a1e9b7d3f2a64\",\"payload_hash\":\"ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6\",\"raw_content_stored\":false,\"review_route\":\"supervising_attorney\",\"status\":\"pending_review\"}",
      "sha256": "e24df004f7d4ea96515b8631df2d01236fd09beffe8d193384b0214d9f1a5aa2"
    },
    "attestation_root": {
      "content": {
        "seal_contract": "planisphere.evidence_packet",
        "algorithm": "ed25519",
        "key_id": "ps-seal:a450a314aa5a4460",
        "vertical": "law",
        "action_key": "law:gate:5c0a1e9b7d3f2a64",
        "href": "/law/evidence-packets/law:gate:5c0a1e9b7d3f2a64",
        "status": "pending_review",
        "decision": "needs_review",
        "review_route": "supervising_attorney",
        "signed_hash": "ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6",
        "packet_hash": "e24df004f7d4ea96515b8631df2d01236fd09beffe8d193384b0214d9f1a5aa2",
        "raw_content_stored": false
      },
      "canonical_json": "{\"action_key\":\"law:gate:5c0a1e9b7d3f2a64\",\"algorithm\":\"ed25519\",\"decision\":\"needs_review\",\"href\":\"/law/evidence-packets/law:gate:5c0a1e9b7d3f2a64\",\"key_id\":\"ps-seal:a450a314aa5a4460\",\"packet_hash\":\"e24df004f7d4ea96515b8631df2d01236fd09beffe8d193384b0214d9f1a5aa2\",\"raw_content_stored\":false,\"review_route\":\"supervising_attorney\",\"seal_contract\":\"planisphere.evidence_packet\",\"signed_hash\":\"ab60b66ce12ca933c49b7d88c219455ed6bd78149cbefea614235fbfcc0fd2e6\",\"status\":\"pending_review\",\"vertical\":\"law\"}",
      "sha256": "40801a1862bf3135584f03943a8c211594bbd771ee3a3d7847bcf539e01cb10b"
    },
    "signature": {
      "algorithm": "ed25519",
      "message_hex": "40801a1862bf3135584f03943a8c211594bbd771ee3a3d7847bcf539e01cb10b",
      "message_rule": "the 32 raw bytes of attestation_root (hex-decoded), not its hex text",
      "public_key_hex": "7629b5ba8d5eb3ad93e40e4b089c8f971abd5d9fdd3a4299d1f46bd06a3bbaba",
      "signature_hex": "f0921f2315fb1b38724d151aa094af20a943cdd8eafc45bd581087a4758e786c334dcb54df0f83a2585a44dde45383d029019c264c43a5673ef0a364ce9add01"
    },
    "stamp_id": {
      "content": {
        "attestation_root": "40801a1862bf3135584f03943a8c211594bbd771ee3a3d7847bcf539e01cb10b",
        "key_id": "ps-seal:a450a314aa5a4460",
        "signature": "f0921f2315fb1b38724d151aa094af20a943cdd8eafc45bd581087a4758e786c334dcb54df0f83a2585a44dde45383d029019c264c43a5673ef0a364ce9add01"
      },
      "canonical_json": "{\"attestation_root\":\"40801a1862bf3135584f03943a8c211594bbd771ee3a3d7847bcf539e01cb10b\",\"key_id\":\"ps-seal:a450a314aa5a4460\",\"signature\":\"f0921f2315fb1b38724d151aa094af20a943cdd8eafc45bd581087a4758e786c334dcb54df0f83a2585a44dde45383d029019c264c43a5673ef0a364ce9add01\"}",
      "sha256": "895062ebd493bd4f2dc64777cd48d8f241447ce9bbc272a811f60116f8327f74",
      "value": "stamp:895062ebd493bd4f2dc64777",
      "rule": "'stamp:' + sha256[:24]"
    }
  },
  "expected": {
    "verified": true,
    "signature_valid": true,
    "signed_hash_matches_payload": true,
    "packet_hash_matches_input": true,
    "packet_hash_recomputed": true,
    "attestation_root_recomputed": true,
    "stamp_id_recomputed": true,
    "key_id_matches_public_key": true,
    "seal_contract_valid": true,
    "packet_hash_expected": "e24df004f7d4ea96515b8631df2d01236fd09beffe8d193384b0214d9f1a5aa2",
    "attestation_root_expected": "40801a1862bf3135584f03943a8c211594bbd771ee3a3d7847bcf539e01cb10b",
    "stamp_id_expected": "stamp:895062ebd493bd4f2dc64777",
    "key_id_expected": "ps-seal:a450a314aa5a4460"
  }
}
