mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
* fix(posting-guard): remove, count and flag Unicode tag characters The invisible-character set covered zero-width, bidi, soft hyphen and BOM but not U+E0000-U+E007F, the "tags" block: one invisible code point per ASCII character, which renders as nothing and is read by a model as the ASCII it mirrors. A posting carrying "Ignore all previous instructions" written in that block got the clean verdict through the documented --text --json call, and the characters survived into the cleaned text the agent reads; a single tag character inside "ignore" also split the word past every instruction pattern. Strip the block with the other invisibles, count it under invisible_chars.tag, and always raise the warning, because no legitimate posting contains one. Two new cases; both fail on master. * changelog: place the #702 entry under [Unreleased] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>