From 9297eddab93b84b762024a806c682df774131424 Mon Sep 17 00:00:00 2001 From: squid-protocol Date: Sat, 29 Aug 2026 17:05:19 -0400 Subject: [PATCH 1/2] fix(powershell): shield @"..."@ here-strings; close final 3 ledger shapes tri-comparison-ledger-sweep remaining-shapes pass. Every reproducing discrepancy shape in docs/self_scan/tri_comparison_ledger.json is now `status: validated` (was 3 unvalidated, count 1 each). #2450 -- PowerShell here-string false positive (engine defect, fixed). `Write-Output @"namespace ... enum ProviderType { ... }"@` in PowerToys/generate-interface.ps1: PowerShell's `embedded_syntax` lexical family strips only `#` / `<# #>`, and prism.py had no here-string handling in the code_stream path, so `class_start` matched `enum ProviderType` inside the string. Added `_strip_powershell_herestrings` to `_strip_segment_comments` pre-processing (blanks `@"..."@` / `@'...'@` bodies, newline-count preserving, captures to the doc stream -- same idiom as `_strip_python_docstrings` / `_strip_php_string_mass`). powershell class precision 90.0% -> 100.0% (extra_classes 1 -> 0); baseline + both golden masters regenerated (the diff is .ps1 files reclassifying here-string mass from code LOC to doc LOC, plus ripple). #2451 -- tri_comparison_gatherer.py's tree-sitter walk now injects the css/javascript grammar for HTML `