mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-15 23:35:17 +03:00
dc4ffa1fc8
Third victim of thed155086single-quote regression that037062cmissed. Both <Form> header emissions at lines 1130 and 1140 used `X '...version="$($script:formatVersion)"...'` — single-quoted, so the literal text `$($script:formatVersion)` landed in the output XML instead of the detected version number. The bug was masked for a week because: 1. form-compile runner tests weren't rerun against the broken script afterd155086(snapshots still showed the pre-regression `version="2.17"` hardcode) 2. verify-snapshots was already red on form-compile for other reasons (P2 XDTO errors in some cases), so nobody noticed the wholesale script breakage 3. The .py port uses an f-string and was never broken Found while auditing whether037062cwas complete — the earlier grep for `'...\$formatVersion...'` single-line patterns had missed this because `$($script:formatVersion)` is a subexpression-in-string form that wasn't in the grep pattern. Fix: convert both X calls to double-quoted strings with backtick- escaped inner quotes, matching the037062cpattern for role-compile/subsystem-compile. Same approach, same precedent. Bumped form-compile.ps1 v1.2→v1.3. Verification: - runner --filter form-compile (PS1): 0/10 → 10/10 - runner --filter form-compile --runtime python: 10/10 (dual-port clean) - verify-snapshots --skill form-compile: surfaced from fully-masked to 9/10 (only catalog-form still fails — real P2 XDTO issue, not \$formatVersion) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>