Clean Protection Registry
What CLEAN.php & CLEANBACKUPS.php may and may never touch
Before running CLEAN.php or CLEANBACKUPS.php:
1. Read this page
2. Confirm the operation does not touch any TIER 1 path
3. Run SNAPSHOT first — always — no exceptions (D087/D119)
4. Run with dry=1 first — review before executing
5. If unsure — stop and ask David
Tier 1 — Never TouchHARD RULE
Tier 2 — Protected, Check Before TouchingASK DAVID
Tier 3 — Safe to CleanTRASH ONLY
TMP Rules — backend/tmp/
backend/tmp/ is bootstrap staging ONLY. Files here are temporary by definition.
CLEAN MAY trash: *.b64.txt files older than 24h · boot*.php files older than 24h · any file not matching an active bootstrap operation
CLEAN MUST NEVER trash: files written in the last 10 minutes (active operation) · any file with a .keep extension
WISDOM: Bootstrap scripts that fail mid-run leave orphans in tmp/. CLEAN sweeps these — that's its primary job in tmp/. Never sweep tmp/ mid-session without confirming no active bootstrap.
Patterns — What CLEAN.php Detects as Safe
Registry of Registries
| BACKUP-REG.md | Backup paths and naming for every file |
| CLEAN-REG.md | This page's source. Protection rules for CLEAN. |
| DIR-REG.md | Directory structure. critical/ subdirs. |
| NAV-REG.md | Navigation. Tabs. CM/ML. Page tiers. |
| RULES-REG.md | Session rules. All systems. |
| STANDARDS-REG.md | Design and build standards. |
| STANDARDS-INDEX-REG.md | Index of all standards pages. |
Source: systems/governance/CLEAN-REG.md v1.2 · maintained by Server [40] · D363