# File Audit - 2026-02-11

## Summary
Total files catalogued: 419
- Actively loaded workspace files: 9
- Recent memory files (last 7 days): 6
- Agent profile files: 11 
- Script/cron referenced files: ~25
- Stale/orphaned candidates for archiving: ~45

## Actively Loaded Workspace Files (DO NOT ARCHIVE)
These are loaded by Clawdbot in every session per AGENTS.md:
- `AGENTS.md` ✓ Core instructions
- `SOUL.md` ✓ Identity/personality  
- `USER.md` ✓ User context
- `IDENTITY.md` ✓ Identity details
- `HEARTBEAT.md` ✓ Heartbeat checklist
- `CONTEXT.md` ✓ Current context
- `TOOLS.md` ✓ Local tool notes
- `MEMORY.md` ✓ Long-term memory (372 lines - needs trimming)
- `TODO.md` ✓ Current tasks

## Recent Memory Files (DO NOT ARCHIVE)
Daily logs from last 7 days:
- `memory/2026-02-11.md`
- `memory/2026-02-10.md`
- `memory/2026-02-09.md`
- `memory/2026-02-08.md`
- `memory/2026-02-07.md`
- `memory/2026-02-06.md`
- `memory/2026-02-05.md`

## Agent Profile Files (DO NOT ARCHIVE)
Topic-specific agent configurations:
- `agents/topic-1-general.md`
- `agents/topic-2-rateright.md`
- `agents/topic-4-sales.md`
- `agents/topic-5-research.md`
- `agents/topic-6-construction.md`
- `agents/topic-7-system.md`
- `agents/topic-8-personal.md`
- `agents/topic-10-ideas.md`
- `agents/topic-11-content.md`
- `agents/topic-388-legal.md`
- `agents/topic-391-financial.md`

## Files Referenced by Scripts/Cron Jobs (DO NOT ARCHIVE)
Active system files:
- `scripts/rivet.sh` - Main script (cron: sync every 30min)
- `scripts/crash-loop-guard.sh` - Safety net (cron: every 2min)
- `scripts/health-check.sh` - App monitoring
- `scripts/health-watchdog.sh` - System monitoring
- `scripts/gmail-check-fixed.py` - Email checking
- `scripts/calendar-check.py` - Calendar integration
- `scripts/youtube-auto-intel.py` - YouTube monitoring
- `scripts/task-executor.py` - Task processing
- `scripts/process-vapi-calls.sh` - Voice call processing
- `health-state.json` - Health monitoring state
- `memory/heartbeat-state.json` - Heartbeat tracking
- All current log files in `logs/` (2026-02-XX.log)
- All CCVPS task logs in `logs/ccvps/`

## CANDIDATES FOR ARCHIVING

### 1. Completed Project Files (READY TO ARCHIVE)
- `YOUTUBE-PIPELINE-COMPLETE.md` ✓ Project completed
- `YOUTUBE-AUTONOMOUS-COMPLETE.md` ✓ Project completed
- `YOUTUBE-SUMMARY.txt` ✓ Old summary
- `YOUTUBE-SYSTEM-README.md` ✓ Legacy docs

### 2. Old Audit Reports (READY TO ARCHIVE)
- `audit-reports/2026-02-09-comprehensive-codebase-audit.md` ✓ Actioned

### 3. Legacy System Files (READY TO ARCHIVE)
- `CC-VPS-INBOX.md` ✓ Replaced by direct commands
- `RIVET-TO-CCVPS.md` ✓ Now used only for status updates
- `TODO-INBOX.md` ✓ Legacy todo system
- `AGENT-SYSTEM.md` ✓ Superseded by current AGENTS.md
- `COMPANY.md` ✓ Info now in SOUL.md/USER.md
- `LESSONS.md` ✓ Content merged into MEMORY.md
- `REVERSE-PROMPTS.md` ✓ Legacy experiment
- `SELF-IMPROVE-PROMPTS.md` ✓ Legacy experiment
- `DAILY-SYNC-PROMPTS.md` ✓ Legacy experiment
- `SYSTEM-ARCHITECTURE.md` ✓ Outdated architecture
- `BRAINSTORM.md` ✓ Old brainstorm session
- `SYSTEM.md` ✓ Legacy system docs
- `TOPICS.md` ✓ Info now in agent profiles

### 4. Temp Files (READY TO ARCHIVE)
- `temp/sms-audit-data.md` ✓ Temp analysis
- `test_speech.txt` ✓ Test file
- `tmp/` directory contents ✓ Generated images/temp files
- All files in `work-logs/` ✓ Old work logs

### 5. Old Memory Archive Items (READY TO ARCHIVE)
- `memory/archive/2025/` ✓ Old archive items from 2025
- `memory/archive/IMPLEMENTATION-PLAN.md` ✓ Old plan
- `memory/archive/SYSTEM-v2-draft.md` ✓ Old draft
- Old completed plans in `memory/plans/overnight/` that are done
- Old agent update files that are stale

### 6. Development/Config Files (CONSIDER ARCHIVING)
- `app/` directory ✓ Development examples
- `components/` directory ✓ Development components  
- `lib/` directory ✓ Development libraries
- `src/` directory ✓ Development source
- `supabase/migrations/` ✓ Applied migrations
- Old timesheet files (keep template, archive filled ones)
- `create_notion_database.py` ✓ One-time setup script
- `rivet_ideas_db.py` ✓ One-time setup script
- `notion_rivet_ideas_config.json` ✓ Static config

### 7. Static Reference Files (CONSIDER ARCHIVING)
- `designs/` directory ✓ Generated design assets (move to archive for reference)
- Old setup files in `setup/nginx-ssl/` ✓ One-time setup

## Files to KEEP (Active/Current)
- All workspace files (AGENTS.md, SOUL.md, etc.)
- All recent memory files (last 7 days)
- All agent profile files
- All active scripts and their configs
- All current log files
- Current knowledge files in `knowledge/`
- Active plans in `memory/plans/` that are ongoing
- Skills in `skills/` directory (active tooling)
- Content engine files (active system)
- Agent feeds system (active)

## Recommendations
1. Archive ~45 identified stale files to `archive/` directory
2. Trim MEMORY.md from 372 lines to under 200 lines
3. Clean up crontab entries as specified
4. Keep all recent memory, active scripts, and current projects

## Notes
- This audit focuses on safety - better to keep something active than break a dependency
- All development files (app/, components/, lib/, src/) appear to be part of the growth engine and should be carefully evaluated before archiving
- Some files in memory/plans/ are large but may contain ongoing project info