docs: synthesize best-of-both from the two grill sessions

Merge the decisions of both design-grill commits into one coherent
PRD/CONTEXT/ADR set. Session agreements (main 4616dd8, pi 87a6016)
reconciled per the merge grill session:

- G5 content layout: Museion Home root (pi) + flat posts/<post id>/
  post.md shape with lazy creation and first-save slug (main);
  explicit Rename moves the folder; Import copies (ADR-0004)
- G6 writing tools: in-app Swift MCP server museion-tools (main,
  ADR-0008) with the minimal surface query_learnings +
  submit_fix_cards, Museion-driven passes, native stats (pi)
- G7 learnings: <home>/learnings/<type>/, one file per learning
  (main), engine owns nothing, fresh start (pi) (ADR-0005)
- G8 decay: 10-pass output clock (pi) with per-learning
  resurface_after frontmatter override (main)
- G9 trust: pi's enumerated defaults incl. never-do list
- fix-card transport stays typed + quote-anchored (ADR-0006);
  state ownership / engine swap pinned (ADR-0007)

ADRs renumbered 0004-0008 (both sessions had claimed 0004/0005);
audit-trail G-entries rewritten as merged records G5-G11;
CONTEXT.md glossary unioned (26 terms) with Project/Post Type
dropped in favor of Home/Content Type; MEMORY.md import struck
(verified: nothing to import); stale 'project' wording removed
from M1 and S8.2.
This commit is contained in:
AlexKucera committed 2026-08-27 14:42:38 +02:00
1 parent e466870303
commit 18f0ca6444
12 files changed
+57 -43

No files matched your search

@@ -1,3 +0,0 @@
# Critique memory lives in the project, not the Hermes profile
Museion keeps two memory systems deliberately separate. The mentor's own automated memory lives inside the `museion` Hermes profile, is owned by Hermes, and is never read or written by Museion. The writer's deliberate learnings are plain markdown in the project's `learnings/` folder — git-diffable, portable with the body of work, importable from the hand-maintained MEMORY.md. The profile holds *how* to critique (skills, config); the project holds *what* was learned. Consequence: G4 profile snapshots do not back up learnings — git does; moving machines takes both.
@@ -0,0 +1,3 @@
# 0004 — Content is folder-shaped under one Museion Home
Content lives as per-post folders (`posts/<post id>/post.md` + `research/` + `assets/`, created lazily on first write) under a single Museion Home (`~/Museion` by default, editable in Settings; repoint-only — Museion never moves content), not as loose files in an opened project folder. The post id is the slug of the first line, set at first save; explicit Rename moves the folder (the file is always `post.md`). The Scrivener-shaped unit buys colocated assets and a growth path to long-form types at the cost of a post no longer being one file; external markdown is edited as-is, and Import (copy, never move) makes it a Post.
-3
View File
@@ -1,3 +0,0 @@
# 0004 — Content is folder-shaped under one Museion Home
Content lives as per-piece folders (`content/<type>/<id>/<id>.md` + `assets/`) under a single Museion Home (`~/Museion` by default, editable in Settings; repoint-only — Museion never moves content), not as loose files in an opened project folder. The Scrivener-shaped unit buys colocated assets and a growth path to long-form types at the cost of a post no longer being one file; external markdown is edited as-is, and Import (copy, never move) makes it a Post.
@@ -1,3 +0,0 @@
# Fix cards travel as structured MCP tool calls
Mentor findings reach the app as typed tool calls from a Hermes-side MCP writing tool — the fix-card schema is the tool's argument schema — rendered from ACP tool-call events, never parsed out of streamed prose. One schema serves the card UI, the apply-write, and learning promotion; M0's round-trip test exercises exactly this rail. Rejected: prose parsing (fragile, untyped) and file-watching spools (cards are conversation events, not artifacts).
@@ -0,0 +1,3 @@
# 0005 — Writer learnings live in the Home, not the engine profile
Museion keeps two memory systems deliberately separate. The mentor's own automated memory lives inside the `museion` Hermes profile, is owned by the engine, and is never read or written by Museion. The writer's deliberate learnings are plain markdown in the Home's `learnings/<content type>/` — one file per learning with decay state in frontmatter — hand-editable, git-diffable, and portable with the body of work. The profile holds *how* to critique (skills, config); the Home holds *what* was learned. Fresh start in v1: the pre-Museion MEMORY.md carries only agent-tooling notes, so there is nothing to import. Consequence: G4 profile snapshots do not back up learnings — the Home is the writer's to back up.
@@ -0,0 +1,3 @@
# 0006 — Fix cards travel as typed MCP tool calls
Mentor findings reach the app as typed tool calls — the fix-card schema is the tool's argument schema — rendered from ACP tool-call events, never parsed out of streamed prose. Anchors are quote-based (exact substring + occurrence + context), so edits between issue and accept degrade to a loud no-match, never a wrong-span patch. One schema serves the card UI, the apply-write, and learning promotion; M0's round-trip test exercises exactly this rail. Rejected: prose parsing (fragile, untyped) and file-watching spools (cards are conversation events, not artifacts).
@@ -1,3 +0,0 @@
# Writing tools are an in-app Swift MCP server
Museion's writing tools (fix-card submit, edit-pass runner, critique-memory query/promote, draft stats) ship inside the app binary, exposed as a stdio MCP server and registered into the `museion` profile at provisioning (`hermes mcp add museion-tools --command …`). One signed artifact, native file access, stats logic shared with the M4 UI, and the fix-card tool exists from M0. Rejected: a separate Python server (second runtime to ship and sign) and skills-only (Q: cards would need prose parsing — reversing later rewrites the card path). Model/provider stays user-managed in the profile's own config — Museion never touches it.
@@ -1,3 +1,3 @@
# 0005 — Museion owns all state; the engine is a swappable critic
# 0007 — Museion owns all state; the engine is a swappable critic
All durable state — content, Learnings, Pass State — lives in the Museion Home or app containers, never in engine-owned directories. Writing tools run in a Museion-hosted MCP server that any MCP-capable engine registers as a client (Hermes over ACP today; Pi is the identified fallback). Sessions are engine-owned by design — an engine swap leaves transcripts behind, never Learnings.
@@ -0,0 +1,3 @@
# 0008 — Writing tools are an in-app Swift MCP server
Museion's writing tools (`query_learnings`, `submit_fix_cards`) ship inside the app binary, exposed as a stdio MCP server (`museion-tools`) and registered into the `museion` profile at provisioning (`hermes mcp add museion-tools --command …`). One signed artifact, native file access, and the fix-card tool exists from M0. Draft stats are computed natively in Swift at capture (not an agent tool) so the unaided-first-draft guarantee is enforced in code; research stays engine-native. Rejected: a separate Python server (second runtime to ship and sign) and skills-only (cards would need prose parsing — reversing later rewrites the card path). Model/provider stays user-managed in the profile's own config — Museion never touches it.