Skip to content

fix: decode quoted benchmark shell commands - #459

Merged
janicduplessis merged 2 commits into
mainfrom
fix/benchmark-shell-wrapper-458
Sep 6, 2026
Merged

fix: decode quoted benchmark shell commands#459
janicduplessis merged 2 commits into
mainfrom
fix/benchmark-shell-wrapper-458

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Description

The benchmark can reject a valid run when an agent searches for run:android|agent-device|emulator. Codex's displayed shell command escapes the inner quotes; stripping only the outer quotes makes the parser split that search pattern into fake commands.

Solution

Decode one outer double-quoted shell argument before auditing, using the same normalizer for command segments and proof matching. Literal backslashes retain shell quoting semantics. Standalone proof boundaries and session requirements remain unchanged. This is collector-only: no CLI, prompt, or timing changes.

Test plan

Regression coverage uses the encoded quoted-search reproduction, quoted proof text, chained proof rejection, and literal backslashes. The standalone-proof self-test passes. Re-collection of the affected retained run clears the false positive with identical evidence hashes and timing; its original audit remains preserved. Existing real setup violations still fail the corrected audit.

Fixes #458.

@janicduplessis
janicduplessis marked this pull request as ready for review September 6, 2026 12:30
@janicduplessis
janicduplessis merged commit e2cb47a into main Sep 6, 2026
5 checks passed
@janicduplessis
janicduplessis deleted the fix/benchmark-shell-wrapper-458 branch September 6, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decode quoted shell wrappers before benchmark command audits

1 participant