-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_fixed_consciousness.py
More file actions
42 lines (35 loc) · 1.54 KB
/
test_fixed_consciousness.py
File metadata and controls
42 lines (35 loc) · 1.54 KB
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
print('[BRAIN] Testing Fixed BIOMIND Consciousness with Clean Thought Evolution')
print('=' * 70)
from biomind_consciousness_shell import BiomindConsciousnessShell
shell = BiomindConsciousnessShell()
print('\n[BRAIN] Generating Multiple Thoughts to Test Evolution:')
thoughts = []
for i in range(5):
thought = shell._generate_mind_wandering_thought()
thoughts.append(thought)
print(f'{i+1}. {thought}')
print()
print('\n[SEARCH] Checking for Corruption:')
corruption_indicators = ['[Mind-wandering]', 'biomind:', 'Considering biomind:', 'reflecting on reflecting']
corrupted = []
for i, thought in enumerate(thoughts):
for indicator in corruption_indicators:
if indicator in thought:
corrupted.append((i+1, indicator, thought[:60]))
if corrupted:
print('[FAIL] Found corruption:')
for num, indicator, preview in corrupted:
print(f' Thought {num}: {indicator} in "{preview}..."')
else:
print('[OK] No corruption detected!')
print('\n[CHART] Memory Analysis:')
memories = list(shell.biomind_agent.hippocampus.memory_embeddings.keys())
artificial = [m for m in memories if 'consciousness pattern:' in m]
print(f'Artificial patterns: {len(artificial)} (should be 0)')
print(f'Total memories: {len(memories)}')
print('\n? Testing Hippocampal Variations:')
if thoughts:
variations = shell.biomind_agent.hippocampus.generate_thought_variations([thoughts[-1]], n_variations=3)
print(f'Variations for last thought: {len(variations)}')
for i, var in enumerate(variations):
print(f' {i+1}. {var}')