| name | fleet-management |
| description | Keep heir projects synchronized with Master Alex brain updates — audit drift, upgrade brains, verify deployments |
| tier | standard |
| applyTo | **/*fleet*,**/*upgrade*brain*,**/*heir*sync* |
| currency | 2026-04-22T00:00:00.000Z |
Fleet Management
Maintain cognitive architecture consistency across all heir projects from Master Alex.
The Challenge
Master Alex evolves continuously — new skills, refined instructions, fixed defects. Heir projects run stale brains unless actively synchronized. Manual updates across 50+ projects is error-prone and tedious.
Fleet Operations Model
┌─────────────────────────────────────────────────────────────────┐
│ Master Alex (.github/) │
│ ↓ sync-to-heir.cjs │
│ Heir Template (heir/.github/) │
│ ↓ upgrade-brain.cjs │
│ Fleet (C:\Development\*\.github/) │
└─────────────────────────────────────────────────────────────────┘
Tools
| Script | Purpose | Location |
|---|
upgrade-brain.cjs | Fleet-wide brain upgrade | scripts/ |
sync-to-heir.cjs | Master → Heir template sync | scripts/ |
curate-upgrade.cjs | Post-upgrade curation | .github/muscles/ |
Workflow
Phase 1: Prepare Master
Before fleet upgrade, ensure Master Alex is healthy:
# 1. Run brain QA
node .github/muscles/brain-qa.cjs
# 2. Verify zero failures
# Check: "0 failing" in queue depth
# 3. Sync to heir template
node scripts/sync-to-heir.cjs
Phase 2: Audit Fleet
Discover what needs updating:
node scripts/upgrade-brain.cjs --mode Audit
node scripts/upgrade-brain.cjs --mode Audit --include "health,pbi"
Output shows:
- Project count and brain formats
- Custom CI needing manual curation
- Workflows and memory to preserve
- Total files affected
Phase 3: Upgrade Fleet
Two-phase approach — mechanical batch + semantic curation:
node scripts/upgrade-brain.cjs --mode Upgrade --dry-run
node scripts/upgrade-brain.cjs --mode Upgrade
node scripts/upgrade-brain.cjs --mode Full
The script:
- Renames
.github/ → .github-backup-YYYYMMDD/ (atomic, instant rollback available)
- Installs fresh brain from extension source
- Restores non-brain content (workflows, episodic memories, domain knowledge)
- Saves old
copilot-instructions.md as .backup.md for identity curation
Phase 4: Verify
Confirm deployments succeeded:
node scripts/upgrade-brain.cjs --mode Verify
Checks:
.alex-brain-version stamp matches expected
- All brain subdirectories present with correct file counts
copilot-instructions.md is v8 format
hooks.json registry exists
Phase 5: Curate
Projects with custom CI need manual curation:
# Scan backups for custom content
node .github/muscles/curate-upgrade.cjs --mode Scan
# Review each project's backup
# Merge project-specific content back into fresh CI
# Delete backup when satisfied
Exclusions
Some projects are excluded by default:
| Project | Reason |
|---|
AlexMaster | Source of truth — never overwrite |
AlexMaster_Legacy | Archive |
GCX_* | Custom CI, manual sync |
Override with -Include or modify -Exclude parameter.
Rollback
If something goes wrong:
node scripts/upgrade-brain.cjs --mode Rollback --include "projectname"
Scheduled Maintenance
Add to Autopilot for weekly fleet health checks:
{
"id": "fleet-health",
"name": "Fleet Health Check",
"description": "Audit fleet brain versions and drift",
"schedule": "0 8 * * 1",
"mode": "direct",
"script": "scripts/upgrade-brain.cjs",
"args": "--mode Audit"
}
Version Stamps
Each upgraded project gets .github/.alex-brain-version:
8.0.1
Check fleet versions:
Get-ChildItem C:\Development -Directory |
ForEach-Object {
$v = Join-Path $_.FullName ".github\.alex-brain-version"
if (Test-Path $v) {
"$($_.Name): $(Get-Content $v)"
}
}
Drift Detection
Detect when heir projects have diverged from master:
node scripts/audit-heir-sync-drift.cjs
Best Practices
- Always dry-run first —
node scripts/upgrade-brain.cjs --mode Upgrade --dry-run
- Audit before upgrade — Know what you're changing
- Verify after upgrade — Confirm success before deleting backups
- Keep backups until satisfied —
.github-backup-* is your rollback path
- Curate custom CI — Don't lose project-specific identity
- Commit after curation — Track the upgrade in git history
Common Issues
| Issue | Solution |
|---|
| "backup already exists" | Delete old backup or use different date |
| "missing brain subdirectory" | Verify extension brain is synced |
| "version mismatch" | Re-run upgrade or check source version |
| CI lost project identity | Restore from .backup.md or backup dir |