Expand description
Task initialization — guard checks, worktree setup, and invocation building.
Extracted from runner/mod.rs. Contains the first phase of run():
guard checks, worktree creation, context building, and prompt assembly.
Structs§
- Task
Init Result - Result of task preparation: everything needed to run an agent session.
Enums§
- Guard
Outcome - Outcome of the guard check.
Functions§
- build_
pseudo_ task - Build a minimal
ExternalTaskfrom store state for prompt building. - check_
guards - Check task guards and return the outcome.
- prepare_
task - Prepare the full task: set up worktree, build context and prompts, create invocation.