Zero-width characters occupy no visible horizontal space when rendered. In AI configuration files, flag them as non-printable Unicode that may have no legitimate purpose in plain text. section 4.5.1
Apply these safeguards to AI configuration files:
- Use regex checks in an editor or CI pipeline to flag non-printable Unicode. section 4.5.1
- Strip non-printable characters from external configuration files with tools such as cat -v, sed, or a Unicode sanitizer. section 4.5.1
- Require security-aware review for changes to agent instructions; use CODEOWNERS or an equivalent to require internal approval of outside contributions. section 4.5.1
