@polymorphism-tech/morph-spec 4.21.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/CLAUDE.md +57 -71
  2. package/README.md +2 -2
  3. package/bin/morph-spec.js +224 -491
  4. package/claude-plugin.json +1 -1
  5. package/docs/CHEATSHEET.md +1 -1
  6. package/docs/QUICKSTART.md +1 -1
  7. package/framework/CLAUDE.md +55 -38
  8. package/framework/MORPH.md +244 -0
  9. package/framework/agents.json +127 -1183
  10. package/framework/commands/morph-apply.md +56 -240
  11. package/framework/commands/morph-archive.md +48 -85
  12. package/framework/commands/morph-preflight.md +7 -7
  13. package/framework/commands/morph-proposal.md +35 -191
  14. package/framework/commands/morph-status.md +19 -50
  15. package/framework/commands/morph-troubleshoot.md +2 -2
  16. package/framework/evals/rubrics/README.md +44 -0
  17. package/framework/evals/rubrics/architecture.md +46 -0
  18. package/framework/evals/rubrics/code-quality.md +50 -0
  19. package/framework/evals/rubrics/contracts.md +47 -0
  20. package/framework/evals/rubrics/test-coverage.md +50 -0
  21. package/framework/evals/scenarios/dotnet-crud.yaml +42 -0
  22. package/framework/evals/scenarios/nextjs-auth.yaml +38 -0
  23. package/framework/evals/suites/standard.yaml +5 -0
  24. package/framework/evals/trace-schema.md +67 -0
  25. package/framework/hooks/claude-code/core/README.md +3 -0
  26. package/framework/hooks/claude-code/core/denylist.json +14 -0
  27. package/framework/hooks/claude-code/{pre-tool-use → core}/enforce-phase-writes.js +5 -5
  28. package/framework/hooks/claude-code/core/post-edit-typecheck.js +69 -0
  29. package/framework/hooks/claude-code/core/pre-bash-denylist.js +29 -0
  30. package/framework/hooks/claude-code/{pre-tool-use → core}/protect-spec-files.js +4 -6
  31. package/framework/hooks/claude-code/{stop → core}/validate-completion.js +13 -82
  32. package/framework/hooks/shared/phase-utils.js +20 -28
  33. package/framework/hooks/shared/state-reader.js +4 -5
  34. package/framework/{skills/level-0-meta/mcp-registry.json → mcp/registry.json} +254 -210
  35. package/framework/phases.json +40 -114
  36. package/framework/rubrics/eval-rubric.json +66 -0
  37. package/framework/skills/README.md +39 -64
  38. package/framework/skills/core/README.md +3 -0
  39. package/framework/skills/core/morph-brainstorming/SKILL.md +102 -0
  40. package/framework/skills/core/morph-eval/SKILL.md +57 -0
  41. package/framework/skills/core/morph-implement/SKILL.md +83 -0
  42. package/framework/skills/core/morph-plan/SKILL.md +64 -0
  43. package/framework/skills/core/morph-review/SKILL.md +62 -0
  44. package/framework/skills/core/morph-stack-scan/SKILL.md +109 -0
  45. package/framework/skills/core/morph-standards/SKILL.md +49 -0
  46. package/framework/standards/STANDARDS.json +32 -0
  47. package/framework/standards/frontend/design-system/ai-image-generation.md +244 -0
  48. package/framework/standards/integration/mcp/mcp-tools.md +48 -0
  49. package/framework/templates/CLAUDE.md.core.guide.md +29 -0
  50. package/framework/templates/CLAUDE.md.core.template +22 -0
  51. package/framework/templates/REGISTRY.json +4 -4
  52. package/framework/workflows/configs/fast-track.json +5 -10
  53. package/framework/workflows/configs/full.json +4 -8
  54. package/framework/workflows/configs/quick.json +32 -0
  55. package/framework/workflows/configs/standard.json +57 -64
  56. package/package.json +7 -6
  57. package/src/commands/mcp/mcp-setup.js +58 -31
  58. package/src/commands/project/doctor.js +69 -70
  59. package/src/commands/project/init.js +26 -5
  60. package/src/commands/project/status.js +18 -19
  61. package/src/commands/state/approve.js +1 -1
  62. package/src/commands/validation/validate-feature.js +18 -112
  63. package/src/core/paths/output-schema.js +133 -151
  64. package/src/core/state/phase-state-machine.js +10 -24
  65. package/src/core/state/state-manager.js +17 -17
  66. package/src/core/workflows/workflow-detector.js +214 -31
  67. package/src/core/workflows/workflow-router.js +204 -0
  68. package/src/dashboard/app/pages/AgentMap.jsx +32 -33
  69. package/src/dashboard/app/pages/LiveState.jsx +1 -1
  70. package/src/dashboard/app/pages/PhasePipeline.jsx +2 -4
  71. package/src/dashboard/app/pages/SkillsLibrary.jsx +2 -3
  72. package/src/dashboard/app/pages/Workflows.jsx +2 -2
  73. package/src/dashboard/scanner/agents-scanner.js +30 -35
  74. package/src/lib/agents/metrics-aggregator.js +1 -1
  75. package/src/lib/agents/output-collector.js +7 -8
  76. package/src/lib/context/context-builder.js +289 -0
  77. package/src/lib/detectors/claude-config-detector.js +19 -3
  78. package/src/lib/generators/context-generator.js +20 -42
  79. package/src/lib/generators/index.js +1 -0
  80. package/src/lib/generators/mandate-generator.js +512 -0
  81. package/src/lib/generators/metadata-extractor.js +1 -1
  82. package/src/lib/generators/recap-generator.js +3 -4
  83. package/src/lib/installers/mcp-installer.js +300 -92
  84. package/src/lib/phase-chain/phase-validator.js +36 -40
  85. package/src/lib/stack/stack-profile.js +74 -91
  86. package/src/lib/tasks/task-parser.js +1 -1
  87. package/src/lib/tasks/wave-resolver.js +353 -0
  88. package/src/lib/validators/checkpoint-persistence.js +2 -2
  89. package/src/lib/validators/content/cross-phase-validator.js +281 -0
  90. package/src/lib/validators/content/index.js +1 -0
  91. package/src/lib/validators/shared/emit-validator-dispatch.js +6 -56
  92. package/src/scripts/global-install.js +2 -27
  93. package/src/utils/agents-installer.js +224 -447
  94. package/src/utils/claude-settings-manager.js +57 -15
  95. package/src/utils/file-copier.js +1 -0
  96. package/src/utils/hooks-installer.js +15 -117
  97. package/src/utils/skills-installer.js +12 -18
  98. package/bin/detect-agents.js +0 -226
  99. package/bin/task-manager.js +0 -1036
  100. package/framework/agents/README.md +0 -13
  101. package/framework/agents/ai-agents/ai-system-architect.md +0 -194
  102. package/framework/agents/ai-agents/vector-search-expert.md +0 -247
  103. package/framework/agents/architecture/architecture-expert.md +0 -98
  104. package/framework/agents/architecture/morph-spec-architect.md +0 -66
  105. package/framework/agents/architecture/packages-validator.md +0 -89
  106. package/framework/agents/architecture/security-expert.md +0 -79
  107. package/framework/agents/architecture/seo-growth-hacker.md +0 -168
  108. package/framework/agents/architecture/standards-architect.md +0 -153
  109. package/framework/agents/backend/dotnet-senior.md +0 -163
  110. package/framework/agents/backend/ef-modeler.md +0 -119
  111. package/framework/agents/backend/hangfire-orchestrator.md +0 -133
  112. package/framework/agents/backend/ms-agent-expert.md +0 -55
  113. package/framework/agents/backend/neon-expert.md +0 -379
  114. package/framework/agents/frontend/css-specialist.md +0 -89
  115. package/framework/agents/frontend/design-system-validator.md +0 -100
  116. package/framework/agents/frontend/gsap-animator.md +0 -131
  117. package/framework/agents/frontend/nextjs-component-validator.md +0 -97
  118. package/framework/agents/frontend/nextjs-expert.md +0 -201
  119. package/framework/agents/frontend/ui-designer.md +0 -259
  120. package/framework/agents/infrastructure/infra-architect.md +0 -215
  121. package/framework/agents/integrations/asaas-financial.md +0 -138
  122. package/framework/agents/integrations/neon-auth.md +0 -151
  123. package/framework/agents/integrations/resend-email.md +0 -127
  124. package/framework/hooks/claude-code/post-tool-use/agent-complete.js +0 -122
  125. package/framework/hooks/claude-code/post-tool-use/dispatch.js +0 -363
  126. package/framework/hooks/claude-code/post-tool-use/handle-tool-failure.js +0 -78
  127. package/framework/hooks/claude-code/post-tool-use/validator-feedback.js +0 -194
  128. package/framework/hooks/claude-code/pre-compact/save-morph-context.js +0 -199
  129. package/framework/hooks/claude-code/pre-tool-use/task-tracking-guard.js +0 -55
  130. package/framework/hooks/claude-code/session-start/inject-morph-context.js +0 -323
  131. package/framework/hooks/claude-code/session-start/post-compact-restore.js +0 -41
  132. package/framework/hooks/claude-code/session-start/resume-context.js +0 -77
  133. package/framework/hooks/claude-code/teammate-idle/teammate-idle.js +0 -90
  134. package/framework/hooks/claude-code/user-prompt/enrich-prompt.js +0 -114
  135. package/framework/hooks/shared/compact-restore.js +0 -123
  136. package/framework/hooks/shared/dispatch-helpers.js +0 -147
  137. package/framework/hooks/shared/skill-reminder-helpers.js +0 -79
  138. package/framework/hooks/shared/stale-task-reset.js +0 -57
  139. package/framework/hooks/shared/worktree-helpers.js +0 -75
  140. package/framework/skills/level-0-meta/README.md +0 -7
  141. package/framework/skills/level-0-meta/morph-agent-teams/SKILL.md +0 -472
  142. package/framework/skills/level-0-meta/morph-brainstorming/SKILL.md +0 -174
  143. package/framework/skills/level-0-meta/morph-brainstorming/references/proposal-example.md +0 -138
  144. package/framework/skills/level-0-meta/morph-checklist/SKILL.md +0 -145
  145. package/framework/skills/level-0-meta/morph-code-review/SKILL.md +0 -250
  146. package/framework/skills/level-0-meta/morph-code-review/references/review-example.md +0 -164
  147. package/framework/skills/level-0-meta/morph-code-review/references/review-guidelines.md +0 -100
  148. package/framework/skills/level-0-meta/morph-code-review/scripts/scan-csharp.mjs +0 -151
  149. package/framework/skills/level-0-meta/morph-code-review-nextjs/SKILL.md +0 -165
  150. package/framework/skills/level-0-meta/morph-code-review-nextjs/references/review-example-nextjs.md +0 -254
  151. package/framework/skills/level-0-meta/morph-code-review-nextjs/scripts/scan-nextjs.mjs +0 -189
  152. package/framework/skills/level-0-meta/morph-frontend-review/SKILL.md +0 -344
  153. package/framework/skills/level-0-meta/morph-frontend-review/scripts/scan-accessibility.mjs +0 -376
  154. package/framework/skills/level-0-meta/morph-init/SKILL.md +0 -537
  155. package/framework/skills/level-0-meta/morph-parallel-dispatch/SKILL.md +0 -225
  156. package/framework/skills/level-0-meta/morph-post-implementation/SKILL.md +0 -382
  157. package/framework/skills/level-0-meta/morph-post-implementation/scripts/detect-dev-server.mjs +0 -153
  158. package/framework/skills/level-0-meta/morph-post-implementation/scripts/detect-stack.mjs +0 -234
  159. package/framework/skills/level-0-meta/morph-simulation-checklist/SKILL.md +0 -106
  160. package/framework/skills/level-0-meta/morph-tool-usage-guide/SKILL.md +0 -243
  161. package/framework/skills/level-0-meta/morph-tool-usage-guide/references/tools-per-phase.md +0 -169
  162. package/framework/skills/level-0-meta/morph-verification-before-completion/SKILL.md +0 -148
  163. package/framework/skills/level-0-meta/morph-verification-before-completion/scripts/check-phase-outputs.mjs +0 -110
  164. package/framework/skills/level-1-workflows/README.md +0 -7
  165. package/framework/skills/level-1-workflows/morph-phase-codebase-analysis/SKILL.md +0 -269
  166. package/framework/skills/level-1-workflows/morph-phase-design/SKILL.md +0 -453
  167. package/framework/skills/level-1-workflows/morph-phase-design/references/architecture-analysis-guide.md +0 -44
  168. package/framework/skills/level-1-workflows/morph-phase-design/references/spec-authoring-guide.md +0 -55
  169. package/framework/skills/level-1-workflows/morph-phase-design/references/spec-example.md +0 -253
  170. package/framework/skills/level-1-workflows/morph-phase-implement/.morph/logs/activity.json +0 -38
  171. package/framework/skills/level-1-workflows/morph-phase-implement/SKILL.md +0 -493
  172. package/framework/skills/level-1-workflows/morph-phase-implement/prompts/code-quality-reviewer-prompt.md +0 -50
  173. package/framework/skills/level-1-workflows/morph-phase-implement/prompts/implementer-prompt.md +0 -46
  174. package/framework/skills/level-1-workflows/morph-phase-implement/prompts/spec-reviewer-prompt.md +0 -47
  175. package/framework/skills/level-1-workflows/morph-phase-implement/references/recap-example.md +0 -132
  176. package/framework/skills/level-1-workflows/morph-phase-implement/references/vsa-implementation-guide.md +0 -92
  177. package/framework/skills/level-1-workflows/morph-phase-plan/SKILL.md +0 -257
  178. package/framework/skills/level-1-workflows/morph-phase-tasks/.morph/logs/activity.json +0 -14
  179. package/framework/skills/level-1-workflows/morph-phase-tasks/SKILL.md +0 -291
  180. package/framework/skills/level-1-workflows/morph-phase-tasks/references/task-planning-patterns.md +0 -143
  181. package/framework/skills/level-1-workflows/morph-phase-tasks/references/tasks-example.md +0 -404
  182. package/framework/skills/level-1-workflows/morph-phase-tasks/scripts/validate-tasks.mjs +0 -112
  183. package/framework/skills/level-1-workflows/morph-phase-uiux/SKILL.md +0 -788
  184. package/framework/skills/level-1-workflows/morph-scope-escalation/SKILL.md +0 -147
  185. package/framework/squad-templates/backend-only.json +0 -47
  186. package/framework/squad-templates/frontend-only.json +0 -56
  187. package/framework/squad-templates/full-stack.json +0 -74
  188. package/src/commands/agents/agent-metrics.js +0 -174
  189. package/src/commands/agents/audit-dispatch.js +0 -82
  190. package/src/commands/agents/detect-agents.js +0 -275
  191. package/src/commands/agents/dispatch-agents.js +0 -461
  192. package/src/commands/agents/index.js +0 -13
  193. package/src/commands/agents/manage-agents.js +0 -352
  194. package/src/commands/agents/project-metrics.js +0 -74
  195. package/src/commands/phase/phase-reset.js +0 -74
  196. package/src/commands/scope/escalate.js +0 -217
  197. package/src/commands/state/advance-phase.js +0 -600
  198. package/src/commands/state/phase-runner.js +0 -215
  199. package/src/commands/state/state.js +0 -444
  200. package/src/commands/task/expand.js +0 -100
  201. package/src/commands/tasks/index.js +0 -4
  202. package/src/commands/tasks/task.js +0 -105
  203. package/src/commands/templates/index.js +0 -5
  204. package/src/commands/templates/template-render.js +0 -93
  205. package/src/commands/trust/trust.js +0 -118
  206. package/src/lib/agents/agents-manager.js +0 -349
  207. package/src/lib/build/build-runner.js +0 -99
  208. package/src/lib/checkpoints/checkpoint-hooks.js +0 -111
  209. package/src/lib/contracts/sprint-contract-generator.js +0 -137
  210. package/src/lib/scope/impact-analyzer.js +0 -106
  211. package/src/lib/trust/trust-manager.js +0 -157
  212. package/src/utils/tier-helpers.js +0 -24
  213. /package/framework/hooks/claude-code/{post-tool-use → core}/loop-detect.js +0 -0
@@ -1,217 +0,0 @@
1
- /**
2
- * MORPH-SPEC Scope Escalate Command
3
- *
4
- * Handles mid-implementation scope discovery by analyzing impact,
5
- * regressing phase or expanding tasks, and creating an audit trail.
6
- *
7
- * Usage:
8
- * morph-spec scope escalate <feature> --task <id> --reason "..."
9
- * morph-spec scope escalate <feature> --task <id> --reason "..." --dry-run
10
- * morph-spec scope escalate <feature> --task <id> --reason "..." --target design
11
- */
12
-
13
- import chalk from 'chalk';
14
- import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs';
15
- import { join } from 'path';
16
- import { loadState, saveState, derivePhase } from '../../core/state/state-manager.js';
17
- import { analyzeImpact } from '../../lib/scope/impact-analyzer.js';
18
-
19
- /**
20
- * Core escalation logic — exported for testing.
21
- *
22
- * @param {string} featureName
23
- * @param {Object} options
24
- * @param {string} options.task - Trigger task ID
25
- * @param {string} options.reason - Reason for escalation
26
- * @param {string} [options.target] - Override target phase
27
- * @param {boolean} [options.dryRun] - Don't execute, just recommend
28
- * @returns {Promise<{ success: boolean, error?: string, recommendation?: Object }>}
29
- */
30
- export async function escalateScope(featureName, options) {
31
- const state = loadState();
32
- const feature = state.features[featureName];
33
-
34
- if (!feature) {
35
- return { success: false, error: `Feature "${featureName}" not found in state.json` };
36
- }
37
-
38
- const featurePath = join(process.cwd(), '.morph', 'features', featureName);
39
- const currentPhase = feature.phase || derivePhase(featurePath);
40
- if (currentPhase !== 'implement') {
41
- return { success: false, error: `Scope escalation only available during implement phase (current: ${currentPhase})` };
42
- }
43
-
44
- // Read tasks.md
45
- const tasksPath = join(process.cwd(), '.morph', 'features', featureName, '4-tasks', 'tasks.md');
46
- let tasksMd = '';
47
- try {
48
- tasksMd = readFileSync(tasksPath, 'utf-8');
49
- } catch {
50
- return { success: false, error: 'tasks.md not found' };
51
- }
52
-
53
- // Read spec.md (optional — not all features have it)
54
- const specPath = join(process.cwd(), '.morph', 'features', featureName, '2-design', 'spec.md');
55
- let specMd = '';
56
- try { specMd = readFileSync(specPath, 'utf-8'); } catch { /* ok */ }
57
-
58
- // Analyze impact
59
- const analysis = analyzeImpact({
60
- triggerTaskId: options.task,
61
- tasksMd,
62
- specMd,
63
- reason: options.reason
64
- });
65
-
66
- // Apply target override
67
- if (options.target) {
68
- analysis.recommendation = `regress-${options.target}`;
69
- analysis.targetPhase = options.target;
70
- if (analysis.targetPhase === 'design') analysis.impact = 'high';
71
- else if (analysis.targetPhase === 'tasks') analysis.impact = 'medium';
72
- }
73
-
74
- // Dry-run: return recommendation without modifying state
75
- if (options.dryRun) {
76
- return { success: true, recommendation: analysis };
77
- }
78
-
79
- // Build escalation record
80
- const escId = `ESC-${String((feature.escalations?.length || 0) + 1).padStart(3, '0')}`;
81
- const record = {
82
- id: escId,
83
- triggerTask: options.task,
84
- reason: options.reason,
85
- impact: analysis.impact,
86
- action: analysis.recommendation,
87
- affectedTasks: analysis.affectedTasks,
88
- reviewedTasks: [],
89
- targetPhase: analysis.targetPhase || 'tasks',
90
- previousPhase: 'implement',
91
- createdAt: new Date().toISOString(),
92
- resolvedAt: null
93
- };
94
-
95
- // Execute based on recommendation
96
- if (analysis.recommendation.startsWith('regress')) {
97
- const targetPhase = analysis.targetPhase || 'tasks';
98
-
99
- // Flag completed tasks as needsReview (supports both v2 'done' and v3 'completed')
100
- if (feature.taskList) {
101
- for (const task of feature.taskList) {
102
- if (task.status === 'done' || task.status === 'completed') {
103
- task.needsReview = true;
104
- }
105
- }
106
- }
107
-
108
- // Reset phase
109
- feature.phase = targetPhase;
110
-
111
- // Reset relevant approval gates
112
- if (feature.approvalGates) {
113
- if (targetPhase === 'tasks' && feature.approvalGates.tasks) {
114
- feature.approvalGates.tasks = { approved: false, timestamp: null, approvedBy: null };
115
- }
116
- if (targetPhase === 'design') {
117
- if (feature.approvalGates.design) {
118
- feature.approvalGates.design = { approved: false, timestamp: null, approvedBy: null };
119
- }
120
- if (feature.approvalGates.tasks) {
121
- feature.approvalGates.tasks = { approved: false, timestamp: null, approvedBy: null };
122
- }
123
- }
124
- }
125
- }
126
-
127
- // Write escalation record to state
128
- if (!feature.escalations) feature.escalations = [];
129
- feature.escalations.push(record);
130
- feature.updatedAt = new Date().toISOString();
131
-
132
- saveState(state);
133
-
134
- // Create/append escalation-log.md
135
- writeEscalationLog(featureName, record);
136
-
137
- return { success: true, recommendation: analysis, escalationId: escId };
138
- }
139
-
140
- /**
141
- * Write escalation log entry to 4-tasks/escalation-log.md
142
- */
143
- function writeEscalationLog(featureName, record) {
144
- const logDir = join(process.cwd(), '.morph', 'features', featureName, '4-tasks');
145
- mkdirSync(logDir, { recursive: true });
146
- const logPath = join(logDir, 'escalation-log.md');
147
-
148
- const doneTasks = record.reviewedTasks?.length > 0
149
- ? record.reviewedTasks.join(', ')
150
- : '(all completed tasks flagged)';
151
-
152
- const entry = `
153
- ## ${record.id} — ${record.createdAt.split('T')[0]}
154
- - **Trigger:** ${record.triggerTask}
155
- - **Discovery:** ${record.reason}
156
- - **Impact:** ${record.impact} (${record.affectedTasks.length} tasks affected: ${record.affectedTasks.join(', ')})
157
- - **Action:** ${record.action} → ${record.targetPhase} phase
158
- - **Affected completed tasks flagged for review:** ${doneTasks}
159
- `;
160
-
161
- let existing = '';
162
- try { existing = readFileSync(logPath, 'utf-8'); } catch { /* new file */ }
163
-
164
- if (!existing) {
165
- writeFileSync(logPath, `# Scope Escalation Log\n${entry}`);
166
- } else {
167
- writeFileSync(logPath, existing + entry);
168
- }
169
- }
170
-
171
- /**
172
- * CLI command handler
173
- */
174
- export async function scopeEscalateCommand(feature, options) {
175
- console.log(chalk.cyan('\n========================================'));
176
- console.log(chalk.cyan(' MORPH-SPEC SCOPE ESCALATION'));
177
- console.log(chalk.cyan('========================================\n'));
178
-
179
- if (!options.task) {
180
- console.error(chalk.red('--task <id> is required'));
181
- process.exit(1);
182
- }
183
- if (!options.reason) {
184
- console.error(chalk.red('--reason "..." is required'));
185
- process.exit(1);
186
- }
187
-
188
- const result = await escalateScope(feature, options);
189
-
190
- if (!result.success) {
191
- console.error(chalk.red(`\n ${result.error}`));
192
- process.exit(1);
193
- }
194
-
195
- const rec = result.recommendation;
196
- console.log(chalk.gray('Trigger task:'), rec.triggerTask);
197
- console.log(chalk.gray('Impact:'), rec.impact);
198
- console.log(chalk.gray('Affected tasks:'), rec.affectedTasks.join(', '));
199
- console.log(chalk.gray('Recommendation:'), rec.recommendation);
200
- if (rec.targetPhase) console.log(chalk.gray('Target phase:'), rec.targetPhase);
201
-
202
- if (options.dryRun) {
203
- console.log(chalk.cyan('\n Dry-run — no changes made'));
204
- process.exit(2);
205
- }
206
-
207
- if (rec.recommendation === 'expand') {
208
- console.log(chalk.green(`\n Escalation ${result.escalationId} recorded (low impact)`));
209
- console.log(chalk.yellow(` Action: Use task expand to split the task:`));
210
- console.log(chalk.gray(` morph-spec task expand ${feature} ${options.task} --into "ID: Title" ...`));
211
- } else {
212
- console.log(chalk.green(`\n Escalation ${result.escalationId} executed`));
213
- console.log(chalk.yellow(` Phase regressed to: ${rec.targetPhase || 'tasks'}`));
214
- }
215
- console.log(chalk.gray(` Escalation log: .morph/features/${feature}/4-tasks/escalation-log.md`));
216
- console.log('');
217
- }