|
|
"""Deep dive into genesis lineage and provenance chain."""
|
|
|
import sys
|
|
|
sys.path.insert(0, 'F:/End-Game/glassboxgames/children')
|
|
|
sys.path.insert(0, 'F:/End-Game/key')
|
|
|
|
|
|
print("=" * 70)
|
|
|
print("🔐 GENESIS LINEAGE - Tracing the Champion's Origins")
|
|
|
print("=" * 70)
|
|
|
|
|
|
|
|
|
print("\n=== CASCADE Genesis Root ===")
|
|
|
try:
|
|
|
from cascade import genesis
|
|
|
root = genesis.get_genesis_root()
|
|
|
print(f"Genesis root: {root}")
|
|
|
|
|
|
|
|
|
if hasattr(genesis, 'get_genesis_info'):
|
|
|
info = genesis.get_genesis_info()
|
|
|
print(f"Genesis info: {info}")
|
|
|
except Exception as e:
|
|
|
print(f"Error: {e}")
|
|
|
|
|
|
|
|
|
print("\n=== SwarmLattice ===")
|
|
|
try:
|
|
|
from swarm_lattice import SwarmLattice
|
|
|
lattice = SwarmLattice(link_to_genesis=True)
|
|
|
print(f"Lattice genesis root: {lattice.genesis_root}")
|
|
|
print(f"Lattice merkle root: {lattice.merkle_root}")
|
|
|
stats = lattice.get_stats()
|
|
|
print(f"Stats: {stats}")
|
|
|
except Exception as e:
|
|
|
print(f"Error: {e}")
|
|
|
|
|
|
|
|
|
print("\n=== Champion's Genesis View ===")
|
|
|
try:
|
|
|
import champion_gen42 as champ
|
|
|
|
|
|
|
|
|
print(f"Champion quine hash: {champ.get_quine_hash()}")
|
|
|
|
|
|
|
|
|
if hasattr(champ, 'verify_lineage_to_genesis'):
|
|
|
valid = champ.verify_lineage_to_genesis()
|
|
|
print(f"Lineage to genesis valid: {valid}")
|
|
|
|
|
|
|
|
|
if hasattr(champ, 'genesis'):
|
|
|
print(f"Champion's genesis module: {champ.genesis}")
|
|
|
if hasattr(champ.genesis, 'get_genesis_root'):
|
|
|
print(f"Genesis root: {champ.genesis.get_genesis_root()}")
|
|
|
except Exception as e:
|
|
|
print(f"Error: {e}")
|
|
|
import traceback
|
|
|
traceback.print_exc()
|
|
|
|
|
|
|
|
|
print("\n=== CASCADE ProvenanceChain ===")
|
|
|
try:
|
|
|
from cascade.core.provenance import ProvenanceChain, ProvenanceRecord
|
|
|
|
|
|
|
|
|
chain = ProvenanceChain()
|
|
|
print(f"Chain type: {type(chain)}")
|
|
|
print(f"Chain methods: {[m for m in dir(chain) if not m.startswith('_')]}")
|
|
|
|
|
|
|
|
|
if hasattr(chain, 'verify'):
|
|
|
print(f"Has verify: True")
|
|
|
if hasattr(chain, 'get_lineage'):
|
|
|
print(f"Has get_lineage: True")
|
|
|
except Exception as e:
|
|
|
print(f"Error: {e}")
|
|
|
|
|
|
|
|
|
print("\n=== CASCADE Store Stats ===")
|
|
|
try:
|
|
|
from cascade import store
|
|
|
stats = store.stats()
|
|
|
print(f"Store stats:")
|
|
|
for k, v in stats.items():
|
|
|
print(f" {k}: {v}")
|
|
|
except Exception as e:
|
|
|
print(f"Error: {e}")
|
|
|
|