{
  "id": "5c11daa3-7931-4e99-8c14-69deeb127f56",
  "created_at": "2026-08-19T01:07:04.438089+00:00",
  "evidence": {
    "key_id": "bkc-cert-20260819-2965e7",
    "metrics": {
      "steps_total": 45,
      "steps_failed": 0,
      "avg_scenario_ms": 3810,
      "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": "1c542815-624d-4c45-8acb-c080a49203bf",
        "latency": {
          "total_ms": 3552,
          "slowest_ms": 1404,
          "slowest_step": "rate_limit"
        },
        "outcome": "PASS",
        "sequence": [
          {
            "step": "issue",
            "label": "ISSUED",
            "status": "PASS",
            "duration_ms": 150
          },
          {
            "step": "sign",
            "label": "SIGNED",
            "status": "PASS",
            "duration_ms": 144
          },
          {
            "step": "deliver",
            "label": "SENT",
            "status": "PASS",
            "duration_ms": 353
          },
          {
            "step": "provider",
            "label": "PROVIDER EVENT",
            "status": "PASS",
            "duration_ms": 440
          },
          {
            "step": "audit",
            "label": "AUDIT SEALED",
            "status": "PASS",
            "duration_ms": 68
          },
          {
            "step": "verify_public",
            "label": "PUBLIC VERIFY",
            "status": "PASS",
            "duration_ms": 85
          },
          {
            "step": "verify_offline",
            "label": "OFFLINE VERIFY",
            "status": "PASS",
            "duration_ms": 2
          },
          {
            "step": "rotate",
            "label": "KEY ROTATION",
            "status": "PASS",
            "duration_ms": 286
          },
          {
            "step": "verify_historic",
            "label": "HISTORIC VERIFY",
            "status": "PASS",
            "duration_ms": 79
          },
          {
            "step": "revoke",
            "label": "REVOKED",
            "status": "PASS",
            "duration_ms": 65
          },
          {
            "step": "verify_revoked",
            "label": "POST-REVOKE VERIFY",
            "status": "PASS",
            "duration_ms": 86
          },
          {
            "step": "tamper",
            "label": "TAMPERING → NOT_VERIFIED",
            "status": "PASS",
            "duration_ms": 36
          },
          {
            "step": "rate_limit",
            "label": "RATE LIMIT",
            "status": "PASS",
            "duration_ms": 1404
          },
          {
            "step": "signed_report",
            "label": "SIGNED REPORT",
            "status": "PASS",
            "duration_ms": 152
          },
          {
            "step": "promotion",
            "label": "PROMOTION PREPROD → PRODUCTION",
            "status": "PASS",
            "duration_ms": 202
          }
        ],
        "verdicts": {
          "tampering": "5/5 NOT_VERIFIED",
          "post_revoke": "REVOKED + contenuto redatto",
          "public_verify": "VALID"
        },
        "proof_ref": "BKC-TEST-20260819-0EDFB24C",
        "dmarc_phase": "quarantine",
        "duration_ms": 4009,
        "failed_steps": [],
        "verify_token": "026216ec050cb85a2ab21d03457e5d22432537ead34db628",
        "missing_steps": [],
        "provider_mode": "ok",
        "scenarioIndex": 0,
        "rate_limit_triggered_at": 16
      },
      {
        "label": "DMARC none + provider in retry",
        "run_id": "84df122d-223d-4779-a804-90bf94354cf7",
        "latency": {
          "total_ms": 3305,
          "slowest_ms": 1163,
          "slowest_step": "rate_limit"
        },
        "outcome": "PASS",
        "sequence": [
          {
            "step": "issue",
            "label": "ISSUED",
            "status": "PASS",
            "duration_ms": 147
          },
          {
            "step": "sign",
            "label": "SIGNED",
            "status": "PASS",
            "duration_ms": 143
          },
          {
            "step": "deliver",
            "label": "SENT",
            "status": "PASS",
            "duration_ms": 380
          },
          {
            "step": "provider",
            "label": "PROVIDER EVENT",
            "status": "PASS",
            "duration_ms": 434
          },
          {
            "step": "audit",
            "label": "AUDIT SEALED",
            "status": "PASS",
            "duration_ms": 78
          },
          {
            "step": "verify_public",
            "label": "PUBLIC VERIFY",
            "status": "PASS",
            "duration_ms": 73
          },
          {
            "step": "verify_offline",
            "label": "OFFLINE VERIFY",
            "status": "PASS",
            "duration_ms": 4
          },
          {
            "step": "rotate",
            "label": "KEY ROTATION",
            "status": "PASS",
            "duration_ms": 281
          },
          {
            "step": "verify_historic",
            "label": "HISTORIC VERIFY",
            "status": "PASS",
            "duration_ms": 72
          },
          {
            "step": "revoke",
            "label": "REVOKED",
            "status": "PASS",
            "duration_ms": 69
          },
          {
            "step": "verify_revoked",
            "label": "POST-REVOKE VERIFY",
            "status": "PASS",
            "duration_ms": 78
          },
          {
            "step": "tamper",
            "label": "TAMPERING → NOT_VERIFIED",
            "status": "PASS",
            "duration_ms": 26
          },
          {
            "step": "rate_limit",
            "label": "RATE LIMIT",
            "status": "PASS",
            "duration_ms": 1163
          },
          {
            "step": "signed_report",
            "label": "SIGNED REPORT",
            "status": "PASS",
            "duration_ms": 152
          },
          {
            "step": "promotion",
            "label": "PROMOTION PREPROD → PRODUCTION",
            "status": "PASS",
            "duration_ms": 205
          }
        ],
        "verdicts": {
          "tampering": "5/5 NOT_VERIFIED",
          "post_revoke": "REVOKED + contenuto redatto",
          "public_verify": "VALID"
        },
        "proof_ref": "BKC-TEST-20260819-F6371412",
        "dmarc_phase": "none",
        "duration_ms": 3747,
        "failed_steps": [],
        "verify_token": "a627bfa28212ef48e117f3f9d18171de8683fd3e5c1c835f",
        "missing_steps": [],
        "provider_mode": "retry",
        "scenarioIndex": 1,
        "rate_limit_triggered_at": 16
      },
      {
        "label": "DMARC reject + provider in errore permanente",
        "run_id": "5f2fd130-1d99-4ffd-b551-b63579619feb",
        "latency": {
          "total_ms": 3244,
          "slowest_ms": 1136,
          "slowest_step": "rate_limit"
        },
        "outcome": "PASS",
        "sequence": [
          {
            "step": "issue",
            "label": "ISSUED",
            "status": "PASS",
            "duration_ms": 140
          },
          {
            "step": "sign",
            "label": "SIGNED",
            "status": "PASS",
            "duration_ms": 140
          },
          {
            "step": "deliver",
            "label": "SENT",
            "status": "PASS",
            "duration_ms": 365
          },
          {
            "step": "provider",
            "label": "PROVIDER EVENT",
            "status": "PASS",
            "duration_ms": 418
          },
          {
            "step": "audit",
            "label": "AUDIT SEALED",
            "status": "PASS",
            "duration_ms": 72
          },
          {
            "step": "verify_public",
            "label": "PUBLIC VERIFY",
            "status": "PASS",
            "duration_ms": 76
          },
          {
            "step": "verify_offline",
            "label": "OFFLINE VERIFY",
            "status": "PASS",
            "duration_ms": 2
          },
          {
            "step": "rotate",
            "label": "KEY ROTATION",
            "status": "PASS",
            "duration_ms": 294
          },
          {
            "step": "verify_historic",
            "label": "HISTORIC VERIFY",
            "status": "PASS",
            "duration_ms": 71
          },
          {
            "step": "revoke",
            "label": "REVOKED",
            "status": "PASS",
            "duration_ms": 72
          },
          {
            "step": "verify_revoked",
            "label": "POST-REVOKE VERIFY",
            "status": "PASS",
            "duration_ms": 82
          },
          {
            "step": "tamper",
            "label": "TAMPERING → NOT_VERIFIED",
            "status": "PASS",
            "duration_ms": 11
          },
          {
            "step": "rate_limit",
            "label": "RATE LIMIT",
            "status": "PASS",
            "duration_ms": 1136
          },
          {
            "step": "signed_report",
            "label": "SIGNED REPORT",
            "status": "PASS",
            "duration_ms": 146
          },
          {
            "step": "promotion",
            "label": "PROMOTION PREPROD → PRODUCTION",
            "status": "PASS",
            "duration_ms": 219
          }
        ],
        "verdicts": {
          "tampering": "5/5 NOT_VERIFIED",
          "post_revoke": "REVOKED + contenuto redatto",
          "public_verify": "VALID"
        },
        "proof_ref": "BKC-TEST-20260819-5E573A6E",
        "dmarc_phase": "reject",
        "duration_ms": 3675,
        "failed_steps": [],
        "verify_token": "6fa3c715ba9898fbbea92d47feba118ef7a08836f228fe9c",
        "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": "7eff320bffc74e06b6ca0acffd86e047211c749faeacbaea127d224b3c874257",
    "completed_at": "2026-08-19T01:07:04.323Z",
    "gate_version": "bkc-release-gate/1.0",
    "generated_at": "2026-08-19T01:06:52.891Z",
    "signature_alg": "ECDSA_P256_SHA256",
    "promotion_ready": true,
    "report_signature": "ecdsa-p256-sha256:29e7eda865f93041adae8a60287ea6325548dd1a606dd0341ba0e4ec5722a2715da1c1bdfa8bd9ceb630c7c6cb6dec0da62f97cc99b5fafda9a944f8311d8123",
    "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"
      ]
    }
  }
}