Skip to content

harden(branding-lint): shrink KNOWN_UNBRANDED_TEXT_NEEDLES debt list (70 → ≤20) #76

Closed

Description

@thehoff

Problem

`tests/branding_lint.rs::KNOWN_UNBRANDED_TEXT_NEEDLES` is a 70+ entry allowlist of user-visible strings that still mention `RTK`/`rtk`. They're documented technical debt — passed through the allowlist so the lint can be green while the strings remain unbranded.

Each entry is one place a user can still see `RTK` in output (e.g. `discover` report headlines, `session` overview table, `gain` dashboard column headers, init/uninstall flow messages, telemetry interactive prompt, container Usage hints, integrity restore advice).

Goal

Audit each entry. For each, classify:

  1. (fix) — straightforward rebrand to `ContextCrawler`. Apply the change, remove the entry.
  2. (reclassify) — actually belongs in a narrower named rule (e.g. `tracking-fixture-text`, `discover-report-header`). Move it and remove from KNOWN_UNBRANDED_TEXT_NEEDLES.
  3. (keep-with-justification) — genuinely needs `rtk` for a documented reason. Add an inline comment on the entry explaining WHY (link to issue / commit / threat-model section).

Target

  • KNOWN_UNBRANDED_TEXT_NEEDLES ≤ 20 entries after this issue
  • Every remaining entry has a one-line comment explaining why it can't be fixed
  • No production-source touches beyond the rebrand substitutions themselves

Out of scope

  • `///` clap-help leak gate (separate issue — Issue A)
  • Merge/rerere infrastructure (separate issue — Issue C)

Why

70 entries of user-visible `RTK` text is 70 places the rebrand looks incomplete from a user's seat. Each is small individually; collectively they're the long tail of #19/#20/#22/#23/#62.

Suggested approach

  1. Generate a categorised report (file path × leak class) from the current list
  2. For the bulk-fix cluster (analytics dashboard headers, discover report headlines), one focused PR per file
  3. For the genuine `keep` cluster (legacy hook script filenames, install-path strings), add inline justifications
  4. Final tightening pass: split the residual into NAMED narrower allowlist rules so the catch-all KNOWN_UNBRANDED_TEXT_NEEDLES list is short and obvious

Activity

  1. thehoff commented on Jun 10, 2026

    @thehoff
    OwnerAuthor

    Closing as obsolete — the rebrand shipped (0.3.0 purge + 0.4.0 pivot); branding-needle debt is no longer tracked.

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