{
  "envelope": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:ae82bc263f69fee3d9d3f2d51fbd29c9f07827eda1f3e430426b2255958440c4",
    "json_schema": {
      "type": "object",
      "properties": {
        "envelope_version": {
          "type": "number",
          "const": 1
        },
        "issuer": {
          "type": "string",
          "pattern": "^op_[\\w-]+$"
        },
        "subject": {
          "type": "string",
          "pattern": "^stack:\\/\\/[a-z]+\\/[\\w-]+(\\/[a-z]+\\/[\\w-]+)?$"
        },
        "issued_at": {
          "type": "integer"
        },
        "claim_type": {
          "type": "string",
          "enum": [
            "svid_attestation",
            "workload_attestation",
            "rats_evidence",
            "slsa_provenance",
            "c2pa_assertion",
            "ai_bom_ref",
            "intent_claim",
            "intent_outcome",
            "intent_denial",
            "intent_simulation",
            "entity_observation",
            "detector_signal",
            "skill_invocation",
            "checkpoint_approval",
            "identity_claim",
            "mission",
            "behavioral_genome",
            "twin_divergence",
            "evidence_pack",
            "operator_decision",
            "operator_review",
            "external_proof_verification",
            "authority_binding",
            "authority_approval",
            "authority_use",
            "receiver_transaction_receipt",
            "authority_erasure_tombstone",
            "passport_color",
            "dossier",
            "chain_anchor"
          ]
        },
        "claim_version": {
          "type": "integer",
          "minimum": 1
        },
        "payload": {},
        "receipt": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "registry": {
                  "type": "string"
                },
                "registered_at": {
                  "type": "integer"
                },
                "registry_entry_uri": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "proof": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "format": {
                          "type": "string",
                          "enum": [
                            "scitt-cose-receipt",
                            "rekor-v2-tle",
                            "stack-merkle-v1"
                          ]
                        },
                        "bytes": {
                          "type": "string"
                        },
                        "log_index": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tree_size": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "root_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "format",
                        "bytes",
                        "log_index",
                        "tree_size",
                        "root_hash"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "witnesses": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "registry": {
                            "type": "string"
                          },
                          "registry_entry_uri": {
                            "type": "string"
                          },
                          "proof_bytes": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "registry",
                          "registry_entry_uri",
                          "proof_bytes"
                        ],
                        "additionalProperties": false
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "registry",
                "registered_at",
                "registry_entry_uri",
                "proof",
                "witnesses"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "co_signatures": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "signer_kid": {
                "type": "string",
                "minLength": 1
              },
              "signer_role": {
                "type": "string",
                "enum": [
                  "operator_attestation",
                  "agent_self",
                  "witness"
                ]
              },
              "cose_sign1": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "signer_kid",
              "signer_role",
              "cose_sign1"
            ],
            "additionalProperties": false
          },
          "default": []
        }
      },
      "required": [
        "envelope_version",
        "issuer",
        "subject",
        "issued_at",
        "claim_type",
        "claim_version",
        "receipt"
      ],
      "additionalProperties": false
    }
  },
  "svid_attestation": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:1541bcc06502998197400e4122164d9c50fa9e0826da8e5c28e229b7b82f7a89",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "svid_attestation"
        },
        "spiffe_id": {
          "type": "string"
        },
        "trust_domain": {
          "type": "string"
        },
        "not_after_svid": {
          "type": "number"
        },
        "issuer": {
          "type": "string"
        },
        "attested_at": {
          "type": "number"
        },
        "svid_format": {
          "type": "string",
          "enum": [
            "jwt-svid",
            "x509-svid"
          ]
        }
      },
      "required": [
        "type",
        "spiffe_id",
        "trust_domain",
        "not_after_svid",
        "issuer",
        "attested_at",
        "svid_format"
      ],
      "additionalProperties": false
    }
  },
  "workload_attestation": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:4ddcf123e800cfdf6849a4b651bc50891875b9a2d1fca8dbd8c08f3bb4a04170",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "workload_attestation"
        },
        "workload_id": {
          "type": "string"
        },
        "issuer": {
          "type": "string"
        },
        "audience": {
          "type": "string"
        },
        "not_after_token": {
          "type": "number"
        },
        "attested_at": {
          "type": "number"
        },
        "token_format": {
          "type": "string",
          "enum": [
            "wimse-wit"
          ]
        },
        "confirmation_jwk": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "type",
        "workload_id",
        "issuer",
        "not_after_token",
        "attested_at",
        "token_format"
      ],
      "additionalProperties": false
    }
  },
  "rats_evidence": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:9ea68b1fd9cb875e2d7ed186c64d78ebffd83b9ba0271edd0c6ef2cc8248c508",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "rats_evidence"
        },
        "evidence_format": {
          "type": "string",
          "enum": [
            "aws-nitro-enclave",
            "tpm-eat",
            "amd-sev-snp",
            "intel-tdx",
            "arm-cca",
            "generic-eat"
          ]
        },
        "measurements": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "pubkey_jwk": {
          "type": "object",
          "additionalProperties": {}
        },
        "nonce": {
          "type": "string"
        },
        "evidence_uri": {
          "type": "string"
        },
        "evidence_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "attested_at": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "evidence_format",
        "measurements",
        "attested_at"
      ],
      "additionalProperties": false
    }
  },
  "slsa_provenance": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:7ee16d13732c61c1ace57f65552c379ff89440bb2ec0862db10a743aa03c624f",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "slsa_provenance"
        },
        "predicate_type": {
          "type": "string",
          "const": "https://slsa.dev/provenance/v1"
        },
        "build_type": {
          "type": "string"
        },
        "builder": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "version": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "builder_dependencies": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "uri": {
                    "type": "string"
                  },
                  "digest": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "uri",
                  "digest"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        "invocation": {
          "type": "object",
          "properties": {
            "config_source": {
              "type": "object",
              "properties": {
                "uri": {
                  "type": "string"
                },
                "digest": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "entry_point": {
                  "type": "string"
                }
              },
              "required": [
                "uri",
                "digest"
              ],
              "additionalProperties": false
            },
            "parameters": {
              "type": "object",
              "additionalProperties": {}
            },
            "environment": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "additionalProperties": false
        },
        "subject_digest": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "slsa_level": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4
        },
        "attested_at": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "predicate_type",
        "build_type",
        "builder",
        "subject_digest",
        "attested_at"
      ],
      "additionalProperties": false
    }
  },
  "ai_bom_ref": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:19f9718e58bc61fdd5bc3db40c4c3f4ccdb8a79dee2b963e1cef869bb2a9d85a",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "ai_bom_ref"
        },
        "bom_format": {
          "type": "string",
          "const": "CycloneDX"
        },
        "spec_version": {
          "type": "string"
        },
        "bom_uri": {
          "type": "string"
        },
        "bom_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "models": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "license": {
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        },
        "training_data_summary": {
          "type": "string"
        },
        "attested_at": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "bom_format",
        "spec_version",
        "bom_uri",
        "bom_sha256",
        "attested_at"
      ],
      "additionalProperties": false
    }
  },
  "c2pa_assertion": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:2af4b1d5a4fe479645bdbc9bbf1ed1f9ed2a6298266706e83d46eaccd410aa67",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "c2pa_assertion"
        },
        "manifest_uri": {
          "type": "string"
        },
        "manifest_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "claim_generator": {
          "type": "string"
        },
        "signature_info": {
          "type": "object",
          "properties": {
            "issuer": {
              "type": "string"
            },
            "cert_thumbprint": {
              "type": "string",
              "pattern": "^[0-9a-f]{40,128}$"
            },
            "signature_alg": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "content_digest": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "content_type": {
          "type": "string"
        },
        "attested_at": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "content_digest",
        "attested_at"
      ],
      "additionalProperties": false
    }
  },
  "intent_claim": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:de55d079019316893275b53ed32e14a8e6ea7326f2e24d0fe4b4cbcc4956c176",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "intent_claim"
        },
        "intent_type": {
          "type": "string",
          "enum": [
            "http_call",
            "mcp_tool",
            "skill_invocation",
            "onchain_tx",
            "task_complete",
            "a2a_dispatch"
          ]
        },
        "agent_id": {
          "type": "string",
          "pattern": "^(ag|agt)_[\\w-]+$"
        },
        "named_intent": {
          "type": "string",
          "pattern": "^[a-z][\\w-]*:[a-z][\\w-]*:[a-z][\\w-]*$"
        },
        "target": {
          "type": "string",
          "minLength": 1,
          "description": "For http_call: the granted service SLUG (e.g. 'stripe'), NOT a URL — put the URL in parameters.url. For mcp_tool: tool URI. For skill_invocation: skill_id. For onchain_tx: contract address."
        },
        "action": {
          "type": "string",
          "minLength": 1
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {}
        },
        "estimated_cost": {
          "type": "object",
          "properties": {
            "wallet_cents": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "tokens": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "gas_gwei": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "wallet_cents",
            "tokens",
            "gas_gwei"
          ],
          "additionalProperties": false
        },
        "accountability": {
          "type": "string",
          "enum": [
            "enforced",
            "logged",
            "standard"
          ],
          "default": "standard"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2048
            },
            {
              "type": "null"
            }
          ]
        },
        "requires": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^pc_[\\w-]+$"
          },
          "default": []
        },
        "user_subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "submitted_at": {
          "type": "integer"
        }
      },
      "required": [
        "type",
        "intent_type",
        "agent_id",
        "named_intent",
        "target",
        "action",
        "parameters",
        "estimated_cost",
        "reason",
        "user_subject",
        "mission_ref",
        "submitted_at"
      ],
      "additionalProperties": false
    }
  },
  "detector_signal": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:caf070cd15a4068601a564f07b58365588cf77a11f850846843131462b77bfc8",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "detector_signal"
        },
        "detector_key": {
          "type": "string",
          "pattern": "^[a-z][\\w]*$"
        },
        "severity": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ]
        },
        "pipeline": {
          "type": "string",
          "enum": [
            "heuristic",
            "llm",
            "detection-chain"
          ]
        },
        "intent_claim_ref": {
          "type": "string",
          "pattern": "^pc_[\\w-]+$"
        },
        "agent_id": {
          "type": "string",
          "pattern": "^(ag|agt)_[\\w-]+$"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {},
          "default": {}
        },
        "detected_at": {
          "type": "integer"
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "detector_key",
        "severity",
        "pipeline",
        "detected_at"
      ],
      "additionalProperties": false
    }
  },
  "intent_outcome": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:4c5ad44b725e2e4f521a83735db2216bbfdcfeb739f3bb42e8946b575a3e1299",
    "json_schema": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_outcome"
            },
            "intent_claim_ref": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            "status": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "cancelled",
                "timeout"
              ]
            },
            "duration_ms": {
              "type": "integer",
              "minimum": 0
            },
            "cost_actual": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "recorded_at": {
              "type": "integer"
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcome_type": {
              "type": "string",
              "const": "skill_invocation"
            },
            "actual_skill_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_input_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "output_envelope_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "exit_code": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "type",
            "intent_claim_ref",
            "status",
            "duration_ms",
            "cost_actual",
            "recorded_at",
            "outcome_type",
            "actual_skill_id",
            "actual_input_hash",
            "output_envelope_hash",
            "exit_code"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_outcome"
            },
            "intent_claim_ref": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            "status": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "cancelled",
                "timeout"
              ]
            },
            "duration_ms": {
              "type": "integer",
              "minimum": 0
            },
            "cost_actual": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "recorded_at": {
              "type": "integer"
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcome_type": {
              "type": "string",
              "const": "http_call"
            },
            "actual_target": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_method_path": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_parameters_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status_code": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "response_body_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "latency_ms": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "redactions_count": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "detector_fires_count": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          "required": [
            "type",
            "intent_claim_ref",
            "status",
            "duration_ms",
            "cost_actual",
            "recorded_at",
            "outcome_type",
            "actual_target",
            "actual_method_path",
            "actual_parameters_hash",
            "status_code",
            "response_body_hash",
            "latency_ms"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_outcome"
            },
            "intent_claim_ref": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            "status": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "cancelled",
                "timeout"
              ]
            },
            "duration_ms": {
              "type": "integer",
              "minimum": 0
            },
            "cost_actual": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "recorded_at": {
              "type": "integer"
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcome_type": {
              "type": "string",
              "const": "mcp_tool"
            },
            "actual_tool_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_args_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tool_result_envelope_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tool_error_code": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "intent_claim_ref",
            "status",
            "duration_ms",
            "cost_actual",
            "recorded_at",
            "outcome_type",
            "actual_tool_name",
            "actual_args_hash",
            "tool_result_envelope_hash",
            "tool_error_code"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_outcome"
            },
            "intent_claim_ref": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            "status": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "cancelled",
                "timeout"
              ]
            },
            "duration_ms": {
              "type": "integer",
              "minimum": 0
            },
            "cost_actual": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "recorded_at": {
              "type": "integer"
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcome_type": {
              "type": "string",
              "const": "onchain_tx"
            },
            "actual_contract": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[0-9a-f]{40}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "actual_function_selector": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_args_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tx_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "block_number": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "gas_used": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "revert_reason": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "intent_claim_ref",
            "status",
            "duration_ms",
            "cost_actual",
            "recorded_at",
            "outcome_type",
            "actual_contract",
            "actual_function_selector",
            "actual_args_hash",
            "tx_hash",
            "block_number",
            "gas_used",
            "revert_reason"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_outcome"
            },
            "intent_claim_ref": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            "status": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "cancelled",
                "timeout"
              ]
            },
            "duration_ms": {
              "type": "integer",
              "minimum": 0
            },
            "cost_actual": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "recorded_at": {
              "type": "integer"
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcome_type": {
              "type": "string",
              "const": "task_complete"
            }
          },
          "required": [
            "type",
            "intent_claim_ref",
            "status",
            "duration_ms",
            "cost_actual",
            "recorded_at",
            "outcome_type"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_outcome"
            },
            "intent_claim_ref": {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            "status": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed",
                "cancelled",
                "timeout"
              ]
            },
            "duration_ms": {
              "type": "integer",
              "minimum": 0
            },
            "cost_actual": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "recorded_at": {
              "type": "integer"
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcome_type": {
              "type": "string",
              "const": "a2a_dispatch"
            },
            "actual_target_agent": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_method": {
              "type": [
                "string",
                "null"
              ]
            },
            "actual_args_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "remote_task_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "task_state": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "pending",
                    "in_progress",
                    "completed",
                    "failed",
                    "cancelled"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "task_result_envelope_hash": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "type",
            "intent_claim_ref",
            "status",
            "duration_ms",
            "cost_actual",
            "recorded_at",
            "outcome_type",
            "actual_target_agent",
            "actual_method",
            "actual_args_hash",
            "remote_task_id",
            "task_state",
            "task_result_envelope_hash"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "intent_denial": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:777ad43b34971cfc9cdd5172752aae28eb6c546efffeb0187f828b396599b3a7",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "intent_denial"
        },
        "attempted_intent": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "intent_claim"
            },
            "intent_type": {
              "type": "string",
              "enum": [
                "http_call",
                "mcp_tool",
                "skill_invocation",
                "onchain_tx",
                "task_complete",
                "a2a_dispatch"
              ]
            },
            "agent_id": {
              "type": "string",
              "pattern": "^(ag|agt)_[\\w-]+$"
            },
            "named_intent": {
              "type": "string",
              "pattern": "^[a-z][\\w-]*:[a-z][\\w-]*:[a-z][\\w-]*$"
            },
            "target": {
              "type": "string",
              "minLength": 1,
              "description": "For http_call: the granted service SLUG (e.g. 'stripe'), NOT a URL — put the URL in parameters.url. For mcp_tool: tool URI. For skill_invocation: skill_id. For onchain_tx: contract address."
            },
            "action": {
              "type": "string",
              "minLength": 1
            },
            "parameters": {
              "type": "object",
              "additionalProperties": {}
            },
            "estimated_cost": {
              "type": "object",
              "properties": {
                "wallet_cents": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tokens": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "gas_gwei": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "wallet_cents",
                "tokens",
                "gas_gwei"
              ],
              "additionalProperties": false
            },
            "accountability": {
              "type": "string",
              "enum": [
                "enforced",
                "logged",
                "standard"
              ],
              "default": "standard"
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ]
            },
            "requires": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "default": []
            },
            "user_subject": {
              "type": [
                "string",
                "null"
              ]
            },
            "mission_ref": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^ms_[\\w-]+$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "submitted_at": {
              "type": "integer"
            }
          },
          "required": [
            "type",
            "intent_type",
            "agent_id",
            "named_intent",
            "target",
            "action",
            "parameters",
            "estimated_cost",
            "reason",
            "user_subject",
            "mission_ref",
            "submitted_at"
          ],
          "additionalProperties": false
        },
        "denial_reason": {
          "type": "string",
          "enum": [
            "constraint_violation",
            "scope_mismatch",
            "accountability_monotonicity",
            "detector_block",
            "tier_limit",
            "simulation_failure",
            "requires_unmet"
          ]
        },
        "denying_detector_key": {
          "type": "string",
          "pattern": "^[a-z][\\w]*$"
        },
        "message": {
          "type": "string",
          "maxLength": 1024
        },
        "parameters_hash": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "retry_count": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "default": 1
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {},
          "default": {}
        },
        "denied_at": {
          "type": "integer"
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "attempted_intent",
        "denial_reason",
        "message",
        "parameters_hash",
        "denied_at"
      ],
      "additionalProperties": false
    }
  },
  "intent_simulation": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:0ed880035e87703c5097fbd2bb86da285ee17948417188aa8546c528b8a8b96c",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "intent_simulation"
        },
        "intent_claim_ref": {
          "type": "string",
          "pattern": "^pc_[\\w-]+$"
        },
        "allowed": {
          "type": "boolean"
        },
        "denial_reasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "constraint_violation",
              "scope_mismatch",
              "accountability_monotonicity",
              "detector_block",
              "tier_limit",
              "requires_unmet"
            ]
          },
          "default": []
        },
        "simulated_cost": {
          "type": "object",
          "properties": {
            "wallet_cents": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "tokens": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            },
            "gas_gwei": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "wallet_cents",
            "tokens",
            "gas_gwei"
          ],
          "additionalProperties": false
        },
        "predicted_detector_fires": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "detector_key": {
                "type": "string",
                "pattern": "^[a-z][\\w]*$"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              }
            },
            "required": [
              "detector_key",
              "severity"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "projected_http": {
          "type": "object",
          "properties": {
            "status_code": {
              "type": "integer"
            },
            "headers_summary": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "default": {}
            }
          },
          "required": [
            "status_code"
          ],
          "additionalProperties": false
        },
        "simulated_at": {
          "type": "integer"
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "allowed",
        "simulated_cost",
        "simulated_at"
      ],
      "additionalProperties": false
    }
  },
  "entity_observation": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:9c01aa14727031774fd960f368dbec4eae4f1ebc80947e5aa3405c155f2fbba6",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "entity_observation"
        },
        "intent_outcome_ref": {
          "type": "string",
          "pattern": "^pc_[\\w-]+$"
        },
        "entities": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "maxItems": 256,
          "default": []
        },
        "entity_types": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "url_host",
              "url_path",
              "email",
              "account_id",
              "file_path",
              "arn",
              "gcp_resource",
              "azure_resource",
              "phone",
              "ip_address",
              "other"
            ]
          },
          "default": []
        },
        "agent_id": {
          "type": "string",
          "pattern": "^(ag|agt)_[\\w-]+$"
        },
        "source_service": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "content_fingerprints": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "maxItems": 512,
          "default": []
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {},
          "default": {}
        },
        "observed_at": {
          "type": "integer"
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "agent_id",
        "observed_at"
      ],
      "additionalProperties": false
    }
  },
  "checkpoint_approval": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:f6aa07dae9e1b5ef6d1558286645ffdee5a96ed6403999a564a0a9ad516ff09a",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "checkpoint_approval"
        },
        "checkpoint_id": {
          "type": "string",
          "pattern": "^chk_[\\w-]+$"
        },
        "interval_seconds": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "services_used": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "actions_count": {
          "type": "integer",
          "minimum": 0
        },
        "has_summary": {
          "type": "boolean",
          "default": false
        },
        "delegated_to": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "submitted_by": {
          "type": "string"
        },
        "submitted_at": {
          "type": "integer"
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "checkpoint_id",
        "interval_seconds",
        "actions_count",
        "submitted_by",
        "submitted_at"
      ],
      "additionalProperties": false
    }
  },
  "skill_invocation": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:44035bc9fcfe79766ead5c2a06035b39b99ca5a405ba358b38dad37cf12ed40d",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "skill_invocation"
        },
        "invocation_id": {
          "type": "string",
          "pattern": "^inv_[\\w-]+$"
        },
        "skill_id": {
          "type": "string"
        },
        "provider_operator_id": {
          "type": "string"
        },
        "execution_mode": {
          "type": "string",
          "enum": [
            "sealed",
            "open",
            "source"
          ]
        },
        "input_hash": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "submitted",
            "completed",
            "failed"
          ]
        },
        "output_hash": {
          "type": "string"
        },
        "duration_ms": {
          "type": "integer",
          "minimum": 0
        },
        "cost_actual": {
          "type": "object",
          "properties": {
            "wallet_cents": {
              "type": "integer",
              "minimum": 0
            },
            "tokens": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "wallet_cents",
            "tokens"
          ],
          "additionalProperties": false
        },
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        },
        "at": {
          "type": "integer"
        },
        "mission_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "invocation_id",
        "skill_id",
        "provider_operator_id",
        "execution_mode",
        "input_hash",
        "status",
        "at"
      ],
      "additionalProperties": false
    }
  },
  "identity_claim": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:8d52ee204de567dbf6e498a4c619d8d246915fadbde1010dfc9e5e5dc71e9d4f",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "identity_claim"
        },
        "identity_claim_row_id": {
          "type": "string"
        },
        "provider_key": {
          "type": "string"
        },
        "layer": {
          "type": "string",
          "enum": [
            "humanity",
            "identity",
            "delegation"
          ]
        },
        "claim_type": {
          "type": "string"
        },
        "assurance_level": {
          "type": "string",
          "enum": [
            "low",
            "substantial",
            "high"
          ]
        },
        "verified_at": {
          "type": "integer"
        },
        "expires_at": {
          "type": "integer"
        },
        "assertion_hash": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "delegated_scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "type",
        "identity_claim_row_id",
        "provider_key",
        "layer",
        "claim_type",
        "assurance_level",
        "verified_at",
        "expires_at",
        "assertion_hash"
      ],
      "additionalProperties": false
    }
  },
  "mission": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:9f77e3870919efd8718c27ed18a5abdbb1b58bc3679e06b306ce7db89f33bfd4",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "mission"
        },
        "mission_id": {
          "type": "string",
          "pattern": "^ms_[\\w-]+$"
        },
        "operator_id": {
          "type": "string"
        },
        "passport_jti": {
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "intent_summary": {
          "type": "string",
          "maxLength": 500
        },
        "intent_services": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "baseline_profile": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": {}
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "behavioral_diff": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "max_z": {
                  "type": "number"
                },
                "l2_norm": {
                  "type": "number"
                },
                "per_dimension": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "number"
                  }
                }
              },
              "required": [
                "max_z",
                "l2_norm",
                "per_dimension"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "expected_output_shape": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": {}
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "expected_counterparties": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "max_actions": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "max_dropoff_bytes": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "coverage_cap_cents": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "max_duration_seconds": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "max_concurrent_intents": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "max_actions_per_service": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "default": {}
        },
        "cap_behavior": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "enum": [
              "auto_revoke",
              "deny_and_flag"
            ]
          },
          "propertyNames": {
            "enum": [
              "coverage_cap_cents",
              "max_dropoff_bytes",
              "max_concurrent_intents",
              "max_actions",
              "max_duration_seconds",
              "max_actions_per_service"
            ]
          },
          "default": {}
        },
        "started_at": {
          "type": "integer"
        },
        "expires_at": {
          "type": "integer"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "terminal_state": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "completed_successful",
                "completed_expired",
                "completed_cap_breached",
                "revoked_adversarial",
                "revoked_operator_clean"
              ]
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "revoke_reason": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "adversarial",
                "cap_breach_hard",
                "operator_initiated_clean",
                "cascade_from_passport"
              ]
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "type",
        "mission_id",
        "operator_id",
        "intent_summary",
        "started_at",
        "expires_at"
      ],
      "additionalProperties": false
    }
  },
  "behavioral_genome": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:0e097a947407083aed4b04eb39c0e45f756ff980afba581651e441a46c9b1ed1",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "behavioral_genome"
        },
        "passport_jti": {
          "type": "string",
          "minLength": 1
        },
        "window_start_ms": {
          "type": "integer"
        },
        "window_end_ms": {
          "type": "integer"
        },
        "call_count": {
          "type": "integer",
          "minimum": 0
        },
        "mean_latency_ms": {
          "type": "number",
          "minimum": 0
        },
        "stddev_latency_ms": {
          "type": "number",
          "minimum": 0
        },
        "mean_request_bytes": {
          "type": "number",
          "minimum": 0
        },
        "stddev_request_bytes": {
          "type": "number",
          "minimum": 0
        },
        "mean_response_bytes": {
          "type": "number",
          "minimum": 0
        },
        "stddev_response_bytes": {
          "type": "number",
          "minimum": 0
        },
        "mean_request_entropy": {
          "type": "number",
          "minimum": 0
        },
        "stddev_request_entropy": {
          "type": "number",
          "minimum": 0
        },
        "mean_response_entropy": {
          "type": "number",
          "minimum": 0
        },
        "stddev_response_entropy": {
          "type": "number",
          "minimum": 0
        },
        "error_rate": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "scope_histogram": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0
          },
          "default": {}
        },
        "time_of_day_histogram": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0
          },
          "minItems": 24,
          "maxItems": 24
        },
        "mean_prompt_tokens": {
          "type": "number",
          "minimum": 0,
          "default": 0
        },
        "stddev_prompt_tokens": {
          "type": "number",
          "minimum": 0,
          "default": 0
        },
        "mean_completion_tokens": {
          "type": "number",
          "minimum": 0,
          "default": 0
        },
        "stddev_completion_tokens": {
          "type": "number",
          "minimum": 0,
          "default": 0
        },
        "model_distribution": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0
          },
          "default": {}
        },
        "prior_genome_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "passport_jti",
        "window_start_ms",
        "window_end_ms",
        "call_count",
        "mean_latency_ms",
        "stddev_latency_ms",
        "mean_request_bytes",
        "stddev_request_bytes",
        "mean_response_bytes",
        "stddev_response_bytes",
        "mean_request_entropy",
        "stddev_request_entropy",
        "mean_response_entropy",
        "stddev_response_entropy",
        "error_rate",
        "time_of_day_histogram",
        "prior_genome_ref"
      ],
      "additionalProperties": false
    }
  },
  "twin_divergence": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:5bdef39432f5cb281134052c0c6e831006cd24816144d5f65b0e5b0f84ab3678",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "twin_divergence"
        },
        "passport_jti": {
          "type": "string",
          "minLength": 1
        },
        "mission_ref": {
          "type": "string",
          "pattern": "^ms_[\\w-]+$"
        },
        "real_intent_outcomes": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^pc_[\\w-]+$"
          },
          "default": []
        },
        "twin_intent_outcomes": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^pc_[\\w-]+$"
          },
          "default": []
        },
        "divergence_dimensions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dimension": {
                "type": "string",
                "enum": [
                  "output_shape",
                  "counterparty",
                  "cost",
                  "detector_signal_set"
                ]
              },
              "severity": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "diff": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "dimension",
              "severity",
              "diff"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "diff_summary": {
          "type": "string",
          "maxLength": 2048
        },
        "evaluated_at_ms": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "type",
        "passport_jti",
        "mission_ref",
        "diff_summary",
        "evaluated_at_ms"
      ],
      "additionalProperties": false
    }
  },
  "dossier": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:614e55ed961f810b7cfa887f0d1b8262c7a86e3a586b892fd1ea6d344b0b2f16",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "dossier"
        },
        "mission_ref": {
          "type": "string",
          "pattern": "^ms_[\\w-]+$"
        },
        "authored_by_member_id": {
          "type": "string",
          "pattern": "^mem_[\\w-]+$"
        },
        "authored_at_ms": {
          "type": "integer",
          "minimum": 0
        },
        "narrative": {
          "type": "string",
          "maxLength": 50000
        },
        "decision_tree": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "checkpoint_id": {
                "type": "string",
                "pattern": "^chk_[\\w-]+$"
              },
              "decision": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "rationale": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "required": [
              "checkpoint_id",
              "decision",
              "rationale"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "alerts_walkthrough": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "detector_signal_claim_id": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "narrative": {
                "type": "string",
                "maxLength": 8192
              }
            },
            "required": [
              "detector_signal_claim_id",
              "severity",
              "narrative"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "lessons_learned": {
          "type": "string",
          "maxLength": 50000
        },
        "incident_classification": {
          "type": "string",
          "enum": [
            "false_positive",
            "true_positive_handled",
            "true_positive_escalated",
            "inconclusive"
          ]
        },
        "prior_dossier_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "mission_ref",
        "authored_by_member_id",
        "authored_at_ms",
        "narrative",
        "lessons_learned",
        "incident_classification",
        "prior_dossier_ref"
      ],
      "additionalProperties": false
    }
  },
  "evidence_pack": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:dcffdd08cb9ef437e6d133997c5774514ffbb9554351bd7fd3ea735c3c62c727",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "evidence_pack"
        },
        "pack_id": {
          "type": "string",
          "pattern": "^pck_[\\w-]+$"
        },
        "content_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "scope": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "mission",
                "session",
                "incident",
                "period"
              ]
            },
            "ref": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "required": [
            "kind",
            "ref"
          ],
          "additionalProperties": false
        },
        "time_bounds": {
          "type": "object",
          "properties": {
            "t0_ms": {
              "type": "integer",
              "minimum": 0
            },
            "t1_ms": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "t0_ms",
            "t1_ms"
          ],
          "additionalProperties": false
        },
        "claim_count": {
          "type": "integer",
          "minimum": 0
        },
        "included_review_claim_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^pc_[\\w-]+$"
          },
          "default": []
        },
        "merkle_root": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "audit_chain_anchor": {
          "type": "object",
          "properties": {
            "head_hash": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "head_signature": {
              "type": "string",
              "minLength": 1
            },
            "head_at_ms": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "head_hash",
            "head_signature",
            "head_at_ms"
          ],
          "additionalProperties": false
        },
        "revocation_snapshot_at_ms": {
          "type": "integer",
          "minimum": 0
        },
        "schema_versions": {
          "type": "object",
          "properties": {
            "envelope": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "integer",
                  "minimum": 1
                },
                "content_hash": {
                  "type": "string",
                  "pattern": "^sha256:[0-9a-f]{64}$"
                }
              },
              "required": [
                "version",
                "content_hash"
              ],
              "additionalProperties": false
            },
            "by_claim_type": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "content_hash": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  }
                },
                "required": [
                  "version",
                  "content_hash"
                ],
                "additionalProperties": false
              },
              "propertyNames": {
                "enum": [
                  "svid_attestation",
                  "workload_attestation",
                  "rats_evidence",
                  "slsa_provenance",
                  "c2pa_assertion",
                  "ai_bom_ref",
                  "intent_claim",
                  "intent_outcome",
                  "intent_denial",
                  "intent_simulation",
                  "entity_observation",
                  "detector_signal",
                  "skill_invocation",
                  "checkpoint_approval",
                  "identity_claim",
                  "mission",
                  "behavioral_genome",
                  "twin_divergence",
                  "evidence_pack",
                  "operator_decision",
                  "operator_review",
                  "external_proof_verification",
                  "authority_binding",
                  "authority_approval",
                  "authority_use",
                  "receiver_transaction_receipt",
                  "authority_erasure_tombstone",
                  "passport_color",
                  "dossier",
                  "chain_anchor"
                ]
              }
            }
          },
          "required": [
            "envelope",
            "by_claim_type"
          ],
          "additionalProperties": false
        },
        "canonical_schema_base_url": {
          "type": "string",
          "format": "uri"
        },
        "supersedes": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^pck_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "cross_tenant_refs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "foreign_claim_hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "foreign_issuer_op_id": {
                "type": "string",
                "pattern": "^op_[\\w-]+$"
              },
              "foreign_jwks_url": {
                "type": "string",
                "format": "uri"
              },
              "relation": {
                "type": "string",
                "enum": [
                  "delegation_parent",
                  "a2a_dispatch",
                  "skill_invocation"
                ]
              }
            },
            "required": [
              "foreign_claim_hash",
              "foreign_issuer_op_id",
              "foreign_jwks_url",
              "relation"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "external_chain_anchors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "registry": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "permalink": {
                "type": "string",
                "format": "uri"
              },
              "anchored_at_ms": {
                "type": "integer",
                "minimum": 0
              },
              "anchored_chain_head_hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "registry",
              "permalink",
              "anchored_at_ms",
              "anchored_chain_head_hash"
            ],
            "additionalProperties": false
          },
          "default": []
        }
      },
      "required": [
        "type",
        "pack_id",
        "content_hash",
        "scope",
        "time_bounds",
        "claim_count",
        "merkle_root",
        "audit_chain_anchor",
        "revocation_snapshot_at_ms",
        "schema_versions",
        "canonical_schema_base_url",
        "supersedes"
      ],
      "additionalProperties": false
    }
  },
  "operator_decision": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:f547c3fb2295a1a15a505d46fe63d9c1cb0f3b8afb00901165cfa28fe6a555a9",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "operator_decision"
        },
        "decision_id": {
          "type": "string",
          "pattern": "^odec_[\\w-]+$"
        },
        "mission_ref": {
          "type": "string",
          "pattern": "^ms_[\\w-]+$"
        },
        "operator_id": {
          "type": "string",
          "pattern": "^op_[\\w-]+$"
        },
        "authored_by": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "operator_owner"
                },
                "operator_id": {
                  "type": "string",
                  "pattern": "^op_[\\w-]+$"
                }
              },
              "required": [
                "kind",
                "operator_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "team_member"
                },
                "member_id": {
                  "type": "string",
                  "pattern": "^mem_[\\w-]+$"
                },
                "role_at_signing": {
                  "type": "string",
                  "enum": [
                    "standard",
                    "admin"
                  ]
                }
              },
              "required": [
                "kind",
                "member_id",
                "role_at_signing"
              ],
              "additionalProperties": false
            }
          ]
        },
        "action": {
          "type": "string",
          "enum": [
            "checkout_approved",
            "checkout_blocked",
            "security_events_dismissed",
            "agent_suspended",
            "future_warning_block_enabled",
            "future_critical_block_enabled",
            "governance_approved",
            "governance_rejected"
          ]
        },
        "effect": {
          "type": "string",
          "enum": [
            "checkout_released",
            "checkout_blocked_and_agent_blocked",
            "security_events_resolved",
            "agent_suspended_and_events_resolved",
            "checkouts_released_and_agent_warning_policy_set_to_block",
            "checkouts_released_and_agent_critical_policy_set_to_block",
            "governance_approval_approved",
            "governance_approval_rejected"
          ]
        },
        "effect_scope": {
          "type": "string",
          "enum": [
            "mission",
            "agent_global"
          ]
        },
        "source_refs": {
          "type": "object",
          "properties": {
            "checkout_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^cout_[\\w-]+$"
              },
              "maxItems": 100,
              "default": []
            },
            "security_event_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^sevt_[\\w-]+$"
              },
              "maxItems": 100,
              "default": []
            },
            "detector_claim_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "maxItems": 100,
              "default": []
            },
            "approval_ids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^gvr_[\\w-]+$"
              },
              "maxItems": 100,
              "default": []
            }
          },
          "additionalProperties": false
        },
        "target_agent_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(ag|agt)_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "decided_at_ms": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "type",
        "decision_id",
        "mission_ref",
        "operator_id",
        "authored_by",
        "action",
        "effect",
        "effect_scope",
        "source_refs",
        "target_agent_id",
        "decided_at_ms"
      ],
      "additionalProperties": false
    }
  },
  "operator_review": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:868e19f5ae860c74fb3c9147f769c0e00ba77919cc85466a4f98e9bbf168484f",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "operator_review"
        },
        "mission_ref": {
          "type": "string",
          "pattern": "^ms_[\\w-]+$"
        },
        "operator_id": {
          "type": "string",
          "pattern": "^op_[\\w-]+$"
        },
        "authored_by": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "operator_owner"
                },
                "operator_id": {
                  "type": "string",
                  "pattern": "^op_[\\w-]+$"
                }
              },
              "required": [
                "kind",
                "operator_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "team_member"
                },
                "member_id": {
                  "type": "string",
                  "pattern": "^mem_[\\w-]+$"
                },
                "role_at_signing": {
                  "type": "string",
                  "enum": [
                    "standard",
                    "admin"
                  ]
                }
              },
              "required": [
                "kind",
                "member_id",
                "role_at_signing"
              ],
              "additionalProperties": false
            }
          ]
        },
        "authored_at_ms": {
          "type": "integer",
          "minimum": 0
        },
        "overall_judgment": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50000
        },
        "checkpoint_notes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "checkpoint_claim_id": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "required": [
              "checkpoint_claim_id",
              "note"
            ],
            "additionalProperties": false
          },
          "maxItems": 500,
          "default": []
        },
        "decision_rationales": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "operator_decision_claim_id": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "rationale": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "required": [
              "operator_decision_claim_id",
              "rationale"
            ],
            "additionalProperties": false
          },
          "maxItems": 500,
          "default": []
        },
        "alert_explanations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "detector_claim_id": {
                "type": "string",
                "pattern": "^pc_[\\w-]+$"
              },
              "explanation": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "required": [
              "detector_claim_id",
              "explanation"
            ],
            "additionalProperties": false
          },
          "maxItems": 500,
          "default": []
        },
        "incident_classification": {
          "type": "string",
          "enum": [
            "no_incident",
            "false_positive",
            "true_positive_handled",
            "true_positive_escalated",
            "inconclusive"
          ]
        },
        "lessons_learned": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50000
        },
        "prior_review_ref": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^pc_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "assessment_basis": {
          "type": "string",
          "const": "operator_organization_assessment"
        }
      },
      "required": [
        "type",
        "mission_ref",
        "operator_id",
        "authored_by",
        "authored_at_ms",
        "overall_judgment",
        "incident_classification",
        "lessons_learned",
        "prior_review_ref",
        "assessment_basis"
      ],
      "additionalProperties": false
    }
  },
  "external_proof_verification": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:779319b26b9e11f7bd5e96795dfe3b5c944504bb7c92931368c4573e8326279c",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "external_proof_verification"
        },
        "proof_id": {
          "type": "string",
          "pattern": "^prf_[\\w-]+$"
        },
        "proof_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "subject_principal_id": {
          "type": "string",
          "pattern": "^prn_[\\w-]+$"
        },
        "represented_principal_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^prn_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "profile_version_id": {
          "type": "string",
          "pattern": "^apv_[\\w-]+$"
        },
        "proof_kind": {
          "type": "string",
          "enum": [
            "identity",
            "capacity",
            "mandate",
            "consent",
            "signature",
            "domain",
            "workload"
          ]
        },
        "source_kind": {
          "type": "string",
          "enum": [
            "legacy_identity_claim",
            "external_native",
            "stack_derived"
          ]
        },
        "issuer_identifier": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "issuer_key_thumbprint": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "schema_uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "schema_version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "native_format": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "native_evidence_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "normalized_facts_hash": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "verification_method": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "verifier_identifier": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "verifier_version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "assurance_uri": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024
            },
            {
              "type": "null"
            }
          ]
        },
        "verified_at": {
          "type": "integer",
          "minimum": 0
        },
        "valid_from": {
          "type": "integer",
          "minimum": 0
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "active",
            "suspended",
            "revoked",
            "replaced",
            "erased"
          ]
        }
      },
      "required": [
        "type",
        "proof_id",
        "proof_version",
        "subject_principal_id",
        "represented_principal_id",
        "profile_version_id",
        "proof_kind",
        "source_kind",
        "issuer_identifier",
        "issuer_key_thumbprint",
        "schema_uri",
        "schema_version",
        "native_format",
        "native_evidence_hash",
        "normalized_facts_hash",
        "verification_method",
        "verifier_identifier",
        "verifier_version",
        "assurance_uri",
        "verified_at",
        "valid_from",
        "expires_at",
        "status"
      ],
      "additionalProperties": false
    }
  },
  "authority_binding": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:73736da826de63d7a631d2fe8822334dd3d962b5c5fe2b509fe2963066c96dfe",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "authority_binding"
        },
        "binding_id": {
          "type": "string",
          "pattern": "^abn_[\\w-]+$"
        },
        "binding_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "binding_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "principal_id": {
          "type": "string",
          "pattern": "^prn_[\\w-]+$"
        },
        "agent_id": {
          "type": "string",
          "pattern": "^(ag|agt)_[\\w-]+$"
        },
        "agent_key_thumbprint": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "receiver_id": {
          "type": "string",
          "pattern": "^rcv_[\\w-]+$"
        },
        "receiver_profile_version_id": {
          "type": "string",
          "pattern": "^apv_[\\w-]+$"
        },
        "domain_profile_version_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^apv_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "mission_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^ms_[\\w-]+$"
          },
          "maxItems": 64
        },
        "lineage_root_id": {
          "type": "string",
          "pattern": "^abn_[\\w-]+$"
        },
        "lineage_root_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "parent_binding_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^abn_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent_binding_version": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "delegation_depth": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4
        },
        "purpose_code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "purpose_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "scope_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "approval_policy_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "disclosure_policy_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "delegation_policy_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "proof_set_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "valid_from": {
          "type": "integer",
          "minimum": 0
        },
        "expires_at": {
          "type": "integer",
          "minimum": 0
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "pending_approval",
            "active",
            "suspended",
            "revoked",
            "replaced"
          ]
        }
      },
      "required": [
        "type",
        "binding_id",
        "binding_version",
        "binding_digest",
        "principal_id",
        "agent_id",
        "agent_key_thumbprint",
        "receiver_id",
        "receiver_profile_version_id",
        "domain_profile_version_id",
        "mission_ids",
        "lineage_root_id",
        "lineage_root_version",
        "parent_binding_id",
        "parent_binding_version",
        "delegation_depth",
        "purpose_code",
        "purpose_hash",
        "scope_hash",
        "approval_policy_hash",
        "disclosure_policy_hash",
        "delegation_policy_hash",
        "proof_set_hash",
        "valid_from",
        "expires_at",
        "status"
      ],
      "additionalProperties": false
    }
  },
  "authority_approval": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:b940a7f89d21a3ea231369c4551948135114f743a814bb848448c2b243c958e3",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "authority_approval"
        },
        "decision_id": {
          "type": "string",
          "pattern": "^apd_[\\w-]+$"
        },
        "request_id": {
          "type": "string",
          "pattern": "^apr_[\\w-]+$"
        },
        "binding_id": {
          "type": "string",
          "pattern": "^abn_[\\w-]+$"
        },
        "binding_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "authority_use_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^aus_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "authoriser_principal_id": {
          "type": "string",
          "pattern": "^prn_[\\w-]+$"
        },
        "identity_proof_id": {
          "type": "string",
          "pattern": "^prf_[\\w-]+$"
        },
        "identity_proof_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "capacity_proof_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^prf_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "capacity_proof_version": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "decision_proof_id": {
          "type": "string",
          "pattern": "^prf_[\\w-]+$"
        },
        "decision_proof_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "decision": {
          "type": "string",
          "enum": [
            "approve",
            "reject"
          ]
        },
        "weight": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "request_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "phase": {
          "type": "string",
          "enum": [
            "activation",
            "action",
            "presentation"
          ]
        },
        "group_key_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "approval_requirement_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "decided_at": {
          "type": "integer",
          "minimum": 0
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "revoked_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "decision_id",
        "request_id",
        "binding_id",
        "binding_version",
        "authority_use_id",
        "authoriser_principal_id",
        "identity_proof_id",
        "identity_proof_version",
        "capacity_proof_id",
        "capacity_proof_version",
        "decision_proof_id",
        "decision_proof_version",
        "decision",
        "weight",
        "request_hash",
        "phase",
        "group_key_hash",
        "approval_requirement_hash",
        "decided_at",
        "expires_at",
        "revoked_at"
      ],
      "additionalProperties": false
    }
  },
  "authority_use": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:09446941ab3d9e0a62f19bf8f274050bb26e466472e38c66a5ab6352884037f0",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "authority_use"
        },
        "authority_use_id": {
          "type": "string",
          "pattern": "^aus_[\\w-]+$"
        },
        "binding_id": {
          "type": "string",
          "pattern": "^abn_[\\w-]+$"
        },
        "binding_version": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "binding_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "passport_jti_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "mission_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^ms_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "agent_id": {
          "type": "string",
          "pattern": "^(ag|agt)_[\\w-]+$"
        },
        "agent_key_thumbprint": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "receiver_id": {
          "type": "string",
          "pattern": "^rcv_[\\w-]+$"
        },
        "receiver_profile_version_id": {
          "type": "string",
          "pattern": "^apv_[\\w-]+$"
        },
        "domain_profile_version_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^apv_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "receiver_request_id_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "action_uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024,
          "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
        },
        "resource_hash": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "request_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "effective_scope_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "proof_set_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "disclosure_manifest_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "verification_mode": {
          "type": "string",
          "enum": [
            "native_receiver",
            "proxy_mediated"
          ]
        },
        "proof_strength": {
          "type": "string",
          "enum": [
            "native_issuer_evidence",
            "native_stack_attestation",
            "proxy_stack_enforced"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "waiting_approval",
            "authorized",
            "denied",
            "dispatched",
            "succeeded",
            "failed"
          ]
        },
        "denial_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "integer",
          "minimum": 0
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "result_hash": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "type",
        "authority_use_id",
        "binding_id",
        "binding_version",
        "binding_digest",
        "passport_jti_hash",
        "mission_id",
        "agent_id",
        "agent_key_thumbprint",
        "receiver_id",
        "receiver_profile_version_id",
        "domain_profile_version_id",
        "receiver_request_id_hash",
        "action_uri",
        "resource_hash",
        "request_hash",
        "effective_scope_hash",
        "proof_set_hash",
        "disclosure_manifest_hash",
        "verification_mode",
        "proof_strength",
        "status",
        "denial_code",
        "created_at",
        "completed_at",
        "result_hash"
      ],
      "additionalProperties": false
    }
  },
  "receiver_transaction_receipt": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:2dc3cc33859befd301f8acc723305f953af32b96b7319cb0b64127b520d7c228",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "receiver_transaction_receipt"
        },
        "receipt_id": {
          "type": "string",
          "pattern": "^rtr_[\\w-]+$"
        },
        "authority_use_id": {
          "type": "string",
          "pattern": "^aus_[\\w-]+$"
        },
        "presentation_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^prs_[\\w-]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "receiver_id": {
          "type": "string",
          "pattern": "^rcv_[\\w-]+$"
        },
        "receiver_profile_version_id": {
          "type": "string",
          "pattern": "^apv_[\\w-]+$"
        },
        "receiver_key_id": {
          "type": "string",
          "pattern": "^rky_[\\w-]+$"
        },
        "receipt_jti_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "native_format": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "receipt_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "presentation_payload_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "action_uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024,
          "pattern": "^[A-Za-z][A-Za-z0-9._:/-]*$"
        },
        "request_hash": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "result_hash": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "outcome": {
          "type": "string",
          "enum": [
            "accepted",
            "rejected",
            "failed"
          ]
        },
        "external_transaction_ref_hash": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified_at": {
          "type": "integer",
          "minimum": 0
        },
        "received_at": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "type",
        "receipt_id",
        "authority_use_id",
        "presentation_id",
        "receiver_id",
        "receiver_profile_version_id",
        "receiver_key_id",
        "receipt_jti_hash",
        "native_format",
        "receipt_hash",
        "presentation_payload_hash",
        "action_uri",
        "request_hash",
        "result_hash",
        "outcome",
        "external_transaction_ref_hash",
        "verified_at",
        "received_at"
      ],
      "additionalProperties": false
    }
  },
  "authority_erasure_tombstone": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "content_hash": "sha256:e4c6a63190480e460028479d0f7ebc652e253ec44a95206dc85f2e783e91e5c6",
    "json_schema": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "authority_erasure_tombstone"
        },
        "target_kind": {
          "type": "string",
          "enum": [
            "principal",
            "binding",
            "proof",
            "presentation",
            "receiver_transaction_receipt"
          ]
        },
        "target_id": {
          "type": "string",
          "pattern": "^(prn|abn|prf|prs|rtr)_[\\w-]+$"
        },
        "target_version": {
          "anyOf": [
            {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "prior_artifact_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "prior_claim_digest": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "tombstone_digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "erased_at": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "type",
        "target_kind",
        "target_id",
        "target_version",
        "prior_artifact_digest",
        "prior_claim_digest",
        "tombstone_digest",
        "erased_at"
      ],
      "additionalProperties": false
    }
  }
}