Repository navigation
vendor: re-pin render-pipeline's compiler mirror to main faa7d484, and catch the pipeline up to it - #451
Conversation
… not compile yet)
…n `par-leading` on `vendor/compiler` is re-pinned to `faa7d484` (WIP commit df05f74); this makes the pipeline compile against what it finds there and switches `par-leading` on. `par-leading` was inert: #437's `Block::Paragraph::leading_pt` needs #436's `Parsed::block_par_leading`, which the old pin did not carry. Measured end to end from a clean checkout, not inferred from a green build: `{\small ...\par}` in an 11pt article now sets baselines 11.955 bp apart, exactly pdflatex's 11.955 bp (`\small` = 12pt in size11.clo); the old pin gave 13.549 bp, i.e. `\normalsize`, wrong by 1.594 bp per line. Three moved compiler APIs, none swallowed by a wildcard arm: * `Inline::HFill { leader }` (#320). The glue is set exactly — `\hrulefill` and `\dotfill` are `\leavevmode\leaders<box>\hfill\kern\z@`, so all three parts are emitted. Both extras are load-bearing: `\leavevmode` keeps a lone `\hrulefill` paragraph from being dropped along with the `\vspace` before it (that took `enumitem-worksheet` from 3 pages to 2), and `\kern\z@` stops TeX's end-of-paragraph final-glue deletion (tex.web §816) from eating a trailing fill. The leader box is *not* painted — this pipeline has no leaders outside `typeset/toc.rs`, and paragraph-layout reports no per-glue set width — so every occurrence is lowered with a typed `unsupported_inline` warning naming the command. `fixtures/divergence-probes/min-hrulefill`, which recorded `Date:` 198.51 bp left of pdflatex, is now 0.55 bp from the oracle. * `Diagnostic.labels`/`.notes`/`.help` (#346/#389). display-list-v2's diagnostic is `additionalProperties: false` over `{code, message, severity, sources}`, so rather than invent wire fields, `from_compiler` folds them onto the fields that already mean the same thing: label spans join `sources`, their texts plus notes and help become `[note: …]`/`[help: …]` clauses on `message`, and `help.replacement` back-fills `suggestion`. One line only — `flashtex-render --tex` prints `severity[code] message (line:col)` per line. * `Inline::Underline` (#328/#390). PR #329 was written for this re-pin, is pipeline-only and applied cleanly; its only integration gap was a `VBlock` literal predating `broken_penalty`. The pin itself also starts warning `unsupported_feature` for `\usepackage{amsmath}`, which `e44d5917` did not. That line is user-visible on every amsmath document and claims "not implemented" about constructs this pipeline does set — a cross-crate disagreement for the owners, not something a re-pin settles. `tests/amsmath_inline.rs` excludes that one wording by a documented predicate and stays strict about everything else. Gates: render-pipeline 295 passed / 0 failed / 2 ignored (254 before); compiler 588 / 0 / 4; amsmath 59/59; tabular 106/106; HW1 and HW2 3 pages, 0 errors, 0 font-FAILURE diagnostics; corpus page counts 22/22. Corpus geometry (rank.py, same pdf-exact, only the producer varying), before → after: dx 85.74% → 85.61%, dy 75.04% → 75.73%, both 68.97% → 69.11%, aligned words 15073 → 15099, reflowed 131 → 129. 21 of 22 fixtures are bit-identical; all movement is `enumitem-worksheet` (dy +34.14 pp, aligned 332 → 357) plus one word in `unicode-accents`. That fixture's dx percentage falls 2.75 pp while its absolute count rises 157 → 159: 25 more words are measured, and the new ones sit outside 0.5 bp because the leader rule is still unpainted. No other vendor directory needed re-pinning; the four that differ from `main` do so by their own rows' deliberate choices, and the vendored compiler type-checks against them. Implementation-Agent: Claude Opus 5 (lane vendor-repin-2, linux-primary) Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
|
Holding this until the amsmath diagnostic is fixed. Everything else here is verified, but merging as-is would put a false warning on the owner's own documents. Reproduced against Both of the owner's homework fixtures draw it. They do not see it today only because the Mac app runs
Not suppressing it here; a separate lane is fixing the claim. This PR merges once that lands. |
…#444 The CLI links vendor/compiler, which still picks list-order suggestions, so \\igl keeps a suggestion. The test is the contract for after the re-pin (#451 pins faa7d48, which predates #444). What was run: cargo test --manifest-path crates/flashtex-cli/Cargo.toml test result: ok. 31 passed; 0 failed; 0 ignored test result: ok. 20 passed; 0 failed; 1 ignored Implementation-Agent: daniel-parent (Claude Code, mac-m5pro-dq222) Commit-Executor: daniel-parent Lane-Owner: daniel-parent (mac-m5pro-dq222) Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…ackage supersede Regression in this branch, found in review of #451. `from_compiler` appends the compiler's structured `help`/`notes` to `message` as ` [help: …]` clauses; `packages::supersede_message` ends its match with strip_suffix(" are recognised but not implemented") so with a clause on the end the match failed, the `else` branch returned the message unchanged, and every superseded `\usepackage` diagnostic leaked into the render output. Not just amsmath: every package in `implemented_by_pipeline` — amsfonts, lmodern, microtype, geometry, graphicx, tikz — and the mixed list too, where `packages amsmath, booktabs, …` should be trimmed to `booktabs` and was instead shown in full, telling the reader this pipeline does not implement things it does. `split_clauses` now peels trailing clauses off the body before matching and re-attaches them to whatever survives a trimmed list. It keys on the clause *shape* — ` [<label>: <text>]` with a plain-word label, bracket-depth aware so clause text may contain brackets and a body merely ending in `]` is not eaten — rather than on the two labels that exist today, so a third kind appended later needs no further fix. `preamble_command_superseded` reads the body too: `lib.rs` calls it on the compiler's diagnostic *before* the conversion, so it was not leaking, but it compares the whole message for equality and would the moment that call moved. Measured on the owner's fixtures, before → after: HW1 6 → 4 diagnostics, HW2 9 → 7, `unsupported_feature` leaks 2 → 0 in each; what remains is `math_resource_profile`, which is informational. This also retracts a wrong conclusion in the previous commit. I had reported the amsmath warning as purely a consequence of the re-pin and loosened `tests/amsmath_inline.rs` to tolerate it. The pin does newly emit it, but it never reaches a consumer — the supersede drops it — so it was visible only because of the bug above. That test is restored to `main`'s strict assertion and passes 11/11 on its own. Tests: `packages` unit tests for a superseded message with a clause (each of the eight packages), the mixed list with a clause, several clauses, clause text holding brackets, and bodies that merely end in `]`; plus two end-to-end tests in `compiler_diagnostic_forward` covering the real render path, which is where the clause actually gets appended. The existing `supersede_message` tests all used bare messages, which is why this got through. Gates re-run: render-pipeline 303 passed / 0 failed / 2 ignored; amsmath 59/59; tabular 106/106; HW1 and HW2 3 pages, 0 errors, 0 font-FAILURE diagnostics; corpus page counts 22/22. Corpus geometry is unchanged by this commit (dx 85.61%, dy 75.73%, both 69.11%, aligned 15099) — the supersede moves diagnostics, not glyphs. Implementation-Agent: Claude Opus 5 (lane vendor-repin-2, linux-primary) Commit-Executor: Claude Opus 5 (direct git, observed Cursor usage limit) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
|
Unblocked and verified. The leak is fixed at The cause was not what I first said. The compiler does newly emit the package warning under this pin, but Two things I want on the record, both from the lane and both self-reported:
So the "live cross-crate disagreement" flagged in the original description was not real. #455 remains a worthwhile cleanup on its own terms — the compiler should not assert something false even where a downstream consumer hides it, since the CLI and compiler routes have no such filter — but it no longer blocks this. |
What changed: - Merged origin/main while preserving #451 HFill leavevmode and trailing kern handling, Underline and Diagnostic integration, current-main listings/Lap support, and the faa7d48 vendor pin. - Carried FillLeader through Item::HFill and incremental hashing, then painted a 0.4pt hrulefill rule and centered dotfill glyph boxes after line breaking. - Removed the unsupported_inline warning for painted leaders; the plain hfill item list remains unchanged. What was run: CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --test fill_leaders test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --lib test result: ok. 137 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.10s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --test heading_macros test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/compiler/Cargo.toml --test rule_fills test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --test uline test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Visual oracle: min-hrulefill 18/18 aligned, max |dx| 0.554bp, 0 reflowed; enumitem-worksheet 3 pages, 0 errors and 5 warnings. The vendored rule_fills target is blocked by its existing edit_latency_bench.rs fixture include path; vendor was not modified. Next step: - Push agent/daniel-parent/fill-leaders; if network remains unavailable, the lane owner pushes it. Implementation-Agent: codex gpt-5.6-luna (max) Commit-Executor: codex (this session) Lane-Owner: daniel-parent (mac-m5pro-dq222)
What changed: - Merged current origin/main while preserving #451 HFill leavevmode and trailing kern handling, Underline and Diagnostic integration, current-main listings/Lap support, and the faa7d48 vendor pin. - Carried FillLeader through Item::HFill and incremental hashing, then painted a 0.4pt hrulefill rule and centered dotfill glyph boxes after line breaking. - Removed the unsupported_inline warning for painted leaders; the plain hfill item list remains unchanged. What was run: CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --test fill_leaders test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --lib test result: ok. 137 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.11s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --test heading_macros test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/compiler/Cargo.toml --test rule_fills test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-leaders cargo test --manifest-path crates/render-pipeline/Cargo.toml --test uline test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Visual oracle: min-hrulefill 18/18 aligned, max |dx| 0.554bp, 0 reflowed; enumitem-worksheet 3 pages, 0 errors and 5 warnings. The vendored rule_fills target is blocked by its existing edit_latency_bench.rs fixture include path; vendor was not modified. Next step: - Push agent/daniel-parent/fill-leaders; if network remains unavailable, the lane owner pushes it. Implementation-Agent: codex gpt-5.6-luna (max) Commit-Executor: codex (this session) Lane-Owner: daniel-parent (mac-m5pro-dq222)
… of #451 (#414) Merged by the linux-primary integration lane, now that this is out of draft. **Verified it completes #451 rather than duplicating it.** #451 landed the glue for \hrulefill/\dotfill and deliberately left the leader ink unpainted behind a typed `unsupported_inline` warning, naming the blocker: the resolved width of one glue is not reported by `flashtex-paragraph-layout`. This PR removes that warning, threads the leader through `Item::HFill { fill, leader }` into a new `BoxRec::Leader`, derives the resolved glue width after line breaking (`line_stretch_order` / `line_glue_width` from `Line::ratio` and the glue order), and paints real ink in `append_leaders` — `display::Item::Rule` for \hrulefill, glyph dots via `dots_item` for \dotfill. Verified locally, merged onto main @ 9d85ba8 in an integration worktree with the font environment set (FLASHTEX_FONT_DIRS + FLASHTEX_TFM_DIRS — without it roughly 110 tests silently skip and report as passes): | gate | result | main baseline | |---|---|---| | crates/render-pipeline | 364 passed, 0 failed, 4 ignored | 360 / 0 / 4 | | amsmath oracle | 59/59 within 0.5 bp | 59/59 | | tabular oracle | 106/106 (words 0.5 bp, rules 0.1 bp) | 106/106 | | corpus page counts | 22/22 | 22/22 | Because this changes painted output, the corpus was re-run rather than assumed: per-fixture page counts, status and error counts are byte-identical to the main baseline, including `enumitem-worksheet` (the fixture whose fill-in rules are exactly this feature) at 3/3 pages with 0 errors. No `vendor/*` and no `apps/mac/` paths touched.
…dry-run] with symlink-safe atomic writes (#362) * cli: rustc-style diagnostics with a source excerpt and carets (#277 part 2) `flashtex check`/`build`/`watch` print each diagnostic as a header, a `--> file:line:col` pointer, the source line(s) under a line-number gutter, carets under the byte span and a wrapped `= recovery:` line. - `--diagnostics=full|short|json`: full is the new form; short is the unchanged one-line `line_text`; json is `--json`. The default is full when stderr is a terminal and short otherwise, so piped output and scripts see exactly what they did before. - `--color=auto|always|never`; auto is on for a terminal unless NO_COLOR. - Uses only the fields a diagnostic already has (code, message, span, recovery). Structured labels/help from #277 part (1) can be added to the renderer without changing this path. - Spans: tabs expanded so carets line up, multi-byte text, empty spans and spans past the end of the text get one caret, spans longer than four lines show the first two and the last. Tests: 7 renderer unit tests, one end-to-end test for the flags. The pre-existing multi_file_project_resolves_inputs_from_the_project_root failure reproduces on unmodified main 9bd4b02 and is not touched here. Implementation-Agent: daniel-parent (mac-m5pro-dq222) Commit-Executor: git, direct Co-authored-by: d-q222 <[email protected]> * wip(#277): reproduce from_compiler dropping code and suggestion Add display::Diagnostic.suggestion (None at every constructor) and tests that expect unknown_command/\alpha and unsupported_feature. from_compiler still hardcodes code "compiler" and does not copy suggestion. Ran: CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-diagfwd cargo test --manifest-path crates/render-pipeline/Cargo.toml --lib from_compiler_forwards Result: test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 89 filtered out display::tests::from_compiler_forwards_code_and_suggestion: left "compiler" right "unknown_command" Next: forward compiler code (explicit, else default_code, else "compiler") and suggestion; emit suggestion only in runtime-v1 JSON; extend corpus owner_for; keep v2 diagnostics without a suggestion key. Open questions: none in-scope. vendor/, apps, protocol schema untouched. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * wip(#277): forward compiler diagnostic code and suggestion from_compiler copies the compiler's code (explicit, else default_code(message), else "compiler") and suggestion. runtime-v1 JSON emits suggestion only when set; display-list-v2 diagnostics are unchanged except the code value. owner_for accepts the compiler code set; tikz_pipeline rejects those codes too so a forwarded unknown_command cannot slip through as "not compiler". Ran (CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-diagfwd): - --lib from_compiler_forwards -- writer_matches_value_tree: test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 88 filtered out - --lib write_json_matches_the_value_tree: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 89 filtered out - --test compiler_diagnostic_forward: test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out - --test tikz_pipeline: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out - python3 -m unittest tools.real-world-corpus.test_run: Ran 6 tests in 0.008s OK Next: full cargo test --manifest-path crates/render-pipeline/Cargo.toml control-vs-after. Open questions: no in-scope golden embeds "code":"compiler" for a compiler diagnostic (vendor/pdf fixture and apps/mac display-list fixture are out of lane). docs/user/compiler.md still shows the old example. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * wip(#277): reproduce CLI dropping suggestion and lacking --fix Add six cli.rs tests that pin GH-277 acceptance: rustc-style help for \alpah, JSON suggestion, check --fix rewrite, --dry-run diff, suggestion in an \input file, and --help mentioning --fix/--dry-run. Overlap and hash-changed refusal will land with the apply module (need synthetic edits; the compiler does not emit overlapping spans for \alpah). Control (CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-clifix, base 5b7a88b): - unittests: test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out - --test cli: test result: FAILED. 12 passed; 1 failed (multi_file_project_resolves_inputs_from_the_project_root, fixture-dependent / PR #308) New tests (same target dir): - typo_alpah_full_output_has_a_help_block: FAILED (no "= help: did you mean `\alpha`?") - typo_alpah_json_includes_suggestion: FAILED (suggestion key absent, left None) - check_fix_rewrites_alpah_to_alpha / dry_run / input file: FAILED (exit 2, unknown option "--fix") - check_help_mentions_fix_and_dry_run: FAILED (--help has no --fix) Next: copy suggestion onto the CLI Diagnostic next to code.clone(), then render the help block / short parenthetical / JSON key, then check --fix. Open questions: none in-scope. Overlap/hash/symlink tests belong in the apply module; they cannot be driven from the compiler's \alpah diagnostic. Implementation-Agent: cursor-agent cursor-grok-4.6-high-fast Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * wip(#277): copy suggestion, render help, and check --fix CLI Diagnostic copies pipeline suggestion next to code.clone(). Full renderer prints `= help: did you mean \`\\alpha\`?` plus a `+` gutter over the replaced line; short appends `(did you mean \alpha?)`; JSON emits `suggestion` only when set. `check --fix [--dry-run]` applies non- overlapping back-to-front byte edits, refuses changed files (SHA-256), symlinks and paths outside the project root, writes atomically with mode preserved, then re-checks. Overlap/hash/symlink/mode covered by fix.rs unit tests (the compiler does not emit overlapping \alpah spans). Ran (CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-clifix): - --bin flashtex: test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out - full cargo test --manifest-path crates/flashtex-cli/Cargo.toml: unittests ok. 21 passed; --test cli FAILED. 18 passed; 1 failed (multi_file_project_resolves_inputs_from_the_project_root — same pre-existing control failure; all six new GH-277 tests passed) Next: no in-scope follow-up; lane is ready for daniel-parent review (no PR). Open questions: none. Known #308 fixture failure left untouched. Implementation-Agent: cursor-agent cursor-grok-4.6-high-fast Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * cli: --fix skips a suggestion without a full span instead of inserting it Review fix on the GH-277-cli-fix lane: collect_edits used `end_byte.unwrap_or(start)`, so a diagnostic with a start but no end (or an empty span) became an insertion at `start`. A compiler suggestion replaces its span, so both ends are now required and the span must be non-empty. cargo test -p flashtex-cli: bin 22/0 (+1: a_suggestion_without_a_full_span_is_not_turned_into_an_insertion); tests/cli 18 passed, 1 failed: multi_file_project_resolves_inputs_from_the_project_root, the same fixture-dependent failure as on the base 5b7a88b (replaced by #308). Implementation-Agent: Claude Code (daniel-parent, mac-m5pro-dq222) Commit-Executor: Claude Code (daniel-parent) Lane-Owner: daniel-parent (mac-m5pro-dq222) Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz * wip(#277): failing tests for symlink-parent writes and UTF-8 spans Adds the --fix safety matrix. Two tests fail on 6abfbec, as intended: - a_symlinked_parent_directory_is_refused: with root/link -> root/src and diagnostic path link/main.tex, apply reports issues=1, skipped=[], and rewrites src/main.tex. resolve_writable only lstats the leaf and canonicalises the parent, so the temp+rename follows the directory symlink. - a_span_on_a_utf8_multibyte_boundary_is_refused: start=1,end=3 on éé (c3 a9 c3 a9) with an empty replacement leaves a valid é; from_utf8 accepts it and the file is written. The rest of the matrix already passes: leaf symlink, ../ and absolute paths, CRLF preservation, back-to-front non-overlapping edits, overlapping skips, dry-run directory listing, JSON omitting the suggestion key (extracted diagnostic_json so the assertion is unconditional). Ran: - CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-clifix cargo test --manifest-path crates/flashtex-cli/Cargo.toml --bin flashtex -- a_symlinked_parent_directory_is_refused a_span_on_a_utf8_multibyte_boundary_is_refused test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 29 filtered out - same binary filter for the other new tests test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 24 filtered out Next: walk every path component with symlink_metadata and refuse non-char-boundary spans before splicing. Open questions: none. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * wip(#277): refuse writes through any symlink component resolve_writable walked only the leaf and canonicalised the parent, so a directory symlink (root/link -> root/src, diagnostic link/main.tex) still took the temp+rename to src/main.tex. It now lstats every component from the project root to the file and returns Skip::Symlink if any is a symlink. `..` and absolute paths are still rejected before the walk. The atomic temp+rename stays in that verified real directory. apply_edits_back_to_front also refuses a span whose start or end is not a UTF-8 char boundary, even when the spliced bytes happen to be valid UTF-8. Ran: - CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-clifix cargo test --manifest-path crates/flashtex-cli/Cargo.toml --bin flashtex -- a_symlinked_parent_directory_is_refused a_span_on_a_utf8_multibyte_boundary_is_refused a_symlink_target a_parent_escape crlf_bytes non_overlapping overlapping dry_run_creates json_omits a_file_changed test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 21 filtered out The two tests that failed on 83211e8 now pass. Next: git fetch origin && git merge origin/main, then an end-to-end test that an ambiguous typo (#444: igl/lph/igm) gets no suggestion and --fix writes nothing, while \\alpah is still fixed. Open questions: CLI links render-pipeline/vendor/compiler, not crates/compiler. If origin/main's #444 did not re-pin the vendor, the e2e test is a vendor-re-pin (out of scope) and will be reported. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * wip(#277): e2e that an ambiguous typo is not a --fix Adds check_fix_skips_an_ambiguous_typo_and_still_fixes_alpah using #444's inputs: `\igl` (tie between `\Bigl` and `\bigl`) must have no suggestion key and `--fix` must leave the file bytes unchanged; `\alpah` still rewrites to `\alpha`. This test FAILS on the current CLI: flashtex-cli links render-pipeline/vendor/compiler (PIN e44d591), which still uses list-order suggest_command. Observed JSON for `\igl`: "suggestion":"\\Bigl". crates/compiler on origin/main has #444 (closest_commands / unique match only), but a vendor re-pin is out of this lane's scope. Not done. Ran: - CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-clifix cargo test --manifest-path crates/flashtex-cli/Cargo.toml unittests: test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out tests/cli.rs: test result: FAILED. 20 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out (the one failure is check_fix_skips_an_ambiguous_typo_and_still_fixes_alpah) Next: stop. A vendor re-pin of compiler onto #444 is required before this e2e can pass; this lane must not do that re-pin. Open questions: who owns the vendor/compiler re-pin so `--fix` sees #444's unique-closest-match rule? Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]> * wip(#277): ignore the #444 e2e until vendor/compiler is re-pinned past #444 The CLI links vendor/compiler, which still picks list-order suggestions, so \\igl keeps a suggestion. The test is the contract for after the re-pin (#451 pins faa7d48, which predates #444). What was run: cargo test --manifest-path crates/flashtex-cli/Cargo.toml test result: ok. 31 passed; 0 failed; 0 ignored test result: ok. 20 passed; 0 failed; 1 ignored Implementation-Agent: daniel-parent (Claude Code, mac-m5pro-dq222) Commit-Executor: daniel-parent Lane-Owner: daniel-parent (mac-m5pro-dq222) Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz --------- Co-authored-by: Cursor <[email protected]>
Re-pins
crates/render-pipeline/vendor/compilerfrome44d5917tofaa7d484, and teaches the pipeline the three compiler APIs that moved in between — without which it does not compile.Why now: #437 landed
Block::Paragraph::leading_ptbehind an off-by-defaultpar-leadingfeature precisely because the pipeline could not see #436'sParsed::block_par_leading. That fix has been inert since it merged. It is enabled here and verified from a clean checkout:{\small …\par}in an 11pt article now sets 11.955 bp of leading against pdflatex's 11.955 bp (old pin: 13.549 bp, wrong by 1.594 bp per line).The three catch-up arms
Inline::HFill { leader }(compiler: \hrulefill and \dotfill fill their \hfill glue with a rule or dots (#319) #320) —\hrulefill/\dotfillare\leavevmode\leaders<box>\hfill\kern\z@, and both extras are load-bearing. Without\leavevmodea lone fill paragraph has glue but no box, and this pipeline drops such a paragraph together with the\vspacebefore it — that tookenumitem-worksheet3 pages → 2, a genuine 22/22 → 21/22 regression caught and fixed mid-lane. Without the trailing\kern\z@, TeX's §816 deletion of a paragraph's final glue eats the fill.min-hrulefill'sDate:went from 198.51 bp off the oracle to 0.55 bp. The leader ink itself is deliberately not painted (the pipeline has no leaders outsidetypeset/toc.rs, and paragraph-layout exposes no per-glue set width), so every occurrence carries a typedunsupported_inlinewarning naming the command.Diagnostic.help/.labels/.notes(compiler: structured diagnostics — optional labels, notes and help with a replacement edit; real help on the top messages (#277 parts 1+3) #346/compiler: structured diagnostics — optional labels, notes and help with a replacement edit (#277 parts 1+3) (rebase of #346) #389) — v2's schema isadditionalProperties: false, so new wire fields are the protocol owner's call.from_compilerfolds them onto fields that already carry the same meaning: label spans joinsources, texts become one-line[note: …]/[help: …]clauses,help.replacementback-fillssuggestion. A multi-line rustc-style form was tried first andtests/cli_e2e.rscaught it.Inline::Underline(compiler: underline family — ulem \uline and \sout, kernel text \underline, pdflatex-matched (#312, #330) #328/compiler: underline family — ulem\ulineand\sout, kernel text\underline, pdflatex-matched (#312, #330) (rebase of #328) #390) — render-pipeline: paint \uline, \sout and text \underline rules (#312, #330; stacked; needs vendor/compiler re-pin) #329 was viable and is wired in rather than reimplemented.Verification. All 562 files match
git ls-tree -r faa7d484 crates/compilerby mode and blob SHA;diff -r --exclude=PINagainst a freshgit archiveis empty.Gates. render-pipeline 295/0/2 (was 254), compiler 588/0/4, amsmath 59/59, tabular 106/106, HW1/HW2 3 pages / 0 errors / 0 font-FAILURE, corpus page counts 22/22.
Corpus. dx 85.74 → 85.61, dy 75.04 → 75.73, both 68.97 → 69.11, aligned 15073 → 15099. 21 of 22 fixtures bit-identical; all movement is
enumitem-worksheet(dy +34.14 pp) plus one word inunicode-accents. Its dx percentage falls 2.75 pp while the absolute count rises 157 → 159 — 25 more words entered the measurement and the new ones sit outside 0.5 bp because the leader rule is unpainted.Known, flagged not buried: this pin makes the compiler warn
unsupported_feature"packages amsmath are recognised but not implemented" wheree44d5917did not — proven to be the pin, not this change, by running both binaries on the same probe. It is user-visible on every amsmath document and claims "not implemented" about constructs this pipeline does set. Not suppressed here; it is a cross-crate disagreement and it needs its own fix.Other vendor directories were checked and none needed re-pinning.