MIGRATION C155
C-155 Root Consolidation Migration Notes¶
Date: December 5, 2025
Cycle: C-155
Author: ATLAS + Michael
Status: Complete
Summary¶
C-155 focused on repository hygiene and structural clarity. This migration consolidates scattered configuration, infrastructure, and documentation files into organized structures while preserving git history.
Changes Made¶
1. Configuration Consolidation (configs/)¶
All configuration files are now organized under configs/ with clear subdirectories:
| Old Location | New Location | Purpose |
|---|---|---|
.env.example | configs/env/.env.example | Environment template |
.env.mobius-services | configs/env/.env.mobius-services | Service API keys |
mobius_manifest.yaml | configs/manifests/mobius_manifest.yaml | System manifest |
codexrule.yml | configs/tooling/codexrule.yml | Codex rules |
config/agents/ | configs/agents/ | Agent configurations |
config/charters/ | configs/charters/ | Charter definitions |
config/telemetry/ | configs/telemetry/ | Telemetry schemas |
Removed: config/ directory (merged into configs/)
2. Infrastructure Unification (infra/)¶
Infrastructure files are now unified under infra/:
| Old Location | New Location | Purpose |
|---|---|---|
infrastructure/docker-compose.dev.yml | infra/docker/docker-compose.dev.yml | Dev compose |
Removed: infrastructure/ directory (merged into infra/)
3. Documentation Consolidation (docs/papers/)¶
All papers, whitepapers, and academic documents are now in docs/papers/:
| Old Location | New Location | Purpose |
|---|---|---|
whitepaper/* | docs/papers/* | Main whitepaper content |
whitepapers/* | docs/papers/* | Additional whitepapers |
papers/* | docs/papers/* | Academic papers |
Removed: - whitepaper/ directory - whitepapers/ directory - papers/ directory
New Directory Structure¶
configs/ (Configuration Hub)¶
configs/
├── env/ # Environment variables
│ ├── .env.example
│ └── .env.mobius-services
├── manifests/ # System manifests
│ └── mobius_manifest.yaml
├── tooling/ # Dev tool configs
│ └── codexrule.yml
├── agents/ # Agent configurations
│ ├── mobius_agent_stack.v1.1.1.json
│ ├── mobius_agent_stack.v1.1.2.json
│ └── README.md
├── charters/ # Charter definitions
│ └── ai_integrity_constitution.v1.json
├── telemetry/ # Telemetry schemas
│ └── schemas/gi_metrics.json
├── anchors/ # (existing)
├── bio-dna/ # (existing)
└── *.yaml, *.json # (existing configs)
infra/ (Infrastructure Hub)¶
infra/
├── docker/ # Docker configurations
│ ├── compose.yml # Production compose
│ └── docker-compose.dev.yml # Dev compose (moved)
├── cron/ # Scheduled jobs
├── db/ # Database migrations
├── dva/ # DVA flows
├── observability/ # Monitoring
├── pulses/ # Pulse storage
└── tests/ # Infrastructure tests
docs/papers/ (Papers Hub)¶
docs/papers/
├── Mobius-Whitepaper-v1.0.md # Main whitepaper
├── Executive-Summary.md
├── Mobius-Yellow-Paper-Math-Edition.md
├── sml-paper.tex # Academic papers
├── negentropic-economics-paper.tex
├── mcp-paper.tex
├── appendices/ # Supplementary
├── diagrams/ # Diagrams
└── README.md # Index
Required Updates¶
Import Paths¶
If your code references old paths, update to:
// Environment files
// OLD: require('dotenv').config({ path: '../.env.example' })
// NEW: require('dotenv').config({ path: '../configs/env/.env.example' })
// Configuration
// OLD: require('../config/agents/...')
// NEW: require('../configs/agents/...')
// Infrastructure
// OLD: '../infrastructure/docker-compose.dev.yml'
// NEW: '../infra/docker/docker-compose.dev.yml'
CI/CD Workflows¶
Check .github/workflows/ for hardcoded paths to: - config/ → update to configs/ - infrastructure/ → update to infra/ - whitepaper/ or whitepapers/ → update to docs/papers/ - papers/ → update to docs/papers/
Docker Compose¶
Update any volume mounts referencing old paths:
Scripts¶
Update any scripts in scripts/ that reference: - Environment files: now in configs/env/ - Manifests: now in configs/manifests/ - Infrastructure: now in infra/
Verification Steps¶
After applying these changes:
- Build Test:
npm run build - Lint Test:
npm run lint - Type Check:
npm run type-check - Service Start:
docker compose -f infra/docker/compose.yml up - CI Pipeline: Verify GitHub Actions pass
Rollback Plan¶
If issues arise, revert to pre-C-155 state:
# Revert all C-155 changes
git revert HEAD
# Or reset to specific commit
git log --oneline -10
git reset --hard <pre-c155-commit-hash>
All changes are in version control and can be reverted safely.
Benefits¶
Before C-155¶
- 65+ items at root (cluttered)
- Ambiguous directories (
config/vsconfigs/) - Scattered files (env, manifests spread across root)
- Redundant locations (
infrastructure/andinfra/)
After C-155¶
- ~20 essential items at root (clean)
- Single source of truth for configs, infra, docs
- Logical subdirectory structure
- 69% reduction in root clutter
Philosophy Alignment¶
This cleanup embodies Kaizen (改善) principles: - Small, incremental improvement (not a rewrite) - Removes friction from daily work - Creates foundation for future improvements - Maintains stability while evolving
"We heal as we walk." — This cleanup heals repository navigation while maintaining all functionality.
Related Documents¶
- README.md — Updated with C-155 structure
- docs/papers/README.md — Consolidated papers index
- configs/manifests/mobius_manifest.yaml — May need path updates
C-155 Root Consolidation — Mobius Systems
December 5, 2025