Skip to content

fix(bootstrap): scaffold on-demand module stubs during ADF init#14

Merged
SmartBrandStrategies merged 1 commit intomainfrom
fix/bootstrap-scaffold-on-demand-modules
Mar 3, 2026
Merged

fix(bootstrap): scaffold on-demand module stubs during ADF init#14
SmartBrandStrategies merged 1 commit intomainfrom
fix/bootstrap-scaffold-on-demand-modules

Conversation

@SmartBrandStrategies
Copy link
Copy Markdown
Contributor

Summary

  • Bootstrap's ADF init phase (step 3/5) now creates frontend.adf and backend.adf alongside the DEFAULT_LOAD modules
  • Fixes the gap where manifest.adf referenced on-demand modules that didn't exist on disk
  • charter doctor no longer warns immediately after a fresh charter bootstrap --yes
  • Both greenfield and force-overwrite paths are fixed

Previously:

$ charter bootstrap --yes
$ charter doctor
[warn] adf on-demand modules: Missing or unparseable: frontend.adf (missing), backend.adf (missing)

Closes #4

Test plan

  • charter bootstrap --yes on a clean project → frontend.adf and backend.adf exist in .ai/
  • charter doctor passes cleanly after bootstrap
  • charter bootstrap --yes on existing .ai/ (force) → on-demand stubs are recreated
  • All 200 existing tests pass, all LOC ceilings green

🤖 Generated with Claude Code

Bootstrap's ADF init phase wrote manifest.adf referencing frontend.adf
and backend.adf as ON_DEMAND modules but never created the files. This
caused `charter doctor` to immediately warn after a fresh bootstrap.

Now both greenfield and force-overwrite paths write frontend.adf and
backend.adf alongside the DEFAULT_LOAD modules.

Closes #4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SmartBrandStrategies SmartBrandStrategies merged commit dc6e40c into main Mar 3, 2026
4 checks passed
@SmartBrandStrategies SmartBrandStrategies deleted the fix/bootstrap-scaffold-on-demand-modules branch March 3, 2026 00:21
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.

fix(bootstrap): on-demand ADF modules missing after bootstrap completes

2 participants