Expand description
The TurnStep seam: a small, ordered set of composable steps the turn loop
drives, each owning one cohesive slice of turn behavior.
Slice 2 of #649 introduces the seam and proves it by migrating exactly one
behavior out of the turn-loop monolith — the forced closing completion. The
turn function’s post-loop tail is now a driver over a list of
TurnSteps; later slices migrate the remaining stanzas behind the same
interface.
A step reads and mutates the turn’s working state through a TurnCtx and
reports back with a StepOutcome (keep going, pause for a human, or end
the turn early).
Structs§
- Circuit
Breaker - The denied-action circuit breaker.
- Forced
Completion - The forced closing completion.
- Question
Resume PrePass - Resolves dangling
ask_questioncalls once their answers have arrived (#1660). - Resume
PrePass - The approval resume pre-pass: resolve the tool calls a human already decided.
- TurnCtx
- The turn’s working state, threaded through each
TurnStep.
Enums§
- Step
Outcome - What a
TurnStepreports after running.
Traits§
- Turn
Step - One cohesive slice of turn behavior the turn loop drives.