Repository navigation
Description
Closing out the audit with the items I could verify from source but not exercise end to end. Each one says exactly what I checked and what I did not, so you can weigh them accordingly rather than taking a uniform confidence from me.
Provenance: AI-assisted source audit, human-directed, at v0.44.2 (700bdde). Where an item says "source only", no tool was run — the reason is stated inline.
1. RuboCop autocorrect aliases are missed — SOURCE ONLY
src/cmds/ruby/rubocop_cmd.rs:56-58:
let is_autocorrect = args
.iter()
.any(|a| a == "-a" || a == "-A" || a == "--auto-correct" || a == "--auto-correct-all");RuboCop also accepts --autocorrect, --autocorrect-all, -x (--fix-layout) — the hyphenless spellings are the ones its own docs use in current versions. Those miss this check, so has_format stays false and --format json is injected into a run that rewrites files (:63), routing it to the JSON filter.
There is a second-order effect visible in the struct: RubocopOffense (:28-34) has correctable but no corrected field, so offences that the same run just fixed are still counted as outstanding — which is what produces advice to re-run the autocorrect that already ran.
What I did not do: Ruby is not installed on the audit machine and I did not build a stand-in for rubocop specifically. So the flag list and the missing struct field are read from source; the user-visible output I described is inferred, not observed. If the hyphenless aliases are not actually accepted by the RuboCop versions you support, this is not a bug — I could not check that either.
2. rtk init --global --cursor does not exist
docs/guide/resources/troubleshooting.md:49 gives:
rtk init --global --cursor # Cursorrtk init --help lists these long flags:
--opencode --gemini --agent --show --claude-md --hook-only --auto-patch --no-patch
--trust-filters --no-trust-filters --uninstall --codex --copilot --dry-run
--ultra-compact --skip-env
There is no --cursor. Cursor is reachable only as --agent cursor. Note the inconsistency this documents: --codex, --copilot, --gemini and --opencode have bare flags; Cursor, Droid, Hermes, Pi, Windsurf, Cline, Kilo and Antigravity do not — so a user reasonably generalises from the four that exist.
3. Windows config path is not documented anywhere
docs/guide/getting-started/configuration.md:12-15 lists config-file locations for Linux and macOS only. README.md:346 says rtk "works fully on native Windows". On Windows the path is %APPDATA%\rtk\config.toml (from dirs::config_dir()) — observed as C:\Users\<user>\AppData\Roaming\rtk\config.toml. docs/guide/analytics/gain.md:125 has the same Linux/macOS-only listing for the database path.
A Windows user following the docs cannot find the file they are told to edit.
What I could not check at all, and why
Rather than leave these as silent gaps:
rtk cc-economicsbehaviour. I reported arithmetic defects in that path (halved monthly savings, weekly keys that cannot merge) from source in Monthly savings % is halved by an algebraic identity, weekly rtk/ccusage keys can never match, andrtk sessionreports adoption without checking the hook is installed #3418. I never ran the command: it invokesnpx --yes ccusage, which downloads and executes an unpinned package, and it reads real spend data. Running it on a machine I do not own to verify a report seemed like the wrong trade. Everything in Monthly savings % is halved by an algebraic identity, weekly rtk/ccusage keys can never match, andrtk sessionreports adoption without checking the hook is installed #3418 is therefore an arithmetic argument you can check by reading, not an observed output.rtk initandrtk init --uninstall. All theinit.rsfindings (rtk init --gemini --uninstallsilently skips an unparsable settings.json and leaves a dangling hook entry #3400, Uninstall can duplicate user prose in CLAUDE.md, delete user lines starting with@RTK.md, and rewrite the whole file's line endings #3403,rtk init --uninstall -g --agent kilocode(and windsurf/cline/antigravity/kimi) runs the Claude uninstaller instead — removing Claude's config and nothing of the named agent #3404,rtk init --agent hermescan write invalid YAML into~/.hermes/config.yaml, or patch text inside a block scalar — with no backup #3405, Cline/Windsurf/Kilo/Antigravity install skips silently if the project's rules file contains the substring "rtk" — e.g. "RTK Query" in a Redux project #3406) are source-derived for the same reason — running them writes into the real home directory. The Hermes YAML cases inrtk init --agent hermescan write invalid YAML into~/.hermes/config.yaml, or patch text inside a block scalar — with no backup #3405 were reproduced by extracting the pure functions and running them underrustc, which is as close as I could get without touching a real~/.hermes.rtk learn --write-rules. Same: there is no environment override for the transcript root, so a faithful run would read my own agent transcripts, which contain live credentials from unrelated work.- Live tool behaviour for
aws,kubectl,docker,psql,mvn,gradle,sops,helm,terraform,ansible,php,ruby,golangci-lint. Where a finding touches these I used controlled stand-ins and said so in the issue. Installing the binaries would not have closed the gap — each needs credentials, a cluster, a daemon or a database I do not have.
This is the same list as #3399, updated with what the later rounds added. The short version: claims about rtk's own code are checkable by reading; claims about how a wrapped tool behaves are not, and I have tried to keep those two labelled separately throughout.
Suggested fixes (untested)
- Add the hyphenless aliases and
-xtois_autocorrect; addcorrectedtoRubocopOffenseand exclude corrected offences from the count. - Correct
troubleshooting.md:49to--agent cursor, or add the bare--cursorflag for consistency with the other four. - Add a Windows row to the config and database path tables.
Activity
pszymkowiak commentedon Aug 4, 2026
🔍 Automated Triage
bugmediumSummary
RuboCop's hyphenless autocorrect flags (--autocorrect, --autocorrect-all, -x) aren't recognized so JSON output gets wrongly injected into rewriting runs, plus two docs gaps (
--cursordoesn't exist, Windows config path undocumented); all findings are source-only, not run against real tools.📁 Relevant files
src/cmds/ruby/rubocop_cmd.rsdocs/guide/resources/troubleshooting.mddocs/guide/getting-started/configuration.mddocs/guide/analytics/gain.mdTriaged automatically by wshm · This is an automated analysis, not a human review.
docs: fix Cursor init flag and document Windows paths