Build: land the apex HTML reading surface #76
Notifications
Due Date
No due date set.
Blocks
Depends on
#72 Grilling: calibration pass — rule calm or not
AlexKucera/museion
#78 Grilling: re-calibration — polished reading surface, rule calm or not
AlexKucera/museion
#75 ADR-0011: apex HTML reading pipeline
AlexKucera/museion
Reference: AlexKucera/museion#76
Reference in new issue
Block a user
Part of #20
Question
Execution (the map's bounded override): swap the reading surface to the apex HTML pipeline per ADR-0011.
data-source-linestamp (the paragraph map for click-to-edit and scroll-sync).Decoration, table/quote/HR content blocks, canvasdraw,framesForRange,ImagePopoverView— the known stale-flow defect dies here, unfixed by design.Branch
wayfinder/<this ticket>.xcodebuildbuild + test green; kitchen-sink + PERF-3k render correct.[Generated by AI]
Part of #20to Build: land the apex HTML reading surfaceResolution
Landed on
wayfinder/76-apex-html-reading@f1c915f(local, unpushed — off the #75 ADR branch, which itself carries the merge of #71's landing; ADR-0011 rides along into this branch's history).What landed
ReadingPresenter.swift(rewritten, −961/+501 lines net with the surface):stampSource(blank-line chunker,<!--S:N-->sentinels) →apexRender(bundled binary,-t html --no-mixed-lists --embed-images [--base-dir]) →stampHTML(regex restamp todata-source-line) →page(for:postFolder:)assembling the shell withstyleSheet()— ProseTypography slots + flow knobs as CSS custom properties (family names, not member PS names; weight rides CSS).blocks(for:)provides the line↔UTF-16-range map for the #68 click→edit and scroll-sync contract. Fallback = escaped source in a<pre>(#69 rule). Footnotes now render natively (apex upgrade over #69's fallback decision — corpus has none).ReadingSurface.swift(rewritten):ReadingStateBox/CaretHintBoxkept; the canvas is one WKWebView reloaded in place (keyed render on generation+text+flowKey, never per keystroke; remount-free per #74).probeJSmaps click→edit intent at the clicked block, ⌘-click→NSWorkspace, scroll→top-visible-line;decidePolicyForallows only our own about:blank main-frame load; entry-caret scroll lands afterdidFinish; defaults observer reloads on flow-key change.ReadingCanvasView,Decoration, table/quote/HR content blocks,framesForRange,ImagePopoverView.Museion/Resources/apex— the fs-sync group ships it into Resources automatically (verified in the built .app; no pbxproj edit needed). Binary resolution: bundle →APEX_PATH→ Homebrew (dev fallback). 1.8 MB.blocks(for:)map (monotonic, 1-based, exact chunk offsets), pipeline tests running the REAL bundled binary (headings/inline,1. 1. 1.renumber, mixed-lists split, constructs with exact stamps, base64 embed, native footnotes), fallback, stylesheet vars. 94 tests green (xcodebuild test), swiftlint 0 errors on touched files.Museion/AGENTS.mdreading-mode section rewritten for the pipeline; "no web-editor embedding" Work Guidance line rescoped to the editing side (ADR-0011 reading-is-presentation ruling);MuseionTests/AGENTS.mdtest description updated.Verified live (app launched, driven via AX + screenshots)
Deviations / notes
<figure class="table-figure">with a stray<figcaption>(link text when a link follows a table) — CSS hides figcaption (spike behavior, kept).#72 (calibration) unblocked — calibrates the HTML surface.
[Generated by AI]