pub struct RunOptions {Show 16 fields
pub max_tasks: Option<usize>,
pub approver: Option<Arc<dyn Approver>>,
pub progress: Option<Arc<dyn Progress>>,
pub parallel: usize,
pub lane: Option<String>,
pub cancel: Option<Arc<AtomicBool>>,
pub ignore_checklists: bool,
pub fresh_acceptance: bool,
pub allow_failing_baseline: bool,
pub run_grants: Arc<Mutex<Vec<Object>>>,
pub run_id: Arc<Mutex<RunId>>,
pub asked: Arc<Mutex<u32>>,
pub in_place: bool,
pub session: Option<Arc<Mutex<Session>>>,
pub bug_home: Option<Arc<NativeBug>>,
pub mode: RunMode,
}Expand description
How a run behaves beyond its configuration.
Fields§
§max_tasks: Option<usize>At most this many tasks in a feature run.
approver: Option<Arc<dyn Approver>>Who to ask inline when a call needs approval; without one,
the attempt stops and speccoder task approve decides.
progress: Option<Arc<dyn Progress>>Where live progress goes: the CLI’s printer.
parallel: usizeReady [P] tasks run at once, each in its own worktree; 0 or 1: one at a time.
lane: Option<String>Run the task in this lane’s worktree instead of the feature’s.
cancel: Option<Arc<AtomicBool>>Set by a person (an editor’s cancel): a feature run stops before its next task.
ignore_checklists: boolRun although the feature’s checklists have unchecked items; the override is recorded on every commit of the run.
fresh_acceptance: boolSet a task’s held or interrupted attempt aside and write its
acceptance tests anew (run --task T --fresh-acceptance).
allow_failing_baseline: boolAttempt although a check cannot run on the untouched code
(run --allow-failing-baseline); otherwise the run stops before any
model call (CHECK-BROKEN).
run_grants: Arc<Mutex<Vec<Object>>>Objects a person approved “for this run”: shared by every task (and
lane) of one speccoder run, gone with it.
run_id: Arc<Mutex<RunId>>The run: one per speccoder run from its fresh start; an
invocation that resumes a suspended attempt adopts that attempt’s.
Grants, the asking count and the batch are keyed by it.
asked: Arc<Mutex<u32>>Prompts the run has shown a person ([approvals] budget caps them).
in_place: boolRun in the person’s checkout on speccoder/<feature> instead of a
worktree (run --in-place).
session: Option<Arc<Mutex<Session>>>The in-place session the runtime opened for this run.
bug_home: Option<Arc<NativeBug>>Run a bug of the format’s own bug structure (no task list names it).
mode: RunModeHow the run asks for a person: Ask as today, or
Autopilot — nothing asks, a call that would is refused for the run
unless a grant in run_grants (the ones the person ticked) covers it.