{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://usedeed.app/contracts/deed.production_attestation_window_request_bundle.v1.schema.json",
  "title": "DEED production attestation window request bundle v1",
  "type": "object",
  "required": ["schema", "adr", "generatedAt", "status", "repoCommit", "contractVersion", "emitterContract", "checkerTools", "requiredWindow", "exportManifestRequest", "canaryManifestRequest", "promotionRequest", "privacyRequirements", "custodyBoundary", "promotionBoundary"],
  "properties": {
    "schema": { "const": "https://usedeed.app/contracts/deed.production_attestation_window_request_bundle.v1.schema.json" },
    "adr": { "const": "ADR-196" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "status": { "const": "NEAR until a real production JSONL window is replay-verified and promoted" },
    "repoCommit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
    "contractVersion": { "type": "string", "minLength": 1 },
    "emitterContract": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/emitterContract" },
    "checkerTools": { "type": "array", "minItems": 4, "items": { "type": "object" } },
    "requiredWindow": { "type": "object", "required": ["environment", "source", "deployment", "exporter", "synthetic", "minRecords", "maxWindowHours", "maxWindowMs", "boundedWindow", "requiredBranches", "checkerCommand", "checkerExpectedResult"] },
    "exportManifestRequest": { "type": "object", "required": ["schema", "command", "requiresStableExportAttestor", "privateKeyMaterialIncluded", "requiredSignature", "requiredTraceSignerPin", "requiredManifestBindings"], "properties": { "schema": { "const": "https://usedeed.app/contracts/deed.production_attestation_export.v1.schema.json" } }, "additionalProperties": true },
    "canaryManifestRequest": { "type": "object", "required": ["schema", "commands", "requiresStableExportAttestor", "privateKeyMaterialIncluded", "requiredSignature", "requiredTraceSignerPin", "requiredManifestBindings"], "properties": { "schema": { "const": "https://usedeed.app/contracts/deed.production_attestation_canary_export.v1.schema.json" } }, "additionalProperties": true },
    "promotionRequest": { "type": "object", "required": ["schema", "command", "outputDirectory", "negativeCanaries"], "properties": { "schema": { "const": "https://usedeed.app/contracts/deed.production_attestation_window.v1.schema.json" } }, "additionalProperties": true },
    "privacyRequirements": { "type": "object", "required": ["recordsCarry", "recordsMustNotCarry"] },
    "custodyBoundary": { "type": "string", "minLength": 1 },
    "promotionBoundary": { "type": "string", "minLength": 1 }
  },
  "additionalProperties": false
}
