Verdict: substrate decision + ADR-0010 #55
Notifications
Due Date
No due date set.
Depends on
#53 Spike B: NSTextView/TextKit2 with custom attributes
AlexKucera/museion
#54 Spike C: SwiftUI block editor (live preview)
AlexKucera/museion
Reference: AlexKucera/museion#55
Reference in new issue
Block a user
Part of #16
Blocked by: 52, 53, 54
Question
Verdict and ADR-0010. Side-by-side comparison of the three spikes on the same prose, then the decisions, grilled with Alexander live:
PERF-3k.mdis pass/fail, not a ranking; "already proven in Classis" weighs heavy.0.15.8-helm; revisit only if the spike showed prose styling needs that would destabilize Classis.Resolution: ADR-0010 drafted per
docs/AGENTS.mdformat (linked as asset), decision gist in the resolution comment. Committing it to main stays outside the map.[Generated by AI]
Resolution — verdict session with Alexander (live side-by-side)
Substrate + mode: native NSTextView/TextKit2, mode B — styled source, dimmed syntax, reading toggle; zero third-party editor dependency. Alexander ran all three spikes side by side: "all three work for basic writing. C feels nice, but is limited to blocks. I was not able to create a bullet list, because each bullet becomes its own block." C's interaction ceiling confirmed hands-on (fresh evidence beyond the spike's documented limits); A loses on the top criterion — the substrate cannot reach typographic calm — plus its integration tax (@preconcurrency, sRGB crashes, ghost-doubling). Tie-breaker
calm > effort > everything elsedecides it for B.Typography stance: variable heading sizes + real paragraph spacing — required, and natively expressible. "That's a must for a proper writing tool." Spike flaws (left-anchored measure, tight first line) are production styling work for #20/#21, not substrate limits.
Fork-sharing: dissolved by the substrate decision. Museion takes no CodeEdit dependency at all; Classis keeps its
0.15.8-helmpin, untouched.Reading-toggle renderer: block-aware. Blank-line split, per-paragraph inline parse, headings fonted by level; the monolithic single-
Text.fulldump is the recorded anti-pattern. Both modes share the same line-kind model — one parser, two presentations.Anchor story: re-proof condition satisfied live in the winner. Spike B proves the exact-range quote highlight (
backgroundColorattribute +scrollRangeToVisible,EditorPane.applyAnchor), whitespace-tolerant quote matching, and the stale-anchor alert with the exact web-proto wording — screenshots inspike/textkit2/assets/spikeB-*. PERF-3k: 2.4 ms anchor search, ≤1.1 ms full-doc attribute load.v2 upgrade path: Paper-grade polish is iterative practice, applied step by step whenever the surface feels short of calm — not a deferred phase, so nothing to un-defer.
ADR-0010 drafted:
docs/adr/0010-native-textkit2-prose-editor.md(working tree onspike/editor-presentation, uncommitted — committing to main is Alexander's call, outside the map).[Generated by AI]