Refine
- Call
haiku_intent_listto find the active intent. - Use
ask_user_visual_questionto ask what to refine: intent-level spec, specific unit, or upstream stage output. - For stage-scoped refinement: use
haiku_studio_stage_getandhaiku_unit_listto read current state. Create new units viahaiku_unit_writefor the additional work — do NOT mutate completed units (forward-only invariant). The cursor picks up new units automatically (units with emptyiterations[]are wave-ready). - To target specific approvals for re-run, log a
haiku_feedbackfinding withtargets.invalidates: [<role>]against the affected unit. The terminal fix-hat clears those approvals on closure and the cursor reroutes through them. - Call
haiku_run_nextto drive the lifecycle.