From 3dd766e2484614e4d3fff3f3357a5baa485504a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CBeeRad=E2=80=9D?= Date: Thu, 29 Jan 2026 15:34:14 +1100 Subject: [PATCH] docs: update prd.json and progress.txt for story 8 Co-Authored-By: Claude Opus 4.5 --- ralph/prd.json | 4 ++-- ralph/progress.txt | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/ralph/prd.json b/ralph/prd.json index 3e61d50..86dc882 100644 --- a/ralph/prd.json +++ b/ralph/prd.json @@ -110,8 +110,8 @@ "Keep files that support MCP tools or standalone functionality", "npm run type-check passes" ], - "passes": false, - "notes": "Be conservative - some services may be used by MCP tools" + "passes": true, + "notes": "Deleted registry.ts (only used by deleted contextBuilder). Also deleted unused src/services/ai.ts and entire src/services/helpers/ directory (contextBuilder.ts, logger.ts). Kept: workflowExecutor.ts (MCP), quickAdd.ts (API), toolResultUtils.ts (used by both), transcriptSummarizer.ts (used by quickAdd), autoEdge.ts (API nodes endpoint), types.ts." }, { "id": "9", diff --git a/ralph/progress.txt b/ralph/progress.txt index 3ba3db6..8a51e97 100644 --- a/ralph/progress.txt +++ b/ralph/progress.txt @@ -125,3 +125,24 @@ Goal: Strip ra-h_os to lightweight 2-panel UI + MCP server - ReasoningTrace and ToolDisplay were only used by RAHChat - safe to delete - ~2000 lines of chat UI code removed +## Story 8: Clean up agent services +- Completed: Thu 29 Jan 2026 +- Files deleted: + - src/services/agents/registry.ts (only used by contextBuilder.ts which was deleted) + - src/services/ai.ts (not imported anywhere) + - src/services/helpers/contextBuilder.ts (not imported anywhere - was for chat agent context) + - src/services/helpers/logger.ts (not imported anywhere) +- Files kept (still used by MCP tools/API): + - src/services/agents/workflowExecutor.ts (executeWorkflow tool, /api/workflows/execute) + - src/services/agents/quickAdd.ts (/api/quick-add endpoint) + - src/services/agents/toolResultUtils.ts (used by workflowExecutor and quickAdd) + - src/services/agents/transcriptSummarizer.ts (used by quickAdd for chat transcript import) + - src/services/agents/autoEdge.ts (used by /api/nodes endpoint for auto-edge creation) + - src/services/agents/types.ts (AgentDefinition types - still referenced) +- Learnings: + - contextBuilder.ts was the bridge between agents and the chat system - with chat gone, it's unused + - registry.ts defined agent configurations (ra-h, ra-h-easy, workflow) used only by contextBuilder + - ai.ts was a standalone AIService class that was never imported anywhere + - 776 lines of code removed + - The remaining agent services are all used by MCP-accessible functionality +