llm-ingestion-okf/tests/fixtures/k2-office-fasit.json
Kjell Tore Guttormsen 9d1f4b14ed test(fixtures): replace sector-specific example material with generic, fictitious examples — green
Every fixture, test document, tool example and document now uses an invented
kitchen-and-baking handbook series, written in this repository. The package's
behaviour is unchanged; src/ changes are comments and help text only.

- Generated fixtures are regenerated from their generators. Their structural
  counts are identical before and after: elements, images, rows, cells,
  headings, bookmarks and the witness inventory's per-document totals. The
  image-inbox and accounting documents are renamed kapittel-84-*.
- tools/okf_accounting_gate.py: the two options that named one real corpus
  each are replaced by a generic, repeatable --corpus PATH with no default.
  Row 5 compares the PDF pair alone. Gate verdict unchanged: RED rows 2, 3, 6.
- tools/okf_witness.py: the STS JSON reader for one publisher's delivery is
  removed, along with its three twins and five tests. The mutation harness
  loses W09.
- docs/: 13 dated reports that documented runs on a retired reference corpus
  are removed, and 40 are neutralized. Dead links are removed, and no new
  dangling path is introduced.
- The synthetic MCP-gate corpus and the residual probe words are neutral.

Valgt: keep the `okf quality --fasit` bar value (the measured fraction, one corpus) and
rewrite only its provenance, because the verdict stays unchanged and the
number names nothing.

Term check with the local list: 0 of 411 tracked files, 0 file names, 0 of
27 binary fixtures. Suite after git add: 2457 passed, 1 skipped. The base
tree had 2460 passed and 2 skipped; five tests went with the JSON reader and
four were added by the term check. ruff, ruff format and mypy --strict src/
are clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 14:52:02 +02:00

101 lines
3.8 KiB
JSON

{
"_note": [
"Hand-counted from the AUTHORED content in make_k2_office.py, never from a",
"converter's output: a fasit read off one converter would score that",
"converter on its own homework. Committed before the measurement in",
"docs/2026-09-07-k2-pptx-odt-rtf-fixtures.md was run.",
"The three documents carry the SAME content in three containers, so the",
"counts are shared and the container is the only variable."
],
"counted_by": "hand, from tests/fixtures/make_k2_office.py",
"counted_at": "2026-09-07",
"shared": {
"cells": 56,
"pairs": 20,
"strings": 59
},
"how_counted": {
"cells": "20 rows x 2 columns (PAIRS) + 4 rows x 4 columns (GRID) = 40 + 16",
"pairs": "the 20 PAIRS rows; every label ends in a colon, which is the rule label_value_rows selects on",
"strings": "TITLE + INTRO + GRID_CAPTION + 56 cells = 59, all distinct after normalisation and all at or above MIN_STRING"
},
"documents": {
"krav-presentasjon.pptx": {
"cells": 56,
"pairs": 20,
"strings": 59,
"container": "two slides: title, intro and the 20-row table on slide 1; caption and the 4x4 grid on slide 2"
},
"krav-tekstdokument.odt": {
"cells": 56,
"pairs": 20,
"strings": 59,
"container": "one text body: heading, intro paragraph, 20-row table, caption paragraph, 4x4 table"
},
"krav-rikt-tekstformat.rtf": {
"cells": 56,
"pairs": 20,
"strings": 59,
"container": "flat stream: title paragraph, intro paragraph, 20 table rows, caption paragraph, 4 table rows"
}
},
"rtf_variants": {
"_note": [
"Hand-counted 2026-09-09 from the AUTHORED content in",
"make_k2_office.py, BEFORE round 10's bold-title rule was measured",
"against it -- never from a converter's output. `authored_titles` is",
"what a reader of the source would call a section name; it is NOT a",
"count of what any container manages to declare, which is the whole",
"point: rtf has no heading style, so the author's title is bold text.",
"`bold_runs_that_are_not_titles` is the known-negative denominator."
],
"counted_by": "hand, from tests/fixtures/make_k2_office.py",
"counted_at": "2026-09-09",
"documents": {
"krav-rikt-tekstformat.rtf": {
"authored_titles": 1,
"titles": [
"Kravspesifikasjon for kjøkkenbelysning"
],
"bold_runs_that_are_not_titles": 0,
"declares_heading_style": false,
"container": "title bold AND at 16pt, then intro, the 20-row table, the caption and the 4x4 grid"
},
"krav-rikt-tekstformat-fet-alene.rtf": {
"authored_titles": 2,
"titles": [
"Kravspesifikasjon for kjøkkenbelysning",
"Luminanskrav per romklasse"
],
"bold_runs_that_are_not_titles": 0,
"declares_heading_style": false,
"container": "both titles bold at BODY size, no point-size change anywhere"
},
"krav-rikt-tekstformat-fet-i-avsnitt.rtf": {
"authored_titles": 1,
"titles": [
"Kravspesifikasjon for kjøkkenbelysning"
],
"bold_runs_that_are_not_titles": 1,
"declares_heading_style": false,
"container": "one bold title, then a sentence carrying one bold phrase that continues past it"
},
"krav-rikt-tekstformat-stil.rtf": {
"authored_titles": 2,
"titles": [
"Kravspesifikasjon for kjøkkenbelysning",
"Luminanskrav per romklasse"
],
"bold_runs_that_are_not_titles": 0,
"declares_heading_style": true,
"container": "a stylesheet declaring \\s1 and \\s2, applied to the two title paragraphs"
}
},
"totals": {
"documents": 4,
"authored_titles": 6,
"bold_runs_that_are_not_titles": 1,
"documents_declaring_a_heading_style": 1
}
}
}