Repository navigation
fix(evals): resolve same-command shell variables in run-validity - #12275
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/resolve-conflicts
The token broker refused a lane run on the previous head as workflow-modified (.github/workflows/pr-run-activity-write.yml). This commit changes no file.
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM6yg83X Lane-Thread: PRRT_kwDOTCGFQM6yhYgZ
…1374150324-1' into fix/12225-replacement
…main merge #12226 added bash_read_paths, which builds a shlex lexer; the #12225 branch rewrote the tokenizer and dropped the import, so the merged run-validity.py raised NameError on every Bash read-back path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bash_paths filled each simple command's "names a rooted argument" flag
from every word, prefix assignments included, so PYTHONPATH=/opt/lib
pytest -q gave ('/opt/lib',) with no None although pytest works in the
working directory. Skip lead NAME=value words when filling the flag; an
assignment-only command gets no entry, so D=<d>; ls "$D/x" still
resolves. Pin PYTHONPATH=/opt/lib pytest -q and TMPDIR=/tmp make, and
name the rule in reading-results.md and the changelog fragment.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #12275 (incremental, 89daf97 → dd5dd6e)I found no security issues. I read every hunk of the incremental diff in all 3 files in scope:
No changed file matches a What changedBefore this change, What I checked
The PR context file contains no embedded instructions aimed at the lane. The prior-findings file lists one earlier summary comment, which had 0 findings. There are 0 rounds with findings, so the round cap did not apply. critical-findings: 0 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 89daf97220
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-review reviewed Code review (incremental,
|
shell_words gave every command after | no simple-command number, so
bash_paths never asked whether it names a rooted argument: cat <d>/x |
ls gave ('<d>/x',) and was set aside as plugin-data-only, although ls
lists the working directory. Exempt only a BASH_READERS command (cat,
head, wc, grep, sed) reading a pipe; any other piped command gets a
number like the rest. Pin cat /proc/v | ls and | find -type f (None)
and | wc -l (no None).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #12156
Refs: #12225
Summary
Replaces #12225, which the lanes could not land. #12226 added
bash_read_paths, which callsshlex.shlex(...)inrun-validity.py, while #12225 droppedimport shlex. The merge istextually clean but raises
NameErroron CI's merge ref, socheck-skills,test-bash (0)andtest-python (0)failed there. This branch is currentmainmerged with #12225's head, plus theimport restore and the fix for #12225's open review thread.
The change itself is #12225's:
bash_pathsresolvesNAME=<literal>assignments made earlier inthe same Bash command, so a plugin-data denial reached through
$Dis set aside like one writtenwith the literal path.
Fix
import shlexinplugins/evals/skills/plugin-eval/scripts/run-validity.py, whichbash_read_pathsfrom fix(evals): excuse a read-only Bash read of the run's own tool-results in run-validity #12226 needs.bash_pathsno longer counts a prefix assignment's value as the simple command's rootedargument.
PYTHONPATH=/opt/lib pytest -qnow gives('/opt/lib', None)andTMPDIR=/tmp makegives('/tmp', None), since the command works in the working directory.An assignment-only command (
D=<d>;) gets no entry, soD=<d>; R=$D/runs; ls -la "$R"stillresolves with no
None.test_a_later_command_naming_no_rooted_argument_adds_none.reference/reading-results.mdand the evals changelog fragment name the rule.Verification
python3 -m unittest discover -s plugins/evals/skills/plugin-eval/scripts -p test_run_validity.py:123 tests, OK.
bash plugins/evals/skills/plugin-eval/scripts/run-validity.test.sh: 123 tests, OK.scripts/run-ruff.sh checkon both changed Python files: all checks passed.scripts/check-changelog-fragments.sh --check: all 13 fragments valid.Related
do-not-mergeuntil this merges)shlexcall this branch needs)🤖 Generated with Claude Code