Skip to content

fix(scenario): forbid idle-gap caps in agentperf-v2 - #3

Open
roborluo wants to merge 2 commits into
ArtificialAnalysis:agentperf-v2from
roborluo:fix/agentperf-v2-forbid-idle-gap-caps
Open

roborluo wants to merge 2 commits into
ArtificialAnalysis:agentperf-v2from
roborluo:fix/agentperf-v2-forbid-idle-gap-caps

Conversation

@roborluo

Copy link
Copy Markdown

Problem

The agentperf-v2 scenario neither locks nor forbids --trace-idle-gap-cap-seconds or --system-idle-gap-cap-seconds. Both are accepted by the validator, so a submitter can compress or skip recorded idle time and still report submission_valid=true. The system idle-gap cap applies on both the --public-dataset and --input-file paths.

Change

  • agentperf-v2 sets forbid_trace_idle_gap_cap=True.
  • New ScenarioSpec.forbid_system_idle_gap_cap, enforced by the validator on every profiling phase, and set for agentperf-v2.
  • With either flag set, the run fails the scenario lock, or reports submission_valid=false under --unsafe-override.
  • --inter-turn-delay-cap-seconds is not touched here; how per-turn pauses are capped is covered separately (feat(dataset): smooth tanh inter-turn delay cap; honor the cap on public DAG datasets #1).

Tests

tests/unit/common/scenario/test_scenario_validator.py: a clean agentperf-v2 run stays valid; each idle-gap cap flag is rejected.

🤖 Generated with Claude Code

The agentperf-v2 scenario neither locks nor forbids
--trace-idle-gap-cap-seconds or --system-idle-gap-cap-seconds, so a
submitter can compress or skip recorded idle time and still report
submission_valid=true.

Set forbid_trace_idle_gap_cap for agentperf-v2, and add a matching
forbid_system_idle_gap_cap scenario field that the validator enforces
on every profiling phase. The per-turn --inter-turn-delay-cap-seconds
is left unchanged here.

Signed-off-by: Bofeng Luo <bofengl@nvidia.com>
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Try out this PR

Quick install:

pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@37e4b9ad208cc0941cfecc262b4cde57c6efc95e

Recommended with virtual environment (using uv):

uv venv --python 3.12 && source .venv/bin/activate
uv pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@37e4b9ad208cc0941cfecc262b4cde57c6efc95e

Last updated for commit: 37e4b9a • Browse code

…t them

Signed-off-by: Bofeng Luo <bofengl@nvidia.com>
@roborluo
roborluo force-pushed the fix/agentperf-v2-forbid-idle-gap-caps branch from b176e77 to 37e4b9a Compare November 12, 2026 23:40
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.

1 participant