Description
charter adf tidy detects "vendor bloat" by scanning agent config files for trigger keywords. However, it also scans the <!-- charter:module-index:start --> block in CLAUDE.md, which is a charter-generated rendering of the manifest. This block naturally contains trigger keywords (e.g., "billing", "commit", "security") because it lists the on-demand module triggers.
Tidy then moves those table rows into core.adf as if they were user-authored rules — but they're charter's own output.
Steps to Reproduce
- Run
charter adf migrate (which generates a module index table in CLAUDE.md)
- Run
charter adf tidy
- Observe that the module index table rows are moved into
core.adf
Expected Behavior
Tidy should exclude <!-- charter:module-index:start --> ... <!-- charter:module-index:end --> blocks from keyword scanning, since these are charter-managed content.
Environment
Description
charter adf tidydetects "vendor bloat" by scanning agent config files for trigger keywords. However, it also scans the<!-- charter:module-index:start -->block in CLAUDE.md, which is a charter-generated rendering of the manifest. This block naturally contains trigger keywords (e.g., "billing", "commit", "security") because it lists the on-demand module triggers.Tidy then moves those table rows into
core.adfas if they were user-authored rules — but they're charter's own output.Steps to Reproduce
charter adf migrate(which generates a module index table in CLAUDE.md)charter adf tidycore.adfExpected Behavior
Tidy should exclude
<!-- charter:module-index:start -->...<!-- charter:module-index:end -->blocks from keyword scanning, since these are charter-managed content.Environment