{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-rotation-proof-request-schema.json",
  "title": "RotationProofRequest",
  "description": "A self-certifying key-rotation link (Ticket #7), EMITTER-supplied: the agent's\nOLD key signs {prev_key, new_key, seq, not_before}. Stored raw (append-only);\nthe signature is verified at aggregation time, never trusted on write.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-governed-decisions-api-openapi.yml#/components/schemas/RotationProofRequest",
  "properties": {
    "prev_key": {
      "type": "string",
      "title": "Prev Key"
    },
    "new_key": {
      "type": "string",
      "title": "New Key"
    },
    "seq": {
      "type": "integer",
      "title": "Seq",
      "default": 1
    },
    "not_before": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Not Before"
    },
    "sig": {
      "type": "string",
      "title": "Sig"
    },
    "source": {
      "type": "string",
      "title": "Source",
      "default": "agent"
    }
  },
  "type": "object",
  "required": [
    "prev_key",
    "new_key",
    "sig"
  ]
}