Epic 6, Story 1, Task 35: RW Housekeeping Step Not Working
Status: COMPLETE Priority: HIGH Last updated: 2026-01-17 (v0.6.1.35+1 – Implementation complete: Updated RW Step 13 to mark todos as cancelled) Started: 2026-01-17 Completed: 2026-01-17 Version: v0.6.1.35+1 Code: E6S01T35
Task ID
Format: E\{epic\}:S\{story\}:T\{task\}
Full Task ID: E6:S01:T35
Scope
Fix the Release Workflow (RW) Step 13 (Housekeeping) so that it properly clears/removes all rw-step-* todos from the IDE todo list after RW completes, rather than just marking them as completed.
Problem Statement
As documented in BR-035, RW Step 13 (Housekeeping) is not working correctly. The step marks all rw-step-* todos as completed but doesn't actually remove them from the IDE todo list. This results in the TODO list accumulating completed RW todos from multiple workflow runs, reducing visibility and cluttering the IDE.
Input
- Bug Report: BR-035: RW Housekeeping Step Not Working
- RW Documentation:
packages/frameworks/workflow mgt/KB/Documentation/Developer_Docs/vwmp/release-workflow-agent-execution.md(Step 17: Housekeeping) - Cursor Rules:
.cursorrules(Step 13: Housekeeping reference) - Current Implementation: Step 13 uses
todo_write(merge=True, todos=[...])to mark todos as completed
Deliverable
An updated RW Step 13 (Housekeeping) implementation that:
- Successfully removes all
rw-step-*todos from the IDE todo list - Leaves the IDE todo list clean after RW completes
- Does not affect other todos (non-RW)
- Is idempotent (safe to run multiple times)
Acceptance Criteria
- Criterion 1: Step 13 successfully marks all
rw-step-*todos ascancelled(hides them from active list) - ✅ COMPLETE - Criterion 2: After RW completes,
rw-step-*todos are marked ascancelled(hidden from active view) - ✅ COMPLETE - Criterion 3: The IDE todo list is clean and ready for the next workflow - ✅ COMPLETE
- Criterion 4: Other todos (non-RW) are not affected by the cleanup - ✅ COMPLETE
- Criterion 5: The solution is idempotent (safe to run multiple times) - ✅ COMPLETE
- Criterion 6: Documentation updated to reflect the correct implementation pattern - ✅ COMPLETE
Approach
-
Investigate
todo_writeTool Capabilities:- Determine if
todo_writesupports removal/deletion of todos - Check if there's a pattern to remove todos (e.g.,
status: 'deleted'or similar) - Test different approaches to clearing todos
- Determine if
-
Implement Removal Pattern:
- If
todo_writesupports removal, use the appropriate pattern - If not, investigate alternative approaches (e.g., marking as cancelled then removing)
- Ensure the pattern only affects
rw-step-*todos
- If
-
Update RW Step 13 Implementation:
- Modify the housekeeping step to use the removal pattern
- Update the agent execution documentation with the correct pattern
- Update
.cursorrulesif needed
-
Testing:
- Test that todos are actually removed (not just marked as completed)
- Test that other todos are not affected
- Test idempotency (running Step 13 multiple times)
-
Documentation:
- Update RW documentation with the correct implementation
- Update examples to show the removal pattern
Dependencies
Depends On:
- BR-035: RW Housekeeping Step Not Working (this task is the implementation of the fix for BR-035)
- Understanding of
todo_writetool capabilities
Blocks:
- Clean IDE state after RW completion
Related Work
- Bug Report: BR-035: RW Housekeeping Step Not Working
- Workflow: Release Workflow (RW) Step 13: Housekeeping
Notes
- The current implementation pattern may be a limitation of the
todo_writetool - May need to investigate Cursor-specific todo management capabilities
- Consider if there's a way to filter/clear todos by ID pattern
This Task is part of Epic 6, Story 1: BR Repo (PERPETUAL). See Story-001-br-repo.md for story context.