Event Bus¶
Async pub/sub event system with wildcard support.
Lightweight async pub/sub event bus for decoupling system components.
The EventBus is the primary mechanism for loose coupling between the orchestrator, hook engine, and notification subsystem. Components subscribe to named event types (e.g., "task_completed", "agent_failed") and receive async callbacks when those events are emitted.
A special wildcard subscription ("*") receives every event regardless of type. The hook engine uses this to evaluate all events against its trigger conditions without needing individual subscriptions per event type.
See specs/event-bus.md for the full specification.