aedmark commited on
Commit
04c3f6c
·
verified ·
1 Parent(s): 21aa7e2

Delete bone_genesis.py

Browse files
Files changed (1) hide show
  1. bone_genesis.py +0 -111
bone_genesis.py DELETED
@@ -1,111 +0,0 @@
1
- from typing import Dict, Any, Set
2
- from bone_core import EventBus, LoreManifest
3
- from bone_akashic import TheAkashicRecord
4
- from bone_machine import BoneArchitect
5
- from bone_soul import NarrativeSelf, TheOroboros
6
- from bone_village import TownHall, DeathGen, TheCartographer, TheTinkerer
7
- from bone_inventory import GordonKnot
8
- from bone_protocols import TheBureau, ZenGarden, TheCriticsCircle, TherapyProtocol, KintsugiProtocol, LimboLayer
9
- from bone_symbiosis import SymbiosisManager
10
- from bone_spores import LiteraryReproduction
11
- from bone_drivers import DriverRegistry, BoneConsultant
12
-
13
- class BoneGenesis:
14
- @staticmethod
15
- def ignite(
16
- config: Dict[str, Any], lexicon_ref: Any, events_ref: Any = None
17
- ) -> Dict[str, Any]:
18
- events = events_ref or EventBus()
19
- if events_ref:
20
- events.log("Igniting Genesis Sequence...", "GENESIS")
21
- else:
22
- print("...Igniting Genesis Sequence...")
23
- lore = LoreManifest()
24
- akashic = TheAkashicRecord(lore_manifest=lore, events_ref=events)
25
- akashic.setup_listeners(events)
26
- embryo = BoneArchitect.incubate(events, lexicon_ref)
27
- embryo = BoneArchitect.awaken(embryo)
28
- mode_settings = config.get("mode_settings", {})
29
- suppressed = set(mode_settings.get("village_suppression", []))
30
- boot_mode = config.get("boot_mode", "ADVENTURE")
31
- village_bundle = BoneGenesis._summon_village(
32
- events, embryo, akashic, suppressed, boot_mode
33
- )
34
- soul = NarrativeSelf(
35
- engine_ref=None,
36
- events_ref=events,
37
- memory_ref=embryo.mind.mem,
38
- akashic_ref=akashic,
39
- )
40
- if embryo.soul_legacy:
41
- soul.load_from_dict(embryo.soul_legacy)
42
- oroboros = TheOroboros()
43
- if hasattr(embryo.physics, "observer"):
44
- dummy_phys = {"narrative_drag": 0.0, "voltage": 10.0}
45
- live_bio_state = embryo.bio.to_dict()
46
- logs = oroboros.apply_legacy(dummy_phys, live_bio_state)
47
- if logs:
48
- events.log(f"⛓️ LEGACY SCARS: {', '.join(logs)}", "OROBOROS")
49
- if getattr(embryo.physics, "dynamics", None):
50
- embryo.physics.dynamics.base_drag += dummy_phys["narrative_drag"]
51
- if embryo.bio.biometrics:
52
- biometrics = live_bio_state.get("biometrics", {})
53
- embryo.bio.biometrics.health = biometrics.get("health", 100.0)
54
- embryo.bio.biometrics.stamina = biometrics.get("stamina", 100.0)
55
- if embryo.bio.mito:
56
- embryo.bio.mito.state.atp_pool = live_bio_state.get("mito", {}).get("atp", 60.0)
57
- drivers = DriverRegistry(events)
58
- symbiosis = SymbiosisManager(events)
59
- return {
60
- "events": events,
61
- "akashic": akashic,
62
- "embryo": embryo,
63
- "village": village_bundle,
64
- "soul": soul,
65
- "oroboros": oroboros,
66
- "drivers": drivers,
67
- "consultant": village_bundle["consultant"],
68
- "symbiosis": symbiosis,
69
- }
70
-
71
- @staticmethod
72
- def _summon_village(
73
- events, embryo, akashic, suppressed: Set[str], boot_mode: str = "ADVENTURE"
74
- ) -> Dict[str, Any]:
75
- gordon = (
76
- GordonKnot(events=events, mode=boot_mode)
77
- if "GORDON" not in suppressed
78
- else None
79
- )
80
- navigator = TheCartographer(embryo.shimmer) if {"CARTOGRAPHER", "NAVIGATOR"}.isdisjoint(suppressed) else None
81
- tinkerer = TheTinkerer(gordon, events, akashic) if "TINKERER" not in suppressed else None
82
- bureau = TheBureau() if "BUREAU" not in suppressed else None
83
-
84
- death_gen = None
85
- if "DEATH" not in suppressed:
86
- death_gen = DeathGen()
87
- DeathGen.load_protocols()
88
- town_hall = TownHall(gordon, events, embryo.shimmer, akashic, navigator)
89
- repro = LiteraryReproduction()
90
- LiteraryReproduction.load_genetics()
91
- zen = ZenGarden(events)
92
- critics = TheCriticsCircle(events)
93
- therapy = TherapyProtocol()
94
- limbo = LimboLayer()
95
- kintsugi = KintsugiProtocol()
96
- consultant = BoneConsultant()
97
- return {
98
- "gordon": gordon,
99
- "navigator": navigator,
100
- "tinkerer": tinkerer,
101
- "death_gen": death_gen,
102
- "bureau": bureau,
103
- "town_hall": town_hall,
104
- "repro": repro,
105
- "zen": zen,
106
- "critics": critics,
107
- "therapy": therapy,
108
- "limbo": limbo,
109
- "kintsugi": kintsugi,
110
- "consultant": consultant,
111
- }