Plan simplification: dropped the broken middle elif heuristic that had unbalanced shell expression. Kept clean two-step fallback: .template suffix first, bare filename second. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>