PS 5.1 BASELINE (stable)

- .ps1 MUST be UTF-8 with BOM (or pure ASCII) to avoid parser issues.
- No ternary operator ?:. Replace with if/else.
- No Select-String -Recurse (PS5.1 does not support it). Loop files via Get-ChildItem.
- UNC-only: do not rely on mapped drives. Local staging: C:\Temp_Gouvernance.
- Use .cmd wrappers (ASCII) and powershell.exe -ExecutionPolicy Bypass for UNC scripts.
- Normalize typographic quotes/dashes/nbsp to ASCII when fixing scripts.
- Do not pass arrays to Join-Path -ChildPath; join segment-by-segment.
- Boot-pack must contain [BOOT-PACK], [BUG_KB_JSON], [POLICY].
- All writes via SAFE-WRITE (tmp + sha256 footer + backup).
- Before heavy writes on UNC, perform a lightweight health check (temp write + hash).

--- DOC-VERSION-FOOTER ---
Generated: 2025-10-18T20:28:56+02:00
SHA-256: 5109d75ba62df1b6e9a9ebb529fc6eeea6f44f53a2dfed4ea37cfc2b666dcdd9
Policy: TXT-ONLY v1.0; SAFE-WRITE v1.1; GOV_SCRIPT_GATE v1.3
Source: GOV_RULES_SEED_v1.0
