Skip to content

render-pipeline: packages the pipeline sets no longer come back as "not implemented" - #241

Merged
GoKubar merged 1 commit into
mainfrom
agent/mac-render-pipeline/package-supersession
Sep 14, 2026
Merged

GoKubar merged 1 commit into
mainfrom
agent/mac-render-pipeline/package-supersession

Conversation

@jay3332

@jay3332 jay3332 commented Sep 14, 2026

Copy link
Copy Markdown
Member

flashtex check HW1.tex reported packages amsmath, amssymb are recognised but not implemented and packages microtype are recognised but not implemented on a document whose align displays, \mathbb and protrusion it had just typeset. The compiler emits those from parser::package_matches_layout, which only knows the compiler's own layout; the render pipeline sets amsmath/amssymb/amsfonts, lmodern, microtype, geometry, graphicx and tikz itself.

New crates/render-pipeline/src/packages.rs:

  • supersede_message strips those names from the compiler's message, keeping its exact phrasing (the Mac app's diagnostic categories key off it) and dropping the diagnostic when nothing is left.
  • preamble_command_superseded drops \pagestyle is not supported in the document preamble for a document with a \documentclass, because DocumentSetup::from_preamble reads that command.

Wired into render beside the existing TikZ and contents-list supersessions. No compiler change (so no collision with #230/#231); flashtex-compiler on its own still reports them, and docs/user/compiler.md says so after the generated package table.

Gates (fonts: FLASHTEX_FONT_DIRS=apps/mac/Fonts, FLASHTEX_TFM_DIRS=lm:ec:amsfonts/symbols):

gate result
render-pipeline cargo test --release --no-fail-fast 39 result lines, 0 failed (unchanged from main)
HW1 via CLI 3 pages, 0 errors, 6 → 4 warnings
HW2 via CLI 3 pages, 0 errors, 9 → 7 warnings
cv 1 page, 1 error → 0 errors (\pagestyle{empty})
other real-world fixtures page counts and error counts unchanged

Remaining corpus errors are compiler gaps, filed separately: letter class (\signature/\address/\opening…), \c/\v text accents, \maketitle without \author.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn

…s "not implemented"

`flashtex check HW1.tex` reported `packages amsmath, amssymb are recognised
but not implemented` and `packages microtype are recognised but not
implemented` on a document whose align displays, \mathbb and protrusion
it had just typeset. The compiler emits those from
`parser::package_matches_layout`, which only knows what the compiler's own
layout does; the render pipeline sets amsmath/amssymb/amsfonts (mathtex,
style::cmex_designs), lmodern, microtype (adapter::microtype_setup),
geometry (flashtex_class_geometry through document_setup), graphicx
(floats::ImageCache) and tikz (tikz) itself.

New `packages` module: `supersede_message` strips those names from the
compiler's message, keeping its exact phrasing (the Mac app's diagnostic
categories key off it) and dropping the diagnostic when nothing is left;
`preamble_command_superseded` drops `\pagestyle is not supported in the
document preamble` for a document with a \documentclass, because
DocumentSetup::from_preamble reads that command. Wired into `render` next
to the existing TikZ and contents-list supersessions.

Real-world corpus through the CLI, before -> after: HW1 6 -> 4 warnings,
HW2 9 -> 7, cv 1 error -> 0 errors; page counts unchanged everywhere.
render-pipeline `cargo test --release --no-fail-fast` with the bundled
font dirs: every binary 0 failed (39 result lines), unchanged from main.
docs/user/compiler.md notes the pipeline-level silence after the
generated package table.

Implementation-Agent: Claude Code (mac-claude-a)
Commit-Executor: git via Claude Code
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
@GoKubar
GoKubar merged commit e22c1bf into main Sep 14, 2026
20 checks passed
GoKubar pushed a commit that referenced this pull request Sep 15, 2026
…ositions, new compiler lanes (#246)

The board still said "main ad71b64" with FT-050..055 as the queue. It now
carries the FT-060..067 outcomes, the two standing performance programs
(FT-070 Kabir, FT-071 Mac), the dispositions agreed on issue #2 for the
53 open PRs (Kabir's 2026-09-14T00:10Z triage), the merge order #233 ->
#241 -> #230 -> #231 -> #232, and the three unclaimed compiler lanes
#242/#243/#244 that close the last real-world corpus errors. Historical
rows are kept below.

Implementation-Agent: Claude Code (mac-claude-a)
Commit-Executor: git via Claude Code

Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@GoKubar
GoKubar deleted the agent/mac-render-pipeline/package-supersession 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.

2 participants