Repository navigation
Conversation
This was referenced Sep 15, 2026
Merged
GoKubar
changed the base branch from
agent/daniel-muse-lead/vskip-glue
to
main
September 15, 2026 16:07
d-q222
force-pushed
the
agent/daniel-muse-lead/vskip-glue-pipeline
branch
from
September 16, 2026 05:21
6e6f4a9 to
99ff88c
Compare
d-q222
added a commit
that referenced
this pull request
Sep 16, 2026
d-q222
added a commit
that referenced
this pull request
Sep 16, 2026
…KIP-GLUE-STRETCH slice 2) Adapter only: accumulate CBlock::VSpace stretch_pt/shrink_pt through pending_vspace into Unit/Block::Paragraph vspace_flex, alongside the existing natural sum; the gap re-read now parses plus/minus glue into the existing style::Skip. Stops at the flat Block shapes (Rule, Heading, Picture, LongTable) and their rigid typeset consumption. Draft: needs vendor/compiler re-pin past #606 for the new fields. Implementation-Agent: muse-spark-1.3-contributor
d-q222
force-pushed
the
agent/daniel-muse-lead/vskip-glue-pipeline
branch
from
September 17, 2026 07:16
99ff88c to
cd02378
Compare
Contributor
Author
|
daniel-muse-lead: rebased onto current
Ready to merge whenever the mac-app CI baseline issue clears. |
This was referenced Sep 17, 2026
Contributor
Author
|
Closing as superseded: main already threads VSpace stretch/shrink via vspace_flex/addvspace_flex in render-pipeline/src/abstractenv.rs. Found during 2026-09-21 daniel-muse-lead reconciliation (see #2). If a real gap remains after this, please reopen or file a fresh issue with the specific missing case — happy to pick it up as a new Muse slice. 🤖 daniel-muse-lead (Claude Sonnet, Muse Contributor supervisor) |
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.
Scope
Slice 2 of
GH-VSKIP-GLUE-STRETCH. Draft — needs #606 to merge/re-pin first. Stacked on #606 (this PR's base branch):crates/render-pipelinestill links the FROZENcrates/render-pipeline/vendor/compilercopy, which does not yet have #606'sstretch_pt/shrink_ptfields onBlock::VSpace.cargo check -p flashtex-render-pipelineon this commit fails today with exactly 7E0026/E0559errors, all namingstretch_pt/shrink_ptand nothing else — expected until the vendor is re-pinned past #606. Nothing undervendor/was touched.Adapter-only (
crates/render-pipeline/src/adapter.rs), per daniel-parent's explicit scope limit: stretch/shrink are threaded throughBlock::VSpace→style::Skip, reusing the existingcrate::style::Skip { natural, stretch, shrink }struct — no new type invented, and no changes topagebuild.rsortypeset/floatpage.rs(daniel-parent's own stacked drafts #569/#584/#599 own that area).split_at_page_breaks: newpending_vspace_flex: (f64, f64)beside the existing flatpending_vspace; theCBlock::VSpace { pt, stretch_pt, shrink_pt }arm now accumulates natural + rubber together.vspace_flexinitializer (previously hardcoded(0.0, 0.0)) starts from the pending pair, flowing intoBlock::Paragraph::vspace_flex, whichtypeset.rs::build_paragraphalready consumes viaadd_skipinto the(natural, stretch, shrink)before-skip tuple — no consumer-side change needed.vspace_in_gap(the class-sizeem/exre-read that can supersede the compiler's own sum) now returnsOption<style::Skip>: a newparse_glue_inparses a bare dimension or one withplus/minus <dimen>in either order (finite only, mirroring the compiler side in compiler: carry rubber lengths on Block::VSpace (GH-VSKIP-GLUE-STRETCH slice 1) #606); unparseable input still yieldsNoneso the compiler's own sum stands rather than guessing.lower_blockssynthesizes rigid letter-classVSpaces withstretch_pt: 0.0, shrink_pt: 0.0(class-specified fixed gaps, correctly rigid).same_flow's display-rejoin guard now also requiresunit.vspace_flex == (0.0, 0.0), so\vspace{0pt plus 2pt}is not silently merged away along with its stretch.Where the flat representation stops (deliberately untouched, per scope — see Not done):
Block::Heading/Rule/Picture/LongTableonly carryvspace_before: f64, andtypeset.rs::add_vspaceconsumes them rigidly. The flex carried this far into aUnitis dropped atBlock::Ruleconstruction (a code comment marks exactly where). Final page-stretch consumption lives inpagebuild.rs.Overlap check
coord.py claims— held only by daniel-muse-lead. Confirmed no touch topagebuild.rs,typeset/floatpage.rs, orvendor/via merge-base diff.Test results
New
crates/render-pipeline/tests/vskip_glue.rs(3 tests, parse +adapt, no fonts needed):\vspace{12pt plus 4pt minus 2pt}→(12.0, (4.0, 2.0));\bigskip→(12.0, (4.0, 4.0))(exercises theCBlock::VSpaceaccumulation arm directly, since no literal\vspacestands in its gap); bare\vspace{6pt}→ rigid(6.0, (0.0, 0.0)).Verified via a scratch vendor swap (symlinked the live
crates/compilerfrom this same branch overvendor/compiler, built, tested, then discarded entirely — the real commit here touches onlyadapter.rsand the new test file):Inline::LineBreak'sskip_ptfield, gated behind thelinebreak-skipfeature but with one direct literal atadapter.rs:947the feature helper doesn't cover) — independently reproduced by the supervisor with the exact same 2 errors, fixed the same way (one via--features linebreak-skip, one via the direct literal), confirmed unrelated to this slice (aLineBreakfield, notVSpace).CARGO_TARGET_DIR): disabled theCBlock::VSpaceaccumulation arm →bigskip_carries_its_latex_glueFAILED (left: (12.0, (0.0, 0.0)), right: (12.0, (4.0, 4.0))), the other two tests unaffected (they exercise the separatevspace_in_gapre-read path) — restored → all 3 pass. Matches the lane's own reported mutation result exactly.crates/render-pipelinelib suite in scratch: 137 passed, 0 failed, no new warnings.flashtexCLI on a doc with\vspace{12pt plus 4pt minus 2pt}+\bigskipcompiled clean (ok, 1 page, 0 errors, 0 warnings), with all three paragraph tops identical to a rigid\vspace{12pt}control build — natural layout preserved exactly, rubber correctly inert on a single page with no page-break pressure.Not done
Extending flex carriage to
Block::Rule/Heading/Picture/LongTable (needs aBlock-shape change plustypeset.rs-consumption changes in daniel-parent's stacked-draft territory) — posted as a question rather than worked around, per the slice-2 scope instruction. Also noted for the eventual re-pin:adapter.rs:947's directInline::LineBreakliteral will needskip_pt: None(or routing through the existingline_break_inlinehelper) — unrelated pre-existing drift, flagged so it isn't mistaken for fallout of this PR.🤖 Generated with Claude Code
Update (rebase onto current main)
Slice 1 (#606) merged into live
crates/compileron main, but therender-pipelinevendor pin (crates/render-pipeline/vendor/compiler) stillpredates it — same CLI-gate situation as before, just moved: rebased this
branch's single commit directly onto current
main(clean, no conflicts,3a098989dropped as already-upstream via #606). Re-verified with a freshscratch vendor swap: applied #606's real diff onto a throwaway copy of the
vendor pin (not a stub — the actual
stretch_pt/shrink_ptparsing logic),built and ran
tests/vskip_glue.rsfor real: 3/3 pass(
bigskip_carries_its_latex_glue,plain_vspace_stays_rigid,vspace_plus_minus_reaches_paragraph_flex). Scratch copy discardedafterward; no
vendor/changes committed. Still draft — still needs the realvendor re-pin to land in the shipped
flashtex-clibinary; base is nowmainand the branch is currentlyMERGEABLE.🤖 Generated with Claude Code