886 B
886 B
- Phase 1: Input Analysis
- Read
audit_report.md(if available - not found). - Identify areas marked as "CAUTION" or "KEEP".
- Read
- Phase 2: Check Idempotency (Content-Based)
- Verify if files already meet the organization standards.
- Skip files that already have sorted imports or standard headers.
- Rule: Logic must be deterministic based on FILE CONTENT, ignoring git history.
- Phase 3: Safe Cleanup (Non-Destructive)
- Remove unused local variables (verified SAFE).
- Organize imports (sort, group, remove dups - strict side-effect check).
- Standardize comments.
- Phase 4: Clarification & Documentation
- Add standard tags (
[INTENTIONAL],[LEGACY]). - Document implicit dependencies (Gemfile or docs).
- Add standard tags (
- Phase 5: Reporting
- Generate
organization_report.md.
- Generate