Skip to content

Add verified Next.js 15 to 16 migration pack - #114

Merged
lucasbraum merged 3 commits into
mainfrom
feat/next-16-pack
Oct 14, 2026
Merged

lucasbraum merged 3 commits into
mainfrom
feat/next-16-pack

Conversation

@lucasbraum

@lucasbraum lucasbraum commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Next 15 → 16 now has a verified pack against two public upgrade baselines. Rebased on main 6f67430 after the 0.11.2 release; no GitHub “Update branch” merge was used.

Addresses UPT-6.

Uses the released engine APIs:

  • releaseGroup: installed eslint-config-next, @next/eslint-plugin-next, @next/bundle-analyzer, @next/mdx and @next/third-parties move with Next even without a dependency edge.
  • requiresBuild: a missing/failing consumer build blocks migration publication. A successful pack test is not evidence that a consumer migration build passed.
  • Scoped inventory: root next.config.{js,mjs,ts,cjs}, root/src middleware.{ts,js}, package scripts and route default files, independent of imports.
  • Transactional middleware → proxy rename plus scope-aware function rename, anchored at the OLD filename. Only explicit static Node runtime configs are rewritten (removing the runtime option for proxy); default Edge, explicit Edge and dynamic runtimes are declined. Middleware type imports and ambiguous exports remain assisted. Static exported next.config eslint blocks are removed; executable values and computed keys are declined.
  • Fixture harness supports optional filename.txt for convention-sensitive rules, avoiding production exceptions for fixture paths. No migration-engine implementation changes.

The existing ground-truth.json is byte-for-byte unchanged (git blob 4f9b2278227a45d311d1f82d33e110002f05c8ff).

Public baseline Upgrade Overall TP / FP / FN Companions observed by pack test
sambecker/exif-photo-blog @3f1a363 15.5.5 → 16.0.1 11 / 0 / 3 @next/bundle-analyzer, @next/eslint-plugin-next and eslint-config-next: 15.5.5 → 16.0.1
stoczec/wortkarte @e3bd367 15.5.27 → 16.3.8 1 / 0 / 0 eslint-config-next: 15.5.27 → 16.3.8

pnpm uptide pack test next --write: PASS, verified, four fixtures / six positive sites; two public repositories, zero breaking false positives, companion expectations satisfied.

Rule/group Precision Recall TP FP FN
revalidate-tag-profile 100% 100% 10 0 0
middleware-proxy 100% 100% 1 0 0
lint-removal 100% 100% 1 0 0
image-priority N/A 0% 0 0 1
generic N/A 0% 0 0 2
Overall 100% 80% 12 0 3
Breaking 100% 84.62% 11 0 2

N/A means no predictions (the CLI prints 100% for the empty denominator). Other rules have no public expected sites and remain unmeasured. Middleware is deprecated, not removed; its new rule uses deprecated severity, while the old unclaimed expectation was counted as breaking by the scorer. No expectation was edited to obtain this classification.

Remaining false negatives: ExIF's shared ImageWithFallback.tsx:16 deprecation and application-specific static-generation gates at src/app/static.ts:24 and :50. Generated route types and wrapper root-cause evidence still need separate engine work. Ambient-type truth linking, cross-process extraction and uniform pnpm/Yarn peer publication blocking also remain follow-ups; they are not implemented here. The pack still requires explicit caching, runtime, lint-tooling and other config decisions. Published next-i18next 15.4.2/15.4.3 accepts Next >=12 and is not a fabricated blocker.

Research and source ledger includes official source URLs/read dates, the classified change list, independent compiler evidence, exact peer ranges, public upgrade provenance and remaining limits. README, verification record and changeset reflect the measured verified status. Queue remains in progress until merge.

Validation results and full pack regression table follow below.

pnpm uptide pack test (all packs, per-pack isolation): exit 0, every previously verified pack retains identical overall and breaking counts.

Pack Status Breaking TP / FP / FN Breaking precision Breaking recall Overall TP / FP / FN
ai verified 9 / 0 / 2 100.00% 81.82% 54 / 0 / 7
next verified 11 / 0 / 2 100.00% 84.62% 12 / 0 / 3
react verified 89 / 0 / 40 100.00% 68.99% 92 / 6 / 40
stripe verified 18 / 0 / 2 100.00% 90.00% 18 / 0 / 2
vitest verified 16 / 0 / 16 100.00% 50.00% 16 / 18938 / 16
zod verified 59 / 0 / 21 100.00% 73.75% 120 / 0 / 21

React’s six and Vitest’s 18,938 non-breaking false positives are pre-existing and unchanged; they are not hidden by the breaking-only gate.

  • Full core suite: 1,474 passed, 31 skipped.
  • Focused Next/contract suite: 45 passed.
  • pnpm build, core typecheck, targeted Biome, pnpm docs:packs --check, pnpm docs:links, and git diff --check: passed.
  • A quoted runtime-key regression initially failed while files were being updated; the finalized implementation declines that rewrite and the entire core suite was rerun successfully.
  • Both commits carry Signed-off-by. No third-party pushes/PRs or bare npx commands.

The PR was kept draft until the verified gate and full regression run passed.

Pre-merge runtime safety follow-up (9977b0e, new signed-off commit): middleware detection, deprecated severity and guide are unchanged. Rewriting requires explicit static Node configuration; absent/Edge/dynamic runtimes return the requested runtime-choice reason. Regression tests were run before the fix (11 failures), then 55 Next/contract tests and core typecheck passed. pnpm uptide pack test next passed with unchanged 12/0/3 overall and 11/0/2 breaking counts; all companion moves remain unchanged. RESEARCH.md has the one-line correction; ground truth and verification record are unchanged.

lucasbraum added a commit that referenced this pull request Oct 14, 2026
Release-group members now move with the lead even when they have no
dependency/peer edge or their installed range already accepts the
target. This fixes the exif-photo-blog and wortkarte shapes where Next
companions remained on 15.x.

Adds the source-backed `releaseGroup` pack contract and uses one planner
in check, peer/range preflight, fix, and pack verification. List reports
declared members through `movesWith`. The lead's exact version wins; if
unpublished for a member, the newest stable release with a published
dependency/peer range accepting the lead is selected. A missing
compatible release blocks the plan. Ordinary companions retain their
existing behavior.

Regression tests cover exif-photo-blog @3f1a363 (three members),
wortkarte @e3bd367, compatible installed peers, missing edges,
compatible fallback, missing compatible releases, unused-member
compilation, fix installation, inventory-independent list grouping, and
contract validation. The four planner regressions failed before the
implementation. Core suite: 1,418 passed / 32 skipped; additional
focused integration and contract tests passed. Core typecheck,
changed-file Biome, and diff checks passed.

## Full pack gate

Ran `pnpm uptide pack test` with per-pack process isolation from #110,
exit 0. All five verified packs retain exactly their recorded breaking
metrics. No ground-truth expectations or verification records changed.

| Pack | Status | Public repos | Breaking TP / FP / FN | Precision |
Recall | Recorded recall | Overall TP / FP / FN |
| --- | --- | ---: | --- | ---: | ---: | ---: | --- |
| ai | verified | 2 | 9 / 0 / 2 | 100% | 81.82% | 81.82% | 54 / 0 / 7 |
| react | verified | 2 | 89 / 0 / 40 | 100% | 68.99% | 68.99% | 92 / 6 /
40 |
| stripe | verified | 2 | 18 / 0 / 2 | 100% | 90% | 90% | 18 / 0 / 2 |
| vitest | verified | 2 | 16 / 0 / 16 | 100% | 50% | 50% | 16 / 18,938 /
16 |
| zod | verified | 3 | 59 / 0 / 21 | 100% | 73.75% | 73.75% | 120 / 0 /
21 |

The overall score includes non-breaking findings: React has six false
positives and Vitest has 18,938 `unverified` false positives. These do
not count toward the recorded breaking gate. A separate clean-main run
(`d0dea2a`) reproduced exactly the same Vitest overall counts (16 TP /
18,938 FP / 16 FN) and breaking counts (16 / 0 / 16). This overall noise
predates the PR; no expectations have been adjusted.

Next's candidate is still on #114, not main. Its release-group
declaration will use eslint-config-next, @next/eslint-plugin-next,
@next/bundle-analyzer, @next/mdx, and @next/third-parties when the
requested post-merge follow-up is applied. This PR does not activate the
candidate or change its expectations.

UPT-6

Signed-off-by: Lucas Braum <[email protected]>
lucasbraum added a commit that referenced this pull request Oct 14, 2026
Packs can declare `requiresBuild: true` when compiler checks cannot
establish that the upgraded repository builds. Fix runs the existing
repository build runner after migration, using the same
credential-filtered environment as tests. Missing, failed, timed-out, or
unrun required builds block publication with a reason. The PR's
**Verified by** row displays the build result, and reverification reruns
the required build rather than reusing a stale pass. Other packs retain
their existing behavior.

Regression tests cover successful, failed and missing builds; actual
execution without inherited secrets; failure during reverification; and
unchanged behavior for ordinary packs. The four initial regression cases
failed before implementation. Core suite: 1,417 passed / 32 skipped. Six
focused required-build tests, the existing generic-build tests, core
typecheck, changed-file Biome, and diff checks passed.

## Full pack gate

Ran `pnpm uptide pack test` with per-pack process isolation from #110,
exit 0. All five verified packs retain exactly their recorded breaking
metrics. No ground-truth expectations or verification records changed.

| Pack | Status | Public repos | Breaking TP / FP / FN | Precision |
Recall | Recorded recall | Overall TP / FP / FN |
| --- | --- | ---: | --- | ---: | ---: | ---: | --- |
| ai | verified | 2 | 9 / 0 / 2 | 100% | 81.82% | 81.82% | 54 / 0 / 7 |
| react | verified | 2 | 89 / 0 / 40 | 100% | 68.99% | 68.99% | 92 / 6 /
40 |
| stripe | verified | 2 | 18 / 0 / 2 | 100% | 90% | 90% | 18 / 0 / 2 |
| vitest | verified | 2 | 16 / 0 / 16 | 100% | 50% | 50% | 16 / 18,938 /
16 |
| zod | verified | 3 | 59 / 0 / 21 | 100% | 73.75% | 73.75% | 120 / 0 /
21 |

The overall score includes non-breaking findings: React has six false
positives and Vitest has 18,938 `unverified` false positives. These do
not count toward the recorded breaking gate. A separate clean-main run
(`d0dea2a`) reproduced exactly the same Vitest overall counts (16 TP /
18,938 FP / 16 FN) and breaking counts (16 / 0 / 16). This overall noise
predates the PR; no expectations have been adjusted.

Next's candidate remains on #114, not main. Set `requiresBuild` there in
the requested follow-up after the first two engine PRs merge, then rerun
its unchanged ground truth. No pack expectations or verification records
are edited here.

UPT-6

Signed-off-by: Lucas Braum <[email protected]>
lucasbraum added a commit that referenced this pull request Oct 14, 2026
Packs can declare a scoped file inventory independent of imported
usages, so runtime rules can inspect configuration, scripts and file
conventions even when the dependency has no imported call sites. Rules
can return writes, creates, deletes and renames together. The engine
prevalidates all paths, applies the edits as one verified transaction,
and restores all affected files when compilation or related tests reject
it. Renames retain the old path as the finding anchor, and formatting
handles the resulting paths.

Regression tests cover inventory-only check results, brace/glob scopes,
all four edit operations, executable-mode preservation, rollback after
rejected verification or exceptions, invalid paths, and a real fix
rename that preserves its old anchor. The initial inventory and
multi-file regression tests failed before implementation. Core suite:
1,419 passed / 32 skipped, then the additional executable-mode
regression passed with the six transaction tests. Core typecheck, Biome
and diff checks passed.

## Full pack gate

Ran `pnpm uptide pack test` with per-pack process isolation from #110,
exit 0. All five verified packs retain exactly their recorded breaking
metrics. No ground-truth expectations or verification records changed.

| Pack | Status | Public repos | Breaking TP / FP / FN | Precision |
Recall | Recorded recall | Overall TP / FP / FN |
| --- | --- | ---: | --- | ---: | ---: | ---: | --- |
| ai | verified | 2 | 9 / 0 / 2 | 100% | 81.82% | 81.82% | 54 / 0 / 7 |
| react | verified | 2 | 89 / 0 / 40 | 100% | 68.99% | 68.99% | 92 / 6 /
40 |
| stripe | verified | 2 | 18 / 0 / 2 | 100% | 90% | 90% | 18 / 0 / 2 |
| vitest | verified | 2 | 16 / 0 / 16 | 100% | 50% | 50% | 16 / 18,938 /
16 |
| zod | verified | 3 | 59 / 0 / 21 | 100% | 73.75% | 73.75% | 120 / 0 /
21 |

The overall score includes non-breaking findings: React has six false
positives and Vitest has 18,938 `unverified` false positives. These do
not count toward the recorded breaking gate. A separate clean-main run
(`d0dea2a`) reproduced exactly the same Vitest overall counts (16 TP /
18,938 FP / 16 FN) and breaking counts (16 / 0 / 16). This overall noise
predates the PR; no expectations have been adjusted.

Next's middleware/proxy and removed eslint configuration rules remain a
follow-up commit on #114 after this engine PR merges. No Next
expectations are changed here.

UPT-6

Signed-off-by: Lucas Braum <[email protected]>
@lucasbraum lucasbraum changed the title Add candidate Next.js 15 to 16 migration pack Add verified Next.js 15 to 16 migration pack Oct 14, 2026
@lucasbraum
lucasbraum marked this pull request as ready for review October 14, 2026 01:44
@lucasbraum
lucasbraum merged commit ac2755f into main Oct 14, 2026
10 checks passed
@lucasbraum
lucasbraum deleted the feat/next-16-pack branch October 14, 2026 02:39
@uptide-release uptide-release Bot mentioned this pull request Oct 14, 2026
lucasbraum pushed a commit that referenced this pull request Oct 14, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## [email protected]

### Minor Changes

- [#114](#114)
[`ac2755f`](ac2755f)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a verified
Next.js 15 to 16 migration pack with source-backed rules, lockstep
release-group companions, required consumer builds, scoped
config/convention discovery, and transactional middleware-to-proxy
edits. Verify against two unchanged public upgrade baselines and
document remaining generated-type, deprecation and runtime coverage
limits.

### Patch Changes

- [#124](#124)
[`01553c7`](01553c7)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Retain accepted
agent patches and show migration choices in PR decisions. Merge paired
compiler and pack findings, bound repeated test output, and scope Next
platform minimum warnings to missing or insufficient versions.

- [#123](#123)
[`079f496`](079f496)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Allow pnpm
peer-suffix and non-resolution lockfile metadata changes during
upgrades. Continue checking each unrelated package and importer
specifier/resolved version, with named diagnostics for importer changes.
npm and Yarn scope checks are unchanged.

- [#123](#123)
[`079f496`](079f496)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Render applicable
behavior notes under “Decisions for you” when a migration pack has no
custom decision hook. Next 16 decisions now cite repository
configuration, scripts, runtime declarations and missing parallel-route
fallbacks instead of generic migration notes.

- [#121](#121)
[`3da4978`](3da4978)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide init`
pins the Uptide Action of v0.11.2

Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant