Module events

Module events 

Source
Expand description

SSE event types emitted during an orchestrator run.

CouncilEvent is the single source of truth for the wire format shared by the Axum SSE handler, the CLI consumer, and the TypeScript frontend types.

Serialisation uses the same {"type":"variant_name", ...} envelope as [gglib_core::AgentEvent] and CouncilEvent so frontend event handlers stay consistent.

§Event lifecycle

PlanProposed → [PlanApproved | PlanRejected]
  → NodeStarted* → NodeTextDelta* → NodeToolCall* → NodeComplete*
  → SynthesisStart → SynthesisTextDelta* → SynthesisComplete
  → CouncilComplete

Error paths emit CouncilEvent::NodeFailed or CouncilEvent::CouncilError and then the stream closes.

Structs§

AgentStance
The final stance outcome for a single debating agent.

Enums§

ApprovalKind
Describes what the human-in-the-loop gate is waiting for approval on.
CouncilEvent
A single event in an orchestrator execution stream.
StanceOutcome
How a debating agent’s position changed over the course of a debate.

Constants§

COUNCIL_EVENT_CHANNEL_CAPACITY
Channel capacity for the orchestrator event sender.