from __future__ import annotations

from datetime import datetime, timezone
from typing import Any, Optional

from receipts.base import BaseReceipt


class ContextPreflightReceipt(BaseReceipt):
    """
    Lightweight stub for context preflight receipts used by CLI/engine tests.
    """

    receipt_type: str = "ContextPreflightReceipt"
    domain: str = "governance"

    def __init__(self, **kwargs: Any) -> None:
        ts = kwargs.pop("ts", None) or datetime.now(timezone.utc)
        super().__init__(receipt_type=self.receipt_type, domain=self.domain, ts=ts, **kwargs)
