Gate upgrade reminder rules with agentUpgrade (#99990)
### Why? Agents can reject Next.js upgrade reminders as instructions from build output or omit the notice after completing the original task. Upgrade delegation should follow the existing `experimental.agentUpgrade` policy independently of documentation and feedback rules. ### How? Add a separate managed `nextjs-agent-upgrade` block to `AGENTS.md`. Enabled policies generate it for detected agents; `agentUpgrade: false` removes it during `next dev`, preserving other instructions. Include the block in default create-next-app projects and preload the installed candidate's upgrade block in nudge fixtures while keeping `agentRules: false`. Validation: 14 generator unit tests, 16 dev lifecycle integration tests, and 3 create-next-app AGENTS.md tests passed; Next.js/create-next-app builds and ESLint passed. Fresh-head upgrade evals are pending; CLI reminders, user prompts, and judges are unchanged. <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment