llm-ingestion-okf/tests/fixtures/accounting
Kjell Tore Guttormsen 37599a3758
test(witness): the JSON role map sees mml:math and figcaption (H3, red)
PM measured it on N200 Vegbygging:2024: 74 `mml:math` carrying 2 811
characters and 49 `figcaption`, and the witness counted 0 and 0. Two
independent causes and both are in this red:

- `count_sts_xml` takes every tag through `_local`, which strips a
  Clark-notation namespace AND a prefix; `count_sts_json` compared the
  raw string, so `mml:math` never reached `tag == "math"`.
- the publisher's JSON puts a figure's caption in `figcaption` under
  the `graphic`, not in the `fig/caption` NISO-STS writes. Measured
  over the eight deliveries on this machine: 430 `figcaption`.

Three tests. The JSON half of `sts-rikt.xml`'s family carries both
shapes as a committed fixture; the real N200 carries PM's four numbers
and skips where the corpus is absent; and the known-negative for
stripping a prefix is N101's 574 `tbx:` tags, whose local names name
no role -- a generalising rule measured against what it must NOT take.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 05:54:01 +02:00
..
corpus test(accounting): row 6 sees a refusal, a second real corpus, and 34 of 34 mutants 2026-09-18 02:48:34 +02:00
rejected test(accounting): content-accounting gate for okf build, written red 2026-09-17 15:40:37 +02:00
witness test(witness): the JSON role map sees mml:math and figcaption (H3, red) 2026-09-19 05:54:01 +02:00
inventory.json test(accounting): the witnesses see what the formats actually hold (M-1..M-3) 2026-09-18 01:53:50 +02:00
make_accounting_fixtures.py test(accounting): row 6 sees a refusal, a second real corpus, and 34 of 34 mutants 2026-09-18 02:48:34 +02:00
rejected-inventory.json test(accounting): the gate opens the bundle itself (BLOCKER B-1) 2026-09-18 01:40:48 +02:00