Migration: existing posts/ into the project world #103
Notifications
Due Date
No due date set.
Blocks
#106 Spec assembly: glossary + ADR updates, build split, ready-for-agent
AlexKucera/museion
Reference: AlexKucera/museion#103
Reference in new issue
Block a user
Part of #97.
Question
How does existing content move into the project world? Today the Home is
posts/<id>/flat; the ruling saysprojects/<name>/<piece-id>/. Decide: does every existing post land in a default project (and what is it named — Journal? Misc? Unfiled?) or does the scan read both layouts during a transition? Folders moved at first launch, lazily on open, or a one-shot migration with the old layout kept readable? What happens to the FSEvents watcher roots (posts/→projects/+archive/) mid-transition? Rule the migration story and the default-project semantics.[Generated by AI]
Resolution
No migration machinery. The old layout holds 4 dev-only test posts; the move to
projects/is manual, by hand, when the build lands. The app never readsposts/again —Post.scanand the FSEvents watcher root switch toprojects/(+archive/, #99);bind(home:)createsprojects/where it today createsposts/.Default project:
posts. An ordinary project — renamable, archivable, lazily materialized — and the standing default target: New Post keeps today's zero-friction flow (no project ask). Writer-visible behavior unchanged; only the path deepens toprojects/posts/<id>/.Slug namespace stays global (the #60 machinery carries over):
availableSlugenumeratesprojects/*/; a Post ID remains the durable identity, so all id-derived addressing (sessions, sidecars) is untouched. Cross-projectintro/collisions are a non-problem next to threading(project, id)through every path.Finder is the v1 move/rename surface for projects and pieces — folder-shaped truth, #99's Finder-visible posture; the debounced full rescan (#61) reconciles any Finder-side move or rename. No in-app move/rename UI in this map's build.
Leftovers: nothing to handle — no code touches the old layout; the scan already skips non-post dirs wherever they sit.
[Generated by AI]