Skip to main content

Module runtime

Module runtime 

Source
Expand description

Activity dispatch and task-serving loops. Worker activity dispatch runtime support.

Re-exports§

pub use agent::ActivityEventSender;
pub use agent::ControlMessage;
pub use agent::ControlReceiver;
pub use agent::harness_error_to_outcome;
pub use agent::spawn_agent;
pub use agent::spawn_dyn_agent;
pub use dispatch::TypedActivityDispatcher;
pub use dispatch::decode_payload;
pub use dispatch::encode_payload;
pub use intervention::ControlRegistry;
pub use intervention::SessionGuard;
pub use intervention::SessionKey;
pub use loop_::ActivityDispatcher;
pub use loop_::DispatchOutcome;
pub use loop_::NoShutdown;
pub use loop_::ServeEnd;
pub use loop_::SessionHealth;
pub use loop_::serve_activity_tasks;
pub use loop_::serve_activity_tasks_until;

Modules§

agent
Harness-blind trait driver (NOI-4): spawn_agent drives any AgentHarness. The harness-blind trait driver: spawn_agent drives ANY [AgentHarness] generically (NOI-4, §3A.1).
dispatch
Typed activity dispatch and payload conversion helpers. handler invocation, payload decode/encode, failure classification
intervention
Worker-side mid-run intervention delivery (NOI-6): the attempt back-index that routes a pushed neutral command to the live session that owns its target. Worker-side mid-run intervention delivery (NOI-6).
loop_
Activity polling loop and shutdown primitives. receive->dispatch->report worker loop + bounded concurrency