Skip to content

[BUG]: Native Codex inline and allSettled wrappers remain unsupported #235

Closed

Description

@Tomauskasz

What happened?

Native Codex 0.161.0 emits valid inline and literal parallel wrappers that the bounded decoder still marks unsupported_native_codex_exec_wrapper. Real skill reads and commands then receive unsupported/partial automatic scores.

This is a remaining grammar gap after #110, rather than a request to interpret arbitrary JavaScript.

Reproduction steps

No agent or model call needed:

from skillevaluator.tier3.eval_core.codex_tool_call_normalizer import normalize_tool_call

sources = [
    'text(await tools.exec_command({cmd:"pwd"}));',
    "const r=await tools.exec_command({cmd:'pwd'});text(r);",
    'const results=await Promise.allSettled([tools.exec_command({cmd:"pwd"})]);'
    'results.forEach((r,i)=>text({i,...r}));',
]
for source in sources:
    result = normalize_tool_call({"function_name": "exec", "arguments": {"input": source}})
    assert result[0]["_atif_normalization_status"] == "unsupported_native_codex_exec_wrapper"

Suggested fix

Extend only the bounded literal grammar: inline text(await ...), plain single-quoted strings, and observed allSettled renderers (indexed forEach, indexed for, ordered forEach(text)). Match each command to its own settled result and carry explicit exit/error status.

Reject dynamic arguments, shadowed bindings, changed indexes/payloads, duplicate/missing/truncated records and ambiguous ownership. Incomplete evidence should stop grading instead of becoming an ordinary partial score.

My local repair decoded 29 complete retained parallel wrappers; one already-truncated stream correctly remained unsupported. A fresh Docker pair completed 2/2 attempts. Host/container parity and negative parser tests passed.

SkillEvaluator version or commit

Observed on v0.6.0; reproduced against current source c9d170e77bdef0b32a4811fb9b14484578559b2e, tier3/eval_core/codex_tool_call_normalizer.py.

Environment

Codex 0.161.0, Harbor 0.24.0, Python 3.13, macOS arm64, Docker. Source reproduction is provider-independent.

Activity

  1. rng1995 commented on Nov 13, 2026

    @rng1995
    Collaborator

    Fixed by #325, merged to main today. The bounded decoder now accepts inline text(await tools.exec_command(...)), plain single-quoted strings, and the literal Promise.allSettled renderers, and matches each command to its own settled result.

    I re-ran the three reproductions from this issue against main. Each now decodes to exec_command instead of unsupported_native_codex_exec_wrapper. The fix ships in the next release. The dynamic cmds.map(...) form is still tracked in #236.

    Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions