Skip to content

harden(branding-debt): rebrand quick-win cluster — drop 12 entries from KNOWN_UNBRANDED_TEXT_NEEDLES (#76) - #79

Closed
thehoff wants to merge 2 commits into
developfrom
harden/branding-debt-quickwin-76
Closed

thehoff wants to merge 2 commits into
developfrom
harden/branding-debt-quickwin-76

Conversation

@thehoff

@thehoff thehoff commented May 19, 2026

Copy link
Copy Markdown
Owner

Partial progress on #76 (KNOWN_UNBRANDED_TEXT_NEEDLES reduction, 70 → ≤20). First chunk: the quick-win cluster identified in the audit doc.

Summary

  • 10 user-visible rebrands in discover + analytics output (RTK → ContextCrawler)
  • Drop 1 stale allowlist needle (`rtk_cmd '{}' must start with 'rtk '`) — already rebranded in source at `src/discover/registry.rs:3188`; needle was documentation drift.
  • Drop 1 orphan allowlist needle (`RTK from Gemini settings.json`) — zero src/ hits, verified by removing and re-running the test green.
  • Ships the audit doc that drives the rest of harden(branding-lint): shrink KNOWN_UNBRANDED_TEXT_NEEDLES debt list (70 → ≤20) #76: docs/contributing/REBRAND_KNOWN_TEXT_AUDIT.md.

What's rebranded

  • RTK Discover -- Savings Opportunities → ContextCrawler Discover ...
  • Already using RTK: → Already using ContextCrawler:
  • RTK usage looks good! → ContextCrawler usage looks good!
  • MISSED SAVINGS -- Commands RTK already handles → ... ContextCrawler ...
  • tracked via \rtk gain`(×2 sites) →tracked via `contextcrawler gain``
  • RTK Parse Failures → ContextCrawler Parse Failures
  • RTK Session Overview → ContextCrawler Session Overview
  • Run some rtk commands to start tracking → Run some contextcrawler commands ...
  • RTK commands: → ContextCrawler commands: (header indent adjusted to keep column alignment)
  • RTK compresses CLI outputs → ContextCrawler compresses CLI outputs

Retained (intentional)

  • \"RTK Equivalent\" and \"RTK Cmds\" table column headers — width-constrained; documented as such in the allowlist comment.

Remaining work for #76

Per the audit doc:

  • 22 (reclassify) entries — need 7 narrower NAMED allowlist rules (e.g. test-fixture-expect-message, db-column-test-comparison)
  • ~16 more (fix) entries clustered in src/hooks/init.rs (uninstall flow) and miscellaneous Usage hints

Will land in follow-on PRs.

Test plan

  • cargo test --workspace — 2176 passed, 6 ignored
  • cargo test --test branding_lint — 4 passed (clean)
  • Manual eyeball: rebrands don't break the format-string column alignment

🤖 Generated with Claude Code

thehoff and others added 2 commits May 19, 2026 10:06
…om KNOWN_UNBRANDED_TEXT_NEEDLES (#76)

First chunk of #76 (KNOWN_UNBRANDED_TEXT_NEEDLES reduction, 70 → ≤20).
This pass: 10 user-visible rebrands across discover/analytics output
plus 2 stale/orphan allowlist entries.

User-facing rebrands (RTK → ContextCrawler):
- src/discover/report.rs:113   "RTK Discover -- Savings Opportunities"
- src/discover/report.rs:121   "Already using RTK:"
- src/discover/report.rs:131   "RTK usage looks good!"
- src/discover/report.rs:138   "MISSED SAVINGS -- Commands RTK already handles"
- src/discover/report.rs:218   "tracked via `rtk gain`" (Cursor note)
- src/discover/report.rs:222   "tracked via `rtk gain`" (Hermes note)
- src/analytics/gain.rs:711    "RTK Parse Failures"
- src/analytics/session_cmd.rs:148  "RTK Session Overview"
- src/analytics/cc_economics.rs:436 "Run some rtk commands to start tracking"
- src/analytics/cc_economics.rs:469 "RTK commands:" (header text — column re-aligned)
- src/analytics/cc_economics.rs:504 "RTK compresses CLI outputs"

Allowlist hygiene:
- Drop "rtk_cmd '{}' must start with 'rtk '" — already fixed at
  src/discover/registry.rs:3188 (source now says 'contextcrawler '),
  needle was stale documentation drift.
- Drop "RTK from Gemini settings.json" — orphan (zero src/ hits;
  verified with cargo test --test branding_lint).

Retained (column-width-constrained short headers):
- "\"RTK Equivalent\"" (discover/report table)
- "\"RTK Cmds\"" (cc_economics table)

KNOWN_UNBRANDED_TEXT_NEEDLES net delta: -12 entries.

cargo test --workspace: 2176 passed, 6 ignored.

Refs #76. Audit details: docs/contributing/REBRAND_KNOWN_TEXT_AUDIT.md
(spawned-agent classification of all 70 original entries — fix / reclassify
/ keep — with proposed narrower allowlist rule names for the reclassify
bucket).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…on of all 70 entries (#76)

Driver doc for #76 — drives the remaining (fix) and (reclassify) work
after the quick-win cluster shipped.

Classification breakdown:
- 38 (fix) — straight rebrand; 11 landed in the quick-win cluster
- 22 (reclassify) — belong in narrower NAMED allowlist rules (7 proposed:
  test-fixture-expect-message, test-fixture-path, db-column-test-comparison,
  test-fixture-fn-arg, xdg-legacy-path, test-fixture-jsonl-fixture,
  analytics-table-header-short)
- 10 (keep) — bound by install-compat / SQLite-column / hook-script
  contracts; each documented with justification

Methodology section explains the per-entry grep + 5-10 line context-read
discipline used. Outstanding question (orphan needle "RTK from Gemini
settings.json") was resolved in the quick-win commit (orphan confirmed).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@thehoff

thehoff commented Jun 10, 2026

Copy link
Copy Markdown
Owner Author

Closing as obsolete — rebrand quick-win cluster is done; the binary is contextcrawler and the purge landed in 0.3.0.

@thehoff thehoff closed this Jun 10, 2026
@thehoff
thehoff deleted the harden/branding-debt-quickwin-76 branch June 10, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant