[Spec 0015] Add CLEANUP protocol for codebase maintenance#33
[Spec 0015] Add CLEANUP protocol for codebase maintenance#33waleedkadous merged 3 commits intomainfrom
Conversation
Implements four-phase CLEANUP protocol: - AUDIT: Identify dead code, unused deps, stale docs - PRUNE: Soft-delete with restore.sh generation - VALIDATE: Run tests to ensure nothing broke - INDEX: Update architecture docs and project tracking Key features: - Soft-delete strategy (30-day retention in .trash/) - Auto-generated restore.sh scripts - Comprehensive audit report template - Integration with architecture-documenter agent
Multi-Agent Review: Claude + Gemini + CodexHIGH Priority
MEDIUM Priority
LOW Priority
Consensus on INDEX: All reviewers agree "INDEX" is a poor name. Strongest candidates:
Please address HIGH priority items before merge. |
HIGH priority: - Rename INDEX phase to SYNC (all 3 reviewers agreed) - Keep audit reports versioned (remove from .gitignore) - Simplify soft-delete: use git rm for tracked files, .trash/ for untracked only - Add governance integration section (clarify no spec/plan/review needed) MEDIUM priority: - Improve audit template: empty tables, add Tool Output and Owner Decision columns - Add dry-run guidance for retention cleanup (find -print before -delete)
Addressed FeedbackAll HIGH and MEDIUM priority items have been addressed: HIGH Priority (all fixed)
MEDIUM Priority (all fixed)
Ready for re-review! |
Fixes from re-review: - codev/plans/0015-cleanup-protocol.md: 5 INDEX → SYNC fixes - codev/projectlist.md: 2 INDEX → SYNC fixes in summary and notes - codev/cleanup/.gitkeep: Clarify only .trash/ is gitignored - AGENTS.md and CLAUDE.md: Clarify audit reports are versioned, only .trash/ gitignored
Fixed Remaining IssuesAll remaining INDEX → SYNC references and gitignore clarity issues have been fixed: Files Updated
Ready for re-review! |
Summary
Implements the CLEANUP protocol as specified in
codev/specs/0015-cleanup-protocol.md. This is a four-phase protocol for systematic codebase maintenance:Key Features
.trash/with 30-day retentionrestore.sh: Easy rollback if something was incorrectly removedFiles Changed
codev/protocols/cleanup/protocol.md- Main protocol definitioncodev/protocols/cleanup/templates/audit-report.md- Audit report templatecodev/cleanup/.gitkeep- Runtime artifacts directory.gitignore- Added cleanup artifacts exclusionsCLAUDE.md/AGENTS.md- Added CLEANUP to protocol list and directory structureTest Plan