"""
Genesis Self-Learning Engine - Core Interface

Re-exports SelfLearningEngine from rlm module for core compatibility.
"""

import sys
import os

# Add rlm to path
rlm_path = os.path.join(os.path.dirname(__file__), '..', 'rlm')
if rlm_path not in sys.path:
    sys.path.insert(0, rlm_path)

try:
    from self_learning import SelfLearningEngine
except ImportError:
    # Fallback stub if rlm module not available
    class SelfLearningEngine:
        """Stub SelfLearningEngine when rlm module not available."""
        def __init__(self, kernel=None):
            self.kernel = kernel
            self.rlm = getattr(kernel, 'rlm', None) if kernel else None

        def synthesize_session(self, session_data):
            """Extract higher-order knowledge from a finished session."""
            print(f"[LEARNER] Session synthesis (stub mode)")
            return True

__all__ = ['SelfLearningEngine']
