{
  "receipt": {
    "schema_version": "streamkernel.governed_event_receipt.v1",
    "receipt_id": "ger_demo_fs_2026_08_17_0001",
    "created_at": "2026-08-17T14:20:11Z",
    "artifact_type": "Governed Event Receipt",
    "category": "Governed Event Execution Runtime",
    "data_class": "SYNTHETIC_SAMPLE",
    "claim_boundary": "Synthetic sample built from the field names emitted by the credit/fraud/AML decision-event pipeline. It is collateral for buyer inspection, not a certification, accreditation, regulatory approval, or production customer reference."
  },
  "event": {
    "event_id": "evt_credit_decision_0001",
    "event_timestamp": "2026-08-17T14:20:10Z",
    "pipeline_id": "streamkernel_financial_credit_fraud_aml_decision",
    "run_id": "demo-replay-20260817",
    "sequence": 1,
    "event_type": "credit_decision",
    "source": {
      "type": "synthetic",
      "profile": "config/pipelines/streamkernel_financial_credit_fraud_aml_decision.properties"
    },
    "sink": {
      "type": "kafka",
      "topic": "streamkernel-financial-credit-fraud-aml-decision"
    }
  },
  "execution": {
    "enforcement_model": "inline_fail_closed",
    "decision": {
      "final_decision": "DECLINE",
      "decision_route": "aml_case_review",
      "case_priority": "P1",
      "risk_band": "HIGH",
      "composite_risk_score": 0.87,
      "decision_basis": "AML sanctions screening hit combined with an elevated fraud device signal; credit policy alone would have routed to credit_review.",
      "policy_version": "financial-credit-fraud-aml-v1",
      "policy_sha256": "sha256:3ab41c9d0e5f8b6427ad1f0b7c9e2d84f16c5a930bb7e4d21f8c0a6e5b3d7f92"
    },
    "domain_evidence": {
      "credit": {
        "risk_score": 0.41,
        "decision": "REVIEW",
        "reason_codes": ["DTI_ABOVE_THRESHOLD", "THIN_FILE"]
      },
      "fraud": {
        "risk_score": 0.72,
        "decision": "REVIEW",
        "reason_codes": ["DEVICE_REPUTATION_LOW", "VELOCITY_ANOMALY"]
      },
      "aml": {
        "risk_score": 0.94,
        "decision": "ESCALATE",
        "sanctions_hit": true,
        "reason_codes": ["SANCTIONS_NAME_MATCH", "HIGH_RISK_CORRIDOR"]
      }
    },
    "thresholds": {
      "credit_review": 0.35,
      "fraud_review": 0.6,
      "aml_escalate": 0.85
    },
    "transform_chain": [
      "DJL_EMBEDDING",
      "EMBEDDING_TO_WIREEVENT",
      "CREDIT_FRAUD_AML_DECISION"
    ],
    "model": {
      "name": "minilm-l6-v2-onnx",
      "model_version": "minilm-l6-v2-onnx@1",
      "runtime": "ONNX",
      "execution": "in-process",
      "role": "Embedding for the decision transform. The final decision is produced by deterministic policy logic, not by the embedding model.",
      "model_ref_sha256": "sha256:9f1eb5a439bc46e6fd531d7b0c5b3d9b12bd7db00f44f5d0f31c6b82f5f78d15"
    },
    "delivered_payload": {
      "payload_type": "synthetic_credit_decision_event",
      "source_text_included": false,
      "source_text_sha256": "sha256:c41d8f0a2be913d7a54ee6f8b02c9d1e77a3b5648f0c2d9e1a7b4c6538ef2091",
      "field_aliases_resolved": {
        "credit_score": "applicant.bureau_score",
        "fraud_model_score": "signals.fraud.score",
        "sanctions_hit": "screening.ofac.match"
      },
      "duplicate_fields": []
    }
  },
  "provenance": {
    "note": "These headers are emitted by this StreamKernel instance for the event it executed. Provenance asserted by an upstream producer and copied downstream is not made cryptographically trustworthy by being forwarded.",
    "headers": {
      "streamkernel.provenance.pipeline.id": "streamkernel_financial_credit_fraud_aml_decision",
      "streamkernel.provenance.run.id": "demo-replay-20260817",
      "streamkernel.provenance.transform.chain": "DJL_EMBEDDING,EMBEDDING_TO_WIREEVENT,CREDIT_FRAUD_AML_DECISION",
      "streamkernel.provenance.config.sha256": "sha256:e92fa3982b46ae34b6c0cf25d81b18b59db9843c8c448a88aead57d062aa08e4",
      "streamkernel.provenance.model.name": "minilm-l6-v2-onnx",
      "streamkernel.provenance.model.ref.sha256": "sha256:9f1eb5a439bc46e6fd531d7b0c5b3d9b12bd7db00f44f5d0f31c6b82f5f78d15",
      "streamkernel.provenance.policy.sha256": "sha256:3ab41c9d0e5f8b6427ad1f0b7c9e2d84f16c5a930bb7e4d21f8c0a6e5b3d7f92"
    },
    "decision_headers": {
      "decision.final": "DECLINE",
      "decision.route": "aml_case_review",
      "decision.priority": "P1",
      "decision.risk_band": "HIGH",
      "decision.composite_score": "0.87",
      "credit.risk_score": "0.41",
      "credit.decision": "REVIEW",
      "fraud.risk_score": "0.72",
      "fraud.decision": "REVIEW",
      "aml.risk_score": "0.94",
      "aml.decision": "ESCALATE",
      "aml.sanctions.hit": "true"
    }
  },
  "authorization": {
    "model": "OPA_SIDECAR",
    "posture": "fail_closed",
    "granularity": "cached admission gate for the pipeline identity, not per-event authorization, unless per-event authorization is explicitly configured",
    "pipeline_identity": "service-account-1",
    "note": "This is the runtime's pipeline/service identity. It is not an OIDC-derived per-event end-user identity."
  },
  "audit_chain": {
    "hash_algorithm": "SHA-256",
    "canonicalization": "JSON object with event_hash omitted, sorted keys, compact separators",
    "previous_event_hash": "sha256:0f7c2ad5c8b41e93670a5d2e8f14b6c37d9a0e582b41cf7639ad8e05c216b4fa",
    "event_hash": "sha256:6d2a91fb4c0e5738bb1af6d90c34e27581b0fa4d3e96c8571ad24bf0e83c9157",
    "scope": "Per-runtime-instance hash chain. Correlating a multi-hop path across several StreamKernel instances or across other systems requires stitching on run and event identifiers; it is not one globally continuous ledger.",
    "audit_path": "benchmark-runs/<run-id>/mcp-audit.jsonl"
  },
  "downstream_disposition": {
    "delivered": true,
    "destination": "streamkernel-financial-credit-fraud-aml-decision",
    "case_system_handoff": "Route label aml_case_review is emitted on the decision event. Physical fan-out to a case-management system is customer integration work, not a shipped connector.",
    "dlq": false
  },
  "attachments": {
    "use_case": "use-cases/financial-services/credit-fraud-aml-decision-event/README.md",
    "demo_steps": "use-cases/financial-services/credit-fraud-aml-decision-event/demo.md",
    "evidence_checklist": "use-cases/financial-services/credit-fraud-aml-decision-event/evidence.md",
    "pipeline_profile": "config/pipelines/streamkernel_financial_credit_fraud_aml_decision.properties",
    "benchmark_matrix": "benchmark-runs/tests_financial_services.csv"
  }
}
