Skip to content

fix: preserve explicit dataset offsets across runner backends - #81

Open
Afloat16 wants to merge 1 commit into
billion-token-one-task:masterfrom
Afloat16:fix/dataset-offset-precedence-20261202-r2
Open

Afloat16 wants to merge 1 commit into
billion-token-one-task:masterfrom
Afloat16:fix/dataset-offset-precedence-20261202-r2

Conversation

@Afloat16

@Afloat16 Afloat16 commented Dec 2, 2026

Copy link
Copy Markdown

Problem

Both runner paths use truthiness to resolve example_offset. An explicit runtime or config offset of zero is overridden by a lower-priority config/environment offset, so the experiment can evaluate a different dataset window from the one requested. Negative offsets are also clamped only on the local path.

Changes

Share one offset-resolution rule: the first nonempty explicit value wins, including zero, and negative offsets clamp to zero consistently. Local dataset-size clamping and manifest recording remain intact.

Validation

Exercise both actual load_dataset paths with controlled local dataset/HTTP-fetch dependencies. Cover runtime zero overriding config, config zero overriding environment, string zero, negative values, and a missing runtime override.

  • Base regression result: 5 failed, 5 passed.
  • python -m pytest -q tests/test_dataset_offset_precedence.py tests/test_runner_contract_and_failure_policy.py tests/test_evidence_audit.py: 62 passed, 26 subtests passed.

This fixes dataset-window selection, separate from numeric benchmark scoring or dataset metadata verification.

@cla-assistant

cla-assistant Bot commented Dec 2, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@cla-assistant

cla-assistant Bot commented Dec 2, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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