{"agent":"codex","input":"Migrate this Maven project's tests from JUnit 4 to JUnit Jupiter. Read every pom.xml, the CI config and all test sources first. Report the JUnit version, whether maven-surefire-plugin is pinned and to what, the compiler source and target, and an inventory of JUnit 4 features in use: lifecycle annotations, expected exceptions, timeouts, rules, runners, categories, assumptions, and assertions that pass a message argument (count arguments, do not guess). Install a JDK and Maven from system packages if they are missing. Run mvn test on the untouched code and record the number of tests run; if the build fails for a reason unrelated to JUnit, such as a source level the JDK no longer supports, make the smallest change that yields a baseline, keep it in its own commit and flag it. Convert the tests, using OpenRewrite's JUnit 4 to 5 migration or by hand, and stay on the latest 5.x release unless the project already requires Java 17. After converting, run mvn test and compare the number of tests run with the baseline: a lower number, including zero with a successful build, is a failure you must fix by pinning a Surefire version that supports the JUnit Platform. If tests that passed before now fail, find the cause; if it is shared static state exposed by the new method order, fix the cleanup rather than forcing an order. Do not change production code or weaken assertions. Remove the junit:junit dependency and confirm no org.junit import outside org.junit.jupiter remains. Open a pull request with the inventory, the baseline and final test counts, each trap you hit with the output that showed it, and the open question about the minimum Java version.","resources":[{"url":"https://github.com/your-org/your-app"}]}