Pin the current behavior of untested code with agent-generated golden-master tests, so refactoring finally has a tripwire.
Part of: Legacy Code with AI: Understand, Modernize, Migrate