Repository navigation
Conversation
📊 Automated PR Analysis
SummaryThis PR relocates the shell lexer (previously Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
6 tasks done
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
October 1, 2026 18:32
9a6abfc to
7ca6f6f
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
3 times, most recently
from
October 2, 2026 15:07
baed3e5 to
0e08bde
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
2 times, most recently
from
October 7, 2026 07:16
2e09021 to
8a3834d
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
2 times, most recently
from
October 9, 2026 16:27
adb3556 to
6951254
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
2 times, most recently
from
October 15, 2026 00:24
38f5fd9 to
47b4b9a
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
October 15, 2026 12:03
47b4b9a to
c21d8f3
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
October 19, 2026 16:38
c21d8f3 to
241adf8
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 1, 2026 16:42
d572a28 to
804646f
Compare
TaKO8Ki
self-requested a review
November 2, 2026 11:25
TaKO8Ki
approved these changes
Nov 2, 2026
TaKO8Ki
left a comment
Collaborator
There was a problem hiding this comment.
Looks good. This pr just moves the lexer into core without changing its behavior.
TaKO8Ki
force-pushed
the
lex/11-lexer-to-core
branch
from
November 2, 2026 11:31
804646f to
06147a0
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 3, 2026 00:58
06147a0 to
c22472b
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 3, 2026 06:27
c22472b to
0976532
Compare
KuSh
marked this pull request as draft
November 4, 2026 07:41
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 5, 2026 11:48
0976532 to
49e5689
Compare
KuSh
marked this pull request as ready for review
November 5, 2026 12:22
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 17, 2026 01:42
49e5689 to
6b11d47
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 18, 2026 01:06
6b11d47 to
3759760
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 19, 2026 01:12
3759760 to
74419da
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
2 times, most recently
from
November 25, 2026 02:13
7937d8a to
8d87834
Compare
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 28, 2026 01:23
8d87834 to
56b5acf
Compare
This was referenced Nov 28, 2026
The quote-aware lexer in discover/lexer.rs holds no rewrite rule and no classification logic, and it is already used outside discover: by the permission gate (hooks/permissions.rs), the hook entry points (hooks/mod.rs, hooks/decision.rs, hooks/hook_cmd.rs) and `rtk proxy` (main.rs). Moving it to core/cmdline/lexer.rs puts shared shell knowledge in core, where every consumer can depend on it without depending on discover. No behaviour or visibility change: import paths and doc references follow the file, and its documentation moves from discover/README.md to core/README.md, with every consumer listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KuSh
force-pushed
the
lex/11-lexer-to-core
branch
from
November 29, 2026 01:42
56b5acf to
ac37343
Compare
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.
The quote-, escape- and operator-aware lexer lived in
discover/, but it holds no rewrite rule and no classification logic, and most of its callers are not discover: the permission gate (hooks/permissions.rs), the hook entry points (hooks/decision.rs,hooks/hook_cmd.rs,hooks/mod.rs) andrtk proxy(main.rs) all read shell commands through it. After #4138 made it the one place that says where a word, a quote, a substitution or a segment ends, that knowledge belongs incore, where every component can depend on it without depending ondiscover.src/discover/lexer.rsmoves tosrc/core/cmdline/lexer.rsas a rename. Import paths follow, the doc paths inside the file are qualified with their directory, and the lexer's documentation moves fromdiscover/README.mdtocore/README.md. The consumer table there is now complete:split_for_permissionsis also used bydiscover/registry.rs,contains_unattestable_constructbyhooks/decision.rs,hooks/hook_cmd.rsanddiscover/mod.rs, and thepub(crate)scanning helpers shared with the rewriter's token walks are listed. The folder maps indocs/contributing/TECHNICAL.md,docs/contributing/ARCHITECTURE.mdand.claude/rules/search-strategy.mdpoint to the new location.No behaviour or visibility change.
Test plan
cargo fmt --all --check && cargo clippy --all-targets -- -D warnings && cargo test --all: 6007 passing, clippy clean, at this commitwincheck.sh(cfg(windows) type-check) cleangit show -M --statrecords the file as a rename; no remaining reference todiscover::lexerordiscover/lexer.rsoutsidetarget/Part of stack #4139 (#4129 → #4331). Based on #4138. Each commit gates green on its own, so the stack is bisectable.
🤖 Generated with Claude Code