Wayfinder map: M1 editor core — open, edit, autosave (S1.2) #19

Closed
opened 2026-08-28 18:33:07 +02:00 by AlexKucera · 0 comments
Owner

Destination

Every decision the #19 build needs is made — substrate-integration scope, autosave cadence, save-state indicator, cursor-state home, external-change rule — so a build session can implement the acceptance criteria below without deciding anything.

Notes

  • Plan-don't-do: this map produces decisions, not deliverables (#18 pattern). Execution stays with the build session.
  • Consult: ADR-0010 (TextKit2 mode B verdict), spike/textkit2/ (ProsePresenter + EditorPane — proven code on main), #18's decisions (#59 frontmatter stamp, #60 rename, #61 refresh model, #62 stub seam), PRD.md S1.2, CONTEXT.md (Post, Pass State, Home), Museion/PostsModel.swift + PostStore.swift (the landed lifecycle machinery this editor drops into).
  • Skills: swiftui + swift6-concurrency for the build session.
  • Perf gate rides as AC, not a decision: PERF-3k corpus (spike/prose/), attribute load ≤1.1 ms, no hitching while typing.
  • Tracker ops: docs/agents/issue-tracker.md (Wayfinding operations).
  • All five tickets were resolved live at charting time (the grilling happened in the charting session); they are closed and hold the detail.

Decisions so far

  • Grilling: scope split — the styled-source presenter lands in #19: full spike presenter (variable heading sizes, paragraph spacing, dimmed syntax) lifts into #19 — already written and perf-proven; a plain surface first would touch every editor file twice. #20 narrows to reading toggle + polish.
  • Grilling: autosave cadence & triggers: ~1 s idle-after-keystroke debounce; flush on selection change, window close, app quit; ⌘S stays immediate. Drafts exempt — first write remains explicit ⌘S (lazy folder, #62).
  • Grilling: save-state indicator: Saved → Saving… → Saved, plus Save failed in accent on write error; text stays, next debounce retries, error lands in the lastError strip. Never silent, never modal. The stub's Save button dies with the stub.
  • Grilling: cursor-state home: dotfile sidecar posts/<id>/.museion-state.json (selection + scroll), written on each flush, dies with the folder on Trash. Frontmatter stays #31's. Drafts skip it.
  • Grilling: external-change conflict rule: explicit alert "File on Disk changed. Reload? Yes/No." — Yes reloads, No keeps local (next autosave then overwrites, the writer's explicit choice). Never silent.

Not yet specified

Map complete: every child closed, no fog left — the editor core is fully specified; a build session can implement the acceptance criteria below without deciding anything.

Out of scope

  • Reading toggle + iterative presentation polish — #20 (re-scoped by the scope-split decision: the styled-source presenter itself lands in #19).
  • Focus mode, centered measure, pane collapse — #21.
  • Fix-card anchor highlight + stale-anchor alert in the real editor — M2 (#25); the spike proved the mechanics, integration waits for cards to exist.
  • Multi-writer merge UI — v1 is single-writer; the conflict rule above is the whole story.
  • iOS/iPadOS editor — v1 is macOS only.

Original acceptance criteria (PRD S1.2, editor-core slice)

  • Post opens into the chosen editing substrate
  • Debounced autosave; save-state dot accurate (saving / saved)
  • Content and cursor state survive app restart via plain files alone
  • Title (first non-empty line) conventions hold while editing

[Generated by AI]

## Destination Every decision the #19 build needs is made — substrate-integration scope, autosave cadence, save-state indicator, cursor-state home, external-change rule — so a build session can implement the acceptance criteria below without deciding anything. ## Notes - Plan-don't-do: this map produces decisions, not deliverables (#18 pattern). Execution stays with the build session. - Consult: ADR-0010 (TextKit2 mode B verdict), `spike/textkit2/` (ProsePresenter + EditorPane — proven code on main), #18's decisions (#59 frontmatter stamp, #60 rename, #61 refresh model, #62 stub seam), PRD.md S1.2, CONTEXT.md (Post, Pass State, Home), Museion/PostsModel.swift + PostStore.swift (the landed lifecycle machinery this editor drops into). - Skills: swiftui + swift6-concurrency for the build session. - Perf gate rides as AC, not a decision: PERF-3k corpus (`spike/prose/`), attribute load ≤1.1 ms, no hitching while typing. - Tracker ops: docs/agents/issue-tracker.md (Wayfinding operations). - All five tickets were resolved live at charting time (the grilling happened in the charting session); they are closed and hold the detail. ## Decisions so far - [Grilling: scope split — the styled-source presenter lands in #19](https://git.babylondreams.de/AlexKucera/Museion/issues/63): full spike presenter (variable heading sizes, paragraph spacing, dimmed syntax) lifts into #19 — already written and perf-proven; a plain surface first would touch every editor file twice. #20 narrows to reading toggle + polish. - [Grilling: autosave cadence & triggers](https://git.babylondreams.de/AlexKucera/Museion/issues/64): ~1 s idle-after-keystroke debounce; flush on selection change, window close, app quit; ⌘S stays immediate. Drafts exempt — first write remains explicit ⌘S (lazy folder, #62). - [Grilling: save-state indicator](https://git.babylondreams.de/AlexKucera/Museion/issues/65): Saved → Saving… → Saved, plus Save failed in accent on write error; text stays, next debounce retries, error lands in the lastError strip. Never silent, never modal. The stub's Save button dies with the stub. - [Grilling: cursor-state home](https://git.babylondreams.de/AlexKucera/Museion/issues/66): dotfile sidecar `posts/<id>/.museion-state.json` (selection + scroll), written on each flush, dies with the folder on Trash. Frontmatter stays #31's. Drafts skip it. - [Grilling: external-change conflict rule](https://git.babylondreams.de/AlexKucera/Museion/issues/67): explicit alert "File on Disk changed. Reload? Yes/No." — Yes reloads, No keeps local (next autosave then overwrites, the writer's explicit choice). Never silent. ## Not yet specified Map complete: every child closed, no fog left — the editor core is fully specified; a build session can implement the acceptance criteria below without deciding anything. ## Out of scope - Reading toggle + iterative presentation polish — #20 (re-scoped by the scope-split decision: the styled-source presenter itself lands in #19). - Focus mode, centered measure, pane collapse — #21. - Fix-card anchor highlight + stale-anchor alert in the real editor — M2 (#25); the spike proved the mechanics, integration waits for cards to exist. - Multi-writer merge UI — v1 is single-writer; the conflict rule above is the whole story. - iOS/iPadOS editor — v1 is macOS only. ## Original acceptance criteria (PRD S1.2, editor-core slice) - [ ] Post opens into the chosen editing substrate - [ ] Debounced autosave; save-state dot accurate (saving / saved) - [ ] Content and cursor state survive app restart via plain files alone - [ ] Title (first non-empty line) conventions hold while editing [Generated by AI]
AlexKucera added the ready-for-agent label 2026-08-28 18:33:07 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:41 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:42 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:42 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:43 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:46 +02:00
AlexKucera changed title from M1: Editor core — open, edit, autosave (S1.2) to Wayfinder map: M1 editor core — open, edit, autosave (S1.2) 2026-10-03 15:04:37 +02:00
AlexKucera added the wayfinder:map label 2026-10-03 15:04:37 +02:00
Sign in to join this conversation.