T06 · System Persistence
- Location
scripts/install.sh:149- Finding
Persistent OpenClaw Maintenance Jobs Are Installed Without Per-Run Approval
- Content
View full analysis
/dev/null | grep -c "Memory Pro" || true) if [ "$EXISTING_CRONS" -gt 0 ]; then echo " ⏭️ Memory Pro crons already exist ($EXISTING_CRONS found)" else # Daily maintenance cron openclaw cron add \ --name "Memory Pro — Daily Cleanup" \ --cron "30 23 * * *" \ --tz "$(python3 -c 'import time; print(time.tzname[0])' 2>/dev/null || echo 'UTC')" \ --timeout-seconds 120 \ --message 'You are a memory maintenance assistant. Tasks: 1. Read today'\''s memory/YYYY-MM-DD.md (use today'\''s date) 2. Extract key decisions, lessons, and rules 3. Append them to the appropriate memory/topics/*.md files 4. Do NOT delete any files or overwrite existing content 5. If nothing to organize, reply "No maintenance needed today." Output: ✅ Daily cleanup: X topics updated' \ > /dev/null 2>&1 && echo " ✅ Daily cleanup cron created (23:30)" || echo " ⚠️ Failed to create daily cron" # Weekly deep maintenance cron openclaw cron add \ --name "Memory Pro — Weekly Deep Clean" \ --cron "0 23 * * 0" \ --tz "$(python3 -c 'import time; print(time.tzname[0])' 2>/dev/null || echo 'UTC')" \ --timeout-seconds 180 \ --message 'You are a memory maintenance assistant. Weekly deep clean: 1. Read all memory/topics/*.md files 2. Remove duplicate content across files 3. Merge related entries 4. Trim each file to under 100 lines (keep most recent/important) 5. Update memory/MEMORY-INDEX.md if topics changed 6. Do NOT delete any files or modify MEMORY.md Output: ✅ Weekly cleanup: X files updated, Y duplicates removed' \ > /dev/null 2>&1 && echo " ✅ Weekly deep clean cron created (Sunday 23:00)" || echo " ⚠️ Failed to create ...[truncated 1577 chars]- Remediation
View remediation
