Measure AI upgrade nudges, handoffs, and completion (#99465)
> [!TIP] > Recommended to review commit by commit with "Hide whitespace" enabled. ### Why? Measure how often humans and agents receive upgrade nudges, start AI upgrades, and finish them. ### How? Record the configured policy, shown nudges, human decisions, AI upgrade runs, CLI results, and agent results through existing Next.js telemetry. Existing telemetry opt-out settings apply. `next upgrade --ai` prepares an upgrade prompt and hands it to an agent. The prompt asks the agent to run `next internal report-ai-upgrade <run-id> success|failure` after completing the upgrade and verification. The run ID links this report to the original upgrade run. Completion reporting depends on the agent following that instruction. A missing report means unknown, not failure. The prompt does not instruct the agent to hide reporting or require it to mention the telemetry submission to the user. The reporting command suppresses the normal telemetry notice. Closes NAR-938
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment