From 9eccd061b970a209a6891b8580238d2a35ff895a Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 28 Jan 2026 06:19:03 +0100 Subject: [PATCH] fix(orchestrator): pass enriched task description to all subagents Verification, execution optimizer, and final review agents were receiving the raw taskDescription instead of effectiveTaskDescription (which includes research context). This caused them to work with outdated/wrong prompts when regenerating plans. Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 2 +- package.json | 2 +- src/plan-orchestrator.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 11b8deb3..d6020adb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,7 +16,7 @@ When user says "COM": 1. Increment version in BOTH `package.json` AND `CLAUDE.md` 2. Run: `git add -A && git commit -m "chore: bump version to X.XXXX" && git push && npm run build && systemctl --user restart claudeman-web` -**Version**: 0.1414 (must match `package.json`) +**Version**: 0.1415 (must match `package.json`) ## Project Overview diff --git a/package.json b/package.json index d44555a8..eeb78394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claudeman", - "version": "0.1414", + "version": "0.1415", "description": "The missing control plane for Claude Code - run 20 autonomous agents with real-time monitoring and session persistence", "type": "module", "main": "dist/index.js", diff --git a/src/plan-orchestrator.ts b/src/plan-orchestrator.ts index 726ad5cb..54a1ef0d 100644 --- a/src/plan-orchestrator.ts +++ b/src/plan-orchestrator.ts @@ -1088,10 +1088,10 @@ Check \`${caseDir}/ralph-wizard/research/result.json\` for: onProgress?.('synthesis', 'Synthesizing subagent outputs...'); const synthesisResult = this.synthesizeResults(subagentResults); - // Phase 3: Verification + // Phase 3: Verification (use enriched task description from research) onProgress?.('verification', 'Running verification subagent...'); const verificationResult = await this.runVerification( - taskDescription, + effectiveTaskDescription, synthesisResult.items, onProgress, onSubagent @@ -1112,7 +1112,7 @@ Check \`${caseDir}/ralph-wizard/research/result.json\` for: try { onProgress?.('execution-optimization', 'Running execution optimizer for Claude Code...'); executionResult = await this.runExecutionOptimizer( - taskDescription, + effectiveTaskDescription, planWithReviews, onProgress, onSubagent @@ -1146,7 +1146,7 @@ Check \`${caseDir}/ralph-wizard/research/result.json\` for: try { onProgress?.('final-review', 'Running final review for holistic validation...'); finalReviewResult = await this.runFinalReview( - taskDescription, + effectiveTaskDescription, optimizedPlan, onProgress, onSubagent