Skip to content

fix: audit benchmark device sessions per command - #457

Merged
janicduplessis merged 1 commit into
mainfrom
fix/benchmark-session-segments-456
Sep 6, 2026
Merged

fix: audit benchmark device sessions per command#457
janicduplessis merged 1 commit into
mainfrom
fix/benchmark-session-segments-456

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Description

The benchmark rejects sleep 5; env AGENT_DEVICE_STATE_DIR=... AGENT_DEVICE_SESSION=... agent-device snapshot even when the session is correct, because it checks the whole shell command's prefix. Conversely, a scoped first invocation can hide a later default-session invocation.

Solution

Check each segment with the existing quote-aware shell parser. Every agent-device invocation still needs the exact run-scoped environment, daemon recovery remains invalid, and final screenshot/recording proof commands must still stand alone. This changes only the benchmark collector, not the published CLI or timed prompts.

Test plan

Regression coverage accepts delayed scoped navigation and quoted separators, and rejects bare/mismatched invocations anywhere in a chain plus delayed daemon recovery. The existing standalone-proof self-test passes. Re-collecting the retained affected run clears the false positive with identical evidence hashes and timing; its original audit is preserved.

Fixes #456.

@janicduplessis
janicduplessis marked this pull request as ready for review September 6, 2026 06:28
@janicduplessis
janicduplessis merged commit 782b8c5 into main Sep 6, 2026
5 checks passed
@janicduplessis
janicduplessis deleted the fix/benchmark-session-segments-456 branch September 6, 2026 06:29
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.

Fix benchmark session audit for chained navigation commands

1 participant