Repository navigation
fix(tier3): count explicit root searches as wasted tool calls - #229
Merged
chrisknvidia merged 11 commits intoOct 29, 2026
Merged
Conversation
Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
marked this pull request as ready for review
October 23, 2026 21:32
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
October 23, 2026 21:32
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
reviewed
Oct 27, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Automated review: 2 findings (0 P1, 1 P2, 1 P3); 2 posted inline.
Reviewed at 6fb0ef1. The host and bundled classifiers agree on 20k randomized commands, and tests/tier3 passes (5049 passed). The comments below are about root searches the classifier skips and the CHANGELOG wording.
Skip redirection operators and their targets instead of returning early on < and >, keep the prior score for here-documents and process substitution, and classify sh -c / bash -c payloads with a depth bound. Reword the changelog and report guidance: every classified root search is waste, whether or not it names the expected skill or script. Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
force-pushed
the
feat/christopherk/public-root-search-efficiency
branch
from
October 27, 2026 17:09
6fb0ef1 to
709c1f2
Compare
rng1995
approved these changes
Oct 27, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, @chrisknvidia, for this improvement and the quick turnaround on the review. Re-reviewed at 2a984d1: both earlier findings are fixed in 709c1f2, the host and bundled checkers agree, and tests/tier3 passes. The bare VAR=value prefix comment is a non-blocking follow-up. Approving.
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
A command such as `LC_ALL=C find / -name task.py` was read with the assignment as its executable, so the root search kept full tool-efficiency credit. Skip leading NAME=value words before unwrapping wrappers, in both the host and bundled scorers. Signed-off-by: Christopher Kevin <[email protected]>
…ssification A quoted or escaped assignment-looking word such as 'LC_ALL=C' or LC_ALL\=C is the command name to the shell, not an assignment, so the search after it never runs. Skip leading NAME=value words only when NAME= is written unquoted, in both the host and bundled scorers, and add quoted and escaped controls. Signed-off-by: Christopher Kevin <[email protected]>
Searching the whole command text for NAME= let an unquoted assignment in one command (FOO=1; 'FOO=2' find /) make a quoted command name in another look like an assignment. Mask every = that does not follow an unquoted NAME at the start of its word, tokenize the masked text alongside the original, and skip a leading word only when its masked token is still an assignment. Same change in the host and bundled scorers, with controls for separate commands that reuse an assignment name. Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
deleted the
feat/christopherk/public-root-search-efficiency
branch
October 29, 2026 02:30
15 of 20 tasks
chrisknvidia
added a commit
that referenced
this pull request
Oct 30, 2026
* fix(tier3): count explicit root searches as wasted tool calls * fix(tier3): classify find root operands after the option terminator * fix(tier3): classify redirected and sh -c wrapped root searches * fix(tier3): skip leading assignments before root-search classification * fix(tier3): only skip unquoted leading assignments in root-search classification * fix(tier3): decide leading assignments per shell word Signed-off-by: Christopher Kevin <[email protected]>
This was referenced Nov 1, 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
An explicit root search such as
find / -name task.pycurrently receives full tool-productivity credit when it names the expected script. Classify supported literal filesystem-root searches before expected-name credit, consistently in host and bundled scoring. Scoped searches and slash-valued search patterns keep their previous classification. Unknown option arity, expansions, comments and redirection syntax retain the old score rather than inventing a search path.Verification
This is bounded classification of common top-level commands, not a shell interpreter. No live model-provider agent or GPU evaluation was run.
Release Impact
CHANGELOG.mdand report guidance.