I have the agent inject comments that mention that this particular code is legacy and must not be used as a reference, should not be cleaned up, etc. If you have a document that lists all of the reasons not to use or touch some code, the comments can simply be references to it.
// LEGACY CODE, per docs/legacy_rules.md §14, §19
Thanks for the tip. I’ll try that out.