"""Governance/safety kernel: allow/warn/block/review + static validator + audit.

A self-improving trust layer (lexical rules + optional semantic judge). Never
hard-blocks a benign action. Self-modification is only accepted through a
statically-validated edit surface.
"""

from chimera.governance.actors import (
    ActorResult,
    ChangeProposal,
    FourActorGovernance,
    GovernanceDecision,
)
from chimera.governance.aggregate_monitor import AggregateMonitor, CollusionFinding
from chimera.governance.allowlist import restrict_registry
from chimera.governance.audit import AuditLog
from chimera.governance.drift import (
    DriftReport,
    Requirement,
    Spec,
    check_drift,
    load_spec,
)
from chimera.governance.governed_tool import GovernedTool, govern_registry
from chimera.governance.kernel import TrustKernel
from chimera.governance.ledger import (
    CapabilityEvent,
    SequenceAssessment,
    TaintLedger,
    assess_action,
)
from chimera.governance.ledger_tool import (
    DANGEROUS_WHEN_TAINTED,
    FENCE_CLOSE,
    FENCE_OPEN,
    LedgeredTool,
    fence,
    ledger_registry,
)
from chimera.governance.policy import Decision, Rule, RuleSet, Verdict
from chimera.governance.precedent import PrecedentStore
from chimera.governance.quarantine import (
    QuarantinedReader,
    QuarantineResult,
    fields_schema,
)
from chimera.governance.sanitize import (
    has_control_tokens,
    sanitize_untrusted,
    strip_leaked_control_tokens,
)
from chimera.governance.validator import (
    ScheduleValidator,
    SkillValidator,
    ValidationResult,
)

__all__ = [
    "Decision",
    "Verdict",
    "Rule",
    "RuleSet",
    "TrustKernel",
    "AuditLog",
    "GovernedTool",
    "govern_registry",
    "restrict_registry",
    "TaintLedger",
    "CapabilityEvent",
    "SequenceAssessment",
    "assess_action",
    "AggregateMonitor",
    "CollusionFinding",
    "LedgeredTool",
    "ledger_registry",
    "fence",
    "FENCE_OPEN",
    "FENCE_CLOSE",
    "DANGEROUS_WHEN_TAINTED",
    "sanitize_untrusted",
    "strip_leaked_control_tokens",
    "has_control_tokens",
    "QuarantinedReader",
    "QuarantineResult",
    "fields_schema",
    "SkillValidator",
    "ScheduleValidator",
    "ValidationResult",
    "Spec",
    "Requirement",
    "DriftReport",
    "check_drift",
    "load_spec",
    "PrecedentStore",
    "FourActorGovernance",
    "ChangeProposal",
    "GovernanceDecision",
    "ActorResult",
]
