Implements the CodeAttack technique from Ren et al. for Microsoft’s AI red-teaming framework, across Python stack, list and string variants plus C++ and Go. Two and a half months of review across 43 review comments, 19 commits and 19 files. Review caught real bugs: json.dumps emitting lone surrogate escapes that Go and C++ reject, synchronous YAML loading inside an async method, machine-dependent absolute-path identifiers, and custom templates locked to one encoding. A language-aware escaper replaced json.dumps, template loading moved into the constructor, and the tests grew from 31 to 88. The architecture changed mid-review: I argued it needed its own attack class mirroring FlipAttack, and the senior maintainer decided otherwise, so it landed as a converter.
Open PR #1960 on Microsoft PyRIT ↗