Skip to content

[codex] Add score config validation - #80

Merged
ftshijt merged 2 commits into
mainfrom
codex/score-config-validation
May 28, 2026
Merged

[codex] Add score config validation#80
ftshijt merged 2 commits into
mainfrom
codex/score-config-validation

Conversation

@ftshijt

@ftshijt ftshijt commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a preflight validator for YAML score configs so users get clear, actionable errors before audio loading, metric setup, or scoring begins.

The validator now catches unknown metric names, missing reference audio/text, GPU-required metrics without --use_gpu, missing optional dependencies, and unknown top-level metric parameters.

Validation

  • .codex-test-venv/bin/python -m pytest test/test_metrics/test_definition.py -q
  • .codex-test-venv/bin/python -m py_compile versa/config_validation.py versa/bin/scorer.py versa/bin/scorer_chunk.py

@ftshijt
ftshijt marked this pull request as ready for review May 28, 2026 18:33
@ftshijt
ftshijt merged commit e93dfbb into main May 28, 2026
12 checks passed
@ftshijt
ftshijt deleted the codex/score-config-validation branch May 28, 2026 18:33
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