Files
museion/docs/adr/0012-projects-archive-layout-and-type-frontmatter.md
T
AlexKucera 50eecc6dcb docs(spec): projects/archive layout + outline type — v1.1 spec (#106)
CONTEXT.md: Project, Outline, Archive adopted; Content Type rewritten
as frontmatter attribute; Post ID global across projects.
ADR-0012 (amends 0004), ADR-0013 (specializes 0010).

Wayfinder map #97 — spec assembly ticket #106.
2026-10-13 16:15:19 +02:00

1.7 KiB

0012 — Projects and Archive shape the Home; type is a frontmatter attribute

Amends ADR-0004: the folder-shaped Piece stands; the Home's root gains a Projects level and an Archive, and Content Type moves from folder-determiner to frontmatter.

Pieces live as per-piece folders under named Projects (projects/<name>/<piece-id>/post.md + research/ + assets/, lazily materialized on first write) instead of one flat posts/ root, with a default Project posts (an ordinary Project; New Piece lands in the selected Project, else the default — no project ask in the zero-friction flow). The slug namespace stays global across Projects: a Piece ID is the durable identity, so id-derived addressing (sessions, sidecars) never threads (project, id). Finished Projects and individual Pieces fold into archive/<name>/ (mirroring the Project shape) — Finder-visible, reversible; the Archive is a library destination, still openable and editable, just out of the active library. Content Type demotes to a frontmatter attribute (type: post | type: outline, absent reads as post); the Learnings partition keys off it. Existing dev posts move by hand — no migration machinery; the app never reads the old posts/ root again.

Consequences

  • The piece file is post.md for every Content Type, so every PostStore path (write, rename, trash, import, scan) stays single-track.
  • Import and New Piece stamp type: post alongside pass_state/origin — the same our-keys-win merge.
  • In-app moves: piece → project (Move to Project), piece → archive and back, project → archive and back. Project rename and cross-Home moves stay Finder-side.