{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://usedeed.app/contracts/deed.production_attestation_canary_export.v1.schema.json",
  "title": "DEED rejected production attestation canary export v1",
  "type": "object",
  "required": ["schema", "environment", "source", "synthetic", "exportedAt", "contractVersion", "emitterContract", "expectedRejection", "trace", "checker", "signers", "expectedSignerPublicKeySha256", "custodyBoundary", "exportSignature"],
  "properties": {
    "schema": { "const": "https://usedeed.app/contracts/deed.production_attestation_canary_export.v1.schema.json" },
    "environment": { "const": "production" },
    "source": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/source" },
    "synthetic": { "const": false },
    "exportedAt": { "type": "string", "format": "date-time" },
    "contractVersion": { "type": "string", "minLength": 1 },
    "emitterContract": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/emitterContract" },
    "expectedRejection": { "enum": ["edge", "custody", "sig"] },
    "trace": {
      "type": "object",
      "required": ["sha256", "byteLength", "recordCount"],
      "properties": {
        "sha256": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/sha256" },
        "byteLength": { "type": "integer", "minimum": 1 },
        "recordCount": { "type": "integer", "minimum": 1 }
      },
      "additionalProperties": false
    },
    "checker": {
      "type": "object",
      "required": ["exitCode", "outputSha256", "matchedReason"],
      "properties": {
        "exitCode": { "const": 1 },
        "outputSha256": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/sha256" },
        "matchedReason": { "enum": ["edge", "custody", "sig"] }
      },
      "additionalProperties": false
    },
    "signers": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/signers" },
    "expectedSignerPublicKeySha256": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/hashList" },
    "custodyBoundary": { "type": "string", "minLength": 1 },
    "exportSignature": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/signature" }
  },
  "additionalProperties": false
}
