{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:orbiplex:schema:federated-envelope-declaration:v1",
  "title": "Federated Envelope Declaration V1",
  "description": "Signed bounded public compatibility projection. It is evidence for intersection and never imports remote authority.",
  "x-dia-workflow": "project", "x-dia-status": "accepted",
  "x-dia-basis": ["doc/project/40-proposals/085-operator-sovereign-extensibility-and-experiment-packages.md"],
  "type": "object", "additionalProperties": false,
  "required": ["schema", "schema/v", "declaration/ref", "node/id", "envelope/ref", "envelope/digest", "profile/digest", "posture/ref", "posture/digest", "issued-at", "expires-at", "signature"],
  "properties": {
    "schema": {"const": "federated-envelope-declaration.v1"}, "schema/v": {"const": 1},
    "declaration/ref": {"type": "string", "pattern": "^federated-envelope:[A-Za-z0-9][A-Za-z0-9._-]*$", "maxLength": 256},
    "node/id": {"type": "string", "pattern": "^node:did:key:z[1-9A-HJ-NP-Za-km-z]{20,120}$"},
    "envelope/ref": {"type": "string", "pattern": "^operator-envelope:[A-Za-z0-9][A-Za-z0-9._-]*$", "maxLength": 256},
    "envelope/digest": {"$ref": "#/$defs/digest"}, "profile/digest": {"$ref": "#/$defs/digest"},
    "posture/ref": {"type": "string", "pattern": "^node-extension-posture:[A-Za-z0-9][A-Za-z0-9._-]*$", "maxLength": 256},
    "posture/digest": {"$ref": "#/$defs/digest"},
    "issued-at": {"type": "string", "format": "date-time"}, "expires-at": {"type": "string", "format": "date-time"},
    "signature": {"$ref": "#/$defs/signature"}
  },
  "$defs": {"digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}, "signature": {"type": "object", "additionalProperties": false, "required": ["alg", "key/public", "value"], "properties": {"alg": {"const": "ed25519+domain-v1"}, "key/public": {"type": "string", "pattern": "^z[1-9A-HJ-NP-Za-km-z]{20,120}$"}, "value": {"type": "string", "pattern": "^[A-Za-z0-9_-]{86}$"}}}}
}
