Emit variable definitions before G-code in program text entries and use \$varName syntax for coordinate fields that have VariableRefs, so programs round-trip through NestWriter → NestReader without losing variable information. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>