Skip to main content

Module event_bus

Module event_bus 

Source
Expand description

Event bus: inter-agent communication via oxi_sdk::EventBus<KernelEvent>.

The event bus is the “pipe” of Oxios. All agents communicate through kernel events published on the bus.

After RFC-014 Phase C, this module no longer owns the broadcast channel — it reuses oxi_sdk::EventBus<E>, which is a generic wrapper over tokio::sync::broadcast. The only Oxios-specific bits are:

  • KernelEvent enum (oxios-internal event vocabulary)
  • kernel_event_to_audit_action mapping for the audit trail
  • attach_audit_trail helper (subscribes the bus to the trail)

Enums§

KernelEvent
Events that flow through the kernel event bus.

Functions§

attach_audit_trail
Subscribe the audit trail to all kernel events.
kernel_event_to_audit_action
Convert a KernelEvent to an AuditAction for the audit trail.

Type Aliases§

EventBus
Kernel event bus — generic SDK bus specialised for KernelEvent.