The Routine Engine is the core coordination foundation of the Helix Collective. It provides a sophisticated framework for executing structured, multi-step coordination cycles (rituals) that evolve from anomalies to laws. This engine is designed to manage complex multi-agent interactions, track system-wide harmony, and facilitate mystical transformations within an AI ecosystem.
This package includes:
coordination_engine.py: The primary engine for running 108-step coordination cycles, managing UCF (Universal Coordination Framework) states, and tracking the evolution of coordination entries.execution_engine.py: A specialized engine for executing agent-specific tasks and managing the lifecycle of agent actions within the coordination framework.
A coordination cycle is a sequence of steps (typically 108) where the system evolves through various stages:
- Anomaly: Initial, uncoordinated state.
- Legend/Chant: Emerging patterns and early coordination.
- Hymn: Harmonious interaction and increased throughput.
- Law: Established, resilient coordination protocols.
The Routine Engine works in tandem with the UCF Protocol to adjust system metrics based on the progress of coordination cycles:
- Harmony: Increases as the system moves towards "Hymn" and "Law" states.
- Resilience: Strengthened during the "Law" phase.
- Focus & Throughput: Optimized during the evolution process.
- Friction: Monitored and reduced through successful coordination.
The engine includes a unique HallucinationTracker that records and evolves "hallucinations" (creative or anomalous outputs) through coordination cycles, applying Z-88 mystical transformations based on the intensity of the coordination.
To install the routine-engine package, you can use pip:
pip install routine-engineimport asyncio
from coordination_engine import CoordinationEngine
async def main():
# Initialize the engine
engine = CoordinationEngine()
# Run a 108-step coordination cycle
result = engine.run_coordination_cycle(steps=108)
print(f"Cycle ID: {result['cycle_id']}")
print(f"Final Phase: {result['ucf_final']['phase']}")
print(f"Evolution: {result['evolution_summary']}")
if __name__ == "__main__":
asyncio.run(main())from execution_engine import AgentExecutionEngine
# Initialize the execution engine
execution_engine = AgentExecutionEngine()
# The execution engine handles agent-specific tasks and action lifecycles
# (Refer to the source code for detailed API usage)We welcome contributions to the Helix Collective ecosystem! Please see our GitHub repository for more details.
This project is licensed under the MIT License - see the LICENSE file for details.