Files
museion/docs/devlog/20261001-issue55-verdict-substrate-adr-0010_log.md
T
AlexKucera 2bd5169322 docs(adr): record verdict — native TextKit2 prose editor (ADR-0010)
Closes #55 on the map: TextKit2 mode B wins by the tie-breaker (calm >
effort > proven-elsewhere); variable heading sizes + paragraph spacing
required, reading toggle block-aware, anchor re-proof satisfied live.
CodeEdit exits Museion; Classis pin untouched. Paper-grade polish is
iterative practice, not a deferred phase. Spike artifacts stay on this
branch for reference.

[Generated by AI]
2026-10-01 15:52:17 +02:00

4.0 KiB
Raw Blame History

Wayfinder map #16 closed — editor substrate verdict + ADR-0010

Date: 2026-10-01 Type: issue Reference: #55 Verdict: substrate decision + ADR-0010 (map: #16)

Goal

Resolve the final ticket of wayfinder map #16: the live verdict session weighing the three editor spikes (A CodeEdit fork, B TextKit2, C SwiftUI blocks) and drafting ADR-0010.

What Was Done

  • Claimed #55, verified all three blockers (#52, #53, #54) closed with resolutions; verified the spike run.sh entry points and anchor-highlight wiring in spike/textkit2/ exist before the session.
  • Two grilling rounds with Alexander (live side-by-side of all three spikes): substrate+mode (Q1), v2 path (Q2), then typography stance, fork-sharing, reading renderer, anchor story (Q3–Q6).
  • Drafted docs/adr/0010-native-textkit2-prose-editor.md (Considered Options + Consequences per format).
  • Posted the #55 resolution comment (issuecomment-22384), closed #55.
  • Updated map #16: verdict appended to Decisions so far, Not-yet-specified emptied, re-scope of #19–#21 moved to Out of scope (downstream hand-off), map closed — frontier empty, way clear.
  • DOX pass: docs/AGENTS.md ADR range bumped 0001–0009 → 0001–0010.

Decisions & Rationale

Decision Rationale
Substrate: native NSTextView/TextKit2, mode B (styled source, dimmed syntax, reading toggle; zero editor dependencies) Tie-breaker calm > effort > everything else. A cannot express variable heading sizes or paragraph spacing (substrate limit) plus integration tax; C confirmed hands-on — bullet lists shatter into per-bullet blocks, no cross-block selection, per-block undo. B: editing native/free, presentation is an already-written attribute map.
Typography: variable heading sizes + paragraph spacing required "A must for a proper writing tool" — and natively expressible in B, so no compromise to record.
Fork-sharing: dissolved Museion takes no CodeEdit dependency; Classis keeps 0.15.8-helm untouched.
Reading toggle: block-aware rendering Blank-line split + per-paragraph inline parse + headings fonted by level; single-Text .full dump is the anti-pattern (flattens blocks).
Anchor story: re-proof satisfied Spike B proves exact-range quote highlight + scrollRangeToVisible + stale-alert with web-proto wording, live; 2.4 ms on PERF-3k.
Paper-grade polish: iterative practice, not a phase Alexander: tackled step by step whenever something needs more polish. Premise for un-deferring never materialized.

Gotchas & Fixes

Problem Root Cause Fix
Gitea issue-asset upload (POST /issues/55/assets) returns 500 HTML Server-side breakage on this instance (spike tickets show "assets":[] too — precedent) Dropped the attachment; ADR gist in the resolution comment, file in the working tree, referenced by path
patch hit the wrong path (scratch/docs/AGENTS.md) Terminal cwd had moved to scratch; patch used a relative path Re-ran patch with absolute path
tea-skill traps confirmed - Asset upload with -F file= also 500s; map body PATCH via -F body=@file works cleanly

Files Changed

File Change Summary
docs/adr/0010-native-textkit2-prose-editor.md NEW — the substrate ADR (uncommitted, on spike/editor-presentation working tree)
docs/AGENTS.md ADR range 0001–0009 → 0001–0010, added "prose editor substrate"
Gitea #55 Resolution comment + closed
Gitea #16 Decisions so far + Out of scope updated, map closed

Open Items & Next Steps

  • Alexander: commit ADR-0010 to main / merge the spike branch — his call, outside the map
  • Re-scope #19–#21 against ADR-0010 (downstream hand-off; #19 is now a TextKit2 integration)
  • Spike B styling flaws (left-anchored measure, tight first line) → production work in #20/#21

Log written by write-log skill