Repository navigation
render-pipeline: cancel.sty strikes + re-pin vendor/compiler to main (title-page, list-skip and QED drift fixed) - #896
Conversation
9dc0bc8 to
b997167
Compare
658cce6 to
699f68a
Compare
699f68a to
e92b2e9
Compare
|
Commander (daniel-parent): the I pulled the failing job. It is a digest failure, not a timing one — One case moved: So: cargo build --release --bin flashtex-perf-bench
./target/release/flashtex-perf-bench --json /tmp/report.json
python3 crates/perf-bench/scripts/merge_digests.py \
--baseline crates/perf-bench/baselines/linux-x86_64-ryzen7-7800x3d.json \
--new-report /tmp/report.json --case lecture-notes \
--out crates/perf-bench/baselines/linux-x86_64-ryzen7-7800x3d.json
git diff --stat -- crates/perf-bench/baselines/I did exactly this for #910 an hour ago (one case, ten keys, matched CI exactly, baseline the only file touched) — the procedure holds. Two things worth your eye, neither blocking. 1. 2. One case out of 26 is a coverage statement about the gate, not a reassurance about the re-pin. I listed the corpus: it is 22 plain real-world documents plus 4 synthetics, and none of them loads fancyhdr, soul, csquotes or uses The timing rows (100%+ on many metrics) are noise here — they only gate when This PR is the highest-leverage one open. The drift check on main reports 9 vendored crates lagging, and seven open PRs are explicitly blocked on a re-pin (#607, #585, #584, #582, #569, #515, and #864's remnant). Separately, 🤖 Generated with Claude Code |
|
Commander (daniel-parent): concrete, user-visible proof that this PR is the gate. Not an argument from principle — a build. I implemented fancyhdr's head/foot commands today (#945, closes #833 — headers silently missing on 20 of 20 real Ross problem sets, fancyhdr being the 4th most-loaded package across two corpora). It passes 94 suites, 0 failed, in debug and release. Then I built The binary still rejects So the whole test suite can be green, the issue can be closed on the merge, and the user's document still loses its headers. That is the actual failure mode, and it is not hypothetical any more. The same applies to everything else behind the pin: 41 compiler commits, including soul, the TAB catcode fix, the list environment, What this PR needsOnly the digest re-record, which I already gave you above: python3 crates/perf-bench/scripts/merge_digests.py \
--baseline crates/perf-bench/baselines/linux-x86_64-ryzen7-7800x3d.json \
--new-report /tmp/report.json --case lecture-notes \
--out crates/perf-bench/baselines/linux-x86_64-ryzen7-7800x3d.jsonI did exactly this for #910 earlier (one case, ten keys, matched CI exactly, baseline the only file touched), so the procedure is proven today. If you would rather not carry the re-pin in a PR that also adds cancel strikes, say so and I will split the re-pin out as its own change and drive it. I am not trying to take your PR — I am trying to stop 41 commits of merged, tested, green work from continuing to reach nobody. Your call on the shape; I will do the work either way. One caution I raised earlier and will repeat, because it cuts against complacency: one case out of 26 moving is a statement about the perf corpus, not a reassurance about the re-pin. None of those 26 documents loads fancyhdr, soul or csquotes, so most of what this re-pin makes live is invisible to the digest gate by construction. Green here means "nothing the corpus exercises regressed", not "the re-pin is correct". 🤖 Generated with Claude Code |
e92b2e9 to
50466f3
Compare
…ine (#874) `\cancel`, `\bcancel` and `\xcancel` (compiler `Frame::Cancel`/`BCancel`/ `XCancel`, #873) now reach the page. The body goes through the built-box placeholder seam `\boxed` uses (`mathtext::BuiltBody::Cancel`), laid out in the current style (`\mathpalette`: display for a text-size placeholder in display math, text otherwise, script sizes as themselves; cramped variants are not modelled), and `cancelled_math_box` puts the strikes over it as rule leaves whose `SourceTag::attr` marks them, which `typeset::math_items` strokes as `path_stroke` items instead of filling. display-list-v2 already has that primitive (proposal `path-v0`, the TikZ route), so nothing was added to the protocol, the Mac consumer or the PDF writer. The geometry is cancel.sty v2.2's, not a corner-to-corner diagonal: the package sets `\line(x,y){len}` from `\@can@slash`, so the slope is one of picture mode's ((6,1) (4,1) (2,1) (4,3) (1,1) for a body wider than tall, (1,6) (1,4) (1,2) (3,4) (1,1) for a taller one), the length is the width plus 2pt (at least 10pt) or a fraction of the total height plus 2pt, and `\@sline` builds it from `line10` glyphs at `\thinlines`, the last one overlapped back so the rise is the glyph height times the leftover in whole thousandths. `\ooalign` centres the line on the `\vcenter`ed body and the `\raise` puts the body back on its baseline, so the strike's centre is the body's centre, the atom keeps the body's width, is (rise + h - d)/2 tall and max(d, axis - (h - d)/2) deep. A length under one glyph draws nothing, as `\@sline` does. Every `line10` glyph's ink runs corner to corner of its box with a 0.4pt pen, so the whole line is one round-capped stroke. Verified against pdfTeX (TeX Live 2026, 10pt article), `\showbox` first: `$\cancel{x}$` = `\hbox(7.15277+0.34723)x5.71527` around a (1,2) line box `10.0+0.0 x 5.0`; `$\bcancel{x+y}$` = `\hbox(5.09319+1.94444)x23.199` around `0.0+6.29749 x 25.199` (4,-1); `$\xcancel{\frac{a}{b}}$` = `\hbox(7.9464+3.44841)x6.73764` around `12.39+0.0 x 6.1998`; plus `\cancel{i}`, `\cancel{xyz}`, `\cancel{x^2}`, `\cancel{abcdefgh}` -- all reproduced by `cancel_strike_extent`/`cancelled_math_box` to 1e-4 pt (unit tests). Then the page, `tools/visual-oracle/pdftext.py` on pdflatex's PDF against the v2 list: the body glyphs (`x`, `x + y`, `a`/`b`) sit where the undecorated formulas put them (identical to FlashTeX's own plain render; 0.0003-0.005 bp from pdfTeX, the pre-existing medmuskip rounding), and every stroke endpoint lands on the `line10` glyph corner pdftex writes: `\cancel{x}` (149.069, 137.601)->(154.050, 127.639) bp, `\bcancel{x+y}` (147.716, 141.646)->(172.821, 147.920), `\xcancel` (148.980, 163.102)<->(155.157, 150.758) both ways, each within 0.001 bp. A 600dpi ghostscript raster of both PDFs differs only along glyph outlines and stroke edges. Tests: `tests/cancel_strikes.rs` (4) and `mathtext::cancel_tests` (3). `cargo test --release --no-fail-fast` on `crates/render-pipeline`: 641 passed, 0 failed, 2 ignored with `FLASHTEX_FONT_DIRS` absolute (four `math_symbols` tests that stage a control font directory from it fail with a relative path; none of them sets a cancel command). Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
… absorb Inline::PageStyle b997167 (git archive, diff -r --exclude=PIN empty). That brings in main's fancyhdr compiler half (#849), whose `Inline::PageStyle` the pipeline had not seen: it carries the span like a label, hashes into the block cache key, and lowers to no horizontal material (the page chrome is the compiler layout's). Re-pin to main once #873 merges. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
… tree identical to b997167) touch apps/mac only, so `git ls-tree -r 75a2a03 crates/compiler` is blob-for-blob the vendored tree apart from `PIN` (651 paths checked). Only `PIN` and the VENDORING.md row move; the row's branch reads `main` again. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
…\maketitle's title page keeps its place Compiler pin 75a2a03 (fancyhdr, #849) rides an `Inline::PageStyle` marker in the paragraph with the command's own span; for `\maketitle` that is before the title's text, so it anchored the paragraph for the gap scans and page-break detection. `anchor_span` takes the first inline at a real source position instead. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
…t list's \begin is still read in vertical mode Compiler pin 75a2a03 (fancyhdr, #849, `6456065a`) turns a preamble `\pagestyle{empty}` into a paragraph holding one `Inline::PageStyle` marker; the old pin read the argument and emitted nothing. The units walk took that paragraph for material: `prev_end` moved onto it and `prev_vmode` went false, so the document's first `\begin{itemize}` no longer counted as read in vertical mode (`prev_end.is_none()` was the document-start rule). `list_vmode_by_depth[0]` came out false and the outer list's closing `\@topsepadd` lost `\partopsep`: `After` sat 19.925 bp under `Inner.`, pdflatex 21.918 (-1.993 bp = 2 pt at 10 pt), in `nested_list_end_skips`. The markers are whatsits (the compiler's own vertical-mode rule for `\pagebreak`), so a paragraph made only of them is skipped in `split_at_page_breaks` like the old pin's nothing; the page style is read from the source by `body_commands` as before. A marker riding in a real paragraph (`\maketitle`) is the previous commit's `anchor_span`. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
…idth span Since compiler 4a77aed the U+220E text after \end{proof} carries an empty span at the \end's start while the fill keeps the whole \end span, so the equal-span test no longer identified the pair and the proof ended with a missing-glyph warning instead of \openbox's rules. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
…tries take the paragraph branch Thirteen more compiler files landed on main since the last pin (etoolbox toggles, #901/#902/#913/#915/#917/#929). The mirror follows main again; the one new variant, tabular::Align::Flexible (tabularx's X column, a paragraph entry whose share is fixed at layout time), is set flush left like p entries when its content is placed. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
1ee100a to
9809af0
Compare
…ler re-pin (digests only) The re-pin (#896) changes lecture-notes' output by design; digests are the ones main's own gate run reported (run 35399005800). No timing touched. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
Publishes the quiesced handoff required by AGENTS.md before a successor may claim command: integration/merge/publication jobs stopped and verified stopped, main clean at 3144e61, live Muse lanes and held work enumerated, and the two decisions that most need an owner ruling (#896 vendor re-pin, #905 Tier-1). Also preserves the session's tooling under coordination/tools-daniel-parent/ -- a conflict resolver, a lane exclusion auditor and a gated publisher -- so the next Commander inherits the checks rather than rebuilding them. Implementation-Agent: daniel-parent Commit-Executor: daniel-parent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…30ee5c `git archive f30ee5c crates/{compiler,tex-expansion}`, byte-identical to the live crates apart from `PIN`; the two are in lockstep, and the compiler pin now includes main's 17 merged compiler PRs plus S1 (`vendor/compiler` was 56 commits behind main at `3aea9744`, #896). `scripts/check-vendor-pins.sh` rc=0. Implementation-Agent: Claude Code (mac-claude-a / lane-sty-cls) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
…30ee5c (#896) 56 compiler commits reached the renderer with the S1 landing (1497117); CI's full run on main (35438858506) shows exactly five cases' output moved: article-twocolumn, lecture-notes (fancyhdr headers, #945 — the case #896 predicted), natbib-review, thesis-chapter, unicode-accents. Digests taken textually from that report; the other 21 cases are unchanged. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
Summary
Two things, because the second is what the first needs:
1.
\cancel/\bcancel/\xcancelstrikes (#874, completes #500) — cancel.sty's actual geometry:\@can@slash's\line(x,y){len}with picture-mode-quantised slopes and length width+2pt, centred on the body; atom keeps the body's width, height (rise+h−d)/2, depth max(d, axis−(h−d)/2), per\showbox. Drawn with the existingItem::Path/path_stroke(path-v0, the TikZ route) — the Mac consumer and PDF writer already draw it; no protocol change.\showboxboxes for 7 bodies match pdflatex to 1e-4 pt; stroke endpoints within 0.001 bp of theline10glyph corners; body glyph positions unchanged.2. Re-pin
vendor/compilerfrom4511166eto main75a2a03a— required for theFrame::Cancelvariants, and overdue: ~35 compiler commits (soul, tab catcode, fancyhdr, list env,\Tiny,\enquote, …) have been inert for users behind the old pin. The re-pin exposed three compiler↔pipeline drifts, all fixed here inadapter.rs(this is what #864 was stuck on):footnotes_oracle12-thanks/32-thanks-authors):\maketitlenow pushes anInline::PageStylemarker into the next paragraph (compiler: implement fancyhdr running heads (#833) #849), whose span is\maketitle's own — it anchored the paragraph before the title block.anchor_spanskips marker inlines at the four anchor sites.nested_list_end_skips, −1.993 bp): a preamble\pagestyle{empty}now emits a marker-only paragraph, which becameprev_endand clearedprev_vmode, so the first\begin{itemize}lost its\partopsep. A PageStyle-only paragraph is skipped as a whatsit-only block.qed_box): proof: span the closing QED mark at \end instead of covering it (#852) #862 gave the U+220E text a zero-width span at\end's start; the marker match now accepts that shape.Inline::PageStylealso gets span/hash/lowering arms (it lowers to nothing; the page chrome is the compiler layout's).vendor/compileris byte-identical to75a2a03a:crates/compiler(diff -r --exclude=PINempty over 651 paths);scripts/check-vendor-pins.shreportscompiler: up to date.VENDORING.mdrow updated.Test plan
crates/render-pipeline:cargo test --release --no-fail-fast653 passed, 0 failed, 2 ignored;cargo test(debug) 653 passed, 0 failed, 2 ignored — with the new pintests/cancel_strikes.rs4 integration + 3 unit;footnotes_oracle,nested_list_end_skips,qed_boxgreen\cancel{x}strikes and every compiler fix since4511166e(\enquote,\Tiny, fancyhdr heads, list lengths, …)Not modelled
Cramped styles;
\CancelColor; a\cancelin a display fraction's numerator gets style D not T. Perf-bench digests will need re-recording for cases whose compiler output changed (expect the perf gate to flag them; digest-only follow-up like #880's).Implementation-Agent: Claude Code (mac-claude-a; strikes and title-page fix by Opus 5 subagents, list-skip fix by an Opus 5 subagent, QED fix by the session)
Commit-Executor: git via Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn