← docsCode Quality

/thermo-fix

Evidence-based fixes for review findings.

Runs the thermo-nuclear review on changed files (git diff scope) and applies fixes. Each fix references the finding it resolves. Does not touch files outside the diff.

Category

Code Quality

Execution

Review → batch fixes → verify

Goal

Resolve code quality findings by applying evidence-based fixes that each reference the issue they address.

Scope

Applies to

  • +Files changed in current git diff
  • +Findings from thermo-nuclear review

Does not cover

  • Files outside the diff
  • Architectural refactors (use radioactive)

Triggers

"Fix review findings""Apply thermo fixes"Phase 9 of radioactive

Inputs

  • Findings table from review
  • Git diff scope
  • maxFixAttempts (default: 3)

Invariants

  • 01Never modify files outside the diff
  • 02Every fix references the finding ID
  • 03Build must pass after each fix batch

Procedure

  1. Step 1Read findings table from review
  2. Step 2Filter to Blocker and High findings
  3. Step 3Apply fixes in batch, each referencing finding ID
  4. Step 4Run build verification
  5. Step 5Re-review modified files
  6. Step 6Repeat until zero Blocker/High or maxFixAttempts reached

Outputs

  • Fixed files with reference to finding IDs
  • Updated review verdict
  • Build verification result

Review Gate

  • [ ]Zero Blocker findings remaining
  • [ ]Zero High findings remaining
  • [ ]Build passes
  • [ ]Every fix references its finding