summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/commands
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-24 20:34:21 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 20:34:21 -0700
commit5b8ec4b30f45b5e8b4c8a6efd63719730cf1a5ad (patch)
tree5b9369e8b74682eb3bb54d39618d2bffbb7c6d9f /plugins/code-modernization/commands
parent4672eac1e36ff37394189376217bdc6f2b2e2e4a (diff)
code-modernization: harden the numeric tolerance and say what Rehost and Replace mean
Follow-ups from review of the tolerance check: an absolute tolerance above 1e-6 is refused like a relative one above 1%, numbers are compared as exact decimals rather than doubles, dotted runs such as 1.2.3 or 10.0.0.1 are text that must match exactly, and the self-check now changes the leading digit of every sampled number to prove the tolerance cannot hide a real change. The business-rules header says how many rules there were at extraction, since later steps add rules. The assessment says what to do when it recommends Rehost or Replace, which change no code and so have no build command.
Diffstat (limited to 'plugins/code-modernization/commands')
-rw-r--r--plugins/code-modernization/commands/modernize-assess.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/code-modernization/commands/modernize-assess.md b/plugins/code-modernization/commands/modernize-assess.md
index a9b6b752..e02f5625 100644
--- a/plugins/code-modernization/commands/modernize-assess.md
+++ b/plugins/code-modernization/commands/modernize-assess.md
@@ -139,8 +139,13 @@ Inventory** · **Architecture at a Glance** (domain table, refer to the diagram)
plainly that it is not a timeline or a cost, and print no person-months, schedule,
cost or date) · **Recommended Modernization Pattern**: one of Rehost, Replatform,
Refactor, Rearchitect, Rebuild, Replace, with a one-paragraph rationale and the
-command it routes to (same-stack version bump → `uplift`; cross-stack rearchitect
-→ `transform`; rebuild → `reimagine`).
+command it routes to: a move to a newer version of the same technology (or its
+supporting platform) → `uplift`; a rewrite in another technology, piece by piece →
+`transform`; a rebuild on a new architecture → `reimagine`. Rehost (move as is) and
+Replace (buy or adopt a product) change no code, so no build command applies: say so,
+and say what the analysis is still good for. For Rehost, `map`, `harden` and the `preflight`
+build check show what the move must carry along; for Replace, `extract-rules` turns
+what the system does into the acceptance criteria a replacement is judged against.
Also write `analysis/$system/ARCHITECTURE.mmd`, the domain diagram from the
legacy-analyst.