Repository navigation
fix(branding): rtk instructions / rtk: / rtk telemetry leaks (user-reported) - #61
Merged
Merged
Conversation
…n user-visible strings User reported `contextcrawler init --global --claude-md` printing "Added rtk instructions to existing ..." -- a branding leak that escaped the rebrand sweep (PR #25) and the pinning lint (tests/branding_lint.rs added in PRs #20/#23). The pinning lint covered `[rtk]`, `[rtk:`, `RTK.md`, `@RTK.md` literals but not other user-visible "rtk" phrases. ## Fixes (production source) - `src/hooks/init.rs` -- 8x "rtk instructions" -> "contextcrawler instructions" (the reported leak) - `src/main.rs` -- doc comment "Initialize rtk instructions" + two `eprintln!("rtk: ...")` error prefixes - `src/core/telemetry_cmd.rs` -- "rtk telemetry disable" command reference in user prompt + 2x "rtk: " error prefixes - `src/discover/registry.rs` -- 2x "rtk: " error prefixes - `src/core/utils.rs` -- 2x "rtk: " error prefixes - `src/cmds/system/read.rs` -- "rtk: " error prefix - `src/cmds/cloud/aws_cmd.rs` -- "rtk: " error prefix - `src/hooks/integrity.rs` -- 2x "rtk: " error prefixes Total: 19 production-source replacements across 8 files. ## Branding lint extended (issue #20/#23 lineage) `tests/branding_lint.rs::FORBIDDEN_TOKENS` now also catches: - `"rtk instructions"` -- the reported leak - `"\"rtk: "` -- error prefix in unstructured stderr (note the leading `"` so it only matches the start of a string literal, avoiding false positives on `"my-rtk: x"` substrings) - `"rtk telemetry"` -- CLI command reference in user-facing text The expanded lint immediately caught the 10 other "rtk: " leaks that the user hadn't reported yet -- fixed in the same PR. ## Out of scope (separate scope question) `src/core/telemetry_cmd.rs` still attributes the data controller as "RTK AI Labs" with the upstream rtk-ai/rtk TELEMETRY.md link. That's a factual statement about who operates the upstream collector -- not a branding leak. Whether the downstream fork should: (a) disable telemetry entirely, (b) re-attribute, or (c) keep upstream attribution requires a decision separately. ## Verified - cargo build clean - cargo test --bin contextcrawler: 2156 pass / 0 fail - All 9 integration suites green - Empirical: `contextcrawler init --global --claude-md --dry-run` now prints "Added contextcrawler instructions ..." Reported in-session via user testing of the deployed binary.
This was referenced May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
User reported
contextcrawler init --global --claude-mdprintingAdded rtk instructions to existing /home/.../CLAUDE.md— branding leak that escaped PR #25's rebrand sweep + PR #20/#23's pinning lint.The lint covered
[rtk],[rtk:,RTK.md,@RTK.mdbut not other "rtk" phrases. Extending it caught 10 more"rtk: "leaks the user hadn't reported yet — all fixed in this PR.Production fixes (19 strings, 8 files)
src/hooks/init.rssrc/main.rs"rtk: "error prefixessrc/core/telemetry_cmd.rs"rtk: "prefixessrc/discover/registry.rs"rtk: "prefixessrc/core/utils.rs"rtk: "prefixessrc/hooks/integrity.rs"rtk: "prefixessrc/cmds/system/read.rs"rtk: "prefixsrc/cmds/cloud/aws_cmd.rs"rtk: "prefixLint extended
FORBIDDEN_TOKENSnow also catches:"rtk instructions"— reported leak"\"rtk: "— error prefix in unstructured stderr (leading"avoids substring false positives)"rtk telemetry"— CLI command reference in user-facing textOut of scope (separate decision)
src/core/telemetry_cmd.rsstill cites "RTK AI Labs" as data controller and the upstreamrtk-ai/rtkTELEMETRY.md URL. That's factual attribution of who operates the upstream collector, not a branding leak. The downstream fork's telemetry posture (disable / re-attribute / keep) is a separate scope decision.Verified
cargo buildcleancargo test --bin contextcrawler— 2156 pass / 0 failinit --global --claude-md --dry-runnow printswould add contextcrawler instructions ...Reported in-session via user testing of the deployed binary.