Skip to main content

fix_prompt

Function fix_prompt 

Source
pub fn fix_prompt(fix_type: FixType, phase: PhaseId) -> String
Expand description

Build a fix prompt used on Code → Validate loop-backs.

Both arms that dispatch to execute-phase carry [AUTO_CHAIN_PRESERVING_FLAG], for the same reason the Code prompt does: they reach execute-phase.md’s sync-clear step, and without the token that step wipes the chain flag DevFlow just set. The --gaps-only loop is named explicitly by ROADMAP criterion 1 — a fix pass gets exactly the same treatment as the first Code pass, or the phase’s unattended behaviour changes the moment validation reports a gap.

AuditFix is deliberately left alone: it routes to /gsd-audit-fix, never reaches execute-phase.md, and so never meets the sync-clear step.

Flag ORDER within the command string does not matter — GSD extracts ---prefixed tokens position-independently (references/phase-argument-parsing.md).