Skip to content

Verify the source evidence behind human-label agreement - #19

Merged
cynkai merged 2 commits into
mainfrom
codex/verify-label-sources
Dec 2, 2026
Merged

cynkai merged 2 commits into
mainfrom
codex/verify-label-sources

Conversation

@cynkai

@cynkai cynkai commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Changes

The agreement CLI previously accepted an old human label when a different response replaced the reviewed one under the same run and item ID. A CSV record with an extra field could also shift the wrong ID into the comparison and produce apparent 100% agreement.

  • Both offline tools now validate CSV records before reading named columns. Diagnostics identify malformed widths, ambiguous quoted fields and NUL characters. Existing output is preserved on failure.
  • New browser downloads carry a SHA-256 digest for each selected item, derived from the case definition and the response the reviewer saw. The agreement CLI verifies matched labels against raw rows before including them in its statistics. Judge verdicts can change on the same reviewed evidence.
  • Older label files keep the existing ID-based comparison. Saved browser drafts still restore under their original keys.

Verification

  • Used the actual browser download and both CLIs with a neutral fixture. Replacing the reviewed response or supplying only a sanitized row now stops the comparison before it overwrites the previous report.
  • Checked malformed widths and NULs in IDs, headers and multiline response text. Checked quoted multiline and compressed CSVs, leading zeros and long fields.
  • Recomputed the published 20-label report and compared it byte for byte with the committed reference.
  • Local pytest suite: 320 passed. Pyflakes and Git whitespace checks passed.

@cynkai
cynkai merged commit 273b0d1 into main Dec 2, 2026
2 checks passed
@cynkai
cynkai deleted the codex/verify-label-sources branch December 2, 2026 11:31
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