Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 Nov 17, 2026
59862dc
Merge branch 'main' into fix/preserve-quoted-script-exit-status
chrisknvidia Nov 17, 2026
623b1ab
Merge main to resolve release note conflict in PR #727
Afloat16 Nov 17, 2026
b03370a
Merge latest main to resolve release note conflict in PR #727
Afloat16 Nov 17, 2026
f9cae8a
Merge branch 'main' into fix/preserve-quoted-script-exit-status
rng1995 Nov 17, 2026
fd2eb96
fix(tier3): keep negated script statuses unattributed
Afloat16 Nov 17, 2026
88705de
test(tier3): verify negated status on real quoted and escaped paths
Afloat16 Nov 17, 2026
45ee1a9
Merge main and preserve pending changelog entry
Afloat16 Nov 17, 2026
1caea75
fix(tier3): keep timed and piped script statuses unattributed
Afloat16 Nov 18, 2026
ea199f9
Merge branch 'main' into fix/preserve-quoted-script-exit-status
rng1995 Nov 18, 2026
221d1ee
Merge upstream main and preserve unreleased notes
Afloat16 Nov 18, 2026
5599ea9
fix(tier3): ignore comment text in script status attribution
Afloat16 Nov 18, 2026
345f2cd
fix(tier3): leave nested shell expansion status unattributed
Afloat16 Nov 18, 2026
750b2ab
fix(tier3): recognize continued shell expansion openers
Afloat16 Nov 18, 2026
b7edf28
fix(tier3): preserve commentless shell status attribution
Afloat16 Nov 19, 2026
cd2232b
fix(tier3): retain status for quoted hashes in shell arguments
Afloat16 Nov 19, 2026
fa1db99
Merge main and retain both Unreleased changelog entries
Afloat16 Nov 19, 2026
4130955
chore: integrate main and retain unreleased fixes
Afloat16 Nov 19, 2026
5256c08
chore: integrate latest SkillSpector diagnostics from main
Afloat16 Nov 19, 2026
3f50106
chore: merge main and preserve the PR release note
Afloat16 Nov 20, 2026
0eb9483
Merge main into fix/preserve-quoted-script-exit-status
rng1995 Nov 20, 2026
c888f03
fix(tier3): attribute quoted-script status across time -- and leading…
rng1995 Nov 20, 2026
111b6d6
Merge main into afloat/pr-727
rng1995 Nov 21, 2026
c1e38b4
Merge main into afloat/pr-727
rng1995 Nov 21, 2026
4ef4447
Merge branch 'main' into fix/preserve-quoted-script-exit-status
rng1995 Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ All notable changes to SkillEvaluator are documented in this file.

### Fixed

- Declarative command-success checks retain recorded exit status for a single
script command whose quoted path contains spaces.
- Direct Tier 1 validates the target, selected checks and LLM configuration before
preparing scanners, so configuration errors do not trigger downloads or stdout noise.
- Documentation-only CI follows imports through collected test modules and
Expand Down
3 changes: 3 additions & 0 deletions src/skillevaluator/tier3/eval_core/declarative_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ def _script_exit_status(call: dict[str, Any], script: str) -> int | None:
shell, modelled = _tool_call_shell(call)
if not modelled:
return None
if len(segments) == 1:
Comment thread
Afloat16 marked this conversation as resolved.
Resolved
# Joining decoded tokens would lose quoted argument boundaries.
return status if _cmd_executes_script(command, script, _shell=shell) is True else None
Comment thread
Afloat16 marked this conversation as resolved.
Resolved
Comment thread
Afloat16 marked this conversation as resolved.
Resolved
invocations = [
index
for index, segment in enumerate(segments)
Expand Down
49 changes: 49 additions & 0 deletions tests/tier3/test_quoted_script_status.py
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