summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands/modernize-preflight.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-preflight.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-preflight.md')
-rw-r--r--plugins/code-modernization/commands/modernize-preflight.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/code-modernization/commands/modernize-preflight.md b/plugins/code-modernization/commands/modernize-preflight.md
index aba9d739..509e5d40 100644
--- a/plugins/code-modernization/commands/modernize-preflight.md
+++ b/plugins/code-modernization/commands/modernize-preflight.md
@@ -116,7 +116,11 @@ If `$target_stack` was given, prove it with a throwaway project, not a version
string: in a scratch directory outside `legacy/$system` (`mktemp -d`), create the
smallest project the stack allows, restore, build, run one passing test with its
real package manager and test framework, then delete it. A target that cannot
-build here is a finding.
+build here is a finding. If it names a version, also report whether that version
+is still supported, looked up as
+`${CLAUDE_PLUGIN_ROOT}/references/target-versions.md` says (never from memory):
+out of support or ending soon is ⚠️ with the date and the supported alternative,
+unverified is ⚠️ with the page to check; neither is ever ❌ or changes a verdict.
## Check 4 — Source completeness