From 6902c37cedab8043c1ccc91bedb60b398dd4b105 Mon Sep 17 00:00:00 2001 From: Jon Chery Date: Fri, 29 May 2026 18:11:49 +0000 Subject: [PATCH] =?UTF-8?q?fix(P03):=20improve=20planner=20task=20descript?= =?UTF-8?q?ions=20=E2=80=94=20avoid=20redundant=20REQ-ID=20in=20task=20lin?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ---ci--- phase: 3 milestone: v0.6.0 plan: 03 task: 03-03 status: execute ---/ci--- --- src/agents/planner.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/agents/planner.ts b/src/agents/planner.ts index e22ca36..0683665 100644 --- a/src/agents/planner.ts +++ b/src/agents/planner.ts @@ -222,7 +222,10 @@ export class PlannerAgent extends BaseAgent { wave: 1, requirements: chunk.map((r) => r.id), dependsOn: [], - tasks: chunk.map((r) => `Implement ${r.id}: ${r.description.split(": ").slice(1).join(": ") || r.description}`), + tasks: chunk.map((r) => { + const desc = r.description.split(": ").slice(1).join(": ") || r.description; + return desc !== r.id ? `Implement ${r.id}: ${desc}` : `Implement ${r.id}`; + }), mustHaves: chunk.map((r) => `${r.id} implemented and testable`), }); } @@ -236,7 +239,10 @@ export class PlannerAgent extends BaseAgent { wave: plans.length > 0 ? Math.max(...plans.map((p) => p.wave)) + 1 : 2, requirements: chunk.map((r) => r.id), dependsOn: plans.slice(0, plans.length > 0 ? 1 : 0).map((p) => p.name), - tasks: chunk.map((r) => `Implement ${r.id}: ${r.description.split(": ").slice(1).join(": ") || r.description}`), + tasks: chunk.map((r) => { + const desc = r.description.split(": ").slice(1).join(": ") || r.description; + return desc !== r.id ? `Implement ${r.id}: ${desc}` : `Implement ${r.id}`; + }), mustHaves: chunk.map((r) => `${r.id} implemented and testable`), }); }