Skip to content

doctor: detect already-tracked .charter/telemetry and name the untrack fix #306

Closed

Description

@stackbilt-admin

Follow-up from #298 / PR #304.

PR #304 added telemetry/ to the generated .charter/.gitignore, so newly bootstrapped repos no longer stage .charter/telemetry/events.ndjson. It also documents a one-time git rm -r --cached .charter/telemetry for repos that already committed it.

That documentation only helps people who go looking. A gitignore entry never untracks an already-tracked file, so any repo bootstrapped before #304 keeps staging every new telemetry line on every git add -A — silently, and exactly for the users who hit the original bug.

Proposal

Have charter doctor detect a tracked telemetry file and name the fix:

  • check whether .charter/telemetry/ (or the path built in telemetry.ts:52) appears in git ls-files
  • if it does, warn with the exact remedy: git rm -r --cached .charter/telemetry
  • mention the file stays on disk, so charter telemetry report keeps working

This is the class of problem doctor already exists to catch — repo state that drifted from what the current generator would produce.

Identified during constellation-loop review of PR #304; deliberately not built there to keep that bugfix scoped.

Activity

  1. added a commit that references this issue on Sep 20, 2026
    d282fd0
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions