{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-chain-verification-result-schema.json",
  "title": "ChainVerificationResult",
  "description": "Outcome of verifying an entire decision chain's prev_hash linkage and\nevery per-record Ed25519 signature.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-audit-verification-api-openapi.yml#/components/schemas/ChainVerificationResult",
  "type": "object",
  "properties": {
    "chain_id": {
      "type": "string",
      "format": "uuid"
    },
    "org_id": {
      "type": "string"
    },
    "total_records": {
      "type": "integer"
    },
    "valid": {
      "type": "boolean",
      "description": "True when no integrity violation was detected (linkage holds and\nevery signature that exists verifies). Can be true for a chain with\nzero signed records. Use `authorship_proven` for the strong claim.\n"
    },
    "authorship_proven": {
      "type": "boolean",
      "description": "True only when every record is signed AND all signatures + linkage\nverify. Gate non-repudiation on this flag.\n"
    },
    "linkage_valid": {
      "type": "boolean"
    },
    "signatures_valid": {
      "type": "boolean"
    },
    "signed_records": {
      "type": "integer"
    },
    "unsigned_records": {
      "type": "integer"
    },
    "first_broken_seq": {
      "type": "integer",
      "format": "int64",
      "description": "Sequence of the first detected break (omitted when valid)."
    },
    "first_broken_record_id": {
      "type": "string",
      "description": "Record id of the first detected break (omitted when valid)."
    },
    "break_reason": {
      "type": "string",
      "description": "Why the chain broke (omitted when valid)."
    },
    "signing_key_id": {
      "type": "string",
      "description": "Identifier of the tracker's current signing key."
    },
    "public_key": {
      "type": "string",
      "description": "Base64 Ed25519 public key for offline re-verification."
    },
    "verified_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "chain_id",
    "org_id",
    "total_records",
    "valid",
    "authorship_proven",
    "linkage_valid",
    "signatures_valid",
    "verified_at"
  ]
}