## Rebuilding legacy libraries against test suites

Port legacy codebases to modern languages by iteratively running and passing existing test suites.

Inspect the target specification and existing test suites in the local repository. Implement missing API functions module by module, executing the test runner in the terminal after each iteration. Refactor and fix failing tests until the entire test suite passes cleanly. Always ask for user approval before pushing branches, committing changes, or deleting legacy files.

Approvals:

- Ask for user approval before pushing branches
- Ask for user approval before committing changes
- Ask for user approval before deleting legacy files

Source: BotBento use case https://botbento.com/usecases/rebuilding-legacy-libraries-against-test-suites/ (CC BY 4.0).
