Skip to main content

Module executor

Module executor 

Source
Expand description

Form 3 — pipeline executor.

Threads the deterministic helpers through their stages first (parallel-where-independent), then dispatches the LLM stages with the shared-prefix prompt assembled in super::cache. Trust slots are resolved against the in-flight stage outputs and rendered into the LLM prompt verbatim, so the explicit-trust contract holds end- to-end.

Structs§

ExecutionTrace
Full execution trace returned by IngestExecutor::run.
IngestExecutor
The orchestrator. Walks a Pipeline start-to-finish, runs helpers up front (parallel-where-independent), threads outputs into LLM stages with explicit-trust slots, and returns an ExecutionTrace.
MockLlmDispatch
Deterministic mock dispatch used by the test suite and the cookbook demo. Pops canned responses off a queue; returns Err("mock: queue exhausted") once empty so tests catch over-call bugs.
OllamaDispatch
Production binding to the project’s OllamaClient::generate. Wraps the existing breaker / timeout discipline.

Enums§

ExecutorError
Structured error surface for the executor.
StageOutcome
Per-stage trace entry produced by the executor.

Constants§

DEFAULT_MULTISTEP_MAX_CONTENT_CHARS
Default cap on the number of characters of content inlined into a single Form 3 multistep-ingest LLM stage (issue #782 PERF-11). Mirrors the synthesis-prompt cap from Cluster B (PERF-7); operators override per-namespace via [crate::models::GovernancePolicy::multistep_max_content_chars].

Traits§

LlmDispatch
LLM dispatch trait — abstracted so tests can wire a deterministic mock while production binds to OllamaClient::generate via OllamaDispatch.