"""Auto-generated from LOOM_CONTRACT.md by contract_compiler.py vv1.1.0"""

from pydantic import BaseModel, Field
from datetime import datetime
from typing import List, Dict, Optional, Any

class GenesisVerificationReceipt(BaseModel):
    """Genesis ground truth verification."""

    # Standard receipt fields
    receipt_id: str
    receipt_type: str = "genesis.verification.v1"
    loomdip: str = "pending"
    signature: str = "unsigned"
    valid_time: datetime = Field(default_factory=datetime.utcnow)
    tier: str = "SIGNED"

    # Genesis-specific fields
    decision_receipt_id: str  # Council decision being verified
    subject_id: str  # Actor ID (must match council)
    status: str  # "verified", "unverifiable", "conflict"
    confidence: Optional[float] = None    # >= 0.70 if verified, None otherwise
    verification_method: str  # e.g., "rule_based_phase1"
    evidence: List[str]  # Supporting evidence
    conflict_evidence: Optional[List[str]] = None    # Evidence if conflict
