Expand description
Dispatch pipeline — the request processing chain.
Pipeline order:
- Effect check — brain-wave compatibility (zero-cost, inline)
- Dharma gate — ethical governance verdict
- Resource rules — write/spawn/network budgets, novelty, human review
- Rate limit — sliding window per-tool + global
- Circuit breaker — fault tolerance, fast-fail on repeated errors
- Tool call — execute the tool (optionally bounded by a dispatch timeout). Secret-scan sampling (6b) runs right after a successful call: warn-only credential-shape scan, deterministic 1-in-N, content never logged (P-PROV-5/B(c)).
- Karma record + write-audit journal — declared vs actual effects (confirm-gated dispatches record the confirm — the delete-confirm audit)
- Stats — success/failure and latency tracking
Between 4 and 5 sits the firebreak (fix-queue P1.4+P1.6): the explicit
confirm: true gate for destructive tools, the promoted Jan-11
forbidden-command veto, the bulk-scope law, and advisory disclosure.
Structs§
- Dispatch
Pipeline - The dispatch pipeline processes tool calls through governance, rate limiting, circuit breaking, and karma tracking before and after the actual tool execution.
Constants§
- DEFAULT_
DISPATCH_ TIMEOUT - Default dispatch timeout (300s) applied by [
DispatchPipeline::from_env] whenWM_DISPATCH_TIMEOUT_MSis unset.