Never rebuild mid-week during founder deep-work blocks. Batch image mutations into scheduled windows.
Sunday 9:45 PM PT (after Review agent runs)
Exception: Critical security patch or total system failure only.
Time cost: ~5 minutes + restart
Batch these: Accumulate in pending-rebuilds.md, execute during window
Triggers:
Examples from Master Plan:
| Phase | Capability | Why Rebuild |
|---|---|---|
| 3 | Zoho Creator connector | Node SDK |
| 5 | ChromaDB | Native libs |
| 5 | Embeddings | Tokenizer deps |
| 6 | SQLite/Postgres layer | DB driver |
| 6 | Reconciliation assist | pandas |
| 6 | Anomaly detection | Stats libs |
| Security | HTML parsing | bs4/lxml |
Expected total over 12 months: ~5 rebuilds (if disciplined)
Time cost: 3-10 seconds
Safe to do immediately
Examples:
.md files (soul.md, identity.md, user.md, reference/, working/)Time cost: Instant to 5 minutes (propagation)
Safe to do immediately
Examples:
(Track in pending-rebuilds.md - moved to rebuild queue during window)
Queue cleared: Feb 14, 2026 rebuild completed all pending items.
Date: Feb 14, 2026
Reason: Agent analysis infrastructure + foundational capabilities (data science, CLI tools, terminal multiplexers, archive utilities)
Packages added:
python3-pandas python3-numpy python3-bs4 python3-lxmlyoutube-transcript-api yt-dlp (pip)jq ripgrep tree htop rsynctmux screen expectzip unzipVerified versions:
Note: Mid-week rebuild (Friday) at Quan's explicit request. Batched 6 queued capabilities from pending-rebuilds.md (queued Feb 13-14). All services auto-recovered.
Sunday, Feb 16, 2026 @ 9:45 PM PT
Before requesting Minnie capability:
Will this survive container restart?
Is it urgent (blocks critical path)?
Can it be externalized?
When queued rebuild is ready (Sunday 9:45 PM):
pending-rebuilds.mdOPENCLAW_DOCKER_APT_PACKAGES in one batchREBUILD-IMAGE.shpending-rebuilds.mdEmergency rebuild:
After any rebuild, immediately run:
# Inside container (critical - do this first)
/home/node/.openclaw/workspace/tools/setup-ssh-symlinks.sh
Why: SSH keys stored in persistent volume need symlinks to ~/.ssh/ for git to work. Container rebuilds wipe ephemeral directories.
See CONTAINER-STARTUP.md for full checklist.
# On host
docker builder prune -af
Why: Rebuilds leave stale build cache (intermediate layers, failed attempts, superseded installs). Over time this accumulates "invisible disk drift" (5-10GB per quarter).
What it removes: Build cache only (safe to prune)
What it preserves: Running containers, volumes, active images
Example: Feb 13 cleanup reclaimed 8.9GB of PyTorch layers, Chromium deps, and apt caches from prior iterations.
Critical distinction:
Run this after Sunday rebuild windows to prevent mid-phase capacity surprises.
From Loss Function:
Execution may never degrade coherence beyond threshold. Mid-week rebuilds fragment deep-work blocks.
This system enforces: Batch infrastructure entropy into Sunday night maintenance window, preserving Monday-Friday founder attention for strategic work.
Created: Feb 13, 2026
Next review: After first 3 scheduled windows (refine cadence if needed)