This checklist ensures nothing critical is lost during the monolith → microservices migration.
- File:
workspace/data/knowledge-graph.db- Stats: 655 docs, 7,829 entities, 195,651 relationships, 212 communities
- Migration: Copy to
@soulfield/knowledge-graphrepo - Backup: Create 3 copies before migration
- File:
workspace/data/sqlite-memory.db(if exists)- Migration: Copy to
@soulfield/memoryrepo
- Migration: Copy to
- File:
workspace/data/workflow-events.db(if exists)- Migration: Copy to
@soulfield/orchestratorrepo
- Migration: Copy to
- Directory:
training-data/real-world/- Content: JSON performance capture files for DSPy optimization
- Migration: Archive to S3/GCS, maintain structure
-
workspace/agent-workspace/agents/finance/- 7 analysis, 8 models -
workspace/agent-workspace/agents/marketing/- Campaigns, funnels -
workspace/agent-workspace/agents/seo/- Keywords, competitors -
workspace/agent-workspace/agents/visionary/- 15 vision documents -
workspace/agent-workspace/agents/builder/- Landing pages, products -
workspace/agent-workspace/agents/governor/orchestrations/
-
workspace/agent-workspace/projects/cashflow-micro-offer-*(9 projects) -
workspace/agent-workspace/projects/asset-compounder-*(2 projects)
-
workspace/agent-workspace/shared/templates/ -
workspace/agent-workspace/shared/cove-cycles/
Migration Strategy:
- Archive entire
workspace/to S3/GCS - Maintain readonly access from new services
-
.env- Copy all API keys to password manager -
.env.production(if exists) -
.env.local(if exists)
# LLM Providers
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
PERPLEXITY_API_KEY=
ZAI_API_KEY=
GEMINI_API_KEY=
# Memory & Storage
SUPABASE_URL=
SUPABASE_ANON_KEY=
SUPABASE_SERVICE_KEY=
# Tools & Services
BRIGHTDATA_TOKEN=
JINA_API_KEY=
INFRANODUS_API_KEY=
REF_API_KEY=
APIFY_TOKEN=
# Google Workspace
GCAL_CLIENT_ID=
GCAL_CLIENT_SECRET=
GCAL_REFRESH_TOKEN=-
backend/services/mcp/mcpClient.cjs- Extract MCP_SERVERS config -
.mcp.json(if exists in other environments)
-
workspace/docs/Obsidian/- Original vault -
workspace/docs/Obsidian-v2/- Truth-validated vault (36 foundation files)- Daily notes:
daily/*.md - Plans:
plans/active/*.md - Reference:
docs/reference/agents/*.md
- Daily notes:
Migration: Archive to S3/GCS, maintain as reference
-
ORCHESTRATION-2.0-LANGGRAPH.md -
MONOLITH-TO-MICROSERVICES-MIGRATION.md -
MASTER-Sequencing-Plan.md
-
training-data/marketing/books/- Marketing textbooks -
training-data/finance/books/- Finance resources -
training-data/seo/- SEO guides -
training-data/business/- Business strategy
Migration: Move to S3/GCS CDN
-
workspace/training-examples/marketing/training-data/(5 JSON) -
workspace/training-examples/finance/training-data/(5 JSON) -
workspace/training-examples/seo/training-data/(5 JSON)
-
workspace/training-examples/retrain-pipeline.py -
workspace/training-examples/dspy-train-prompter.py
-
backend/data/agents.json- All 15 agent system prompts -
backend/agents/registry.json- Agent registry - Individual handlers:
backend/agents/handlers/*.cjs
Migration: These become the foundation of @soulfield/agents package
-
backend/lenses/TruthLens.js(321 lines) -
backend/lenses/CausalityLens.js(433 lines) -
backend/lenses/ContradictionLens.js(432 lines) -
backend/lenses/ExtrapolationLens.js(320 lines) -
backend/lenses/RightsLens.js(328 lines) -
backend/lenses/StructureLens.js(366 lines)
-
backend/lenses/CausalQualityLens.js(619 lines) -
backend/lenses/StructureLensV2.js(416 lines)
-
backend/lenses/LensOrchestrator.js(874 lines) -
backend/lenses/LensMiddleware.js(587 lines)
Migration: Entire lens system → @soulfield/lens package
-
backend/tests/*lens*.test.cjs- All lens validation tests -
backend/tests/knowledge-graph-*.test.cjs- KG tests -
backend/tests/agent-handlers-*.test.cjs- Agent tests -
backend/tests/multi-agent-orchestration.test.cjs
Migration: Distribute to respective microservice repos
-
backend/services/google/auth.cjs- OAuth2 setup -
backend/services/google/calendar.cjs -
backend/services/google/docs.cjs -
backend/services/google/sheets.cjs -
backend/services/google/gmail.cjs -
backend/services/google/drive.cjs
-
backend/services/afs.cjs(634 lines) - Agent File System
Migration: Consider as separate @soulfield/google-workspace package
-
backend/services/knowledge-graph/kg-sqlite.cjs(2,581 lines!) -
backend/services/knowledge-graph/mcp-server.cjs(415 lines) -
backend/services/knowledge-graph/pipeline/- All pipeline tasks -
backend/services/knowledge-graph/graph-search.cjs
-
backend/scripts/infer-cooccurrence-relationships.cjs -
backend/scripts/generate-extractive-summaries.cjs -
backend/scripts/detect-communities.cjs -
backend/scripts/reingest-semantic-entities.cjs
Migration: Complete KG system → @soulfield/knowledge-graph
-
backend/services/memory/memory-sqlite.cjs(509 lines) -
backend/services/memory/index.cjs- Router -
backend/services/embedding.cjs- Embedding service
-
backend/services/learning-loop.cjs- Performance capture -
backend/services/prompter-logger.cjs- Prompter optimization
-
backend/services/rag-switch.js- Autonomous self-correction -
backend/services/graph-reasoning.cjs- InfraNodus integration
- Soulfield KG MCP with 8 tools (search, multiHopPath, causalChain, etc.)
- Sequential Thinking config
- Ref.tools config
- Apify config
- Supabase config
- Perplexity config
- Google Workspace config
- Playwright config
# Full backup
tar -czf ~/soulfield-backup-$(date +%Y%m%d)-COMPLETE.tar.gz \
--exclude=node_modules \
--exclude=.venv* \
/home/michael/soulfield
# Database backups
cp workspace/data/*.db ~/soulfield-databases-backup/- Lens Framework →
@soulfield/lens - Knowledge Graph →
@soulfield/knowledge-graph - Agent Handlers →
@soulfield/agents - Orchestrator →
@soulfield/orchestrator - Memory →
@soulfield/memory
- Upload training-data/ to S3/GCS
- Archive workspace/ to S3/GCS
- Archive Obsidian vaults to S3/GCS
- Run this checklist item by item
- Verify each database has been copied
- Confirm all agent outputs archived
- Test that config/secrets are preserved
# Verify KG database
sqlite3 knowledge-graph.db "SELECT COUNT(*) FROM entities;"
# Expected: 7,829
sqlite3 knowledge-graph.db "SELECT COUNT(*) FROM relationships;"
# Expected: 195,651
# Verify agent outputs
find workspace/agent-workspace -type f | wc -l
# Should match pre-migration count
# Verify training data
du -sh training-data/
# Expected: ~184MB# Each microservice should start
cd @soulfield/core && npm start # Port 8791
cd @soulfield/knowledge-graph && npm start # MCP server mode- Backup Location:
~/soulfield-backup-[date]/ - S3 Archive:
s3://soulfield-archive/migration-[date]/ - Rollback Script:
migration-scripts/rollback.sh
Document Status: Ready for Migration Team Last Updated: 2025-11-23 Critical: Review this checklist BEFORE starting migration