diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-07-08 18:42:18 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-07-08 18:48:30 -0700 |
| commit | 96e3e8c6af5f8a01f4d71be69201dfb7a2d5dfc1 (patch) | |
| tree | 4a8b1e9b548abb3c8eb5af7e1aac716ec73f4cdb /plugins/code-modernization/commands/modernize-reimagine.md | |
| parent | 8d9e142e4ec5665f6561efef0ec10b3955e747dd (diff) | |
code-modernization: pilot-first uplift migration, brief-driven execution, deeper preflightmorganl/code-mod-experiment-first
/modernize-uplift migrates one representative project end-to-end and
writes its lessons to analysis/<system>/PLAYBOOK.md before touching the
rest. The remaining projects then fan out through a new uplift-migrate
workflow, one uplift-migrator agent per project, in dependency-aware
escalating batches behind a per-batch circuit breaker. A recorded
per-test baseline (analysis/<system>/BASELINE.md) gates the migration,
and the delta catalog reports a test framework whose runner does not
support the target as its own highest-blast-radius dependency.
The three execution commands (uplift, transform, reimagine) read
MODERNIZATION_BRIEF.md and treat their phase's scope and entry and exit
criteria as gates, so editing the brief steers execution. For a
same-stack uplift the brief requires the delta catalog and applies the
same ordering overrides the execution command does.
/modernize-preflight opens with a short interview (scope, local build
and test, bespoke build infrastructure, prior attempts, what is off
limits) without blocking on the answers, reads the CI/build definition
for how the system builds, escalates the smoke test to a whole-project
restore and build, and adds a scope-boundary check that enumerates
inbound and outbound dependencies when the system directory is a slice
of a larger repository.
Workflow scripts accept args delivered as either a JSON string or an
object.
Diffstat (limited to 'plugins/code-modernization/commands/modernize-reimagine.md')
| -rw-r--r-- | plugins/code-modernization/commands/modernize-reimagine.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/code-modernization/commands/modernize-reimagine.md b/plugins/code-modernization/commands/modernize-reimagine.md index 668ef60f..5b0ecb12 100644 --- a/plugins/code-modernization/commands/modernize-reimagine.md +++ b/plugins/code-modernization/commands/modernize-reimagine.md @@ -13,6 +13,19 @@ This is not a port — it's a rebuild from extracted intent. The legacy system becomes the *specification source*, not the structural template. This command orchestrates a multi-agent team with explicit human checkpoints. +**The brief is binding — read it first.** If `analysis/$1/MODERNIZATION_BRIEF.md` +exists, this reimagine is executing one of its phases: read it before doing +anything below. Find the phase that names this command with a scope matching +`$1` and <vision>, and treat that phase's **scope, entry criteria, exit +criteria, and any edits the user made to it** as binding on the phases below +— on top of, never instead of, this command's own two HITL checkpoints. +Entry criteria are *gates*, not context: if one is not met (a prior phase's +exit criteria, an SME sign-off the brief requires), meeting it **is** the +next step — do not proceed past it and do not silently re-plan around it. If +the brief exists but no phase matches, stop and ask which phase this is. The +user steers execution by editing the brief; a brief the execution command +never reads cannot steer anything. + ## Phase A — Specification mining (parallel agents) Spawn concurrently and show the user that all three are running: |
