Repository navigation
fix(tier3): preserve exit status for quoted script paths #727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rng1995
merged 25 commits into
NVIDIA:main
from
Afloat16:fix/preserve-quoted-script-exit-status
Nov 23, 2026
Merged
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2aa5c11
fix(tier3): preserve exit status for quoted script paths
Afloat16 59862dc
Merge branch 'main' into fix/preserve-quoted-script-exit-status
chrisknvidia 623b1ab
Merge main to resolve release note conflict in PR #727
Afloat16 b03370a
Merge latest main to resolve release note conflict in PR #727
Afloat16 f9cae8a
Merge branch 'main' into fix/preserve-quoted-script-exit-status
rng1995 fd2eb96
fix(tier3): keep negated script statuses unattributed
Afloat16 88705de
test(tier3): verify negated status on real quoted and escaped paths
Afloat16 45ee1a9
Merge main and preserve pending changelog entry
Afloat16 1caea75
fix(tier3): keep timed and piped script statuses unattributed
Afloat16 ea199f9
Merge branch 'main' into fix/preserve-quoted-script-exit-status
rng1995 221d1ee
Merge upstream main and preserve unreleased notes
Afloat16 5599ea9
fix(tier3): ignore comment text in script status attribution
Afloat16 345f2cd
fix(tier3): leave nested shell expansion status unattributed
Afloat16 750b2ab
fix(tier3): recognize continued shell expansion openers
Afloat16 b7edf28
fix(tier3): preserve commentless shell status attribution
Afloat16 cd2232b
fix(tier3): retain status for quoted hashes in shell arguments
Afloat16 fa1db99
Merge main and retain both Unreleased changelog entries
Afloat16 4130955
chore: integrate main and retain unreleased fixes
Afloat16 5256c08
chore: integrate latest SkillSpector diagnostics from main
Afloat16 3f50106
chore: merge main and preserve the PR release note
Afloat16 0eb9483
Merge main into fix/preserve-quoted-script-exit-status
rng1995 c888f03
fix(tier3): attribute quoted-script status across time -- and leading…
rng1995 111b6d6
Merge main into afloat/pr-727
rng1995 c1e38b4
Merge main into afloat/pr-727
rng1995 4ef4447
Merge branch 'main' into fix/preserve-quoted-script-exit-status
rng1995 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """A quoted script path must retain its recorded command exit status.""" | ||
|
|
||
| import pytest | ||
|
|
||
| from skillevaluator.tier3.eval_core.declarative_checks import evaluate_declarative_checks | ||
|
|
||
|
|
||
| @pytest.mark.parametrize( | ||
| "command", | ||
| ["python 'scripts/my task.py'", 'python "scripts/my task.py"'], | ||
| ) | ||
| @pytest.mark.parametrize("status", [0, 2]) | ||
| def test_single_quoted_script_command_uses_its_recorded_status(command: str, status: int) -> None: | ||
| (result,) = evaluate_declarative_checks( | ||
| [{"type": "command_succeeded", "script": "scripts/my task.py"}], | ||
| tool_calls=[ | ||
| { | ||
| "action": "Bash", | ||
| "action_input": {"command": command}, | ||
| "observation": f"Process exited with code {status}", | ||
| } | ||
| ], | ||
| final_response="", | ||
| workspace_roots=[], | ||
| ) | ||
|
|
||
| assert result["passed"] is (status == 0) | ||
| assert f"exited {status}" in result["reason"] | ||
|
|
||
|
|
||
| @pytest.mark.parametrize("tail", [" | tail -1", " || true", "; echo done"]) | ||
| def test_quoted_script_still_does_not_claim_a_shell_tail_status(tail: str) -> None: | ||
| (result,) = evaluate_declarative_checks( | ||
| [{"type": "command_succeeded", "script": "scripts/my task.py"}], | ||
| tool_calls=[ | ||
| { | ||
| "action": "Bash", | ||
| "action_input": {"command": "python 'scripts/my task.py'" + tail}, | ||
| "observation": "Process exited with code 0", | ||
| } | ||
| ], | ||
| final_response="", | ||
| workspace_roots=[], | ||
| ) | ||
|
|
||
| assert result["passed"] is None |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.