Skip to main content

/fix — Fix-Review Loop

Resolve FIX-FIRST gaps from /review. Dispatch a fix subagent, re-review, repeat up to 2 loops, then escalate.

When to Use

  • /review returned a FIX-FIRST verdict with CRITICAL or HIGH gaps
  • Orchestrator hands off unresolved gaps after execution review

Flow

  1. Parse gaps — extract gap list from FIX-FIRST verdict (severity, files, failing checks).
  2. Dispatch fixer — send gaps + original wish criteria to fix subagent.
  3. Re-review — dispatch review subagent to validate the fix.
  4. Evaluate verdict:
  1. Escalate (if needed) — mark task BLOCKED, report remaining gaps.

Escalation Format

Dispatch

Fix and re-review are separate dispatches — never combined in one subagent.

Task Lifecycle Integration

When a PG task exists for the work being fixed, each fix attempt is logged as a task comment: Task integration is graceful — if no PG task exists, fix loop logging is skipped.

Rules

  • Never fix and review in the same session — always separate subagents
  • Never exceed 2 fix loops — escalate, don’t spin
  • Include original wish criteria in every fix dispatch
  • If identical gaps persist across loops, escalate immediately