Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
feb7084
fix(tier3): decode inline and Promise.allSettled Codex wrappers (#235)
shetsecure Nov 2, 2026
dd07254
fix(tier3): keep record error status authoritative
shetsecure Nov 2, 2026
6dee63f
Merge remote-tracking branch 'origin/main' into fix/codex-wrapper-gra…
shetsecure Nov 2, 2026
ce88570
Merge NVIDIA/SkillEvaluator main into fix/codex-wrapper-grammar
shetsecure Nov 5, 2026
2c8cd16
fix(tier3): grade Codex exec records by their own exit code
shetsecure Nov 5, 2026
cf94256
Merge NVIDIA/SkillEvaluator main into fix/codex-wrapper-grammar
shetsecure Nov 6, 2026
e3296c7
fix(tier3): read exec records before the upstream grammar
shetsecure Nov 6, 2026
b0d464f
fix(tier3): end the @exec pragma at U+2028 and U+2029
shetsecure Nov 6, 2026
63247a7
fix(tier3): grade a lone exec call by its own record
shetsecure Nov 6, 2026
061dc33
fix(tier3): lex exec wrappers the way JavaScript does
shetsecure Nov 6, 2026
227cd54
fix(tier3): find a quiet probe's output under any settled field
shetsecure Nov 6, 2026
09ed457
fix(tier3): accept only names JavaScript accepts
shetsecure Nov 6, 2026
4ed08a0
fix(tier3): fail closed on an incomplete lone exec record
shetsecure Nov 6, 2026
f6aeb6b
fix(tier3): reject exec wrappers with non-JavaScript spaces
shetsecure Nov 6, 2026
361a4f8
Merge NVIDIA/SkillEvaluator main into fix/codex-wrapper-grammar
shetsecure Nov 6, 2026
28e776c
fix(tier3): reject non-finite numbers in the older grammar
shetsecure Nov 6, 2026
6c03e0c
Merge branch 'main' into fix/codex-wrapper-grammar
chrisknvidia Nov 9, 2026
a819a9d
Merge NVIDIA/SkillEvaluator main into fix/codex-wrapper-grammar
shetsecure Nov 9, 2026
7295301
fix(tier3): decode a lone record after whitespace and under an output…
shetsecure Nov 9, 2026
b242b11
Merge branch 'main' into fix/codex-wrapper-grammar
rng1995 Nov 13, 2026
0d11179
fix(tier3): use shared exit-status regex for Codex records
rng1995 Nov 13, 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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,16 @@ All notable changes to SkillEvaluator are documented in this file.
- Tier 2 includes qualifying shell comment blocks at end of file in context
deduplication. Previously those blocks disappeared unless a blank line or
code followed them, which could hide repeated guidance across shell files.
- Tier 3 decodes the native Codex `exec` wrappers that Codex 0.161.0 emits:
inline `text(await tools.NAME(...))`, single-quoted string literals, and
literal `Promise.allSettled` batches rendered by an indexed `for`, indexed
`forEach`, or `forEach(text)`. Multi-call wrappers decode only when each call
owns its own JSON record of the outer output; dynamic arguments, shadowed
bindings, unsupported renderers, and missing, extra, reordered, or truncated
records, including duplicate JSON keys, remain unsupported. A nonzero exit
code or rejected promise in a record is graded as a failure. This restores
security and skill-execution scoring for those wrappers instead of the
neutral fallback.

- All-tier CI retains Tier 2's native reports as advisory while preserving
failed and incomplete evaluation outcomes. GitHub `ci status` validates the
Expand Down
18 changes: 18 additions & 0 deletions src/skillevaluator/tier3/eval_core/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import ast
import bisect
import json
import posixpath
import re
import shlex
Expand Down Expand Up @@ -4942,6 +4943,21 @@ def _quiet_probe_program(words: list[str]) -> str | None:
return program
return None

def _record_output(observation: str) -> str | None:
# A Codex `exec` record prints the command's output inside its JSON:
# `{"exit_code":1,"output":""}`, wrapped for settled promises in an object under a field of
# any name. Follow a lone object-valued field; two of them make the record ambiguous.
try:
record, end = json.JSONDecoder().raw_decode(observation)
except (ValueError, RecursionError):
return None
if _EXIT_STATUS_RE.sub("", observation[end:]).strip():
return None # text after the record may be a diagnostic
while isinstance(record, dict) and not isinstance(record.get("output"), str):
nested = [item for item in record.values() if isinstance(item, dict)]
record = nested[0] if len(nested) == 1 else None
return record["output"] if isinstance(record, dict) and isinstance(record["output"], str) else None

def _is_quiet_negative_probe(tc: dict[str, Any], observation: str) -> bool:
# Exit 1 is a normal negative answer for these probes. Be conservative:
# keep diagnostics and other compound shell commands as failures.
Expand Down Expand Up @@ -4998,6 +5014,8 @@ def _is_quiet_negative_probe(tc: dict[str, Any], observation: str) -> bool:
)
if unified_output is not None:
output = unified_output.group(1)
elif (record_output := _record_output(observation)) is not None:
output = record_output
else:
# Other converters emit status/exit_code lines without an envelope.
output = _EXIT_STATUS_RE.sub("", observation)
Expand Down
Loading
Loading