Skip to content

fix(bootstrap): name the narrow remedy instead of --force in pointer warnings - #338

Merged
stackbilt-admin merged 1 commit into
mainfrom
auto/bugfix/issue-305
Oct 15, 2026
Merged

stackbilt-admin merged 1 commit into
mainfrom
auto/bugfix/issue-305

Conversation

@stackbilt-admin

Copy link
Copy Markdown
Member

Closes #305

The two phase-3 pointer warnings in runAdfInitPhase (bootstrap.ts) told the user to "use --force to overwrite". Bootstrap's --force also re-scaffolds .ai/*.adf and overwrites customized modules, so that advice put hand-authored ADF content at risk.

  • Custom content: the warning now names charter adf migrate --source <file>, or hand-editing or deleting the file and re-running bootstrap. --source is spelled out because adf migrate's default discovery list uses lowercase agents.md, which misses AGENTS.md on case-sensitive filesystems. I checked the code path: migrate moves the rules into .ai/ and writes a pointer that carries a Charter marker, so the next bootstrap no longer raises the warning. A test covers this.
  • Already Charter-managed: the warning says so and names deleting the file and re-running bootstrap as the way to regenerate it from the current template.
  • Both warnings now say "Do not use --force for this: it also re-scaffolds .ai/*.adf…", matching the existing .mcp.json warning from fix(bootstrap): gitignore telemetry and drop absolute path from .mcp.json #304.

The flag is not split here.

Tests: two new regression tests in bootstrap.test.ts. They assert the warning text does not say "use --force to overwrite", that it names the narrow remedy, and that the migrate remedy actually clears the condition. The full suite has only the 5 failures that already fail on main on Windows. Typecheck is clean.

Implemented via constellation-loop.

🤖 Generated with Claude Code

@stackbilt-admin
stackbilt-admin merged commit 6d6200b into main Oct 15, 2026
5 checks passed
@stackbilt-admin
stackbilt-admin deleted the auto/bugfix/issue-305 branch October 15, 2026 23:15
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.

bootstrap --force fans out to several destructive operations and is advised as a routine remedy

2 participants