diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-07-13 08:54:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-13 08:54:39 -0700 |
| commit | fe031465133dc8c3435b4cabf1291e21d90998e4 (patch) | |
| tree | eeee2951fa33a2d9f2198a3c754d6c6d7c0f50c2 /plugins/code-modernization/commands/modernize-transform.md | |
| parent | f9351bde4fefb5d8ea04a615b047101ba2945183 (diff) | |
| parent | 96e3e8c6af5f8a01f4d71be69201dfb7a2d5dfc1 (diff) | |
Merge pull request #3869 from anthropics/morganl/code-mod-experiment-first
code-modernization: pilot-first uplift and brief-driven execution
Diffstat (limited to 'plugins/code-modernization/commands/modernize-transform.md')
| -rw-r--r-- | plugins/code-modernization/commands/modernize-transform.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/code-modernization/commands/modernize-transform.md b/plugins/code-modernization/commands/modernize-transform.md index 8183fd46..d946b93f 100644 --- a/plugins/code-modernization/commands/modernize-transform.md +++ b/plugins/code-modernization/commands/modernize-transform.md @@ -37,6 +37,18 @@ first run: ## Step 0b — Plan (HITL gate) +**The brief is binding — read it first.** If `analysis/$1/MODERNIZATION_BRIEF.md` +exists, this transform is one phase (or one module of a phase) of that plan: +read it before deciding anything below. Find the phase that names this +command with `$2` in scope, and treat that phase's **scope, entry criteria, +exit criteria, and any edits the user made to it** as binding on the plan +you present below. 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 covers `$2`, 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. + Read the source module and any business rules in `analysis/$1/BUSINESS_RULES.md` that reference it. Then present the plan and **stop — write no code until the user explicitly approves** (use plan mode if the session supports it): |
