Skip to content

Add negative-result archive validator - #235

Merged
cschanhniem merged 1 commit into
mainfrom
issue-225-negative-archive-validator
Jul 7, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
issue-225-negative-archive-validator

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Closes #225

Adds scripts/validate_negative_archive.py which validates negative-result archive CSV entries against the schema defined in docs/evidence/NEGATIVE_RESULT_ARCHIVE.md.

Checks:

  • Required fields exist
  • Reason category is valid
  • Date format is ISO 8601
  • Conditional fields present for lab-tested categories
  • superseded_by references existing entry_id
  • pipeline_version is present

Tests: 12 tests covering all checks, CLI exit codes, JSON output.

2075 tests passing.

Closes #225

- scripts/validate_negative_archive.py -- validates CSV entries against
  the schema in NEGATIVE_RESULT_ARCHIVE.md
- Tests cover: valid entry, missing required fields, invalid category,
  invalid date, conditional field warnings, superseded references,
  empty archive, missing file, CLI exit codes, JSON output
@cschanhniem
cschanhniem merged commit 6c04519 into main Jul 7, 2026
1 check passed
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.

Add negative-result archive validator

1 participant