Expand description
WhiteMagic v5 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::DispatchPipeline;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).