Skip to content

fix: validate required values in every selected dataset row - #89

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

Afloat16 wants to merge 1 commit into
billion-token-one-task:masterfrom
Afloat16:fix/dataset-row-required-values-20261202-r2

Conversation

@Afloat16

@Afloat16 Afloat16 commented Dec 2, 2026

Copy link
Copy Markdown

Problem

Dataset loading checks mapped field names only on the first selected row. Later rows can omit the prompt/label field and fail after model loading or paid inference begins. Null values are converted to the literal text None during scoring, turning an unavailable observation into a misleading benchmark outcome.

Changes

Share a selected-row validator between the local dataset loader and the HTTP fallback. Refuse missing or null mapped values with the absolute dataset row and affected fields before the inference stage. Keep zero, false, empty strings, and null values in unmapped optional fields as actual data, and validate only the selected sample window.

Validation

  • 8 failed, 4 passed on base.
  • Exercise both production load_dataset paths with controlled dataset dependencies. Regressions cover missing and null prompts/targets on a later row, valid false/zero values, optional fields, and invalid data outside the selected window.
  • python -m pytest -q tests/test_dataset_row_required_values.py tests/test_runner_contract_and_failure_policy.py tests/test_runner_capability.py: 71 passed, 34 subtests passed.

This validates actual selected observations; it is separate from the earlier metadata feature-map 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.

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