Skip to main content

Crate wm_dispatch

Crate wm_dispatch 

Source
Expand description

WhiteMagic dispatch — tool routing pipeline

Replaces the v2 Python 22-stage middleware chain (~200µs/call) with a Rust trait-based pipeline (~2µs/call).

Re-exports§

pub use circuit_breaker::BreakerConfig;
pub use circuit_breaker::BreakerState;
pub use circuit_breaker::CircuitBreaker;
pub use circuit_breaker::CircuitBreakerRegistry;
pub use composition::CompositionConfig;
pub use composition::CompositionPattern;
pub use composition::CompositionTracker;
pub use flight::FlightEntry;
pub use flight::FlightRecorder;
pub use pipeline::AuthorityDispatch;
pub use pipeline::DispatchPipeline;
pub use pipeline::PassBudget;
pub use pipeline::PassEvidence;
pub use pipeline::PassGate;
pub use pipeline::PassMode;
pub use pipeline::PassQuotas;
pub use pipeline::ReceiptDispatchHook;
pub use rate_limiter::RateLimiter;
pub use rate_limiter::RateLimiterConfig;
pub use rate_limiter::SlidingWindow;
pub use registry::ToolRegistry;
pub use registry::ToolRegistryBuilder;
pub use speculative::CheckResult;
pub use speculative::SpeculativeExecutor;
pub use speculative::ValidationResult;
pub use subprocess_sandbox::SubprocessSandbox;

Modules§

capability_gate
Dispatch-side capability authorization (PLAN_F F-1, dispatch half).
circuit_breaker
Circuit Breaker — Stoic resilience for tool dispatch.
composition
Tool Composition Discovery — analyzes dispatch sequences to find common patterns.
flight
Q35b flight recorder — opt-in dispatch payload capture (JSONL sidecar).
pipeline
Dispatch pipeline — the request processing chain.
rate_limiter
Atomic sliding-window rate limiter for tool dispatch.
registry
Tool registry — maps Gana → tools and provides lookup.
sandbox_exec
Scoped-thread sandbox executor — the Landlock v1 per-tool pathway.
secret_scan
Output credential-shape sampling — warn-only secret-exposure tripwire.
speculative
Speculative Execution Validator — pre-validates outputs before dispatch.
subprocess_sandbox
B2 — subprocess spawn sandbox registry.
write_gate
Write gate — V8 S5 stage 2c (MEMORY_TYPOLOGY_V8.md §3).