ADR-0011: apex HTML reading pipeline #75

Closed
opened 2026-10-06 15:30:26 +02:00 by AlexKucera · 2 comments
Owner

Part of #20

Question

Write ADR-0011 (docs/adr/, domain-modeling format): reading renderer = apex (bundled MIT binary) → HTML → WKWebView + our CSS. The ADR records:

  • Supersedes ADR-0010's reading stance; its editing stance (TextKit2 mode B) stands.
  • The ADR-0001 boundary ruling: native-only governs the editing side; reading is presentation — WKWebView allowed (ruled in #73).
  • Bundling: prebuilt apex binary in app resources, signed + notarized; no source build in CI, no user install gate.
  • Deletion, not fallback: the TextKit reading machinery dies with the swap — fallbacks rot.

Inputs: the spike verdict. Write on a branch off main, pin branch @ <commit>.

[Generated by AI]

Part of #20 ## Question Write ADR-0011 (`docs/adr/`, domain-modeling format): reading renderer = apex (bundled MIT binary) → HTML → WKWebView + our CSS. The ADR records: - Supersedes ADR-0010's reading stance; its editing stance (TextKit2 mode B) stands. - The ADR-0001 boundary ruling: native-only governs the editing side; reading is presentation — WKWebView allowed (ruled in #73). - Bundling: prebuilt apex binary in app resources, signed + notarized; no source build in CI, no user install gate. - Deletion, not fallback: the TextKit reading machinery dies with the swap — fallbacks rot. Inputs: the spike verdict. Write on a branch off main, pin `branch @ <commit>`. [Generated by AI]
AlexKucera added the wayfinder:task label 2026-10-06 15:30:50 +02:00
AlexKucera changed title from Part of #20 to ADR-0011: apex HTML reading pipeline 2026-10-06 15:30:50 +02:00
AlexKucera added a new dependency 2026-10-06 15:30:59 +02:00
AlexKucera added a new dependency 2026-10-06 15:30:59 +02:00
Author
Owner

Spike verdict is in (link: #74 resolution): every mechanism fact ADR-0011 needs — required flags (--no-mixed-lists, --embed-images --base-dir), loadHTMLString-vs-loadFileURL paint cost (67 vs 255 ms), early handoff at stdout-EOF (~18 ms), single-WKWebView-no-remount, sentinel→data-source-line mapping with 0 mis-stamps. Kill-list empty; Alexander approved the feel. Reference implementation: spike/apexhtml/ on branch spike/apex-html @ 7afd1a0.

[Generated by AI]

Spike verdict is in (link: #74 resolution): every mechanism fact ADR-0011 needs — required flags (`--no-mixed-lists`, `--embed-images --base-dir`), loadHTMLString-vs-loadFileURL paint cost (67 vs 255 ms), early handoff at stdout-EOF (~18 ms), single-WKWebView-no-remount, sentinel→`data-source-line` mapping with 0 mis-stamps. Kill-list empty; Alexander approved the feel. Reference implementation: `spike/apexhtml/` on branch `spike/apex-html` @ 7afd1a0. [Generated by AI]
AlexKucera self-assigned this 2026-10-06 17:13:44 +02:00
Author
Owner

Resolution

ADR-0011 written: docs/adr/0011-apex-html-reading-pipeline.md on branch wayfinder/75-adr-0011 — ADR commit d505a95, tip (with DOX pass) b8a9ea7, off main (f2953ee). Not pushed, per the no-push rule.

Covers all four required records:

  • Supersession: ADR-0010's reading stance superseded (pointer line added to 0010 itself); its editing stance (TextKit2 mode B) stands.
  • ADR-0001 boundary: native-only governs the editing side; reading is presentation — WKWebView allowed (ruled in #73).
  • Bundling: prebuilt apex binary in app resources, signed + notarized; no CI source build, no user install gate.
  • Deletion, not fallback: TextKit reading machinery dies with the swap; fallbacks rot. Editing-side decoupling obligation lives in #77.

Spike facts folded in from #74 where they're load-bearing consequences (one-WKWebView-in-place, --no-mixed-lists required, loadHTMLString + base64 over loadFileURL 4× paint, stdout-EOF early handoff). DOX pass done: docs/AGENTS.md ADR range → 0011.

#76 (rebuild) is unblocked.

[Generated by AI]

## Resolution ADR-0011 written: `docs/adr/0011-apex-html-reading-pipeline.md` on branch `wayfinder/75-adr-0011` — ADR commit `d505a95`, tip (with DOX pass) `b8a9ea7`, off main (`f2953ee`). Not pushed, per the no-push rule. Covers all four required records: - **Supersession:** ADR-0010's reading stance superseded (pointer line added to 0010 itself); its editing stance (TextKit2 mode B) stands. - **ADR-0001 boundary:** native-only governs the editing side; reading is presentation — WKWebView allowed (ruled in #73). - **Bundling:** prebuilt apex binary in app resources, signed + notarized; no CI source build, no user install gate. - **Deletion, not fallback:** TextKit reading machinery dies with the swap; fallbacks rot. Editing-side decoupling obligation lives in #77. Spike facts folded in from #74 where they're load-bearing consequences (one-WKWebView-in-place, `--no-mixed-lists` required, `loadHTMLString` + base64 over `loadFileURL` 4× paint, stdout-EOF early handoff). DOX pass done: docs/AGENTS.md ADR range → 0011. #76 (rebuild) is unblocked. [Generated by AI]
Sign in to join this conversation.