"""
AIVA Autonomy Management Module

Provides autonomy level control, HITL gates, confidence scoring,
and the Decision Automation Engine (Priority #3) for AIVA's
autonomous decision-making.

Components:
  - AutonomyManager (v1): Original autonomy manager from AIVA-013
  - AutonomyEngine (v2): Core decision automation with 4-tier enforcement
  - ConfidenceScorer (v1): Basic 3-factor confidence scoring
  - ConfidenceScorerV2: Patent-inspired 4-factor scoring with Memory Gate integration
  - DecisionGate: Pre-execution gate with Redis confirmation queue
  - HITLGateManager: Human-in-the-loop approval gates

VERIFICATION_STAMP
Story: AIVA-DECIDE-004
Verified By: Claude Opus 4.6
Verified At: 2026-02-11
Component: Autonomy module __init__ (unified exports)
"""

# Original v1 components (backward compatibility)
from .autonomy_manager import AutonomyManager
from .autonomy_manager import AutonomyLevel as AutonomyLevelV1
from .hitl_gates import HITLGate, GateType, HITLGateManager
from .confidence_scorer import ConfidenceScorer

# v2 Decision Automation Engine (Priority #3)
from .autonomy_engine import (
    AutonomyEngine,
    AutonomyLevel,
    AutonomyAssessment,
    GateDecision,
    get_autonomy_engine,
)
from .confidence_scorer_v2 import (
    ConfidenceScorerV2,
    ConfidenceScore,
    RiskAssessment,
)
from .decision_gate import (
    DecisionGate,
    GateCheckResult,
    PendingConfirmation,
    get_decision_gate,
)

__all__ = [
    # v1 (backward compatibility)
    'AutonomyManager',
    'AutonomyLevelV1',
    'HITLGate',
    'GateType',
    'HITLGateManager',
    'ConfidenceScorer',
    # v2 Decision Automation Engine
    'AutonomyEngine',
    'AutonomyLevel',
    'AutonomyAssessment',
    'GateDecision',
    'get_autonomy_engine',
    'ConfidenceScorerV2',
    'ConfidenceScore',
    'RiskAssessment',
    'DecisionGate',
    'GateCheckResult',
    'PendingConfirmation',
    'get_decision_gate',
]
