pub enum AgentEvent {
Show 29 variants
TaskStatusChanged {
node_id: String,
status: NodeStatus,
},
PlanGenerated(TaskPlan),
EnergyUpdated {
node_id: String,
energy: f32,
},
Log(String),
NodeCompleted {
node_id: String,
goal: String,
},
ApprovalRequest {
request_id: String,
node_id: String,
action_type: ActionType,
description: String,
diff: Option<String>,
},
Complete {
success: bool,
message: String,
},
Error(String),
PlanReady {
nodes: usize,
plugins: Vec<String>,
execution_mode: String,
},
NodeSelected {
node_id: String,
goal: String,
node_class: String,
},
FallbackPlanner {
reason: String,
},
VerificationComplete {Show 15 fields
node_id: String,
syntax_ok: bool,
build_ok: bool,
tests_ok: bool,
lint_ok: bool,
diagnostics_count: usize,
tests_passed: usize,
tests_failed: usize,
energy: f32,
energy_components: EnergyComponents,
stage_outcomes: Vec<StageOutcome>,
degraded: bool,
degraded_reasons: Vec<String>,
summary: String,
node_class: String,
},
BundleApplied {
node_id: String,
files_created: Vec<String>,
files_modified: Vec<String>,
writes_count: usize,
diffs_count: usize,
node_class: String,
},
SensorFallback {
node_id: String,
stage: String,
primary: String,
actual: String,
reason: String,
},
DegradedVerification {
node_id: String,
degraded_stages: Vec<String>,
stability_blocked: bool,
},
EscalationClassified {
node_id: String,
category: String,
action: String,
},
SheafValidationComplete {
node_id: String,
validators_run: usize,
failures: usize,
v_sheaf: f32,
},
GraphRewriteApplied {
trigger_node: String,
action: String,
nodes_affected: usize,
},
BranchCreated {
branch_id: String,
node_id: String,
parent_node_id: String,
},
InterfaceSealed {
node_id: String,
sealed_paths: Vec<String>,
seal_hash: String,
},
BranchFlushed {
parent_node_id: String,
flushed_branch_ids: Vec<String>,
reason: String,
},
DependentUnblocked {
child_node_id: String,
parent_node_id: String,
},
BranchMerged {
branch_id: String,
node_id: String,
},
ContextDegraded {
node_id: String,
budget_exceeded: bool,
missing_owned_files: Vec<String>,
included_file_count: usize,
total_bytes: usize,
reason: String,
},
ContextBlocked {
node_id: String,
missing_owned_files: Vec<String>,
reason: String,
},
StructuralDependencyMissing {
node_id: String,
dependency_node_id: String,
reason: String,
},
ModelFallback {
node_id: String,
tier: String,
primary_model: String,
fallback_model: String,
reason: String,
},
ProvenanceDrift {
node_id: String,
missing_files: Vec<String>,
reason: String,
},
ToolReadiness {
plugins: Vec<PluginReadiness>,
strictness: String,
},
}Expand description
Events emitted by the Orchestrator for TUI consumption
Variants§
TaskStatusChanged
Task status changed
PlanGenerated(TaskPlan)
Plan generated by Architect
EnergyUpdated
Lyapunov energy updated
Log(String)
Log message for display
NodeCompleted
Node completed successfully
ApprovalRequest
Approval required before proceeding
Fields
action_type: ActionTypeComplete
Orchestration finished
Error(String)
Error occurred
PlanReady
PSP-5: Plan ready after sheafification with detected plugins and execution mode
NodeSelected
PSP-5: Node selected for execution
FallbackPlanner
PSP-5: Deterministic fallback planner activated
VerificationComplete
PSP-5: Verification completed for a node
Fields
energy_components: EnergyComponentsPSP-5 Phase 7: Full energy component breakdown
stage_outcomes: Vec<StageOutcome>PSP-5 Phase 7: Per-stage verification outcomes with sensor status
BundleApplied
PSP-5: Artifact bundle applied to workspace
Fields
SensorFallback
PSP-5 Phase 4: A sensor fell back to an alternative tool
DegradedVerification
PSP-5 Phase 4: Verification completed with degraded stages
EscalationClassified
PSP-5 Phase 5: Non-convergence classified with a repair action
SheafValidationComplete
PSP-5 Phase 5: Sheaf validation completed for a node
GraphRewriteApplied
PSP-5 Phase 5: Graph rewrite applied (split, interface insertion, replan)
BranchCreated
PSP-5 Phase 6: Provisional branch created for speculative child work
InterfaceSealed
PSP-5 Phase 6: Interface sealed for a node (dependents may proceed)
BranchFlushed
PSP-5 Phase 6: Provisional branches flushed due to parent failure
DependentUnblocked
PSP-5 Phase 6: Blocked dependent unblocked after parent seal
BranchMerged
PSP-5 Phase 6: Provisional branch merged into committed state
ContextDegraded
PSP-5 Phase 3: Context assembly degraded (budget exceeded or missing artifacts)
Fields
ContextBlocked
PSP-5 Phase 3: Context blocked — required structural context is untrustworthy. The node SHALL NOT proceed silently (PSP-5 §3 requirement).
StructuralDependencyMissing
PSP-5 Phase 3: Structural dependency pre-check failed — a required dependency only has prose summaries, no machine-verifiable digests.
ModelFallback
PSP-5 Phase 1/4: Model fallback triggered for a tier after structured-output failure
ProvenanceDrift
PSP-5 Phase 3: Context provenance drift detected on resume
ToolReadiness
PSP-5 Phase 4: Tool readiness snapshot captured at session start
Fields
plugins: Vec<PluginReadiness>Per-plugin readiness: (plugin_name, available_stages, degraded_stages, lsp_status)
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more