Expand description
Run command entrypoints and module wiring.
Responsibilities:
- Define the public
commands::runAPI used by CLI and UI clients. - Re-export stable types used across the crate (e.g.,
PhaseType).
Not handled here:
- Actual run loop implementation (see
run_loop). - Run-one orchestration (see
run_one). - Phase execution internals (see
phases). - Queue lock management (see
queue_lock). - Dry-run UX (see
dry_run).
Invariants/assumptions:
- Public entrypoint signatures must remain stable for CLI and interactive flows.
- All orchestration logic lives in submodules; this file is a thin facade.
Re-exports§
pub use crate::agent::AgentOverrides;pub use parallel::state::ParallelStateFile;pub use parallel::state::WorkerLifecycle;pub use parallel::state::WorkerRecord;pub use parallel::state::load_state;pub use parallel::state::state_file_path;
Modules§
- parallel
- Parallel run loop supervisor and worker orchestration for direct-push mode.
Structs§
Enums§
- RunOutcome
- Outcome of a single task run.
Functions§
- dry_
run_ loop - Dry-run selection for
ralph run loop --dry-run. - dry_
run_ one - Dry-run selection for
ralph run one --dry-run. - parallel_
retry - Retry a blocked or failed parallel worker.
- parallel_
status - Show status of parallel workers.
- run_
loop - run_one
- Run the first available todo task.
- run_
one_ parallel_ worker - Run a specific task as a parallel worker (acquires queue lock, allows upstream creation).
- run_
one_ with_ id - Run a specific task by ID.
- run_
one_ with_ id_ locked - Run a specific task when the queue lock is already held by the caller.