{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africanmarketos-com/json-schema/africanmarketos-com-authority-chain-response-schema.json",
  "title": "AuthorityChainResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africanmarketos-com-openapi.yml#/components/schemas/AuthorityChainResponse",
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_anchor"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "anchor"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "vet_anchor"
        },
        "status": {
          "enum": [
            "platform_vetted",
            "awaiting_second_operator"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "anchor"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_anchor"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "anchor"
        },
        "id": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "anchor"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "dependents_invalidated_on_next_check",
        "anchor",
        "receipt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_credential"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "credential": {
          "type": "object",
          "properties": {
            "credential_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "credential_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "credential"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_source_record"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "source_record": {
          "type": "object",
          "properties": {
            "record_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "record_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "source_record"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_issuer_state"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "issuer_state": {
          "type": "object",
          "properties": {
            "record_id": {
              "type": "string"
            },
            "state": {
              "type": "string"
            }
          },
          "required": [
            "record_id",
            "state"
          ],
          "additionalProperties": true
        },
        "idempotent_record": {
          "type": "boolean"
        },
        "dependents_rechecked_on_next_read": {
          "type": "boolean"
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "issuer_state"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_credential"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "credential"
        },
        "id": {
          "type": "string"
        },
        "revocation_basis": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "credential"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "revocation_basis",
        "dependents_invalidated_on_next_check",
        "receipt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_source_record"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "source_record"
        },
        "id": {
          "type": "string"
        },
        "revocation_basis": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "source_record"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "revocation_basis",
        "dependents_invalidated_on_next_check",
        "receipt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "close_residual"
        },
        "status": {
          "enum": [
            "closed"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "closure": {
          "type": "object",
          "properties": {
            "closure_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "closure_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "closure"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_closure"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "closure"
        },
        "id": {
          "type": "string"
        },
        "case_id": {
          "type": "string"
        },
        "residual_code": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "closure"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "case_id",
        "residual_code",
        "dependents_invalidated_on_next_check",
        "receipt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_capability"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "capability": {
          "type": "object",
          "properties": {
            "capability_id": {
              "type": "string"
            },
            "case_id": {
              "type": "string"
            },
            "effect_type": {
              "type": "string"
            },
            "not_after": {
              "type": "string"
            }
          },
          "required": [
            "capability_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "capability"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_capability"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "capability"
        },
        "id": {
          "type": "string"
        },
        "case_id": {
          "type": "string"
        },
        "revocation_basis": {
          "type": "string"
        },
        "next_verification": {
          "const": "deny"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "capability"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "case_id",
        "revocation_basis",
        "next_verification",
        "receipt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "verify_capability"
        },
        "status": {
          "enum": [
            "verified"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "decision": {
          "enum": [
            "allow",
            "deny"
          ]
        },
        "deny_reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "verification_id": {
          "type": "string"
        },
        "capability_id": {
          "type": "string"
        },
        "case": {
          "type": [
            "object",
            "null"
          ]
        },
        "valid_until": {
          "type": [
            "string",
            "null"
          ]
        },
        "reliance": {
          "type": [
            "string",
            "null"
          ]
        },
        "effect_scope": {
          "type": [
            "object",
            "null"
          ]
        },
        "dependency_chain": {
          "type": "array"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "capability_verification"
            },
            "verification_id": {
              "type": "string",
              "pattern": "^VR-[a-f0-9]{48}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "case_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "decision": {
              "type": "string",
              "enum": [
                "allow",
                "deny"
              ]
            },
            "deny_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "minItems": 0,
              "maxItems": 100
            },
            "effect_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            },
            "requested_effect_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "executor_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "reliance": {
              "type": [
                "string",
                "null"
              ]
            },
            "valid_until": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "verification_id",
            "capability_id",
            "case_id",
            "decision",
            "deny_reasons",
            "effect_id",
            "requested_effect_sha256",
            "executor_principal_sha256",
            "reliance",
            "valid_until"
          ]
        },
        "executor_obligations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lab_fixture_warning": {
          "type": [
            "string",
            "null"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "decision",
        "deny_reasons",
        "verification_id",
        "capability_id",
        "case",
        "valid_until",
        "reliance",
        "effect_scope",
        "dependency_chain",
        "receipt",
        "executor_obligations",
        "lab_fixture_warning"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "commit_effect"
        },
        "status": {
          "enum": [
            "checked",
            "already_committed"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "decision": {
          "enum": [
            "commit",
            "deny",
            "already_committed"
          ]
        },
        "deny_reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "verification_id": {
          "type": "string"
        },
        "commit_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "commit_valid_until": {
          "type": [
            "string",
            "null"
          ]
        },
        "committed_at": {
          "type": "string"
        },
        "capability_id": {
          "type": "string"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "effect_commit"
            },
            "commit_id": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^CM-[a-f0-9]{48}$"
            },
            "verification_id": {
              "type": "string",
              "pattern": "^VR-[a-f0-9]{48}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "effect_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            },
            "requested_effect_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "decision": {
              "type": "string",
              "enum": [
                "commit",
                "deny"
              ]
            },
            "deny_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "minItems": 0,
              "maxItems": 100
            },
            "commit_valid_until": {
              "type": [
                "string",
                "null"
              ]
            },
            "executor_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "permission_basis": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "effect_state": {
                  "type": "string",
                  "enum": [
                    "positive",
                    "conditional",
                    "pending",
                    "adverse",
                    "revoked",
                    "not_modelled"
                  ]
                },
                "conditions": {
                  "type": "array",
                  "maxItems": 4,
                  "items": {
                    "type": "object"
                  }
                },
                "basis_reviews": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "minItems": 0,
                  "maxItems": 64
                },
                "decision_state_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "decision_journal_head_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "capability_document_sha256": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "effect_state",
                "conditions",
                "basis_reviews",
                "decision_state_sha256",
                "decision_journal_head_sha256",
                "capability_document_sha256"
              ]
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "commit_id",
            "verification_id",
            "capability_id",
            "effect_id",
            "requested_effect_sha256",
            "decision",
            "deny_reasons",
            "commit_valid_until",
            "executor_principal_sha256"
          ]
        },
        "effect_state": {
          "type": [
            "object",
            "null"
          ]
        },
        "executor_obligations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "decision",
        "verification_id",
        "commit_id",
        "commit_valid_until",
        "executor_obligations"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "record_effect"
        },
        "status": {
          "enum": [
            "recorded"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "verification_id": {
          "type": "string"
        },
        "outcome": {
          "enum": [
            "succeeded",
            "failed",
            "not_attempted"
          ]
        },
        "reported_after_valid_until": {
          "type": "boolean"
        },
        "commit_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "commit_time_check_performed": {
          "type": "boolean"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "effect_report"
            },
            "verification_id": {
              "type": "string",
              "pattern": "^VR-[a-f0-9]{48}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "effect_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "not_attempted"
              ]
            },
            "external_ref_sha256": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "reported_after_valid_until": {
              "type": "boolean"
            },
            "commit_id": {
              "type": "string",
              "pattern": "^CM-[a-f0-9]{48}$"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "verification_id",
            "capability_id",
            "effect_id",
            "outcome",
            "external_ref_sha256",
            "reported_after_valid_until"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "verification_id",
        "outcome",
        "reported_after_valid_until",
        "commit_id",
        "commit_time_check_performed",
        "receipt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "get"
        },
        "status": {
          "enum": [
            "ok"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "credential": {
          "type": "object",
          "properties": {
            "credential_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "credential_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "source_record": {
          "type": "object",
          "properties": {
            "record_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "record_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "closure": {
          "type": "object",
          "properties": {
            "closure_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "closure_id"
          ],
          "additionalProperties": true
        },
        "capability": {
          "type": "object",
          "properties": {
            "capability_id": {
              "type": "string"
            },
            "case_id": {
              "type": "string"
            },
            "effect_type": {
              "type": "string"
            },
            "not_after": {
              "type": "string"
            }
          },
          "required": [
            "capability_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos"
      ],
      "oneOf": [
        {
          "required": [
            "anchor"
          ]
        },
        {
          "required": [
            "credential"
          ]
        },
        {
          "required": [
            "source_record"
          ]
        },
        {
          "required": [
            "closure"
          ]
        },
        {
          "required": [
            "capability"
          ]
        }
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "trace"
        },
        "status": {
          "enum": [
            "ok"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "capability_id": {
          "type": "string"
        },
        "currently_valid": {
          "type": "boolean"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "reliance": {
          "type": [
            "string",
            "null"
          ]
        },
        "chain": {
          "type": "object"
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "capability_id",
        "currently_valid",
        "reasons",
        "reliance",
        "chain"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "check_permission"
        },
        "status": {
          "enum": [
            "ok"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "permission_position": {
          "type": "object",
          "properties": {
            "contract_version": {
              "const": "mvr.permission-position/1"
            },
            "tier": {
              "enum": [
                "prohibited",
                "not_permitted",
                "planning_only",
                "conditionally_permitted",
                "permitted_up_to_ceiling",
                "fully_permitted"
              ]
            },
            "institution_capability_covers_effect": {
              "type": "boolean"
            },
            "narrowest_allowed_now": {
              "type": "array"
            },
            "blocked": {
              "type": "array"
            },
            "closure_path": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "minimum_accountable_acts": {
                  "type": "integer",
                  "minimum": 0
                },
                "acts": {
                  "type": "array"
                }
              },
              "required": [
                "status",
                "minimum_accountable_acts",
                "acts"
              ],
              "additionalProperties": true
            },
            "execution_authorized": {
              "const": false
            }
          },
          "required": [
            "contract_version",
            "tier",
            "institution_capability_covers_effect",
            "narrowest_allowed_now",
            "blocked",
            "closure_path",
            "execution_authorized"
          ],
          "additionalProperties": true
        },
        "dependency_graph": {
          "type": "object",
          "properties": {
            "nodes": {
              "type": "array"
            },
            "edges": {
              "type": "array"
            }
          },
          "required": [
            "nodes",
            "edges"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "permission_position",
        "dependency_graph"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "issue_permission_statement"
        },
        "status": {
          "enum": [
            "issued"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "coverage": {
          "enum": [
            "covered",
            "not_covered"
          ]
        },
        "statement": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "type": {
              "const": "mvr.permission-statement/1"
            },
            "statement_id": {
              "type": "string",
              "pattern": "^PS-[a-f0-9]{48}$"
            },
            "issued_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "valid_until": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "case_id": {
              "type": "string",
              "pattern": "^RC-[a-f0-9]{64}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "capability_document_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "institution_anchor_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "reliance": {
              "type": "string",
              "enum": [
                "lab_fixture_only",
                "institution_signed"
              ]
            },
            "executor_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "requested_effect": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "effect_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120,
                  "pattern": "\\S"
                },
                "effect_type": {
                  "type": "string",
                  "enum": [
                    "amos.document.draft.create@1",
                    "amos.communication.evidence.request@1",
                    "amos.calendar.meeting.create@1",
                    "amos.communication.counterparty.contact@1",
                    "amos.document.publish@1",
                    "amos.finance.spend.commit@1",
                    "amos.owner_lab.artifact.create@1",
                    "amos.procurement.order.issue@1",
                    "amos.finance.payment.initiate@1",
                    "amos.credit.application.approve@1",
                    "amos.distribution.product.release@1",
                    "amos.programme.participant.enrol@1",
                    "amos.data.record.disclose@1",
                    "amos.licence.permission.grant@1",
                    "amos.licence.permission.revoke@1",
                    "create_draft_record",
                    "send_evidence_request",
                    "schedule_meeting",
                    "contact_counterparty",
                    "publish_document",
                    "commit_spend"
                  ]
                },
                "resource": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "system": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "pattern": "\\S"
                    },
                    "resource_type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "pattern": "\\S"
                    },
                    "resource_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "\\S"
                    }
                  },
                  "required": [
                    "system",
                    "resource_type"
                  ]
                },
                "amount_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "external_contact": {
                  "type": "boolean"
                },
                "counterparty_ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                }
              },
              "required": [
                "effect_id",
                "effect_type",
                "resource"
              ]
            },
            "requested_effect_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "coverage": {
              "type": "string",
              "enum": [
                "covered",
                "not_covered"
              ]
            },
            "deny_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "minItems": 0,
              "maxItems": 100
            },
            "effect_state": {
              "anyOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "target": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "effect_type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "\\S"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "positive",
                        "conditional",
                        "pending",
                        "adverse",
                        "revoked",
                        "not_modelled"
                      ]
                    },
                    "conditions": {
                      "type": "array",
                      "maxItems": 4,
                      "items": {
                        "type": "object"
                      }
                    },
                    "basis_reviews": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "minItems": 0,
                      "maxItems": 64
                    },
                    "basis_credential_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                      },
                      "minItems": 0,
                      "maxItems": 64
                    },
                    "valid_until": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision_state_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "decision_journal_head_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "target",
                    "effect_type",
                    "state",
                    "conditions",
                    "basis_reviews",
                    "basis_credential_ids",
                    "valid_until",
                    "decision_state_sha256",
                    "decision_journal_head_sha256"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "dependencies": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "capability",
                      "institution_anchor",
                      "review_case",
                      "residual_closure",
                      "reviewer_designation",
                      "decision_journal"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  },
                  "sha256": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "valid_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "revision": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "residual_code": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "id",
                  "sha256",
                  "valid_until"
                ]
              },
              "minItems": 1,
              "maxItems": 80
            },
            "standing_assertions": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "credential_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                  },
                  "asserted_by_anchor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "asserted_by_organization_ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "verification": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  },
                  "trust_tier": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "usable": {
                    "type": "boolean"
                  },
                  "not_after": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "credential_sha256": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "supports_effect": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "\\S"
                  }
                },
                "required": [
                  "credential_id",
                  "asserted_by_anchor_id",
                  "asserted_by_organization_ref",
                  "verification",
                  "trust_tier",
                  "usable",
                  "not_after",
                  "credential_sha256",
                  "supports_effect"
                ]
              },
              "minItems": 0,
              "maxItems": 64
            },
            "revocation": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "checked_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                },
                "method": {
                  "const": "atomic_reread_of_every_dependency"
                },
                "commit_required": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 400,
                  "pattern": "\\S"
                }
              },
              "required": [
                "checked_at",
                "method",
                "commit_required"
              ]
            },
            "requested_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "execution_authorized": {
              "const": false
            },
            "amos_issued_authority": {
              "const": false
            }
          },
          "required": [
            "type",
            "statement_id",
            "issued_at",
            "valid_until",
            "case_id",
            "capability_id",
            "capability_document_sha256",
            "institution_anchor_id",
            "reliance",
            "executor_principal_sha256",
            "requested_effect",
            "requested_effect_sha256",
            "coverage",
            "deny_reasons",
            "effect_state",
            "dependencies",
            "standing_assertions",
            "revocation",
            "requested_by_principal_sha256",
            "execution_authorized",
            "amos_issued_authority"
          ]
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "permission_statement"
            },
            "statement_id": {
              "type": "string",
              "pattern": "^PS-[a-f0-9]{48}$"
            },
            "case_id": {
              "type": "string",
              "pattern": "^RC-[a-f0-9]{64}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "coverage": {
              "type": "string",
              "enum": [
                "covered",
                "not_covered"
              ]
            },
            "valid_until": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "statement": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "const": "mvr.permission-statement/1"
                },
                "statement_id": {
                  "type": "string",
                  "pattern": "^PS-[a-f0-9]{48}$"
                },
                "issued_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                },
                "valid_until": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                },
                "case_id": {
                  "type": "string",
                  "pattern": "^RC-[a-f0-9]{64}$"
                },
                "capability_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                },
                "capability_document_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "institution_anchor_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                },
                "reliance": {
                  "type": "string",
                  "enum": [
                    "lab_fixture_only",
                    "institution_signed"
                  ]
                },
                "executor_principal_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "requested_effect": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "effect_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "\\S"
                    },
                    "effect_type": {
                      "type": "string",
                      "enum": [
                        "amos.document.draft.create@1",
                        "amos.communication.evidence.request@1",
                        "amos.calendar.meeting.create@1",
                        "amos.communication.counterparty.contact@1",
                        "amos.document.publish@1",
                        "amos.finance.spend.commit@1",
                        "amos.owner_lab.artifact.create@1",
                        "amos.procurement.order.issue@1",
                        "amos.finance.payment.initiate@1",
                        "amos.credit.application.approve@1",
                        "amos.distribution.product.release@1",
                        "amos.programme.participant.enrol@1",
                        "amos.data.record.disclose@1",
                        "amos.licence.permission.grant@1",
                        "amos.licence.permission.revoke@1",
                        "create_draft_record",
                        "send_evidence_request",
                        "schedule_meeting",
                        "contact_counterparty",
                        "publish_document",
                        "commit_spend"
                      ]
                    },
                    "resource": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "system": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80,
                          "pattern": "\\S"
                        },
                        "resource_type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80,
                          "pattern": "\\S"
                        },
                        "resource_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "\\S"
                        }
                      },
                      "required": [
                        "system",
                        "resource_type"
                      ]
                    },
                    "amount_minor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    },
                    "external_contact": {
                      "type": "boolean"
                    },
                    "counterparty_ref": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    }
                  },
                  "required": [
                    "effect_id",
                    "effect_type",
                    "resource"
                  ]
                },
                "requested_effect_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "coverage": {
                  "type": "string",
                  "enum": [
                    "covered",
                    "not_covered"
                  ]
                },
                "deny_reasons": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  },
                  "minItems": 0,
                  "maxItems": 100
                },
                "effect_state": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "target": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "effect_type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "\\S"
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "positive",
                            "conditional",
                            "pending",
                            "adverse",
                            "revoked",
                            "not_modelled"
                          ]
                        },
                        "conditions": {
                          "type": "array",
                          "maxItems": 4,
                          "items": {
                            "type": "object"
                          }
                        },
                        "basis_reviews": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          "minItems": 0,
                          "maxItems": 64
                        },
                        "basis_credential_ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                          },
                          "minItems": 0,
                          "maxItems": 64
                        },
                        "valid_until": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "decision_state_sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "decision_journal_head_sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        }
                      },
                      "required": [
                        "target",
                        "effect_type",
                        "state",
                        "conditions",
                        "basis_reviews",
                        "basis_credential_ids",
                        "valid_until",
                        "decision_state_sha256",
                        "decision_journal_head_sha256"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dependencies": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "capability",
                          "institution_anchor",
                          "review_case",
                          "residual_closure",
                          "reviewer_designation",
                          "decision_journal"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "\\S"
                      },
                      "sha256": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "valid_until": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "residual_code": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "id",
                      "sha256",
                      "valid_until"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 80
                },
                "standing_assertions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "credential_id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                      },
                      "asserted_by_anchor_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "asserted_by_organization_ref": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "verification": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "\\S"
                      },
                      "trust_tier": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "usable": {
                        "type": "boolean"
                      },
                      "not_after": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "credential_sha256": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "supports_effect": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120,
                        "pattern": "\\S"
                      }
                    },
                    "required": [
                      "credential_id",
                      "asserted_by_anchor_id",
                      "asserted_by_organization_ref",
                      "verification",
                      "trust_tier",
                      "usable",
                      "not_after",
                      "credential_sha256",
                      "supports_effect"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 64
                },
                "revocation": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "checked_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                    },
                    "method": {
                      "const": "atomic_reread_of_every_dependency"
                    },
                    "commit_required": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 400,
                      "pattern": "\\S"
                    }
                  },
                  "required": [
                    "checked_at",
                    "method",
                    "commit_required"
                  ]
                },
                "requested_by_principal_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "execution_authorized": {
                  "const": false
                },
                "amos_issued_authority": {
                  "const": false
                }
              },
              "required": [
                "type",
                "statement_id",
                "issued_at",
                "valid_until",
                "case_id",
                "capability_id",
                "capability_document_sha256",
                "institution_anchor_id",
                "reliance",
                "executor_principal_sha256",
                "requested_effect",
                "requested_effect_sha256",
                "coverage",
                "deny_reasons",
                "effect_state",
                "dependencies",
                "standing_assertions",
                "revocation",
                "requested_by_principal_sha256",
                "execution_authorized",
                "amos_issued_authority"
              ]
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "statement_id",
            "case_id",
            "capability_id",
            "coverage",
            "valid_until",
            "statement"
          ]
        },
        "verifier": {
          "type": "string"
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "coverage",
        "statement",
        "receipt",
        "verifier"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "enum": [
            "invalid_input",
            "forbidden",
            "not_found",
            "conflict",
            "system_unavailable"
          ]
        },
        "http_status": {
          "type": "integer",
          "minimum": 400,
          "maximum": 599
        },
        "code": {
          "type": "string",
          "pattern": "^[A-Z][A-Z0-9_:.-]{2,160}$"
        },
        "detail": {
          "type": [
            "object",
            "string"
          ]
        },
        "action": {
          "type": "string"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "http_status",
        "code",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos"
      ]
    }
  ],
  "x-action-schemas": {
    "register_anchor": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_anchor"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "anchor"
      ]
    },
    "vet_anchor": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "vet_anchor"
        },
        "status": {
          "enum": [
            "platform_vetted",
            "awaiting_second_operator"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "anchor"
      ]
    },
    "revoke_anchor": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_anchor"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "anchor"
        },
        "id": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "anchor"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "dependents_invalidated_on_next_check",
        "anchor",
        "receipt"
      ]
    },
    "register_credential": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_credential"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "credential": {
          "type": "object",
          "properties": {
            "credential_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "credential_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "credential"
      ]
    },
    "register_source_record": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_source_record"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "source_record": {
          "type": "object",
          "properties": {
            "record_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "record_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "source_record"
      ]
    },
    "register_issuer_state": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_issuer_state"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "issuer_state": {
          "type": "object",
          "properties": {
            "record_id": {
              "type": "string"
            },
            "state": {
              "type": "string"
            }
          },
          "required": [
            "record_id",
            "state"
          ],
          "additionalProperties": true
        },
        "idempotent_record": {
          "type": "boolean"
        },
        "dependents_rechecked_on_next_read": {
          "type": "boolean"
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "issuer_state"
      ]
    },
    "revoke_credential": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_credential"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "credential"
        },
        "id": {
          "type": "string"
        },
        "revocation_basis": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "credential"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "revocation_basis",
        "dependents_invalidated_on_next_check",
        "receipt"
      ]
    },
    "revoke_source_record": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_source_record"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "source_record"
        },
        "id": {
          "type": "string"
        },
        "revocation_basis": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "source_record"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "revocation_basis",
        "dependents_invalidated_on_next_check",
        "receipt"
      ]
    },
    "close_residual": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "close_residual"
        },
        "status": {
          "enum": [
            "closed"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "closure": {
          "type": "object",
          "properties": {
            "closure_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "closure_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "closure"
      ]
    },
    "revoke_closure": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_closure"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "closure"
        },
        "id": {
          "type": "string"
        },
        "case_id": {
          "type": "string"
        },
        "residual_code": {
          "type": "string"
        },
        "dependents_invalidated_on_next_check": {
          "const": true
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "closure"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "case_id",
        "residual_code",
        "dependents_invalidated_on_next_check",
        "receipt"
      ]
    },
    "register_capability": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "register_capability"
        },
        "status": {
          "enum": [
            "registered"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "capability": {
          "type": "object",
          "properties": {
            "capability_id": {
              "type": "string"
            },
            "case_id": {
              "type": "string"
            },
            "effect_type": {
              "type": "string"
            },
            "not_after": {
              "type": "string"
            }
          },
          "required": [
            "capability_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "capability"
      ]
    },
    "revoke_capability": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "revoke_capability"
        },
        "status": {
          "enum": [
            "revoked"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "kind": {
          "const": "capability"
        },
        "id": {
          "type": "string"
        },
        "case_id": {
          "type": "string"
        },
        "revocation_basis": {
          "type": "string"
        },
        "next_verification": {
          "const": "deny"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "revocation"
            },
            "target_kind": {
              "const": "capability"
            },
            "target_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "revoked_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "operation_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "target_kind",
            "target_id",
            "revoked_by_principal_sha256",
            "operation_id"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "kind",
        "id",
        "case_id",
        "revocation_basis",
        "next_verification",
        "receipt"
      ]
    },
    "verify_capability": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "verify_capability"
        },
        "status": {
          "enum": [
            "verified"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "decision": {
          "enum": [
            "allow",
            "deny"
          ]
        },
        "deny_reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "verification_id": {
          "type": "string"
        },
        "capability_id": {
          "type": "string"
        },
        "case": {
          "type": [
            "object",
            "null"
          ]
        },
        "valid_until": {
          "type": [
            "string",
            "null"
          ]
        },
        "reliance": {
          "type": [
            "string",
            "null"
          ]
        },
        "effect_scope": {
          "type": [
            "object",
            "null"
          ]
        },
        "dependency_chain": {
          "type": "array"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "capability_verification"
            },
            "verification_id": {
              "type": "string",
              "pattern": "^VR-[a-f0-9]{48}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "case_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "decision": {
              "type": "string",
              "enum": [
                "allow",
                "deny"
              ]
            },
            "deny_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "minItems": 0,
              "maxItems": 100
            },
            "effect_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            },
            "requested_effect_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "executor_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "reliance": {
              "type": [
                "string",
                "null"
              ]
            },
            "valid_until": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "verification_id",
            "capability_id",
            "case_id",
            "decision",
            "deny_reasons",
            "effect_id",
            "requested_effect_sha256",
            "executor_principal_sha256",
            "reliance",
            "valid_until"
          ]
        },
        "executor_obligations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lab_fixture_warning": {
          "type": [
            "string",
            "null"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "decision",
        "deny_reasons",
        "verification_id",
        "capability_id",
        "case",
        "valid_until",
        "reliance",
        "effect_scope",
        "dependency_chain",
        "receipt",
        "executor_obligations",
        "lab_fixture_warning"
      ]
    },
    "commit_effect": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "commit_effect"
        },
        "status": {
          "enum": [
            "checked",
            "already_committed"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "decision": {
          "enum": [
            "commit",
            "deny",
            "already_committed"
          ]
        },
        "deny_reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "verification_id": {
          "type": "string"
        },
        "commit_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "commit_valid_until": {
          "type": [
            "string",
            "null"
          ]
        },
        "committed_at": {
          "type": "string"
        },
        "capability_id": {
          "type": "string"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "effect_commit"
            },
            "commit_id": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^CM-[a-f0-9]{48}$"
            },
            "verification_id": {
              "type": "string",
              "pattern": "^VR-[a-f0-9]{48}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "effect_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            },
            "requested_effect_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "decision": {
              "type": "string",
              "enum": [
                "commit",
                "deny"
              ]
            },
            "deny_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "minItems": 0,
              "maxItems": 100
            },
            "commit_valid_until": {
              "type": [
                "string",
                "null"
              ]
            },
            "executor_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "permission_basis": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "effect_state": {
                  "type": "string",
                  "enum": [
                    "positive",
                    "conditional",
                    "pending",
                    "adverse",
                    "revoked",
                    "not_modelled"
                  ]
                },
                "conditions": {
                  "type": "array",
                  "maxItems": 4,
                  "items": {
                    "type": "object"
                  }
                },
                "basis_reviews": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "minItems": 0,
                  "maxItems": 64
                },
                "decision_state_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "decision_journal_head_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "capability_document_sha256": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "effect_state",
                "conditions",
                "basis_reviews",
                "decision_state_sha256",
                "decision_journal_head_sha256",
                "capability_document_sha256"
              ]
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "commit_id",
            "verification_id",
            "capability_id",
            "effect_id",
            "requested_effect_sha256",
            "decision",
            "deny_reasons",
            "commit_valid_until",
            "executor_principal_sha256"
          ]
        },
        "effect_state": {
          "type": [
            "object",
            "null"
          ]
        },
        "executor_obligations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "decision",
        "verification_id",
        "commit_id",
        "commit_valid_until",
        "executor_obligations"
      ]
    },
    "record_effect": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "record_effect"
        },
        "status": {
          "enum": [
            "recorded"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "verification_id": {
          "type": "string"
        },
        "outcome": {
          "enum": [
            "succeeded",
            "failed",
            "not_attempted"
          ]
        },
        "reported_after_valid_until": {
          "type": "boolean"
        },
        "commit_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "commit_time_check_performed": {
          "type": "boolean"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "effect_report"
            },
            "verification_id": {
              "type": "string",
              "pattern": "^VR-[a-f0-9]{48}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "effect_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "\\S"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "not_attempted"
              ]
            },
            "external_ref_sha256": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "reported_after_valid_until": {
              "type": "boolean"
            },
            "commit_id": {
              "type": "string",
              "pattern": "^CM-[a-f0-9]{48}$"
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "verification_id",
            "capability_id",
            "effect_id",
            "outcome",
            "external_ref_sha256",
            "reported_after_valid_until"
          ]
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "verification_id",
        "outcome",
        "reported_after_valid_until",
        "commit_id",
        "commit_time_check_performed",
        "receipt"
      ]
    },
    "get": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "get"
        },
        "status": {
          "enum": [
            "ok"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "anchor": {
          "type": "object",
          "properties": {
            "anchor_id": {
              "type": "string"
            },
            "anchor_role": {
              "type": "string"
            },
            "trust_tier": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "anchor_id"
          ],
          "additionalProperties": true
        },
        "credential": {
          "type": "object",
          "properties": {
            "credential_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "credential_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "source_record": {
          "type": "object",
          "properties": {
            "record_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "record_id",
            "usable",
            "reasons"
          ],
          "additionalProperties": true
        },
        "closure": {
          "type": "object",
          "properties": {
            "closure_id": {
              "type": "string"
            },
            "usable": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "closure_id"
          ],
          "additionalProperties": true
        },
        "capability": {
          "type": "object",
          "properties": {
            "capability_id": {
              "type": "string"
            },
            "case_id": {
              "type": "string"
            },
            "effect_type": {
              "type": "string"
            },
            "not_after": {
              "type": "string"
            }
          },
          "required": [
            "capability_id"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos"
      ],
      "oneOf": [
        {
          "required": [
            "anchor"
          ]
        },
        {
          "required": [
            "credential"
          ]
        },
        {
          "required": [
            "source_record"
          ]
        },
        {
          "required": [
            "closure"
          ]
        },
        {
          "required": [
            "capability"
          ]
        }
      ]
    },
    "trace": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "trace"
        },
        "status": {
          "enum": [
            "ok"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "capability_id": {
          "type": "string"
        },
        "currently_valid": {
          "type": "boolean"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "reliance": {
          "type": [
            "string",
            "null"
          ]
        },
        "chain": {
          "type": "object"
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "capability_id",
        "currently_valid",
        "reasons",
        "reliance",
        "chain"
      ]
    },
    "check_permission": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "check_permission"
        },
        "status": {
          "enum": [
            "ok"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "permission_position": {
          "type": "object",
          "properties": {
            "contract_version": {
              "const": "mvr.permission-position/1"
            },
            "tier": {
              "enum": [
                "prohibited",
                "not_permitted",
                "planning_only",
                "conditionally_permitted",
                "permitted_up_to_ceiling",
                "fully_permitted"
              ]
            },
            "institution_capability_covers_effect": {
              "type": "boolean"
            },
            "narrowest_allowed_now": {
              "type": "array"
            },
            "blocked": {
              "type": "array"
            },
            "closure_path": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "minimum_accountable_acts": {
                  "type": "integer",
                  "minimum": 0
                },
                "acts": {
                  "type": "array"
                }
              },
              "required": [
                "status",
                "minimum_accountable_acts",
                "acts"
              ],
              "additionalProperties": true
            },
            "execution_authorized": {
              "const": false
            }
          },
          "required": [
            "contract_version",
            "tier",
            "institution_capability_covers_effect",
            "narrowest_allowed_now",
            "blocked",
            "closure_path",
            "execution_authorized"
          ],
          "additionalProperties": true
        },
        "dependency_graph": {
          "type": "object",
          "properties": {
            "nodes": {
              "type": "array"
            },
            "edges": {
              "type": "array"
            }
          },
          "required": [
            "nodes",
            "edges"
          ],
          "additionalProperties": true
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "permission_position",
        "dependency_graph"
      ]
    },
    "issue_permission_statement": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "issue_permission_statement"
        },
        "status": {
          "enum": [
            "issued"
          ]
        },
        "idempotent_replay": {
          "type": "boolean"
        },
        "issued_by_amos": {
          "const": false
        },
        "amos_authorization": {
          "const": false
        },
        "authority_source": {
          "const": "institution_signature_only"
        },
        "real_world_identity_verified_by_amos": {
          "const": false
        },
        "coverage": {
          "enum": [
            "covered",
            "not_covered"
          ]
        },
        "statement": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "type": {
              "const": "mvr.permission-statement/1"
            },
            "statement_id": {
              "type": "string",
              "pattern": "^PS-[a-f0-9]{48}$"
            },
            "issued_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "valid_until": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "case_id": {
              "type": "string",
              "pattern": "^RC-[a-f0-9]{64}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "capability_document_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "institution_anchor_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "reliance": {
              "type": "string",
              "enum": [
                "lab_fixture_only",
                "institution_signed"
              ]
            },
            "executor_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "requested_effect": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "effect_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120,
                  "pattern": "\\S"
                },
                "effect_type": {
                  "type": "string",
                  "enum": [
                    "amos.document.draft.create@1",
                    "amos.communication.evidence.request@1",
                    "amos.calendar.meeting.create@1",
                    "amos.communication.counterparty.contact@1",
                    "amos.document.publish@1",
                    "amos.finance.spend.commit@1",
                    "amos.owner_lab.artifact.create@1",
                    "amos.procurement.order.issue@1",
                    "amos.finance.payment.initiate@1",
                    "amos.credit.application.approve@1",
                    "amos.distribution.product.release@1",
                    "amos.programme.participant.enrol@1",
                    "amos.data.record.disclose@1",
                    "amos.licence.permission.grant@1",
                    "amos.licence.permission.revoke@1",
                    "create_draft_record",
                    "send_evidence_request",
                    "schedule_meeting",
                    "contact_counterparty",
                    "publish_document",
                    "commit_spend"
                  ]
                },
                "resource": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "system": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "pattern": "\\S"
                    },
                    "resource_type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "pattern": "\\S"
                    },
                    "resource_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "\\S"
                    }
                  },
                  "required": [
                    "system",
                    "resource_type"
                  ]
                },
                "amount_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "external_contact": {
                  "type": "boolean"
                },
                "counterparty_ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                }
              },
              "required": [
                "effect_id",
                "effect_type",
                "resource"
              ]
            },
            "requested_effect_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "coverage": {
              "type": "string",
              "enum": [
                "covered",
                "not_covered"
              ]
            },
            "deny_reasons": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "\\S"
              },
              "minItems": 0,
              "maxItems": 100
            },
            "effect_state": {
              "anyOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "target": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "effect_type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "\\S"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "positive",
                        "conditional",
                        "pending",
                        "adverse",
                        "revoked",
                        "not_modelled"
                      ]
                    },
                    "conditions": {
                      "type": "array",
                      "maxItems": 4,
                      "items": {
                        "type": "object"
                      }
                    },
                    "basis_reviews": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "minItems": 0,
                      "maxItems": 64
                    },
                    "basis_credential_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                      },
                      "minItems": 0,
                      "maxItems": 64
                    },
                    "valid_until": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision_state_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "decision_journal_head_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "target",
                    "effect_type",
                    "state",
                    "conditions",
                    "basis_reviews",
                    "basis_credential_ids",
                    "valid_until",
                    "decision_state_sha256",
                    "decision_journal_head_sha256"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "dependencies": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "capability",
                      "institution_anchor",
                      "review_case",
                      "residual_closure",
                      "reviewer_designation",
                      "decision_journal"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  },
                  "sha256": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "valid_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "revision": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "residual_code": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "id",
                  "sha256",
                  "valid_until"
                ]
              },
              "minItems": 1,
              "maxItems": 80
            },
            "standing_assertions": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "credential_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                  },
                  "asserted_by_anchor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "asserted_by_organization_ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "verification": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  },
                  "trust_tier": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "usable": {
                    "type": "boolean"
                  },
                  "not_after": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "credential_sha256": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "supports_effect": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "\\S"
                  }
                },
                "required": [
                  "credential_id",
                  "asserted_by_anchor_id",
                  "asserted_by_organization_ref",
                  "verification",
                  "trust_tier",
                  "usable",
                  "not_after",
                  "credential_sha256",
                  "supports_effect"
                ]
              },
              "minItems": 0,
              "maxItems": 64
            },
            "revocation": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "checked_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                },
                "method": {
                  "const": "atomic_reread_of_every_dependency"
                },
                "commit_required": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 400,
                  "pattern": "\\S"
                }
              },
              "required": [
                "checked_at",
                "method",
                "commit_required"
              ]
            },
            "requested_by_principal_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "execution_authorized": {
              "const": false
            },
            "amos_issued_authority": {
              "const": false
            }
          },
          "required": [
            "type",
            "statement_id",
            "issued_at",
            "valid_until",
            "case_id",
            "capability_id",
            "capability_document_sha256",
            "institution_anchor_id",
            "reliance",
            "executor_principal_sha256",
            "requested_effect",
            "requested_effect_sha256",
            "coverage",
            "deny_reasons",
            "effect_state",
            "dependencies",
            "standing_assertions",
            "revocation",
            "requested_by_principal_sha256",
            "execution_authorized",
            "amos_issued_authority"
          ]
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sequence": {
              "type": "integer",
              "minimum": 1
            },
            "prev_sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "recorded_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "signature": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "const": "unsigned"
                    },
                    "reason": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    },
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "key_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 128
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ]
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "standard": {
                      "const": "MVR-RECEIPT-SIG-V1"
                    },
                    "status": {
                      "const": "signed"
                    },
                    "algorithm": {
                      "const": "Ed25519"
                    },
                    "key_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S"
                    },
                    "registry_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "signature_b64": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9+/]{86}==$"
                    }
                  },
                  "required": [
                    "standard",
                    "status",
                    "algorithm",
                    "key_id",
                    "signature_b64"
                  ]
                }
              ]
            },
            "lab_fixture": {
              "type": "boolean"
            },
            "production_authority": {
              "const": false
            },
            "kind": {
              "const": "permission_statement"
            },
            "statement_id": {
              "type": "string",
              "pattern": "^PS-[a-f0-9]{48}$"
            },
            "case_id": {
              "type": "string",
              "pattern": "^RC-[a-f0-9]{64}$"
            },
            "capability_id": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
            },
            "coverage": {
              "type": "string",
              "enum": [
                "covered",
                "not_covered"
              ]
            },
            "valid_until": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
            },
            "statement": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "const": "mvr.permission-statement/1"
                },
                "statement_id": {
                  "type": "string",
                  "pattern": "^PS-[a-f0-9]{48}$"
                },
                "issued_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                },
                "valid_until": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                },
                "case_id": {
                  "type": "string",
                  "pattern": "^RC-[a-f0-9]{64}$"
                },
                "capability_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                },
                "capability_document_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "institution_anchor_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                },
                "reliance": {
                  "type": "string",
                  "enum": [
                    "lab_fixture_only",
                    "institution_signed"
                  ]
                },
                "executor_principal_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "requested_effect": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "effect_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "\\S"
                    },
                    "effect_type": {
                      "type": "string",
                      "enum": [
                        "amos.document.draft.create@1",
                        "amos.communication.evidence.request@1",
                        "amos.calendar.meeting.create@1",
                        "amos.communication.counterparty.contact@1",
                        "amos.document.publish@1",
                        "amos.finance.spend.commit@1",
                        "amos.owner_lab.artifact.create@1",
                        "amos.procurement.order.issue@1",
                        "amos.finance.payment.initiate@1",
                        "amos.credit.application.approve@1",
                        "amos.distribution.product.release@1",
                        "amos.programme.participant.enrol@1",
                        "amos.data.record.disclose@1",
                        "amos.licence.permission.grant@1",
                        "amos.licence.permission.revoke@1",
                        "create_draft_record",
                        "send_evidence_request",
                        "schedule_meeting",
                        "contact_counterparty",
                        "publish_document",
                        "commit_spend"
                      ]
                    },
                    "resource": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "system": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80,
                          "pattern": "\\S"
                        },
                        "resource_type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80,
                          "pattern": "\\S"
                        },
                        "resource_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "\\S"
                        }
                      },
                      "required": [
                        "system",
                        "resource_type"
                      ]
                    },
                    "amount_minor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    },
                    "external_contact": {
                      "type": "boolean"
                    },
                    "counterparty_ref": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "\\S"
                    }
                  },
                  "required": [
                    "effect_id",
                    "effect_type",
                    "resource"
                  ]
                },
                "requested_effect_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "coverage": {
                  "type": "string",
                  "enum": [
                    "covered",
                    "not_covered"
                  ]
                },
                "deny_reasons": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "\\S"
                  },
                  "minItems": 0,
                  "maxItems": 100
                },
                "effect_state": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "target": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "effect_type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "\\S"
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "positive",
                            "conditional",
                            "pending",
                            "adverse",
                            "revoked",
                            "not_modelled"
                          ]
                        },
                        "conditions": {
                          "type": "array",
                          "maxItems": 4,
                          "items": {
                            "type": "object"
                          }
                        },
                        "basis_reviews": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          "minItems": 0,
                          "maxItems": 64
                        },
                        "basis_credential_ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                          },
                          "minItems": 0,
                          "maxItems": 64
                        },
                        "valid_until": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "decision_state_sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "decision_journal_head_sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        }
                      },
                      "required": [
                        "target",
                        "effect_type",
                        "state",
                        "conditions",
                        "basis_reviews",
                        "basis_credential_ids",
                        "valid_until",
                        "decision_state_sha256",
                        "decision_journal_head_sha256"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dependencies": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "capability",
                          "institution_anchor",
                          "review_case",
                          "residual_closure",
                          "reviewer_designation",
                          "decision_journal"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "\\S"
                      },
                      "sha256": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "valid_until": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "residual_code": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "id",
                      "sha256",
                      "valid_until"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 80
                },
                "standing_assertions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "credential_id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{2,119}$"
                      },
                      "asserted_by_anchor_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "asserted_by_organization_ref": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "verification": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "\\S"
                      },
                      "trust_tier": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "usable": {
                        "type": "boolean"
                      },
                      "not_after": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "credential_sha256": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "supports_effect": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120,
                        "pattern": "\\S"
                      }
                    },
                    "required": [
                      "credential_id",
                      "asserted_by_anchor_id",
                      "asserted_by_organization_ref",
                      "verification",
                      "trust_tier",
                      "usable",
                      "not_after",
                      "credential_sha256",
                      "supports_effect"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 64
                },
                "revocation": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "checked_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
                    },
                    "method": {
                      "const": "atomic_reread_of_every_dependency"
                    },
                    "commit_required": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 400,
                      "pattern": "\\S"
                    }
                  },
                  "required": [
                    "checked_at",
                    "method",
                    "commit_required"
                  ]
                },
                "requested_by_principal_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "execution_authorized": {
                  "const": false
                },
                "amos_issued_authority": {
                  "const": false
                }
              },
              "required": [
                "type",
                "statement_id",
                "issued_at",
                "valid_until",
                "case_id",
                "capability_id",
                "capability_document_sha256",
                "institution_anchor_id",
                "reliance",
                "executor_principal_sha256",
                "requested_effect",
                "requested_effect_sha256",
                "coverage",
                "deny_reasons",
                "effect_state",
                "dependencies",
                "standing_assertions",
                "revocation",
                "requested_by_principal_sha256",
                "execution_authorized",
                "amos_issued_authority"
              ]
            }
          },
          "required": [
            "sequence",
            "prev_sha256",
            "recorded_at",
            "sha256",
            "signature",
            "kind",
            "statement_id",
            "case_id",
            "capability_id",
            "coverage",
            "valid_until",
            "statement"
          ]
        },
        "verifier": {
          "type": "string"
        },
        "response_meta": {
          "type": "object"
        },
        "response_contract_version": {
          "type": "string"
        },
        "action_authorization": {
          "type": "object"
        },
        "output_use_authorization": {
          "type": "object"
        },
        "analysis_use": {
          "type": "object"
        },
        "action_capability": {
          "type": "object"
        },
        "execution_authorization_state": {
          "const": "not_authorized"
        },
        "human_review_required": {
          "type": "boolean"
        },
        "answer": {
          "type": "object"
        },
        "residual_risk_register": {
          "type": "object"
        },
        "action_boundary": {
          "type": "object"
        },
        "evidence_authentication_status": {
          "type": "string"
        },
        "authenticated_verified_count": {
          "type": "integer"
        },
        "evidence_authentication_basis": {},
        "external_use_ceiling": {},
        "internal_work_products": {},
        "stable_content_hash": {
          "type": "string"
        },
        "cite": {},
        "response_hash": {
          "type": "string"
        }
      },
      "required": [
        "action",
        "status",
        "idempotent_replay",
        "issued_by_amos",
        "amos_authorization",
        "authority_source",
        "real_world_identity_verified_by_amos",
        "coverage",
        "statement",
        "receipt",
        "verifier"
      ]
    }
  },
  "x-error-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "status": {
        "enum": [
          "invalid_input",
          "forbidden",
          "not_found",
          "conflict",
          "system_unavailable"
        ]
      },
      "http_status": {
        "type": "integer",
        "minimum": 400,
        "maximum": 599
      },
      "code": {
        "type": "string",
        "pattern": "^[A-Z][A-Z0-9_:.-]{2,160}$"
      },
      "detail": {
        "type": [
          "object",
          "string"
        ]
      },
      "action": {
        "type": "string"
      },
      "issued_by_amos": {
        "const": false
      },
      "amos_authorization": {
        "const": false
      },
      "authority_source": {
        "const": "institution_signature_only"
      },
      "real_world_identity_verified_by_amos": {
        "const": false
      },
      "response_meta": {
        "type": "object"
      },
      "response_contract_version": {
        "type": "string"
      },
      "action_authorization": {
        "type": "object"
      },
      "output_use_authorization": {
        "type": "object"
      },
      "analysis_use": {
        "type": "object"
      },
      "action_capability": {
        "type": "object"
      },
      "execution_authorization_state": {
        "const": "not_authorized"
      },
      "human_review_required": {
        "type": "boolean"
      },
      "answer": {
        "type": "object"
      },
      "residual_risk_register": {
        "type": "object"
      },
      "action_boundary": {
        "type": "object"
      },
      "evidence_authentication_status": {
        "type": "string"
      },
      "authenticated_verified_count": {
        "type": "integer"
      },
      "evidence_authentication_basis": {},
      "external_use_ceiling": {},
      "internal_work_products": {},
      "stable_content_hash": {
        "type": "string"
      },
      "cite": {},
      "response_hash": {
        "type": "string"
      }
    },
    "required": [
      "status",
      "http_status",
      "code",
      "issued_by_amos",
      "amos_authorization",
      "authority_source",
      "real_world_identity_verified_by_amos"
    ]
  },
  "x-invariants": {
    "fields": {
      "issued_by_amos": {
        "const": false
      },
      "amos_authorization": {
        "const": false
      },
      "authority_source": {
        "const": "institution_signature_only"
      },
      "real_world_identity_verified_by_amos": {
        "const": false
      }
    },
    "rule": "Every success and error response carries these exact values. Success branches are closed: each lists every field its action can return."
  }
}