summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands/modernize-preflight.md
diff options
context:
space:
mode:
authorMorgan Westlee Lunt <morganl@anthropic.com>2026-06-09 23:12:16 +0000
committerMorgan Westlee Lunt <morganl@anthropic.com>2026-06-09 23:12:16 +0000
commit4a8250babf1d131c1406b113f3d759d18c55ec48 (patch)
tree2b41d4caf3f73b1a24b9aed88ce3d5cc80f622aa /plugins/code-modernization/commands/modernize-preflight.md
parente5939029ecdda7e9b8d30854e95eed2a5ff60062 (diff)
code-modernization: add /modernize-uplift for same-stack version migrations
Adds a third build method alongside transform (cross-stack rewrite) and reimagine (greenfield): uplift, for same-stack version bumps (.NET Framework 4.8 -> .NET 8, Spring Boot 2->3, Python 2->3) where the right move is to PRESERVE the code and fix only the version deltas, not extract intent and rewrite. - commands/modernize-uplift.md: delta-catalog-driven, dual-target test harness (one suite on both runtimes; baseline-on-old is the oracle), leaf-first build graph ordering, minimal-diff discipline (architecture-critic flags gratuitous divergence), and a 'this is a rewrite, use transform' escape hatch. - agents/version-delta-analyst.md: finds the source->target breaking changes that THIS code hits; drives the ecosystem migration tool (upgrade-assistant / OpenRewrite / pyupgrade / ng update) and owns the residue; read-only. - workflows/uplift-deltas.js: parallel finder per delta category, each verified against the cited code so deltas that don't apply here are dropped. - Wired into assess (recommended-pattern routing), brief (per-phase command + leaf-first ordering), preflight (dual-run + tool readiness), status, README. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'plugins/code-modernization/commands/modernize-preflight.md')
-rw-r--r--plugins/code-modernization/commands/modernize-preflight.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/code-modernization/commands/modernize-preflight.md b/plugins/code-modernization/commands/modernize-preflight.md
index ff91c2a3..06f7e5a0 100644
--- a/plugins/code-modernization/commands/modernize-preflight.md
+++ b/plugins/code-modernization/commands/modernize-preflight.md
@@ -93,6 +93,15 @@ followed by a **Ready / Ready-with-gaps / Not ready** verdict per command:
recorded traces / golden-master fixtures instead of dual execution
(common and expected for CICS/IMS code that has no local runtime)
- `harden` — needs Check 2 plus any stack-specific SAST tooling found
+- `uplift` (same-stack version bump) — needs Check 3 green for the **target**
+ version. Two uplift-specific signals to report when a `[target-stack]` that
+ looks like a version bump was passed: (a) is the **source** runtime also
+ available here? Both present = a true dual-run is possible; target-only =
+ equivalence degrades to characterization tests against recorded outputs (say
+ which). (b) Is the stack's **migration tool** installed (`dotnet tool list`
+ for `upgrade-assistant`, `apiport`, OpenRewrite, `pyupgrade`, `ng`)? Missing
+ is Ready-with-gaps, not Not-ready — the delta catalog is then fully
+ Claude-derived and loses the tool's coverage; note that.
Print the table in the session too, and end with the single most
important fix if anything is red.