← System
Standards / System / Clean v1.0 · 08.05.26
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.mdBackup paths and naming for every file
CLEAN-REG.mdThis page's source. Protection rules for CLEAN.
DIR-REG.mdDirectory structure. critical/ subdirs.
NAV-REG.mdNavigation. Tabs. CM/ML. Page tiers.
RULES-REG.mdSession rules. All systems.
STANDARDS-REG.mdDesign and build standards.
STANDARDS-INDEX-REG.mdIndex of all standards pages.

Source: systems/governance/CLEAN-REG.md v1.2 · maintained by Server [40] · D363

← Standards System Directory Nav Clean Backup