Before: `let templateId = ''` 在 try 块内部声明, catch 闭包内不可见
→ TS2304 Cannot find name 'templateId' (4 处)
→ 实际语义错位 (catch 块没法 cleanup 残留 template)
After: `let templateId` 在 async 回调体作用域声明 (try 之前)
→ catch 通过闭包可见
→ 测试通过后强制走主分支质量门