{# ============================================================================ #}
{# Template: fix_mode_fallback.txt                                               #}
{# Version: 1.0                                                                  #}
{# ============================================================================ #}
{#                                                                             #}
{# PURPOSE:                                                                    #}
{#   Fallback prompt for fix mode when main template fails to render.           #}
{#   This is a minimal fallback to ensure the system continues working.         #}
{#                                                                             #}
{# WHEN USED:                                                                  #}
{#   During fix mode when the main fix_mode.txt template fails to render.      #}
{#                                                                             #}
{# TRIGGER:                                                                    #}
{#   Template rendering error in prompt_fix().                                  #}
{#                                                                             #}
{# VARIABLES:                                                                  #}
{#   PROMPT   - Content from PROMPT.md with task context                        #}
{#   PLAN     - Content from PLAN.md with implementation plan                    #}
{#                                                                             #}
{# OUTPUT:                                                                     #}
{#   Structured output with completion status                                    #}
{#                                                                             #}
{# NOTES:                                                                      #}
{#   This is a GRACEFUL FALLBACK when template system has issues              #}
{# ============================================================================ #}

FIX MODE

Read the ISSUES content below and fix the issues found.

Context:

PROMPT:
{{PROMPT}}

PLAN:
{{PLAN}}

ISSUES:
{{ISSUES}}

FILES TO MODIFY:
{{FILES_TO_MODIFY}}

CRITICAL CONSTRAINTS:
- The ISSUES content is ALREADY PROVIDED above in this prompt - review it carefully
- You MUST ONLY modify files listed in "FILES TO MODIFY" (if specific files are listed)
- If "FILES TO MODIFY" shows no specific files, you may work on ANY files in the repository that are needed to fix the issues described in the ISSUES content above
- You MUST read the files you need to modify before editing them
- You MUST NOT explore the codebase or run discovery commands (ls, find, git grep, rg, grep, etc.) unless necessary to locate the files you need to modify
- You MUST NOT modify ISSUES.md or any issues file - the content is provided for reference
- Your work MUST be limited to fixing issues described in the embedded ISSUES content above

IMPORTANT: You are in FULL AUTO mode and have permission to:
- Read files using whatever tools you have available
- Apply patches, edits, or any modifications needed to fix the issues
- Make all necessary changes without asking for confirmation
- The yolo flag is enabled, which grants you permission to use file editing tools directly
