chatwoot-develop/task.md
2026-01-20 13:16:32 -03:00

886 B

  • Phase 1: Input Analysis
    • Read audit_report.md (if available - not found).
    • Identify areas marked as "CAUTION" or "KEEP".
  • 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).
  • Phase 5: Reporting
    • Generate organization_report.md.