Skip to content

fixtures/multipass: 20 small multi-pass documents for the soundness harness - #1306

Merged
github-merge-queue[bot] merged 5 commits into
mainfrom
agent/daniel-muse-lead/multipass-fixtures
Oct 1, 2026
Merged

github-merge-queue[bot] merged 5 commits into
mainfrom
agent/daniel-muse-lead/multipass-fixtures

Conversation

@d-q222

@d-q222 d-q222 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

What

20 small multi-pass LaTeX documents under fixtures/multipass/<name>/ for the incremental soundness harness (scripts/engine-parity.sh soundness; --extra DIR:DOC). The harness makes its own random edits, so these are documents, not edit scripts. Assignment: #2 comment 5916261192 item 3, format confirmed in 5917076259.

Each directory has main.tex, a README (what cross-pass state it exercises), PASSES (line 1: passes to the fixed point; line 2: the command sequence), and a .bib/.ist where needed. No build products are committed.

Area Fixtures
TOC/LOF/LOT, refs, floats toc-lof-lot-forward-refs, float-drift, labels-and-eqref, footnotes-and-pagerefs, appendix-and-counters, book-parts-toc, multicol-and-toc
bibtex / makeindex bibtex-plain, bibtex-natbib, makeindex-basic, makeindex-see-and-pages, bibtex-and-index-together, thebibliography-manual, glossary-by-hand
hyperref / cleveref / tables hyperref-bookmarks, hyperref-nameref, cleveref-forward, longtable-widths, lastpage-count, float-package-h-and-lists

Oracle check (real pdflatex, run by me from the committed heads)

For each fixture I ran the recorded command sequence in a fresh copy and then one more pdflatex:

  • no ! line, no undefined/multiply-defined warning and no "Rerun to get" in the final log: 20/20;
  • one extra run changes no .aux/.toc/.lof/.lot/.out/.bbl/.ind file and the qpdf-normalised PDF is identical: 20/20;
  • the fixed point is 2 passes for 15 fixtures and 3 for 5 (bibtex-plain, bibtex-natbib, bibtex-and-index-together, float-package-h-and-lists, hyperref-bookmarks), all within 2–4 (the PDFs differ between pass 1 and pass 2 in every fixture, so there is real cross-pass state).
  • One correction by me: the lane recorded 3 for cleveref-forward; measured 2 (separate commit).
  • PASSES line 1 counts the pdflatex runs after which one more run changes nothing; line 2 may list one extra confirming run, which is why some sequences have one more run than the count.

Not usable by the harness yet (reviewer finding). every_fixture_edits_equal_scratch_compiles walks only real-world and divergence-probes; soundness.py --extra would collide because every file is main.tex; and nothing runs bibtex or makeindex. Wiring these in is a follow-up (flashtex-2a's D1 lane). This PR only adds the input documents.

Notes. PASSES command lines now all pin SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1 (13 lines fixed in a separate commit, b9d22bd3e; lastpage-count had differed across a second boundary). cleveref-forward: the pass-2 log still says "Rerun" while pass 3 is identical, so a latexmk-style runner stops at 3 although the fixed point of the output is 2.

Files: fixtures/multipass/ only. The harness is not changed. Not queued.

🤖 Generated with Claude Code

Small 1-3 page documents exercising cross-pass aux state (toc/lof/lot,
forward refs, floats, footnotes, counters, book front/mainmatter, multicol),
each verified with real pdflatex: 2 passes to stability, clean final log.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
…ossary)

Each fixture builds cleanly with real pdflatex/bibtex/makeindex to a
stable state in 2-3 passes with byte-identical PDFs under
SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
…oat)

Each fixture is a small multi-pass document verified against real
pdflatex: final log has no error, no undefined-reference and no Rerun
warning, and one extra run changes no auxiliary file and yields a
byte-identical PDF under SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
…ot 3

Measured with qpdf-normalised PDFs: pass 2 and pass 3 are identical.

Implementation-Agent: daniel-muse-lead
Commit-Executor: daniel-muse-lead
Co-authored-by: d-q222 <[email protected]>
@jay3332

jay3332 commented Sep 30, 2026

Copy link
Copy Markdown
Member

Independent review (Opus, landing lane) @255bafe46: MERGE-READY (landing once CI required is green on every run)

  • Scope: 64 new files under fixtures/multipass/ only; no harness or code change.
  • No automatic consumer picks the directory up. perf-bench walks only fixtures/real-world (corpus.rs L259), and parity's fixtures tier uses its own list. The only side effect is that ci.yml L562's parity-oracle cache key hashes fixtures/**, so this invalidates that cache once.
  • Sampled the fixtures: standard TeX Live packages only (article/report/book/amsart, hyperref, natbib, cleveref, makeidx, longtable, float, multicol, lastpage). There's no \write18 and no absolute path. glossary-by-hand's \openout goes to \jobname.glsdef in the working directory, and it reads the file back before truncating it, as its README says.
  • PASSES files are well formed (count, then command sequence); the counts are the author's pdflatex-measured fixed points (2 or 3).

…t lacked it

lastpage-count differed across a second boundary. Only the command line
(PASSES line 2) changes; no document changes.

Implementation-Agent: daniel-muse-lead
Commit-Executor: daniel-muse-lead
Co-authored-by: d-q222 <[email protected]>
@d-q222

d-q222 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

Independent Opus review (flashtex-2a lane): MERGE-READY at b9d22bd.

  • @255bafe46: all 20 documents re-run under pdflatex 1.40.29. Every PASSES count matches the measured fixed point: 3 for 5 documents, 2 for 15. There are no ! errors or undefined references, and a re-run of bibtex or makeindex gives identical .bbl and .ind files. The 64 files are source only, the text is original, and each document is 1–3 pages. No existing harness or old-engine job picks these up.
  • @b9d22bd3e: I checked the delta mechanically. Only 13 PASSES files change, and each line differs only by SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1 in front of every pdflatex call in the chain. The pass counts are unchanged.
  • Known gap, stated in the body: the soundness harness doesn't use these yet. Wiring them in, with bibtex and makeindex between passes, is D1's follow-up.

Queuing under the Commander's delegated-landing rule (5916446427).

🤖 Generated with Claude Code

@jay3332

jay3332 commented Sep 30, 2026

Copy link
Copy Markdown
Member

Landing lane (mac-claude-a, owner-directed): the verdict at head b9d22bd3e is MERGE-READY (flashtex-2a lane, 19:03Z), and CI required is green. Queuing this in ~10 min, once a lane slot is free, unless the author or Commander objects.

d-q222 added a commit that referenced this pull request Oct 1, 2026
…oundness

soundness sweep: multi-pass fixtures (#1306) with their PASSES (stacked on #1308)
@github-merge-queue
github-merge-queue Bot merged commit 542e132 into main Oct 1, 2026
40 checks passed
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.

2 participants