Expand description
Canonical single-unit mana worker runtime.
Provides the reusable substrate for executing one mana unit: loading the unit via canonical mana-core APIs, assembling execution context (task prompt, prefill, dependency summaries), and reporting structured outcomes.
This module is consumed by:
imp run <unit-id>(imp-cli) — the preferred single-unit CLI path- legacy
mana runcompatibility flows — transitional dispatch into imp workers - imp’s native mana tool — the first-class orchestration UX
§Architecture
imp native mana tool = first-class orchestration UX
imp run (this module) = canonical single-unit worker runtime
legacy mana run compatibility = transitional parallel dispatch into imp workersRe-exports§
pub use crate::contracts::worker::WorkerAssignment;pub use crate::contracts::worker::WorkerAttempt;pub use crate::contracts::worker::WorkerResult;pub use crate::contracts::worker::WorkerStatus;
Structs§
Functions§
- assemble_
prefill - Assemble context prefill messages from the assignment’s file references.
- build_
task_ context - build_
task_ prompt - Build a task prompt string from a worker assignment.
- finalize_
worker_ run - load_
assignment - Load a worker assignment from a mana unit using canonical mana-core APIs.
- load_
assignment_ with_ mana_ dir - Load a worker assignment with an explicit mana dir override.
- prepare_
worker_ run - run_
worker_ assignment