"""
helix_cdc.receipts - Explainable Receipts with Cryptographic Commits

This module implements inference receipt schema v1:
- Trail (the WHY): ISA trace, routing trace, decision evidence, guardrails
- Seal (tamper-evident): SHA hashes, Merkle proofs, chain commits
- CDR anchor: Reversible state checkpointing

SHA = the wax seal, not the diary.

Goal: Explainable receipts + cryptographic commits + deterministic replay
"""

from .inference_receipt_v1 import (
    ISAOp,
    ISATrace,
    SeInput,
    Routing,
    TopKEntry,
    DecisionMargins,
    DecisionEvidence,
    GateCheck,
    Guardrails,
    Trail,
    MerkleProof,
    Seal,
    CDRAnchor,
    Provenance,
    InferenceReceipt,
    canonicalize,
)

from .merkle import MerkleTree

from .emitter import ReceiptEmitter

__all__ = [
    # Schema dataclasses
    "ISAOp",
    "ISATrace",
    "SeInput",
    "Routing",
    "TopKEntry",
    "DecisionMargins",
    "DecisionEvidence",
    "GateCheck",
    "Guardrails",
    "Trail",
    "MerkleProof",
    "Seal",
    "CDRAnchor",
    "Provenance",
    "InferenceReceipt",
    # Utilities
    "canonicalize",
    "MerkleTree",
    "ReceiptEmitter",
]
