Wayfinder map: M1 Import & external markdown (S1.1) #22
Notifications
Due Date
No due date set.
Depends on
#18 M1: Post lifecycle (S1.1)
AlexKucera/museion
Reference: AlexKucera/museion#22
Reference in new issue
Block a user
Destination
Import & external markdown (#22, PRD S1.1) built and verified against the acceptance criteria below — the map doubles as the build ticket (ready-for-agent stays).
Notes
Museion/AGENTS.md(PostStore/PostsModel/EditorSession contracts), #18 devlog.CommandMenu("File")doubles the system File menu — insert Open…/Import… viaCommandGroup(after: .newItem).Decisions so far
.md/.markdown) and drag-onto-window; CommandGroup(after: .newItem), never CommandMenu("File") (#84 trap).pass_state: First Draft+origin: <chosen>set/overwritten (our two keys win); Title from first non-empty body line; untitled/collision machinery as #60..md/.markdownonly; files inside the Home open fine as external; quit flushes the external buffer; vanished external file = editable buffer + save failure in error strip; no mtime preservation.Not yet specified
Out of scope
.txt, others) — panels allow.md/.markdownonly.Original acceptance criteria (PRD S1.1, import & external slice)
[Generated by AI]
M1: Import & external markdown (S1.1)to Wayfinder map: M1 Import & external markdown (S1.1)Build session (2026-10-12) — the S1.1 import & external slice is implemented and green locally on main @
683d697working tree (commit awaits authorization).What landed
SessionTarget(post | externalFile) inEditorSession— one session machinery, two write targets; external saves in place, verbatim, no cursor sidecar (#93)PostStore.importFile— copy never move, #95 frontmatter merge (external keys verbatim, pass_state/origin win, absent keys inserted, bare file → fresh #59 block), #60 collision suffixes, sharedmaterializelazy-folder pathPostsModel— one external buffer at a time, transient per launch; opening a Post/draft flushes and dismisses it (#92); per-file watcher reuses the #67 conflict checkCommandGroup(after: .newItem)— #84 trap dodged), drag-onto-window, ONE Origin ask per batch (writer default / ai) (#94)Verification
ImportExternalTests(5 tests) covers the #95 merge, collisions, untitled, save-in-place/no-sidecar, and the foreign-write conflictAcceptance criteria
Closing the map awaits Alexander's live pass (launch, open, import, feel it) — same posture as #88's calibration gate. Devlog: docs/devlog/20261012-issue22-import-external_log.md
[Generated by AI]
Close-out: HITL approved — live pass done. The four acceptance criteria stand as verified in the build comment; the audit round (CRLF/BOM normalization, unreadable-file guard, web-link/symlink guards, reviewer trims) is in the devlog. Map closed with zero open children (#91–#96 closed at charting). The deferred 'Import this open file' button stays in Not-yet-specified — graduate only if it itches in use.
[Generated by AI]