diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 21:10:47 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 21:10:47 -0700 |
| commit | 6436c5a81d2b163fe5a1c971b96f211d910bd75a (patch) | |
| tree | ca25b3b10c30d4ca04f871f8e53bf4c9b1047c0f /plugins/code-modernization/agents | |
| parent | 29c1c6a0d16453427b488e3eca1ad6e8beac0c10 (diff) | |
code-modernization: safer, more general version uplifts
Found by reading the commands as an engineer with a large Java 8 system:
- The baseline suite was run "on legacy/<system>", which writes build output
into the source. It now runs on a scratch copy, its result files or log are
kept under analysis/<system>/baseline/ and named in BASELINE.md, and a
typed table alone no longer counts as a measured baseline.
- The working copy no longer carries the source repository's history, keeps
files that look like credentials or production settings out of its first
commit and lists them for a person, and moves that history to its own new
local repository.
- Migration tools (OpenRewrite and the like) run on a scratch copy, never in
the source, since a dry run still builds and downloads.
- A move spanning several versions or two things at once (a JDK and a
framework) is split into hops that each build and test green.
- Tests are not run against a database or service the configuration names
until the person says it is a local or throwaway instance.
- The silent-behavior hunt now names the usual traps for Java, Python, Node
and PHP as well as .NET (locale data, default charset, ORM mappings,
property binding, str/bytes).
- The brief no longer requires business rules for a same-technology uplift:
the recorded baseline is its behavior contract, so extract-rules can wait.
Diffstat (limited to 'plugins/code-modernization/agents')
| -rw-r--r-- | plugins/code-modernization/agents/version-delta-analyst.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/code-modernization/agents/version-delta-analyst.md b/plugins/code-modernization/agents/version-delta-analyst.md index f029249e..e8624e18 100644 --- a/plugins/code-modernization/agents/version-delta-analyst.md +++ b/plugins/code-modernization/agents/version-delta-analyst.md @@ -37,6 +37,10 @@ has none of that, so "installed" ≠ "produced findings". **Never fold a tool's findings into the catalog unless it actually ran** — instead record "coverage lost: <tool> needs restore+network, unavailable here". +**Run a migration tool only on a scratch copy** of the code (rsync it into a +temporary folder), never inside `legacy/`: builds and dry runs write output and +download plugins, and the source is never touched. + - **.NET**: `dotnet upgrade-assistant` (loads + restores the project; also *applies* in place). `try-convert` (project-system → SDK-style). The **Portability Analyzer** (`apiport`) analyzes *compiled assemblies*, not |
