c-03-regression-dataset-contract
Regression Dataset Contract
Validate eval examples, slices, and expected fields before CI trusts them.
boss
python
~40 minREADME
# Regression Dataset Contract Implement the tiny eval helper in `src/contract.py` until `tests/validate.py` passes. ## Good / Bad / Ugly - **Good**: passes shuffled and edge-case examples without network calls. - **Bad**: hard-codes the sample fixture and calls it done. Cute. No. - **Ugly**: production data is partial, so validation must reject ambiguity before scoring. Run with `npm run challenge -- regression-dataset-contract --track eval-writing`.
Hints
- Good passes under shuffled examples and explicit edge cases.
- Bad hard-codes the sample rows. Very brave, very detectable.
- Ugly production data is partial; validate before scoring.
Acceptance
- `npm run challenge -- regression-dataset-contract --track eval-writing` exits 0
- Validator exercises good, bad, and ugly cases
- Implementation avoids network calls and nondeterminism