Syngen Validation Debugging
Workflow
- Capture the exact failing metadata YAML or CLI input and the full error message.
- Locate the responsible marshmallow schema in
syngen/ml/validation_schema/. - Locate existing tests for the same validation area in
src/tests/unit/. - Reproduce the failure with the smallest possible fixture.
- Fix validation logic without weakening unrelated constraints.
- Improve error messages when they are unclear or missing context.
- Add a regression test for the failing path.
- Run targeted schema tests:
python -m pytest src/tests/unit/<validation_path>. - Confirm positive cases (valid input still passes) and negative cases (invalid input still fails).