Skip to content

feat(bootstrap): integrate adf migrate into bootstrap flow (closes #7)#17

Merged
SmartBrandStrategies merged 2 commits intomainfrom
feat/bootstrap-migrate
Mar 3, 2026
Merged

feat(bootstrap): integrate adf migrate into bootstrap flow (closes #7)#17
SmartBrandStrategies merged 2 commits intomainfrom
feat/bootstrap-migrate

Conversation

@SmartBrandStrategies
Copy link
Copy Markdown
Contributor

Summary

  • Bootstrap now includes a migrate phase (step 4/6) between ADF init and dependency install
  • When agent config files (CLAUDE.md, .cursorrules, agents.md, etc.) contain migratable content:
    • With --yes: auto-migrates using dedupe strategy, creates backups, converts to thin pointers
    • Without --yes: shows dry-run summary and suggests running manually
  • Step numbering updated from [1/5]…[5/5] to [1/6]…[6/6]
  • Exports migrateSource and SourceMigrationResult from adf-migrate.ts for reuse
  • 215 tests green, all LOC ceilings pass (adf-migrate: 474/500)

Depends on: PR #15 (#6 — content-based routing). This PR includes that commit; merge #15 first, then this PR will be a clean single-commit diff.

Test plan

  • charter bootstrap --yes with existing CLAUDE.md containing rules → migration runs at step [4/6], rules land in ADF modules
  • charter bootstrap (no --yes) with migratable files → dry-run summary shown, no files modified
  • charter bootstrap --yes with no agent config files → step [4/6] shows "Skipped"
  • charter bootstrap --yes with thin-pointer CLAUDE.md → step [4/6] shows "Skipped" (already migrated)
  • charter doctor passes cleanly after bootstrap with migration

🤖 Generated with Claude Code

stackbilt-admin and others added 2 commits March 2, 2026 18:38
… keywords

When heading-based routing returns core.adf, the classifier now checks
element content against ON_DEMAND trigger keywords from manifest.adf
(e.g. React → frontend.adf, API → backend.adf). This routes domain-
specific rules under generic headings to the correct on-demand module
instead of dumping everything into core.adf.

Closes #6

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a migrate phase (step 4/6) between ADF init and dependency install.
When agent config files (CLAUDE.md, .cursorrules, agents.md, etc.) exist
with migratable content, bootstrap now handles migration automatically:

- With --yes: auto-migrates using dedupe strategy, converts originals to
  thin pointers with backups
- Without --yes: shows dry-run summary and suggests running manually or
  with --yes

Exports migrateSource and SourceMigrationResult from adf-migrate.ts so
bootstrap can call the per-file migration directly.

Step numbering updated from [1/5]…[5/5] to [1/6]…[6/6].

Closes #7

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SmartBrandStrategies SmartBrandStrategies merged commit 28e838c into main Mar 3, 2026
4 checks passed
@SmartBrandStrategies SmartBrandStrategies deleted the feat/bootstrap-migrate branch March 3, 2026 10:10
SmartBrandStrategies pushed a commit that referenced this pull request Mar 3, 2026
Link merged PRs #13-#17 to their issues and record merge SHAs.
Phase 1 (blocking bugs) and Phase 2 (bootstrap/migrate features) are
fully landed. Phase 3 (ADF architecture P0) is now unblocked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants