Skip to content

render-pipeline: re-pin vendor/compiler to main so the corpus can see natbib - #386

Merged
GoKubar merged 3 commits into
mainfrom
agent/nixos-vendor-repin/compiler-repin
Sep 14, 2026
Merged

GoKubar merged 3 commits into
mainfrom
agent/nixos-vendor-repin/compiler-repin

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

crates/render-pipeline/vendor/* are frozen git archive snapshots, so a compiler-side
change is invisible to flashtex-render — and therefore to the whole rendered corpus —
until the pin moves. vendor/compiler sat at f9bab2a7 (PR #267). Re-exported at
main's e44d5917:

git archive e44d5917:crates/compiler | tar -x -C vendor/compiler
git rev-parse e44d5917 > vendor/compiler/PIN

What the frozen snapshot was hiding

Six merged crates/compiler commits the rendered corpus could not see:

PR what
#380 natbib citations and the \bibitem[Author(Year)] labels behind them
#339 \langle/\rangle are U+27E8/U+27E9 mathopen/mathclose
#321 \pagestyle, \thispagestyle, \pagenumbering accepted in the preamble
#244 \maketitle without \author warns like LaTeX
#314 \odot, \ominus, \oslash, \bigcirc are binary operators
#331 siunitx S[...] and s table columns

#381 had already landed the render-pipeline half of natbib against the live crate, so
the corpus's natbib-review fixture was being measured against a pipeline whose vendored
compiler still could not parse \citep/\citet. Measured A/B on the corpus, holding
everything else fixed, the natbib re-pin alone moved:

before after
natbib-review words within 0.5 bp in x 254 / 725 836 / 865
natbib-review words within 0.5 bp in y 18 / 725 865 / 865
thesis-chapter words within 0.5 bp in x 664 / 1243 1175 / 1279
corpus ` dx <= 0.5 bp`
corpus ` dy <= 0.5 bp`
corpus both axes 38.5% 47.2%

Exactly those two fixtures changed; the other twenty were bit-identical.

Byte-identity, verified two independent ways

A path/mode/blob-SHA listing of the vendored tree matches git ls-tree -r e44d5917:crates/compiler on all 555 files, and diff -r --exclude=PIN against a fresh
re-extraction is empty.

#385 is deliberately not in this pin

PR #385 (hyperref/\hypersetup and url.sty URL breaking — the rebase of the closed #379)
is still OPEN. A vendor pin never holds an unmerged branch, so it will arrive with the
next re-pin after it merges.

No other vendor directory needed re-pinning

Checked against main at e44d5917, not assumed. crates/compiler's own path
dependencies are font-engine, tex-text-encoding, tex-boxes and tex-expansion.

already byte-identical to main differs from main
math-layout, paragraph-layout, microtype, document-style, font-resources, tex-text-encoding, tex-boxes, tex-expansion, vector-graphics font-engine, pdf, project-files

Each of the three that differ does so by its own VENDORING.md row's deliberate choice, and
none of those deltas is an API the new compiler needs — the build and the test run below
confirm it.

A table/PIN drift, noted in passing

VENDORING.md's compiler and math-layout cells still named ea4ee5c8, while the PIN
files held f9bab2a7 and 9a82257b. The table had drifted behind PIN; PIN is the
authority. Only the compiler row is corrected here, and by prepending — the old log text
is kept intact. The math-layout row is left for its owner.

Gates

All with FLASHTEX_FONT_DIRS/FLASHTEX_TFM_DIRS set to apps/mac/Fonts and its
public/lm + jknappen/ec + public/amsfonts/symbols TFM trees.

Gate Result
cargo test --release on crates/render-pipeline 254 passed, 0 failed, 2 ignored
amsmath corpus 59/59 within 0.5 bp
tabular corpus 106/106 (words 0.5 bp, rules 0.1 bp)
HW1 render 3 pages, 0 errors
HW2 render 3 pages, 0 errors
font-FAILURE diagnostics 0 on both, and 0 across all 22 corpus fixtures

The only HW diagnostics are math_resource_profile (4 on HW1, 7 on HW2), which report that
Latin Modern Math supplies one 10 pt design for several optical sizes — informational, not
a failure, and unchanged by this re-pin.

pdflatex (TeX Live 2025) was used as an oracle only, never in the product path.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

… natbib

`crates/render-pipeline/vendor/*` are frozen `git archive` snapshots, so a
compiler-side change is invisible to `flashtex-render` -- and therefore to the
whole rendered corpus -- until the pin moves. `vendor/compiler` sat at
`f9bab2a7` (PR #267), one `crates/compiler` commit behind: PR #380
(`dd4a9809`, natbib citations and the `\bibitem[Author(Year)]` labels behind
them). #381 had already landed the render-pipeline half against the live
crate, so the corpus's `natbib-review` fixture was being measured against a
pipeline whose vendored compiler still could not parse `\citep`/`\citet`.

Re-exported from `main` at `c1ae760d`:

    git archive c1ae760:crates/compiler | tar -x -C vendor/compiler
    git rev-parse c1ae760 > vendor/compiler/PIN

Byte-identity verified two independent ways: a path/mode/blob-SHA listing of
the vendored tree matches `git ls-tree -r c1ae760:crates/compiler` on all 553
files, and `diff -r --exclude=PIN` against a fresh re-extraction is empty.

PR #385 (hyperref/`\hypersetup` and url.sty URL breaking -- the rebase of the
closed #379) was still OPEN when this pin was taken, so it is deliberately not
carried here: a vendor pin never holds an unmerged branch. It will arrive with
the next re-pin after it merges.

No other vendor directory needed re-pinning, and this was checked rather than
assumed. `crates/compiler`'s own path dependencies at `c1ae760d` are
`font-engine`, `tex-text-encoding`, `tex-boxes` and `tex-expansion`; a
recursive diff of every vendor directory against `main`'s crate of the same
name shows `math-layout`, `paragraph-layout`, `microtype`, `document-style`,
`font-resources`, `tex-text-encoding`, `tex-boxes` and `tex-expansion` already
byte-identical to `main`. `font-engine`, `pdf` and `project-files` do differ,
but each by its own VENDORING.md row's deliberate choice, and none of those
deltas is an API the new compiler needs -- the build and the full test run
below confirm it.

Also noted in the VENDORING.md row: that table's `compiler` and `math-layout`
cells still name `ea4ee5c8`, while the `PIN` files held `f9bab2a7` and
`9a82257b`. The table had drifted behind `PIN`; `PIN` is the authority. Only
the `compiler` row is corrected here, and by prepending -- the old log text is
kept intact.

Gates, all with `FLASHTEX_FONT_DIRS`/`FLASHTEX_TFM_DIRS` set to
`apps/mac/Fonts` and its lm + jknappen/ec + amsfonts/symbols TFM trees:

  cargo test --release on crates/render-pipeline   249 passed, 0 failed, 1 ignored
  amsmath corpus                                   59/59 within 0.5 bp
  tabular corpus                                   106/106 (words 0.5 bp, rules 0.1 bp)
  HW1 render                                       3 pages, 0 errors
  HW2 render                                       3 pages, 0 errors

Zero font-failure diagnostics on either HW document. The only diagnostics are
`math_resource_profile` (4 on HW1, 7 on HW2), which report that Latin Modern
Math supplies one 10 pt design for several optical sizes -- informational, not
a failure, and unchanged by this re-pin.

Implementation-Agent: Claude Opus 5 (lane nixos-vendor-repin, linux-primary)
Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit)
Co-authored-by: GoKubar <[email protected]>
`main` advanced by 16 commits while the first re-pin was being measured, five
of them in `crates/compiler`, so `c1ae760d` was already stale. Re-exported at
`e44d5917`, which also carries #339 (`\langle`/`\rangle` as U+27E8/U+27E9
mathopen/mathclose -- the corpus's `twelvept-plain` fixture was reporting "no
math glyph for '<'" and drawing an empty box), #321 (`\pagestyle`,
`\thispagestyle`, `\pagenumbering` in the preamble), #244 (`\maketitle`
without `\author`), #314 (`\odot`/`\ominus`/`\oslash`/`\bigcirc` as binary
operators) and #331 (siunitx `S[...]`/`s` columns) on top of #380's natbib.

Byte-identity re-verified at the new SHA the same two ways: the vendored
tree's path/mode/blob-SHA listing matches `git ls-tree -r
e44d591:crates/compiler` on all 555 files, and `diff -r --exclude=PIN`
against a fresh re-extraction is empty.

The no-other-directory-needs-re-pinning finding was re-checked against the new
`main` rather than carried over: `math-layout`, `paragraph-layout`,
`microtype`, `document-style`, `font-resources`, `tex-text-encoding`,
`tex-boxes`, `tex-expansion` and `vector-graphics` are still byte-identical to
`main`'s crates, and `font-engine`/`pdf`/`project-files` still differ only by
their own rows' deliberate choices.

Gates re-run at this pin, same font environment:

  cargo test --release on crates/render-pipeline   254 passed, 0 failed, 2 ignored
  amsmath corpus                                   59/59 within 0.5 bp
  tabular corpus                                   106/106 (words 0.5 bp, rules 0.1 bp)
  HW1 render                                       3 pages, 0 errors
  HW2 render                                       3 pages, 0 errors

Zero font-failure diagnostics on either HW document; the only diagnostics
remain `math_resource_profile` (4 on HW1, 7 on HW2), which are informational.

PR #385 (hyperref/`\hypersetup` and url.sty URL breaking) is still OPEN and so
is still deliberately absent from this pin.

Implementation-Agent: Claude Opus 5 (lane nixos-vendor-repin, linux-primary)
Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit)
Co-authored-by: GoKubar <[email protected]>
@GoKubar
GoKubar merged commit b6d76b1 into main Sep 14, 2026
9 of 20 checks passed
@GoKubar
GoKubar deleted the agent/nixos-vendor-repin/compiler-repin branch September 14, 2026 15:00
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