summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands/modernize-transform.md
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-19 01:38:59 +0000
committerClaude <noreply@anthropic.com>2026-11-19 01:38:59 +0000
commitfc515815fa14ab96bebc363a5f42e79a7f571158 (patch)
tree796871d943efb9f92635f2cb62a34498d82d300e /plugins/code-modernization/commands/modernize-transform.md
parent4d9854e0873b9d068fb444c8b14d00278ce2402a (diff)
code-modernization: look up whether a target version is supported before proposing itcode-modernization/supported-target-versions
Commands proposed language and framework versions from the model's memory, which is older than today, so a plan could name a release that is already out of support. A shared rule (references/target-versions.md) now has each command look versions up, record them in a Target versions table with the support end date and source, keep a version the person chose with a warning, and mark a version that could not be checked as unverified instead of guessing. Version 1.1.0.
Diffstat (limited to 'plugins/code-modernization/commands/modernize-transform.md')
-rw-r--r--plugins/code-modernization/commands/modernize-transform.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/code-modernization/commands/modernize-transform.md b/plugins/code-modernization/commands/modernize-transform.md
index d3a1fb69..58ae5174 100644
--- a/plugins/code-modernization/commands/modernize-transform.md
+++ b/plugins/code-modernization/commands/modernize-transform.md
@@ -20,6 +20,12 @@ the earliest phase whose `Command:` is `transform` that has no
stop and say what to install: a plan gate now would only defer the failure an hour. Point to
`/code-modernization:modernize-preflight $system $target_stack`.
+**Target versions.** Build on the versions in the brief's **Target versions** table. If it has none for this
+module, or they are `unverified` or were checked over 30 days ago, look them up now as
+`${CLAUDE_PLUGIN_ROOT}/references/target-versions.md` says (never from memory), show the table in the plan and
+keep it in `TRANSFORMATION_NOTES.md`. Anything not `supported` and not yet decided is a question at the plan gate.
+A dependency with no row takes the newest compatible stable release the package registry reports.
+
**Legacy stack (advisory, never a blocker).** Try a syntax-only compile of the module. Legacy code
often cannot build locally by nature (CICS and IMS programs have no local translator; the real runtime
is a mainframe you do not have). If it cannot, dual execution is off the table: the tests assert