mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-10-07 16:08:54 +00:00
The non_usd rule only checked the Total-block top-level currency, so a new_po whose line item read 'for 55,206.00 CAD' under a USD Total block still template-parsed as ok -- a fail-open hole in the fail-closed gate. Every line item's captured currency and its re-derived body token must now byte-equal the proven-USD top-level currency; covered by a line-level CAD adversarial fixture (the existing adv-non-usd only exercised the Total-block variant) and a candidate-mutation unit test. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| _po_parser_support.py | ||
| conftest.py | ||
| test_po_bedrock_fallback.py | ||
| test_po_parser.py | ||
| test_po_validation_gate.py | ||