Repository navigation
vendor: re-pin compiler past #230, and switch package gating on - #263
Merged
Merged
Conversation
`crates/render-pipeline/vendor/compiler` -> `0bd9b0c2`, carrying #230 (a package-provided math symbol needs its package loaded, 225 names) and #198's `MathPackages`, which #230 is stacked on. **The `compiler-package-gating` feature is no longer optional.** #231 landed it off, saying the feature-off path "calls the one-argument form exactly as before" -- true against the old pin, but the re-pin removes the one-argument `text_builtins::text_kern` outright, so with the feature off the crate does not compile at all. A feature cannot change what a fixed vendor pin exposes. This is the same situation VENDORING.md already records for `amsmath-inline` after its re-pin, and it is resolved the same way: promoted to `default`. Two call sites the re-pin forces, both mechanical: - `tests/math_symbols.rs` passes `MathPackages::default()` to `math::parse_tokens`. Default is every package absent, which is right and strengthens the test: `\neq`, `\cdot`, `\perp` and `\notin` are kernel commands and must convert with nothing loaded. - Four fixtures used msam/msbm names without declaring the package and were relying on the bug #230 fixes. They now load `amssymb`, as a real document must: three in `tests/math_symbols.rs` (via a new `ams_doc` helper, so the other fixtures keep an empty preamble and do not silently gain `ams_symbol_fonts`, which would move family-3 designs and the msbm accents), and one `\mathbb{Q}` document in `tests/inline_math_breaks.rs`. **Blast radius measured, not assumed.** #230 changes what an undeclared `\mathbb`/`\varnothing` does, so the question is how many real documents move: **none.** All 10 real-world corpus fixtures are identical to a control checkout in status, pages and full diagnostic sets, and HW1/HW2 are unchanged -- real documents that use these symbols already load the package. The only casualties were the four synthetic fixtures above. #230's own gates never covered the render-pipeline suite (it reported compiler, amsmath, amssymb and HW only), which is why these four surfaced here. Gates, NixOS linux-primary, bundled apps/mac/Fonts, FLASHTEX_TFM_DIRS = public/lm:jknappen/ec:public/amsfonts/symbols. Zero **font-failure** diagnostics (`font_unavailable`, `required_metrics_unavailable`, `ec_metrics_unavailable`, `font_outline_substituted`, `tfm_missing`, `math_font_unavailable`) -- not zero diagnostics of any kind, since every corpus fixture legitimately reports `math_resource_profile`: | gate | control (main 0bd9b0c) | this commit | |---|---|---| | render-pipeline --release --locked --no-fail-fast | 205 passed, 0 failed | 205 passed, 0 failed | | render-pipeline failing SET | empty | empty (identical) | | flashtex-cli | 18 passed, 0 failed | 18 passed, 0 failed | | amsmath corpus | 59/59 within 0.5 bp | 59/59 | | amssymb corpus | 38/39 | 38/39 (32-braces-narrow fails at base too) | | HW1 / HW2 | 3 pages, 0 errors, 0 overfull | same | | real-world corpus (10 fixtures) | status/pages/diagnostic sets | identical to control | Unblocks: #212 (its six amsfonts names now have a `provider` to gate on). Implementation-Agent: Claude Opus 5 (integration lane, linux-primary / NixOS) Commit-Executor: Claude Opus 5 via Claude Code (direct-agent Git execution under the observed-Cursor-limit user override) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the second re-pin on the integration list.
vendor/compiler→0bd9b0c2, carrying #230 (225 package-provided math symbols now need their package) and #198'sMathPackages, which #230 is stacked on.The feature is not optional after the re-pin
#231 landed
compiler-package-gatingoff, on the grounds that the feature-off path "calls the one-argument form exactly as before". That is true against the old pin. The re-pin removes the one-argumenttext_builtins::text_kernoutright, so with the feature off the crate does not compile at all — a feature cannot change what a fixed vendor pin exposes.This is the same situation
VENDORING.mdalready records foramsmath-inlineafter its re-pin, and it is resolved the same way: promoted todefault.Blast radius — measured, not assumed
#230 changes what an undeclared
\mathbb/\varnothingdoes, so the real question is how many documents move. None:Real documents that use these symbols already load the package. The only casualties were four synthetic fixtures that used msam/msbm names without declaring them — they were relying on the bug #230 fixes. They now load
amssymb, as a real document must, via a newams_dochelper so the other fixtures keep an empty preamble and do not silently gainams_symbol_fonts(which would move family-3 designs and the msbm accents).Worth flagging: #230's own gates never covered the render-pipeline suite — it reported compiler, amsmath, amssymb and HW only. That is why these four surfaced here rather than there.
Gates
Zero font-failure diagnostics (
font_unavailable,required_metrics_unavailable,ec_metrics_unavailable,font_outline_substituted,tfm_missing,math_font_unavailable) — not zero diagnostics of any kind, since every corpus fixture legitimately reportsmath_resource_profile.0bd9b0c2)--release --locked --no-fail-fastflashtex-cliUnblocks #212 — its six amsfonts names now have a
providerto gate on.Implementation-Agent: Claude Opus 5 (integration lane, linux-primary / NixOS)