# Structured-Output Failure Fixtures (v1.0)

Twelve adversarial extraction fixtures where JSON schemas validate 100% while silently shipping wrong production data.

## Quickstart

Requires Python 3.11+ and `pytest` (no other runtime dependencies):

```bash
pytest test_extraction_eval.py
```

## Files

- `fixtures.v1.json`: 12 versioned fixtures spanning missing facts, contradictory values, empty inputs, sign/currency errors, prompt injection, and out-of-scope enums.
- `scorer.py`: Typed deterministic scorer separating schema validity, field correctness, abstention accuracy, false acceptance count, and cost per correct accepted record.
- `test_extraction_eval.py`: CI test runner. Replace `_reference_oracle` with your own extraction callable to check changes before deploying.

Published by Prabal Gupta (`https://prabal.ca/benchmarks/structured-output-failures/`). MIT License.
