You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(adf compile): refuses to overwrite the vendor files bootstrap just generated, requiring --force on first compile #295
Following the documented order straight from the README:
npx @stackbilt/cli bootstrap --yes # writes CLAUDE.md, AGENTS.md, .cursorrules, GEMINI.md
npx charter adf compile --target all --write
the second command refuses every file it was asked to write:
[warn] Refused to overwrite CLAUDE.md — no compile banner found (hand-written or pointer stub).
Pass --force to overwrite. This protects hand-authored CLAUDE.md files.
[warn] Refused to overwrite AGENTS.md — no compile banner found ...
[warn] Refused to overwrite .cursorrules — no compile banner found ...
[warn] Refused to overwrite GEMINI.md — no compile banner found ...
The guard is right in principle: it protects hand-authored files. But here it fires on files Charter itself wrote seconds earlier, so a clean bootstrap leads to a wall of warnings and --force on the very first compile. That trains people to reach for --force, which is exactly the habit the guard exists to prevent.
Suggested fix
Have bootstrap write the compile banner into the vendor files it generates. They are already generated artifacts, so the banner is accurate and the first compile proceeds untouched.
Or record bootstrap-generated vendor files in .charter/ (a hash or a list) and let compile overwrite anything it recognises as its own.
Or have bootstrap run the first compile itself, so the files exist only in compiled form.
Option 1 is smallest and makes the artifact self-describing.
Activity
fix(adf): refuse to compile over a pointer carrying user notes
fix(adf): accept charter pointer stubs in compile overwrite guard (#300)
docs: correct --keywords description and align changelog heading
docs: add missing adf command reference and record #295 fix (#308)
fix(adf): name the real consequence in the compile guard comment
fix(adf): stop tidy ingesting compiled vendor output (#319)