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]
This commit is contained in:
AlexKucera committed 2026-10-01 15:52:17 +02:00
1 parent 986f435762
commit 2bd5169322
5 files changed
+73 -1

No files matched your search

@@ -0,0 +1,56 @@
# Wayfinder map #16 closed — editor substrate verdict + ADR-0010
> **Date:** 2026-10-01
> **Type:** issue
> **Reference:** [#55 Verdict: substrate decision + ADR-0010](https://git.babylondreams.de/AlexKucera/Museion/issues/55) (map: [#16](https://git.babylondreams.de/AlexKucera/Museion/issues/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*
+1
View File
@@ -5,6 +5,7 @@ Complete history of session logs in this directory, newest first. One-line summa
<!-- write-log: full-index -->
| Date | Type | File | Summary |
|------|------|------|---------|
| 2026-10-01 | issue | [20261001-issue55-verdict-substrate-adr-0010_log.md](20261001-issue55-verdict-substrate-adr-0010_log.md) | #55 + map #16 closed: TextKit2 mode B wins, ADR-0010 drafted, typography/rendering stances locked |
| 2026-09-16 | issue | [20260916-issue14-acp-bridge-s2-2_log.md](20260916-issue14-acp-bridge-s2-2_log.md) | #14 M0 ACP bridge: NDJSON JSON-RPC client, mentor pane, fix-card round-trip, crash restart — 37 tests green |
| 2026-09-05 | issue | [20260905-issue48-provisioning-failure-alert-retry-ux_log.md](20260905-issue48-provisioning-failure-alert-retry-ux_log.md) | #48 shipped: failure card with retry/Not-Now, traversal guard, temp sweep — 30 tests green |
| 2026-09-03 | issue | [20260903-issue42-engine-gate-s2-1_log.md](20260903-issue42-engine-gate-s2-1_log.md) | Engine gate S2.1 shipped: six-path probe, blocking sheet, state.json, About mirror — 12 tests green |