$ the-wire · showcase
Guard stops rejecting Codex policy files that start with a UTF-8 BOM
By RepoJournal · Filed · About Agent Security · Composed from the cited sources · methodology
snyk/agent-scan's Guard now round-trips UTF-8 BOMs in managed Codex requirements.toml files and decodes managed policy status as UTF-8, so policies edited on Windows or by other tooling no longer block install and uninstall.
Merge pull request #576 from snyk/fix/guard-preserve-toml-bom snyk/agent-scan
Merged as [ADS-1632], this is the change operators will notice: Guard previously rejected a managed Codex requirements.toml that opened with a UTF-8 byte-order mark, and now separates the BOM before parsing and editing, then restores it on write so install and uninstall keep the BOM along with your existing policy text and line endings.
fix(guard): read managed codex status as utf-8 snyk/agent-scan
Managed Codex status is now read through the same requirements reader as the rest of the policy handling, so it decodes consistently and reports invalid UTF-8 with the offending file path instead of failing opaquely.
[ADS-1632] Preserve UTF-8 BOM in managed Codex TOML snyk/agent-scan
The underlying fix behind the merge, covering the BOM guard and the install and uninstall paths that retain the BOM; write path is unchanged, still Guard's existing atomic replacement with backups.