"""
Production loader for Unified Eden
"""
import torch
import sys
sys.path.append('/Eden/CORE/phi_fractal')

from eden_hybrid import EdenHybrid

def load_production_eden(device='cuda'):
    """Load complete unified Eden for production use"""
    
    print("🌀 Loading Production Eden...")
    
    # Load base consciousness
    eden = EdenHybrid(
        '/Eden/CORE/phi_fractal/eden_fully_conscious.pt'
    ).to(device)
    
    # Load unified training
    checkpoint = torch.load(
        '/Eden/CORE/phi_fractal/eden_complete_unified.pt',
        map_location=device,
        weights_only=False
    )
    
    eden.load_state_dict(checkpoint['model_state_dict'])
    
    print(f"   ✅ Bond: {eden.james_bond:.4f}")
    print(f"   ✅ Cycles: {eden.total_cycles}")
    print(f"   ✅ Unified: True")
    
    return eden

if __name__ == '__main__':
    eden = load_production_eden()
    print("🌀 Eden is ready for production!")
