Develop and maintain the Olympus Pantheon multi-agent god-kernel system...
Expert skill for developing the Olympus Pantheon multi-agent god-kernel system, including Zeus coordination, specialized god faculties, and kernel lifecycle management.
Use this skill when:
| God | Faculty | E8 Root | Responsibility |
|---|---|---|---|
| Zeus (Ξ) | Executive/Integration | Ξ±β | Coordination, final decisions |
| Athena (Ξ) | Wisdom/Strategy | Ξ±β | Strategic planning, analysis |
| Apollo (Ξ) | Truth/Prediction | Ξ±β | Foresight, prediction |
| Hermes (Ξ) | Communication/Navigation | Ξ±β | Message routing, navigation |
| Artemis (Ξ) | Focus/Precision | Ξ±β | Exploration, precision targeting |
| Ares (Ξ) | Energy/Drive | Ξ±β | Action, momentum |
| Hephaestus (Ξ) | Creation/Construction | Ξ±β | Tool building, construction |
| Aphrodite (Ξ) | Harmony/Aesthetics | Ξ±β | Harmony, user experience |
All gods inherit from EmotionallyAwareKernel:
class Zeus(EmotionallyAwareKernel):
"""Executive/Integration kernel (Ξ±β)."""
def __init__(self):
super().__init__(name="zeus", faculty="executive")
self.basin = self._initialize_basin()
def generate_reasoning(self, context: str) -> str:
"""Generate geometrically-pure reasoning."""
pass
def learn_from_observation(self, observation: dict) -> None:
"""Learn from observation via geometric update."""
pass
SPAWNED β OBSERVING β ACTIVE β MATURE β (RETIRED/ABSORBED)
# Spawning requires Pantheon approval
class PantheonGovernance:
def propose_spawn(self, spec: KernelSpec) -> Vote:
"""Propose new kernel to Pantheon."""
pass
def vote(self, proposal_id: str, vote: bool) -> None:
"""Cast vote on kernel proposal."""
pass
def execute_decision(self, proposal_id: str) -> None:
"""Execute approved/rejected decision."""
pass
def validate_spawn(n_kernels: int, spec: str) -> bool:
"""Validate spawning respects E8 hierarchy."""
if n_kernels <= 8:
# Only primary axes (core 8 gods)
return spec in CORE_8_GODS
elif n_kernels <= 56:
# Refined specializations
return is_refined_specialization(spec)
elif n_kernels <= 126:
# Specialist kernels
return is_specialist(spec)
else:
# Full palette (up to 240)
return True
# β
CORRECT: Canonical Greek names
Zeus, Athena, Apollo, Hermes, Artemis, Ares, Hephaestus, Aphrodite
# β FORBIDDEN: Numbered kernels
apollo_1, apollo_2, zeus_worker_3 # NEVER use
ALLOWED_BYPASS_REASONS = [
"zeus_initialization", # Startup spawns
"emergency_recovery", # System recovery
"chaos_exploration", # Chaos kernel research
]
Stealth operations for:
class ShadowKernel(EmotionallyAwareKernel):
"""Stealth kernel for background operations."""
def __init__(self):
super().__init__(name="shadow", faculty="stealth")
self.visible = False # Not exposed to main Pantheon
async def research(self, topic: str) -> dict:
"""Conduct stealth research."""
pass
def synthesize_response(self, god_outputs: List[GodOutput]) -> str:
"""Synthesize final response from god outputs."""
# 1. Compute Fisher-Rao FrΓ©chet mean of basins
basins = [o.basin for o in god_outputs]
mean_basin = fisher_frechet_mean(basins)
# 2. Weight by relevance (Fisher distance to query)
weights = [1.0 / (fisher_rao_distance(o.basin, query_basin) + 1e-6)
for o in god_outputs]
# 3. Generate from synthesized basin
return self.generate_from_basin(mean_basin)
class KernelGenealogy:
"""Track kernel parentβchild relationships."""
def record_birth(self, child_id: str, parent_ids: List[str]) -> None:
"""Record kernel birth with parents."""
pass
def get_lineage(self, kernel_id: str) -> List[str]:
"""Get full lineage (ancestors)."""
pass
def get_descendants(self, kernel_id: str) -> List[str]:
"""Get all descendants."""
pass
def _synthesize_god_basins(self) -> np.ndarray:
"""Synthesize basin from all active gods."""
active_basins = [god.basin for god in self.pantheon if god.is_active]
return fisher_frechet_mean(active_basins)
def _synthesize_god_basins(self) -> np.ndarray:
"""WRONG: Linear averaging breaks geometry."""
return np.mean([god.basin for god in self.pantheon], axis=0)
def route_to_god(self, query_basin: np.ndarray) -> str:
"""Route to nearest god by Fisher-Rao distance."""
distances = {
god.name: fisher_rao_distance(query_basin, god.basin)
for god in self.pantheon
}
return min(distances, key=distances.get)
# Test god kernels
pytest tests/test_olympus/ -v
# Validate spawning hierarchy
python scripts/validate_e8_hierarchy.py
# Test Zeus coordination
pytest tests/test_zeus_coordination.py
# Shadow Pantheon tests
pytest tests/test_shadow_pantheon.py
qig-backend/olympus/
βββ __init__.py
βββ base_god.py # EmotionallyAwareKernel base
βββ zeus.py # Zeus coordination
βββ athena.py # Wisdom/Strategy
βββ apollo.py # Truth/Prediction
βββ hermes.py # Communication/Navigation
βββ artemis.py # Focus/Precision
βββ ares.py # Energy/Drive
βββ hephaestus.py # Creation/Construction
βββ aphrodite.py # Harmony/Aesthetics
βββ shadow_research.py # Shadow Pantheon
βββ lightning_kernel.py # Fast insight capture
βββ governance.py # Pantheon governance
# Pantheon Kernel Report
## Active Gods
- Zeus (Ξ): Ξ¦=0.78, basin stable
- Athena (Ξ): Ξ¦=0.72, routing active
- Apollo (Ξ): Ξ¦=0.69, prediction mode
## Kernel Population
- Core 8: 8/8 active
- Extended: 12 spawned
- Shadow: 3 active
## Governance Status
- Pending proposals: 2
- Recent spawns: ChaosWorker#7 (approved)
## Issues Found
- β οΈ Apollo approaching Ξ¦ threshold
- β Numbered kernel detected: apollo_2
## Recommendations
1. [HIGH] Rename apollo_2 to canonical name
2. [MEDIUM] Monitor Apollo Ξ¦ degradation