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.
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.mdfor every Content Type, so every PostStore path (write, rename, trash, import, scan) stays single-track. - Import and New Piece stamp
type: postalongsidepass_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.