Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(events): remove unused agent orchestration event variants

Steven Enamakelb59950406edb
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index 9797501f1c..02cd0a0448 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -125,35 +125,6 @@ pub enum DomainEvent {
agent_id: String,
question: String,
},
- /// High-level orchestration accepted a child agent for execution.
- AgentOrchestrationSpawned {
- session_id: String,
- orchestration_id: String,
- agent_id: String,
- parent_agent_id: Option<String>,
- },
- /// High-level orchestration observed a child agent completion.
- AgentOrchestrationCompleted {
- session_id: String,
- orchestration_id: String,
- agent_id: String,
- elapsed_ms: u64,
- output_chars: usize,
- iterations: usize,
- },
- /// High-level orchestration observed a child agent failure.
- AgentOrchestrationFailed {
- session_id: String,
- orchestration_id: String,
- agent_id: String,
- error: String,
- },
- /// High-level orchestration closed or cancelled a child agent.
- AgentOrchestrationClosed {
- session_id: String,
- orchestration_id: String,
- reason: Option<String>,
- },
// ── Run Queue ──────────────────────────────────────────────────────
/// A message was queued into the active-run queue instead of interrupting.
RunQueueMessageQueued {
@@ -1360,10 +1331,6 @@ impl DomainEvent {
| Self::SubagentCompleted { .. }
| Self::SubagentFailed { .. }
| Self::SubagentAwaitingUser { .. }
- | Self::AgentOrchestrationSpawned { .. }
- | Self::AgentOrchestrationCompleted { .. }
- | Self::AgentOrchestrationFailed { .. }
- | Self::AgentOrchestrationClosed { .. }
| Self::RunQueueMessageQueued { .. }
| Self::RunQueueFollowupDispatched { .. }
| Self::RunQueueInterrupted { .. }
@@ -1496,10 +1463,6 @@ impl DomainEvent {
Self::SubagentCompleted { .. } => "SubagentCompleted",
Self::SubagentFailed { .. } => "SubagentFailed",
Self::SubagentAwaitingUser { .. } => "SubagentAwaitingUser",
- Self::AgentOrchestrationSpawned { .. } => "AgentOrchestrationSpawned",
- Self::AgentOrchestrationCompleted { .. } => "AgentOrchestrationCompleted",
- Self::AgentOrchestrationFailed { .. } => "AgentOrchestrationFailed",
- Self::AgentOrchestrationClosed { .. } => "AgentOrchestrationClosed",
Self::RunQueueMessageQueued { .. } => "RunQueueMessageQueued",
Self::RunQueueFollowupDispatched { .. } => "RunQueueFollowupDispatched",
Self::RunQueueInterrupted { .. } => "RunQueueInterrupted",
@@ -1613,9 +1576,6 @@ impl DomainEvent {
| Self::SubagentCompleted { agent_id, .. }
| Self::SubagentFailed { agent_id, .. }
| Self::SubagentAwaitingUser { agent_id, .. }
- | Self::AgentOrchestrationSpawned { agent_id, .. }
- | Self::AgentOrchestrationCompleted { agent_id, .. }
- | Self::AgentOrchestrationFailed { agent_id, .. } => Some(agent_id.as_str()),
Self::ChannelMessageReceived { channel, .. }
| Self::ChannelConnected { channel, .. }
| Self::ChannelDisconnected { channel, .. } => Some(channel.as_str()),