Skip to content

doctor --ci reports vendor bloat on Charter's own CLAUDE.md after context.adf is auto-registered #401

Closed

Description

@stackbilt-admin

Problem

doctor --adf-only --ci can fail on an unmodified generated CLAUDE.md, because that file's own text matches the context trigger of an auto-registered context.adf.

Reproduction (CLI 2.1.0, throwaway repo)

  1. charter bootstrap --ci github --preset fullstack --mode lean --yes --skip-install
  2. charter context-refresh --once --sources git writes .ai/context.adf.
  3. Re-run the bootstrap command. It warns Found 1 unregistered .adf module(s): context.adf, and the module ends up registered with the trigger context.
  4. charter doctor --adf-only --ci --format text

Actual

Exit 1:

[warn] adf vendor bloat: Vendor file bloat detected:
  CLAUDE.md: trigger keywords [context (2x)] suggest content belongs in context.adf

The matching text appears to be Charter's own generated Session Start and module index content.

Expected

  • Generated pointer text should not count toward vendor bloat.
  • .ai/context.adf is a generated snapshot. It probably should not be registered as a routed module with such a generic trigger, since context will match many ordinary tasks.

Scope

Measured on 2.1.0. Not re-run on main. In my sandbox I had also removed the copilot-instructions.md vendor entry and added one custom module before step 4; the reported finding names only CLAUDE.md and context.adf, so I don't expect those to matter, but I did not re-run a minimal case.

Activity

  1. added
    bug
    priority:p2
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions