Repository navigation
v2.10.0: Multi-Domain Sync Engine
Upgrading to v2.10.0 — Multi-Domain Sync
Overview
v2.10.0 delivers multi-domain sync, completing the transition from .claude/-only
sync to a manifest-driven engine that can sync any harness domain (.claude/,
.gemini/, .codex/, .cursor/, .agents/, dark-factory/).
What Changed
Schema v1.1 (SAW-33)
The manifest schema is now v1.1. Key additions:
sync_scope: Array of directories to sync from upstream (default:[".claude/"])- Root-relative paths: All paths in
renames,protected,replacedare now
repo-root-relative (e.g.,.claude/agents/bsa.mdinstead ofagents/bsa.md) - Backward compat: v1.0 manifests continue to work. Bare paths are normalized
by prepending.claude/during load.
Metadata Migration (SAW-34)
Sync metadata files have moved from .claude/ to the repo root:
| Before (v2.9.0) | After (v2.10.0) |
|---|---|
.claude/.harness-manifest.yml |
.harness-manifest.yml |
.claude/.harness-sync.json |
.harness-sync.json |
.claude/.harness-backup/<timestamp>/ |
.harness-backup/<domain>/<timestamp>/ |
.claude/.harness-patches/<version>/ |
.harness-patches/<version>/ |
Migration is automatic. When you run sync or manifest init, the script
detects metadata at the old .claude/ locations and moves it to the repo root.
No manual action is required.
Multi-Domain Sync Engine (SAW-35)
The sync script now reads your manifest's sync_scope and syncs all listed
domains in a single run:
# Syncs all domains in sync_scope
./scripts/sync-claude-harness.sh sync --version v2.10.0
# Override scope for a single run
./scripts/sync-claude-harness.sh sync --version v2.10.0 --scope .claude,.geminiManifest Required
Sync now requires a manifest. Without one, sync fails with an error. The only
exception is --dry-run, which is allowed without a manifest for inspection.
If you do not have a manifest yet:
./scripts/sync-claude-harness.sh manifest init --yesThe manifest init command auto-detects which provider domains exist in your
repo and proposes an initial sync_scope.
Upgrade Steps
From v2.9.0 (manifest already exists)
# 1. Sync to v2.10.0 (metadata migration happens automatically)
./scripts/sync-claude-harness.sh sync --version v2.10.0 --dry-run
./scripts/sync-claude-harness.sh sync --version v2.10.0
# 2. (Optional) Expand sync_scope to include additional domains
# Edit .harness-manifest.yml:
# sync:
# sync_scope:
# - ".claude/"
# - ".gemini/"
# - ".codex/"
# 3. Bump manifest_version to 1.1 (recommended, not required)
# manifest_version: "1.1"
# 4. Verify metadata moved to repo root
ls .harness-manifest.yml .harness-sync.jsonFrom v2.7.0 or v2.8.x (no manifest)
# 1. Initialize sync metadata
./scripts/sync-claude-harness.sh init
# 2. Generate manifest (auto-detects domains and identity values)
./scripts/sync-claude-harness.sh manifest init --yes
# 3. Preview and apply
./scripts/sync-claude-harness.sh sync --version v2.10.0 --dry-run
./scripts/sync-claude-harness.sh sync --version v2.10.0From pre-v2.7.0 (legacy .sync-exclude)
# 1. Initialize sync metadata
./scripts/sync-claude-harness.sh init
# 2. Generate manifest
./scripts/sync-claude-harness.sh manifest init --yes
# 3. Migrate .sync-exclude entries to manifest protected section
# See docs/HARNESS_SYNC_GUIDE.md "Migration from .sync-exclude"
# 4. Preview and apply
./scripts/sync-claude-harness.sh sync --version v2.10.0 --dry-run
./scripts/sync-claude-harness.sh sync --version v2.10.0Domain Detection During manifest init
The manifest init command inspects your repo for known provider directories
and proposes a sync_scope. Detection logic:
| Directory | Detected when | Tier |
|---|---|---|
.claude/ |
Directory exists | Provider |
.gemini/ |
Directory exists | Provider |
.codex/ |
Directory exists | Provider |
.cursor/ |
Directory exists | Provider |
.agents/ |
Directory exists | Shared |
dark-factory/ |
Directory exists | Shared |
Detection is simple directory existence — if the directory is present in your project,
it's included in the proposed sync_scope. No file-level checks are performed.
You can edit the generated sync_scope to add or remove domains after init.
Verification
# Confirm metadata at repo root
test -f .harness-manifest.yml && echo "Manifest: OK" || echo "Manifest: MISSING"
test -f .harness-sync.json && echo "Sync metadata: OK" || echo "Sync metadata: MISSING"
# Confirm no stale metadata in .claude/
test ! -f .claude/.harness-manifest.yml && echo "Old manifest: cleaned" || echo "WARNING: stale .claude/.harness-manifest.yml"
test ! -f .claude/.harness-sync.json && echo "Old sync meta: cleaned" || echo "WARNING: stale .claude/.harness-sync.json"
# Check sync scope
grep -A 10 'sync_scope' .harness-manifest.ymlRollback
If issues arise, restore from the domain-organized backups:
# List available backups
ls .harness-backup/
# Restore a specific domain from backup
cp -r .harness-backup/.claude/<timestamp>/* .claude/
# Or use the sync script rollback
./scripts/sync-claude-harness.sh rollbackTo fully revert to v2.9.0 behavior:
git fetch harness --tags
git checkout v2.9.0 -- .claude/ .gemini/ .codex/ .cursor/ .agents/ dark-factory/