File size: 1,694 Bytes
a80c9f6
 
4bfd01e
 
a80c9f6
 
4bfd01e
a80c9f6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""Verify champion export capabilities."""
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

# Import the champion
import champion_gen42 as champ

print('=== CHAMPION CAPABILITIES ===')
print(f'Quine Hash: {champ._QUINE_HASH}')
print(f'Generation: {champ._GENERATION}')
print(f'Fitness: {champ._FITNESS}')

# Try CapsuleAgent (the wrapper with exports)
print('\n=== CAPSULE AGENT ===')
agent = champ.CapsuleAgent()
print(f'Agent type: {type(agent).__name__}')

print('\n=== EXPORT CAPABILITIES ===')
has_pt = hasattr(agent, 'export_pt')
has_onnx = hasattr(agent, 'export_onnx')
has_capsule = hasattr(agent, 'export_capsule')
has_quine = hasattr(agent, 'get_quine_brain')
has_replicate = hasattr(agent, 'replicate_quine')
has_verify = hasattr(agent, 'verify_quine_integrity')

print(f'Has export_pt: {has_pt}')
print(f'Has export_onnx: {has_onnx}')
print(f'Has export_capsule: {has_capsule}')
print(f'Has get_quine_brain: {has_quine}')
print(f'Has replicate_quine: {has_replicate}')
print(f'Has verify_quine_integrity: {has_verify}')

# Try to list all methods
print('\n=== ALL PUBLIC METHODS ===')
methods = [m for m in dir(agent) if not m.startswith('_') and callable(getattr(agent, m, None))]
for m in methods:
    print(f'  - {m}')

# Also check module-level quine functions
print('\n=== MODULE-LEVEL QUINE FUNCTIONS ===')
print(f'get_quine_brain: {hasattr(champ, "get_quine_brain")}')
print(f'replicate_quine: {hasattr(champ, "replicate_quine")}')
print(f'verify_quine_integrity: {hasattr(champ, "verify_quine_integrity")}')
print(f'load_quine_brain: {hasattr(champ, "load_quine_brain")}')