{
  "id": "b962cbda-58a7-4b9d-a134-6a8211f3c420",
  "created_at": "2026-08-19T01:07:34.325336+00:00",
  "evidence": {
    "key_id": "bkc-cert-20260819-2965e7",
    "metrics": {
      "steps_total": 45,
      "steps_failed": 0,
      "avg_scenario_ms": 3959,
      "scenarios_total": 3,
      "scenarios_passed": 3,
      "rate_limit_triggered": 3,
      "tampering_all_not_verified": true
    },
    "outcome": "PASS",
    "trigger": "scheduler",
    "scenarios": [
      {
        "label": "Baseline DMARC quarantine + provider OK",
        "run_id": "cc8ad2d3-10f1-4ead-b2c5-8b209d32ad0b",
        "latency": {
          "total_ms": 3463,
          "slowest_ms": 1189,
          "slowest_step": "rate_limit"
        },
        "outcome": "PASS",
        "sequence": [
          {
            "step": "issue",
            "label": "ISSUED",
            "status": "PASS",
            "duration_ms": 147
          },
          {
            "step": "sign",
            "label": "SIGNED",
            "status": "PASS",
            "duration_ms": 141
          },
          {
            "step": "deliver",
            "label": "SENT",
            "status": "PASS",
            "duration_ms": 422
          },
          {
            "step": "provider",
            "label": "PROVIDER EVENT",
            "status": "PASS",
            "duration_ms": 463
          },
          {
            "step": "audit",
            "label": "AUDIT SEALED",
            "status": "PASS",
            "duration_ms": 75
          },
          {
            "step": "verify_public",
            "label": "PUBLIC VERIFY",
            "status": "PASS",
            "duration_ms": 93
          },
          {
            "step": "verify_offline",
            "label": "OFFLINE VERIFY",
            "status": "PASS",
            "duration_ms": 8
          },
          {
            "step": "rotate",
            "label": "KEY ROTATION",
            "status": "PASS",
            "duration_ms": 297
          },
          {
            "step": "verify_historic",
            "label": "HISTORIC VERIFY",
            "status": "PASS",
            "duration_ms": 86
          },
          {
            "step": "revoke",
            "label": "REVOKED",
            "status": "PASS",
            "duration_ms": 74
          },
          {
            "step": "verify_revoked",
            "label": "POST-REVOKE VERIFY",
            "status": "PASS",
            "duration_ms": 84
          },
          {
            "step": "tamper",
            "label": "TAMPERING → NOT_VERIFIED",
            "status": "PASS",
            "duration_ms": 23
          },
          {
            "step": "rate_limit",
            "label": "RATE LIMIT",
            "status": "PASS",
            "duration_ms": 1189
          },
          {
            "step": "signed_report",
            "label": "SIGNED REPORT",
            "status": "PASS",
            "duration_ms": 149
          },
          {
            "step": "promotion",
            "label": "PROMOTION PREPROD → PRODUCTION",
            "status": "PASS",
            "duration_ms": 212
          }
        ],
        "verdicts": {
          "tampering": "5/5 NOT_VERIFIED",
          "post_revoke": "REVOKED + contenuto redatto",
          "public_verify": "VALID"
        },
        "proof_ref": "BKC-TEST-20260819-3C3ED5E3",
        "dmarc_phase": "quarantine",
        "duration_ms": 3920,
        "failed_steps": [],
        "verify_token": "2f8b01258f9cdbf84a6746704e36521d3b3f9bd8cb4694d8",
        "missing_steps": [],
        "provider_mode": "ok",
        "scenarioIndex": 0,
        "rate_limit_triggered_at": 16
      },
      {
        "label": "DMARC none + provider in retry",
        "run_id": "0e06f334-4f88-45dc-8dea-0d6c792a48e5",
        "latency": {
          "total_ms": 3513,
          "slowest_ms": 1193,
          "slowest_step": "rate_limit"
        },
        "outcome": "PASS",
        "sequence": [
          {
            "step": "issue",
            "label": "ISSUED",
            "status": "PASS",
            "duration_ms": 152
          },
          {
            "step": "sign",
            "label": "SIGNED",
            "status": "PASS",
            "duration_ms": 147
          },
          {
            "step": "deliver",
            "label": "SENT",
            "status": "PASS",
            "duration_ms": 384
          },
          {
            "step": "provider",
            "label": "PROVIDER EVENT",
            "status": "PASS",
            "duration_ms": 448
          },
          {
            "step": "audit",
            "label": "AUDIT SEALED",
            "status": "PASS",
            "duration_ms": 73
          },
          {
            "step": "verify_public",
            "label": "PUBLIC VERIFY",
            "status": "PASS",
            "duration_ms": 78
          },
          {
            "step": "verify_offline",
            "label": "OFFLINE VERIFY",
            "status": "PASS",
            "duration_ms": 4
          },
          {
            "step": "rotate",
            "label": "KEY ROTATION",
            "status": "PASS",
            "duration_ms": 381
          },
          {
            "step": "verify_historic",
            "label": "HISTORIC VERIFY",
            "status": "PASS",
            "duration_ms": 91
          },
          {
            "step": "revoke",
            "label": "REVOKED",
            "status": "PASS",
            "duration_ms": 76
          },
          {
            "step": "verify_revoked",
            "label": "POST-REVOKE VERIFY",
            "status": "PASS",
            "duration_ms": 79
          },
          {
            "step": "tamper",
            "label": "TAMPERING → NOT_VERIFIED",
            "status": "PASS",
            "duration_ms": 38
          },
          {
            "step": "rate_limit",
            "label": "RATE LIMIT",
            "status": "PASS",
            "duration_ms": 1193
          },
          {
            "step": "signed_report",
            "label": "SIGNED REPORT",
            "status": "PASS",
            "duration_ms": 157
          },
          {
            "step": "promotion",
            "label": "PROMOTION PREPROD → PRODUCTION",
            "status": "PASS",
            "duration_ms": 212
          }
        ],
        "verdicts": {
          "tampering": "5/5 NOT_VERIFIED",
          "post_revoke": "REVOKED + contenuto redatto",
          "public_verify": "VALID"
        },
        "proof_ref": "BKC-TEST-20260819-1614C0AB",
        "dmarc_phase": "none",
        "duration_ms": 3969,
        "failed_steps": [],
        "verify_token": "c2ad96f32c889930fc12b2ff35f573169f91ecff2f98860d",
        "missing_steps": [],
        "provider_mode": "retry",
        "scenarioIndex": 1,
        "rate_limit_triggered_at": 16
      },
      {
        "label": "DMARC reject + provider in errore permanente",
        "run_id": "2dca5c7e-b327-4335-9c4b-166823aba312",
        "latency": {
          "total_ms": 3545,
          "slowest_ms": 1272,
          "slowest_step": "rate_limit"
        },
        "outcome": "PASS",
        "sequence": [
          {
            "step": "issue",
            "label": "ISSUED",
            "status": "PASS",
            "duration_ms": 148
          },
          {
            "step": "sign",
            "label": "SIGNED",
            "status": "PASS",
            "duration_ms": 144
          },
          {
            "step": "deliver",
            "label": "SENT",
            "status": "PASS",
            "duration_ms": 355
          },
          {
            "step": "provider",
            "label": "PROVIDER EVENT",
            "status": "PASS",
            "duration_ms": 470
          },
          {
            "step": "audit",
            "label": "AUDIT SEALED",
            "status": "PASS",
            "duration_ms": 72
          },
          {
            "step": "verify_public",
            "label": "PUBLIC VERIFY",
            "status": "PASS",
            "duration_ms": 81
          },
          {
            "step": "verify_offline",
            "label": "OFFLINE VERIFY",
            "status": "PASS",
            "duration_ms": 2
          },
          {
            "step": "rotate",
            "label": "KEY ROTATION",
            "status": "PASS",
            "duration_ms": 304
          },
          {
            "step": "verify_historic",
            "label": "HISTORIC VERIFY",
            "status": "PASS",
            "duration_ms": 85
          },
          {
            "step": "revoke",
            "label": "REVOKED",
            "status": "PASS",
            "duration_ms": 70
          },
          {
            "step": "verify_revoked",
            "label": "POST-REVOKE VERIFY",
            "status": "PASS",
            "duration_ms": 134
          },
          {
            "step": "tamper",
            "label": "TAMPERING → NOT_VERIFIED",
            "status": "PASS",
            "duration_ms": 24
          },
          {
            "step": "rate_limit",
            "label": "RATE LIMIT",
            "status": "PASS",
            "duration_ms": 1272
          },
          {
            "step": "signed_report",
            "label": "SIGNED REPORT",
            "status": "PASS",
            "duration_ms": 160
          },
          {
            "step": "promotion",
            "label": "PROMOTION PREPROD → PRODUCTION",
            "status": "PASS",
            "duration_ms": 224
          }
        ],
        "verdicts": {
          "tampering": "5/5 NOT_VERIFIED",
          "post_revoke": "REVOKED + contenuto redatto",
          "public_verify": "VALID"
        },
        "proof_ref": "BKC-TEST-20260819-2EE13E70",
        "dmarc_phase": "reject",
        "duration_ms": 3988,
        "failed_steps": [],
        "verify_token": "f964a39cca0a06562fe001921ac2f5ce00429e65dbd5ffff",
        "missing_steps": [],
        "provider_mode": "hard_fail",
        "scenarioIndex": 2,
        "rate_limit_triggered_at": 16
      }
    ],
    "legal_note": "La verifica crittografica dimostra integrità e sequenza degli eventi. Non equivale a una certificazione legale in nessuna giurisdizione.",
    "environment": "staging",
    "report_hash": "5c5fb72158b910ac9413397147c281d7d3975119bcf19b43b17d1718ecd4403d",
    "completed_at": "2026-08-19T01:07:34.203Z",
    "gate_version": "bkc-release-gate/1.0",
    "generated_at": "2026-08-19T01:07:22.326Z",
    "signature_alg": "ECDSA_P256_SHA256",
    "promotion_ready": true,
    "report_signature": "ecdsa-p256-sha256:de2ec7089b05212d0f7a82ed17c27b05ad1e54851b3d0aea376436fa39ae2485ada461051614b721c69fe791c67d7bc51e51635dc9c571b5904ba84620718238",
    "required_sequence": [
      {
        "step": "issue",
        "label": "ISSUED"
      },
      {
        "step": "sign",
        "label": "SIGNED"
      },
      {
        "step": "deliver",
        "label": "SENT"
      },
      {
        "step": "provider",
        "label": "PROVIDER EVENT"
      },
      {
        "step": "audit",
        "label": "AUDIT SEALED"
      },
      {
        "step": "verify_public",
        "label": "PUBLIC VERIFY"
      },
      {
        "step": "verify_offline",
        "label": "OFFLINE VERIFY"
      },
      {
        "step": "rotate",
        "label": "KEY ROTATION"
      },
      {
        "step": "verify_historic",
        "label": "HISTORIC VERIFY"
      },
      {
        "step": "revoke",
        "label": "REVOKED"
      },
      {
        "step": "verify_revoked",
        "label": "POST-REVOKE VERIFY"
      },
      {
        "step": "tamper",
        "label": "TAMPERING → NOT_VERIFIED"
      },
      {
        "step": "rate_limit",
        "label": "RATE LIMIT"
      },
      {
        "step": "signed_report",
        "label": "SIGNED REPORT"
      },
      {
        "step": "promotion",
        "label": "PROMOTION PREPROD → PRODUCTION"
      }
    ],
    "environment_notice": "EVIDENZA DI PREPRODUZIONE. I pacchetti sono marcati BKC-TEST-*, firmati con chiavi bkc-test-* e non costituiscono prove di produzione né certificazioni legali.",
    "protocol_invariants": {
      "verdicts": [
        "VALID",
        "REVOKED",
        "NOT_VERIFIED"
      ],
      "signature_alg": "ECDSA_P256_SHA256",
      "schema_version": "bkc-certified/1.1",
      "audit_semantics": [
        "proof.issued",
        "message.sent",
        "delivery.confirmed",
        "delivery.deferred",
        "delivery.retry",
        "delivery.failed",
        "verified.viewed",
        "verified.blocked"
      ],
      "revocation_policy": "revoke_redacts_never_deletes",
      "verification_rules": [
        "manifest_hash",
        "content_hash",
        "attachments_hash",
        "recipients",
        "mail_config_hash",
        "subject_hash",
        "delivery_status",
        "compliance_hash",
        "schema_version",
        "manifest_signature",
        "event_chain_linkage",
        "event_entry_hash",
        "chain_seal"
      ]
    }
  }
}