What problem does it solve?
It identifies risks and inconsistencies in how the contabilidad system sanitizes folders, repairs orphaned paths, and applies path/rename-related cleanup across the filesystem and classification storage.
Core Features & Use Cases
- Verifies destination and orphan detection logic in
gestor_contable/core/classification_utils.py so broken routes are detected only when the destination no longer exists.
- Audits Windows-safe folder name sanitization in
gestor_contable/core/classifier.py by checking character replacement rules and _sanitize_folder() behavior.
- Checks destructive folder cleanup safeguards in
gestor_contable/core/folder_sanitizer.py by confirming empty-folder checks and structural-folder protections before any rmdir/rmtree-style removal.
- Use case: Before running folder-curation operations in production, you can request a targeted audit of path healing, empty-folder cleanup, and SQLite-related rename completeness to reduce the chance of deleting valid folders or leaving routes desynchronized.
Quick Start
Ask the AI to run an audit report for this repo that checks _sanitize_folder(), empty-folder deletion guards, and orphan/path-rot detection in the specified Python modules.