Skip to content

vendor: re-pin compiler past #230, and switch package gating on - #263

Merged
GoKubar merged 1 commit into
mainfrom
integ/vendor-repin-compiler
Sep 14, 2026
Merged

GoKubar merged 1 commit into
mainfrom
integ/vendor-repin-compiler

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

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's MathPackages, which #230 is stacked on.

The feature is not optional after the re-pin

#231 landed compiler-package-gating off, 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-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.

Blast radius — measured, not assumed

#230 changes what an undeclared \mathbb/\varnothing does, so the real question is how many documents move. None:

  • all 10 real-world corpus fixtures identical to a control checkout in status, pages and full diagnostic sets;
  • HW1/HW2 unchanged.

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 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).

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 reports math_resource_profile.

gate control (main 0bd9b0c2) this branch
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/full 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)

`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
@GoKubar
GoKubar merged commit b5dcc8c into main Sep 14, 2026
18 of 20 checks passed
@GoKubar
GoKubar deleted the integ/vendor-repin-compiler branch September 16, 2026 04:17
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.

1 participant