Skip to content

Validate label sampling inputs before generating annotation pages - #18

Merged
cynkai merged 1 commit into
mainfrom
codex/validate-label-samples
Dec 2, 2026
Merged

cynkai merged 1 commit into
mainfrom
codex/validate-label-samples

Conversation

@cynkai

@cynkai cynkai commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Changes

An explicit --sample 0 previously turned off sampling and included every row. Negative sizes succeeded, unrecognized verdicts silently dropped rows, and a pool containing only judge errors could replace an existing annotation page with an empty one.

The offline label generator now requires a positive sample target, validates every sampled source verdict before selection, and stops if no rows are eligible. A diagnostic identifies the run and item for a malformed verdict. Omitting the option still allows blind annotation of raw responses without judge verdicts.

Verification

  • Reproduced six invalid cases on the previous revision and checked that all six now exit before replacing the saved HTML.
  • Compared the deterministic selection from both published runs. All 20 selected item IDs matched the published human labels, and the offline agreement output matched the published JSON byte for byte.
  • Generated three neutral sample pages and exercised label selection, download and agreement calculation in offline Chromium. The HTML, human labels and agreement report matched the previous revision byte for byte.
  • Ran the full local test suite (282 passed), pyflakes, and the Git whitespace check.

@cynkai
cynkai merged commit ee2c1db into main Dec 2, 2026
2 checks passed
@cynkai
cynkai deleted the codex/validate-label-samples branch December 2, 2026 11:11
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