Skip to content

adf migrate: trigger inference keeps generic and numeric tokens #349

Closed

Description

@stackbilt-admin

Found in review of #348 (#239).

Trigger inference (packages/cli/src/commands/adf-manifest-register.ts) drops adf-suggest's STOPWORDS plus a short GENERIC_HEADING_WORDS list, but tokens like images, components, workflow, release, apps, via and all-digit tokens still survive and become ON_DEMAND triggers. Since triggers drive routing for every later migrate/context call, weak triggers cause over-loading.

Widen the generic list (or score against a frequency list), drop all-digit tokens, and add fixture tests from real CLAUDE.md headings. Also consider case-insensitive module path matching in the writer (Infra.adf vs infra.adf on case-insensitive filesystems can yield two entries for one file).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions