Skip to content

render-pipeline fixtures: listings oracle material and TL2025 references - #248

Merged
GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/listings-oracle-material
Sep 14, 2026
Merged

GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/listings-oracle-material

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Data only — no .rs changes. This is the oracle half of the listings rebuild, so the engine work can stack on top of it.

What is here

  • The sixteen listings fixtures 16-lst-default.tex … 31-lst-t1-lmodern-bold.tex (this includes 28-lstinline.tex), recovered byte-identical from the unmerged PR render-pipeline: verbatim, verb and listings as LaTeX sets them #145 branch agent/kabir-claude/verbatim-fidelity (5a8d626d).
  • fixtures/verbatim/oracle.py and fixtures/verbatim/make_fixtures.py from the same branch, unmodified.
  • fixtures/verbatim/reference/*.json for those sixteen, generated with the local TeX Live 2025 pdflatex.

All sixteen compiled unmodified — no fixture needed a fix. None of them uses \lstinputlisting, so no .c / .py / .java / .txt data files are required.

pdfTeX 3.141592653-2.6-1.40.27 (TeX Live 2025/nixos.org)
pdflatex -interaction=batchmode, two passes, SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1

Cross-check against PR #145's MacTeX references

For all sixteen fixtures the TL2025 references reproduce PR #145's TeX Live 2026 references with

  • identical page count, glyph count and rule count,
  • identical glyph text, font name and font size for every glyph,
  • max |Δx|, |Δy| ≤ 0.001 bp,
  • rule rectangles identical to 4 decimal places (max |Δ| = 0.0000).

Reviewer note — fixtures/verbatim/ was not on main

crates/render-pipeline/fixtures/verbatim/ does not exist at origin/main (eea975c3); git ls-tree -r origin/main | grep verbatim returns nothing. The sixteen non-listings fixtures (01…15, 32) and their references live only on the unmerged branches agent/kabir-claude/verbatim-fidelity and agent/kabir-claude/literal-verbatim-nfss. This PR therefore creates the directory and contains only the listings half, as scoped.

Consequently make_fixtures.py still generates all thirty-two fixtures; running it in this tree would create the sixteen that are not part of this change.

crates/render-pipeline/tests/verbatim_oracle.rs does not exist on main either, so there is no every_committed_fixture_is_accounted_for gate to feed and no NOT_YET list to extend here.

Recovers the sixteen `listings` fixtures (16..31) and the two oracle scripts
from the unmerged PR #145 branch `agent/kabir-claude/verbatim-fidelity`
(5a8d626), byte-identical, and adds `reference/*.json` regenerated with the
local TeX Live 2025 pdflatex.

Data only: no `.rs` changes, no engine code. PR #145's `listings.rs` was built
on a font model main has since replaced and is deliberately not carried over;
this is the oracle half so the engine can be rebuilt against real numbers.

All sixteen compiled unmodified. None of them uses `\lstinputlisting`, so no
`.c`/`.py`/`.java`/`.txt` data files are needed.

Cross-check: the TL2025 references reproduce PR #145's TeX Live 2026 (MacTeX)
references for all sixteen to <= 0.001 bp, with identical glyph text, font
names, sizes, glyph counts and rule rectangles.

  reference engine: pdfTeX 3.141592653-2.6-1.40.27 (TeX Live 2025/nixos.org)
  invocation:       pdflatex -interaction=batchmode, two passes,
                    SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1

Note for reviewers: `fixtures/verbatim/` did not exist on main at eea975c --
the sixteen non-listings fixtures (01..15, 32) and their references are still
only on the unmerged branches `agent/kabir-claude/verbatim-fidelity` and
`agent/kabir-claude/literal-verbatim-nfss`, so this commit adds the directory.
`make_fixtures.py` still generates all thirty-two; running it here would
create the sixteen that are not part of this change.

Implementation-Agent: Claude Opus 5 (engine-engineer, linux-primary worktree)
Commit-Executor: Claude Opus 5 (direct git, Cursor usage limit fallback)
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@GoKubar
GoKubar marked this pull request as ready for review September 14, 2026 01:35
@GoKubar
GoKubar merged commit ceb65f8 into main Sep 14, 2026
20 checks passed
GoKubar added a commit that referenced this pull request Sep 14, 2026
…s for them

main has moved on since `eea975c3`, and two of its merges matter here:

* **#248** committed the 16 listings fixtures (`16`..`31`) with TL2025
  references. `every_committed_fixture_is_accounted_for` refuses a fixture
  that is neither gated nor listed with a reason, so without this the test
  this branch introduces would fail the moment it reached main. The 15 new
  ones go into a separate `LISTINGS_NOT_YET`, each naming the piece of
  listings' geometry it needs -- the `[c]fixed` slack rule, the `\llap`
  number gutter, `\lst@frameInit`'s rule rectangles, `xleftmargin` expanded
  in the basicstyle font, real tab stops, `breakindent` -- taken from the
  measured specification rather than written as placeholders. Two of them
  record findings worth not losing: fixture 19's reference is byte-identical
  to 18's, so it does not actually discriminate `fullflexible` from
  `flexible`; and fixture 25 contains no ligature-forming pair at all, so it
  cannot have been testing what #145 thought it was.
* **#235** made a verbatim tab one space in the compiler, which is the same
  conclusion this branch's `literal_command_body` reached from the other
  side. Nothing to reconcile.

`28-lstinline`'s fixture and reference were added by both sides. main's
reference is kept: it was generated with this host's TeX Live 2025, and the
cross-check in this branch's test doc is exactly the evidence that the two
distributions agree on this material to 0.001 bp.

The one source conflict is `adapter.rs`, where main added
`kern_amount_matches` and this branch added `literal_command_end`/
`literal_command_body` at the same place; both are kept. main's version is
also the pattern this lane needs later: it gates a `text_kern` signature
change behind a `compiler-package-gating` feature so the crate builds
against the pinned mirror either way.

`LiteralBody::starred`'s doc comment loses the claim that the bundled
OpenType Latin Modern has no `visiblespace` glyph. It has one, at U+2423,
named `uni2423` in the CFF charset -- which is what the rest of this branch
is about -- and the field is no longer dead.

`crates/render-pipeline` `cargo test --release --no-fail-fast` with the
bundled fonts configured: **217 passed / 0 failed / 1 ignored**, against a
`git archive` control of `origin/main` at **213 / 0 / 1**. The +4 are this
branch's own tests; no other test changed state.

Implementation-Agent: engine-engineer (linux-primary, NixOS PC)
Commit-Executor: engine-engineer via git (Cursor usage limit fallback)
Co-authored-by: GoKubar <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
GoKubar added a commit that referenced this pull request Sep 14, 2026
The listings engine branched from PR #262 and so did not carry #268
(`\@verbatim`'s `\trivlist` inside a list) or #271 (microtype's verbatim
patch, and `\frenchspacing` inside `\verb`). Merging them makes the stack
linear -- #262 -> #268 -> #271 -> this -- and moves both of their fixtures
into `GATED` alongside the seventeen listings ones.

The only conflict is `tests/verbatim_oracle.rs`'s three lists, resolved by
taking every name both sides gate:

* `GATED` 32 = the 15 verbatim/`\verb` fixtures (`10-verbatim-itemize` and
  `32-verbatim-microtype` from this merge) plus the 17 listings ones.
* `NOT_YET` 2: `15-verbatim-small` keeps the `\showoutput` measurement from
  #271, `25-lst-java-roman` keeps the OT1-slot measurement from the listings
  lane.
* `LISTINGS_NOT_YET`, added in #262 so `main`'s freshly merged #248 fixtures
  were accounted for rather than failing the accounting test, is gone: every
  name in it is now either gated or in `NOT_YET`.

One fixture got better from the merge rather than from either side alone.
**`28-lstinline` goes from 0.062 bp to 0.005 bp**: #271 carries the fix for
the interword space that was being dropped after an inline `\verb` or
`\lstinline` (`after_control_word` stayed set even though `prev_end` had
already advanced past the closing delimiter), and that space is in this
fixture's first line.

Gates, control-compared against a `git archive` checkout of the listings
branch's own base `b7a1e530`, built and measured identically:

| gate | control | merged |
|---|---|---|
| `crates/render-pipeline` `cargo test --release --no-fail-fast` | 217 / 0 / 1 | 229 / 0 / 1 |
| amsmath oracle corpus | -- | 59/59 within 0.5 bp |
| real-world corpus, 22 fixtures x 2 producers | 739 diagnostics | 724 |
| real-world corpus status and page count | -- | identical, every entry |
| real-world corpus font-substitution diagnostics | 0 | 0 |
| HW1 / HW2 render | -- | 3 / 3 pages, 0 errors, 0 overfull |
| verbatim + listings fixtures matching pdfLaTeX | 30 of 34 | **32 of 34** |

The +12 are the listings lane's unit tests. The two corpus entries that
differ are the ones #271 already documents (`twelvept-plain` and
`listings-manual`, both losing `unsupported_block` limitations; the three
`overfull_hbox` in `listings-manual` are pdfLaTeX's own behaviour minus
`breaklines` inside `\lstinline`). The listings engine itself adds no corpus
diagnostic in either direction.

Implementation-Agent: engine-engineer (linux-primary, NixOS PC)
Commit-Executor: engine-engineer via git (Cursor usage limit fallback)
Co-authored-by: GoKubar <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@GoKubar
GoKubar deleted the agent/kabir-claude/listings-oracle-material branch September 16, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant