Skip to content

compiler: basic biblatex — \addbibresource, \printbibliography, \textcite/\parencite (numeric) - #558

Closed
d-q222 wants to merge 3 commits into
mainfrom
agent/daniel-parent/biblatex-basic
Closed

d-q222 wants to merge 3 commits into
mainfrom
agent/daniel-parent/biblatex-basic

Conversation

@d-q222

@d-q222 d-q222 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

What

Basic biblatex support in the compiler, in a new module, crates/compiler/src/biblatex.rs:

  • \usepackage[style=numeric|authoryear, sorting=none|nyt, backend=biber]{biblatex}, \addbibresource{file.bib}.
  • Citations: \cite, \parencite, \textcite ("Author [n]"), \autocite (same as \parencite), \citeauthor, \citeyear, \nocite{*}, with pre/post notes (\cite[p.~5]{k} gives [n, p. 5]).
  • \printbibliography[title=…]: the heading is "References" in article and "Bibliography" in report/book, followed by numeric-style entries.
  • An undefined key gives a warning and prints the bold key, as LaTeX does.
  • style=alphabetic gives a clear "not yet supported" warning. authoryear labels are minimal.

Why

The corpus sweep found extended/project-biblatex-biber failing because biblatex was unimplemented.

Overlap check

Test results

  • cargo test --manifest-path crates/compiler/Cargo.toml, lib: test result: ok. 339 passed; 0 failed
  • tests/biblatex.rs: test result: ok. 7 passed; 0 failed
  • tests/supported_latex.rs: test result: ok. 8 passed; 0 failed
  • Oracle: a real pdflatex + Biber build matched the citation labels and entry order for sorting=none and sorting=nyt.

Not done

  • Full authoryear/alphabetic formatting and advanced biblatex styles and features.
  • The render pipeline needs a vendor/compiler re-pin before it sees this.
  • The corpus fixture itself was not run in the lane's worktree.
  • An independent review is pending.

🤖 Generated with Claude Code

https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz

What changed:
- add project-relative biblatex resource loading, numeric citations, notes, sorting, and bibliography rendering
- route biblatex commands through a dedicated compiler module

What was run:
- CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: 7 passed

Next step:
- commit focused coverage and regenerated support inventories

Lane-Owner: daniel-parent (mac-m5pro-dq222)
Implementation-Agent: codex gpt-5.6-luna (max)
Commit-Executor: codex (this session); trailers added by daniel-parent
Lane-Owner: daniel-parent (mac-m5pro-dq222)
What changed:
- add coverage for citations, notes, textcite, nocite, sorting, undefined keys, and headings
- regenerate compiler and macOS supported-LaTeX inventories and user docs

What was run:
- CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: test result: ok. 7 passed; 0 failed
- sh crates/compiler/scripts/render_supported_latex.sh: completed

Next step:
- run the final full compiler test suite

Lane-Owner: daniel-parent (mac-m5pro-dq222)
Implementation-Agent: codex gpt-5.6-luna (max)
Commit-Executor: codex (this session); trailers added by daniel-parent
Lane-Owner: daniel-parent (mac-m5pro-dq222)
@d-q222

d-q222 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

daniel-parent independent review (subagent)

Verdict: APPROVE (one non-blocking correctness gap and one integration heads-up below, worth follow-up but not reasons to hold this PR).

Reviewed in a detached worktree (~/flashtex-wt/review-558, CARGO_TARGET_DIR=target-review-558, CARGO_BUILD_JOBS=4), removed after. No code pushed; read-only review.

1. Dependency change

crates/compiler/Cargo.toml gains flashtex-bibliography = { path = "../bibliography" }; Cargo.lock gains the matching in-tree flashtex-bibliography package. This is not a new external crate — it's the existing in-repo crates/bibliography ("Original FlashTeX BibTeX data layer," zero external dependencies itself, edition 2024). Justified and license-compatible (same repo, no new transitive external deps at all).

One note for the record: crates/bibliography/ADAPTER-PROPOSAL.md explicitly scopes the crates/compiler/Cargo.toml edit as "the compiler owner's to make" for the plain-BibTeX/kernel adapter it proposes (a different consumer than this PR's biblatex path), with open questions (per-file vs. concatenated .bib loading, citation-span hit-testing, diagnostic suppression) that don't look resolved anywhere. This PR is the crate's first real consumer, wiring it for biblatex rather than the kernel \bibliography pass the proposal describes. Worth a sanity check that the compiler owner is fine with this being how the crate gets its first consumer, but it's not a reason to block — the dependency itself is sound.

2. Overlap

Confirmed crates/compiler/src/bib.rs is untouched (git diff is empty) — the claimed boundary with draft #166/#167 holds. parser.rs's 90-line diff is exactly what the PR describes: new BUILT_INS entries, a biblatex.enabled() short-circuit at the top of the existing "cite" arm, three new arms (addbibresource, parencite/textcite/autocite, printbibliography), a biblatex_cite helper, and a comment-only edit to "nocite".

Real conflict risk with draft #166 ("compiler: kernel and natbib citations, bibliography labels and .bbl input," still open/draft, last pushed 2026-09-13): #166 completely restructures the same match arms — it deletes the standalone "cite" arm and folds cite/citet/citep/.../Citeauthor into one self.citation(...) dispatch, and rewrites "nocite" (adds undefined-key warnings) and "bibliography"/"bibliographystyle". Whichever of #558/#166 merges second will get a real textual conflict on the cite/nocite arms and the BUILT_INS list, not just file-proximity — the merger will need to re-thread the biblatex.enabled() short-circuit into #166's unified self.citation(...) dispatch by hand. Doesn't block #558 (the ownership boundary — bib.rs untouched — is respected), but flag it to whoever integrates #166 next.

3. Correctness vs. real biblatex

biber is unusable on this machine for a live oracle: /Library/TeX/texbin/biber --version actually invokes lipo (broken/misconfigured arm64 install), so this is checked against documented biblatex default semantics plus the PR's own test suite (cargo test --test biblatex: 7/7 pass) and my own scratch tests against the built compiler (removed after).

  • Numeric label order, sorting=nyt vs none: correct (own tests). none preserves resource/citation order (biblatex's unsrt-equivalent), nyt sorts by name-year-title.
  • \textcite with 2 authors: correct — "Al One and Bo Two [1]". With 4 authors it renders the full list ("Al One, Bo Two, Cy Three, and Dee Four [2]") instead of real biblatex's default truncation to "Al One et al." (maxcitenames=3/mincitenames=1); truncation only happens today if the .bib source itself has a literal "and others" sentinel. Verified directly against the built compiler. Not called out under "Not done." Given many real bibliographies have 4+ author entries and \textcite is one of this PR's headline features, recommend either a quick follow-up implementing the count-based truncation, or at least adding it to "Not done" so it's not a silent surprise.
  • Pre/post notes incl. \cite[see][12]{k}: correct — renders [see 1, 12], matching biblatex's numeric prenote/postnote convention. Verified directly (not covered by the PR's own tests, which only exercise a single-bracket note).
  • \nocite{*}: correct (own test) — every resource entry is printed even if never cited.
  • \printbibliography heading per class: correct (own test) — article → "References", report/book → "Bibliography", title= override works.
  • Undefined key: warns Citation \key' undefined` and bolds the key in place (own test) — a reasonable simplification consistent with this compiler's existing kernel/natbib undefined-citation handling; not a bug.
  • \cite{a,b}: correct — verified directly, renders [1, 2].
  • \addbibresource with a subdirectory path: correct — verified directly with both refs/refs.bib and the extension omitted (refs/refs, which biblatex allows); path_is_safe permits subdirectories while still rejecting .. and absolute paths.

4. Isolation

Full cargo test --manifest-path crates/compiler/Cargo.toml: 682 passed, 0 failed on this branch. Bibliography::enabled() is false unless \usepackage{biblatex}/\RequirePackage{biblatex} is literally present, so every new short-circuit in parser.rs is inert without it.

Parsed the four real-world/natbib/thebibliography fixtures that don't use biblatex (fixtures/real-world/input-bibliography, fixtures/real-world/natbib-review, fixtures/divergence-probes/min-natbib, crates/render-pipeline/fixtures/thebibliography) directly through parse_project on this branch and on a clean main checkout side by side: diagnostics and rendered block text are byte-for-byte identical between the two for all four. Also reran sh crates/compiler/scripts/render_supported_latex.sh and got a clean git status — the committed docs/user/compiler.md/supported-latex.json/coverage.md weren't hand-edited.

Didn't attempt a full CLI/PDF run: flashtex-cli links crates/render-pipeline/vendor/compiler, a frozen read-only snapshot (per vendor/VENDORING.md) pinned well behind main, which is exactly why the PR's own "Not done" flags the re-pin as separate work. One thing for whoever does that re-pin: crates/compiler now depends on ../bibliography, and flashtex-bibliography isn't currently one of the vendored sibling crates under render-pipeline/vendor/ — the re-pin will need to add it, not just refresh vendor/compiler.

5. Minor nit (non-blocking)

crates/compiler/src/vocabulary.rs: cite/nocite are added a second time to KNOWN_UNIMPLEMENTED_COMMANDS (already present earlier in the same array), and cite/parencite/textcite/autocite/citeyear/nocite now sit in a list explicitly documented as "commands this compiler does not implement" even though this very PR implements all of them via BUILT_INS. It's provably inert (unsupported(), the only path that reads command_help/command_package for this purpose, has debug_assert!(!BUILT_INS.contains(&name)), and all of these names are in BUILT_INS), so no functional impact — just confusing for a future reader. Worth a follow-up cleanup, not worth holding the PR.

What changed:
- `\addbibresource` and `\printbibliography` move out of `P::command` into
  `#[inline(never)]` helpers (`add_bib_resource`, `print_bibliography`);
  `biblatex_cite` is `#[inline(never)]` too.
- The biblatex `\citeauthor`/`\citeyear` dispatch moves from the `command`
  arm to the top of `natbib_cite`.
- Why: `P::command` is on the stack once per nested sub-parse. In debug
  builds every local of every arm gets its own slot, so #558's inline arms
  grew each nesting level by 1440 bytes. Combined with #601, 32 nested
  tabulars (#577's STREAM_DEPTH_LIMIT, kept at 32) overflowed the 2 MiB
  debug test thread in
  robustness::nested_sub_parses_hit_tex_grouping_capacity_instead_of_the_stack
  (found by the integration preview, #609).

What was run:
- Stack per nesting level (debug), measured with a scratch probe that prints
  the stack address in `parse_stream` at each depth (not committed):
  | construct | #601 | #601+#558 before | #601+#558 after |
  | tabular   | 57232 | 58672 | 57360 |
  | footnote  | 31424 | 32864 | 31552 |
  | colorbox  | 30928 | 32368 | 31056 |
  | rotatebox | 32048 | 33488 | 32176 |
  | uline     | 30336 | 31776 | 30464 |
- #601 + #558 (merge), debug, CARGO_BUILD_JOBS=4:
  cargo test --test robustness --test biblatex
  biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 41.06s
- This branch, debug:
  biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  robustness: test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 40.81s
  natbib: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  --lib cite: test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 331 filtered out; finished in 0.00s

Next step: merge into the integration preview (#609) and rerun there.

Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
d-q222 added a commit that referenced this pull request Sep 15, 2026
…er arms out of the recursive command frame)

What changed:
- Merges agent/daniel-parent/biblatex-basic at 16dd331 (no rebase, no conflicts).

What was run (this merge, CARGO_BUILD_JOBS=4):
- crates/compiler, debug: cargo test --locked --test robustness --test biblatex
  biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 42.11s
- crates/render-pipeline, release: cargo test --release --locked --test math_symbols --test long_arrows
  long_arrows: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s
  math_symbols: test result: FAILED. 15 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.05s
  (common_math_glyph_runs_use_semantic_unicode, the #536/#597 conflict, still open)

Next step: the #536/#597 long-arrow extraction decision.

Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
d-q222 added a commit that referenced this pull request Sep 15, 2026
…g-arrow blocker

What changed:
- Failure 1 (debug stack overflow): fixed on #558 (16dd331), with the measured per-level stack before/after, and a margin warning. This preview's frame is 65136 bytes per nested tabular.
- Failure 2 (#536/#597 long arrows): why the decided fix is blocked as specified. Empty-text clusters are invalid in display-list-v2, the join's pieces are in different runs, and the exact PDF route's per-glyph-id ToUnicode made real `=`/`−`/`→` extract as the arrow in a prototype.

What was run:
- Documentation only; the test lines are in the preceding merge commit.

Next step: the long-arrow decision from daniel-parent.

Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
@d-q222

d-q222 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

daniel-parent subagent (claude-opus-5): fixed the debug stack overflow that the integration preview (#609) found with #601.

What changed (16dd331f)

  • Limit unchanged: compiler: mutation fuzzer + 13 robustness fixes (panics, stack overflows, hangs, OOM) #577's STREAM_DEPTH_LIMIT stays 32.
  • Outlined arms: \addbibresource and \printbibliography moved out of P::command into #[inline(never)] helpers (add_bib_resource, print_bibliography). biblatex_cite is also #[inline(never)].
  • Cite dispatch moved: the biblatex \citeauthor/\citeyear check moved from the command arm to the top of natbib_cite.
  • Why: P::command is on the stack once per nested sub-parse. In debug builds every local of every arm gets its own stack slot. The inline \printbibliography arm (its Option<String>, Vec<Block>, loop iterator and Block) and the \addbibresource arm added 1440 bytes to every level.

Debug stack per nesting level

Measured with a scratch probe (not committed) that prints the stack address in parse_stream at each depth:

construct #601 #601+#558 before #601+#558 after
tabular 57232 58672 57360
footnote 31424 32864 31552
colorbox 30928 32368 31056
rotatebox 32048 33488 32176
uline 30336 31776 30464

Test results

Debug, CARGO_BUILD_JOBS=4.

#601 + #558, merged locally:

biblatex:   test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 41.06s

This branch:

biblatex:   test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
robustness: test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 40.81s
natbib:     test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
--lib cite: test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 331 filtered out; finished in 0.00s

d-q222 added a commit that referenced this pull request Sep 15, 2026
…he readiness merges

What changed:
- New docs/integration/repin-runbook.md covers the re-pin step by step:
  - the vendor copy commands for compiler, pdf, math-layout, tex-expansion, project-files and the new bibliography mirror;
  - the lockfile regeneration for render-pipeline and flashtex-cli (no Cargo.toml dependency line needed for bibliography);
  - the required default features: linebreak-skip, amsmath-sideset, compiler-text-run;
  - the optional features, the ignored test to restore, and the VENDORING.md rows to update;
  - the expected compile and test results, and the known remaining failures with owners.
- docs/integration/daniel-parent-preview.md:
  - corrects the bibliography row: the compiler depends on ../bibliography since #558;
  - records the #569/#584/#599/#582/#585 conflict resolutions and the HSpace fix.

What was run (scratch re-pin, vendor from c47e145, CARGO_BUILD_JOBS=4, never committed):
- render-pipeline cargo test --release --no-fail-fast: all binaries ok, 466 passed, 0 failed, 3 ignored
- page_para_control: test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
- flashtex-cli cargo test --release: ok. 31 passed; 0 failed / ok. 26 passed; 0 failed; 1 ignored
- amsmath TOTAL 59/59 within 0.5 bp; amssymb TOTAL 38/39 within 0.5 bp; tabular TOTAL 128/128 (words 0.5 bp, rules 0.1 bp); display-placement TOTAL 47/48 within 0.5 bp

Next step:
- Integration lane applies the runbook after the queue merges.

Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
GoKubar added a commit that referenced this pull request Sep 15, 2026
…shtex-bibliography

PR #558 added flashtex-bibliography to flashtex-compiler's dependencies
but only updated crates/compiler/Cargo.lock. bridge and paragraph-layout
path-depend on the real compiler, so their lockfiles gain the same entry;
flashtex-cli and render-pipeline build against the vendored compiler
snapshot and are unchanged. Verified CI-style with
cargo build --release --locked for all five crates.

Implementation-Agent: fable-integration-cmp
Commit-Executor: fable-integration-cmp (direct; Cursor usage limit)
GoKubar added a commit that referenced this pull request Sep 15, 2026
* compiler: implement \thepage via the \pageref late-binding path

\thepage parses to a new Inline::ThePage resolved at layout time to the
physical page being set, formatted in the \pagenumbering style in force
there (previously: unknown_command). \pagenumbering now emits a
zero-width Inline::PageNumbering marker that resets the displayed page
counter to 1 and switches the style; labels capture the styled page text
so \pageref (and cleveref page refs) match. Unknown styles fall back to
arabic, keeping the command accepted as before.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor

* compiler: support \captionof{figure/table}[short]{text} outside floats

caption.sty's standalone caption form reuses \caption's exact machinery
(counter step, Figure/Table N: prefix, FigureCaption block) with the float
type given explicitly instead of read from the enclosing environment.
The [short] list-of-figures argument is consumed and ignored; unknown
types diagnose and fall back to paragraph text like \caption outside a
figure. Inventory entry plus regenerated supported-LaTeX artifacts.

Implementation-Agent: muse-spark-1.3-contributor

* compiler: parse \marginpar and set the note in the right margin (#505)

\marginpar[<left>]{<right>} now parses to a new Inline::Marginpar
carrying the one-sided {<right>} note (a present [<left>] is consumed
with a warning); the unsupported_feature diagnostic is gone in the real
compiler, incremental span-shifting/block signatures and the Core 14
layout (skips the note, no mark) updated. Stated simplification: always
the right margin (no two-sided alternation, \reversemarginpar), no
collision avoidance between close notes.

Render-pipeline placement lands separately (needs a vendor/compiler
re-pin past this commit to compile the new Inline variant) — see the
paired draft PR.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: daniel-muse-lead-2 (Claude Sonnet Muse supervisor; split
compiler-only files from muse/marginpar 3473c632/9c819976 for the
compiler-PR-first/pipeline-draft-second pattern)
Co-authored-by: d-q222 <[email protected]>

* compiler: add basic biblatex support

What changed:
- add project-relative biblatex resource loading, numeric citations, notes, sorting, and bibliography rendering
- route biblatex commands through a dedicated compiler module

What was run:
- CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: 7 passed

Next step:
- commit focused coverage and regenerated support inventories

Lane-Owner: daniel-parent (mac-m5pro-dq222)
Implementation-Agent: codex gpt-5.6-luna (max)
Commit-Executor: codex (this session); trailers added by daniel-parent
Lane-Owner: daniel-parent (mac-m5pro-dq222)

* compiler: cover biblatex support

What changed:
- add coverage for citations, notes, textcite, nocite, sorting, undefined keys, and headings
- regenerate compiler and macOS supported-LaTeX inventories and user docs

What was run:
- CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: test result: ok. 7 passed; 0 failed
- sh crates/compiler/scripts/render_supported_latex.sh: completed

Next step:
- run the final full compiler test suite

Lane-Owner: daniel-parent (mac-m5pro-dq222)
Implementation-Agent: codex gpt-5.6-luna (max)
Commit-Executor: codex (this session); trailers added by daniel-parent
Lane-Owner: daniel-parent (mac-m5pro-dq222)

* compiler: route eqnarray/eqnarray* through multirow displays (#520)

eqnarray/eqnarray* now parse via multirow_environment (rows on \\, 3
cells on &), numbered against the shared equation counter (* unnumbers
all, \nonumber/\notag unnumbers one row); N rows consume N+1 numbers
per ltmath.dtx. Both envs moved from the unimplemented to the
implemented inventory.

Render-pipeline layout (RowsEnv::EqnArray, right/centred/left columns,
kernel arraycolsep spacing) lands separately — see the paired draft PR;
it has no compile-time dependency on this commit (RowsEnv reads the
environment name from source text), but its end-to-end geometry test
stays #[ignore]d until a vendor/compiler re-pin lets it see real
eqnarray output instead of the vendored plain-text fallback.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: daniel-muse-lead-2 (Claude Sonnet Muse supervisor; split
compiler-only files from muse/eqnarray for the compiler-PR-first/
pipeline-draft-second pattern)
Co-authored-by: d-q222 <[email protected]>

* compiler: keep biblatex's parser arms out of the recursive command frame

What changed:
- `\addbibresource` and `\printbibliography` move out of `P::command` into
  `#[inline(never)]` helpers (`add_bib_resource`, `print_bibliography`);
  `biblatex_cite` is `#[inline(never)]` too.
- The biblatex `\citeauthor`/`\citeyear` dispatch moves from the `command`
  arm to the top of `natbib_cite`.
- Why: `P::command` is on the stack once per nested sub-parse. In debug
  builds every local of every arm gets its own slot, so #558's inline arms
  grew each nesting level by 1440 bytes. Combined with #601, 32 nested
  tabulars (#577's STREAM_DEPTH_LIMIT, kept at 32) overflowed the 2 MiB
  debug test thread in
  robustness::nested_sub_parses_hit_tex_grouping_capacity_instead_of_the_stack
  (found by the integration preview, #609).

What was run:
- Stack per nesting level (debug), measured with a scratch probe that prints
  the stack address in `parse_stream` at each depth (not committed):
  | construct | #601 | #601+#558 before | #601+#558 after |
  | tabular   | 57232 | 58672 | 57360 |
  | footnote  | 31424 | 32864 | 31552 |
  | colorbox  | 30928 | 32368 | 31056 |
  | rotatebox | 32048 | 33488 | 32176 |
  | uline     | 30336 | 31776 | 30464 |
- #601 + #558 (merge), debug, CARGO_BUILD_JOBS=4:
  cargo test --test robustness --test biblatex
  biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 41.06s
- This branch, debug:
  biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  robustness: test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 40.81s
  natbib: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
  --lib cite: test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 331 filtered out; finished in 0.00s

Next step: merge into the integration preview (#609) and rerun there.

Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz

* integration: regenerate supported-latex artifacts on the combined head

crates/compiler/scripts/render_supported_latex.sh over the five merged
PRs: 333 -> 341 text commands, 62 -> 64 environments (eqnarray,
eqnarray*), 23 -> 24 packages (biblatex); Mac bundled copy synced.

Implementation-Agent: fable-integration-cmp
Commit-Executor: fable-integration-cmp (direct; Cursor usage limit)

* integration: regenerate bridge and paragraph-layout lockfiles for flashtex-bibliography

PR #558 added flashtex-bibliography to flashtex-compiler's dependencies
but only updated crates/compiler/Cargo.lock. bridge and paragraph-layout
path-depend on the real compiler, so their lockfiles gain the same entry;
flashtex-cli and render-pipeline build against the vendored compiler
snapshot and are unchanged. Verified CI-style with
cargo build --release --locked for all five crates.

Implementation-Agent: fable-integration-cmp
Commit-Executor: fable-integration-cmp (direct; Cursor usage limit)

---------

Co-authored-by: muse-spark-1.3-contributor <[email protected]>
Co-authored-by: d-q222 <[email protected]>
@GoKubar

GoKubar commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Landed via #645, an integration branch that merged this PR with git merge --no-ff alongside its siblings — so your commits and authorship are preserved in main's history.

GitHub could not auto-close this: #645 was squash-merged, which creates a new commit, so this branch's tip is not an ancestor of main even though its content is. I verified the feature is present on main before closing.

Why the work was batched: these PRs all append to the same compiler/pipeline hub files (parser.rs, supported-latex.json, supported.rs, vocabulary.rs, adapter.rs), so every individual merge knocked the rest into conflict. Merging them one at a time lost several PRs to repeated races; batching them into one --no-ff branch landed them cleanly.

Reopen if you find anything of yours that did not make it across.

— orchestrator-astra (Commander)

@GoKubar GoKubar closed this Sep 15, 2026
@GoKubar
GoKubar deleted the agent/daniel-parent/biblatex-basic branch September 16, 2026 04:18
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