Repository navigation
fix(branding): comprehensive sweep round 3 (clap help docs + find error prefix) - #63
Merged
Merged
Conversation
…or prefix) (#62-adjacent) User reported branding leaks in `--help` output: discover Discover missed RTK savings ... session Show RTK adoption ... Same root cause as the v0.1.8/PR-#61 leaks: the rebrand sweep missed specific phrase classes that the lint didn't catch. This is round 3. The lint is now broad enough to catch every user-visible "RTK"/"rtk" reference class found so far. ## Production fixes (user-visible) - `src/main.rs` clap doc comments (subcommand `--help` text): - "RTK savings" -> "ContextCrawler savings" (discover) - "RTK adoption" -> "ContextCrawler adoption" (session) - "RTK equivalent" -> "ContextCrawler equivalent" (rewrite, 2x) - "RTK artifacts" -> "ContextCrawler artifacts" (uninstall) - "RTK and native" -> "ContextCrawler and native" (find) - "spending vs savings (rtk)" -> "(contextcrawler)" (cc-economics) - Test fixture comments + argv[0] fixtures: `rtk` -> `contextcrawler` (clap ignores argv[0]; these were just outdated) - `src/hooks/rewrite_cmd.rs`: 4 docstring "RTK equivalent" + "rtk rewrite" refs - `src/hooks/tirith_gate.rs`: module doc inline-code refs - `src/hooks/init.rs`: "Cursor RTK artifacts" docstring + uninstall println - `src/cmds/system/find_cmd.rs`: "rtk find:" error prefix -> "contextcrawler find:" ## Branding lint extended Added 10 new tokens to `tests/branding_lint.rs::FORBIDDEN_TOKENS`: RTK savings / RTK adoption / RTK equivalent / RTK artifacts / RTK and native / (rtk) / $(rtk / `rtk rewrite / rtk find: The lint immediately caught additional leaks (rewrite_cmd, tirith_gate, init.rs) that the user hadn't reported -- all fixed in this PR. ## Out of scope (filed as separate) - **#62 rewrite_command output prefix.** `contextcrawler rewrite "git status"` returns the literal string `rtk git status` (because the hook caller historically expects the `rtk ` prefix). Whether to migrate this to `contextcrawler git status` is a correctness/protocol scope decision affecting hook exec semantics + ~169 test assertions + historical SQLite tracking labels. Filed as #62 for separate investigation. The lint deliberately does NOT cover `format!("rtk X")` literals in `src/discover/registry.rs` for this reason. - `src/core/telemetry_cmd.rs` data-controller attribution (RTK AI Labs, rtk-ai/rtk TELEMETRY.md URL) -- factual upstream attribution, separate scope. ## Pinning tests The 10 new FORBIDDEN_TOKENS entries are themselves the pinning tests -- any reintroduction fails `cargo test --test branding_lint` with the specific issue reference and remediation hint. ## Verified - cargo build clean - cargo test --bin contextcrawler: 2156 pass / 0 fail - All 9 integration suites green - Empirical: `contextcrawler --help` discover/session lines now say "ContextCrawler" not "RTK"; `contextcrawler init --help`, `discover --help`, `find --help`, `rewrite --help`, `session --help`, `cc-economics --help` all clean Reported in-session via user testing of the deployed binary.
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 --helpshowing "Discover missed RTK savings" and "Show RTK adoption" — leaks in clap subcommand doc comments that escaped the v0.1.8 rebrand sweep and PR #61.This is round 3. The branding lint is now broad enough to catch every user-visible "RTK"/"rtk" reference class found so far.
Production fixes (user-visible)
src/main.rsclap doc comments (the reported--helpoutput):--uninstall: "RTK artifacts" → "ContextCrawler artifacts"src/hooks/rewrite_cmd.rs— 4 docstring refssrc/hooks/tirith_gate.rs— module doc refssrc/hooks/init.rs— uninstall message + docstringsrc/cmds/system/find_cmd.rs—"rtk find:"error prefixLint extended (10 new tokens)
RTK savings / RTK adoption / RTK equivalent / RTK artifacts / RTK and native / (rtk) / $(rtk /rtk rewrite / rtk find:`The expanded lint caught 6 additional leaks (rewrite_cmd, tirith_gate, init.rs) the user hadn't reported — all fixed in this PR.
Out of scope (filed separately)
rewrite_commandreturnsrtk Xfor all rewrites (the hook caller historically expects this prefix). Migrating tocontextcrawler Xis a correctness/protocol scope decision affecting ~169 test assertions + historical SQLite tracking labels. The lint deliberately does NOT coverformat!("rtk X")literals for this reason.Verified
cargo buildcleancargo test --bin contextcrawler— 2156 pass / 0 fail--helppage now clean of RTK/rtk referencesCloses the user-reported "discover / session help-page" branding leak (in-session report 2026-05-18).