Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1264 commits
Select commit Hold shift + click to select a range
762c879
slides round thirty: the room a category label has is the tick spacin…
claude Aug 9, 2026
e02d295
Words r31: the blank an odd-page break leaves is never drawn
theolivenbaum Aug 9, 2026
ae6d413
wip(sheets r31): baseline sweep at 150a3dac1, and the outline-collaps…
claude Aug 9, 2026
2e43317
wip: slides round thirty — the weight's swept reach, and the metric i…
claude Aug 9, 2026
11ab1e9
Words r31: a page-number restart picks a side of the sheet too
theolivenbaum Aug 9, 2026
708af20
sheets r31: collapsed outline groups, and the header/footer band
claude Aug 9, 2026
cfd95c8
Words r31: a column break that stayed one has no side to pick
theolivenbaum Aug 9, 2026
ac42fe7
sheets r31: the band's shared height, the section font reset, fixture…
claude Aug 9, 2026
9f1bab2
sheets r31: the mutation script the tests are verified against
claude Aug 9, 2026
0fd3138
slides round thirty: tick the weight item, and open the one it named
claude Aug 9, 2026
6941601
sheets r31: mutation m6 has to reset every section, not only the left…
claude Aug 9, 2026
d58a4a5
Words round thirty-one: the scoreboard, measured whole
theolivenbaum Aug 9, 2026
43cef70
slides round thirty: the scoreboard, measured whole
claude Aug 9, 2026
2c1d8fe
wip: slides round thirty — the final sweep, the plot rectangles and t…
claude Aug 9, 2026
dc214d3
Words r31: batch 006's failure caused, not guessed
theolivenbaum Aug 9, 2026
972a26d
Words r31: record the fidelity suite, 550 of 550 with 0 skipped
theolivenbaum Aug 9, 2026
06bede8
Merge words r31: the filler page was right and should not have been d…
claude Aug 9, 2026
fa4963c
sheets r31: probe notes, scoring and reach scripts
claude Aug 9, 2026
8d96346
slides round thirty: the cross-track sweep — 0 of 371
claude Aug 9, 2026
12b5cb7
wip(words r32): env-guarded row-split trace, and batch 006's stated c…
claude Aug 9, 2026
3e179b8
Merge branch 'worktree-slides-r30' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
0fa1ad3
sheets r31: coalesce a line's same-size pieces, and do not anchor the…
claude Aug 9, 2026
726f3b2
sheets r31: the byte-level reach, 54 of 171 documents
claude Aug 9, 2026
b8a8125
Merge slides r30: the source was wrong twice, the binary right both t…
claude Aug 9, 2026
1d4aa15
sheets r31: the scoreboard entry
claude Aug 9, 2026
dadb430
sheets r31: which tree each sweep measured, and the test counts
claude Aug 9, 2026
28ebe3b
slides r31: census the chart parts whose per-element text sizes Chart…
claude Aug 9, 2026
934c8d9
sheets r31: the whole-track result on the final tree
claude Aug 9, 2026
1e05bda
Merge branch 'worktree-sheets-r31' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
bc6b12c
slides r31: read a data label's own size and weight instead of the ax…
claude Aug 9, 2026
12cf74f
Merge sheets r31: the largest word-error move of the effort
claude Aug 9, 2026
e36f2e1
slides r31: a chart's face is its chart space's statement, not whiche…
claude Aug 9, 2026
b0e6f9c
Words r32: batch 006's row-split gate is caused by the trHeight floor…
claude Aug 9, 2026
e5e403b
slides r31: tests for the two chart readings, and a census of the ref…
claude Aug 9, 2026
45d629c
wip: draw a workbook's shown cell comments
claude Aug 9, 2026
3138906
Words r32: the cell border's width, swept whole and deliberately not …
claude Aug 9, 2026
3144609
Merge branch 'worktree-words-r32' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
c764f9a
wip: the fixture, its tests, and the measured baseline
claude Aug 9, 2026
97668ff
wip: the mutations the shown-comment tests are verified against
claude Aug 9, 2026
f1be9c4
Merge words r32: a round that shipped no code, and was right not to
claude Aug 9, 2026
dc71d3c
wip: m1 as a behaviour change rather than a compile error
claude Aug 9, 2026
cb2ea91
slides r31: the scoreboard — 6 of 163 changed, and the residual has t…
claude Aug 9, 2026
fa2fa12
slides r31: record both closures and both open halves in the Presenta…
claude Aug 9, 2026
0531c4e
slides r31: the new tests are two, not three — counted from the run r…
claude Aug 9, 2026
c29be8d
wip: the round's probe README, sweep result still to fill in
claude Aug 9, 2026
bddf9e1
wip: reach.tsv and the 011/016 triage
claude Aug 9, 2026
1d77e4a
slides r31: the stretch is per chart, with the one-case correlation l…
claude Aug 9, 2026
e72149b
wip: the unimplemented branch for a comment with no VML shape, with i…
claude Aug 9, 2026
4d25baa
sheets r32: a workbook's shown cell comments
claude Aug 9, 2026
c1124ac
sheets r32: say plainly that the reach run was the ten VML-carrying w…
claude Aug 9, 2026
fa2af14
Merge branch 'worktree-sheets-r32' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
d471a91
Words r33: the cell border is not charged against the cell's text wid…
claude Aug 9, 2026
9f44b29
Merge sheets r32: shown cell comments, and one document by design
claude Aug 9, 2026
1ceee1f
slides r31: the cross-track sweep — 0 of 371, measured rather than re…
claude Aug 9, 2026
59fb05b
Merge branch 'worktree-slides-r31' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
8fbfc2e
Words r33: a cell's margin is floored at half its border, on the OOXM…
claude Aug 9, 2026
80ed114
Merge slides r31, and fix the tool defect it exposed
claude Aug 9, 2026
69db643
wip: sheets r33 grid probe
claude Aug 9, 2026
7942fdb
wip: sheets r33 baseline and the row-band prototype
claude Aug 9, 2026
4eab9d1
sheets: a pinned BIFF header or footer band has no minimum height
claude Aug 9, 2026
dbfac37
Words r33: the round — the premise settled, the reach measured, A_320…
claude Aug 9, 2026
307026b
Merge branch 'worktree-words-r33' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
4468b72
sheets: an authored .xls fixture for the pinned header/footer band
claude Aug 9, 2026
a98e59a
Merge words r33: the border charge refuted, the rule beneath it shipped
claude Aug 9, 2026
b9a9031
slides r33: the anisotropic chart text is content overflow, not the f…
claude Aug 9, 2026
6282adb
slides r33: a chart title's own face, carried apart from the chart's
claude Aug 9, 2026
4d9aa03
wip: sheets r33 probe data, reach and the EASA /Widths diagnosis
claude Aug 9, 2026
a19006f
slides r33: record what page 38 has left, and the wrap limit the corp…
claude Aug 9, 2026
2b687bf
sheets: a band pinned at no height is still drawn, and its gap is not…
claude Aug 9, 2026
0b6aa01
wip(words r34): baseline measured, and the printer-metric census that…
claude Aug 9, 2026
40dcd81
slides r33: count the stretch's reach over the decks that hold chart …
claude Aug 9, 2026
bf7caac
slides r33: record the census's largest group, measured and undiagnosed
claude Aug 9, 2026
7980c25
sheets: a second fixture for the band pinned at nothing
claude Aug 9, 2026
b1030ab
Record the first human review of the slides residue
claude Aug 9, 2026
02a9a81
wip: sheets r33 scoreboard entry and probe README
claude Aug 9, 2026
84325d8
slides r33: diagnose the review's chart findings, and record the two …
claude Aug 9, 2026
c438738
slides r33: the scoreboard for the round
claude Aug 9, 2026
e8dbc69
sheets r33: the whole-track result, spliced and scored
claude Aug 9, 2026
09cc0c4
words r34: the printer device quantises advance widths, and the rule …
claude Aug 9, 2026
1389ab7
wip(words r34): measure an advance through the printer's device grid
claude Aug 9, 2026
66f186d
Record the sheets review, and the pagination cluster it exposed
claude Aug 9, 2026
7c6a5c7
words r34: pin the printer advance rule, and the three alternatives i…
claude Aug 9, 2026
9e0ccb4
slides r33: the fidelity count, run and matching
claude Aug 9, 2026
e043813
Merge branch 'worktree-slides-r33' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
1a84e8d
sheets r33: the pagination cluster is not a column-fit predicate
claude Aug 9, 2026
e7e77dc
sheets r33: the reach of both changes together is seven documents
claude Aug 9, 2026
013d3d5
Merge slides r33, and add first-divergence.py
claude Aug 9, 2026
426d600
Merge branch 'worktree-sheets-r33' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
e6a6813
words r34: the round — the advance rule shipped, its reach measured, …
claude Aug 9, 2026
472d5ba
Merge branch 'worktree-words-r34' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
b05381a
Merge words r34: the printer-metric advance law, exact on 96 of 96
claude Aug 9, 2026
a115b72
Record the words review and the first-divergence sweep
claude Aug 9, 2026
54bb451
first-divergence: stop counting the Tj batching artefact as a difference
claude Aug 9, 2026
dfba845
wip: map every MSO_SPT naming a known DrawingML preset on the .ppt path
claude Aug 9, 2026
8f18eb1
wip(sheets-r34): RowProbe — dump what a row's cells look like to the …
claude Aug 9, 2026
3287064
wip(sheets-r34): baseline whole-track sweep at a115b723b
claude Aug 9, 2026
ed55b80
Wire glyph fallback into the word-processing layout
claude Aug 9, 2026
3a6dc38
sheets: a hard break belongs to the cell's format, not to its text
claude Aug 9, 2026
e1d258f
Add the reader-level half of the glyph-fallback test
claude Aug 9, 2026
dff5ef2
Re-sweep the words track with the batching artefact no longer counted
claude Aug 9, 2026
d0ca5f3
Give a fallback face a key its program can be embedded by
claude Aug 9, 2026
ee99b91
sheets: pin the empty final paragraph, and author the SpreadsheetML b…
claude Aug 9, 2026
60ba653
first-divergence: a page the image diff cannot compare is the divergence
claude Aug 9, 2026
0211cd3
Pin the .ppt preset-type table with tests
claude Aug 9, 2026
657d5b2
sheets r34: whole-track sweep and byte-level reach of the two changes
claude Aug 9, 2026
8767995
Do not seek a fallback face for a character nothing draws
claude Aug 9, 2026
63210aa
sheets: the rule is the wrap flag alone — both importers say so, in t…
claude Aug 9, 2026
3118201
Slides r21: the .ppt preset table's measured reach, and the size clus…
claude Aug 9, 2026
2ced176
Merge slides: the .ppt preset shape table, 6 entries to 148
claude Aug 9, 2026
b0de341
first-divergence: a stroke's box is not a font size
claude Aug 9, 2026
0f062ce
sheets r34: the round — the hard-break rule shipped, its reach measur…
claude Aug 9, 2026
8005d9c
sheets r34: T0A0D0000090006XLSE.xls is not the row-height cluster
claude Aug 9, 2026
3c44adb
sheets: keep the portions read where it was — the reorder was not needed
claude Aug 9, 2026
8b69791
sheets r34: record the final test counts
claude Aug 9, 2026
41d109e
Merge branch 'worktree-sheets-r34' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
5add4e1
Merge sheets r34: the row-height cluster is a hard break, in two mech…
claude Aug 9, 2026
8716ba7
Slides: a metafile text record's control characters are cut out, as I…
claude Aug 9, 2026
014c536
Slides: spell the tab as an escape and repair three mangled dashes
claude Aug 9, 2026
eabafa1
Record words round 35: three classifier faults, and the fallback wiring
claude Aug 9, 2026
17f0e22
Merge branch 'worktree-words-r35' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
2071125
Merge words r35: glyph fallback was wired to nothing
claude Aug 9, 2026
3609061
wip(sheets-r35): baseline whole-track sweep at 5add4e1e7, and the pre…
claude Aug 9, 2026
6cd1937
Slides: the track's ink ranked with both ceilings subtracted per page
claude Aug 9, 2026
ce5bcf5
wip(words r36): baseline sweep at 20711256c reproduces exactly
claude Aug 9, 2026
23b6a7e
text: LibreOffice pulls a path back across a solidus rather than brea…
claude Aug 9, 2026
af9d01f
wip(words r36): line-anatomy.py — align by line, not by show operator
claude Aug 9, 2026
c2fa753
Slides: PowerPoint's built-in table styles, which a package never wri…
claude Aug 9, 2026
19b3ea9
Slides: pin the built-in table styles with tests, including the gamma…
claude Aug 9, 2026
cd7fdf1
wip(words r36): line-anatomy matches lines by text and nearest y, not…
claude Aug 9, 2026
567cbd5
The paragraph mark's run properties formatted the paragraph's text
claude Aug 9, 2026
e124357
text: pin the solidus rule, and the probe that measured it
claude Aug 9, 2026
2cd964f
wip(sheets-r35): the reach predicted before the sweep landed
claude Aug 9, 2026
d5f6883
Pin the paragraph-mark rule with tests
claude Aug 9, 2026
78835cf
sheets r35: whole-track sweep with the solidus rule
claude Aug 9, 2026
71012ad
wip(words r36): the classifier calibration and the re-swept classific…
claude Aug 9, 2026
8aecc46
sheets r35: the round's working — the solidus rule, how it was locali…
claude Aug 9, 2026
45bf168
wip(slides r22): the size-band instrument, unrun
claude Aug 9, 2026
3286311
Slides r22: the scoreboard section, less the after-sweep table
claude Aug 9, 2026
efa22d4
Resolve the paragraph mark's face too, so a list label still embeds
claude Aug 9, 2026
e7a9b18
sheets r35: rank the residue with first-divergence, and name the BIFF…
claude Aug 9, 2026
f00ec2d
Slides r22: the after-sweep numbers
claude Aug 9, 2026
31f5558
Slides r22: say when the ink ranking goes stale
claude Aug 9, 2026
9cd4463
Merge branch 'worktree-slides-rd22' into claude/paperless-odf-phase-1…
claude Aug 9, 2026
1f92e9b
Merge slides: PowerPoint's built-in table styles, and a reviewer vind…
claude Aug 9, 2026
aa03aff
Record words round 36
claude Aug 9, 2026
667fdba
wip(words r36): the post-fix track sweep
claude Aug 9, 2026
3dd9742
Merge branch 'worktree-words-r36' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
c76ef07
sheets r35: the byte reach on all three tracks, and the paired-verdic…
claude Aug 9, 2026
5f023fb
Merge words r36, and record the control that killed its premise
claude Aug 9, 2026
081d457
sheets r35: the other two tracks, scored on every document the change…
claude Aug 9, 2026
0f593b0
sheets r35: the round — the solidus rule, its reach on all three trac…
claude Aug 9, 2026
fd2e95e
wip(words r37): baseline measured at 5f023fba5, reproduces the brief …
claude Aug 9, 2026
74cd4dd
sheets r35: final test counts and the snapshot check
claude Aug 9, 2026
d17e575
Merge branch 'worktree-sheets-r35' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
b2e324b
Merge sheets r35: a line-break rule that reads what precedes the blank
claude Aug 9, 2026
429474e
fix(words): recode a symbol-font bullet into OpenSymbol, on both readers
claude Aug 9, 2026
2772b10
sheets r36: baseline sweep at b2e324b1b, 154/171 page error 74 exact …
Aug 9, 2026
e4683ed
test(words): pin the symbol-bullet recode, and split the expectation …
claude Aug 9, 2026
2d24455
sheets: glyph fallback in the cell text path
Aug 9, 2026
b96b668
wip(words r37): the symbol-bullet sweep — 84 renderings changed, 0 ve…
claude Aug 9, 2026
6318ff9
sheets r36: reach prediction, committed before the sweep
Aug 9, 2026
00f1dd2
sheets r36: whole-track sweep after glyph fallback
Aug 9, 2026
b966fce
wip(words r37): the body-text half of the symbol recode, unmeasured
claude Aug 9, 2026
7a8498d
wip(words r37): absrc-pac-01 is one fault in the WW8 reader, not two …
claude Aug 9, 2026
1f4362c
wip(words r37): why 316r_a_e.doc keeps its OpenSymbol gap — no list a…
claude Aug 9, 2026
49967d8
correction(words r37): the bullet recode closed 81 of 96, not 61
claude Aug 9, 2026
1599b89
sheets: pin the glyph-fallback wiring with six tests
Aug 9, 2026
f92bc18
Revert "wip(words r37): the body-text half of the symbol recode, unme…
claude Aug 9, 2026
749aff6
sheets r36: scoreboard and probe write-up
Aug 9, 2026
dd020bd
docs(words r37): scoreboard — the symbol-bullet fix, its reach, and w…
claude Aug 9, 2026
d2c1252
sheets r36: cross-track byte reach, measured — words 0/200, slides 0/163
Aug 9, 2026
c62858e
Merge branch 'worktree-words-r37' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
1970a10
Merge branch 'worktree-sheets-r36' into claude/paperless-odf-phase-1-…
claude Aug 9, 2026
3d095b4
Merge words r37 and sheets r36: two more wiring holes, and a control …
claude Aug 9, 2026
5455509
A shared-layer merge owes a parent-side sweep
claude Aug 9, 2026
da9e815
wip(sheets r37): probes and census for merged-range decoration
claude Aug 9, 2026
84dcc1d
wip(words): baseline at 545550952, and a census that finds a second h…
claude Aug 9, 2026
51fbc2d
wip(slides): probe what LibreOffice 24.2 does with a:gradFill/a:path
claude Aug 9, 2026
7bdf370
wip(sheets r37): baseline measured at 545550952
claude Aug 9, 2026
0fa9bf8
sheets r37: a merged range's decoration comes from its origin and cov…
claude Aug 9, 2026
85f08a6
wip(sheets r37): reach prediction, committed before the sweep
claude Aug 9, 2026
2df473e
fix(slides): clamp a path gradient's focus, and take LibreOffice's co…
claude Aug 9, 2026
476e6c9
test(slides): pin the gradient-path rule with a fixture that separate…
claude Aug 9, 2026
ca55a5d
words: draw w:sym and w:noBreakHyphen, the two elements the DOCX layo…
claude Aug 9, 2026
6e22f7b
wip(words): sprmCSymbol, the WW8 half of the same hole — before its s…
claude Aug 9, 2026
7635bee
probe(slides): an ink ranking that takes its inputs and checks its ow…
claude Aug 9, 2026
5474267
probe(slides): run first-divergence's analysis over a sweep's own PDFs
claude Aug 9, 2026
e21ed4d
sheets r37: the BIFF import moves a merged range's far borders onto i…
claude Aug 9, 2026
4a666ae
words: fixture and tests for the two dropped DOCX run elements
claude Aug 9, 2026
cd1cd96
words: sprmCSymbol swept — 10 of 200, word error 6456 -> 6427, no ver…
claude Aug 9, 2026
5357a65
wip(words): the .doc non-breaking hyphen, drawn as U+002D — before it…
claude Aug 9, 2026
a97a8c9
words: the census that found sprmCSymbol, and an honest account of it…
claude Aug 9, 2026
847e627
words: refuted — the .doc "ilfo is nought" cluster is not a list defe…
claude Aug 9, 2026
e6500a4
measure(slides): the gradient fix swept, and a prediction that was ha…
claude Aug 9, 2026
4521843
docs(slides): scoreboard for round 39
claude Aug 9, 2026
2133309
words: the .doc hyphen swept — 8 of 200, and the round's final position
claude Aug 9, 2026
39e8626
words: correction — the round's reach is 34 of 200, not 40
claude Aug 9, 2026
dacdfa1
docs(slides): what is left on Wildlife after the gradient fix
claude Aug 9, 2026
72688e7
sheets r37: measured — 52 of 171 renderings, |ink|% 583.90 to 512.14,…
claude Aug 9, 2026
83e60fe
docs(slides): test counts, and a Fidelity run that failed 296 on a fu…
claude Aug 9, 2026
268aaa0
Merge sheets r37: merged-range decoration, and nothing on the scoreboard
claude Aug 9, 2026
7bbe1b0
words: what is left, measured on the final tree, for whoever picks th…
claude Aug 9, 2026
1818535
words: the two censuses read the tree they are run from, not the one …
claude Aug 9, 2026
7170468
docs(slides): say in the code that the clamp's measured reach is nought
claude Aug 9, 2026
41a9ba9
words: full suite green on the final tree, and why the first fidelity…
claude Aug 9, 2026
57f6cad
Merge branch 'worktree-words-r38' into claude/paperless-odf-phase-1-r…
claude Aug 9, 2026
9b14290
words r38 merged: two dropped elements, in both readers, and a refute…
claude Aug 9, 2026
322c0b2
probe(slides): re-run the divergence table, and run the control over it
claude Aug 9, 2026
49340e6
docs(slides): fold the divergence control into the scoreboard, drop a…
claude Aug 9, 2026
cd1fa2c
wip(words r39): baseline reproduced at 9b1429040
claude Aug 9, 2026
e5f5461
Merge slides r39: a gradient's focus, and a prediction wrong by forty…
claude Aug 9, 2026
6118a35
words r39: order the last-resort glyph fallback by fontconfig's own p…
claude Aug 9, 2026
ad44d10
skill: a census of what a file declares is not a census of what it draws
claude Aug 9, 2026
6dd8c9f
words r39: the fontconfig ordering measured — 2 of 200, zero verdicts…
claude Aug 9, 2026
68d9340
words r39: the divergence sweep with its control, and the scoreboard …
claude Aug 9, 2026
4efef70
Merge words r39: three of the four divergence classes die to their ow…
claude Aug 9, 2026
1732c6d
wip(words r42): baseline reproduced exactly at 4efef703e
claude Aug 9, 2026
ac0bef4
wip(words r42): the box class reproduces exactly, and two thirds of i…
claude Aug 9, 2026
51c2c47
words: place frames anchored in a furniture table, and resolve page f…
claude Aug 9, 2026
d1450b2
words: six tests pinning the furniture-frame and framed-page-field fixes
claude Aug 9, 2026
35d660b
words r42: results, and the header-inheritance rule refuted by an aut…
claude Aug 9, 2026
2f297d3
words r42: scoreboard
claude Aug 9, 2026
cce1cc3
Merge words r42: the box cluster was the instrument, and two frame wa…
claude Aug 9, 2026
cc120a7
wip words r43: baseline reproduced exactly, and the pairing fix in pd…
claude Aug 9, 2026
9b968d1
words r43: the running head that is not inherited is a header made on…
claude Aug 9, 2026
a9ff749
words r43: predictions, and the census behind them, committed before …
claude Aug 9, 2026
f7fb0b6
words r43: pin the inheritance rule, and the deviation from the refer…
claude Aug 9, 2026
a25a5e4
words r43: results so far — the header finding, and two of the brief'…
claude Aug 9, 2026
3128eff
words r43: scoreboard, part one — the header finding and the two refu…
claude Aug 9, 2026
8ebdb01
words r43: the matcher fix measured, and the prediction it refuted
claude Aug 9, 2026
7f7c5fb
Merge words r43: a reference import defect, and the matcher that inve…
claude Aug 9, 2026
caaca27
words r44: baseline measured at 7f7c5fbb7
claude Aug 9, 2026
de6b154
words r44: the row-height law is refuted, and the one rule under it
claude Aug 9, 2026
5da65f4
words r44: a DOC shape group drew its outline and none of its contents,
claude Aug 9, 2026
9d4a887
words r44: the mandatory paragraph after a nested table, and the pred…
claude Aug 9, 2026
da69625
words r44: the sweep, and the tests for the three fixes
claude Aug 9, 2026
8f7835c
words r44: WriteImage is static — CA1822 is an error in this tree
claude Aug 9, 2026
36adadf
words r44: the JPEG change's cross-track reach, censused exactly
claude Aug 9, 2026
9009376
words r44: scoreboard
claude Aug 9, 2026
45fea26
Merge words r44: a verdict, a refuted law, and a shared-layer sweep t…
claude Aug 9, 2026
ef44588
wip(words r45): baseline reproduced exactly, and two instruments for …
claude Aug 9, 2026
54898e9
wip(words r45): proportional line spacing takes the text height, not …
claude Aug 9, 2026
8038464
words r45: the base height reaches the WW8 path, and six tests pin th…
claude Aug 9, 2026
3523299
words r45: prediction and the two censuses behind it, before rendering
claude Aug 9, 2026
8453511
words r45: the measured results and the scoreboard
claude Aug 10, 2026
3542a10
words r45: the sweep TSVs and the two cluster tables, kept
claude Aug 10, 2026
83f8ac2
words r45: restore dotnet/src, which two commits had reverted
claude Aug 10, 2026
4af479b
words r45: the cross-track sweep, the git trap, and the final test co…
claude Aug 10, 2026
0e4f01b
Merge words r45: proportional line spacing is a share of the text, no…
claude Aug 10, 2026
ee87a6d
skill: git status cannot see a bad HEAD, and an under-reaching census…
claude Aug 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 57 additions & 0 deletions .claude/skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Skills for developing Paperless

Four skills covering development of the [Paperless](../../dotnet/) C# libraries against
headless LibreOffice as the reference implementation.

| Skill | Use it when |
|---|---|
| [`libreoffice-reference`](libreoffice-reference/) | You need ground truth: reference PDFs, per-page PNGs, or reference text from a document. Also when `soffice --convert-to` misbehaves. |
| [`render-comparison`](render-comparison/) | Comparing a Paperless rendering against the reference, and working out *why* it differs. |
| [`extraction-comparison`](extraction-comparison/) | Comparing extracted text. Also the right first step for a visual bug — parsing bugs are far cheaper to find in text than in pixels. |
| [`paperless-corpus`](paperless-corpus/) | Building or curating test documents. |
| [`corpus-batches`](corpus-batches/) | Driving the 541-document sample corpus to parity, batch by batch — the ordering, the regression rule, and how to dispatch parallel agents across the three tracks. |

## Start here

```bash
.claude/skills/libreoffice-reference/scripts/check-env.sh
```

Nothing else is trustworthy until this passes. It catches the two failures that waste the
most time:

- **Application modules missing.** `libreoffice-core` alone installs a `soffice` that runs
but cannot load *any* document, failing with a maximally unhelpful
`Error: source file could not be loaded`.
- **Wrong font substitution.** If Calibri resolves to DejaVu Sans rather than Carlito,
advance widths change, so line breaks change, so pagination changes — and every page after
the first differs for a reason that has nothing to do with Paperless.

## Scripts

All are dependency-free (bash, or Python using only the standard library) and all were
verified against LibreOffice 24.2.7.2 on real files.

| Script | Does |
|---|---|
| `libreoffice-reference/scripts/check-env.sh` | Verifies soffice, modules, fonts, rasteriser |
| `libreoffice-reference/scripts/lo-convert.sh` | Documents → reference PDFs and page PNGs |
| `libreoffice-reference/scripts/lo-extract.sh` | Documents → reference text (right filter per family) |
| `render-comparison/scripts/compare-images.py` | Page images → metrics, diagnosis, diff images |
| `render-comparison/scripts/pdf-image-diff.py` | Two PDFs → page PNGs, diff PNGs, and where each page differs |
| `extraction-comparison/scripts/compare-text.py` | Text → similarity, first divergence, codepoint diagnostics |
| `paperless-corpus/scripts/make-corpus.sh` | Generates a test corpus across all 17 formats |
| `corpus-batches/scripts/render-corpus.sh` | Renders a whole corpus with LibreOffice — parallel, resumable |
| `corpus-batches/scripts/pdf-complexity.py` | Scores what each rendered PDF demands of a renderer |
| `corpus-batches/scripts/make-batches.py` | Orders a corpus by that score and cuts it into per-family batches |
| `corpus-batches/scripts/batch-check.sh` | Renders a batch range both ways and gates on whether they agree |

## Two facts worth knowing before you start

**`soffice` exits 0 even when it converts nothing.** Never trust its exit code — always check
that the output file exists. The scripts here all do.

**Rasterised LibreOffice output is byte-deterministic.** Verified: the same input converted
twice and rasterised gives identical PNGs. So golden reference images can be committed and
checksummed, and a changed checksum is a real signal. The PDFs themselves are *not*
byte-identical — they embed a timestamp — so checksum the PNGs, never the PDFs.
1,225 changes: 1,225 additions & 0 deletions .claude/skills/corpus-batches/SKILL.md

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions .claude/skills/corpus-batches/scripts/batch-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
#!/usr/bin/env bash
# Prove that Paperless renders a corpus batch the way LibreOffice does.
#
# batch-check.sh <corpus-root> <batch-glob> [outdir] [workers]
#
# batch-check.sh /workspace/sample-files 'batch-001' # one batch
# batch-check.sh /workspace/sample-files 'batch-0[0-1]*' # batches 1-19, a regression sweep
#
# Writes a TSV per document and a one-line verdict. Exit status is 0 only when every
# document in range matches, so this can gate a commit.
#
# Two things this script does that the obvious version does not:
#
# * Parallel workers, each with its own soffice profile. Two headless instances sharing
# ~/.config/libreoffice block on the profile lock and one of them converts nothing at
# all — silently, with exit status 0.
# * Per-format identity (`report__docx`, not `report`). Two documents differing only by
# extension both convert to report.pdf and one overwrites the other, which reads as a
# mysterious parity failure on whichever lost.
#
# The checks are the same three, in the same order, as corpus-parity.sh: page count, then
# extractable words, then font embedding. Each is cheap and rules out a whole class, and
# a wrong page count makes everything after it meaningless.
set -uo pipefail

ROOT_DIR="${1:?usage: batch-check.sh <corpus-root> <batch-glob> [outdir] [workers]}"
GLOB="${2:?batch glob, e.g. batch-001 or 'batch-0[0-1]*'}"
OUT="${3:-$(mktemp -d)}"
# Absolute, always. soffice takes its profile as `file://$OUT/profN`, and a relative path
# there is not a URL — it silently starts with an unusable profile and converts nothing, so
# every document is reported as `ref-failed` rather than as an error. Cost one agent a whole
# sweep before the pattern was recognised.
mkdir -p "$OUT" && OUT="$(cd "$OUT" && pwd)"
WORKERS="${4:-3}"

# Which CLI to measure. `$PAPERLESS_CLI` wins; otherwise the tree this script was invoked
# *from*, not the tree it lives in.
#
# A git worktree shares .claude/ with the main checkout, so `dirname $BASH_SOURCE/../../../..`
# resolves to the MAIN checkout however deep in a worktree you are. An agent sweeping its own
# branch was silently measuring another session's binary — and the first such sweep looked
# entirely normal, because the two checkouts happened to sit near the same commit. Cost two
# sweeps before the pattern was recognised.
#
# $PWD is right because the workflow is always run from the tree under test. The check below
# refuses rather than guesses when it is not.
CLI="${PAPERLESS_CLI:-}"
if [ -z "$CLI" ]; then
ROOT="$(git -C "$PWD" rev-parse --show-toplevel 2>/dev/null || echo "$PWD")"
CLI="$ROOT/dotnet/tools/Paperless.Cli/bin/Debug/net10.0/linux-x64/Paperless.Cli"
fi
[ -x "$CLI" ] || {
echo "no CLI at $CLI" >&2
echo "run this from the tree you want measured, or set PAPERLESS_CLI" >&2
exit 1
}
echo "measuring $CLI" >&2

mkdir -p "$OUT/ours" "$OUT/ref"
: > "$OUT/rows.tsv"

# shellcheck disable=SC2086 # the glob is meant to expand
mapfile -t DIRS < <(cd "$ROOT_DIR" && ls -d $GLOB 2>/dev/null)
[ "${#DIRS[@]}" -gt 0 ] || { echo "no batches matched $GLOB under $ROOT_DIR" >&2; exit 1; }

mapfile -t FILES < <(
for d in "${DIRS[@]}"; do
find "$ROOT_DIR/$d" -type f \
\( -iname '*.doc' -o -iname '*.docx' -o -iname '*.rtf' -o -iname '*.odt' -o -iname '*.ott' \
-o -iname '*.xls' -o -iname '*.xlsx' -o -iname '*.ods' -o -iname '*.csv' \
-o -iname '*.ppt' -o -iname '*.pptx' -o -iname '*.odp' -o -iname '*.otp' \) 2>/dev/null
done | sort
)

one() { # one <index>
local idx="$1" i=-1 f base ext stem id o r op rp ow rw of rf un v
local prof="$OUT/prof$idx"
mkdir -p "$prof" "$OUT/t$idx"
for f in "${FILES[@]}"; do
i=$((i + 1)); [ $((i % WORKERS)) -eq "$idx" ] || continue
base="$(basename "$f")"; ext="${base##*.}"; stem="${base%.*}"
id="${stem}__${ext,,}"
o="$OUT/ours/$id.pdf"; r="$OUT/ref/$id.pdf"

rm -rf "${OUT:?}/t$idx"; mkdir -p "$OUT/t$idx"
timeout 240 "$CLI" render "$f" --format pdf --outdir "$OUT/t$idx" >/dev/null 2>&1
[ -f "$OUT/t$idx/$stem.pdf" ] && mv -f "$OUT/t$idx/$stem.pdf" "$o"

rm -rf "$OUT/t$idx"; mkdir -p "$OUT/t$idx"
timeout 240 soffice -env:UserInstallation="file://$prof" \
--headless --convert-to pdf --outdir "$OUT/t$idx" "$f" >/dev/null 2>&1
[ -f "$OUT/t$idx/$stem.pdf" ] && mv -f "$OUT/t$idx/$stem.pdf" "$r"

op="-"; rp="-"; ow="-"; rw="-"; of="-"; rf="-"; un="-"
if [ -f "$o" ]; then
op=$(pdfinfo "$o" 2>/dev/null | awk '/^Pages/{print $2}')
ow=$(pdftotext "$o" - 2>/dev/null | wc -w)
of=$(pdffonts "$o" 2>/dev/null | tail -n +3 | grep -c .)
# The `emb` column, found by its position from the *right*: pdffonts ends every row with
# emb, sub, uni and a two-field object id, so `emb` is NF-4 and not NF-3. Counting from
# NF-3 reads `sub` instead, and it happens to give the right answer only for a font whose
# type name is two or three fields — "Type 1", "Type 1C", "CID Type 0C". Every font
# Paperless writes is "TrueType", one field, so this check tested nothing about our own
# output until it was corrected; measured on a PDF embedding ten faces and naming an
# eleventh, which it scored as zero unembedded.
un=$(pdffonts "$o" 2>/dev/null | tail -n +3 | awk 'NF>=8 && $(NF-4)=="no"' | wc -l)
fi
if [ -f "$r" ]; then
rp=$(pdfinfo "$r" 2>/dev/null | awk '/^Pages/{print $2}')
rw=$(pdftotext "$r" - 2>/dev/null | wc -w)
rf=$(pdffonts "$r" 2>/dev/null | tail -n +3 | grep -c .)
fi

# A document LibreOffice itself cannot render is not our failure, and must not be
# allowed to look like one — it is excluded from the verdict, not counted as a pass.
if [ ! -f "$r" ] && [ ! -f "$o" ]; then v="both-failed"
elif [ ! -f "$r" ]; then v="ref-failed"
elif [ ! -f "$o" ]; then v="ours-failed"
else
v=""
[ "$op" = "$rp" ] || v="pages"
# Extraction drifts a little on hyphenation and soft breaks; 2% is the band that
# separates "the same text" from "text is missing", measured across this corpus.
if [ "$rw" -gt 0 ] 2>/dev/null; then
awk -v a="$ow" -v b="$rw" 'BEGIN{d=(a>b?a-b:b-a); exit !(d > b*0.02 && d > 3)}' \
&& v="${v:+$v,}words"
elif [ "${ow:-0}" -gt 3 ]; then v="${v:+$v,}words"
fi
[ "${un:-0}" = "0" ] || v="${v:+$v,}unembedded"
[ -n "$v" ] || v="match"
fi

printf "%s\t%s\t%s/%s\t%s/%s\t%s/%s\t%s\t%s\n" \
"${f#"$ROOT_DIR"/}" "${ext,,}" "$op" "$rp" "$ow" "$rw" "$of" "$rf" "$un" "$v" \
>> "$OUT/rows.tsv"
done
}

for w in $(seq 0 $((WORKERS - 1))); do one "$w" & done
wait

{
printf "path\text\tpages\twords\tfonts\tunemb\tverdict\n"
sort "$OUT/rows.tsv"
} > "$OUT/parity.tsv"

total=$(wc -l < "$OUT/rows.tsv")
match=$(awk -F'\t' '$7=="match"' "$OUT/rows.tsv" | wc -l)
reffail=$(awk -F'\t' '$7=="ref-failed" || $7=="both-failed"' "$OUT/rows.tsv" | wc -l)
bad=$((total - match - reffail))

cat "$OUT/parity.tsv"
echo
echo "BATCHES ${DIRS[*]}"
echo "TOTAL $total MATCH $match MISMATCH $bad REF-CANNOT-RENDER $reffail"
echo "TSV $OUT/parity.tsv"
[ "$bad" -eq 0 ]
179 changes: 179 additions & 0 deletions .claude/skills/corpus-batches/scripts/make-batches.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
#!/usr/bin/env python3
"""Order a document corpus by rendering complexity and cut it into batches of ten.

make-batches.py <corpus-root> <complexity.tsv> [--apply]

Reads the TSV produced by pdf-complexity.py over LibreOffice's renders of the corpus,
sorts every document by what its PDF demands of a renderer, and prints the plan that
reorganises the repository into <family>/batch-NNN/<ext>/. With --apply it performs the
`git mv`s, deletes the duplicates and unrenderable files, and writes the two manifests.

Ten per batch is the unit of work: small enough that one session can take a batch,
fix what it finds and prove the fix, without the batch itself becoming a project.

Run it on a clean working tree — --apply rewrites the entire layout, and a failed run is
far easier to undo with `git checkout .` than by hand.
"""
import collections
import csv
import hashlib
import subprocess
import sys
from pathlib import Path

PER_BATCH = 10

# Which library owns each extension. Splitting the corpus this way is what lets three
# agents work in parallel without ever touching the same file.
FAMILY = {
"doc": "words", "docx": "words",
"xls": "sheets", "xlsx": "sheets",
"ppt": "slides", "pptx": "slides",
}


def load_scores(tsv: Path) -> dict[str, float]:
"""Map the mangled PDF stem back to a score."""
out = {}
with tsv.open() as f:
for row in csv.DictReader(f, delimiter="\t"):
out[Path(row["path"]).stem] = float(row["score"])
return out


def mangle(rel: Path) -> str:
"""The id render-corpus.sh gave this document's PDF."""
ext = rel.suffix.lstrip(".")
return str(rel.with_suffix("")).replace("/", "_").replace(" ", "_") + "__" + ext


def write_manifest(final, path: Path) -> None:
"""Record the score each document was placed by.

Without this the ordering is unreproducible: the scores live in a scratch directory
that does not survive the session, and a batch boundary with no recorded reason
invites someone to 'tidy' the layout and silently destroy the ordering the whole
workflow depends on.
"""
with path.open("w", newline="") as f:
w = csv.writer(f, delimiter="\t", lineterminator="\n")
w.writerow(["family", "batch", "path", "ext", "score", "source"])
for rel, dest, score in final:
w.writerow([dest.parts[0], dest.parts[1], str(dest),
dest.suffix.lower().lstrip("."),
"" if score is None else f"{score:.1f}", str(rel)])


def write_duplicates(dupes, final, path: Path) -> None:
"""Record what was removed and where its surviving copy now lives.

Pointing at the copy's *new* path rather than its old one is the difference between
an auditable deletion and a list of names that no longer resolve to anything.
"""
moved = {rel: dest for rel, dest, _ in final}
with path.open("w", newline="") as f:
w = csv.writer(f, delimiter="\t", lineterminator="\n")
w.writerow(["removed", "identical_to"])
for rel, kept in sorted(dupes, key=lambda d: str(d[0])):
w.writerow([str(rel), str(moved.get(kept, kept))])


def main() -> int:
argv = [a for a in sys.argv[1:] if not a.startswith("--")]
if len(argv) != 2:
print(__doc__, file=sys.stderr)
return 2
SRC, scores = Path(argv[0]), load_scores(Path(argv[1]))

docs, seen_bytes, dupes, unrenderable = [], {}, [], []
for p in sorted(SRC.rglob("*")):
if not p.is_file() or ".git" in p.parts:
continue
if p.suffix.lower().lstrip(".") not in FAMILY:
continue
rel = p.relative_to(SRC)

# Byte-identical copies are 39% of this corpus, mostly the same document collected
# from two sites. Rendering one twice proves nothing and costs a batch slot that a
# document with different content should have had, so only the first is kept — by
# content, not by name, since the copies rarely share one.
digest = hashlib.sha256(p.read_bytes()).hexdigest()
if digest in seen_bytes:
dupes.append((rel, seen_bytes[digest]))
continue
seen_bytes[digest] = rel

# A document LibreOffice cannot convert has no score and, more to the point, no
# reference rendering — there is nothing to compare a result against, so keeping it
# would put a file in a batch that can never be marked passing. Each was retried
# once with a ten-minute ceiling before being dropped.
score = scores.get(mangle(rel))
if score is None:
unrenderable.append(rel)
continue
docs.append((score, rel))

ordered = sorted(docs, key=lambda d: (d[0], str(d[1])))

# Batches are cut per family rather than across the whole corpus. One global ordering
# would front-load the easy end with word processing and leave the spreadsheet and
# presentation work with nothing to do until batch forty, which defeats the point of
# working the three families in parallel. Within a family the ordering is still
# strictly ascending, so each track is worked easiest-first exactly as before.
plan, batches = [], collections.defaultdict(list)
per_family = collections.Counter()
for score, rel in ordered:
ext = rel.suffix.lower().lstrip(".")
fam = FAMILY[ext]
n = per_family[fam] // PER_BATCH + 1
per_family[fam] += 1
dest = Path(fam) / f"batch-{n:03d}" / ext / rel.name
plan.append((rel, dest, score))
batches[(fam, n)].append((rel, dest, score))

# A name can repeat across the source's extension folders; make it unique per target.
seen, final = collections.Counter(), []
for rel, dest, score in plan:
seen[dest] += 1
if seen[dest] > 1:
dest = dest.with_name(f"{dest.stem}-{seen[dest]}{dest.suffix}")
final.append((rel, dest, score))

if "--apply" in sys.argv:
for rel in [r for r, _ in dupes] + unrenderable:
subprocess.run(["git", "-C", str(SRC), "rm", "-q", "--", str(rel)], check=True)
for rel, dest, _ in final:
target = SRC / dest
target.parent.mkdir(parents=True, exist_ok=True)
subprocess.run(["git", "-C", str(SRC), "mv", "--", str(rel), str(dest)], check=True)
# Drop whatever directories the move emptied. `git mv` leaves them behind, and an
# empty `docx/` beside the new tracks reads as "some files were missed".
for p in sorted(SRC.rglob("*"), key=lambda q: -len(q.parts)):
if p.is_dir() and ".git" not in p.parts and not any(p.iterdir()):
p.rmdir()
write_manifest(final, SRC / "MANIFEST.tsv")
write_duplicates(dupes, final, SRC / "DUPLICATES.tsv")
print(f"removed {len(dupes)} byte-identical copies and "
f"{len(unrenderable)} documents LibreOffice cannot convert; "
f"moved {len(final)} documents into {len(batches)} batches")
for rel in unrenderable:
print(f" dropped (unrenderable): {rel}")
else:
by_track = collections.defaultdict(list)
for rel, dest, score in final:
by_track[(dest.parts[0], dest.parts[1])].append((rel, dest, score))
for (fam, batch) in sorted(by_track):
rows = by_track[(fam, batch)]
got = [s for *_, s in rows if s is not None]
kinds = collections.Counter(d.parts[2] for _, d, _ in rows)
span = f"{min(got):.0f}-{max(got):.0f}" if got else "unrendered"
print(f"{fam:6s} {batch} {len(rows):2d} files score {span:>12} " +
" ".join(f"{k}:{v}" for k, v in sorted(kinds.items())))
print(f"\n{len(final)} documents, {len(batches)} batches of up to {PER_BATCH}"
f" ({len(dupes)} byte-identical copies and "
f"{len(unrenderable)} unrenderable documents dropped)")
return 0


if __name__ == "__main__":
raise SystemExit(main())
Loading
Loading