{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://usedeed.app/contracts/deed.production_attestation_window.v1.schema.json",
  "title": "DEED promoted production attestation window v1",
  "type": "object",
  "required": ["schema", "adr", "generatedAt", "repoCommit", "contractVersion", "emitterContract", "production", "trace", "coverage", "negativeCanaries", "custodyBoundary"],
  "properties": {
    "schema": { "const": "https://usedeed.app/contracts/deed.production_attestation_window.v1.schema.json" },
    "adr": { "const": "ADR-196" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "repoCommit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
    "contractVersion": { "type": "string", "minLength": 1 },
    "emitterContract": { "$ref": "deed.production_attestation_export.v1.schema.json#/$defs/emitterContract" },
    "production": { "type": "object", "required": ["environment", "source", "synthetic", "exportManifest", "operatorAssertion"] },
    "trace": { "type": "object", "required": ["path", "sha256", "byteLength", "recordCount", "firstTs", "lastTs", "continuity"] },
    "coverage": { "type": "object", "required": ["minRecords", "maxWindowHours", "maxWindowMs", "durationMs", "boundedWindowPolicy", "branchHistogram", "requiredBranches", "checkerExit"] },
    "negativeCanaries": { "type": "object", "required": ["edge", "custody", "sig"] },
    "custodyBoundary": { "type": "string", "minLength": 1 }
  },
  "additionalProperties": false
}
