From cc5397e9bae10a16b7aae4eb21e605b63acb0a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CBeeRad=E2=80=9D?= Date: Thu, 29 Jan 2026 15:30:49 +1100 Subject: [PATCH] docs: update prd.json and progress.txt for stories 3-7 - Story 3: delegateToWiseRAH removed - Story 4: Chat agent panels removed - Story 5: Chat API routes removed - Story 6: Two-panel layout (chat removed) - Story 7: RAHChat and related components removed Co-Authored-By: Claude Opus 4.5 --- ralph/prd.json | 20 ++++++------- ralph/progress.txt | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 10 deletions(-) diff --git a/ralph/prd.json b/ralph/prd.json index f6d901e..3e61d50 100644 --- a/ralph/prd.json +++ b/ralph/prd.json @@ -43,8 +43,8 @@ "src/tools/infrastructure/registry.ts no longer imports delegateToWiseRAH", "npm run type-check passes" ], - "passes": false, - "notes": "" + "passes": true, + "notes": "Deleted delegateToWiseRAH.ts and removed from registry.ts and groups.ts. Also deleted orphaned test scenarios (delegate-wise.ts and delegate-mini.ts) since delegateToMiniRAH was never in the registry." }, { "id": "4", @@ -57,8 +57,8 @@ "No remaining imports of these components", "npm run type-check passes" ], - "passes": false, - "notes": "" + "passes": true, + "notes": "These components were not imported anywhere - clean deletion with no cascading changes needed." }, { "id": "5", @@ -70,8 +70,8 @@ "app/api/rah/ directory can be deleted if empty after this", "npm run type-check passes" ], - "passes": false, - "notes": "" + "passes": true, + "notes": "Deleted both routes and the now-empty app/api/rah/ directory. RAHChat.tsx still references the endpoint but will be deleted in Story 7." }, { "id": "6", @@ -84,8 +84,8 @@ "Chat-related keyboard shortcuts removed (Cmd+J)", "npm run type-check passes" ], - "passes": false, - "notes": "" + "passes": true, + "notes": "Deleted ChatPane.tsx, removed 'chat' from PaneType, updated ThreePanelLayout and LeftToolbar. Default slotB is now null (closed). Changed persisted state keys to v4 to avoid stale 'chat' type in existing user storage." }, { "id": "7", @@ -98,8 +98,8 @@ "src/components/agents/hooks/useSSEChat.ts deleted", "npm run type-check passes" ], - "passes": false, - "notes": "Check if ToolDisplay.tsx is used elsewhere before deleting" + "passes": true, + "notes": "Deleted all chat components: RAHChat.tsx, TerminalInput.tsx, TerminalMessage.tsx, useSSEChat.ts, ReasoningTrace.tsx, ToolDisplay.tsx. Simplified WorkflowsPane to show MCP integration message instead of chat." }, { "id": "8", diff --git a/ralph/progress.txt b/ralph/progress.txt index 11c7411..3ba3db6 100644 --- a/ralph/progress.txt +++ b/ralph/progress.txt @@ -54,3 +54,74 @@ Goal: Strip ra-h_os to lightweight 2-panel UI + MCP server - TerminalInput had voice UI (amplitude bars, mic icons) that needed cleanup - No imports to these files from other parts of the codebase +## Story 3: Remove orchestration tools (delegateToWiseRAH) +- Completed: Thu 29 Jan 2026 +- Files deleted: + - src/tools/orchestration/delegateToWiseRAH.ts + - tests/evals/scenarios/delegate-wise.ts + - tests/evals/scenarios/delegate-mini.ts +- Files modified: + - src/tools/infrastructure/registry.ts (removed import and references) + - src/tools/infrastructure/groups.ts (removed from TOOL_GROUP_ASSIGNMENTS) + - tests/evals/scenarios/index.ts (removed deleted test imports) +- Learnings: + - delegateToMiniRAH test also removed since the tool never existed in the registry + - The tool was a thin wrapper around WorkflowExecutor, which remains for workflow functionality + - Clean removal - no other files depended on this tool + +## Story 4: Remove chat agent components +- Completed: Thu 29 Jan 2026 +- Files deleted: + - src/components/agents/AgentsPanel.tsx + - src/components/agents/MiniRAHPanel.tsx + - src/components/agents/WiseRAHPanel.tsx +- Files modified: None +- Learnings: + - These components were not imported anywhere in the codebase + - Clean deletion with no cascading changes needed + - AgentsPanel contained ~1100 lines of complex UI for delegation management (now obsolete) + +## Story 5: Remove chat API route +- Completed: Thu 29 Jan 2026 +- Files deleted: + - app/api/rah/chat/route.ts + - app/api/rah/usage/route.ts + - app/api/rah/ (empty directory) +- Files modified: None +- Learnings: + - RAHChat.tsx still references /api/rah/chat endpoint (will be deleted in Story 7) + - Type-check passes because the endpoint URL is just a string constant + - tests/evals/runner.ts also references this endpoint (evals won't work until cleaned up) + +## Story 6: Simplify to two-panel layout +- Completed: Thu 29 Jan 2026 +- Files deleted: + - src/components/panes/ChatPane.tsx +- Files modified: + - src/components/panes/types.ts (removed 'chat' from PaneType, ChatPaneProps) + - src/components/panes/index.ts (removed ChatPane export) + - src/components/layout/ThreePanelLayout.tsx (removed chat case, defaults) + - src/components/layout/LeftToolbar.tsx (removed chat icon/type) +- Learnings: + - Changed persisted state keys from v3 to v4 to avoid stale 'chat' type in user storage + - Default slotB is now null instead of { type: 'chat' } + - Cmd+\ now opens node pane instead of chat + - Layout still flexible (2-panel with split handle) but chat option removed + +## Story 7: Remove RAHChat component +- Completed: Thu 29 Jan 2026 +- Files deleted: + - src/components/agents/RAHChat.tsx + - src/components/agents/TerminalInput.tsx + - src/components/agents/TerminalMessage.tsx + - src/components/agents/hooks/useSSEChat.ts + - src/components/helpers/ReasoningTrace.tsx + - src/components/helpers/ToolDisplay.tsx +- Files modified: + - src/components/panes/WorkflowsPane.tsx (simplified - removed RAHChat, shows MCP integration message) +- Learnings: + - WorkflowsPane was heavily dependent on RAHChat for delegation detail views + - Simplified WorkflowsPane to show a message about MCP integration + - ReasoningTrace and ToolDisplay were only used by RAHChat - safe to delete + - ~2000 lines of chat UI code removed +