summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/workflows/uplift-migrate.js
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-15 15:15:41 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-15 15:15:41 -0700
commit27ccae218634dbe03a234f8902982d12bf6ba52a (patch)
tree1e9f627ce0798341868726447fbef7d46da8f20b /plugins/code-modernization/workflows/uplift-migrate.js
parentb5439c41ae9864833eb73d5efd088af8e3be13fe (diff)
code-modernization: named arguments and namespaced command namesmorganl/code-modernization-named-args
Positional placeholders are zero-based ($0 is the first argument), but every command used $1 for the first one, so arguments arrived shifted: modernize-preflight carddemo java-spring analyzed legacy/java-spring. Each command now declares its arguments in frontmatter (for example `arguments: system module target_stack`) and uses the names. A missing optional argument now expands to an empty string instead of a literal placeholder. Plugin commands resolve only by their namespaced name, so the README, command cross-references, agents, workflow descriptions and the topology viewer now say /code-modernization:modernize-*. The extract-rules workflow is renamed modernize-extract-rules-mine. It shared the command's name, so invoking the command could start the workflow directly and skip the command's instructions. Commands launch workflows by script path, so nothing else changes.
Diffstat (limited to 'plugins/code-modernization/workflows/uplift-migrate.js')
-rw-r--r--plugins/code-modernization/workflows/uplift-migrate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code-modernization/workflows/uplift-migrate.js b/plugins/code-modernization/workflows/uplift-migrate.js
index be7eb4bb..cb51eb9a 100644
--- a/plugins/code-modernization/workflows/uplift-migrate.js
+++ b/plugins/code-modernization/workflows/uplift-migrate.js
@@ -1,9 +1,9 @@
export const meta = {
name: 'modernize-uplift-migrate',
description:
- 'Batched fan-out of /modernize-uplift Step 5b: one migrator agent per project/module, in dependency-aware escalating batches behind a per-batch circuit breaker',
+ 'Batched fan-out of /code-modernization:modernize-uplift Step 5b: one migrator agent per project/module, in dependency-aware escalating batches behind a per-batch circuit breaker',
whenToUse:
- 'Invoked by /modernize-uplift ONLY after the pilot unit is migrated in-session, analysis/<system>/PLAYBOOK.md is written, and the human has approved the fan-out. Requires args {system, source, target, units: [{name, path, deps?}], batchSize?}. Each unit\'s optional `deps` lists the sibling unit NAMES it depends on; a unit is only batched once every listed dep has BUILT, so a unit and its dependency never run in the same batch. Agents write only inside their own unit directory under modernized/<system>-uplifted/ — disjoint directories, so no worktree isolation is needed; solution/workspace-level shared files are owned by the calling session. Returns per-unit results plus three RE-PASSABLE unit lists ({name, path, deps}) — remainingUnits (never attempted), failedUnits (attempted, build failed), blockedUnits (skipped because a dependency failed) — any of which can be passed straight back as the next invocation\'s `units`. The calling session applies the returned sharedFileNeeds and folds playbookGaps into the playbook before re-invoking.',
+ 'Invoked by /code-modernization:modernize-uplift ONLY after the pilot unit is migrated in-session, analysis/<system>/PLAYBOOK.md is written, and the human has approved the fan-out. Requires args {system, source, target, units: [{name, path, deps?}], batchSize?}. Each unit\'s optional `deps` lists the sibling unit NAMES it depends on; a unit is only batched once every listed dep has BUILT, so a unit and its dependency never run in the same batch. Agents write only inside their own unit directory under modernized/<system>-uplifted/ — disjoint directories, so no worktree isolation is needed; solution/workspace-level shared files are owned by the calling session. Returns per-unit results plus three RE-PASSABLE unit lists ({name, path, deps}) — remainingUnits (never attempted), failedUnits (attempted, build failed), blockedUnits (skipped because a dependency failed) — any of which can be passed straight back as the next invocation\'s `units`. The calling session applies the returned sharedFileNeeds and folds playbookGaps into the playbook before re-invoking.',
phases: [
{
title: 'Migrate',