Read HTML comments in “Key Challenges” and “Upgrade Steps” sections of plan.md to understand rules and expected format
For incompatible deps, prefer: Replacement > Adaptation > Rewrite
Finalize “Available Tools” section based on the planned step sequence
Design step sequence:
Step 1 (MANDATORY): Setup Baseline — run compile/test with current JDK, document results
Steps 2-N: Upgrade steps — dependency order, high-risk early, isolated breaking changes. Compilation must pass (both main and test code); test failures documented for Final Validation.
Final step (MANDATORY): Final Validation — verify all goals met, all TODOs resolved, achieve Upgrade Success Criteria through iterative test & fix loop.
Identify high-risk areas for “Key Challenges” section
Verify all placeholders filled in plan.md, check for missing coverage/infeasibility/limitations
Revise plan as needed for completeness and feasibility; document unfixable limitations in “Plan Review” section
Ensure all sections of plan.md are fully populated (per Template compliance rule) and all HTML comments removed
After plan generation, proceed directly to execution — create .github/java-upgrade/{RUN_ID}/progress.md from the Progress Template, replace placeholders, and begin execution. Log the migration plan, then proceed without pausing for confirmation.